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

ArgumentException thrown: "SyntaxTree is not part of the compilation" when Projectable moved across assemblies. #59

Open
willnationsdev opened this issue Jan 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@willnationsdev
Copy link

willnationsdev commented Jan 22, 2023

It appears that if a projectable method is moved between assemblies, then Visual Studio won't completely forget about the existence of the first one until you completely restart Visual Studio itself. In the meantime, the ProjectableInterpreter.GetDescriptor method throws an ArgumentException with the message "SyntaxTree is not part of the compilation" when it attempts to get the semantic model for the syntax tree associated with the member declaration. Perhaps there should be a try/catch around this operation to accommodate this scenario as it prevents all of the other perfectly still valid generated methods from appearing until you restart Visual Studio.

@koenbeuk koenbeuk added the bug Something isn't working label Jan 22, 2023
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