這是剛剛的夢,不趕緊寫下來,恐怕再過一會就忘了…
我和太座正好去台東找林兄,在他那兒做客。但是台東發生了大水。這邊有點遺忘了,我好像搭了一個奇怪的東西,很快地回到飯店。在飯店往外看,發現很多飛機被惡水衝成兩半在河裡翻滾,有人騎著機車也在河裡試著要上岸。這水實在太大,原本打算要去機場搭飛機回台北的,如果這麼多飛機被衝成兩半,那麼看來飛機是不能坐了。當下就跟太座說,你先跟林兄到高雄,再搭高鐵回去吧~等小孩醒了,我再趕過去。於是就開始準備。過一會,林兄的叔叔打電話來,說他到香港了,平安無事。然後林兄跟我交代了一下他叔叔的事情。小孩醒了,太座也正準備要走,所以我也趕緊打包好東西,帶著小孩要一起走。可是要怎麼到台東呢?這時候我說:搭捷運….
好吧,大致的記憶就到這裡…
Port Mini c# Lab to mono
在 Linux mono 平台上缺少了一個輕量級的開發工具,而 snippetcompiler 又沒有 open source,所以腦筋就動到 黑暗執行緒 開發的 Mini C# Lab 上。
下載原始碼以後,先試著用 MonoDevelop 開啟,但卻因為路徑與檔名問題失敗,Linux 使用的路徑分隔字元與 Windows 不同,對大小寫檔名也比較嚴格,調整以後,就能開啟了。
接著去編譯,稍微調整 References 以後,也可以順利編譯。
最後要執行了,卻出現下面的錯誤:
Unhandled Exception: System.EntryPointNotFoundException: HideCaret at (wrapper managed-to-native) ICSharpCode.TextEditor.Caret:HideCaret (intptr) at ICSharpCode.TextEditor.Caret.DisposeCaret () [0x00000] at ICSharpCode.TextEditor.Caret.RecreateCaret () [0x00000] at ICSharpCode.TextEditor.TextArea.OptionsChanged () [0x00000] at ICSharpCode.TextEditor.TextArea..ctor (ICSharpCode.TextEditor.TextEditorControl motherTextEditorControl, ICSharpCode.TextEditor.TextAreaControl motherTextAreaControl) [0x00000] at (wrapper remoting-invoke-with-check) ICSharpCode.TextEditor.TextArea:.ctor (ICSharpCode.TextEditor.TextEditorControl,ICSharpCode.TextEditor.TextAreaControl) at ICSharpCode.TextEditor.TextAreaControl..ctor (ICSharpCode.TextEditor.TextEditorControl motherTextEditorControl) [0x00000] at (wrapper remoting-invoke-with-check) ICSharpCode.TextEditor.TextAreaControl:.ctor (ICSharpCode.TextEditor.TextEditorControl) at ICSharpCode.TextEditor.TextEditorControl..ctor () [0x00000] at (wrapper remoting-invoke-with-check) ICSharpCode.TextEditor.TextEditorControl:.ctor () at MiniCSharpLab.Form1.InitializeComponent () [0x00000] at MiniCSharpLab.Form1..ctor () [0x00000] at (wrapper remoting-invoke-with-check) MiniCSharpLab.Form1:.ctor () at MiniCSharpLab.Program.Main (System.String[] args) [0x00000]
問題應該就出在 ICSharpCode.TextEditor.dll 裡,有空再用 MoMA 來分析或挖 ICSharpCode.TextEditor.dll 看看好了。