You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// yarn start:exampleServer
...
15:41:15 error - [WorkflowGLSPServer] Could not process action: 'requestModel
15:41:15 error - [WorkflowGLSPServer] Error: Could not load model from file: /C:/Users/.../glsp-client/examples/workflow-standalone/app/example1.wf
Thanks for reporting this issue! It would also be interesting to know, if this only happens with the node-based server or also with the Java-based server.
Tested this, and the issue only appears with the node implementation. In the Java variant we convert the received url into a new File object. This seems to take care of proper path conversion (i.e. removal of leading slashes under Windows).
For the node-serer we don't have the same functionality. We use the fileUrlToPath` utility function, but that does not consider leading slashes. So we have to handle them manually.
tortmayr
added a commit
to eclipse-glsp/glsp-server-node
that referenced
this issue
Sep 4, 2023
Ensure leading shashes in File urls are properly handled under Windows.
Also: Fix rimraf command that was not working under Windows
Fixeseclipse-glsp/glsp#1101
Ensure leading shashes in File urls are properly handled under Windows.
Also: Fix rimraf command that was not working under Windows
Fixeseclipse-glsp/glsp#1101
The server can not open the
example1.wf
file in the Workflow-Standalone Example on Windows:Log:
It works again after removing the
/
in theexamplePath
used in https://github.com/eclipse-glsp/glsp-client/blob/master/examples/workflow-standalone/src/app.ts#L37 by hardcoding the URI in https://github.com/eclipse-glsp/glsp-client/blob/master/examples/workflow-standalone/src/app.ts#L49:OS: Windows 10
Node: 16.19.1
The text was updated successfully, but these errors were encountered: