[TreeUnpickler] hitting assertion failure: `-Yread-docs` enabled, but no `docCtx` is set.
See original GitHub issueHi,
I’m running into an assertion failure here when trying to use Scala 3 with Metals (which uses InteractiveDriver
, which seems to set the -Yread-docs
option).
Exception in thread "pool-10-thread-9" java.lang.AssertionError: assertion failed: `-Yread-docs` enabled, but no `docCtx` is set.
at scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:8)
at dotty.tools.dotc.core.tasty.TreeUnpickler$TreeReader.readNewDef(TreeUnpickler.scala:901)
at dotty.tools.dotc.core.tasty.TreeUnpickler$TreeReader.readIndexedDef(TreeUnpickler.scala:776)
...
This only happens for me as far as I can tell (nobody can reproduce it) but it’s consistent. I was hoping someone here might be able to explain the circumstance in which this assertion would be triggered, to help us track down what’s going on.
The related Metals issue is https://github.com/scalameta/metals/issues/3414
Thanks!
rob
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Assertion failure when you execute a query specifying TOP N ...
Fixes an issue in which query fails and errors when you execute a query specifying TOP N and ORDER BY in SQL Server...
Read more >Visual Studio exits on assertion failure with no error message
In my case, the problem was that Configuration Properties -> C/C++ -> Code Generation -> Runtime Library was set to "Multi-threaded" for ...
Read more >Programming With Assertions - Oracle Help Center
When the system runs the assertion, it evaluates Expression1 and if it is false throws an AssertionError with no detail message.
Read more >JMeter Assertions: The Ultimate Guide - OctoPerf
No worries! This ultimate guide on JMeter Assertion explores every single assertion type through comprehensive examples. You'll know when and ...
Read more >19791 – Assertion failure in res_query.c with un-connectable ...
This will cause the else condition to execute and set both hp and hp2 to NULL as ... I compiled 2.23 with no...
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
We checked and this seems to happen only on
graalvm-ce-java8
and most likely MacOSActually, this got already fixed by https://github.com/lampepfl/dotty/pull/13811