2009-07-31 83 views
7

我在Mac上使用F#,並且我懷疑kbow是否有任何F#IDE在單聲道(而非通用編輯器)上工作。似乎有一個addon for MonoDelvelop,但我認爲它可能不夠成熟。任何建議?是否有任何F#IDE可以在Mono上運行?

+0

不是F#本身沒有完全成熟,是不是一種研究語言? – Dykam 2009-08-01 21:45:31

+0

IIRC,Visual Studio產品團隊已經在此階段對其進行了保管,並且在下一版Visual Studio中它將與C#和VB保持一致。所以不,它不是一種研究語言,它作爲一個適當的產品正處於其第一個發行版的測試階段。 – harms 2009-08-03 13:40:33

回答

7

strong text實際上我開始爲MonoDevelop創建一個新的F#綁定。只要我有一些值得分享的東西,我會盡快發佈消息。

奇怪的是,好像我不能給我的答案添加評論... 無論如何,我想從基本功能開始,允許創建和編譯F#項目。當完成這些工作時,我會考慮實現諸如自動完成之類的事情。

更新:由於最近加入我們的家人,我還沒有能夠完成我的工作。幸運的是,其他人拿起他的工作努力和成果在這裏:http://github.com/vasili/FSharpBinding

+0

這是個好消息!你打算支持自動完成嗎? – 2009-08-02 16:53:13

4

我認爲MonoDevelop插件將是您最好的選擇。不幸的是,在這一點上,尋求一個成熟的F#編譯器(即使在Windows上)也有一點延伸。它甚至沒有在Windows上正式發佈(CTP仍然適用於VS 2008,而2010年仍然是Beta版)。

2

我使用Aquamacs和一些掛鉤到圖阿雷格模式。 - 無淨完成(還有這裏是一個C#模式),但dabrev模式:

;; F# specific configs 
;; hooked ocaml tuareg mode. If you do ML with mono e. g. 
(add-to-list 'load-path "~/.elisp/tuareg-mode") 
    (autoload 'tuareg-mode "tuareg" "Major mode for editing Caml code" t) 
    (autoload 'camldebug "camldebug" "Run the Caml debugger" t) 
    (autoload 'tuareg-imenu-set-imenu "tuareg-imenu" 
     "Configuration of imenu for tuareg" t) 
    (add-hook 'tuareg-mode-hook 'tuareg-imenu-set-imenu) 
    (setq auto-mode-alist 
     (append '(("\\.ml[ily]?$" . tuareg-mode) 
       ("\\.topml$" . tuareg-mode)) 
        auto-mode-alist)) 

;; now we use *.fs files for this mode 
(setq auto-mode-alist (cons '("\\.fs\\w?" . tuareg-mode) auto-mode-alist)) 

(add-hook 'tuareg-mode-hook 
     '(lambda() 
     (set (make-local-variable 'compile-command) 
     (concat "fsc \"" 
      (file-name-nondirectory buffer-file-name) 
      "\"")))) 

(defun tuareg-find-alternate-file() 
    "Switch Implementation/Interface." 
    (interactive) 
    (let ((name (buffer-file-name))) 
    (if (string-match "\\`\\(.*\\)\\.fs\\(i\\)?\\'" name) 
    (find-file (concat (tuareg-match-string 1 name) 
       (if (match-beginning 2) ".fs" ".fsi")))))) 

您從Ocaml(非常相似)獲得語法高亮顯示,並且需要照顧空格。我從殼牌公司獲得FSI的一些問題,因爲它似乎在打字時會有延遲。我沒有調查此問題並切換到VisualStudio。

另外還有一個Textmate F# bundle。我確實測試了半分鐘,它的工作原理。但是,您不會從VS中獲得Alt + Enter選項,直接在交互式提示下評估標記的零件。

相關問題