- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Scala NetBeans Problem
Fri, 2010-03-19, 20:13
Hello Everyone!
I'm relatively new to Scala itself and already have problems with the Scala NetBeans Plugin. My setting is as following: Win7 or WinXP, NetBeans 6.8, nb-scala-6.8v1.1.0rc1, Scala 2.7.7 or 2.8.0.latest, maven 2.2.1.
My Problem is the following: I create a new maven project (archetype: simple Scala project) and it creates some code that looks right. Like that:
package com.jaz.scalaonmaven
/**
* Hello world!
*
*/
object App extends Application {
println( "Hello World!" )
}
In the line object App extends ... it presents the following Error I can't really understand what the meaning is. The code looks seamless, compiles and produces the right output but with this error no code completion appears and no further errors are shown in netbeans when I enter additional code that really is bullshit.
The Error that appers: "illegal inheritance;
self-type com.jaz.scalaonmaven.App.type does not conform to scala.Applications's selftype Application
class ScalaObject needs to be a trait to be mixed in."
If I create another simple class
class heyJude {}
I get the same Error without the last line (that about the trait).
Writing Scala under NetBeans isn't much fun without proper code completion and error marking (latter especially for a newcomer to Scala).
I think it is some kind of problem with the NetBeans-Scala-Plugin? On my last PC I remember it worked (though I don't know exactly which Plugin version was actual at this point. I remember that one doesn't work and an revision later it was all fine).
I appreciate it if anyone has an Idea or knows something about that.
Thanks in advance,
Greetings,
Georg Tavonious
--Hamburg
I'm relatively new to Scala itself and already have problems with the Scala NetBeans Plugin. My setting is as following: Win7 or WinXP, NetBeans 6.8, nb-scala-6.8v1.1.0rc1, Scala 2.7.7 or 2.8.0.latest, maven 2.2.1.
My Problem is the following: I create a new maven project (archetype: simple Scala project) and it creates some code that looks right. Like that:
package com.jaz.scalaonmaven
/**
* Hello world!
*
*/
object App extends Application {
println( "Hello World!" )
}
In the line object App extends ... it presents the following Error I can't really understand what the meaning is. The code looks seamless, compiles and produces the right output but with this error no code completion appears and no further errors are shown in netbeans when I enter additional code that really is bullshit.
The Error that appers: "illegal inheritance;
self-type com.jaz.scalaonmaven.App.type does not conform to scala.Applications's selftype Application
class ScalaObject needs to be a trait to be mixed in."
If I create another simple class
class heyJude {}
I get the same Error without the last line (that about the trait).
Writing Scala under NetBeans isn't much fun without proper code completion and error marking (latter especially for a newcomer to Scala).
I think it is some kind of problem with the NetBeans-Scala-Plugin? On my last PC I remember it worked (though I don't know exactly which Plugin version was actual at this point. I remember that one doesn't work and an revision later it was all fine).
I appreciate it if anyone has an Idea or knows something about that.
Thanks in advance,
Greetings,
Georg Tavonious
--Hamburg
Fri, 2010-03-19, 23:57
#2
Re: Scala NetBeans Problem
Im running already the latest nightly. Scala in command line also puts the right version (2.8.0.r21213-b20100319020148) if I type "scala -version" into it. Scala works, I guess the path and system vars are set correctly (SCALA_HOME is set, yes). I just can't figure out where the problem is, or do not know how to analyse this further...
On Fri, Mar 19, 2010 at 11:35 PM, Rodrigo Cano <ioniviil@gmail.com> wrote:
On Fri, Mar 19, 2010 at 11:35 PM, Rodrigo Cano <ioniviil@gmail.com> wrote:
I used to have the same problem, it worked out when I installed the latest scala 2.8 nightly version (correctly setting the SCALA_HOME and all that so that the scala plugin works propertly)
On Fri, Mar 19, 2010 at 4:12 PM, Georg Tavonius <g.tavonius@googlemail.com> wrote:Hello Everyone!
I'm relatively new to Scala itself and already have problems with the Scala NetBeans Plugin. My setting is as following: Win7 or WinXP, NetBeans 6.8, nb-scala-6.8v1.1.0rc1, Scala 2.7.7 or 2.8.0.latest, maven 2.2.1.
My Problem is the following: I create a new maven project (archetype: simple Scala project) and it creates some code that looks right. Like that:
package com.jaz.scalaonmaven
/**
* Hello world!
*
*/
object App extends Application {
println( "Hello World!" )
}
In the line object App extends ... it presents the following Error I can't really understand what the meaning is. The code looks seamless, compiles and produces the right output but with this error no code completion appears and no further errors are shown in netbeans when I enter additional code that really is bullshit.
The Error that appers: "illegal inheritance;
self-type com.jaz.scalaonmaven.App.type does not conform to scala.Applications's selftype Application
class ScalaObject needs to be a trait to be mixed in."
If I create another simple class
class heyJude {}
I get the same Error without the last line (that about the trait).
Writing Scala under NetBeans isn't much fun without proper code completion and error marking (latter especially for a newcomer to Scala).
I think it is some kind of problem with the NetBeans-Scala-Plugin? On my last PC I remember it worked (though I don't know exactly which Plugin version was actual at this point. I remember that one doesn't work and an revision later it was all fine).
I appreciate it if anyone has an Idea or knows something about that.
Thanks in advance,
Greetings,
Georg Tavonious
--Hamburg
Sat, 2010-03-20, 04:07
#3
Re: Scala NetBeans Problem
I've been using the Netbeans plugin for a couple of months on a project that has grown steadily (from scratch) to 24 source-files. The files vary in length from 5 lines to 525. The code is a tool that simplifies the use of combinators via use of a swing GUI, and is a little complex in some places.
I'd tried all three IDEs earlier (switching between them many times) in search of a reliable one, and had finally settled on the Netbeans plugin (nb-scala-6.8v1.1.0rc1.zip) on Netbeans 6.8 with fairly recent nightly builds of Scala 2.8.0.
But sometime yesterday Netbeans too gave up. My largest source-file (525 lines) no longer shows up in the overview window ("Navigator" in Netbeans - the one that shows the contents of a file graphically). The code editor window is still there, and still responds to my inputs - but it does not seem to catch any syntax errors (interactively) any more. The lines with syntax errors only show up (in the log below the text pane) after a build. There is no evidence of anything having crashed, no unusual CPU level, or other abnormal behavior.
Is this a problem with a known solution?
I've tried to increase Netbeans heap to 1 Gb (as suggested in some posts), but it would help if someone could say exactly what needs to be done (and how).
I did try to fall back to the Eclipse plugin (a fairly recent nightly build) - and was immediately hit by a flurry of error log messages.
Thanks for any help.
- Sanjay
On Sat, Mar 20, 2010 at 4:22 AM, Georg Tavonius <g.tavonius@googlemail.com> wrote:
I'd tried all three IDEs earlier (switching between them many times) in search of a reliable one, and had finally settled on the Netbeans plugin (nb-scala-6.8v1.1.0rc1.zip) on Netbeans 6.8 with fairly recent nightly builds of Scala 2.8.0.
But sometime yesterday Netbeans too gave up. My largest source-file (525 lines) no longer shows up in the overview window ("Navigator" in Netbeans - the one that shows the contents of a file graphically). The code editor window is still there, and still responds to my inputs - but it does not seem to catch any syntax errors (interactively) any more. The lines with syntax errors only show up (in the log below the text pane) after a build. There is no evidence of anything having crashed, no unusual CPU level, or other abnormal behavior.
Is this a problem with a known solution?
I've tried to increase Netbeans heap to 1 Gb (as suggested in some posts), but it would help if someone could say exactly what needs to be done (and how).
I did try to fall back to the Eclipse plugin (a fairly recent nightly build) - and was immediately hit by a flurry of error log messages.
Thanks for any help.
- Sanjay
On Sat, Mar 20, 2010 at 4:22 AM, Georg Tavonius <g.tavonius@googlemail.com> wrote:
Im running already the latest nightly. Scala in command line also puts the right version (2.8.0.r21213-b20100319020148) if I type "scala -version" into it. Scala works, I guess the path and system vars are set correctly (SCALA_HOME is set, yes). I just can't figure out where the problem is, or do not know how to analyse this further...
On Fri, Mar 19, 2010 at 11:35 PM, Rodrigo Cano <ioniviil@gmail.com> wrote:I used to have the same problem, it worked out when I installed the latest scala 2.8 nightly version (correctly setting the SCALA_HOME and all that so that the scala plugin works propertly)
On Fri, Mar 19, 2010 at 4:12 PM, Georg Tavonius <g.tavonius@googlemail.com> wrote:Hello Everyone!
I'm relatively new to Scala itself and already have problems with the Scala NetBeans Plugin. My setting is as following: Win7 or WinXP, NetBeans 6.8, nb-scala-6.8v1.1.0rc1, Scala 2.7.7 or 2.8.0.latest, maven 2.2.1.
My Problem is the following: I create a new maven project (archetype: simple Scala project) and it creates some code that looks right. Like that:
package com.jaz.scalaonmaven
/**
* Hello world!
*
*/
object App extends Application {
println( "Hello World!" )
}
In the line object App extends ... it presents the following Error I can't really understand what the meaning is. The code looks seamless, compiles and produces the right output but with this error no code completion appears and no further errors are shown in netbeans when I enter additional code that really is bullshit.
The Error that appers: "illegal inheritance;
self-type com.jaz.scalaonmaven.App.type does not conform to scala.Applications's selftype Application
class ScalaObject needs to be a trait to be mixed in."
If I create another simple class
class heyJude {}
I get the same Error without the last line (that about the trait).
Writing Scala under NetBeans isn't much fun without proper code completion and error marking (latter especially for a newcomer to Scala).
I think it is some kind of problem with the NetBeans-Scala-Plugin? On my last PC I remember it worked (though I don't know exactly which Plugin version was actual at this point. I remember that one doesn't work and an revision later it was all fine).
I appreciate it if anyone has an Idea or knows something about that.
Thanks in advance,
Greetings,
Georg Tavonious
--Hamburg
Sat, 2010-03-20, 07:07
#4
Re: Scala NetBeans Problem
Which fairly recent nightly night built of Scala 2.8.0 are you using?
if living in edge of Scala 2.8.0, it better to living in edge of
NetBeans too, that is, tried the NetBeans 6.9 nightly built or at
lease the NetBeans 6.8m1, and with the nightly built scala plugin via
update center.
The last Scala nightly built I tried is 2.8.0.r21087. But per very
recent Scala nightly built (from one or two days before), something
may be broken. I'm waiting for the next official release Beta or RC of
Scala-2.8.0, and will release a corresponding plugin for NetBeans 6.8
-Caoyuan
On Sat, Mar 20, 2010 at 11:04 AM, Sanjay Dasgupta
wrote:
> I've been using the Netbeans plugin for a couple of months on a project that
> has grown steadily (from scratch) to 24 source-files. The files vary in
> length from 5 lines to 525. The code is a tool that simplifies the use of
> combinators via use of a swing GUI, and is a little complex in some places.
> I'd tried all three IDEs earlier (switching between them many times) in
> search of a reliable one, and had finally settled on the Netbeans plugin
> (nb-scala-6.8v1.1.0rc1.zip) on Netbeans 6.8 with fairly recent nightly
> builds of Scala 2.8.0.
> But sometime yesterday Netbeans too gave up. My largest source-file (525
> lines) no longer shows up in the overview window ("Navigator" in Netbeans -
> the one that shows the contents of a file graphically). The code editor
> window is still there, and still responds to my inputs - but it does not
> seem to catch any syntax errors (interactively) any more. The lines with
> syntax errors only show up (in the log below the text pane) after a
> build. There is no evidence of anything having crashed, no unusual CPU
> level, or other abnormal behavior.
> Is this a problem with a known solution?
> I've tried to increase Netbeans heap to 1 Gb (as suggested in some posts),
> but it would help if someone could say exactly what needs to be done (and
> how).
> I did try to fall back to the Eclipse plugin (a fairly recent nightly build)
> - and was immediately hit by a flurry of error log messages.
> Thanks for any help.
> - Sanjay
>
> On Sat, Mar 20, 2010 at 4:22 AM, Georg Tavonius
> wrote:
>>
>> Im running already the latest nightly. Scala in command line also puts the
>> right version (2.8.0.r21213-b20100319020148) if I type "scala -version" into
>> it. Scala works, I guess the path and system vars are set correctly
>> (SCALA_HOME is set, yes). I just can't figure out where the problem is, or
>> do not know how to analyse this further...
>>
>> On Fri, Mar 19, 2010 at 11:35 PM, Rodrigo Cano wrote:
>>>
>>> I used to have the same problem, it worked out when I installed the
>>> latest scala 2.8 nightly version (correctly setting the SCALA_HOME and all
>>> that so that the scala plugin works propertly)
>>>
>>> On Fri, Mar 19, 2010 at 4:12 PM, Georg Tavonius
>>> wrote:
>>>>
>>>> Hello Everyone!
>>>>
>>>> I'm relatively new to Scala itself and already have problems with the
>>>> Scala NetBeans Plugin. My setting is as following: Win7 or WinXP, NetBeans
>>>> 6.8, nb-scala-6.8v1.1.0rc1, Scala 2.7.7 or 2.8.0.latest, maven 2.2.1.
>>>> My Problem is the following: I create a new maven project (archetype:
>>>> simple Scala project) and it creates some code that looks right. Like that:
>>>>
>>>> package com.jaz.scalaonmaven
>>>>
>>>> /**
>>>> * Hello world!
>>>> *
>>>> */
>>>> object App extends Application {
>>>> println( "Hello World!" )
>>>> }
>>>>
>>>> In the line object App extends ... it presents the following Error I
>>>> can't really understand what the meaning is. The code looks seamless,
>>>> compiles and produces the right output but with this error no code
>>>> completion appears and no further errors are shown in netbeans when I enter
>>>> additional code that really is bullshit.
>>>>
>>>> The Error that appers: "illegal inheritance;
>>>> self-type com.jaz.scalaonmaven.App.type does not conform to
>>>> scala.Applications's selftype Application
>>>>
>>>> class ScalaObject needs to be a trait to be mixed in."
>>>>
>>>> If I create another simple class
>>>>
>>>> class heyJude {}
>>>>
>>>> I get the same Error without the last line (that about the trait).
>>>>
>>>> Writing Scala under NetBeans isn't much fun without proper code
>>>> completion and error marking (latter especially for a newcomer to Scala).
>>>>
>>>> I think it is some kind of problem with the NetBeans-Scala-Plugin? On my
>>>> last PC I remember it worked (though I don't know exactly which Plugin
>>>> version was actual at this point. I remember that one doesn't work and an
>>>> revision later it was all fine).
>>>>
>>>> I appreciate it if anyone has an Idea or knows something about that.
>>>>
>>>> Thanks in advance,
>>>> Greetings,
>>>> Georg Tavonious
>>>> --Hamburg
>>>
>>
>
>
Sat, 2010-03-20, 07:47
#5
Re: Scala NetBeans Problem
Hi Caoyuan,
I seem to have the problem isolated:
Typing "new BufferedSource(is)" into the editor seems to trigger the problem:
1) The Navigator window goes blank (and does not recover even after several minutes)2) The code editor pane is still there, but is no longer rendered with all the usual colors for errors 3) Commenting out the offending text makes the IDE spring back to full functionality again.
My Scala run-time was installed from ch.epfl.lamp.sdt_2.8.0.r21082-b20100306035810.zip, but I suppose that isn't the problem.
A few hours back I had a couple of popups from the IDE reporting severe errors which I reported as issue http://netbeans.org/bugzilla/show_bug.cgi?id=177790 (duplicate).
Hope this helps.
- Sanjay
On Sat, Mar 20, 2010 at 11:28 AM, Caoyuan <dcaoyuan@gmail.com> wrote:
I seem to have the problem isolated:
Typing "new BufferedSource(is)" into the editor seems to trigger the problem:
1) The Navigator window goes blank (and does not recover even after several minutes)2) The code editor pane is still there, but is no longer rendered with all the usual colors for errors 3) Commenting out the offending text makes the IDE spring back to full functionality again.
My Scala run-time was installed from ch.epfl.lamp.sdt_2.8.0.r21082-b20100306035810.zip, but I suppose that isn't the problem.
A few hours back I had a couple of popups from the IDE reporting severe errors which I reported as issue http://netbeans.org/bugzilla/show_bug.cgi?id=177790 (duplicate).
Hope this helps.
- Sanjay
On Sat, Mar 20, 2010 at 11:28 AM, Caoyuan <dcaoyuan@gmail.com> wrote:
Which fairly recent nightly night built of Scala 2.8.0 are you using?
if living in edge of Scala 2.8.0, it better to living in edge of
NetBeans too, that is, tried the NetBeans 6.9 nightly built or at
lease the NetBeans 6.8m1, and with the nightly built scala plugin via
update center.
The last Scala nightly built I tried is 2.8.0.r21087. But per very
recent Scala nightly built (from one or two days before), something
may be broken. I'm waiting for the next official release Beta or RC of
Scala-2.8.0, and will release a corresponding plugin for NetBeans 6.8
-Caoyuan
On Sat, Mar 20, 2010 at 11:04 AM, Sanjay Dasgupta
<sanjay.dasgupta@gmail.com> wrote:
> I've been using the Netbeans plugin for a couple of months on a project that
> has grown steadily (from scratch) to 24 source-files. The files vary in
> length from 5 lines to 525. The code is a tool that simplifies the use of
> combinators via use of a swing GUI, and is a little complex in some places.
> I'd tried all three IDEs earlier (switching between them many times) in
> search of a reliable one, and had finally settled on the Netbeans plugin
> (nb-scala-6.8v1.1.0rc1.zip) on Netbeans 6.8 with fairly recent nightly
> builds of Scala 2.8.0.
> But sometime yesterday Netbeans too gave up. My largest source-file (525
> lines) no longer shows up in the overview window ("Navigator" in Netbeans -
> the one that shows the contents of a file graphically). The code editor
> window is still there, and still responds to my inputs - but it does not
> seem to catch any syntax errors (interactively) any more. The lines with
> syntax errors only show up (in the log below the text pane) after a
> build. There is no evidence of anything having crashed, no unusual CPU
> level, or other abnormal behavior.
> Is this a problem with a known solution?
> I've tried to increase Netbeans heap to 1 Gb (as suggested in some posts),
> but it would help if someone could say exactly what needs to be done (and
> how).
> I did try to fall back to the Eclipse plugin (a fairly recent nightly build)
> - and was immediately hit by a flurry of error log messages.
> Thanks for any help.
> - Sanjay
>
> On Sat, Mar 20, 2010 at 4:22 AM, Georg Tavonius <g.tavonius@googlemail.com>
> wrote:
>>
>> Im running already the latest nightly. Scala in command line also puts the
>> right version (2.8.0.r21213-b20100319020148) if I type "scala -version" into
>> it. Scala works, I guess the path and system vars are set correctly
>> (SCALA_HOME is set, yes). I just can't figure out where the problem is, or
>> do not know how to analyse this further...
>>
>> On Fri, Mar 19, 2010 at 11:35 PM, Rodrigo Cano <ioniviil@gmail.com> wrote:
>>>
>>> I used to have the same problem, it worked out when I installed the
>>> latest scala 2.8 nightly version (correctly setting the SCALA_HOME and all
>>> that so that the scala plugin works propertly)
>>>
>>> On Fri, Mar 19, 2010 at 4:12 PM, Georg Tavonius
>>> <g.tavonius@googlemail.com> wrote:
>>>>
>>>> Hello Everyone!
>>>>
>>>> I'm relatively new to Scala itself and already have problems with the
>>>> Scala NetBeans Plugin. My setting is as following: Win7 or WinXP, NetBeans
>>>> 6.8, nb-scala-6.8v1.1.0rc1, Scala 2.7.7 or 2.8.0.latest, maven 2.2.1.
>>>> My Problem is the following: I create a new maven project (archetype:
>>>> simple Scala project) and it creates some code that looks right. Like that:
>>>>
>>>> package com.jaz.scalaonmaven
>>>>
>>>> /**
>>>> * Hello world!
>>>> *
>>>> */
>>>> object App extends Application {
>>>> println( "Hello World!" )
>>>> }
>>>>
>>>> In the line object App extends ... it presents the following Error I
>>>> can't really understand what the meaning is. The code looks seamless,
>>>> compiles and produces the right output but with this error no code
>>>> completion appears and no further errors are shown in netbeans when I enter
>>>> additional code that really is bullshit.
>>>>
>>>> The Error that appers: "illegal inheritance;
>>>> self-type com.jaz.scalaonmaven.App.type does not conform to
>>>> scala.Applications's selftype Application
>>>>
>>>> class ScalaObject needs to be a trait to be mixed in."
>>>>
>>>> If I create another simple class
>>>>
>>>> class heyJude {}
>>>>
>>>> I get the same Error without the last line (that about the trait).
>>>>
>>>> Writing Scala under NetBeans isn't much fun without proper code
>>>> completion and error marking (latter especially for a newcomer to Scala).
>>>>
>>>> I think it is some kind of problem with the NetBeans-Scala-Plugin? On my
>>>> last PC I remember it worked (though I don't know exactly which Plugin
>>>> version was actual at this point. I remember that one doesn't work and an
>>>> revision later it was all fine).
>>>>
>>>> I appreciate it if anyone has an Idea or knows something about that.
>>>>
>>>> Thanks in advance,
>>>> Greetings,
>>>> Georg Tavonious
>>>> --Hamburg
>>>
>>
>
>
Sat, 2010-03-20, 09:07
#6
Re: Scala NetBeans Problem
Hi Caoyuan,
Where can I find the nightly builds of the Scala plugin?
I don't really "live on the edge" but would like to update my tools once a week or so.
Thanks for your help.
- Sanjay
On Sat, Mar 20, 2010 at 11:28 AM, Caoyuan <dcaoyuan@gmail.com> wrote:
Where can I find the nightly builds of the Scala plugin?
I don't really "live on the edge" but would like to update my tools once a week or so.
Thanks for your help.
- Sanjay
On Sat, Mar 20, 2010 at 11:28 AM, Caoyuan <dcaoyuan@gmail.com> wrote:
Which fairly recent nightly night built of Scala 2.8.0 are you using?
if living in edge of Scala 2.8.0, it better to living in edge of
NetBeans too, that is, tried the NetBeans 6.9 nightly built or at
lease the NetBeans 6.8m1, and with the nightly built scala plugin via
update center.
The last Scala nightly built I tried is 2.8.0.r21087. But per very
recent Scala nightly built (from one or two days before), something
may be broken. I'm waiting for the next official release Beta or RC of
Scala-2.8.0, and will release a corresponding plugin for NetBeans 6.8
-Caoyuan
On Sat, Mar 20, 2010 at 11:04 AM, Sanjay Dasgupta
<sanjay.dasgupta@gmail.com> wrote:
> I've been using the Netbeans plugin for a couple of months on a project that
> has grown steadily (from scratch) to 24 source-files. The files vary in
> length from 5 lines to 525. The code is a tool that simplifies the use of
> combinators via use of a swing GUI, and is a little complex in some places.
> I'd tried all three IDEs earlier (switching between them many times) in
> search of a reliable one, and had finally settled on the Netbeans plugin
> (nb-scala-6.8v1.1.0rc1.zip) on Netbeans 6.8 with fairly recent nightly
> builds of Scala 2.8.0.
> But sometime yesterday Netbeans too gave up. My largest source-file (525
> lines) no longer shows up in the overview window ("Navigator" in Netbeans -
> the one that shows the contents of a file graphically). The code editor
> window is still there, and still responds to my inputs - but it does not
> seem to catch any syntax errors (interactively) any more. The lines with
> syntax errors only show up (in the log below the text pane) after a
> build. There is no evidence of anything having crashed, no unusual CPU
> level, or other abnormal behavior.
> Is this a problem with a known solution?
> I've tried to increase Netbeans heap to 1 Gb (as suggested in some posts),
> but it would help if someone could say exactly what needs to be done (and
> how).
> I did try to fall back to the Eclipse plugin (a fairly recent nightly build)
> - and was immediately hit by a flurry of error log messages.
> Thanks for any help.
> - Sanjay
>
> On Sat, Mar 20, 2010 at 4:22 AM, Georg Tavonius <g.tavonius@googlemail.com>
> wrote:
>>
>> Im running already the latest nightly. Scala in command line also puts the
>> right version (2.8.0.r21213-b20100319020148) if I type "scala -version" into
>> it. Scala works, I guess the path and system vars are set correctly
>> (SCALA_HOME is set, yes). I just can't figure out where the problem is, or
>> do not know how to analyse this further...
>>
>> On Fri, Mar 19, 2010 at 11:35 PM, Rodrigo Cano <ioniviil@gmail.com> wrote:
>>>
>>> I used to have the same problem, it worked out when I installed the
>>> latest scala 2.8 nightly version (correctly setting the SCALA_HOME and all
>>> that so that the scala plugin works propertly)
>>>
>>> On Fri, Mar 19, 2010 at 4:12 PM, Georg Tavonius
>>> <g.tavonius@googlemail.com> wrote:
>>>>
>>>> Hello Everyone!
>>>>
>>>> I'm relatively new to Scala itself and already have problems with the
>>>> Scala NetBeans Plugin. My setting is as following: Win7 or WinXP, NetBeans
>>>> 6.8, nb-scala-6.8v1.1.0rc1, Scala 2.7.7 or 2.8.0.latest, maven 2.2.1.
>>>> My Problem is the following: I create a new maven project (archetype:
>>>> simple Scala project) and it creates some code that looks right. Like that:
>>>>
>>>> package com.jaz.scalaonmaven
>>>>
>>>> /**
>>>> * Hello world!
>>>> *
>>>> */
>>>> object App extends Application {
>>>> println( "Hello World!" )
>>>> }
>>>>
>>>> In the line object App extends ... it presents the following Error I
>>>> can't really understand what the meaning is. The code looks seamless,
>>>> compiles and produces the right output but with this error no code
>>>> completion appears and no further errors are shown in netbeans when I enter
>>>> additional code that really is bullshit.
>>>>
>>>> The Error that appers: "illegal inheritance;
>>>> self-type com.jaz.scalaonmaven.App.type does not conform to
>>>> scala.Applications's selftype Application
>>>>
>>>> class ScalaObject needs to be a trait to be mixed in."
>>>>
>>>> If I create another simple class
>>>>
>>>> class heyJude {}
>>>>
>>>> I get the same Error without the last line (that about the trait).
>>>>
>>>> Writing Scala under NetBeans isn't much fun without proper code
>>>> completion and error marking (latter especially for a newcomer to Scala).
>>>>
>>>> I think it is some kind of problem with the NetBeans-Scala-Plugin? On my
>>>> last PC I remember it worked (though I don't know exactly which Plugin
>>>> version was actual at this point. I remember that one doesn't work and an
>>>> revision later it was all fine).
>>>>
>>>> I appreciate it if anyone has an Idea or knows something about that.
>>>>
>>>> Thanks in advance,
>>>> Greetings,
>>>> Georg Tavonious
>>>> --Hamburg
>>>
>>
>
>
Sat, 2010-03-20, 09:47
#7
Re: Scala NetBeans Problem
Hi,
On Sat, Mar 20, 2010 at 3:58 PM, Sanjay Dasgupta
wrote:
> Hi Caoyuan,
> Where can I find the nightly builds of the Scala plugin?
> I don't really "live on the edge" but would like to update my tools once a
> week or so.
> Thanks for your help.
Nightly built of scala plugin only works under NetBeans 6.9 nightly
built, the instructions of
http://wiki.netbeans.org/Scala#3._Adventure_with_NetBeans_Nightly_Build
should be still valid. If not, please let me know.
-Caoyuan
> - Sanjay
>
> On Sat, Mar 20, 2010 at 11:28 AM, Caoyuan wrote:
>>
>> Which fairly recent nightly night built of Scala 2.8.0 are you using?
>> if living in edge of Scala 2.8.0, it better to living in edge of
>> NetBeans too, that is, tried the NetBeans 6.9 nightly built or at
>> lease the NetBeans 6.8m1, and with the nightly built scala plugin via
>> update center.
>>
>> The last Scala nightly built I tried is 2.8.0.r21087. But per very
>> recent Scala nightly built (from one or two days before), something
>> may be broken. I'm waiting for the next official release Beta or RC of
>> Scala-2.8.0, and will release a corresponding plugin for NetBeans 6.8
>>
>> -Caoyuan
>>
>> On Sat, Mar 20, 2010 at 11:04 AM, Sanjay Dasgupta
>> wrote:
>> > I've been using the Netbeans plugin for a couple of months on a project
>> > that
>> > has grown steadily (from scratch) to 24 source-files. The files vary in
>> > length from 5 lines to 525. The code is a tool that simplifies the use
>> > of
>> > combinators via use of a swing GUI, and is a little complex in some
>> > places.
>> > I'd tried all three IDEs earlier (switching between them many times) in
>> > search of a reliable one, and had finally settled on the Netbeans plugin
>> > (nb-scala-6.8v1.1.0rc1.zip) on Netbeans 6.8 with fairly recent nightly
>> > builds of Scala 2.8.0.
>> > But sometime yesterday Netbeans too gave up. My largest source-file (525
>> > lines) no longer shows up in the overview window ("Navigator" in
>> > Netbeans -
>> > the one that shows the contents of a file graphically). The code editor
>> > window is still there, and still responds to my inputs - but it does not
>> > seem to catch any syntax errors (interactively) any more. The lines with
>> > syntax errors only show up (in the log below the text pane) after a
>> > build. There is no evidence of anything having crashed, no unusual CPU
>> > level, or other abnormal behavior.
>> > Is this a problem with a known solution?
>> > I've tried to increase Netbeans heap to 1 Gb (as suggested in some
>> > posts),
>> > but it would help if someone could say exactly what needs to be done
>> > (and
>> > how).
>> > I did try to fall back to the Eclipse plugin (a fairly recent nightly
>> > build)
>> > - and was immediately hit by a flurry of error log messages.
>> > Thanks for any help.
>> > - Sanjay
>> >
>> > On Sat, Mar 20, 2010 at 4:22 AM, Georg Tavonius
>> >
>> > wrote:
>> >>
>> >> Im running already the latest nightly. Scala in command line also puts
>> >> the
>> >> right version (2.8.0.r21213-b20100319020148) if I type "scala -version"
>> >> into
>> >> it. Scala works, I guess the path and system vars are set correctly
>> >> (SCALA_HOME is set, yes). I just can't figure out where the problem is,
>> >> or
>> >> do not know how to analyse this further...
>> >>
>> >> On Fri, Mar 19, 2010 at 11:35 PM, Rodrigo Cano
>> >> wrote:
>> >>>
>> >>> I used to have the same problem, it worked out when I installed the
>> >>> latest scala 2.8 nightly version (correctly setting the SCALA_HOME and
>> >>> all
>> >>> that so that the scala plugin works propertly)
>> >>>
>> >>> On Fri, Mar 19, 2010 at 4:12 PM, Georg Tavonius
>> >>> wrote:
>> >>>>
>> >>>> Hello Everyone!
>> >>>>
>> >>>> I'm relatively new to Scala itself and already have problems with the
>> >>>> Scala NetBeans Plugin. My setting is as following: Win7 or WinXP,
>> >>>> NetBeans
>> >>>> 6.8, nb-scala-6.8v1.1.0rc1, Scala 2.7.7 or 2.8.0.latest, maven 2.2.1.
>> >>>> My Problem is the following: I create a new maven project (archetype:
>> >>>> simple Scala project) and it creates some code that looks right. Like
>> >>>> that:
>> >>>>
>> >>>> package com.jaz.scalaonmaven
>> >>>>
>> >>>> /**
>> >>>> * Hello world!
>> >>>> *
>> >>>> */
>> >>>> object App extends Application {
>> >>>> println( "Hello World!" )
>> >>>> }
>> >>>>
>> >>>> In the line object App extends ... it presents the following Error I
>> >>>> can't really understand what the meaning is. The code looks seamless,
>> >>>> compiles and produces the right output but with this error no code
>> >>>> completion appears and no further errors are shown in netbeans when I
>> >>>> enter
>> >>>> additional code that really is bullshit.
>> >>>>
>> >>>> The Error that appers: "illegal inheritance;
>> >>>> self-type com.jaz.scalaonmaven.App.type does not conform to
>> >>>> scala.Applications's selftype Application
>> >>>>
>> >>>> class ScalaObject needs to be a trait to be mixed in."
>> >>>>
>> >>>> If I create another simple class
>> >>>>
>> >>>> class heyJude {}
>> >>>>
>> >>>> I get the same Error without the last line (that about the trait).
>> >>>>
>> >>>> Writing Scala under NetBeans isn't much fun without proper code
>> >>>> completion and error marking (latter especially for a newcomer to
>> >>>> Scala).
>> >>>>
>> >>>> I think it is some kind of problem with the NetBeans-Scala-Plugin? On
>> >>>> my
>> >>>> last PC I remember it worked (though I don't know exactly which
>> >>>> Plugin
>> >>>> version was actual at this point. I remember that one doesn't work
>> >>>> and an
>> >>>> revision later it was all fine).
>> >>>>
>> >>>> I appreciate it if anyone has an Idea or knows something about that.
>> >>>>
>> >>>> Thanks in advance,
>> >>>> Greetings,
>> >>>> Georg Tavonious
>> >>>> --Hamburg
>> >>>
>> >>
>> >
>> >
>
>
Sun, 2010-03-21, 14:17
#8
Re: Scala NetBeans Problem
Hi Caoyuan,
If I understood your message correctly, then the latest development
build of Netbeans should work with the Scala revision 21087.
Unfortunately that is not true for me.
I tried the latest Netbeans development build (of March 21th). The
SCALA_HOME environment variable is pointing to a Scala version build
from SVN (using Revision 21087). Installed Plugins are Scala Kit
(Version 0.16.1) and Scala Runtime (Version 2.8.0.21224). When I start
Netbeans I get a ClassNotFoundException (see below).
When I try to deactivate the Scala Runtime Plugin (because it is of a
later revision (i.e. 21224) then the Scala Kit Plugin is also
deactivated. Is there a way to force the Scala Plugin to use the Scala
distribution that is pointed to by the SCALA_HOME environment variable?
In general, I do not understand the role of the Scala Runtime Plugin in
case that the SCALA_HOME environment is set. Which one takes precedence?
Ignoring the ClassNotFoundException and opening the interactive Scala
Shell in Netbeans I see that revision 21087 is used. Then what is the
Scala Runtime Plugin used for?
Who is distributing the Scala Runtime Plugin? Does it happen automatically?
Thanks for your attention.
--Stefan
PS: It would be great if you could anounce on this mailing list when a
consistent constellation (Netbeans Development Build, Scala Kit Plugin,
and Scala Runtime Plugin) are available.
java.lang.ClassNotFoundException: scala.tools.nsc.ScalacSettings
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:259)
Caused: java.lang.ClassNotFoundException: scala.tools.nsc.ScalacSettings
starting from ModuleCL@36527f[org.netbeans.modules.scala.core] with
possible defining loaders [ModuleCL@b2c6a6[org.netbeans.libs.scala]] and
declared parents [ModuleCL@513d61[org.openide.io],
ModuleCL@b2c6a6[org.netbeans.libs.scala],
ModuleCL@16f144c[org.netbeans.modules.java.project],
ModuleCL@d09ad3[org.netbeans.modules.editor],
ModuleCL@1e228bc[org.netbeans.modules.projectapi],
org.netbeans.MainImpl$BootClassLoader@1050e1f,
ModuleCL@1fd6bea[org.netbeans.modules.java.source],
ModuleCL@f9c40[org.netbeans.modules.lexer],
ModuleCL@17431b9[org.openide.text],
ModuleCL@14520eb[org.openide.dialogs],
ModuleCL@16f25a7[org.netbeans.modules.editor.lib],
ModuleCL@134b07e[org.netbeans.libs.javacapi],
ModuleCL@13f991[org.netbeans.api.java.classpath],
ModuleCL@3dc0bb[org.openide.loaders],
ModuleCL@acb158[org.openide.windows],
ModuleCL@13c6a22[org.netbeans.modules.parsing.api],
ModuleCL@1976011[org.netbeans.modules.classfile],
ModuleCL@1060478[org.netbeans.modules.editor.util],
ModuleCL@1abcc03[org.netbeans.modules.java.sourceui],
ModuleCL@340101[org.netbeans.modules.java.lexer],
ModuleCL@3c9217[org.openide.awt],
ModuleCL@1aae94f[org.netbeans.modules.projectuiapi],
ModuleCL@491c4c[org.netbeans.modules.editor.lib2],
ModuleCL@182bcde[org.netbeans.modules.queries],
ModuleCL@1742700[org.openide.nodes],
ModuleCL@1cb52ae[org.netbeans.modules.csl.api],
ModuleCL@7cbde6[org.netbeans.modules.refactoring.api],
ModuleCL@10ffb38[xtc],
ModuleCL@1af33d6[org.netbeans.modules.editor.mimelookup],
ModuleCL@db4fa2[org.netbeans.modules.editor.settings]]
at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:261)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
Caused: java.lang.NoClassDefFoundError: scala/tools/nsc/ScalacSettings
at
org.netbeans.modules.scala.core.ScalaParserResult.global(ScalaParserResult.scala:114)
at
org.netbeans.modules.scala.core.ScalaParserResult.rootScope(ScalaParserResult.scala:123)
at
org.netbeans.modules.scala.editor.ScalaStructureAnalyzer.scan(ScalaStructureAnalyzer.scala:67)
at
org.netbeans.modules.csl.navigation.ElementScanningTask$1.run(ElementScanningTask.java:121)
at
org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:151)
at
org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:135)
at
org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:190)
at
org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:103)
at
org.netbeans.modules.csl.navigation.ElementScanningTask.run(ElementScanningTask.java:112)
at
org.netbeans.modules.csl.navigation.ClassMemberNavigatorSourceFactory$ProxyElementScanningTask.run(ClassMemberNavigatorSourceFactory.java:141)
at
org.netbeans.modules.csl.navigation.ClassMemberNavigatorSourceFactory$ProxyElementScanningTask.run(ClassMemberNavigatorSourceFactory.java:119)
at
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:654)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[catch] at java.lang.Thread.run(Thread.java:619)
Am 20.03.2010 06:58, schrieb Caoyuan:
> Which fairly recent nightly night built of Scala 2.8.0 are you using?
> if living in edge of Scala 2.8.0, it better to living in edge of
> NetBeans too, that is, tried the NetBeans 6.9 nightly built or at
> lease the NetBeans 6.8m1, and with the nightly built scala plugin via
> update center.
>
> The last Scala nightly built I tried is 2.8.0.r21087. But per very
> recent Scala nightly built (from one or two days before), something
> may be broken. I'm waiting for the next official release Beta or RC of
> Scala-2.8.0, and will release a corresponding plugin for NetBeans 6.8
>
> -Caoyuan
>
> On Sat, Mar 20, 2010 at 11:04 AM, Sanjay Dasgupta
> wrote:
>
>> I've been using the Netbeans plugin for a couple of months on a project that
>> has grown steadily (from scratch) to 24 source-files. The files vary in
>> length from 5 lines to 525. The code is a tool that simplifies the use of
>> combinators via use of a swing GUI, and is a little complex in some places.
>> I'd tried all three IDEs earlier (switching between them many times) in
>> search of a reliable one, and had finally settled on the Netbeans plugin
>> (nb-scala-6.8v1.1.0rc1.zip) on Netbeans 6.8 with fairly recent nightly
>> builds of Scala 2.8.0.
>> But sometime yesterday Netbeans too gave up. My largest source-file (525
>> lines) no longer shows up in the overview window ("Navigator" in Netbeans -
>> the one that shows the contents of a file graphically). The code editor
>> window is still there, and still responds to my inputs - but it does not
>> seem to catch any syntax errors (interactively) any more. The lines with
>> syntax errors only show up (in the log below the text pane) after a
>> build. There is no evidence of anything having crashed, no unusual CPU
>> level, or other abnormal behavior.
>> Is this a problem with a known solution?
>> I've tried to increase Netbeans heap to 1 Gb (as suggested in some posts),
>> but it would help if someone could say exactly what needs to be done (and
>> how).
>> I did try to fall back to the Eclipse plugin (a fairly recent nightly build)
>> - and was immediately hit by a flurry of error log messages.
>> Thanks for any help.
>> - Sanjay
>>
>> On Sat, Mar 20, 2010 at 4:22 AM, Georg Tavonius
>> wrote:
>>
>>> Im running already the latest nightly. Scala in command line also puts the
>>> right version (2.8.0.r21213-b20100319020148) if I type "scala -version" into
>>> it. Scala works, I guess the path and system vars are set correctly
>>> (SCALA_HOME is set, yes). I just can't figure out where the problem is, or
>>> do not know how to analyse this further...
>>>
>>> On Fri, Mar 19, 2010 at 11:35 PM, Rodrigo Cano wrote:
>>>
>>>> I used to have the same problem, it worked out when I installed the
>>>> latest scala 2.8 nightly version (correctly setting the SCALA_HOME and all
>>>> that so that the scala plugin works propertly)
>>>>
>>>> On Fri, Mar 19, 2010 at 4:12 PM, Georg Tavonius
>>>> wrote:
>>>>
>>>>> Hello Everyone!
>>>>>
>>>>> I'm relatively new to Scala itself and already have problems with the
>>>>> Scala NetBeans Plugin. My setting is as following: Win7 or WinXP, NetBeans
>>>>> 6.8, nb-scala-6.8v1.1.0rc1, Scala 2.7.7 or 2.8.0.latest, maven 2.2.1.
>>>>> My Problem is the following: I create a new maven project (archetype:
>>>>> simple Scala project) and it creates some code that looks right. Like that:
>>>>>
>>>>> package com.jaz.scalaonmaven
>>>>>
>>>>> /**
>>>>> * Hello world!
>>>>> *
>>>>> */
>>>>> object App extends Application {
>>>>> println( "Hello World!" )
>>>>> }
>>>>>
>>>>> In the line object App extends ... it presents the following Error I
>>>>> can't really understand what the meaning is. The code looks seamless,
>>>>> compiles and produces the right output but with this error no code
>>>>> completion appears and no further errors are shown in netbeans when I enter
>>>>> additional code that really is bullshit.
>>>>>
>>>>> The Error that appers: "illegal inheritance;
>>>>> self-type com.jaz.scalaonmaven.App.type does not conform to
>>>>> scala.Applications's selftype Application
>>>>>
>>>>> class ScalaObject needs to be a trait to be mixed in."
>>>>>
>>>>> If I create another simple class
>>>>>
>>>>> class heyJude {}
>>>>>
>>>>> I get the same Error without the last line (that about the trait).
>>>>>
>>>>> Writing Scala under NetBeans isn't much fun without proper code
>>>>> completion and error marking (latter especially for a newcomer to Scala).
>>>>>
>>>>> I think it is some kind of problem with the NetBeans-Scala-Plugin? On my
>>>>> last PC I remember it worked (though I don't know exactly which Plugin
>>>>> version was actual at this point. I remember that one doesn't work and an
>>>>> revision later it was all fine).
>>>>>
>>>>> I appreciate it if anyone has an Idea or knows something about that.
>>>>>
>>>>> Thanks in advance,
>>>>> Greetings,
>>>>> Georg Tavonious
>>>>> --Hamburg
>>>>>
>>>>
>>>
>>
>>
>
Sun, 2010-03-21, 20:17
#9
Re: Scala NetBeans Problem
Hi Stefan,
It's really strange, I just re-built whole NetBeans' trunk, and scala
plugin code, it works. Maybe you can try to do the following:
Find the netbeans' user configuration path of your OS, it's recorded
under PathOfNetBeansInstall/etc/netbeans.conf, for example:
netbeans_default_userdir="${HOME}/.netbeans/dev"
then remove the directory of ${HOME}/.netbeans/dev, restart netbeans,
re-install scala plugin.
For Ant Scala project that created via NetBeans, the project building
and interactive shell using $SCALA_HOME,
For Maven Scala project, the project building using Scala lib that was
assigned by pom.xml.
The library.jar of Scala Runtime module of NetBeans Scala plugin is
used only by this plugin itself. So, the parsing result you see under
editor window is a mixed result of compiler.jar of NetBeans' Scala
Runtime plus the library.jar of $SCALA_HOME.
Don't be confused by above sentences, let's try to explain it upon on word:
NetBeans only uses the binding parser to analyze your code, and your
code totally under classpath of $SCALA_HOME or pom.xml.
-Caoyuan
On Sun, Mar 21, 2010 at 9:13 PM, Stefan Wachter wrote:
> Hi Caoyuan,
>
> If I understood your message correctly, then the latest development
> build of Netbeans should work with the Scala revision 21087.
> Unfortunately that is not true for me.
>
> I tried the latest Netbeans development build (of March 21th). The
> SCALA_HOME environment variable is pointing to a Scala version build
> from SVN (using Revision 21087). Installed Plugins are Scala Kit
> (Version 0.16.1) and Scala Runtime (Version 2.8.0.21224). When I start
> Netbeans I get a ClassNotFoundException (see below).
>
> When I try to deactivate the Scala Runtime Plugin (because it is of a
> later revision (i.e. 21224) then the Scala Kit Plugin is also
> deactivated. Is there a way to force the Scala Plugin to use the Scala
> distribution that is pointed to by the SCALA_HOME environment variable?
>
> In general, I do not understand the role of the Scala Runtime Plugin in
> case that the SCALA_HOME environment is set. Which one takes precedence?
> Ignoring the ClassNotFoundException and opening the interactive Scala
> Shell in Netbeans I see that revision 21087 is used. Then what is the
> Scala Runtime Plugin used for?
>
> Who is distributing the Scala Runtime Plugin? Does it happen automatically?
>
> Thanks for your attention.
>
> --Stefan
>
> PS: It would be great if you could anounce on this mailing list when a
> consistent constellation (Netbeans Development Build, Scala Kit Plugin,
> and Scala Runtime Plugin) are available.
>
>
>
> java.lang.ClassNotFoundException: scala.tools.nsc.ScalacSettings
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:259)
> Caused: java.lang.ClassNotFoundException: scala.tools.nsc.ScalacSettings
> starting from ModuleCL@36527f[org.netbeans.modules.scala.core] with
> possible defining loaders [ModuleCL@b2c6a6[org.netbeans.libs.scala]] and
> declared parents [ModuleCL@513d61[org.openide.io],
> ModuleCL@b2c6a6[org.netbeans.libs.scala],
> ModuleCL@16f144c[org.netbeans.modules.java.project],
> ModuleCL@d09ad3[org.netbeans.modules.editor],
> ModuleCL@1e228bc[org.netbeans.modules.projectapi],
> org.netbeans.MainImpl$BootClassLoader@1050e1f,
> ModuleCL@1fd6bea[org.netbeans.modules.java.source],
> ModuleCL@f9c40[org.netbeans.modules.lexer],
> ModuleCL@17431b9[org.openide.text],
> ModuleCL@14520eb[org.openide.dialogs],
> ModuleCL@16f25a7[org.netbeans.modules.editor.lib],
> ModuleCL@134b07e[org.netbeans.libs.javacapi],
> ModuleCL@13f991[org.netbeans.api.java.classpath],
> ModuleCL@3dc0bb[org.openide.loaders],
> ModuleCL@acb158[org.openide.windows],
> ModuleCL@13c6a22[org.netbeans.modules.parsing.api],
> ModuleCL@1976011[org.netbeans.modules.classfile],
> ModuleCL@1060478[org.netbeans.modules.editor.util],
> ModuleCL@1abcc03[org.netbeans.modules.java.sourceui],
> ModuleCL@340101[org.netbeans.modules.java.lexer],
> ModuleCL@3c9217[org.openide.awt],
> ModuleCL@1aae94f[org.netbeans.modules.projectuiapi],
> ModuleCL@491c4c[org.netbeans.modules.editor.lib2],
> ModuleCL@182bcde[org.netbeans.modules.queries],
> ModuleCL@1742700[org.openide.nodes],
> ModuleCL@1cb52ae[org.netbeans.modules.csl.api],
> ModuleCL@7cbde6[org.netbeans.modules.refactoring.api],
> ModuleCL@10ffb38[xtc],
> ModuleCL@1af33d6[org.netbeans.modules.editor.mimelookup],
> ModuleCL@db4fa2[org.netbeans.modules.editor.settings]]
> at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:261)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
> Caused: java.lang.NoClassDefFoundError: scala/tools/nsc/ScalacSettings
> at
> org.netbeans.modules.scala.core.ScalaParserResult.global(ScalaParserResult.scala:114)
> at
> org.netbeans.modules.scala.core.ScalaParserResult.rootScope(ScalaParserResult.scala:123)
> at
> org.netbeans.modules.scala.editor.ScalaStructureAnalyzer.scan(ScalaStructureAnalyzer.scala:67)
> at
> org.netbeans.modules.csl.navigation.ElementScanningTask$1.run(ElementScanningTask.java:121)
> at
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:151)
> at
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:135)
> at
> org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:190)
> at
> org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:103)
> at
> org.netbeans.modules.csl.navigation.ElementScanningTask.run(ElementScanningTask.java:112)
> at
> org.netbeans.modules.csl.navigation.ClassMemberNavigatorSourceFactory$ProxyElementScanningTask.run(ClassMemberNavigatorSourceFactory.java:141)
> at
> org.netbeans.modules.csl.navigation.ClassMemberNavigatorSourceFactory$ProxyElementScanningTask.run(ClassMemberNavigatorSourceFactory.java:119)
> at
> org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:654)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> [catch] at java.lang.Thread.run(Thread.java:619)
>
>
> Am 20.03.2010 06:58, schrieb Caoyuan:
>> Which fairly recent nightly night built of Scala 2.8.0 are you using?
>> if living in edge of Scala 2.8.0, it better to living in edge of
>> NetBeans too, that is, tried the NetBeans 6.9 nightly built or at
>> lease the NetBeans 6.8m1, and with the nightly built scala plugin via
>> update center.
>>
>> The last Scala nightly built I tried is 2.8.0.r21087. But per very
>> recent Scala nightly built (from one or two days before), something
>> may be broken. I'm waiting for the next official release Beta or RC of
>> Scala-2.8.0, and will release a corresponding plugin for NetBeans 6.8
>>
>> -Caoyuan
>>
>> On Sat, Mar 20, 2010 at 11:04 AM, Sanjay Dasgupta
>> wrote:
>>
>>> I've been using the Netbeans plugin for a couple of months on a project that
>>> has grown steadily (from scratch) to 24 source-files. The files vary in
>>> length from 5 lines to 525. The code is a tool that simplifies the use of
>>> combinators via use of a swing GUI, and is a little complex in some places.
>>> I'd tried all three IDEs earlier (switching between them many times) in
>>> search of a reliable one, and had finally settled on the Netbeans plugin
>>> (nb-scala-6.8v1.1.0rc1.zip) on Netbeans 6.8 with fairly recent nightly
>>> builds of Scala 2.8.0.
>>> But sometime yesterday Netbeans too gave up. My largest source-file (525
>>> lines) no longer shows up in the overview window ("Navigator" in Netbeans -
>>> the one that shows the contents of a file graphically). The code editor
>>> window is still there, and still responds to my inputs - but it does not
>>> seem to catch any syntax errors (interactively) any more. The lines with
>>> syntax errors only show up (in the log below the text pane) after a
>>> build. There is no evidence of anything having crashed, no unusual CPU
>>> level, or other abnormal behavior.
>>> Is this a problem with a known solution?
>>> I've tried to increase Netbeans heap to 1 Gb (as suggested in some posts),
>>> but it would help if someone could say exactly what needs to be done (and
>>> how).
>>> I did try to fall back to the Eclipse plugin (a fairly recent nightly build)
>>> - and was immediately hit by a flurry of error log messages.
>>> Thanks for any help.
>>> - Sanjay
>>>
>>> On Sat, Mar 20, 2010 at 4:22 AM, Georg Tavonius
>>> wrote:
>>>
>>>> Im running already the latest nightly. Scala in command line also puts the
>>>> right version (2.8.0.r21213-b20100319020148) if I type "scala -version" into
>>>> it. Scala works, I guess the path and system vars are set correctly
>>>> (SCALA_HOME is set, yes). I just can't figure out where the problem is, or
>>>> do not know how to analyse this further...
>>>>
>>>> On Fri, Mar 19, 2010 at 11:35 PM, Rodrigo Cano wrote:
>>>>
>>>>> I used to have the same problem, it worked out when I installed the
>>>>> latest scala 2.8 nightly version (correctly setting the SCALA_HOME and all
>>>>> that so that the scala plugin works propertly)
>>>>>
>>>>> On Fri, Mar 19, 2010 at 4:12 PM, Georg Tavonius
>>>>> wrote:
>>>>>
>>>>>> Hello Everyone!
>>>>>>
>>>>>> I'm relatively new to Scala itself and already have problems with the
>>>>>> Scala NetBeans Plugin. My setting is as following: Win7 or WinXP, NetBeans
>>>>>> 6.8, nb-scala-6.8v1.1.0rc1, Scala 2.7.7 or 2.8.0.latest, maven 2.2.1.
>>>>>> My Problem is the following: I create a new maven project (archetype:
>>>>>> simple Scala project) and it creates some code that looks right. Like that:
>>>>>>
>>>>>> package com.jaz.scalaonmaven
>>>>>>
>>>>>> /**
>>>>>> * Hello world!
>>>>>> *
>>>>>> */
>>>>>> object App extends Application {
>>>>>> println( "Hello World!" )
>>>>>> }
>>>>>>
>>>>>> In the line object App extends ... it presents the following Error I
>>>>>> can't really understand what the meaning is. The code looks seamless,
>>>>>> compiles and produces the right output but with this error no code
>>>>>> completion appears and no further errors are shown in netbeans when I enter
>>>>>> additional code that really is bullshit.
>>>>>>
>>>>>> The Error that appers: "illegal inheritance;
>>>>>> self-type com.jaz.scalaonmaven.App.type does not conform to
>>>>>> scala.Applications's selftype Application
>>>>>>
>>>>>> class ScalaObject needs to be a trait to be mixed in."
>>>>>>
>>>>>> If I create another simple class
>>>>>>
>>>>>> class heyJude {}
>>>>>>
>>>>>> I get the same Error without the last line (that about the trait).
>>>>>>
>>>>>> Writing Scala under NetBeans isn't much fun without proper code
>>>>>> completion and error marking (latter especially for a newcomer to Scala).
>>>>>>
>>>>>> I think it is some kind of problem with the NetBeans-Scala-Plugin? On my
>>>>>> last PC I remember it worked (though I don't know exactly which Plugin
>>>>>> version was actual at this point. I remember that one doesn't work and an
>>>>>> revision later it was all fine).
>>>>>>
>>>>>> I appreciate it if anyone has an Idea or knows something about that.
>>>>>>
>>>>>> Thanks in advance,
>>>>>> Greetings,
>>>>>> Georg Tavonious
>>>>>> --Hamburg
>>>>>>
>>>>>
>>>>
>>>
>>>
>>
>
>
Mon, 2010-03-22, 09:27
#10
Re: Scala NetBeans Problem
Hi Caoyuan,
many thanks for the information. After removing the .netbeans/dev folder
and reinstalling the plugins Netbeans works fine again.
Maybe it is in general a good advice to remove the .netbeans/dev folder
after a (major) change of Scala happened.
Thanks your for your great work!
--Stefan
Am 21.03.2010 20:07, schrieb Caoyuan:
> Hi Stefan,
>
> It's really strange, I just re-built whole NetBeans' trunk, and scala
> plugin code, it works. Maybe you can try to do the following:
>
> Find the netbeans' user configuration path of your OS, it's recorded
> under PathOfNetBeansInstall/etc/netbeans.conf, for example:
> netbeans_default_userdir="${HOME}/.netbeans/dev"
>
> then remove the directory of ${HOME}/.netbeans/dev, restart netbeans,
> re-install scala plugin.
>
> For Ant Scala project that created via NetBeans, the project building
> and interactive shell using $SCALA_HOME,
> For Maven Scala project, the project building using Scala lib that was
> assigned by pom.xml.
>
> The library.jar of Scala Runtime module of NetBeans Scala plugin is
> used only by this plugin itself. So, the parsing result you see under
> editor window is a mixed result of compiler.jar of NetBeans' Scala
> Runtime plus the library.jar of $SCALA_HOME.
>
> Don't be confused by above sentences, let's try to explain it upon on word:
> NetBeans only uses the binding parser to analyze your code, and your
> code totally under classpath of $SCALA_HOME or pom.xml.
>
> -Caoyuan
>
> On Sun, Mar 21, 2010 at 9:13 PM, Stefan Wachter wrote:
>
>> Hi Caoyuan,
>>
>> If I understood your message correctly, then the latest development
>> build of Netbeans should work with the Scala revision 21087.
>> Unfortunately that is not true for me.
>>
>> I tried the latest Netbeans development build (of March 21th). The
>> SCALA_HOME environment variable is pointing to a Scala version build
>> from SVN (using Revision 21087). Installed Plugins are Scala Kit
>> (Version 0.16.1) and Scala Runtime (Version 2.8.0.21224). When I start
>> Netbeans I get a ClassNotFoundException (see below).
>>
>> When I try to deactivate the Scala Runtime Plugin (because it is of a
>> later revision (i.e. 21224) then the Scala Kit Plugin is also
>> deactivated. Is there a way to force the Scala Plugin to use the Scala
>> distribution that is pointed to by the SCALA_HOME environment variable?
>>
>> In general, I do not understand the role of the Scala Runtime Plugin in
>> case that the SCALA_HOME environment is set. Which one takes precedence?
>> Ignoring the ClassNotFoundException and opening the interactive Scala
>> Shell in Netbeans I see that revision 21087 is used. Then what is the
>> Scala Runtime Plugin used for?
>>
>> Who is distributing the Scala Runtime Plugin? Does it happen automatically?
>>
>> Thanks for your attention.
>>
>> --Stefan
>>
>> PS: It would be great if you could anounce on this mailing list when a
>> consistent constellation (Netbeans Development Build, Scala Kit Plugin,
>> and Scala Runtime Plugin) are available.
>>
>>
>>
>> java.lang.ClassNotFoundException: scala.tools.nsc.ScalacSettings
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>> at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:259)
>> Caused: java.lang.ClassNotFoundException: scala.tools.nsc.ScalacSettings
>> starting from ModuleCL@36527f[org.netbeans.modules.scala.core] with
>> possible defining loaders [ModuleCL@b2c6a6[org.netbeans.libs.scala]] and
>> declared parents [ModuleCL@513d61[org.openide.io],
>> ModuleCL@b2c6a6[org.netbeans.libs.scala],
>> ModuleCL@16f144c[org.netbeans.modules.java.project],
>> ModuleCL@d09ad3[org.netbeans.modules.editor],
>> ModuleCL@1e228bc[org.netbeans.modules.projectapi],
>> org.netbeans.MainImpl$BootClassLoader@1050e1f,
>> ModuleCL@1fd6bea[org.netbeans.modules.java.source],
>> ModuleCL@f9c40[org.netbeans.modules.lexer],
>> ModuleCL@17431b9[org.openide.text],
>> ModuleCL@14520eb[org.openide.dialogs],
>> ModuleCL@16f25a7[org.netbeans.modules.editor.lib],
>> ModuleCL@134b07e[org.netbeans.libs.javacapi],
>> ModuleCL@13f991[org.netbeans.api.java.classpath],
>> ModuleCL@3dc0bb[org.openide.loaders],
>> ModuleCL@acb158[org.openide.windows],
>> ModuleCL@13c6a22[org.netbeans.modules.parsing.api],
>> ModuleCL@1976011[org.netbeans.modules.classfile],
>> ModuleCL@1060478[org.netbeans.modules.editor.util],
>> ModuleCL@1abcc03[org.netbeans.modules.java.sourceui],
>> ModuleCL@340101[org.netbeans.modules.java.lexer],
>> ModuleCL@3c9217[org.openide.awt],
>> ModuleCL@1aae94f[org.netbeans.modules.projectuiapi],
>> ModuleCL@491c4c[org.netbeans.modules.editor.lib2],
>> ModuleCL@182bcde[org.netbeans.modules.queries],
>> ModuleCL@1742700[org.openide.nodes],
>> ModuleCL@1cb52ae[org.netbeans.modules.csl.api],
>> ModuleCL@7cbde6[org.netbeans.modules.refactoring.api],
>> ModuleCL@10ffb38[xtc],
>> ModuleCL@1af33d6[org.netbeans.modules.editor.mimelookup],
>> ModuleCL@db4fa2[org.netbeans.modules.editor.settings]]
>> at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:261)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
>> Caused: java.lang.NoClassDefFoundError: scala/tools/nsc/ScalacSettings
>> at
>> org.netbeans.modules.scala.core.ScalaParserResult.global(ScalaParserResult.scala:114)
>> at
>> org.netbeans.modules.scala.core.ScalaParserResult.rootScope(ScalaParserResult.scala:123)
>> at
>> org.netbeans.modules.scala.editor.ScalaStructureAnalyzer.scan(ScalaStructureAnalyzer.scala:67)
>> at
>> org.netbeans.modules.csl.navigation.ElementScanningTask$1.run(ElementScanningTask.java:121)
>> at
>> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:151)
>> at
>> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:135)
>> at
>> org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:190)
>> at
>> org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:103)
>> at
>> org.netbeans.modules.csl.navigation.ElementScanningTask.run(ElementScanningTask.java:112)
>> at
>> org.netbeans.modules.csl.navigation.ClassMemberNavigatorSourceFactory$ProxyElementScanningTask.run(ClassMemberNavigatorSourceFactory.java:141)
>> at
>> org.netbeans.modules.csl.navigation.ClassMemberNavigatorSourceFactory$ProxyElementScanningTask.run(ClassMemberNavigatorSourceFactory.java:119)
>> at
>> org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:654)
>> at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>> [catch] at java.lang.Thread.run(Thread.java:619)
>>
>>
>> Am 20.03.2010 06:58, schrieb Caoyuan:
>>
>>> Which fairly recent nightly night built of Scala 2.8.0 are you using?
>>> if living in edge of Scala 2.8.0, it better to living in edge of
>>> NetBeans too, that is, tried the NetBeans 6.9 nightly built or at
>>> lease the NetBeans 6.8m1, and with the nightly built scala plugin via
>>> update center.
>>>
>>> The last Scala nightly built I tried is 2.8.0.r21087. But per very
>>> recent Scala nightly built (from one or two days before), something
>>> may be broken. I'm waiting for the next official release Beta or RC of
>>> Scala-2.8.0, and will release a corresponding plugin for NetBeans 6.8
>>>
>>> -Caoyuan
>>>
>>> On Sat, Mar 20, 2010 at 11:04 AM, Sanjay Dasgupta
>>> wrote:
>>>
>>>
>>>> I've been using the Netbeans plugin for a couple of months on a project that
>>>> has grown steadily (from scratch) to 24 source-files. The files vary in
>>>> length from 5 lines to 525. The code is a tool that simplifies the use of
>>>> combinators via use of a swing GUI, and is a little complex in some places.
>>>> I'd tried all three IDEs earlier (switching between them many times) in
>>>> search of a reliable one, and had finally settled on the Netbeans plugin
>>>> (nb-scala-6.8v1.1.0rc1.zip) on Netbeans 6.8 with fairly recent nightly
>>>> builds of Scala 2.8.0.
>>>> But sometime yesterday Netbeans too gave up. My largest source-file (525
>>>> lines) no longer shows up in the overview window ("Navigator" in Netbeans -
>>>> the one that shows the contents of a file graphically). The code editor
>>>> window is still there, and still responds to my inputs - but it does not
>>>> seem to catch any syntax errors (interactively) any more. The lines with
>>>> syntax errors only show up (in the log below the text pane) after a
>>>> build. There is no evidence of anything having crashed, no unusual CPU
>>>> level, or other abnormal behavior.
>>>> Is this a problem with a known solution?
>>>> I've tried to increase Netbeans heap to 1 Gb (as suggested in some posts),
>>>> but it would help if someone could say exactly what needs to be done (and
>>>> how).
>>>> I did try to fall back to the Eclipse plugin (a fairly recent nightly build)
>>>> - and was immediately hit by a flurry of error log messages.
>>>> Thanks for any help.
>>>> - Sanjay
>>>>
>>>> On Sat, Mar 20, 2010 at 4:22 AM, Georg Tavonius
>>>> wrote:
>>>>
>>>>
>>>>> Im running already the latest nightly. Scala in command line also puts the
>>>>> right version (2.8.0.r21213-b20100319020148) if I type "scala -version" into
>>>>> it. Scala works, I guess the path and system vars are set correctly
>>>>> (SCALA_HOME is set, yes). I just can't figure out where the problem is, or
>>>>> do not know how to analyse this further...
>>>>>
>>>>> On Fri, Mar 19, 2010 at 11:35 PM, Rodrigo Cano wrote:
>>>>>
>>>>>
>>>>>> I used to have the same problem, it worked out when I installed the
>>>>>> latest scala 2.8 nightly version (correctly setting the SCALA_HOME and all
>>>>>> that so that the scala plugin works propertly)
>>>>>>
>>>>>> On Fri, Mar 19, 2010 at 4:12 PM, Georg Tavonius
>>>>>> wrote:
>>>>>>
>>>>>>
>>>>>>> Hello Everyone!
>>>>>>>
>>>>>>> I'm relatively new to Scala itself and already have problems with the
>>>>>>> Scala NetBeans Plugin. My setting is as following: Win7 or WinXP, NetBeans
>>>>>>> 6.8, nb-scala-6.8v1.1.0rc1, Scala 2.7.7 or 2.8.0.latest, maven 2.2.1.
>>>>>>> My Problem is the following: I create a new maven project (archetype:
>>>>>>> simple Scala project) and it creates some code that looks right. Like that:
>>>>>>>
>>>>>>> package com.jaz.scalaonmaven
>>>>>>>
>>>>>>> /**
>>>>>>> * Hello world!
>>>>>>> *
>>>>>>> */
>>>>>>> object App extends Application {
>>>>>>> println( "Hello World!" )
>>>>>>> }
>>>>>>>
>>>>>>> In the line object App extends ... it presents the following Error I
>>>>>>> can't really understand what the meaning is. The code looks seamless,
>>>>>>> compiles and produces the right output but with this error no code
>>>>>>> completion appears and no further errors are shown in netbeans when I enter
>>>>>>> additional code that really is bullshit.
>>>>>>>
>>>>>>> The Error that appers: "illegal inheritance;
>>>>>>> self-type com.jaz.scalaonmaven.App.type does not conform to
>>>>>>> scala.Applications's selftype Application
>>>>>>>
>>>>>>> class ScalaObject needs to be a trait to be mixed in."
>>>>>>>
>>>>>>> If I create another simple class
>>>>>>>
>>>>>>> class heyJude {}
>>>>>>>
>>>>>>> I get the same Error without the last line (that about the trait).
>>>>>>>
>>>>>>> Writing Scala under NetBeans isn't much fun without proper code
>>>>>>> completion and error marking (latter especially for a newcomer to Scala).
>>>>>>>
>>>>>>> I think it is some kind of problem with the NetBeans-Scala-Plugin? On my
>>>>>>> last PC I remember it worked (though I don't know exactly which Plugin
>>>>>>> version was actual at this point. I remember that one doesn't work and an
>>>>>>> revision later it was all fine).
>>>>>>>
>>>>>>> I appreciate it if anyone has an Idea or knows something about that.
>>>>>>>
>>>>>>> Thanks in advance,
>>>>>>> Greetings,
>>>>>>> Georg Tavonious
>>>>>>> --Hamburg
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>>
>
Tue, 2010-03-23, 12:37
#11
Re: Scala NetBeans Problem
Hi Caoyuan,
sorry, but after reinstalling Scala Plugin with the latest nightly build of
scala 2.8 there is still a minor bug in the editor!
The Math object is deprecated, so I imported scala.math._ instead and have – may
be – a statement like this:
def apply(d: Double) = sqrt(d)
the editor complains about this, saying:
not found: value sqrt
but everything compiles just fine (so a minor bug). Is there a timeline of new
plugins für scala 2.8 or at least a fix to it.
regards
esser
Tue, 2010-03-23, 13:47
#12
Re: Re: Scala NetBeans Problem
Hi Esser,
if you have package object that inherits a trait (which scala.math now does) the NetBeans 6.8 plugin cannot resolve the members defined in the trait. It works on the NetBeans 6.9 nightly though.
See you on Friday,
Moritz
Am 23.03.2010 um 12:05 schrieb Esser:
> Hi Caoyuan,
>
> sorry, but after reinstalling Scala Plugin with the latest nightly build of
> scala 2.8 there is still a minor bug in the editor!
>
> The Math object is deprecated, so I imported scala.math._ instead and have – may
> be – a statement like this:
>
> def apply(d: Double) = sqrt(d)
>
>
> the editor complains about this, saying:
>
>
> not found: value sqrt
>
> but everything compiles just fine (so a minor bug). Is there a timeline of new
> plugins für scala 2.8 or at least a fix to it.
>
>
> regards
> esser
>
>
Fri, 2010-03-26, 17:57
#13
Re: Scala NetBeans Problem
Hey guys!
I still get the same Error as in my initial post. I tried everything that you all mentioned, but the problem still persists. It really is annoying. I'm actually working with a simple text editor and write my scala there, but you can imagine without code completion and stuff it really is painfully slow. Does anyone have new insights?
What I tried (I try to recall all) is:
NetBeans 6.8 with scala-nb-6.8.rc1 (and m2) and different scala versions
NetBeans 6.9 with scala-nb-nightlies and scala 2.7.7, 2.8.0.Beta1 and scala nightly (.21213)
NetBeans nightly (from arround monday/tuesday or so) with scala-nb-nightly and scala nightly (.21213)
I really am frustrated and have no clue, what else I can try.
To recall, the error I keep getting is this one:
On Fri, Mar 19, 2010 at 8:12 PM, Georg Tavonius <g.tavonius@googlemail.com> wrote:
Greetings,
Georg
--frustrated
I still get the same Error as in my initial post. I tried everything that you all mentioned, but the problem still persists. It really is annoying. I'm actually working with a simple text editor and write my scala there, but you can imagine without code completion and stuff it really is painfully slow. Does anyone have new insights?
What I tried (I try to recall all) is:
NetBeans 6.8 with scala-nb-6.8.rc1 (and m2) and different scala versions
NetBeans 6.9 with scala-nb-nightlies and scala 2.7.7, 2.8.0.Beta1 and scala nightly (.21213)
NetBeans nightly (from arround monday/tuesday or so) with scala-nb-nightly and scala nightly (.21213)
I really am frustrated and have no clue, what else I can try.
To recall, the error I keep getting is this one:
On Fri, Mar 19, 2010 at 8:12 PM, Georg Tavonius <g.tavonius@googlemail.com> wrote:
package com.jaz.scalaonmaven
/**
* Hello world!
*
*/
object App extends Application {
println( "Hello World!" )
}
In the line object App extends ... it presents the following Error I can't really understand what the meaning is. The code looks seamless, compiles and produces the right output but with this error no code completion appears and no further errors are shown in netbeans when I enter additional code that really is bullshit.
The Error that appers: "illegal inheritance;
self-type com.jaz.scalaonmaven.App.type does not conform to scala.Applications's selftype Application
class ScalaObject needs to be a trait to be mixed in."
Greetings,
Georg
--frustrated
Fri, 2010-03-26, 21:17
#14
Re: Re: Scala NetBeans Problem
Hi
It's due to the new scala trunk code, I'm uploading the new libs.scala
module (2.8.0.21283), which will be available during this weekend,
please wait for it to be available.
-Caoyuan
On Sat, Mar 27, 2010 at 12:54 AM, Georg Tavonius
wrote:
> Hey guys!
>
> I still get the same Error as in my initial post. I tried everything that
> you all mentioned, but the problem still persists. It really is annoying.
> I'm actually working with a simple text editor and write my scala there, but
> you can imagine without code completion and stuff it really is painfully
> slow. Does anyone have new insights?
>
> What I tried (I try to recall all) is:
> NetBeans 6.8 with scala-nb-6.8.rc1 (and m2) and different scala versions
> NetBeans 6.9 with scala-nb-nightlies and scala 2.7.7, 2.8.0.Beta1 and scala
> nightly (.21213)
> NetBeans nightly (from arround monday/tuesday or so) with scala-nb-nightly
> and scala nightly (.21213)
>
> I really am frustrated and have no clue, what else I can try.
>
> To recall, the error I keep getting is this one:
>
> On Fri, Mar 19, 2010 at 8:12 PM, Georg Tavonius
> wrote:
>>
>> package com.jaz.scalaonmaven
>>
>> /**
>> * Hello world!
>> *
>> */
>> object App extends Application {
>> println( "Hello World!" )
>> }
>>
>> In the line object App extends ... it presents the following Error I can't
>> really understand what the meaning is. The code looks seamless, compiles and
>> produces the right output but with this error no code completion appears and
>> no further errors are shown in netbeans when I enter additional code that
>> really is bullshit.
>>
>> The Error that appers: "illegal inheritance;
>> self-type com.jaz.scalaonmaven.App.type does not conform to
>> scala.Applications's selftype Application
>>
>> class ScalaObject needs to be a trait to be mixed in."
>>
>
> Greetings,
> Georg
> --frustrated
>
On Fri, Mar 19, 2010 at 4:12 PM, Georg Tavonius <g.tavonius@googlemail.com> wrote: