- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
NetBeans plugin: "object scala not found"
Tue, 2011-09-06, 23:28
I’m using NetBeans 7.0.1 with the Scala plugin as compiled from source. I believe I’m using the latest version available. Whenever I start NetBeans I get an exception: “object scala not found” (full traceback below). It’s quite reliable in that it seems to happen every time. However I believe this behavior started when I upgraded to Scala 2.9.1. When I had 2.9.0.1 installed I don’t recall it doing this.
The plugin appears to work fine… at least to the extent that I’ve tried. I do get this exception again from time to time while I’m programming, but aside from being annoying it doesn’t seem to have any negative effect. Is there something different about 2.9.1 that might account for this?
Thanks
Peter
scala.tools.nsc.MissingRequirementError: object scala not found.
at scala.tools.nsc.symtab.Definitions$definitions$.getModuleOrClass(Definitions.scala:655)
at scala.tools.nsc.symtab.Definitions$definitions$.getModule(Definitions.scala:605)
at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackage(Definitions.scala:145)
at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackageClass(Definitions.scala:146)
at scala.tools.nsc.symtab.Definitions$definitions$.AnyClass(Definitions.scala:176)
at scala.tools.nsc.symtab.Definitions$definitions$.init(Definitions.scala:814)
at scala.tools.nsc.Global$Run.<init>(Global.scala:698)
at scala.tools.nsc.interactive.Global$TyperRun.<init>(Global.scala:925)
at scala.tools.nsc.interactive.Global.newTyperRun(Global.scala:948)
at scala.tools.nsc.interactive.Global.<init>(Global.scala:166)
at org.netbeans.modules.scala.core.interactive.Global.<init>(Global.scala:20)
at org.netbeans.modules.scala.core.ScalaGlobal.<init>(ScalaGlobal.scala:88)
at org.netbeans.modules.scala.core.ScalaGlobal$.getGlobal(ScalaGlobal.scala:628)
at org.netbeans.modules.scala.core.ScalaParserResult.<init>(ScalaParserResult.scala:69)
at org.netbeans.modules.scala.core.ScalaParser.parse(ScalaParser.scala:95)
at org.netbeans.modules.parsing.impl.TaskProcessor.callParse(TaskProcessor.java:647)
at org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:213)
at org.netbeans.modules.parsing.api.ResultIterator.getParserResult(ResultIterator.java:138)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$3.run(RepositoryUpdater.java:2121)
at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:635)
at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:154)
at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:138)
at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:210)
at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:207)
at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:168)
at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:356)
at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:71)
at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:207)
at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:106)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.indexEmbedding(RepositoryUpdater.java:2104)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doIndex(RepositoryUpdater.java:1950)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.access$1400(RepositoryUpdater.java:1597)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$2.run(RepositoryUpdater.java:1778)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$2.run(RepositoryUpdater.java:1776)
at org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.refreshTransaction(TaskCache.java:460)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.index(RepositoryUpdater.java:1776)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork.scanSource(RepositoryUpdater.java:3557)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork.scanSources(RepositoryUpdater.java:3458)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork.getDone(RepositoryUpdater.java:3201)
[catch] at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:2231)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:3988)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.run(RepositoryUpdater.java:3928)
at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:615)
at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:720)
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)
at java.lang.Thread.run(Thread.java:662)
Wed, 2011-09-07, 00:47
#2
RE: NetBeans plugin: "object scala not found"
They seem okay to me. The scala-library.jar is mentioned there but scala-compiler.jar is not. Should it be? I’m not clear on how to change the platform configuration in any case.
Peter
From: Trond Olsen [mailto:trond@steinbit.org]
Sent: Tuesday, September 06, 2011 19:10
To: Chapin, Peter @ VTC
Cc: Scala Tools
Subject: Re: [scala-tools] NetBeans plugin: "object scala not found"
You should check that Scala for Netbeans is getting the correct library files under Netbeans -> Tools -> Scala Platforms.
On 7 September 2011 00:26, Peter C. Chapin <PChapin@vtc.vsc.edu> wrote:
I’m using NetBeans 7.0.1 with the Scala plugin as compiled from source. I believe I’m using the latest version available. Whenever I start NetBeans I get an exception: “object scala not found” (full traceback below). It’s quite reliable in that it seems to happen every time. However I believe this behavior started when I upgraded to Scala 2.9.1. When I had 2.9.0.1 installed I don’t recall it doing this.
The plugin appears to work fine… at least to the extent that I’ve tried. I do get this exception again from time to time while I’m programming, but aside from being annoying it doesn’t seem to have any negative effect. Is there something different about 2.9.1 that might account for this?
Thanks
Wed, 2011-09-07, 01:17
#3
Re: NetBeans plugin: "object scala not found"
The Scala library files does not come bundled with Scala for Netbeans. It is picked up from the your OS variable SCALA_HOME which should be pointing to your directory containing the Scala Distribution (path\to\scala-2.9.1). The scala-compiler.jar isn't listed there in my install either so that should be ok. I'm on Windows using the latest build of nbscala as well btw.
If all fails you could try out the latest ScalaIDE 2.0 for Eclipse which comes bundled with everything needed.
On 7 September 2011 01:43, Peter C. Chapin <PChapin@vtc.vsc.edu> wrote:
If all fails you could try out the latest ScalaIDE 2.0 for Eclipse which comes bundled with everything needed.
On 7 September 2011 01:43, Peter C. Chapin <PChapin@vtc.vsc.edu> wrote:
They seem okay to me. The scala-library.jar is mentioned there but scala-compiler.jar is not. Should it be? I’m not clear on how to change the platform configuration in any case.
Peter
From: Trond Olsen [mailto:trond@steinbit.org]
Sent: Tuesday, September 06, 2011 19:10
To: Chapin, Peter @ VTC
Cc: Scala Tools
Subject: Re: [scala-tools] NetBeans plugin: "object scala not found"
You should check that Scala for Netbeans is getting the correct library files under Netbeans -> Tools -> Scala Platforms.
On 7 September 2011 00:26, Peter C. Chapin <PChapin@vtc.vsc.edu> wrote:
I’m using NetBeans 7.0.1 with the Scala plugin as compiled from source. I believe I’m using the latest version available. Whenever I start NetBeans I get an exception: “object scala not found” (full traceback below). It’s quite reliable in that it seems to happen every time. However I believe this behavior started when I upgraded to Scala 2.9.1. When I had 2.9.0.1 installed I don’t recall it doing this.
The plugin appears to work fine… at least to the extent that I’ve tried. I do get this exception again from time to time while I’m programming, but aside from being annoying it doesn’t seem to have any negative effect. Is there something different about 2.9.1 that might account for this?
Thanks
Thu, 2011-09-08, 00:57
#4
RE: NetBeans plugin: "object scala not found"
Thanks for your note. My SCALA_HOME seems fine. The plugin basically works. I just get an annoying “object scala not found” exception whenever I start NetBeans. After that I don’t see many problems (the exception comes back now and then pretty much randomly). I’m pretty sure this started happening when I upgraded to 2.9.1 from 2.9.0.1, but I guess you aren’t seeing this issue.
Peter
From: Trond Olsen [mailto:trond@steinbit.org]
Sent: Tuesday, September 06, 2011 20:08
To: Chapin, Peter @ VTC
Cc: Scala Tools
Subject: Re: [scala-tools] NetBeans plugin: "object scala not found"
The Scala library files does not come bundled with Scala for Netbeans. It is picked up from the your OS variable SCALA_HOME which should be pointing to your directory containing the Scala Distribution (path\to\scala-2.9.1). The scala-compiler.jar isn't listed there in my install either so that should be ok. I'm on Windows using the latest build of nbscala as well btw.
If all fails you could try out the latest ScalaIDE 2.0 for Eclipse which comes bundled with everything needed.
On 7 September 2011 01:43, Peter C. Chapin <PChapin@vtc.vsc.edu> wrote:
They seem okay to me. The scala-library.jar is mentioned there but scala-compiler.jar is not. Should it be? I’m not clear on how to change the platform configuration in any case.
Peter
From: Trond Olsen [mailto:trond@steinbit.org]
Sent: Tuesday, September 06, 2011 19:10
To: Chapin, Peter @ VTC
Cc: Scala Tools
Subject: Re: [scala-tools] NetBeans plugin: "object scala not found"
You should check that Scala for Netbeans is getting the correct library files under Netbeans -> Tools -> Scala Platforms.
On 7 September 2011 00:26, Peter C. Chapin <PChapin@vtc.vsc.edu> wrote:
I’m using NetBeans 7.0.1 with the Scala plugin as compiled from source. I believe I’m using the latest version available. Whenever I start NetBeans I get an exception: “object scala not found” (full traceback below). It’s quite reliable in that it seems to happen every time. However I believe this behavior started when I upgraded to Scala 2.9.1. When I had 2.9.0.1 installed I don’t recall it doing this.
The plugin appears to work fine… at least to the extent that I’ve tried. I do get this exception again from time to time while I’m programming, but aside from being annoying it doesn’t seem to have any negative effect. Is there something different about 2.9.1 that might account for this?
Thanks
Sat, 2011-09-10, 03:17
#5
RE: NetBeans plugin: "object scala not found"
I figured out what my problem was… one of the projects I was loading did not mention the Scala library in its list of compile time libraries. It’s not a project I’m actively working on so I didn’t notice it. I guess when NetBeans scans all the projects when it starts it tripped up on that project. I added the Scala library to that project and now everything seems to be working cleanly.
Peter
From: Trond Olsen [mailto:trond@steinbit.org]
Sent: Tuesday, September 06, 2011 20:08
To: Chapin, Peter @ VTC
Cc: Scala Tools
Subject: Re: [scala-tools] NetBeans plugin: "object scala not found"
The Scala library files does not come bundled with Scala for Netbeans. It is picked up from the your OS variable SCALA_HOME which should be pointing to your directory containing the Scala Distribution (path\to\scala-2.9.1). The scala-compiler.jar isn't listed there in my install either so that should be ok. I'm on Windows using the latest build of nbscala as well btw.
If all fails you could try out the latest ScalaIDE 2.0 for Eclipse which comes bundled with everything needed.
On 7 September 2011 01:43, Peter C. Chapin <PChapin@vtc.vsc.edu> wrote:
They seem okay to me. The scala-library.jar is mentioned there but scala-compiler.jar is not. Should it be? I’m not clear on how to change the platform configuration in any case.
Peter
From: Trond Olsen [mailto:trond@steinbit.org]
Sent: Tuesday, September 06, 2011 19:10
To: Chapin, Peter @ VTC
Cc: Scala Tools
Subject: Re: [scala-tools] NetBeans plugin: "object scala not found"
You should check that Scala for Netbeans is getting the correct library files under Netbeans -> Tools -> Scala Platforms.
On 7 September 2011 00:26, Peter C. Chapin <PChapin@vtc.vsc.edu> wrote:
I’m using NetBeans 7.0.1 with the Scala plugin as compiled from source. I believe I’m using the latest version available. Whenever I start NetBeans I get an exception: “object scala not found” (full traceback below). It’s quite reliable in that it seems to happen every time. However I believe this behavior started when I upgraded to Scala 2.9.1. When I had 2.9.0.1 installed I don’t recall it doing this.
The plugin appears to work fine… at least to the extent that I’ve tried. I do get this exception again from time to time while I’m programming, but aside from being annoying it doesn’t seem to have any negative effect. Is there something different about 2.9.1 that might account for this?
Thanks
Sun, 2011-09-11, 01:27
#6
Re: NetBeans plugin: "object scala not found"
Since you compiled from source with 2.9.0.1 I would try recompiling
with 2.9.1.
Rick
On Sep 6, 6:26 pm, "Peter C. Chapin" wrote:
> I'm using NetBeans 7.0.1 with the Scala plugin as compiled from source. I
> believe I'm using the latest version available. Whenever I start NetBeans I
> get an exception: "object scala not found" (full traceback below). It's
> quite reliable in that it seems to happen every time. However I believe this
> behavior started when I upgraded to Scala 2.9.1. When I had 2.9.0.1
> installed I don't recall it doing this.
>
> The plugin appears to work fine. at least to the extent that I've tried. I
> do get this exception again from time to time while I'm programming, but
> aside from being annoying it doesn't seem to have any negative effect. Is
> there something different about 2.9.1 that might account for this?
>
> Thanks
>
> Peter
>
> scala.tools.nsc.MissingRequirementError: object scala not found.
>
> at
> scala.tools.nsc.symtab.Definitions$definitions$.getModuleOrClass(Definitions
> .scala:655)
>
> at
> scala.tools.nsc.symtab.Definitions$definitions$.getModule(Definitions.scala:
> 605)
>
> at
> scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackage(Definitions.sca
> la:145)
>
> at
> scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackageClass(Definition
> s.scala:146)
>
> at
> scala.tools.nsc.symtab.Definitions$definitions$.AnyClass(Definitions.scala:1
> 76)
>
> at
> scala.tools.nsc.symtab.Definitions$definitions$.init(Definitions.scala:814)
>
> at scala.tools.nsc.Global$Run.(Global.scala:698)
>
> at
> scala.tools.nsc.interactive.Global$TyperRun.(Global.scala:925)
>
> at
> scala.tools.nsc.interactive.Global.newTyperRun(Global.scala:948)
>
> at
> scala.tools.nsc.interactive.Global.(Global.scala:166)
>
> at
> org.netbeans.modules.scala.core.interactive.Global.(Global.scala:20)
>
> at
> org.netbeans.modules.scala.core.ScalaGlobal.(ScalaGlobal.scala:88)
>
> at
> org.netbeans.modules.scala.core.ScalaGlobal$.getGlobal(ScalaGlobal.scala:628
> )
>
> at
> org.netbeans.modules.scala.core.ScalaParserResult.(ScalaParserResult.s
> cala:69)
>
> at
> org.netbeans.modules.scala.core.ScalaParser.parse(ScalaParser.scala:95)
>
> at
> org.netbeans.modules.parsing.impl.TaskProcessor.callParse(TaskProcessor.java
> :647)
>
> at
> org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:213
> )
>
> at
> org.netbeans.modules.parsing.api.ResultIterator.getParserResult(ResultIterat
> or.java:138)
>
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$3.run(Repo
> sitoryUpdater.java:2121)
>
> at
> org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.j
> ava:635)
>
> at
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserMana
> ger.java:154)
>
> at
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserMana
> ger.java:138)
>
> at
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:21
> 0)
>
> at
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:20
> 7)
>
> at
> org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityI
> O(FileChangedManager.java:168)
>
> at
> org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(Provid
> edExtensions.java:356)
>
> at
> org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:71)
>
> at
> org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.ja
> va:207)
>
> at
> org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:106)
>
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.indexEmbed
> ding(RepositoryUpdater.java:2104)
>
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doIndex(Re
> positoryUpdater.java:1950)
>
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.access$140
> 0(RepositoryUpdater.java:1597)
>
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$2.run(Repo
> sitoryUpdater.java:1778)
>
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$2.run(Repo
> sitoryUpdater.java:1776)
>
> at
> org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.refreshTransacti
> on(TaskCache.java:460)
>
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.index(Repo
> sitoryUpdater.java:1776)
>
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWo
> rk.scanSource(RepositoryUpdater.java:3557)
>
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWo
> rk.scanSources(RepositoryUpdater.java:3458)
>
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork.getDo
> ne(RepositoryUpdater.java:3201)
>
> [catch] at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(
> RepositoryUpdater.java:2231)
>
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(Repos
> itoryUpdater.java:3988)
>
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.run(Reposi
> toryUpdater.java:3928)
>
> at
> org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskPro
> cessor.java:615)
>
> at
> org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProce
> ssor.java:720)
>
> 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.ja
> va:886)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:9
> 08)
>
> at java.lang.Thread.run(Thread.java:662)
On 7 September 2011 00:26, Peter C. Chapin <PChapin@vtc.vsc.edu> wrote: