Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A request has failed extension error #118

Open
OrtooJai opened this issue Jul 17, 2023 · 4 comments
Open

A request has failed extension error #118

OrtooJai opened this issue Jul 17, 2023 · 4 comments

Comments

@OrtooJai
Copy link

Summary

When using SLDS Validator, as part of the SFDX VSCode extension pack, it continually fails (about once every minute). This causes the VScode "A request has failed" notification to appear every time.

As far as I can tell the SLDS class validation in LWCs still works despite this.

Unfortunately the "a request has failed" notifications are quite disruptive.

Error message

[Error - 15:28:05] 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

Additional information

Screenshot 2023-07-17 at 15 31 30

SLDS Validator Version: v1.4.8

VS Code Version: Version: 1.80.1 (Universal) macOS

SFDX CLI Version: sfdx-cli/7.208.10 darwin-x64 node-v18.15.0

OS and version: macOS Ventura Version 13.1 (22C65)

@malex30
Copy link

malex30 commented Sep 3, 2024

Did you ever get this resolved? I have a similar issue (i.e. My set up is in Windows)
I'd like to know what this issue was. I've already restarted VS Code, the extension. Not sure what else I can do.

@MriteshAdak
Copy link

Same question here, I started seeing this error today.
I am on windows but using WSL.

@OrtooJai
Copy link
Author

OrtooJai commented Sep 4, 2024

Unfortunately I was not able to resolve it. Instead I disabled the SLDS validator extension and have been developing without it.

@diogosdias
Copy link

diogosdias commented Sep 5, 2024

The same problem happens to me. I'm using "Microsoft Build of OpenJDK with Hotspot 17.0.10+ 7 x64".

Captura de tela 2024-09-05 125554

[Error - 12:50:24 PM] 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants