These are chat archives for carymrobbins/intellij-haskforce

4th
Aug 2017
Rahul Muttineni
@rahulmutt
Aug 04 2017 15:41
@carymrobbins Checking out the beta version you just uploaded - how do I build an etlas project?
I created an Etlas project using the wizard
Cary Robbins
@carymrobbins
Aug 04 2017 15:41
nice
i was actually just about to post about it on twitter
so you can create a source file, src/Main.hs
Rahul Muttineni
@rahulmutt
Aug 04 2017 15:42
Yup, have done that.
Cary Robbins
@carymrobbins
Aug 04 2017 15:43
ok, so now, if you have a compilable Main, click the build button in the top right
not top left, top right
the one with the binary
Rahul Muttineni
@rahulmutt
Aug 04 2017 15:43
“Make Project”?
Cary Robbins
@carymrobbins
Aug 04 2017 15:43
you can also do Build > Build Project
yup
i think the default is ctrl/cmd+F9
Rahul Muttineni
@rahulmutt
Aug 04 2017 15:44
It seems to be generating out/production/eta-test/Main.hs
Cary Robbins
@carymrobbins
Aug 04 2017 15:44
so that's intellij's nonsense
we could figure out a way around that probbaly
but it will also generate a dist/ as a result of calling etlas
Rahul Muttineni
@rahulmutt
Aug 04 2017 15:45
I’m not about to see the dist/
Cary Robbins
@carymrobbins
Aug 04 2017 15:46
ehh intellij doesn't always sync stuff like that
you may need to collapse and expand the root dir in the project pane
Rahul Muttineni
@rahulmutt
Aug 04 2017 15:47
I just checked the physical folder and I’m not seeing a dist there either.
Cary Robbins
@carymrobbins
Aug 04 2017 15:47
i'm going to try to get etlas run working as well as a run configuration
hmm
when you clicked "Build Project", did you get output in the Messages pane?
it should have auto-opened
actually, it only auto-opens if you have a build failure
but you can click on it manually, it appears at the bottom of the IDE
Rahul Muttineni
@rahulmutt
Aug 04 2017 15:51
I’m just getting “Compilation completed succesfully”. I’m trying to find the messages pane, only seeing the Event Log right now
Let me try reinstalling the plugin
Cary Robbins
@carymrobbins
Aug 04 2017 15:52
what version of the plugin do you have? 38?
also, did you configure the eta compiler?
Rahul Muttineni
@rahulmutt
Aug 04 2017 15:52
Yes and yes.
Cary Robbins
@carymrobbins
Aug 04 2017 15:52
hmm
you're on mac, right?
oh also, what version of intellij?
Rahul Muttineni
@rahulmutt
Aug 04 2017 15:54
Yes. One second let me update my Intellij - it’s the 2016 version
Cary Robbins
@carymrobbins
Aug 04 2017 15:55
yeah i would hope that intellij didn't break something, but it's possible
what i should probably do is, if you'd like, have your team test the eta features before i cut the release
Rahul Muttineni
@rahulmutt
Aug 04 2017 16:00
Sure that sounds great.
Cary Robbins
@carymrobbins
Aug 04 2017 16:00
awesome
so i see that we can now grab binaries instead of compiling from source, that's great
when i download it, it just downloads an etlas binary though, don't i also need eta and eta-pkg?
Rahul Muttineni
@rahulmutt
Aug 04 2017 16:04
It’ll download it for you
Cary Robbins
@carymrobbins
Aug 04 2017 16:04
oh
hmm
Rahul Muttineni
@rahulmutt
Aug 04 2017 16:04
We’ll need to change the wizard a bit to accomodate that
Cary Robbins
@carymrobbins
Aug 04 2017 16:04
yeah that's ok
where does it download the binaries to?
Rahul Muttineni
@rahulmutt
Aug 04 2017 16:06
~/.etlas/binaries/[binary-server-url]/eta-[version]/binaries/(eta,eta-pkg)
I wonder if you even need to set the path to eta/eta-pkg?
If it’s on the PATH (source installation) then it’ll be picked up by etlas. If you want to use a particular version, you can do etlas select [eta-version] (pending feature).
Cary Robbins
@carymrobbins
Aug 04 2017 16:07
hmm, the downloaded etlas binary requires me to chmod +x before i can execute it
on mac at least
i'm not sure if that's just a limitation of downloading it from a browser or what
Rahul Muttineni
@rahulmutt
Aug 04 2017 16:08
Hmm I should add that to the docs then.
Cary Robbins
@carymrobbins
Aug 04 2017 16:09
Would you like to help us make Eta the fastest growing programming language,
and help pure functional programming become mainstream? (y/n)
well played :D
will etlas update download the binaries?
Rahul Muttineni
@rahulmutt
Aug 04 2017 16:10
Lol thanks
So you just have to go ahead and try building a project
Cary Robbins
@carymrobbins
Aug 04 2017 16:11
looks like etlas update does it actually
Downloading executable 'eta'...
Downloading executable 'eta-pkg'...
Rahul Muttineni
@rahulmutt
Aug 04 2017 16:12
Ok cool.
So I upgraded to 2017 and it seems to be working'
It’s still building, but at least I see a dist being generated
Cary Robbins
@carymrobbins
Aug 04 2017 16:16
hmm
Rahul Muttineni
@rahulmutt
Aug 04 2017 16:17
Yup, worked :)
Cary Robbins
@carymrobbins
Aug 04 2017 16:17
yeah i just tried on mac with 2017.1.4 and it worked
oh good!
whew :sweat_smile:
Rahul Muttineni
@rahulmutt
Aug 04 2017 16:17
So running still needs to be implemented right?
Cary Robbins
@carymrobbins
Aug 04 2017 16:17
yup
i think i can mostly reuse the cabal runner
Rahul Muttineni
@rahulmutt
Aug 04 2017 16:18
Yup, that should do it
Cary Robbins
@carymrobbins
Aug 04 2017 16:25
so it would basically work just like this, where you'd specifiy the program arguments for flags, executable, executable flags, etc
Rahul Muttineni
@rahulmutt
Aug 04 2017 16:31
That’s fine. What is the “Name” field for?
Cary Robbins
@carymrobbins
Aug 04 2017 16:32
it's the name for the run config
that's just an intellij-ism
so you can, say, have multiple run configs for different things, like run "Web Server" or run "Tests", etc
Rahul Muttineni
@rahulmutt
Aug 04 2017 16:37
Oh ok cool!