This page is no longer maintained — Please continue to the home page at www.scala-lang.org

No Scala context menu in Eclipse using nightly build 9th Mar

3 replies
Ben Hutchison 3
Joined: 2009-11-02,
User offline. Last seen 42 years 45 weeks ago.
I am seeing no Scala context menu in Eclipse 3.5.2 using nightly build 9th Mar. Thus, it doesnt seem to be possible to Add/Remove Scala Nature to a Java project. Other aspects of the SDT seems to be present, eg wizards, scala perspective .

No related (or in fact, any) errors appear in the log after restart to suggest an init failure.

Anyone else getting this? Has this been altered recently?

-Ben
Ben Hutchison 3
Joined: 2009-11-02,
User offline. Last seen 42 years 45 weeks ago.
Re: No Scala context menu in Eclipse using nightly build 9th Mar
1. Upgrading from build of 9th to the 12th resolved the missing Scala menu item for me.

2. However, upon adding Scala nature to a sizeable all-Java project, that was compiling without errors, now results in 7 compile errors.

5 of them seem to be an intolerance to java Raw Types, which (although it legal Java) Im ok with. But two of them are reported without any path, which makes fixing them difficult! Eg

Msg: "`}' expected but eof found."
Path: ""
Location: "Unknown"

Now, somebody must have encountered that EOF /somewhere/, so why is the location unknown? It suggests that some important info has been chucked out somewhere along the way.

Investigations are continuing...
-Ben

On Fri, Mar 12, 2010 at 2:34 PM, Ben Hutchison <brhutchison@gmail.com> wrote:
I am seeing no Scala context menu in Eclipse 3.5.2 using nightly build 9th Mar. Thus, it doesnt seem to be possible to Add/Remove Scala Nature to a Java project. Other aspects of the SDT seems to be present, eg wizards, scala perspective .

No related (or in fact, any) errors appear in the log after restart to suggest an init failure.

Anyone else getting this? Has this been altered recently?

-Ben

Ben Hutchison 3
Joined: 2009-11-02,
User offline. Last seen 42 years 45 weeks ago.
Re: No Scala context menu in Eclipse using nightly build 9th Mar
On Fri, Mar 12, 2010 at 3:11 PM, Ben Hutchison <brhutchison@gmail.com> wrote:
..upon adding Scala nature to a sizeable all-Java project, that was compiling without errors, now results in 7 compile errors... two of them are reported without any path..

Msg: "`}' expected but eof found."
Path: ""
Location: "Unknown"

For unknown reasons, moving some files around seems to have revealed the location of the above error now, as a side-effect.

Its in a file thats /excluded/ from the build path, ie it shouldn't be visible to the compiler. Suggests the SDT Java compiler is not respecting excluded resources?

-Ben
milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: Re: No Scala context menu in Eclipse using nightly build 9

On Fri, Mar 12, 2010 at 6:41 AM, Ben Hutchison wrote:
> Its in a file thats /excluded/ from the build path, ie it shouldn't be
> visible to the compiler. Suggests the SDT Java compiler is not respecting
> excluded resources?

Thanks for the report. The Scala IDE should be respecting excluded
resources, so if you can put together a small sample project which
illustrates the problem and attach it to a Trac ticket that would be
extremely helpful. Thanks.

Cheers,

Miles

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland