The Dart Analyzer has terminated.
See original GitHub issuedart --version
Dart VM version: 2.6.1 (Mon Nov 11 13:12:24 2019 +0100) on "macos_x64"
!! PLEASE REVIEW THIS LOG FOR SENSITIVE INFORMATION BEFORE SHARING !!
Dart Code extension: 3.6.0
Flutter extension: 3.6.0 (not activated)
VS Code: 1.40.2
Platform: mac
HTTP_PROXY: undefined
NO_PROXY: undefined
Wed Dec 04 2019 [10:35:14 GMT+0800 (Taipei Standard Time)] Log file started
[10:35:14 AM] [General] [Info] Searching for SDKs...
[10:35:14 AM] [General] [Info] Environment PATH:
[10:35:14 AM] [General] [Info] /Users/dev/Library/Android/sdk/tools/bin
[10:35:14 AM] [General] [Info] /Users/dev/Library/Android/sdk/platform-tools
[10:35:14 AM] [General] [Info] /Users/dev/flutter/bin
[10:35:14 AM] [General] [Info] /usr/local/bin
[10:35:14 AM] [General] [Info] /usr/bin
[10:35:14 AM] [General] [Info] /bin
[10:35:14 AM] [General] [Info] /usr/sbin
[10:35:14 AM] [General] [Info] /sbin
[10:35:14 AM] [General] [Info] /usr/local/MacGPG2/bin
[10:35:14 AM] [General] [Info] /opt/X11/bin
[10:35:14 AM] [General] [Info] /Library/Frameworks/Mono.framework/Versions/Current/Commands
[10:35:14 AM] [General] [Info] /Users/dev/.rvm/bin
[10:35:14 AM] [General] [Info] /Users/dev/.pub-cache/bin
[10:35:16 AM] [General] [Info] Searching for flutter
[10:35:16 AM] [General] [Info] Looking for flutter in:
[10:35:16 AM] [General] [Info] /Users/dev/Library/Android/sdk/tools/bin
[10:35:16 AM] [General] [Info] /Users/dev/Library/Android/sdk/platform-tools
[10:35:16 AM] [General] [Info] /Users/dev/Library/Android/sdk/platform-tools/bin
[10:35:16 AM] [General] [Info] /Users/dev/flutter/bin
[10:35:16 AM] [General] [Info] /usr/local/bin
[10:35:16 AM] [General] [Info] /usr/bin
[10:35:16 AM] [General] [Info] /bin
[10:35:16 AM] [General] [Info] /usr/sbin
[10:35:16 AM] [General] [Info] /sbin
[10:35:16 AM] [General] [Info] /usr/local/MacGPG2/bin
[10:35:16 AM] [General] [Info] /opt/X11/bin
[10:35:16 AM] [General] [Info] /Library/Frameworks/Mono.framework/Versions/Current/Commands
[10:35:16 AM] [General] [Info] /Library/Frameworks/Mono.framework/Versions/Current/Commands/bin
[10:35:16 AM] [General] [Info] /Users/dev/.rvm/bin
[10:35:16 AM] [General] [Info] /Users/dev/.pub-cache/bin
[10:35:16 AM] [General] [Info] Found at:
[10:35:16 AM] [General] [Info] /Users/dev/flutter/bin
[10:35:16 AM] [General] [Info] Candidate paths to be post-filtered:
[10:35:16 AM] [General] [Info] /Users/dev/flutter
[10:35:16 AM] [General] [Info] Found at /Users/dev/flutter
[10:35:16 AM] [General] [Info] Returning SDK path /Users/dev/flutter for flutter
[10:35:16 AM] [General] [Info] Searching for dart
[10:35:16 AM] [General] [Info] Looking for dart in:
[10:35:16 AM] [General] [Info] /Users/dev/Library/Android/sdk/tools/bin
[10:35:16 AM] [General] [Info] /Users/dev/Library/Android/sdk/platform-tools
[10:35:16 AM] [General] [Info] /Users/dev/Library/Android/sdk/platform-tools/bin
[10:35:16 AM] [General] [Info] /Users/dev/flutter/bin
[10:35:16 AM] [General] [Info] /usr/local/bin
[10:35:16 AM] [General] [Info] /usr/bin
[10:35:16 AM] [General] [Info] /bin
[10:35:16 AM] [General] [Info] /usr/sbin
[10:35:16 AM] [General] [Info] /sbin
[10:35:16 AM] [General] [Info] /usr/local/MacGPG2/bin
[10:35:16 AM] [General] [Info] /opt/X11/bin
[10:35:16 AM] [General] [Info] /Library/Frameworks/Mono.framework/Versions/Current/Commands
[10:35:16 AM] [General] [Info] /Library/Frameworks/Mono.framework/Versions/Current/Commands/bin
[10:35:16 AM] [General] [Info] /Users/dev/.rvm/bin
[10:35:16 AM] [General] [Info] /Users/dev/.pub-cache/bin
[10:35:16 AM] [General] [Info] /Users/dev/flutter/bin/cache/dart-sdk
[10:35:16 AM] [General] [Info] /Users/dev/flutter/bin/cache/dart-sdk/bin
[10:35:16 AM] [General] [Info] Found at:
[10:35:16 AM] [General] [Info] /usr/local/bin
[10:35:16 AM] [General] [Info] /Users/dev/flutter/bin/cache/dart-sdk/bin
[10:35:16 AM] [General] [Info] Following symlink: /usr/local/bin/dart ==> /usr/local/Cellar/dart/2.6.1/libexec/bin/dart
[10:35:16 AM] [General] [Info] Candidate paths to be post-filtered:
[10:35:16 AM] [General] [Info] /usr/local/Cellar/dart/2.6.1/libexec
[10:35:16 AM] [General] [Info] /Users/dev/flutter/bin/cache/dart-sdk
[10:35:16 AM] [General] [Info] Found at /usr/local/Cellar/dart/2.6.1/libexec
[10:35:16 AM] [General] [Info] Returning SDK path /usr/local/Cellar/dart/2.6.1/libexec for dart
[10:35:16 AM] [General] [Info] Extension:Startup timing: 1526ms
[10:35:18 AM] [General] [Info] Analyzer:Startup timing: 2360ms
[10:35:29 AM] [General] [Error] Cannot call write after a stream was destroyed
Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
at doWrite (_stream_writable.js:413:19)
at writeOrBuffer (_stream_writable.js:401:5)
at Socket.Writable.write (_stream_writable.js:301:11)
at l.sendMessage (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:43601)
at l.sendMessage (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:38875)
at /Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:43409
at new Promise (<anonymous>)
at l.sendRequest (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:43221)
at l.analysisGetHover (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:282813)
at c.<anonymous> (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:243660)
at Generator.next (<anonymous>)
at /Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:243415
at new Promise (<anonymous>)
at r (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:243160)
at c.provideHover (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:243594)
at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:562:479
at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:52:363
at new Promise (<anonymous>)
at Object.t.asPromise (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:52:335)
at x.provideHover (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:562:450)
at /Applications/Visual Studi…
[10:35:30 AM] [General] [Error] Cannot call write after a stream was destroyed
Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
at doWrite (_stream_writable.js:413:19)
at writeOrBuffer (_stream_writable.js:401:5)
at Socket.Writable.write (_stream_writable.js:301:11)
at l.sendMessage (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:43601)
at l.sendMessage (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:38875)
at /Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:43409
at new Promise (<anonymous>)
at l.sendRequest (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:43221)
at l.editGetFixes (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:285177)
at t.FixCodeActionProvider.<anonymous> (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:428072)
at Generator.next (<anonymous>)
at /Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:427606
at new Promise (<anonymous>)
at r (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:427351)
at t.FixCodeActionProvider.provideCodeActions (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:427912)
at /Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:433211
at Array.map (<anonymous>)
at t.RankingCodeActionProvider.<anonymous> (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:433202)
at Generator.next (<anonymous>)
at /Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:432651
at new Promise (<anonymous>)
at r (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:432396)
at t.RankingCodeActionProvider.provideCodeActions (/Users/liaojianxu…
[10:35:30 AM] [General] [Error] Cannot call write after a stream was destroyed
Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
at doWrite (_stream_writable.js:413:19)
at writeOrBuffer (_stream_writable.js:401:5)
at Socket.Writable.write (_stream_writable.js:301:11)
at l.sendMessage (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:43601)
at l.sendMessage (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:38875)
at /Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:43409
at new Promise (<anonymous>)
at l.sendRequest (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:43221)
at l.editGetAssists (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:284900)
at t.AssistCodeActionProvider.<anonymous> (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:390374)
at Generator.next (<anonymous>)
at /Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:389913
at new Promise (<anonymous>)
at r (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:389658)
at t.AssistCodeActionProvider.provideCodeActions (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:390215)
at /Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:433211
at Array.map (<anonymous>)
at t.RankingCodeActionProvider.<anonymous> (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:433202)
at Generator.next (<anonymous>)
at /Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:432651
at new Promise (<anonymous>)
at r (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:432396)
at t.RankingCodeActionProvider.provideCodeActions (/Users/li…
[10:35:31 AM] [General] [Error] Cannot call write after a stream was destroyed
Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
at doWrite (_stream_writable.js:413:19)
at writeOrBuffer (_stream_writable.js:401:5)
at Socket.Writable.write (_stream_writable.js:301:11)
at l.sendMessage (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:43601)
at l.sendMessage (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:38875)
at /Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:43409
at new Promise (<anonymous>)
at l.sendRequest (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:43221)
at l.analysisSetPriorityFiles (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:283556)
at g.<anonymous> (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:32428)
at Generator.next (<anonymous>)
at /Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:31221
at new Promise (<anonymous>)
at r (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:30966)
at g.updatePriorityFiles (/Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:32260)
at /Users/dev/.vscode/extensions/dart-code.dart-code-3.6.0/out/dist/extension.js:1:31794
at l.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:47:207)
at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:625:348
at l.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:47:207)
at p.$acceptDocumentsAndEditorsDelta (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/wor…
Issue Analytics
- State:
- Created 4 years ago
- Comments:16 (6 by maintainers)
Top Results From Across the Web
Dart analyzer has terminated · Issue #3116 - GitHub
Describe the bug. Dart analyzer stops working unexpectedly. To Reproduce Steps to reproduce the behavior: Start VSCode and wait a little bit.
Read more >VSCode dart analyzer stopped recognizing flutter/dart code
I have been using VSCode for flutter development without issue, then today all of a sudden the dart analyzer is complaining ...
Read more >Dart - Analysis server has terminated - Event Log : WEB-42977
This version of your browser is not supported. Try upgrading to the latest stable version. Something went seriously wrong.
Read more >v3.16 - Dart Code - Dart & Flutter support for Visual Studio Code
#2897: The “Dart Analyzer has terminated” message will no longer flash/re-appear on every interaction with the server (for example while typing) ...
Read more >analyzer | Dart Package - Pub.dev
Integrators that want to add Dart support to their editor should use the Dart Analysis Server. The Analysis Server API Specification is available....
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
This was a while back for me, but I solved the issue. I had posted the solution in an issue I opened elsewhere.
The issue for me was mismatched dart versions.
I had at once point installed dart stand-alone sdk (without flutter). And hadn’t cleaned it up. So when I was running flutter and its dart, there was a mismatch of files from different versions being loaded. When I fully removed the old dart-only sdk and stuck with just flutter, it worked fine. The crashes stopped.
@DanTup HI remove
"dart.enableMachineLearningCodeCompletion": true
andanalyzerAdditionalArgs
can resolve this issue.Thanks!