These are chat archives for carymrobbins/intellij-haskforce

15th
Dec 2018
Barry Burd
@allmycode_twitter
Dec 15 2018 21:10
I'm looking for help getting HaskForce running. I've followed instructions in the documentation to no avail. Any offer for interactive help would be appreciated.
Cary Robbins
@carymrobbins
Dec 15 2018 21:17
@allmycode_twitter Sure let me know what issues you're having and I can try to help out. Gitter doesn't give great notifications but I'll try to keep up on it
Barry Burd
@allmycode_twitter
Dec 15 2018 21:30
I might be starting from a bad setup. Anyway, when I click Run->Run I get the little dialog to set up Edit Configurations. I'm not sure where to go from there. Whatever I've tried hasn't worked.
P.S. Thanks in advance for your help.
Cary Robbins
@carymrobbins
Dec 15 2018 22:23
What exactly are you trying to do?
Barry Burd
@allmycode_twitter
Dec 15 2018 22:34
Just trying to run a simple Hello World program. All the examples in my course will be short programs. Some students have PCs; others have Macs. I'm trying to get HaskForce going on a Mac at first.
Barry Burd
@allmycode_twitter
Dec 15 2018 22:41
The course starts mid-January but I remember how much trouble students had with setup last time (with a now-deprecated plugin) so I'm preparing well in advance.
Cary Robbins
@carymrobbins
Dec 15 2018 22:41
smart thinking
will you be using stack or cabal?
or vanilla ghc?
Barry Burd
@allmycode_twitter
Dec 15 2018 22:43
Doesn't matter.
Cary Robbins
@carymrobbins
Dec 15 2018 22:43
well it does depending on how you want to run it
you have a project open now right?
Barry Burd
@allmycode_twitter
Dec 15 2018 22:44
I can go to that computer and follow along. For your question, students will be learning vanilla ghc so whether stack or cabal is present doesn't make a difference to them.
Cary Robbins
@carymrobbins
Dec 15 2018 22:45
oh ok, are you the instructor?
if it's vanilla ghc and you are trying to compile and run the application, haskforce isn't really set up to do that. it mostly relies on either cabal or stack for building and running
Barry Burd
@allmycode_twitter
Dec 15 2018 22:46
I'm the instructor and we can use cabal or stack.
I'm at that computer now.
Cary Robbins
@carymrobbins
Dec 15 2018 22:46
awesome, personally i'd recommend stack as i think it's much easier to get going, especially for beginners
Barry Burd
@allmycode_twitter
Dec 15 2018 22:46
Stack it is!
Cary Robbins
@carymrobbins
Dec 15 2018 22:46
but people always like to flame war, so opinions will vary
Barry Burd
@allmycode_twitter
Dec 15 2018 22:46
Of course
Cary Robbins
@carymrobbins
Dec 15 2018 22:47
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
Dec 15 2018 22:48
I don't see a Stack option.
Cary Robbins
@carymrobbins
Dec 15 2018 22:49
do you have haskforce installed in intellij?
Barry Burd
@allmycode_twitter
Dec 15 2018 22:49
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
Dec 15 2018 22:50
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
Dec 15 2018 22:52
Mid-January.
Cary Robbins
@carymrobbins
Dec 15 2018 22:52
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
Dec 15 2018 22:53
Error:Could not parse /Users/barryburd/IdeaProjects/HaskallWithHaskForce/stack.yaml: /Users/barryburd/IdeaProjects/HaskallWithHaskForce/stack.yaml (No such file or directory)
Cary Robbins
@carymrobbins
Dec 15 2018 22:55
when you create a project in HaskForce, be sure to choose Build with Stack
Barry Burd
@allmycode_twitter
Dec 15 2018 22:55
I'll try that ...
Cary Robbins
@carymrobbins
Dec 15 2018 22:55
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.
if you have specific feature requests you can also log them on the issue tracker on github https://github.com/carymrobbins/intellij-haskforce/issues
feature requests/bug reports/etc
Barry Burd
@allmycode_twitter
Dec 15 2018 22:57
OK. Thank you.
Cary Robbins
@carymrobbins
Dec 15 2018 22:59
No problem!