Skip to content

Activate Extension Fails When There Is A White Space In the Path to Extension #39

@ShuzhaoFeng

Description

@ShuzhaoFeng

System: Windows 11
VS Code version: 1.82.2
Plugin version: 1.2.1

After installing the extension on vscode, if the path to digized.umple-{version} has a whitespace somewhere in the middle (usually caused by the user's root folder having a whitespace, e.g. My User), the jar xf command will take the path as two different arguments, and thus causes the extension not being able to find umple.jar.

Specifically, this produces the following error:

Activating extension 'digized.umple' failed: Command failed: cd c:\Users\My User\.vscode\extensions\digized.umple-1.2.1 && jar xf c:\Users\My User\.vscode\extensions\digized.umple-1.2.1\umple.jar en.error
java.util.zip.ZipException: zip END header not found
	at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1618)
...
	at jdk.jartool/sun.tools.jar.Main.main(Main.java:1700)

Which cause the extension to have no callable actions:
image
And force-calling the actions with Ctrl + Shift + P will result in a command not found error:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions