Completion on self type crashes Dotty IDE
See original GitHub issueSteps:
launchIDE
- Open a file,
NameBuffer.scala
for instance. - Add a new class before
class NameBuffer
:class MyClass { self => }
- Change it to:
class MyClass { self: M => }
- As soon as the
M
is typed, the following stack trace appears:
[Error - 10:24:04 AM] Request textDocument/completion failed.
Message: Internal error.
Code: -32603
java.util.concurrent.CompletionException: java.lang.AssertionError: assertion failed
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:604)
at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:443)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: java.lang.AssertionError: assertion failed
at dotty.DottyPredef$.assertFail(DottyPredef.scala:35)
at dotty.tools.dotc.interactive.Interactive$.contextOfPath(Interactive.scala:350)
at dotty.tools.dotc.interactive.Interactive$.contextOfPath(Interactive.scala:335)
at dotty.tools.dotc.interactive.Interactive$.contextOfPath(Interactive.scala:335)
at dotty.tools.dotc.interactive.Interactive$.completions(Interactive.scala:103)
at dotty.tools.languageserver.DottyLanguageServer.completion$$anonfun$1(DottyLanguageServer.scala:232)
at dotty.tools.languageserver.DottyLanguageServer.liftedTree1$1(DottyLanguageServer.scala:139)
at dotty.tools.languageserver.DottyLanguageServer.computeAsync$$anonfun$1(DottyLanguageServer.scala:144)
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602)
... 6 more
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
VS Code: CompletionException caused by AssertionError #4836
VS Code: CompletionException caused by AssertionError #4836 ... Completion on self type crashes Dotty IDE #4646.
Read more >ACCIDENT REGISTER
ACCIDENT REGISTER. FROM. , 20____ TO. , 20____. Date & Hour of Accident. Location of Accident. No. of. Deaths. No. of. Non-Fatal. Injuries....
Read more >Crash Analysis Toolbox
https://clear.dot.ny.gov/clear/cdv/; CLEAR Interactive Crash Editor (ICE) ... tables contain accident rates for State Highways, based on facility type and ...
Read more >User Manual - rust-analyzer
If rust-analyzer outright crashes, try running rust-analyzer analysis-stats /path/to/project/directory/ on the command line. This command type checks the ...
Read more >Modern IDEs are magic. Why are so many coders still using ...
While an IDE is some weird new food with all kinds of exotic ... With code completion, Git control, and even automatic deployment...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This test reproduces the crash:
To be pasted in
language-server/test/dotty/tools/languageserver/CompletionTest.scala
, and run with:I can still reliably reproduce on current HEAD: 1d24eaaeff847b8b67fa914b56a8005c8cf4a094