OpenLiberty / liberty-language-server

The Liberty Config Language Server provides language server features for Liberty server configuration files through any of the supported client IDEs.
Eclipse Public License 2.0
6 stars 12 forks source link

CreateFile fix #165

Closed dshimo closed 1 year ago

dshimo commented 1 year ago

Correction for the LCLS code action for CreateFile.

Problem occurred in IntelliJ on Windows:

2023-03-28 12:22:48,709 [1704719] SEVERE - #c.i.o.a.i.FlushQueue - Illegal character in opaque part at index 2: C:\Users\Evie\Downloads\maven-project\src\main\liberty\config\test1.xml
java.lang.IllegalArgumentException: Illegal character in opaque part at index 2: C:\Users\Evie\Downloads\maven-project\src\main\liberty\config\test1.xml
    at java.base/java.net.URI.create(URI.java:906)
    at io.openliberty.tools.intellij.lsp4mp.lsp4ij.LSPIJUtils.applyWorkspaceEdit(LSPIJUtils.java:165)
    at io.openliberty.tools.intellij.lsp4mp.lsp4ij.operations.codeactions.LSPCodeActionIntentionAction.apply(LSPCodeActionIntentionAction.java:96)
    at 

And here's a snapshot comparing the string outputs of getCanonicalPath() to toUri().toString() image

dshimo commented 1 year ago

Old branch.