Could you recommend an IDE for this project

71 views
Skip to first unread message

Neugomonney

unread,
Sep 22, 2015, 1:55:17 PM9/22/15
to Scala-Monocle
Hi,

I started looking at this project hoping to be able to contribute. Scala is not my primary language but I like it and hopefully can benefit from this contribution (equally, I hope project can benefit from my work) 

I got it down, can compile and run tests via sbt but failing to get it working in IDE.

Running sbt eclipse (after adding eclipse plugin 4.0.0 dependency to plugins.sbt) I can create a project but but loading that in Eclipse Luna for Scala, I get weird errors saying "Compiler plugin kind-projector_2.11-0.6.0.jar is cross-compiled with incompatible version for this project: 2.11.0 vs 2.11.7 docs", which I can get rid of by changing "withVersionClasspathValidator" compiler settings but they re-appear again next time I reload the project despite the compiler setting remaining the same so I have turn on and off again that compiler setting to rid of errors for that session. 

Besides, changing compiler settings doesn't sound right but I could not find any other way of fixing the issue. 

Not ideal so I thought to give IntelliJ a try but on importing the project to IntelliJ 4.1 with Scala plugin I'm getting 100s of errors. I don't know IntelliJ well enough to understand the reason for those errors

I normally prefer IDE but in the end can work with Notepad++ or Sublime if that's the way. 

Any help/advise would be appreciated.

Thanks

Nikolay

Julien Truffaut

unread,
Sep 23, 2015, 4:42:22 AM9/23/15
to Scala-Monocle
Hi Nikolai,

I am using the community edition of intellij 14 or 15 EAP and it works fine except that I started to get errors related to kind projector recently (but it is only 5-6 errors not 100s). I will push a branch tonight without kind projector, maybe you could give it a try (I will give you the branch name after I push it).

Basically with intllij, I do:
File -> New -> Project from existing source -> I select Monocle repo -> import from external model using sbt -> finish
This is on mac, UI might be slightly different on other OS.

I am looking forward for you to participate in Monocle :)

Neugomonney

unread,
Sep 23, 2015, 6:27:34 AM9/23/15
to Scala-Monocle
Hi Julien, thanks for the reply.

A version without kind projector would be nice, that would fix my Eclipse errors. Please let me know when you upload it.

That said, I really like IntelliJ, surely feels more natural and easy to use than Eclipse even after trying it only for few hours. 

I am on windows and getting different results on different machines. This morning I re-imported the project from scratch into IntelliJ on my work machine and it compiled successfully. Doing the same on my personal computer I got 21 compiler error in IntelliJ. The only difference I see between those two is version of Java build (1.7.73 vs 1.7.67) and Win7 vs 8 but I wouldn't expect those to influence the build.

I'll keep on trying - if I can build it on one machine, eventually I should be able to do that on another.

Nik

Julien Truffaut

unread,
Sep 23, 2015, 1:44:11 PM9/23/15
to Scala-Monocle
I pushed the branch kindprojector and I created a PR to eventually merge it into master. I hope it will work for you. 

Please do not hesitate to ask any question, here or on gitter.

Neugomonney

unread,
Sep 23, 2015, 4:52:32 PM9/23/15
to Scala-Monocle
Excellent, thanks. Project now imported into IntelliJ and compiled right away.

Time to explore how things work now, I'll be in touch later, cheers

Julien Truffaut

unread,
Sep 23, 2015, 5:42:38 PM9/23/15
to Neugomonney, Scala-Monocle
Cool, I also merged it to master 

--
You received this message because you are subscribed to the Google Groups "Scala-Monocle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-monocl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Julien Truffaut
Reply all
Reply to author
Forward
0 new messages