Skip to content

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented Oct 13, 2025

@tgodzik tgodzik requested a review from zielinsky October 13, 2025 07:30
val tpe = asDefLikeType(tree.typeOpt.dealias)
termRef.denot.asSingleDenotation.mapInfo(_ => tpe)
}
catch case NonFatal(_) => None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is crashing here ? There is already try catch in tryApplyingExtensionMethod. I'd say we should not hide such errors, it will be impossible to know. The same goes for latter change.

I strongly believe we should never fallback to default values without logging.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The stack trace is in scalameta/metals#7872

It's a bit beyond me to know how to even minimize it :/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The try in tryApplyingExtensionMethod is not catching it, it's only catching UnhandledError

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

Successfully merging this pull request may close these issues.

Completions stop working dotty.tools.dotc.CompilationUnit$SuspendException

2 participants