Eclipse and Scala Setup Issues

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Eclipse and Scala Setup Issues

Stephan Ewen
Hi!

For all those that have (or have had) problems getting the Scala Project
with all the Macro Magic to work in Eclipse, here is an FAQ entry for that:

https://github.com/apache/incubator-flink/blob/master/docs/faq.md#in-eclipse-i-get-compilation-errors-in-the-scala-projects

Relevant to 0.8-SNAPSHOT code, should be on the website with the next major
release.

Stephan
Reply | Threaded
Open this post in threaded view
|

Re: Eclipse and Scala Setup Issues

Henry Saputra
I saw that with IntelliJ Idea too.

Any remedy for it?

- Henry

On Wed, Dec 10, 2014 at 10:18 AM, Stephan Ewen <[hidden email]> wrote:

> Hi!
>
> For all those that have (or have had) problems getting the Scala Project
> with all the Macro Magic to work in Eclipse, here is an FAQ entry for that:
>
> https://github.com/apache/incubator-flink/blob/master/docs/faq.md#in-eclipse-i-get-compilation-errors-in-the-scala-projects
>
> Relevant to 0.8-SNAPSHOT code, should be on the website with the next major
> release.
>
> Stephan
Reply | Threaded
Open this post in threaded view
|

Re: Eclipse and Scala Setup Issues

Stephan Ewen
I think you have to essentially do the same thing: register a compiler
plugin.

Maybe one of the IntelliJ users knows more details...
Am 11.12.2014 02:30 schrieb "Henry Saputra" <[hidden email]>:

> I saw that with IntelliJ Idea too.
>
> Any remedy for it?
>
> - Henry
>
> On Wed, Dec 10, 2014 at 10:18 AM, Stephan Ewen <[hidden email]> wrote:
> > Hi!
> >
> > For all those that have (or have had) problems getting the Scala Project
> > with all the Macro Magic to work in Eclipse, here is an FAQ entry for
> that:
> >
> >
> https://github.com/apache/incubator-flink/blob/master/docs/faq.md#in-eclipse-i-get-compilation-errors-in-the-scala-projects
> >
> > Relevant to 0.8-SNAPSHOT code, should be on the website with the next
> major
> > release.
> >
> > Stephan
>
Reply | Threaded
Open this post in threaded view
|

Re: Eclipse and Scala Setup Issues

Henry Saputra
Thx Stephan, will try it out.

Sharing a workaround I use so far, in IntelliJ you could modify the
Run/Debug configuration to remove the "make" step and do mvn from
console before runninbug local in the IDE.

- Henry

On Wed, Dec 10, 2014 at 11:22 PM, Stephan Ewen <[hidden email]> wrote:

> I think you have to essentially do the same thing: register a compiler
> plugin.
>
> Maybe one of the IntelliJ users knows more details...
> Am 11.12.2014 02:30 schrieb "Henry Saputra" <[hidden email]>:
>
>> I saw that with IntelliJ Idea too.
>>
>> Any remedy for it?
>>
>> - Henry
>>
>> On Wed, Dec 10, 2014 at 10:18 AM, Stephan Ewen <[hidden email]> wrote:
>> > Hi!
>> >
>> > For all those that have (or have had) problems getting the Scala Project
>> > with all the Macro Magic to work in Eclipse, here is an FAQ entry for
>> that:
>> >
>> >
>> https://github.com/apache/incubator-flink/blob/master/docs/faq.md#in-eclipse-i-get-compilation-errors-in-the-scala-projects
>> >
>> > Relevant to 0.8-SNAPSHOT code, should be on the website with the next
>> major
>> > release.
>> >
>> > Stephan
>>
Reply | Threaded
Open this post in threaded view
|

Re: Eclipse and Scala Setup Issues

Aljoscha Krettek-2
I uploaded a screenshot of my Scala compiler config in IntelliJ:
http://tinypic.com/view.php?pic=2eqcu2s&s=8

The essential thing is that the "Additional Compiler Options" field
must be free while the macro paradise plugin is added to the list of
compiler plugins.

Hope that helps.

On Thu, Dec 11, 2014 at 8:34 AM, Henry Saputra <[hidden email]> wrote:

> Thx Stephan, will try it out.
>
> Sharing a workaround I use so far, in IntelliJ you could modify the
> Run/Debug configuration to remove the "make" step and do mvn from
> console before runninbug local in the IDE.
>
> - Henry
>
> On Wed, Dec 10, 2014 at 11:22 PM, Stephan Ewen <[hidden email]> wrote:
>> I think you have to essentially do the same thing: register a compiler
>> plugin.
>>
>> Maybe one of the IntelliJ users knows more details...
>> Am 11.12.2014 02:30 schrieb "Henry Saputra" <[hidden email]>:
>>
>>> I saw that with IntelliJ Idea too.
>>>
>>> Any remedy for it?
>>>
>>> - Henry
>>>
>>> On Wed, Dec 10, 2014 at 10:18 AM, Stephan Ewen <[hidden email]> wrote:
>>> > Hi!
>>> >
>>> > For all those that have (or have had) problems getting the Scala Project
>>> > with all the Macro Magic to work in Eclipse, here is an FAQ entry for
>>> that:
>>> >
>>> >
>>> https://github.com/apache/incubator-flink/blob/master/docs/faq.md#in-eclipse-i-get-compilation-errors-in-the-scala-projects
>>> >
>>> > Relevant to 0.8-SNAPSHOT code, should be on the website with the next
>>> major
>>> > release.
>>> >
>>> > Stephan
>>>
Reply | Threaded
Open this post in threaded view
|

Re: Eclipse and Scala Setup Issues

Stephan Ewen
How about we link this Screenshot from the faq as well and add the pointers
to the dev guide...
Reply | Threaded
Open this post in threaded view
|

Re: Eclipse and Scala Setup Issues

Robert Metzger
+1
Everybody stumbled across this.

On Thu, Dec 11, 2014 at 8:55 AM, Stephan Ewen <[hidden email]> wrote:

> How about we link this Screenshot from the faq as well and add the pointers
> to the dev guide...
>
Reply | Threaded
Open this post in threaded view
|

Re: Eclipse and Scala Setup Issues

Gyula Fóra
+1

And I would also like to add on the Eclipse setup side that, you should need to watch out when installing the Scala IDE plugin, because the one offered in the marketplace is for 2.11. And also if you install the one for 2.10 it will say that there is an update (which again is 2.11). And this can cause weird errors.

There is a newer(than the one listed on the link setup doc) stable version available that worked for me:
http://download.scala-ide.org/sdk/helium/e38/scala210/stable/site


> On 11 Dec 2014, at 09:09, Robert Metzger <[hidden email]> wrote:
>
> +1
> Everybody stumbled across this.
>
> On Thu, Dec 11, 2014 at 8:55 AM, Stephan Ewen <[hidden email]> wrote:
>
>> How about we link this Screenshot from the faq as well and add the pointers
>> to the dev guide...
>>