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

Exception from analysis server (running from VSCode / Dart Code) #39109

Closed
CheoWalker opened this issue Oct 25, 2019 · 1 comment
Closed

Exception from analysis server (running from VSCode / Dart Code) #39109

CheoWalker opened this issue Oct 25, 2019 · 1 comment

Comments

@CheoWalker
Copy link

Please review the below report for any information you do not wish to share and report to
https://github.com/dart-lang/sdk/issues/new

Exception from analysis server (running from VSCode / Dart Code)

What I was doing

Opening up my Flutter project in VS Code caused the error.

Versions

  • Flutter SDK 1.10.15-pre.251
  • Visual Studio Code 1.39.2
  • Dart Code 3.5.1

Analyzer Info

The analyzer was launched using the arguments:

C:\flutter\bin\cache\dart-sdk\bin\snapshots\analysis_server.dart.snapshot
--client-id=Dart-Code.dart-code
--client-version=3.5.1

Exception (fatal)

Failed to handle request: {id: 6, method: analysis.setAnalysisRoots, params: {excluded: [], included: [C:\Users\cheow\Documents\my_hereos]}, clientRequestTime: 1571966742113}

FileSystemException: Directory watcher closed unexpectedly, path = 'C:\Users\cheow\Documents'
#0      _FileSystemWatcher._listenOnSocket.<anonymous closure> (dart:io-patch/file_patch.dart:309:11)
#1      _ExpandStream._handleData (dart:async/stream_pipe.dart:248:23)
#2      _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:164:13)
#3      _rootRunUnary (dart:async/zone.dart:1136:13)
#4      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#5      _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#6      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#7      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#8      _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:764:19)
#9      _StreamController._add (dart:async/stream_controller.dart:640:7)
#10     _StreamController.add (dart:async/stream_controller.dart:586:5)
#11     new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1384:35)
#12     _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:890:18)
#13     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#14     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#15     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:116:13)
#16     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:173:5)

Diagnostics requested after the error occurred are:

[
    {
        "name": "C:\\Users\\cheow\\Documents\\my_hereos",
        "explicitFileCount": 3,
        "implicitFileCount": 853,
        "workItemQueueLength": 0,
        "cacheEntryExceptions": []
    }
]
@devoncarew
Copy link
Member

dupe of #38853

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants