Skip to content

lukexi/stack-ide-sublime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 commercialhaskell/stack-ide#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: #13)

About

An Sublime Text IDE for Haskell based on stack-ide

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published