You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by Stephan Ewen <se...@apache.org> on 2014/12/10 19:18:50 UTC

Eclipse and Scala Setup Issues

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

Re: Eclipse and Scala Setup Issues

Posted by Gyula Fora <gy...@gmail.com>.
+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 <rm...@apache.org> wrote:
> 
> +1
> Everybody stumbled across this.
> 
> On Thu, Dec 11, 2014 at 8:55 AM, Stephan Ewen <se...@apache.org> wrote:
> 
>> How about we link this Screenshot from the faq as well and add the pointers
>> to the dev guide...
>> 


Re: Eclipse and Scala Setup Issues

Posted by Robert Metzger <rm...@apache.org>.
+1
Everybody stumbled across this.

On Thu, Dec 11, 2014 at 8:55 AM, Stephan Ewen <se...@apache.org> wrote:

> How about we link this Screenshot from the faq as well and add the pointers
> to the dev guide...
>

Re: Eclipse and Scala Setup Issues

Posted by Stephan Ewen <se...@apache.org>.
How about we link this Screenshot from the faq as well and add the pointers
to the dev guide...

Re: Eclipse and Scala Setup Issues

Posted by Aljoscha Krettek <al...@apache.org>.
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 <he...@gmail.com> 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 <se...@apache.org> 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" <he...@gmail.com>:
>>
>>> I saw that with IntelliJ Idea too.
>>>
>>> Any remedy for it?
>>>
>>> - Henry
>>>
>>> On Wed, Dec 10, 2014 at 10:18 AM, Stephan Ewen <se...@apache.org> 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
>>>

Re: Eclipse and Scala Setup Issues

Posted by Henry Saputra <he...@gmail.com>.
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 <se...@apache.org> 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" <he...@gmail.com>:
>
>> I saw that with IntelliJ Idea too.
>>
>> Any remedy for it?
>>
>> - Henry
>>
>> On Wed, Dec 10, 2014 at 10:18 AM, Stephan Ewen <se...@apache.org> 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
>>

Re: Eclipse and Scala Setup Issues

Posted by Stephan Ewen <se...@apache.org>.
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" <he...@gmail.com>:

> I saw that with IntelliJ Idea too.
>
> Any remedy for it?
>
> - Henry
>
> On Wed, Dec 10, 2014 at 10:18 AM, Stephan Ewen <se...@apache.org> 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
>

Re: Eclipse and Scala Setup Issues

Posted by Henry Saputra <he...@gmail.com>.
I saw that with IntelliJ Idea too.

Any remedy for it?

- Henry

On Wed, Dec 10, 2014 at 10:18 AM, Stephan Ewen <se...@apache.org> 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