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

Unexpected type tag INLINED in SELECTtpt #424

Closed
adpi2 opened this issue Dec 14, 2023 · 0 comments
Closed

Unexpected type tag INLINED in SELECTtpt #424

adpi2 opened this issue Dec 14, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@adpi2
Copy link
Member

adpi2 commented Dec 14, 2023

In the classpath of "edu.gemini" %% "lucuma-itc-core" % "0.10.0"

Try unpickle the TASTy file of object ItcImpl. It throws:

tastyquery.Exceptions$TastyFormatException: Unexpected type tag INLINED at address Addr(10192) in file /home/piquerez/.cache/coursier/v1/https/repo1.maven.org/maven2/edu/gemini/lucuma-itc-core_3/0.10.0/lucuma-itc-core_3-0.10.0.jar:lucuma/itc/ItcImpl.class
	at tastyquery.reader.tasties.TreeUnpickler.readTypeMappable(TreeUnpickler.scala:1377)
	at tastyquery.reader.tasties.TreeUnpickler.readNonEmptyPrefix(TreeUnpickler.scala:1201)
	at tastyquery.reader.tasties.TreeUnpickler.doReadTypeTree(TreeUnpickler.scala:1637)
	at tastyquery.reader.tasties.TreeUnpickler.readTypeTree(TreeUnpickler.scala:1523)
	at tastyquery.reader.tasties.TreeUnpickler.doReadTypeTree(TreeUnpickler.scala:1576)
	at tastyquery.reader.tasties.TreeUnpickler.readTypeTree(TreeUnpickler.scala:1523)

The TASTy file looks like this:

...
 10023:                                                   TERMREFdirect 10398
...
 10189:                                                     SELECTtpt 685 [UO]
 10192:                                                       INLINED(3)
 10194:                                                         SHAREDtype 10023
...
 10398:                                         VALDEF(87) 697 [su[Unique $proxy 1]]
...
@sjrd sjrd self-assigned this Dec 18, 2023
@sjrd sjrd added the bug Something isn't working label Dec 18, 2023
@sjrd sjrd closed this as completed in 9d218c7 Dec 19, 2023
sjrd added a commit that referenced this issue Dec 19, 2023
Fix #424: Read and handle INLINED nodes in TypeTree position.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants