Auto completion a request has failed error
See original GitHub issueDescribe the bug
I have two files the first one is user_response.dart
and contains UserResponse class
and the second one is token_response.dart
and contains TokenResponse class
When I type a part of TokenResponse class
name then select the full name from the auto completion list in Visual Studio Code this error message appear:
A request has failed. See the output for more information
Source: Dart (Extension)
The output:
[Error - 12:06:55 PM] Request completionItem/resolve failed.
Message: No such element: TokenResponse in package:my_app/responses/user_response.dart
Code: -32602
TokenResponse
To Reproduce Steps to reproduce the behavior: I don’t how to reproduce the problem
Expected behavior It should auto complete the class name and insert the import for it.
Screenshots If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
- VS Code version: 1.60.0
- Dart extension version: 3.26.0
- Dart/Flutter SDK version: Flutter 2.2.3 • channel stable
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
Attempt to automatically complete failed: The source or target ...
Developer Community. Attempt to automatically complete failed: The source or target repository was not found. Auto-complete has been reset.
Read more >Code completion | IntelliJ IDEA Documentation - JetBrains
Techniques to accelerate the editing process in IntelliJ IDEA using code completion (basic completion, smart completion based on type, ...
Read more >List of HTTP status codes - Wikipedia
This is a list of Hypertext Transfer Protocol (HTTP) response status codes. Status codes are issued by a server in response to a...
Read more >Error codes in Device Manager in Windows - Microsoft Support
In this article, we will help you find your error code and suggest what you ... Code 43 "Windows has stopped this device...
Read more >HTTP response status codes - MDN Web Docs - Mozilla
This code is sent in response to an Upgrade request header from the client and ... The request failed due to failure of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m having the same issue after removing a
part of
from a Dart file. Every time I trigger auto complete for the class it tries to get it’s import from the old file it was a part of, instead of the actual path.Removing (I actually renamed)
.dartServer
fixed it.Could you please send the
ex
folder to mescheglov@google.com
?