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

"Invalid file path" message is confusing and misleading #3830

Closed
DanTup opened this issue Feb 14, 2022 · 1 comment
Closed

"Invalid file path" message is confusing and misleading #3830

DanTup opened this issue Feb 14, 2022 · 1 comment
Labels
in lsp/analysis server Something to be fixed in the Dart analysis server
Milestone

Comments

@DanTup
Copy link
Member

DanTup commented Feb 14, 2022

[Error - 10:31:25 AM] Request textDocument/codeAction failed.
  Message: Invalid file path
  Code: -32003 
/Users/danny/Desktop/dart_samples/dartcode_flutter_3825/lib/main.dart

This error message happens when the LSP server fails to get a parsed result for a filename. When the message was written, it was assumed the only reason this could occur is that the path is not valid. However, it can also happen in other cases (such as a failure to parse the file). It would be nice to understand these differences in the server and produce more specific messages to avoid everything seeming like the same problem (which often ends up with overloaded GH issues).

@DanTup DanTup added the in lsp/analysis server Something to be fixed in the Dart analysis server label Feb 14, 2022
@DanTup DanTup added this to the v3.36.0 milestone Feb 14, 2022
@DanTup
Copy link
Member Author

DanTup commented Feb 14, 2022

@DanTup DanTup closed this as completed Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in lsp/analysis server Something to be fixed in the Dart analysis server
Projects
None yet
Development

No branches or pull requests

1 participant