The debugger and the debuggee are running in different versions of JVMs. You could see wrong source mapping results.

See original GitHub issue

When trying to run a project (sometimes not even debugging) I keep getting this warning on vscode:

[Warn] The debugger and the debuggee are running in different versions of JVMs. You could see wrong source mapping results.
Debugger JVM version: 14.0.2
Debuggee JVM version: 11.0.13

The solution seems simple, all I want to is use the Debugger JVM as the 11.0.13. But I can’t find where I change this setting. Help please.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
tgodzikcommented, Dec 3, 2021

Did you run Metals: Restart build server afterwards?

Hi! I don’t have bloop installed in my machine, but this isn’t a requirement, as stated here:

It’s not require, but the only difference is that you don’t have the Bloop cli, everything else is the same, so the server should pick up bloop.json in home.

I think if this is the case, the .bloop folder it uses is inside the project directory. So yeah, I created in my workspace.

.bloop only contains config files for modules, so if you add another json it will think you added a new target, so this is not a right place to add anything manually.

1reaction
tgodzikcommented, Dec 2, 2021

That’s separate setting, Metals doesn’t use Java Language Server currently.

Could you try to update to newest Metals snapshot? https://scalameta.org/metals/docs/ and changes server version settings.

The snapshot version should print the issues with connection to Bloop in detail.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot set JVM for debugger · Issue #907
1. Current Result. [Warn] The debugger and the debuggee are running in different versions of JVMs. You could see wrong source mapping results....
Read more >
scalameta/metals - Gitter
[Warn] The debugger and the debuggee are running in different versions of JVMs. You could see wrong source mapping results. Debugger JVM version:...
Read more >
visual studio code - VSCode Java Debugger Version change
[Warn] The debugger and the debuggee are running in different versions of JVMs. You could see wrong source mapping results.
Read more >
Run and Debug Java in Visual Studio Code
See how you can run and debug your Java source code locally, and in the cloud. ... Another way to start debugging is...
Read more >
Consolidated JDK 8 Release Notes
It is ideal if you want or need to use Java SE 8 and you are running those ... and key update behaviors...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found