question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[TreeUnpickler] hitting assertion failure: `-Yread-docs` enabled, but no `docCtx` is set.

See original GitHub issue

Hi,

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:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
tgodzikcommented, Dec 30, 2021

We checked and this seems to happen only on graalvm-ce-java8 and most likely MacOS

0reactions
tgodzikcommented, Jan 18, 2022

Actually, this got already fixed by https://github.com/lampepfl/dotty/pull/13811

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found