Ontology module paths can't be parsed as filesystem paths
Pressing Save Documentation to Disk
in the SCL Documentation dialog will result in this because the SCL module hierarchy contains ontology modules (e.g. http://www.simantics.org/Layer0-1.1
) which are in a hierarchy like this:
* http:
*
* Projects
* www.simantics.org
* ...
which causes standard filesystem Path parsing to fail for these module names.
!ENTRY org.eclipse.ui 4 0 2018-11-21 22:19:28.234
!MESSAGE Unhandled event loop exception
!STACK 0
java.nio.file.InvalidPathException: Illegal char <:> at index 4: http:
at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
at sun.nio.fs.AbstractPath.resolve(AbstractPath.java:53)
at org.simantics.scl.compiler.markdown.html.GenerateAllHtmlDocumentation.generate(GenerateAllHtmlDocumentation.java:43)
at org.simantics.scl.compiler.markdown.html.GenerateAllHtmlDocumentation.generate(GenerateAllHtmlDocumentation.java:13)
at org.simantics.scl.ui.browser.SCLDocumentationBrowser$12.widgetSelected(SCLDocumentationBrowser.java:335)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4428)
...