Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport for an alternative jvm #471
Conversation
ff44a0b
to
14e86e0
|
ping @Eskibear What do you think about this feature? Anything I missed that you can see? I personally need it for VSCode to even be a possible editor for my work. |
|
@testforstephen @andxu Would you please help evaluate this PR? |
As a dependent, java-debugger uses the same JAVA_HOME with language server for consistency. Personally, I don't understand the reason why you have to run language server on 64-bit and debug the app on 32-bit. Can you share the motivation? And can you simply change settings |
|
@Eskibear The motivation is that my project (inherited, new job, old code base) is a rather large (106MB of source code) monolithic code base. I need Java 64-bit for the JLS (Java Language Server) because it needs well over 4 GB of RAM just to be usable, which is not possible when running on the 32-bit JVM. Side note, the use of That's the primary motivation. The other, this just makes it easier to test your code against alternative JVM installs without need to constantly change and restart the VSCode (Which for me, is a slow process that can take up to 5 minutes to become stable enough to start working). So if for example I wanted to test against the newly announced Amazon Corretto JVM, or the Redhat compiled JVM, or maybe GraalVM (no idea how to use that yet, just throwing out examples). The only issue I am having with my PR is that when I change the |
|
@Eskibear Any thoughts? Would love to see this merged, but I would love even more feedback on where to add the needed change to ensure that if the config file is changed, the value I pass in via |
| @@ -131,6 +131,11 @@ | |||
| "description": "Automatically pause the program after launching.", | |||
| "default": true | |||
| }, | |||
| "jvm": { | |||
andxu
Nov 22, 2018
Contributor
javaHome is better, since we can not infer the jave.exe or the folder from jvm
javaHome is better, since we can not infer the jave.exe or the folder from jvm
RobertDeRose
Nov 25, 2018
Author
Ok
Ok
| @@ -128,7 +129,7 @@ export class JavaDebugConfigurationProvider implements vscode.DebugConfiguration | |||
| try { | |||
| if (this.isUserSettingsDirty) { | |||
andxu
Nov 22, 2018
•
Contributor
Could you please help to change the older mechanism of detecting setting dirty of using vscode.workspace.onDidChangeConfiguration and affectsConfiguration(see debugCodeLensProvider.ts)
instead of isUserSettingsDirty
Could you please help to change the older mechanism of detecting setting dirty of using vscode.workspace.onDidChangeConfiguration and affectsConfiguration(see debugCodeLensProvider.ts)
instead of isUserSettingsDirty
RobertDeRose
Nov 25, 2018
Author
Ok, I’ll take a look
Ok, I’ll take a look
andxu
Dec 4, 2018
Contributor
Please also update the branch too.
Please also update the branch too.
d9691a3
to
5d477ff
* Added new launch configuration property `javaHome` * Changed `updateDebugSettings` to optionally take in the config object - uses `config.javaHome` if available instead for calling `getJavaHome`
5d477ff
to
454f94a

jvmupdateDebugSettingsto optionally take in the config objectconfig.jvmif available instead for callinggetJavaHome