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

Handle <?> special symbol name from Scala 3 Semanticdb #635

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

keynmol
Copy link
Contributor

@keynmol keynmol commented Aug 16, 2023

See https://sourcegraph.com/github.com/lampepfl/dotty/-/blob/compiler/src/dotty/tools/dotc/semanticdb/SemanticSymbolBuilder.scala?L59

I'm not sure if we can treat it as a local instead, given that it's explicitly coming from a failed local table lookup.

This is a stopgap solution to at least not completely crash over it.

Test plan

N/A - difficult to say if this behaviour is intentional on Scala 3 side

@keynmol keynmol marked this pull request as ready for review August 16, 2023 09:59
@@ -12,6 +12,7 @@
public final class SemanticdbSymbols {

public static String NONE = "";
public static String NONE_STUB = "<?>";
Copy link
Member

Choose a reason for hiding this comment

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

Might be worth adding a comment explaining why this exists

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.

None yet

2 participants