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

fixes #537; fixes invalid file causes crashing #550

Closed
wants to merge 9 commits into from

Conversation

ringabout
Copy link
Member

@ringabout ringabout commented Feb 14, 2025

fixes #537

I'm not sure about the meaning of an empty filename in the line info. I suppose it is unintentional, instead of meaning the current filename.

It gives a proper error: ???(4, 5) [Error] expected top level construct but got: "foo.nim"

if pool.files.hasId(file):
write stdout, pool.files[file]
else:
write stdout, "???"
Copy link
Member

@Araq Araq Feb 14, 2025

Choose a reason for hiding this comment

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

No, if the info.isValid it should be valid line information, the error happens earlier, when the line information is created.

@ringabout ringabout marked this pull request as draft February 14, 2025 13:11
@ringabout ringabout marked this pull request as ready for review February 14, 2025 13:44
@Araq Araq closed this Feb 14, 2025
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.

Simple wrong input causes NIFC to crash
2 participants