Comments (7)
Would you please give me the piece of .classpath_nb which you mentioned? since I have no problem under Fedora, where I run NetBeans via short_cut
from nbsbt.
Here's a line relatively referencing a file from my lib. Actual path /home/mgenereux/Projects/test/lib.
<classpathentry kind="lib" path="./lib/lang-scala_2.10-1.1.0-SNAPSHOT.jar" scope="compile"/>
Thanks!
from nbsbt.
It seems your project depends on the lib jar directly instead of ivy? How did you define the lib dependency in your Build.scala or build.sbt?
from nbsbt.
Neither. SBT includes the lib folder per http://www.scala-sbt.org/0.13/tutorial/Library-Dependencies.html .
from nbsbt.
I'm still learning Scala or I'd try to make a pull request. Could you point me in the right direction so I could help?
from nbsbt.
I took a look at the corresponding code in nbscala:
case "lib" =>
val path = (entry \ "@path").text.trim.replace("\\", "/")
val isTest = (entry \ "@scope").text.trim.equalsIgnoreCase("test")
val libFile = new File(path) match {
case x if x.isAbsolute => x
case _ => new File(projectDir, path)
}
if (libFile.exists) {
if (isTest) {
testCps += libFile
} else {
mainCps += libFile
}
}
It seems the relative lib path should have been converted to absolute path with projectDir as parent.
For more information, please see:
from nbsbt.
Ah. So the .classpath_nb is correct to specify relative and then the plugin should respect that in turn. I'll create a pull request on the plugin.
from nbsbt.
Related Issues (15)
- Compatibility with Netbeans 8? HOT 5
- 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
- Usage HOT 15
- 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.