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

Find a more reliable source origin for diagnostic #30

Open
stevefan1999 opened this issue Dec 20, 2021 · 0 comments
Open

Find a more reliable source origin for diagnostic #30

stevefan1999 opened this issue Dec 20, 2021 · 0 comments

Comments

@stevefan1999
Copy link

Coming from m-labs/artiq#1671:

It seems like one of the issue stems from here:

if len(set(map(lambda x: x.source_buffer,
[location] + highlights))) > 1:
raise ValueError("location and highlights must refer to the same source buffer")

And indeed the evaluation of the expression shows there are more than 2 elements.

Screenshot from 2021-12-20 16-55-49

While the source is clearly different, and it kind of makes sense for the compiler to throw an error like this, shouldn't we find a better source of determining the source origin?
Screenshot from 2021-12-20 16-59-22

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

No branches or pull requests

1 participant