-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting plantuml.jar has no effect #147
Comments
You should be able to use {
"plantuml.jar": "${workspaceFolder}/.vscode/plantuml.1.2018.10.jar"
} or {
"plantuml.jar": ".vscode/plantuml.1.2018.10.jar"
} with next release. |
I'm still having troubles with this in 2.10.6 Now I added some debug code in config.js:
I'm always getting the cannot resolve plantuml.jar setting message (Id 19). |
My fault that I removed the eval feature by this commit: 7bd077d But the following should still work: {
"plantuml.jar": ".vscode/plantuml.1.2018.10.jar"
} Can you try it? |
I'm trying to use In the debug window I see the path as entered without the workspace folder prepended. |
I'm opening a folder with a .vscode directory in it. I have added more debug info. |
@RedX2501 Doesn't see anything..
Make the following setting in workspace setting ( {
"plantuml.jar": "tools/plantuml.jar",
} Should work as expected. |
@qjebbs I was having problems uploading. It should work now. |
OK, good to hear.. |
I mean the image should work, the problem is still there. |
Ok, I think i see know what is going on. When I start it will try to get the config for Uri null, which results in folderPath being empty. So a config is cached for the empty folderPath which does not find the jar file because it cannot resolve the relative path. When i then press 'alt+d' to see the preview for the file it will now try with a proper uri and the cache will not have the entry for the new folderPath, now it will try to resolve and it will work. |
@RedX2501 I see, it's a false alarm, if you preview or export, your setting should have been applied. I'll fix it in next release. |
Using
I can see that the version i have set in
settings.json
is not picked up:{
"plantuml.jar": "${workspaceFolder}/.vscode/plantuml.1.2018.10.jar"
}
It seems it does work but a full path must be specified.
It would be nice if the variable ${workspaceFolder} could be used so the settings file is agnostic of the PC it is running on. Or event if relative paths to the workspace could be given.
Plugin version: 2.9.0
The text was updated successfully, but these errors were encountered: