0

in vscode, from some time ago i couldn't see that shortcut in application.properties.

i tryed googling and someting, but still not work ㅠ_ㅠ so, i wrote here for help..

this is my output err(?)


[Error - 오후 8:24:00] Request textDocument/definition failed.
 Message: Internal error.
 Code: -32603 
java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Illegal character in path at index 34: file:///C:/Users/swans/OneDrive/바탕 화면/스프링 db/ojdbc/jdbc/src/main/resources/application.properties
   at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)
   at java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)
   at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)
   at java.base/java.util.concurrent.CompletableFuture$Completion.run(Unknown Source)
   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Illegal character in path at index 34: file:///C:/Users/swans/OneDrive/바탕 화면/스프링 db/ojdbc/jdbc/src/main/resources/application.properties
   at java.base/java.net.URI.create(Unknown Source)
   at org.springframework.ide.vscode.boot.jdt.ls.JdtLsProjectCache.find(JdtLsProjectCache.java:197)
   at org.springframework.ide.vscode.boot.app.BootLanguageServerParams.lambda$createDefault$1(BootLanguageServerParams.java:76)
   at org.springframework.ide.vscode.boot.app.PropertiesJavaDefinitionHandler.handle(PropertiesJavaDefinitionHandler.java:68)
   at org.springframework.ide.vscode.languageserver.starter.LanguageServerAutoConf.lambda$registerDefinitionHandler$2(LanguageServerAutoConf.java:99)
   at org.springframework.ide.vscode.commons.languageserver.util.SimpleTextDocumentService.lambda$definition$6(SimpleTextDocumentService.java:370)
   ... 5 more
Caused by: java.net.URISyntaxException: Illegal character in path at index 34: file:///C:/Users/swans/OneDrive/바탕 화면/스프링 db/ojdbc/jdbc/src/main/resources/application.properties
   at java.base/java.net.URI$Parser.fail(Unknown Source)
   at java.base/java.net.URI$Parser.checkChars(Unknown Source)
   at java.base/java.net.URI$Parser.parseHierarchical(Unknown Source)
   at java.base/java.net.URI$Parser.parse(Unknown Source)
   at java.base/java.net.URI.<init>(Unknown Source)
   ... 11 more

  • Same as this one: https://stackoverflow.com/questions/4992317/illegal-character-in-path-at-index-16 - you need to add encode the path so the spaces "바탕 화면/스프링 db" get encoded – Norman Aberin Jan 12 '23 at 15:47

0 Answers0