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

RefinedType unsupported? Getting Internal error in extracting SemanticDB while compiling ... #6659

Open
soronpo opened this issue Aug 8, 2024 · 3 comments
Labels
needs more information Use if we need more information for a specific ticket upstream-fix-needed Waiting on a fix upstream

Comments

@soronpo
Copy link

soronpo commented Aug 8, 2024

Describe the bug

I'm getting many error like this in the output log:

Internal error in extracting SemanticDB while compiling C:\Users\oronpo\IdeaProjects\dfhdl\lib\src\test\scala\issues\i116.scala: Ignoring b of symbol class DFVal, type RefinedType(RefinedType(AppliedType(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class dfhdl)),object core),DFVal),List(AppliedType(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class dfhdl)),object core),DFType),List(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class compiler)),object ir),DFStruct), AppliedType(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class dfhdl)),object core),Args1),List(TypeRef(ThisType(TypeRef(NoPrefix,module class i116)),class Test))))), AppliedType(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class dfhdl)),object core),Modifier),List(AndType(TypeRef(ThisType(TypeRef(ThisType(TypeRef(NoPrefix,module class i116)),class GlobCounter)),type TScope),TypeRef(ThisType(TypeRef(ThisType(TypeRef(NoPrefix,module class i116)),class GlobCounter)),type TDomain)), TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class <root>)),object scala),Any), TypeRef(ThisType(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class dfhdl)),object core),module class Modifier$)),trait Initializable), TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class <root>)),object scala),Any))))),a,AppliedType(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class dfhdl)),object core),DFVal),List(AppliedType(TypeRef(TermRef(TermRef(ThisType(TypeRef(NoPrefix,module class dfhdl)),object internals),helpers$package),<:!),List(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class dfhdl)),object hdl$package),type Bit), TypeRef(TermRef(TermRef(ThisType(TypeRef(NoPrefix,module class dfhdl)),object core),DFType$package),DFTypeAny))), AppliedType(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class dfhdl)),object core),Modifier),List(AndType(TypeRef(ThisType(TypeRef(ThisType(TypeRef(NoPrefix,module class i116)),class GlobCounter)),type TScope),TypeRef(ThisType(TypeRef(ThisType(TypeRef(NoPrefix,module class i116)),class GlobCounter)),type TDomain)), TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class <root>)),object scala),Any), TypeRef(ThisType(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class dfhdl)),object core),module class Modifier$)),trait Initializable), TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class <root>)),object scala),Any)))))),b,AppliedType(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class dfhdl)),object core),DFVal),List(AppliedType(TypeRef(TermRef(TermRef(ThisType(TypeRef(NoPrefix,module class dfhdl)),object internals),helpers$package),<:!),List(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class dfhdl)),object hdl$package),type Bit), TypeRef(TermRef(TermRef(ThisType(TypeRef(NoPrefix,module class dfhdl)),object core),DFType$package),DFTypeAny))), AppliedType(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class dfhdl)),object core),Modifier),List(AndType(TypeRef(ThisType(TypeRef(ThisType(TypeRef(NoPrefix,module class i116)),class GlobCounter)),type TScope),TypeRef(ThisType(TypeRef(ThisType(TypeRef(NoPrefix,module class i116)),class GlobCounter)),type TDomain)), TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class <root>)),object scala),Any), TypeRef(ThisType(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class dfhdl)),object core),module class Modifier$)),trait Initializable), TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class <root>)),object scala),Any))))))

Expected behavior

No errors.

Operating system

Windows

Editor/Extension

VS Code

Version of Metals

v1.3.5

Extra context or search terms

No response

@tgodzik
Copy link
Contributor

tgodzik commented Aug 8, 2024

Thanks for reporting! This looks like it's coming from the compiler, are you able to provide a code snippet that causes it?

@soronpo
Copy link
Author

soronpo commented Aug 9, 2024

For this sort of bug, is it crucial for it to be minimized? Or can it use an external library?

@tgodzik
Copy link
Contributor

tgodzik commented Aug 9, 2024

I think it can use an external library, we can work further on minimizing it later.

@tgodzik tgodzik added upstream-fix-needed Waiting on a fix upstream needs more information Use if we need more information for a specific ticket labels Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more information Use if we need more information for a specific ticket upstream-fix-needed Waiting on a fix upstream
Projects
None yet
Development

No branches or pull requests

2 participants