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

GoToMetadata doesn't work in CSX files #755

Closed
filipw opened this issue Feb 6, 2017 · 2 comments
Closed

GoToMetadata doesn't work in CSX files #755

filipw opened this issue Feb 6, 2017 · 2 comments
Assignees

Comments

@filipw
Copy link
Member

filipw commented Feb 6, 2017

This is caused due to this check https://github.com/dotnet/roslyn/blob/9502c50d4a09457fae78f2f621484c59501993e3/src/Compilers/CSharp/Portable/Compilation/CSharpCompilation.cs#L1193 in our reflection call into AbstractMetadataAsSourceService. In order to use metadata we need to add a document with a namespace and things break down there.

The solution could be to not flag our CSX projects as submissions however it would break the scripting implementation in many places.

@filipw filipw self-assigned this Feb 6, 2017
@filipw
Copy link
Member Author

filipw commented Feb 6, 2017

The solution would be to not flag our CSX projects as submissions

screenshot 2017-02-06 16 12 18

@filipw
Copy link
Member Author

filipw commented Feb 6, 2017

Actually, this looks more like a bug in Roslyn. Regardless of whether I am using a submission-based compilation or not, AbstractMetadataAsSourceService should not throw an exception. I will open an issue in Roslyn repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant