Open m-metz opened 1 year ago
Thanks for reporting, it indeed looks like a bug, since the scheme argument isn't used for the file case. I'm still not sure it will work for this particular kind of file, though, but I will take a look!
I don't think there's any way of turning the error message of, without turning off the coupling/link between the editor and the plantuml view.
I get a terrible pop up message error every time I click into standard Java Libraries with the PlantUML plugin Having "Link with editor" on. If I click on the open standard library file afterwards, the same error message pops up.
As a workaround I turn of "Link with Editor" but I spent way too long figuring out it was a PlantUML bug.
Looking through your code it looks like your
setFileLocation(((IPathEditorInput) editorInput).getPath());
in WorkbenchPartDiagramIntentProviderContext.javais calling
setFileLocation(final IPath path)
in LocationDiagramIntentProviderContext.javaWhich has a "file" schema parameter, but then that is never used in
setLocation(new URI("ws", null, path.toString(), null));
Should the "ws" be "file" here?Anyway, if there is some way to stop the pop up error message when viewing Java System Library files in Eclipse (while Link with Editor is turned on), it is much appreciated.
The error message does not happen when I load outside java files that aren't in my workspace, just when viewing system libraries.
Another strange thing is the FilePath of the library has a file path to a class file, but it somehow shows source code, not sure if that is related.
ws:C:/Users/MICHAE~1/AppData/Local/Temp/PrintStream.class1095749574442564857.class
I know you are busy and I appreciate the time you are taking to look into this issue.