Skip to content

VSCode can't open files from Logical Structure #1655

@jekutzsche

Description

@jekutzsche

Thank you for the new interesting feature "Logical Structure" from Spring Tools and Modulith.

Describe the bug

I use VSCode.
I can see the hierarchy of the Logical Structure with Modules, Controllers and soon. But when I click on entry in this hierarchy then VSCode can't open the file and logs the following error:

[error] [Window] Error: The editor could not be opened because the file was not found.
    at IDe.gc (vscode-file://vscode-app/[…]/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2625:81151)
    at async IDe.setInput (vscode-file://vscode-app/[…]/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2625:80309)
    at async PGe.S (vscode-file://vscode-app/[…]/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:610:58577)
    at async PGe.L (vscode-file://vscode-app/[…]/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:610:57132)
    at async PGe.openEditor (vscode-file://vscode-app/[…]/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:610:56214)
    at async vscode-file://vscode-app/[…]/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:722:23355
    at async vscode-file://vscode-app/[…]/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:604:1272
    at async qae.value (vscode-file://vscode-app/[…]/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:604:26027)

When I click on “Open Reference” for a node (e.g., “Services (Spring)”), the following error message is logged:

[error] [Window] cannot open jar:file%3A/[…]/.m2/repository/org/jmolecules/integrations/jmolecules-spring/0.30.0/jmolecules-spring-0.30.0.jar%21/META-INF/jmolecules-stereotypes.json. Detail: Unable to resolve resource jar:file%3A/[…]/.m2/repository/org/jmolecules/integrations/jmolecules-spring/0.30.0/jmolecules-spring-0.30.0.jar%21/META-INF/jmolecules-stereotypes.json

To Reproduce

I suspect the cause is that I am using remote SSH. VSCode as the “front end” runs on Windows and uses SSH to access a VSCode server on Linux, where the code is also located.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions