forcecod and sfdx-SLDS validator file directory synchronization for aura component
Opened this issue · 0 comments
Describe the bug
When saving the file and receiving errors the SLDS validator from SFDX reports the following error:
Request textDocument/codeAction failed.
Message: Internal error.
Code: -32603
A different error occurs when using sfdx-deploy to org option, saying the file dos not exist
To Reproduce
Steps to reproduce the behavior:
- Create a project using the source format
- Open/create an aura cmp
- create a div with no closing tag, or cause any other error type
- save and deploy to org, using forcecode and/or sfdx
- See error
Expected behavior
The error should appear in the "problems panel" with no reading error from SLDS validator dx extension
Desktop (please complete the following information):
- OS: Windows
- VSCode version 1.66.2
- ForceCode Version 4.0.4
Additional context
Complementary info about VSC version:
Version: 1.66.2 (user setup)
Commit: dfd34e8260c270da74b5c2d86d61aee4b6d56977
Date: 2022-04-11T07:46:01.075Z
Electron: 17.2.0
Chromium: 98.0.4758.109
Node.js: 16.13.0
V8: 9.8.177.11-electron.0
OS: Windows_NT x64 10.0.19043
output log with forcecod saving:
[Error - 09:31:47] Request textDocument/codeAction failed.
Message: Internal error.
Code: -32603
java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "String.contentEquals(java.lang.CharSequence)" because the return value of "org.eclipse.lsp4j.Diagnostic.getSource()" is null
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:649)
at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:483)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
Caused by: java.lang.NullPointerException: Cannot invoke "String.contentEquals(java.lang.CharSequence)" because the return value of "org.eclipse.lsp4j.Diagnostic.getSource()" is null
at com.salesforce.slds.lsp.codeactions.CodeActionConverter.process(CodeActionConverter.java:241)
at com.salesforce.slds.lsp.codeactions.CodeActionConverter.lambda$convert$0(CodeActionConverter.java:53)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:178)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at com.salesforce.slds.lsp.codeactions.CodeActionConverter.convert(CodeActionConverter.java:75)
at com.salesforce.slds.lsp.services.TextDocumentServiceImpl.lambda$codeAction$0(TextDocumentServiceImpl.java:48)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
... 6 more