Comments (15)
Click on [x] of the console window
On Tue, Mar 19, 2013 at 1:08 PM, prassee [email protected] wrote:
how could one terminate a running process in the sbt console window, I
tried ctrl+c but i doesn't seems to work
doesn't this cause memory leakage.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-15097791
.
from nbsbt.
You can open sbt project as usual project directly in NetBeans now.
On Fri, Mar 8, 2013 at 10:54 PM, Filipe Nepomuceno <[email protected]
wrote:
Hi,
I have installed nbsbt and nbscala and generated the .classpath_nb files.
How do I make netbeans open the project now?I am using:
netbeans 7.3
nbscala from master
scala 2.10
sbt 0.12.2
nbsbt 1.0.2Regards,
Filipe—
Reply to this email directly or view it on GitHubhttps://github.com//issues/2
.
from nbsbt.
how could one terminate a running process in the sbt console window, I tried ctrl+c but i doesn't seems to work
doesn't this cause memory leakage.
from nbsbt.
I can't seem to figure out how to make netbeans recognize org.scalatest for import. I am using the sbt projects form Martin Odersky's Scala course on coursera.org. I am able to run the tests from the SBT console, but Netbeans underlines in red all these imports:
import org.junit.runner.RunWith
import org.scalatest.FunSuite
import org.scalatest.junit.JUnitRunner
I am not sure if it is related or not, but I have an error when I write the "netbeans" command on the sbt console:
netbeans
[info] About to create NetBeans project files for your project(s).
[error] java.util.NoSuchElementException: None.get
[error] Use 'last' for the full log.
and the full log is
last
[info] About to create NetBeans project files for your project(s).
[debug] Running task... Cancelable: false, check cycles: false
[debug] Running task... Cancelable: false, check cycles: false
[debug] Running task... Cancelable: false, check cycles: false
[debug] External dependencies for configuration 'compile' and withSource 'false': Success(ArrayBuffer(Lib(/home/csaba/.sbt/boot/scala-2.10.1/lib/scala-library.jar)))
[debug] Running task... Cancelable: false, check cycles: false
[debug] Running task... Cancelable: false, check cycles: false
[debug] External dependencies for configuration 'test' and withSource 'false': Success(ArrayBuffer(Lib(/home/csaba/.sbt/boot/scala-2.10.1/lib/scala-library.jar), Lib(/home/csaba/Personal/ScalaCourse/Assignment 3/objsets/lib_managed/jars/org.scalatest/scalatest_2.10/scalatest_2.10-1.9.1.jar), Lib(/home/csaba/Personal/ScalaCourse/Assignment 3/objsets/lib_managed/jars/org.scala-lang/scala-actors/scala-actors-2.10.0.jar), Lib(/home/csaba/Personal/ScalaCourse/Assignment 3/objsets/lib_managed/jars/org.scala-lang/scala-reflect/scala-reflect-2.10.0.jar), Lib(/home/csaba/Personal/ScalaCourse/Assignment 3/objsets/lib_managed/jars/junit/junit/junit-4.10.jar), Lib(/home/csaba/Personal/ScalaCourse/Assignment 3/objsets/lib_managed/jars/org.hamcrest/hamcrest-core/hamcrest-core-1.1.jar)))
[debug] Project dependencies for configuration 'compile': Success(List())
[debug] Project dependencies for configuration 'test': Success(List())
[debug] Project aggregate: Success(List())
[debug] Running task... Cancelable: false, check cycles: false
[debug] Running task... Cancelable: false, check cycles: false
[debug] Running task... Cancelable: false, check cycles: false
[debug] External dependencies for configuration 'compile' and withSource 'false': Success(ArrayBuffer(Lib(/home/csaba/.sbt/boot/scala-2.10.1/lib/scala-library.jar)))
[debug] Running task... Cancelable: false, check cycles: false
[debug] Running task... Cancelable: false, check cycles: false
[debug] External dependencies for configuration 'test' and withSource 'false': Success(ArrayBuffer(Lib(/home/csaba/.sbt/boot/scala-2.10.1/lib/scala-library.jar), Lib(/home/csaba/.ivy2/cache/org.scalatest/scalatest_2.10/jars/scalatest_2.10-1.9.1.jar), Lib(/home/csaba/.ivy2/cache/org.scala-lang/scala-actors/jars/scala-actors-2.10.0.jar), Lib(/home/csaba/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.10.0.jar), Lib(/home/csaba/.ivy2/cache/junit/junit/jars/junit-4.10.jar), Lib(/home/csaba/.ivy2/cache/org.hamcrest/hamcrest-core/jars/hamcrest-core-1.1.jar)))
[debug] Project dependencies for configuration 'compile': Success(List())
[debug] Project dependencies for configuration 'test': Success(List())
[debug] Project aggregate: Success(List())
java.util.NoSuchElementException: None.get
at scala.None$.get(Option.scala:274)
at scala.None$.get(Option.scala:272)
at org.netbeans.nbsbt.core.NetBeans$.relativize(NetBeans.scala:567)
at org.netbeans.nbsbt.core.NetBeans$$anonfun$srcEntry$1.apply(NetBeans.scala:276)
at org.netbeans.nbsbt.core.NetBeans$$anonfun$srcEntry$1.apply(NetBeans.scala:272)
at scalaz.effects.IO$$anon$3$$anonfun$pure$1$$anonfun$apply$23.apply(IO.scala:118)
at scalaz.effects.IO$$anon$3$$anonfun$pure$1$$anonfun$apply$23.apply(IO.scala:118)
at scalaz.FreeFunctions$$anonfun$return_$1.apply(Free.scala:181)
at scalaz.FreeFunctions$$anonfun$return_$1.apply(Free.scala:181)
at scalaz.Pure$$anon$19$$anon$2.apply(Pure.scala:76)
at scalaz.Functor$$anon$15$$anon$45.apply(Functor.scala:84)
at scalaz.Free$class.go$1(Free.scala:73)
at scalaz.Free$class.run(Free.scala:76)
at scalaz.Free$Gosub.run(Free.scala:18)
at scalaz.effects.IO$class.unsafePerformIO(IO.scala:13)
at scalaz.effects.IO$$anon$2.unsafePerformIO(IO.scala:113)
at org.netbeans.nbsbt.core.NetBeans$.onSuccess(NetBeans.scala:154)
at org.netbeans.nbsbt.core.NetBeans$$anonfun$action$5.apply(NetBeans.scala:106)
at org.netbeans.nbsbt.core.NetBeans$$anonfun$action$5.apply(NetBeans.scala:106)
at scalaz.Validation$class.fold(Validation.scala:7)
at scalaz.Success.fold(Validation.scala:82)
at org.netbeans.nbsbt.core.NetBeans$.action(NetBeans.scala:106)
at org.netbeans.nbsbt.core.NetBeans$$anonfun$netbeansCommand$2.apply(NetBeans.scala:81)
at org.netbeans.nbsbt.core.NetBeans$$anonfun$netbeansCommand$2.apply(NetBeans.scala:81)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:60)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:60)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:62)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:62)
at sbt.Command$.process(Command.scala:90)
at sbt.MainLoop$$anonfun$next$1$$anonfun$apply$1.apply(MainLoop.scala:71)
at sbt.MainLoop$$anonfun$next$1$$anonfun$apply$1.apply(MainLoop.scala:71)
at sbt.State$$anon$2.process(State.scala:170)
at sbt.MainLoop$$anonfun$next$1.apply(MainLoop.scala:71)
at sbt.MainLoop$$anonfun$next$1.apply(MainLoop.scala:71)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.MainLoop$.next(MainLoop.scala:71)
at sbt.MainLoop$.run(MainLoop.scala:64)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:53)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:50)
at sbt.Using.apply(Using.scala:25)
at sbt.MainLoop$.runWithNewLog(MainLoop.scala:50)
at sbt.MainLoop$.runAndClearLast(MainLoop.scala:33)
at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:17)
at sbt.MainLoop$.runLogged(MainLoop.scala:13)
at sbt.xMain.run(Main.scala:26)
at xsbt.boot.Launch$.run(Launch.scala:55)
at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:45)
at xsbt.boot.Launch$.launch(Launch.scala:69)
at xsbt.boot.Launch$.apply(Launch.scala:16)
at xsbt.boot.Boot$.runImpl(Boot.scala:31)
at xsbt.boot.Boot$.main(Boot.scala:20)
at xsbt.boot.Boot.main(Boot.scala)
[error] java.util.NoSuchElementException: None.get
[error] Use 'last' for the full log.
from nbsbt.
Hello. I'm using NetBeans 8 - I have a generated .classpath_nb file at the top level of my project - but NetBeans does not recognize the project. Any advice? Anyone else have this issue?
from nbsbt.
This just does not work at all for me. I installed nbscala and I can create scala projects via the IDE (the Ant based projects), and can create and open Maven Scala projects. But I can not open SBT projects. Any help would be greatly appreciated.
from nbsbt.
@michaelajr Could you show me the directory structure of your sbt project? including the place of .classpath_nb.
from nbsbt.
sure. thanks. here's a scene shot.
from nbsbt.
from nbsbt.
Any suggestions on this? Thanks.
from nbsbt.
The SBT plugin in NetBeans (you do have it installed?) decides whether a folder is an SBT project with the following tests:
- Does not contain a pom.xml file
- Is not named "project"
- Does not have an ancestor folder named "src"
- Contains .classpath_nb OR src/main/scala OR src/test/scala OR it has a .sbt file OR a sub-folder named "project" with .sbt or .scala files.
It looks like your project should meet 1,2, and 4. What is the full path of the folder with your build.sbt file?
from nbsbt.
AH! wow... #3 was it. I have all my projects in a parent folder called "src". sigh THANK YOU. this will really help. Would be great to not care if an ancestor folder is called "src", but I'll take it as-is for now! Thank you again.
from nbsbt.
Should've closed this a while ago
from nbsbt.
@michaelajr no, I have to care when an ancestor folder is called "src", which may bring some recursively judgement processing (I could not remember the details right now), I'm sure I had reason to let it there.
from nbsbt.
Crap. #3 as well... For 20 or so years all my source code projects lived under c:\Src... I guess there goes an old habit...
from nbsbt.
Related Issues (15)
- Compatibility with Netbeans 8? HOT 5
- Trouble with lib HOT 7
- Upgrade Scalariform to 1.6.0
- java.lang.NoSuchMethodError: scalaz.Scalaz$.ToValidationV HOT 2
- Failure processing ScalaJS projects
- Not working with activator 1.3.7 and play 2.5.0
- Not working with Play 2.6 HOT 1
- host the plugin to a maven repository HOT 8
- freeze in the sbt console HOT 1
- Mixed scala/java maven project.
- isn't compatible with sbt 0.13 HOT 1
- nbsbt-core 1.1.1 deployment missing ivy.xml HOT 1
- does not handle /src/main/webapp HOT 2
- unresolved dependencies: org.netbeans.nbsbt:nbsbt-plugin:1.0.2 (sbtVersion=0.12, scalaVersion=2.9.2) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nbsbt.