All Projects → lukexi → Stack Ide Sublime

lukexi / Stack Ide Sublime

An Sublime Text IDE for Haskell based on stack-ide

Programming Languages

python
139335 projects - #7 most used programming language

build status Coverage Status

stack-ide-sublime

Sublime Text plugin for stack-ide

Bleeding edge note: Requires stack 0.1.6+, stack-ide 0.1+, ide-backend HEAD and GHC 7.10+.

stack-ide-sublime also requires for the moment that you are opening the same folder that holds the .cabal file, and that the folder is named the same as the .cabal file.

Install instructions

First make sure to install stack and stack-ide.

On OSX install this package with the following command: (cd "~/Library/Application Support/Sublime Text 3/Packages"; git clone https://github.com/lukexi/stack-ide-sublime.git SublimeStackIDE)

On Linux install this package with the following command: (cd ~/.config/sublime-text-3/Packages; git clone https://github.com/lukexi/stack-ide-sublime.git SublimeStackIDE)

On Windows install this package with the following command: (cd $APPDATA/Sublime\ Text\ 3/Packages/; git clone https://github.com/lukexi/stack-ide-sublime.git SublimeStackIDE)

Screenshots

SublimeStackIDE Errors SublimeStackIDE Autocomplete SublimeStackIDE Type-at-cursor

Tips

Hide stack-ide generated folders from Sublime Text

Add the following to your global User Preferences (Sublime Text -> Preferences -> Settings - User):

"folder_exclude_patterns": [".git", ".svn", "CVS", ".stack-work", "session.*"],

Troubleshooting

First check the Sublime Text console with `ctrl-``. You can increase the plugin's log level by changing the "verbosity" setting in SublimeStackIDE.sublime-settings to "debug". Let us know what you see and we'll get it fixed.

Known issues

Not working in executable targets

Add modules (eg. Main) to the executable target's other-modules list in the cabal file.

executable helloworld-exe
  hs-source-dirs:      app
  other-modules:       Main
  main-is:             Main.hs

After restarting Stack IDE you should see the listed modules being compiled (see https://github.com/commercialhaskell/stack-ide/issues/28)

Error "can't find file: /Users/myself/first-project/Lib" in the console

This was a problem in stack 1.3, upgrade to a newer version (see: https://github.com/lukexi/stack-ide-sublime/issues/13)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].