Haskell plugin for IntelliJ IDEA Community Edition
People
Repo info
Activity
Cary Robbins
@carymrobbins
cool, so if you go back to that "Edit Configurations" dialog after choosing Run, click the + button and type stack
you should see a run type of Haskell Stack Run
From there you can name the run config, specify the executable to run, and any executable arguments
Barry Burd
@allmycode_twitter
I don't see a Stack option.
Cary Robbins
@carymrobbins
do you have haskforce installed in intellij?
Barry Burd
@allmycode_twitter
I do.
new-host-11:~ barryburd$ which stack /usr/local/bin/stack new-host-11:~ barryburd$
Oops! One minute...
Got it ... Haskell Stack Run ... (I was looking under 'S' for "Stack")
Cary Robbins
@carymrobbins
fantastic. btw if you type "stack" it should filter that list of configs for you
i have some additional features i am planning to release soon, one of them being the ability to right-click and choose Run, which will generate the run config for you
when does your class start?
if i release it soon that may help you and your class so there's less fiddling with the menus
Barry Burd
@allmycode_twitter
Mid-January.
Cary Robbins
@carymrobbins
ok good
also, if there's anything along the way that seems like low hanging fruit, let me know and i might be able to squeeze it into a release
Barry Burd
@allmycode_twitter
Error:Could not parse /Users/barryburd/IdeaProjects/HaskallWithHaskForce/stack.yaml: /Users/barryburd/IdeaProjects/HaskallWithHaskForce/stack.yaml (No such file or directory)
Cary Robbins
@carymrobbins
when you create a project in HaskForce, be sure to choose Build with Stack
Barry Burd
@allmycode_twitter
I'll try that ...
Cary Robbins
@carymrobbins
so File > New > Project > Haskell > Build with Stack
it will use your stack executable to generate a stack.yaml and init the stack project
i have to run in a few mins, but feel free to drop any other questions here.
Hello again. Trying to do a clean install on a Windows machine. I'm getting "Compilation completed with 1 error and 0 warnings. Not sure where to look for the error message.
Cary Robbins
@carymrobbins
could you paste a screenshot?
Cary Robbins
@carymrobbins
@allmycode_twitter ^^
Barry Burd
@allmycode_twitter
Oops! Checking that Haskell SDK home path ... (?)
Cary Robbins
@carymrobbins
Ignore the Haskell SDK home path, it's mostly unused and required for some internal intellij stuff
but the path itself doesn't get used
i notice that your project doesn't have a stack.yaml
also, the Haskell Stack Run is for running your compiled binary, not for running ghc
@allmycode_twitter ^
be sure to create the project with the project wizard and select Build with Stack
Barry Burd
@allmycode_twitter
I'm pretty sure that I selected Build with Stack. I'll double check.
Cary Robbins
@carymrobbins
maybe there's something wrong with your stack setup
try to create a project from the command line with stack new
Barry Burd
@allmycode_twitter
When I create a project with "stack new" (on the left) I get a full project. When I create a project with IntelliJ (on the right) I get only a few files. I'll send screenshots to show you what I'm doing in IntelliJ, step by step.
Barry Burd
@allmycode_twitter
Cary Robbins
@carymrobbins
haskforce should be using stack under the hood to take care of it, maybe there's some oddity going on with windows