-
Notifications
You must be signed in to change notification settings - Fork 65
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
analysis.setContextRoots failed - RequestErrorCode.PLUGIN_ERROR ProcessException: / No such file or directory / Command: flutter pub get #270
Comments
We are getting this exact same issue as well. Seems like tempDir might be invalid?
flutter pub get works when run in command line. This is the tempDir it is trying to use that does not exist: '/var/folders/dm/xz10cgy114g5plf8c02h19mr0000gq/T/custom_lint_clientn65kUQ' |
@rrousselGit I pulled down the latest from git and pointed my project at it. FWIW the analyzer plugin started working when I specified the full path to my flutter command:
Seems like something change with the resolution of that command. Maybe the path isn't setup properly in the process anymore. |
If I downgrade and pin to 0.6.5 or 0.6.6 it works again. |
@woteska that works for us as well. Thank you! |
Downgrading worked for me too. I'm using |
I'm experiencing this issue on Android Studio + macOS environment. Here's something I found out. macOS sets the PATH environment value to As a workaround I tried to symlink e.g. I think there are two approaches to solve this problem.
Or maybe the Dart Analysis Server could be changed to pass the |
Describe the bug
The lint errors do not appear at all in my Android Studio Dart Analysis tab nor in the source code highlighted, and custom_lint.log contains the following error (it does not make any sense to me - flutter pub get exceeds sucessfully):
If I run
dart run custom_lint
, I see the lint issues in the console output (as expected).To Reproduce
IDE:
IDE plugins:
Dart Plugin: 241.1880
Flutter Plugin: 81.0.2
Full pubspec.lock (uploaded with .log extension as github does not allow to upload files ending with .lock):
pubspec.lock.log
Flutter doctor
I attach the Android Studio Analysis Server Diagnostics report as well:
dart_analyzer_diagnostics_report.json
analysis_options.yaml:
Resolve attemptions
I tried to upgraded-downgraded the Flutter SDK, analyzer.
I also tried to run flutter clean, flutter pub cache clean.
But wasn't able to make it work, only if I downgrade custom_lint to 0.6.6 or 0.6.5.
Expected behavior
I should see the lint errors in Dart Analysis tab in Android Studio, and I also should see the errors in the source code highlighted.
Additional notes
It perfectly works with Visual Studio Code IDE as expected.
I am not sure the issue can regards to macros, but they are disabled in my IDE because of a previous issue:
The text was updated successfully, but these errors were encountered: