Comments (5)
Can you please add similar or reuse same setting to support configurable JDK?
I think we were already planning on doing that but didn't feel like this was urgent/critical. But it sounds like we should prioritize that.
I suspect this is because in my env var I have set JAVA_HOME to JDK 6. Unfortunately I won't be able to change that.
Maybe you can. It might be possible to change the JAVA_HOME env var only for the vscode or STS process without changing the global env var setting used system wide.
I'm not sure this will work for you, as I'm not sure exactly why you need it be a JDK6. But you could just set the env var when launching vscode. For example on Linux I could so something like this when launching vscode from a CLI terminal.
JAVA_HOME=/opt/alternate/javahome code
This will set JAVA_HOME only for that one time, launching vscode process.
To avoid having to do it everytime you launch vscode you could also create a shell script and put the launch command with env var setting in there.
So maybe that could be a workaround for you until we add a proper vscode setting.
from sts4.
(comment in Pivotal Tracker added by Kris De Volder:)
The new configuration key is called spring-boot.ls.java.home
. I've also reorganized a bit so that the existing key for configuring jvm heap size is now called spring-boot.ls.java.heap
.
I've also made similar changes in the other language servers for concourse, bosh and cloudfoundry-manfiest. They have keys called:
concourse.ls.java.home
concourse.ls.java.heap
bosh.ls.java.home
bosh.ls.java.heap
cloudfoundry-manifest.ls.java.home
cloudfoundry-manifest.ls.java.heap
All language server vscode launching code is shared and uses the same logic. The only difference is the name of the first part of the configuration key.
from sts4.
Hi,
Thanks for the quick response and update.
What I meant by 'won't be able to change' is that, primarily my project requires JDK 6 and to that effect there is another VSCode plugin that needs to point to JDK6 which also I believe doesn't have a configurable JDK option.
from sts4.
(comment in Pivotal Tracker added by Kris De Volder:)
We decided that we are going to add a specific configuration key for sts4 language server to set java.home. The exact name of the key still to be decided.
We decided to use our own key rather than try to respond to the key that is used by redhat java language server. That way java home location can be set independently for STS 4 language server. (Since I guess the problem we are trying to address is actually precisely that JAVA_HOME env var is not 'independent enough'. So replacing it with something else that is also not completely independent is probably not a great idea.
from sts4.
@shankarramr The fix is now available as a snasphot .vsix file. You can download from here:
http://dist.springsource.com/snapshot/STS4/nightly-distributions.html
Instructions on how to install a .vsix file here (at the very bottom of the page):
https://github.com/spring-projects/sts4/tree/master/vscode-extensions/vscode-spring-boot
Just in case you wanted to try it.
from sts4.
Related Issues (20)
- Error while installing STS 4.4 HOT 1
- Extract to local variable, replace all occurrences broken HOT 4
- indexing runs out of memory for large projects HOT 4
- JPA Repo Entity ID composite key reports problem HOT 1
- Remove `org.springframework.ide.vscode.boot.java.livehover.v2.SpringProcessTracker` and its references HOT 1
- [Question] Any consideration of supporting Java Platform Extension HOT 1
- request mapping symbol doesn't take superclass mapping path into account
- Show active profiles in Boot Dash HOT 2
- latest snapshot builds have wrong port in live hover request mapping URLs HOT 2
- Build sts4 for LoongArch HOT 7
- SpringToolSuite (x_86_64 option) IDE keeps crashing frequently. HOT 5
- java.lang.ClassNotFoundException: org.eclipse.jdt.ls.core.internal.javadoc.JavaElementLinks cannot be found by ... HOT 1
- Eclipse crashes after upgrade of libwebkit2gtk to 2.44.x HOT 21
- renaming of files and packages causes symbols to get out of sync HOT 6
- show a nice message when trying to change log levels without a connected running app HOT 4
- CompilationUnitCache: gracefully cleanup the name environment HOT 1
- SpEL Syntax Highlighting
- syntax highlighting for embedded languages (SpEL, JPQL, SQL, HQL, etc.) inside of Java editor (in Eclipse)
- add parser-based validation for JPQL, SQL, HQL snippets HOT 3
- improve parser-based validation for SpEL snippets
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 sts4.