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

C# Interactive window: Help folks use #r directive with better error message #48983

Open
AArnott opened this issue Oct 28, 2020 · 1 comment
Open
Labels
Area-Compilers Bug Concept-Diagnostic Clarity The issues deals with the ease of understanding of errors and warnings.
Milestone

Comments

@AArnott
Copy link
Contributor

AArnott commented Oct 28, 2020

Version Used: VS 2019 Update 9 preview

I failed to load an assembly the first time I tried:

#r @"D:\git\streamjsonrpc\bin\StreamJsonRpc.Tests\Debug\netcoreapp3.1\MessagePack.dll"
(1,4): error CS7010: Quoted file name expected

This puzzled me because I gave it a quoted file name. I eventually figured out that it didn't like the @ in the front. This was very unexpected because in general the code this window accepts is C#, and the error message did not help me discover my mistake. Can the error message here be improved?

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added Area-Interactive untriaged Issues and PRs which have not yet been triaged by a lead labels Oct 28, 2020
@tmat
Copy link
Member

tmat commented Oct 28, 2020

This would require a change in the parser - changing the message for CS7010 for all directives that take strings.

@jaredpar jaredpar added Bug Concept-Diagnostic Clarity The issues deals with the ease of understanding of errors and warnings. and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Nov 2, 2020
@jaredpar jaredpar added this to the Backlog milestone Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Bug Concept-Diagnostic Clarity The issues deals with the ease of understanding of errors and warnings.
Projects
None yet
Development

No branches or pull requests

4 participants