Comments (6)
Thanks for the report!
I don't expect the SBT_OPTS
to be propagated to the BSP config. However the server should read the SBT_OPTS
when started by the BSP command. It is a bug if it does not.
from sbt.
However the server should read the SBT_OPTS when started by the BSP command. It is a bug if it does not.
That seems to work as expected.
I don't expect the SBT_OPTS to be propagated to the BSP config.
Is there a different way to add -Dsbt.boot.directory=<some_path>
option to the bsp config permanently ? The trouble is that if you add it manually, sbt
seems to regenerate the config quite a lot, and the option disappears.
from sbt.
Is there a different way to add -Dsbt.boot.directory=<some_path> option to the bsp config permanently ?
No I don't think it is currently possible without a fix in sbt itself.
My suggestion would be to change the way sbt generates the BSP config. It should generate .../sbt -bsp
instead of .../java ... xsbt.boot.Boot -bsp
. That would solve your issue because the sbt script does read the SBT_OPTS
env.
It would solve other issues like:
- it does not start with the current Java version in the path
- it does not use the native sbt client
from sbt.
My suggestion would be to change the way sbt generates the BSP config.
How should we generate the config then? We generate it running .../sbt bspConfig
wouldn't that be the preferred way?
from sbt.
We generate it running .../sbt bspConfig wouldn't that be the preferred way?
Yes it is.
I am suggesting to change the implementation of sbt bspConfig
in sbt. The code is here:
from sbt.
Oh, yeah, sorry. I misread what you wrote.
from sbt.
Related Issues (20)
- sbt in `--client` mode loses stdout/stderr of the forked processes in continuous (watch) task mode after the task ir reevaluated
- Error downloading org.scalameta:semanticdb-scalac_2.12.19:4.8.3 HOT 2
- Command alias doesn't work with the project prefix HOT 1
- Allow the sbt launcher to be called programmatcially without running into an `exit` call HOT 10
- Compile ClassCastException HOT 1
- "java.lang.Boolean cannot be cast to class java.lang.String" on Play's run task HOT 37
- Unreachable case warning (E121) in inline generic function HOT 2
- Pipelining prevents Java compilation with `compileOrder := JavaThenScala` config
- sbt-coursier does not enable configuration of the `FileCache.localArtifactsShouldBeCached` setting
- Ivy revision latest version Semver syntax is buggy. HOT 1
- "value getOffsetStatic is not a member of object scala.runtime.LazyVals" while testing Java-only library with ScalaTest + Scala 3.4.1 HOT 9
- Please update the documentation HOT 1
- Sbt server displays weird characters around dates on Windows HOT 6
- java exception during first attempt to do REPL completion by TAB in sbt console on Scala 3.4.1 HOT 4
- Error message in log when compiling: BufferStrategyPaintManager$ HOT 5
- Sbt build times substantially slower on Windows vs Ubuntu. HOT 1
- `sbt.PluginData#dependencyClasspath` contains multiple `scala-library/compiler/reflect/xml` jars HOT 6
- How to report slowness issues from built-in resolver repo.typesafe.com (scala.jfrog.io)? HOT 16
- NPE when compiling HOT 1
- Fail to boot with match error with `scala-tools-releases` in `repositories` HOT 3
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 sbt.