Closed escamoteur closed 4 years ago
Possible related to https://github.com/dart-lang/sdk/issues/37233.
@stereotype441, could you take a look at this and see if there needs to be changes made to the analyzer. Seeing quite a few reports with this exception in bleeding edge.
Reported as recently as Dart 2.6.1.
This was fixed in https://github.com/dart-lang/watcher/pull/75 plus https://dart-review.googlesource.com/c/sdk/+/125765
I am closing, but if we see this occur again with a newer SDK we can reopen.
@MichaelRFairhurst apparently this issue was seen again with Dart 2.7.0 so I am reopening this issue for investigation.
Closing, none of those 2.7 versions include the fix.
@MichaelRFairhurst can you indicate which version of the Dart SDK has the fix, if none of the 2.7 versions has a fix maybe we need to cherry pick this fix and make a release.
The same issue occurs in Dart SDK 2.17.3.
Socket error: FileSystemException: Directory watcher closed unexpectedly
Flutter Doctor output:
flutter doctor -v
[√] Flutter (Channel stable, 3.0.2, on Microsoft Windows [Version 10.0.19044.1706], locale en-IN)
• Flutter version 3.0.2 at C:\Users\rohit\Documents\Flutter SDK\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision cd41fdd495 (9 days ago), 2022-06-08 09:52:13 -0700
• Engine revision f15f824b57
• Dart version 2.17.3
• DevTools version 2.12.2
Checking Android licenses is taking an unexpectedly long time...[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0) • Android SDK at C:\Users\rohit\AppData\Local\Android\sdk • Platform android-32, build-tools 31.0.0 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840) • All Android licenses accepted.
[√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Build Tools 2019 16.11.15) • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools • Visual Studio Build Tools 2019 version 16.11.32510.428 • Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 2021.2) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
[√] VS Code (version 1.68.0) • VS Code at C:\Users\rohit\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.42.0
[√] Connected device (4 available) • Moto Z2 Play (mobile) • 192.168.29.253:5555 • android-arm • Android 8.0.0 (API 26) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19044.1706] • Chrome (web) • chrome • web-javascript • Google Chrome 102.0.5005.63 • Edge (web) • edge • web-javascript • Microsoft Edge 102.0.1245.41
[√] HTTP Host Availability • All required HTTP hosts are available
• No issues found!
@RB-93 - can you file a new issue? What you're seeing is almost certainly a different problem - this was closed several years ago. Thanks!
What I was doing
Just loaded a new project, jumped via F12 into vector2.dart and was navigating there through code by F12 and Alt + <- ->
Versions
Analyzer Info
The analyzer was launched using the arguments:
Exception (fatal)
Failed to handle request: {id: 6, method: analysis.setAnalysisRoots, params: {excluded: [], included: [C:\Entwicklung\projects\Aaronia\trunk\Sources\RTSAMobileDev\aartos, C:\Entwicklung\projects\Aaronia\trunk\Sources\RTSAMobileDev\packages\rtsa_map]}, clientRequestTime: 1570888657966}
Diagnostics requested after the error occurred are: