Personal tools

EclipseOn Mac OS X

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
 
[[EclipseFP]] seems to work ok on [[Mac_OS_X]], but it doesn't seem like there is much testing on OS X. Installing per instructions will get you editing and building pretty quickly.
 
[[EclipseFP]] seems to work ok on [[Mac_OS_X]], but it doesn't seem like there is much testing on OS X. Installing per instructions will get you editing and building pretty quickly.
   
However, getting syntax highlighting working requires a little work. The "scion-browser" and "buildwrapper" don't seem to install correctly, probably something to do with permissions. You will see errors whenever your try and let Eclipse install and build them, or just ignore the fact they are missing.
+
However, getting syntax highlighting working doesn't work on 2.2 (feb 2012). If you actually manage to get scion-browser and build wrapper compiled, then your code will probably stop compiling in the IDE. So just live without those features for now or you can burn a lot of time.
   
Even if you skip the work for getting syntax highlighting working, [[EclipseFp]] is currently (early 2012) the easiest tool to get working for reliable edit/compile on Mac OS X, so it is a good choice for beginners.
+
In the meantime, you get good edit/compile/build with EclipseFP 2.2.2.
   
Build them from the command line with cabal.
 
 
<code>
 
cabal install scion-browser<br>
 
cabal install buildwrapper
 
</code>
 
 
The executables you need will likely be in a hidden directory "Library/Haskell/bin" of your home directory. i.e. if your user id is "foo" then the path will be "/Users/foo/Library/Haskell/bin". That folder may not show in finder or spotlight.
 
 
In Eclipse, select preferences. Select Haskell in the menu and drill down to helper executables. Select the appropriately named executables for Build Wrapper and Browser Executable (for scion-browser). These are links in the bin directory, but eclipse will resolve them fine.
 
 
That should at least get syntax highlighting working.
 
 
You won't find this anywhere else on the web. If you do, replace this page with a suitable link.
 
   
 
These instructions are applicable to EclipseFp 2.2.2 and Lion, and probably apply to other versions of OS X and EclipseFP.
 
These instructions are applicable to EclipseFp 2.2.2 and Lion, and probably apply to other versions of OS X and EclipseFP.
   
[[Category::Tools]]
+
[[Category:Tools]]
[[Category::OS]]
+
[[Category:OS]]

Latest revision as of 17:42, 12 February 2012

EclipseFP seems to work ok on Mac_OS_X, but it doesn't seem like there is much testing on OS X. Installing per instructions will get you editing and building pretty quickly.

However, getting syntax highlighting working doesn't work on 2.2 (feb 2012). If you actually manage to get scion-browser and build wrapper compiled, then your code will probably stop compiling in the IDE. So just live without those features for now or you can burn a lot of time.

In the meantime, you get good edit/compile/build with EclipseFP 2.2.2.


These instructions are applicable to EclipseFp 2.2.2 and Lion, and probably apply to other versions of OS X and EclipseFP.