Hi,
I encounter this issue quitte a lot recently and one of my friend also :
Dart Code extension: 3.7.1
Flutter extension: 3.7.1 (activated)
VS Code: 1.41.0
Platform: win
Workspace type: Flutter
Multi-root?: false
Dart SDK:
Loc: C:\Users\Bounty1342\Desktop\flutter\bin\cache\dart-sdk
Ver: 2.7.0-dev.2.1
Flutter SDK:
Loc: C:\Users\Bounty1342\Desktop\flutter
Ver: 1.12.13+hotfix.5
HTTP_PROXY: undefined
NO_PROXY: undefined
[22:19:34] [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 m.sendMessage (c:\Users\Bounty1342\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:45556)
at m.sendMessage (c:\Users\Bounty1342\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:39197)
at c:\Users\Bounty1342\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:45364
at new Promise (<anonymous>)
at m.sendRequest (c:\Users\Bounty1342\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:45176)
at m.editGetFixes (c:\Users\Bounty1342\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:290549)
at t.FixCodeActionProvider.<anonymous> (c:\Users\Bounty1342\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:436166)
at Generator.next (<anonymous>)
at c:\Users\Bounty1342\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:435700
at new Promise (<anonymous>)
at r (c:\Users\Bounty1342\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:435445)
at t.FixCodeActionProvider.provideCodeActions (c:\Users\Bounty1342\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:436006)
at c:\Users\Bounty1342\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:441239
at Array.map (<anonymous>)
at t.RankingCodeActionProvider.<anonymous> (c:\Users\Bounty1342\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:441230)
at Generator.next (<anonymous>)
at c:\Users\Bounty1342\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:440679
at new Promise (<anonymous>)
at r (c:\Users\Bounty1342\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:440424)
at t.RankingCodeActionProvider.provideCodeActions (c:\U…
[22:15:08] [Analyzer] [Info] Spawning C:\Users\Bounty1342\Desktop\flutter\bin\cache\dart-sdk\bin\dart.exe with args ["C:\\Users\\Bounty1342\\Desktop\\flutter\\bin\\cache\\dart-sdk\\bin\\snapshots\\analysis_server.dart.snapshot","--client-id=Dart-Code.dart-code","--client-version=3.7.1"]

Let's me know if I can provide more informations.
Regards
Ok, I have something to try but I apologise for it being a bit involved to set up!
dart.analyzerAdditionalVmArgs is unknown, it's a temporary setting for this):
"dart.analyzerAdditionalVmArgs": [
"--pause-isolates-on-exit",
],
"dart.analyzerObservatoryPort": 8181,
You should now have a window that looks a bit like this, which lists the Isolates running inside the server:

Now, you can work normally. And with any luck, when the analyzer stops working (note: you might not get a popup now, since the analyzer will hopefully pause instead of terminate - but you'll notice the "Analyzing..." may get stuck on the status bar, or code completion/hovers/etc. stop working).
If so, switch to the web app and refresh the page. Hopefully it may show the isolates have hit an exception or something, which might indicate what's gone wrong.
If you have Discord, you can also grab me in the chat at https://discord.gg/xSTPEqm and we might be able to debug more easily.
I will try this on my work after chrismass.
I have this installed and the issue has occurred less frequently, but it has happened twice. The Observatory window doesn't show anything that appears to be an error. There are no logs available for main or _cacheCleanUpFunction. How can I help further?
Anything you can do to help me reproduce this could help. If you can repro it on a clean project that you can share (entirely, with any hidden files/folders like .dart_tool) and an instrumentation log I can try to reproduce here then may be able to debug the server.
Here's a log that caught an error.
!! PLEASE REVIEW THIS LOG FOR SENSITIVE INFORMATION BEFORE SHARING !!
Dart Code extension: 3.8.0-dev.analyzer-debug.1
Flutter extension: 3.7.1 (not activated)
VS Code: 1.41.1
Platform: win
HTTP_PROXY: undefined
NO_PROXY: undefined
Mon Jan 06 2020 [22:49:56 GMT-0800 (Pacific Standard Time)] Log file started
[10:49:56 PM] [General] [Info] Searching for SDKs...
[10:49:56 PM] [General] [Info] Environment PATH:
[10:49:56 PM] [General] [Info] C:\Program Files (x86)\Common Files\Oracle\Java\javapath
[10:49:56 PM] [General] [Info] C:\WINDOWS\system32
[10:49:56 PM] [General] [Info] C:\WINDOWS
[10:49:56 PM] [General] [Info] C:\WINDOWS\System32\Wbem
[10:49:56 PM] [General] [Info] C:\WINDOWS\System32\WindowsPowerShell\v1.0\
[10:49:56 PM] [General] [Info] C:\WINDOWS\System32\OpenSSH\
[10:49:56 PM] [General] [Info] C:\Program Files\Android\Android Studio\jre\jre\bin
[10:49:56 PM] [General] [Info] C:\Program Files\Git\cmd
[10:49:56 PM] [General] [Info] C:\Program Files\RedHat\java-1.8.0-openjdk-1.8.0.232-3\bin
[10:49:56 PM] [General] [Info] C:\Program Files\RedHat\java-1.8.0-openjdk-1.8.0.232-3\jre\bin
[10:49:56 PM] [General] [Info] C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin
[10:49:56 PM] [General] [Info] C:\Go\bin
[10:49:56 PM] [General] [Info] C:\Users\todda\AppData\Local\Microsoft\WindowsApps
[10:49:56 PM] [General] [Info] c:\src\flutter\bin
[10:49:56 PM] [General] [Info] C:\Users\todda\AppData\Local\Programs\Microsoft VS Code\bin
[10:49:56 PM] [General] [Info] C:\Users\todda\AppData\Local\Android\Sdk\platform-tools
[10:49:56 PM] [General] [Info] C:\Users\todda\AppData\Local\GitHubDesktop\bin
[10:49:56 PM] [General] [Info] C:\Users\todda\go\bin
[10:49:56 PM] [General] [Info] Found Flutter project at D:\toddabel\tracker:
Mobile? true
Web? false
Create Trigger? false
Flutter Repo? false
[10:49:56 PM] [General] [Info] Searching for flutter.bat
[10:49:56 PM] [General] [Info] Looking for flutter.bat in:
[10:49:56 PM] [General] [Info] D:\toddabel\tracker
[10:49:56 PM] [General] [Info] D:\toddabel\tracker\bin
[10:49:56 PM] [General] [Info] c:\src\flutter\bin\
[10:49:56 PM] [General] [Info] D:\toddabel\tracker.flutter
[10:49:56 PM] [General] [Info] D:\toddabel\tracker.flutter\bin
[10:49:56 PM] [General] [Info] D:\toddabel\tracker\vendor\flutter
[10:49:56 PM] [General] [Info] D:\toddabel\tracker\vendor\flutter\bin
[10:49:56 PM] [General] [Info] C:\Program Files (x86)\Common Files\Oracle\Java\javapath
[10:49:56 PM] [General] [Info] C:\Program Files (x86)\Common Files\Oracle\Java\javapath\bin
[10:49:56 PM] [General] [Info] C:\WINDOWS\system32
[10:49:56 PM] [General] [Info] C:\WINDOWS\system32\bin
[10:49:56 PM] [General] [Info] C:\WINDOWS
[10:49:56 PM] [General] [Info] C:\WINDOWS\bin
[10:49:56 PM] [General] [Info] C:\WINDOWS\System32\Wbem
[10:49:56 PM] [General] [Info] C:\WINDOWS\System32\Wbem\bin
[10:49:56 PM] [General] [Info] C:\WINDOWS\System32\WindowsPowerShell\v1.0\
[10:49:56 PM] [General] [Info] C:\WINDOWS\System32\WindowsPowerShell\v1.0\bin
[10:49:56 PM] [General] [Info] C:\WINDOWS\System32\OpenSSH\
[10:49:56 PM] [General] [Info] C:\WINDOWS\System32\OpenSSH\bin
[10:49:56 PM] [General] [Info] C:\Program Files\Android\Android Studio\jre\jre\bin
[10:49:56 PM] [General] [Info] C:\Program Files\Git\cmd
[10:49:56 PM] [General] [Info] C:\Program Files\Git\cmd\bin
[10:49:56 PM] [General] [Info] C:\Program Files\RedHat\java-1.8.0-openjdk-1.8.0.232-3\bin
[10:49:56 PM] [General] [Info] C:\Program Files\RedHat\java-1.8.0-openjdk-1.8.0.232-3\jre\bin
[10:49:56 PM] [General] [Info] C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin
[10:49:56 PM] [General] [Info] C:\Go\bin
[10:49:56 PM] [General] [Info] C:\Users\todda\AppData\Local\Microsoft\WindowsApps
[10:49:56 PM] [General] [Info] C:\Users\todda\AppData\Local\Microsoft\WindowsApps\bin
[10:49:56 PM] [General] [Info] c:\src\flutter\bin
[10:49:56 PM] [General] [Info] C:\Users\todda\AppData\Local\Programs\Microsoft VS Code\bin
[10:49:56 PM] [General] [Info] C:\Users\todda\AppData\Local\Android\Sdk\platform-tools
[10:49:56 PM] [General] [Info] C:\Users\todda\AppData\Local\Android\Sdk\platform-tools\bin
[10:49:56 PM] [General] [Info] C:\Users\todda\AppData\Local\GitHubDesktop\bin
[10:49:56 PM] [General] [Info] C:\Users\todda\go\bin
[10:49:56 PM] [General] [Info] Found at:
[10:49:56 PM] [General] [Info] c:\src\flutter\bin\
[10:49:56 PM] [General] [Info] c:\src\flutter\bin
[10:49:56 PM] [General] [Info] Candidate paths to be post-filtered:
[10:49:56 PM] [General] [Info] c:\src\flutter
[10:49:56 PM] [General] [Info] c:\src\flutter
[10:49:56 PM] [General] [Info] Found at c:\src\flutter
[10:49:56 PM] [General] [Info] Returning SDK path c:\src\flutter for flutter.bat
[10:49:56 PM] [General] [Info] Searching for dart.exe
[10:49:56 PM] [General] [Info] Looking for dart.exe in:
[10:49:56 PM] [General] [Info] c:\src\flutter\bin\cache\dart-sdk
[10:49:56 PM] [General] [Info] c:\src\flutter\bin\cache\dart-sdk\bin
[10:49:56 PM] [General] [Info] C:\Program Files (x86)\Common Files\Oracle\Java\javapath
[10:49:56 PM] [General] [Info] C:\Program Files (x86)\Common Files\Oracle\Java\javapath\bin
[10:49:56 PM] [General] [Info] C:\WINDOWS\system32
[10:49:56 PM] [General] [Info] C:\WINDOWS\system32\bin
[10:49:56 PM] [General] [Info] C:\WINDOWS
[10:49:56 PM] [General] [Info] C:\WINDOWS\bin
[10:49:56 PM] [General] [Info] C:\WINDOWS\System32\Wbem
[10:49:56 PM] [General] [Info] C:\WINDOWS\System32\Wbem\bin
[10:49:56 PM] [General] [Info] C:\WINDOWS\System32\WindowsPowerShell\v1.0\
[10:49:56 PM] [General] [Info] C:\WINDOWS\System32\WindowsPowerShell\v1.0\bin
[10:49:56 PM] [General] [Info] C:\WINDOWS\System32\OpenSSH\
[10:49:56 PM] [General] [Info] C:\WINDOWS\System32\OpenSSH\bin
[10:49:56 PM] [General] [Info] C:\Program Files\Android\Android Studio\jre\jre\bin
[10:49:56 PM] [General] [Info] C:\Program Files\Git\cmd
[10:49:56 PM] [General] [Info] C:\Program Files\Git\cmd\bin
[10:49:56 PM] [General] [Info] C:\Program Files\RedHat\java-1.8.0-openjdk-1.8.0.232-3\bin
[10:49:56 PM] [General] [Info] C:\Program Files\RedHat\java-1.8.0-openjdk-1.8.0.232-3\jre\bin
[10:49:56 PM] [General] [Info] C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin
[10:49:56 PM] [General] [Info] C:\Go\bin
[10:49:56 PM] [General] [Info] C:\Users\todda\AppData\Local\Microsoft\WindowsApps
[10:49:56 PM] [General] [Info] C:\Users\todda\AppData\Local\Microsoft\WindowsApps\bin
[10:49:56 PM] [General] [Info] c:\src\flutter\bin
[10:49:56 PM] [General] [Info] C:\Users\todda\AppData\Local\Programs\Microsoft VS Code\bin
[10:49:56 PM] [General] [Info] C:\Users\todda\AppData\Local\Android\Sdk\platform-tools
[10:49:56 PM] [General] [Info] C:\Users\todda\AppData\Local\Android\Sdk\platform-tools\bin
[10:49:56 PM] [General] [Info] C:\Users\todda\AppData\Local\GitHubDesktop\bin
[10:49:56 PM] [General] [Info] C:\Users\todda\go\bin
[10:49:56 PM] [General] [Info] c:\src\flutter\bin\cache\dart-sdk
[10:49:56 PM] [General] [Info] c:\src\flutter\bin\cache\dart-sdk\bin
[10:49:56 PM] [General] [Info] Found at:
[10:49:56 PM] [General] [Info] c:\src\flutter\bin\cache\dart-sdk\bin
[10:49:56 PM] [General] [Info] c:\src\flutter\bin\cache\dart-sdk\bin
[10:49:56 PM] [General] [Info] Candidate paths to be post-filtered:
[10:49:56 PM] [General] [Info] c:\src\flutter\bin\cache\dart-sdk
[10:49:56 PM] [General] [Info] c:\src\flutter\bin\cache\dart-sdk
[10:49:56 PM] [General] [Info] Found at c:\src\flutter\bin\cache\dart-sdk
[10:49:56 PM] [General] [Info] Returning SDK path c:\src\flutter\bin\cache\dart-sdk for dart.exe
[10:49:56 PM] [General] [Info] Activating Flutter extension for Flutter project...
[10:49:56 PM] [General] [Info] Extension:Startup timing: 434ms
[10:49:57 PM] [General] [Info] Found 0 folders requiring "pub get":
[10:49:57 PM] [General] [Info] Analyzer:Startup timing: 424ms
[10:50:02 PM] [General] [Info] Checking 1 projects for supported platforms
[10:50:02 PM] [General] [Info] Supported platforms for the workspace are ios, android
[10:50:02 PM] [General] [Info] Returning cached promise for getSupportedPlatforms()
[10:50:03 PM] [General] [Info] Analyzer:FirstAnalysis timing: 3705ms
[10:50:24 PM] [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 b.sendMessage (c:\Users\todda.vscode\extensions\dart-code.dart-code-3.8.0-dev.analyzer-debug.1\out\dist\extension.js:1:43069)
at b.sendMessage (c:\Users\todda.vscode\extensions\dart-code.dart-code-3.8.0-dev.analyzer-debug.1\out\dist\extension.js:1:36708)
at c:\Users\todda.vscode\extensions\dart-code.dart-code-3.8.0-dev.analyzer-debug.1\out\dist\extension.js:1:42877
at new Promise (
at b.sendRequest (c:\Users\todda.vscode\extensions\dart-code.dart-code-3.8.0-dev.analyzer-debug.1\out\dist\extension.js:1:42689)
at b.editGetFixes (c:\Users\todda.vscode\extensions\dart-code.dart-code-3.8.0-dev.analyzer-debug.1\out\dist\extension.js:1:288729)
at t.FixCodeActionProvider.
at Generator.next (
at c:\Users\todda.vscode\extensions\dart-code.dart-code-3.8.0-dev.analyzer-debug.1\out\dist\extension.js:1:436941
at new Promise (
at r (c:\Users\todda.vscode\extensions\dart-code.dart-code-3.8.0-dev.analyzer-debug.1\out\dist\extension.js:1:436686)
at t.FixCodeActionProvider.provideCodeActions (c:\Users\todda.vscode\extensions\dart-code.dart-code-3.8.0-dev.analyzer-debug.1\out\dist\extension.js:1:437247)
at c:\Users\todda.vscode\extensions\dart-code.dart-code-3.8.0-dev.analyzer-debug.1\out\dist\extension.js:1:442555
at Array.map (
at t.RankingCodeActionProvider.
at Generator.next (
at c:\Users\todda.vscode\extensions\dart-code.dart-code-3.8.0-dev.analyzer-debug.1\out\dist\extension.js:1:44199…
[10:50:24 PM] [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 b.sendMessage (c:\Users\todda.vscode\extensions\dart-code.dart-code-3.8.0-dev.analyzer-debug.1\out\dist\extension.js:1:43069)
at b.sendMessage (c:\Users\todda.vscode\extensions\dart-code.dart-code-3.8.0-dev.analyzer-debug.1\out\dist\extension.js:1:36708)
at c:\Users\todda.vscode\extensions\dart-code.dart-code-3.8.0-dev.analyzer-debug.1\out\dist\extension.js:1:42877
at new Promise (
at b.sendRequest (c:\Users\todda.vscode\extensions\dart-code.dart-code-3.8.0-dev.analyzer-debug.1\out\dist\extension.js:1:42689)
at b.editGetAssists (c:\Users\todda.vscode\extensions\dart-code.dart-code-3.8.0-dev.analyzer-debug.1\out\dist\extension.js:1:288452)
at t.AssistCodeActionProvider.
at Generator.next (
at c:\Users\todda.vscode\extensions\dart-code.dart-code-3.8.0-dev.analyzer-debug.1\out\dist\extension.js:1:398054
at new Promise (
at r (c:\Users\todda.vscode\extensions\dart-code.dart-code-3.8.0-dev.analyzer-debug.1\out\dist\extension.js:1:397799)
at t.AssistCodeActionProvider.provideCodeActions (c:\Users\todda.vscode\extensions\dart-code.dart-code-3.8.0-dev.analyzer-debug.1\out\dist\extension.js:1:398356)
at c:\Users\todda.vscode\extensions\dart-code.dart-code-3.8.0-dev.analyzer-debug.1\out\dist\extension.js:1:442555
at Array.map (
at t.RankingCodeActionProvider.
at Generator.next (
at c:\Users\todda.vscode\extensions\dart-code.dart-code-3.8.0-dev.analyzer-debug.1\out\dist\extension.js…
[10:50:24 PM] [General] [Info] Starting debug session...
[10:50:24 PM] [General] [Info] workspace: D:\toddabel\tracker
[10:50:24 PM] [General] [Info] program : lib/main.dart
[10:50:24 PM] [General] [Info] Converted program to absolute path: D:\toddabel\tracker\lib\main.dart
[10:50:24 PM] [General] [Info] Using workspace as cwd: D:\toddabel\tracker
[10:50:24 PM] [General] [Info] Detected launch project as Flutter
[10:50:24 PM] [General] [Info] Using Flutter debug adapter for this session
[10:50:24 PM] [General] [Info] Checking for errors before launching
[10:50:24 PM] [General] [Info] Spawning a new flutter debugger
[10:50:24 PM] [General] [Info] Debug session starting...
{
"name": "Flutter",
"request": "launch",
"type": "dart",
"program": "D:\toddabel\tracker\lib\main.dart",
"cwd": "D:\toddabel\tracker",
"args": [],
"vmAdditionalArgs": [],
"vmServicePort": 0,
"dartPath": "c:\src\flutter\bin\cache\dart-sdk\bin\dart.exe",
"maxLogLineLength": 2000,
"pubPath": "c:\src\flutter\bin\cache\dart-sdk\bin\pub.bat",
"pubSnapshotPath": "c:\src\flutter\bin\cache\dart-sdk\bin\snapshots\pub.dart.snapshot",
"debugSdkLibraries": false,
"debugExternalLibraries": false,
"showDartDeveloperLogs": true,
"useFlutterStructuredErrors": true,
"debuggerHandlesPathsEverywhereForBreakpoints": true,
"evaluateGettersInDebugViews": true,
"previewDebuggerStepBack": false,
"forceFlutterVerboseMode": false,
"flutterTrackWidgetCreation": true,
"flutterMode": "debug",
"flutterPlatform": "default",
"flutterPath": "c:\src\flutter\bin\flutter.bat",
"deviceId": "emulator-5554",
"deviceName": "Pixel 3 API 29 (android-x86)",
"showMemoryUsage": false,
"debugServer": 53256,
"debuggerType": 2
}
[10:50:24 PM] [General] [Warn] Did not find session d8683fca-7a69-4a03-b660-41f9ebfb8eb8 to handle dart.launching. There were 0 sessions:
[10:50:24 PM] [General] [Warn] Event will be queued and processed when the session start event fires
[10:50:24 PM] [General] [Info] Processing delayed event dart.launching for session d8683fca-7a69-4a03-b660-41f9ebfb8eb8
From: Danny Tuppeny notifications@github.com
Sent: Friday, January 3, 2020 12:54 AM
To: Dart-Code/Dart-Code Dart-Code@noreply.github.com
Cc: Todd Abel toddabel@hotmail.com; Comment comment@noreply.github.com
Subject: Re: [Dart-Code/Dart-Code] [Analyser] Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed (#2175)
Anything you can do to help my reproduce this could help. If you can repro it on a clean project that you can share (entirely, with any hidden files/folders like .dart_tool) and an instrumentation loghttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdartcode.org%2Fdocs%2Flogging%2F%23analyzer-instrumentation&data=02%7C01%7C%7C88a34fa813b3465b8c2908d7902a9b3d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637136384971784280&sdata=8yzbNPW3UVRnPgI8P8Z152qRIL3j3fbOu95C9RrYNOM%3D&reserved=0 I can try to reproduce here then may be able to debug the server.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FDart-Code%2FDart-Code%2Fissues%2F2175%3Femail_source%3Dnotifications%26email_token%3DABCC6D7BC3GDNRBPV43LJVDQ334N7A5CNFSM4J4BXPD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIAUBLA%23issuecomment-570507436&data=02%7C01%7C%7C88a34fa813b3465b8c2908d7902a9b3d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637136384971794291&sdata=N93xSdCJKD2F6D%2FLkdfjHwoO%2BnLBbp75dCy4L%2Frqz%2Bs%3D&reserved=0, or unsubscribehttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABCC6D4YEPLPFY33IHUK7Q3Q334N7ANCNFSM4J4BXPDQ&data=02%7C01%7C%7C88a34fa813b3465b8c2908d7902a9b3d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637136384971804297&sdata=sEvY9q2TEHEBBnZQk5erJHOsI8jGGxKkxcH%2BfHugBv0%3D&reserved=0.
Thanks - unfortunately there's not much useful info in there (the error reported is a result of the analyzer terminating, rather than the cause).
The log does show that this happened when you started running a Flutter app though, so I'm sure it's the same as https://github.com/flutter/flutter/issues/46616. I've had no joy reproducing though - if anyone has steps that might help, please post them in that issue.
I'm also facing this issue. The Dart Analyzer has crashed much more frequently the last month or two, not exactly sure when it started. Using flutter daily and I'm on the beta branch of Flutter (currently 1.12.13+hotfix.6). It seems like it crashes every time I start my flutter app now.
I'm using VS Code on Windows but I cannot install the vsix posted above. I get this error when I try to install the vsix:
2020-01-14 14:26:34 - Microsoft VSIX Installer
2020-01-14 14:26:34 - -------------------------------------------
2020-01-14 14:26:34 - vsixinstaller.exe version:
2020-01-14 14:26:34 - 16.4.1057
2020-01-14 14:26:34 - -------------------------------------------
2020-01-14 14:26:34 - Command line parameters:
2020-01-14 14:26:34 - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\micke\Downloads\dart-code-3.8.0-dev.analyzer-debug.1.vsix
2020-01-14 14:26:34 - -------------------------------------------
2020-01-14 14:26:34 - Microsoft VSIX Installer
2020-01-14 14:26:34 - -------------------------------------------
2020-01-14 14:26:34 - Initializing Install...
2020-01-14 14:26:34 - Microsoft.VisualStudio.ExtensionManager.InvalidExtensionManifestException: Element 'Identity' has invalid value for attribute 'Version' ---> System.ArgumentException: Version string portion was too short or too long.
at System.Version.VersionResult.SetFailure(ParseFailureKind failure, String argument)
at System.Version.TryParseVersion(String version, VersionResult& result)
at System.Version.Parse(String input)
at System.Version..ctor(String version)
at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.<>c.<ExtractManifestData>b__67_1(String s)
at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.VerifyStringValue[T](String value, ErrorInfo info, Func`2 selector, Boolean isRequired, Int32 maxLength, T defaultValue)
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.VerifyStringValue[T](String value, ErrorInfo info, Func`2 selector, Boolean isRequired, Int32 maxLength, T defaultValue)
at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ExtractManifestData(PackageManifest manifest)
at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ReadPackageManifest(XmlReader reader)
at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ReadManifest(Stream manifestStream)
at Microsoft.VisualStudio.ExtensionManager.InstallableExtensionImpl.ReadVSIXManifestFromPackage(Stream stream, CultureInfo preferredCulture)
at Microsoft.VisualStudio.ExtensionManager.InstallableExtensionImpl..ctor(String path, CultureInfo preferredCulture)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.CreateInstallableExtension(String extensionPath, CultureInfo preferredCulture)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.CreateInstallableExtension(String extensionPath)
at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
at VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported)
at VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported)
at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
at VSIXInstaller.App.Initialize()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
The log from the dart analyzer seems very similar to the one from Todd above:
!! PLEASE REVIEW THIS LOG FOR SENSITIVE INFORMATION BEFORE SHARING !!
Dart Code extension: 3.7.1
Flutter extension: 3.7.1 (not activated)
VS Code: 1.41.1
Platform: win
HTTP_PROXY: undefined
NO_PROXY: undefined
Tue Jan 14 2020 [14:27:11 GMT+0100 (centraleuropeisk normaltid)] Log file started
[14:27:11] [General] [Info] Searching for SDKs...
[14:27:11] [General] [Info] Environment PATH:
[14:27:11] [General] [Info] C:\Program Files (x86)\Common Files\Oracle\Java\javapath
[14:27:11] [General] [Info] C:\Windows\system32
[14:27:11] [General] [Info] C:\Windows
[14:27:11] [General] [Info] C:\Windows\System32\Wbem
[14:27:11] [General] [Info] C:\Windows\System32\WindowsPowerShell\v1.0\
[14:27:11] [General] [Info] C:\Windows\System32\OpenSSH\
[14:27:11] [General] [Info] C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
[14:27:11] [General] [Info] C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR
[14:27:11] [General] [Info] C:\Program Files\dotnet\
[14:27:11] [General] [Info] C:\Program Files\Microsoft SQL Server\130\Tools\Binn\
[14:27:11] [General] [Info] C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\
[14:27:11] [General] [Info] C:\flutter\bin
[14:27:11] [General] [Info] C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\
[14:27:11] [General] [Info] C:\ProgramData\chocolatey\bin
[14:27:11] [General] [Info] C:\Program Files\Git\cmd
[14:27:11] [General] [Info] C:\AndroidSDK
[14:27:11] [General] [Info] C:\AndroidSDK\platform-tools
[14:27:11] [General] [Info] C:\Users\micke\AppData\Local\Microsoft\WindowsApps
[14:27:11] [General] [Info] C:\Users\micke\AppData\Local\Programs\Microsoft VS Code\bin
[14:27:11] [General] [Info] Found Flutter project at C:\git\demo-flutter:
Mobile? true
Web? false
Create Trigger? false
Flutter Repo? false
[14:27:12] [General] [Info] Searching for flutter.bat
[14:27:12] [General] [Info] Looking for flutter.bat in:
[14:27:12] [General] [Info] C:\flutter
[14:27:12] [General] [Info] C:\flutter\bin
[14:27:12] [General] [Info] C:\git\demo-flutter
[14:27:12] [General] [Info] C:\git\demo-flutter\bin
[14:27:12] [General] [Info] C:\flutter\bin\
[14:27:12] [General] [Info] C:\git\demo-flutter\.flutter
[14:27:12] [General] [Info] C:\git\demo-flutter\.flutter\bin
[14:27:12] [General] [Info] C:\git\demo-flutter\vendor\flutter
[14:27:12] [General] [Info] C:\git\demo-flutter\vendor\flutter\bin
[14:27:12] [General] [Info] C:\Program Files (x86)\Common Files\Oracle\Java\javapath
[14:27:12] [General] [Info] C:\Program Files (x86)\Common Files\Oracle\Java\javapath\bin
[14:27:12] [General] [Info] C:\Windows\system32
[14:27:12] [General] [Info] C:\Windows\system32\bin
[14:27:12] [General] [Info] C:\Windows
[14:27:12] [General] [Info] C:\Windows\bin
[14:27:12] [General] [Info] C:\Windows\System32\Wbem
[14:27:12] [General] [Info] C:\Windows\System32\Wbem\bin
[14:27:12] [General] [Info] C:\Windows\System32\WindowsPowerShell\v1.0\
[14:27:12] [General] [Info] C:\Windows\System32\WindowsPowerShell\v1.0\bin
[14:27:12] [General] [Info] C:\Windows\System32\OpenSSH\
[14:27:12] [General] [Info] C:\Windows\System32\OpenSSH\bin
[14:27:12] [General] [Info] C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
[14:27:12] [General] [Info] C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\bin
[14:27:12] [General] [Info] C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR
[14:27:12] [General] [Info] C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR\bin
[14:27:12] [General] [Info] C:\Program Files\dotnet\
[14:27:12] [General] [Info] C:\Program Files\dotnet\bin
[14:27:12] [General] [Info] C:\Program Files\Microsoft SQL Server\130\Tools\Binn\
[14:27:12] [General] [Info] C:\Program Files\Microsoft SQL Server\130\Tools\Binn\bin
[14:27:12] [General] [Info] C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\
[14:27:12] [General] [Info] C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\bin
[14:27:12] [General] [Info] C:\flutter\bin
[14:27:12] [General] [Info] C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\
[14:27:12] [General] [Info] C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\bin
[14:27:12] [General] [Info] C:\ProgramData\chocolatey\bin
[14:27:12] [General] [Info] C:\Program Files\Git\cmd
[14:27:12] [General] [Info] C:\Program Files\Git\cmd\bin
[14:27:12] [General] [Info] C:\AndroidSDK
[14:27:12] [General] [Info] C:\AndroidSDK\bin
[14:27:12] [General] [Info] C:\AndroidSDK\platform-tools
[14:27:12] [General] [Info] C:\AndroidSDK\platform-tools\bin
[14:27:12] [General] [Info] C:\Users\micke\AppData\Local\Microsoft\WindowsApps
[14:27:12] [General] [Info] C:\Users\micke\AppData\Local\Microsoft\WindowsApps\bin
[14:27:12] [General] [Info] C:\Users\micke\AppData\Local\Programs\Microsoft VS Code\bin
[14:27:12] [General] [Info] Found at:
[14:27:12] [General] [Info] C:\flutter\bin
[14:27:12] [General] [Info] C:\flutter\bin\
[14:27:12] [General] [Info] C:\flutter\bin
[14:27:12] [General] [Info] Candidate paths to be post-filtered:
[14:27:12] [General] [Info] C:\flutter
[14:27:12] [General] [Info] C:\flutter
[14:27:12] [General] [Info] C:\flutter
[14:27:12] [General] [Info] Found at C:\flutter
[14:27:12] [General] [Info] Returning SDK path C:\flutter for flutter.bat
[14:27:12] [General] [Info] Searching for dart.exe
[14:27:12] [General] [Info] Looking for dart.exe in:
[14:27:12] [General] [Info] C:\flutter\bin\cache\dart-sdk
[14:27:12] [General] [Info] C:\flutter\bin\cache\dart-sdk\bin
[14:27:12] [General] [Info] C:\Program Files (x86)\Common Files\Oracle\Java\javapath
[14:27:12] [General] [Info] C:\Program Files (x86)\Common Files\Oracle\Java\javapath\bin
[14:27:12] [General] [Info] C:\Windows\system32
[14:27:12] [General] [Info] C:\Windows\system32\bin
[14:27:12] [General] [Info] C:\Windows
[14:27:12] [General] [Info] C:\Windows\bin
[14:27:12] [General] [Info] C:\Windows\System32\Wbem
[14:27:12] [General] [Info] C:\Windows\System32\Wbem\bin
[14:27:12] [General] [Info] C:\Windows\System32\WindowsPowerShell\v1.0\
[14:27:12] [General] [Info] C:\Windows\System32\WindowsPowerShell\v1.0\bin
[14:27:12] [General] [Info] C:\Windows\System32\OpenSSH\
[14:27:12] [General] [Info] C:\Windows\System32\OpenSSH\bin
[14:27:12] [General] [Info] C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
[14:27:12] [General] [Info] C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\bin
[14:27:12] [General] [Info] C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR
[14:27:12] [General] [Info] C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR\bin
[14:27:12] [General] [Info] C:\Program Files\dotnet\
[14:27:12] [General] [Info] C:\Program Files\dotnet\bin
[14:27:12] [General] [Info] C:\Program Files\Microsoft SQL Server\130\Tools\Binn\
[14:27:12] [General] [Info] C:\Program Files\Microsoft SQL Server\130\Tools\Binn\bin
[14:27:12] [General] [Info] C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\
[14:27:12] [General] [Info] C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\bin
[14:27:12] [General] [Info] C:\flutter\bin
[14:27:12] [General] [Info] C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\
[14:27:12] [General] [Info] C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\bin
[14:27:12] [General] [Info] C:\ProgramData\chocolatey\bin
[14:27:12] [General] [Info] C:\Program Files\Git\cmd
[14:27:12] [General] [Info] C:\Program Files\Git\cmd\bin
[14:27:12] [General] [Info] C:\AndroidSDK
[14:27:12] [General] [Info] C:\AndroidSDK\bin
[14:27:12] [General] [Info] C:\AndroidSDK\platform-tools
[14:27:12] [General] [Info] C:\AndroidSDK\platform-tools\bin
[14:27:12] [General] [Info] C:\Users\micke\AppData\Local\Microsoft\WindowsApps
[14:27:12] [General] [Info] C:\Users\micke\AppData\Local\Microsoft\WindowsApps\bin
[14:27:12] [General] [Info] C:\Users\micke\AppData\Local\Programs\Microsoft VS Code\bin
[14:27:12] [General] [Info] C:\flutter\bin\cache\dart-sdk
[14:27:12] [General] [Info] C:\flutter\bin\cache\dart-sdk\bin
[14:27:12] [General] [Info] Found at:
[14:27:12] [General] [Info] C:\flutter\bin\cache\dart-sdk\bin
[14:27:12] [General] [Info] C:\flutter\bin\cache\dart-sdk\bin
[14:27:12] [General] [Info] Candidate paths to be post-filtered:
[14:27:12] [General] [Info] C:\flutter\bin\cache\dart-sdk
[14:27:12] [General] [Info] C:\flutter\bin\cache\dart-sdk
[14:27:12] [General] [Info] Found at C:\flutter\bin\cache\dart-sdk
[14:27:12] [General] [Info] Returning SDK path C:\flutter\bin\cache\dart-sdk for dart.exe
[14:27:12] [General] [Info] Activating Flutter extension for Flutter project...
[14:27:12] [General] [Info] Extension:Startup timing: 124ms
[14:27:12] [General] [Info] Analyzer:Startup timing: 276ms
[14:27:16] [General] [Info] Analyzer:FirstAnalysis timing: 2499ms
[14:27:16] [General] [Info] Checking 1 projects for supported platforms
[14:27:16] [General] [Info] Supported platforms for the workspace are ios, android
[14:31:19] [General] [Error] Error during `edit.format`: source contains syntax errors.
[14:31:20] [General] [Info] Starting debug session...
[14:31:20] [General] [Info] workspace: C:\git\demo-flutter
[14:31:20] [General] [Info] program : lib/main.dart
[14:31:20] [General] [Info] Converted program to absolute path: C:\git\demo-flutter\lib\main.dart
[14:31:20] [General] [Info] Using workspace as cwd: C:\git\demo-flutter
[14:31:20] [General] [Info] Detected launch project as Flutter
[14:31:20] [General] [Info] Using Flutter debug adapter for this session
[14:31:20] [General] [Info] Checking for errors before launching
[14:31:20] [General] [Info] Spawning a new flutter debugger
[14:31:20] [General] [Info] Debug session starting...
{
"name": "Flutter",
"request": "launch",
"type": "dart",
"program": "C:\\\git\\demo-flutter\\lib\\main.dart",
"cwd": "C:\\\git\\demo-flutter",
"args": [],
"vmAdditionalArgs": [],
"vmServicePort": 0,
"dartPath": "C:\\\flutter\\bin\\cache\\dart-sdk\\bin\\dart.exe",
"maxLogLineLength": 2000,
"pubPath": "C:\\\flutter\\bin\\cache\\dart-sdk\\bin\\pub.bat",
"pubSnapshotPath": "C:\\\flutter\\bin\\cache\\dart-sdk\\bin\\snapshots\\pub.dart.snapshot",
"debugSdkLibraries": false,
"debugExternalLibraries": false,
"showDartDeveloperLogs": true,
"useFlutterStructuredErrors": true,
"debuggerHandlesPathsEverywhereForBreakpoints": true,
"evaluateGettersInDebugViews": true,
"previewDebuggerStepBack": false,
"forceFlutterVerboseMode": false,
"flutterTrackWidgetCreation": true,
"flutterMode": "debug",
"flutterPlatform": "default",
"flutterPath": "C:\\\flutter\\bin\\flutter.bat",
"deviceId": "emulator-5554",
"deviceName": "Pixel C API 29 (android-x86)",
"showMemoryUsage": false,
"debugServer": 58897,
"debuggerType": 2
}
[14:31:21] [General] [Warn] Did not find session 71add4b3-6670-4c0f-aae8-1ebd0332ae6b to handle dart.launching. There were 0 sessions:
[14:31:21] [General] [Warn] Event will be queued and processed when the session start event fires
[14:31:21] [General] [Info] Processing delayed event dart.launching for session 71add4b3-6670-4c0f-aae8-1ebd0332ae6b
[14:31:26] [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 m.sendMessage (c:\Users\micke\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:45556)
at m.sendMessage (c:\Users\micke\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:39197)
at c:\Users\micke\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:45364
at new Promise (<anonymous>)
at m.sendRequest (c:\Users\micke\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:45176)
at m.analysisGetHover (c:\Users\micke\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:288185)
at c.<anonymous> (c:\Users\micke\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:247508)
at Generator.next (<anonymous>)
at c:\Users\micke\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:247263
at new Promise (<anonymous>)
at r (c:\Users\micke\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:247008)
at c.provideHover (c:\Users\micke\.vscode\extensions\dart-code.dart-code-3.7.1\out\dist\extension.js:1:247442)
at c:\Users\micke\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:575:255
at c:\Users\micke\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:52:287
at new Promise (<anonymous>)
at Object.t.asPromise (c:\Users\micke\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:52:259)
at E.provideHover (c:\Users\micke\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:575:226)
at c:\Users\micke\AppData…
I can test new debug builds if you have more tricks up your sleeve
I'm also facing this issue. The Dart Analyzer has crashed much more frequently the last month or two, not exactly sure when it started. Using flutter daily and I'm on the beta branch of Flutter (currently 1.12.13+hotfix.6). It seems like it crashes every time I start my flutter app now.
Same for me
@mikeesouth that error is because you've double-clicked the vsix file instead of using the VS Code command to install it (see the instructions on the release page).
That said, I think for at least some of the comments above, this issue is a dupe of https://github.com/flutter/flutter/issues/46616. Certain operations on the build folder (for example running flutter clean seemt to be causing the analyzer to crash.
I've faced the same issue and unfortunately I don't have any extra info besides what's already posted here.
One thing I noticed though. I have the same VSCode setup both in my home and work. I use the Settings Sync extension (shan.code-settings-sync) to keep both installs with the same setup and I work on the same projects.
This error only happens at home and the only difference I could notice is that I'm running on Windows 10 (at work I run Ubuntu 18.04).
So maybe it's a Windows only issue?
The Flutter issue mentioned in my comment above is Windows-only (as far as I can tell). I suspect most people finding this issue are hitting that - there's been some progress with fixing it (it's a Dart VM bug where many file system events cause a crash) but I can still repro a crash now and then.
So if you're seeing this error on Windows after running/cleaning a Flutter project, please follow https://github.com/flutter/flutter/issues/46616 for updates.
If you're seeing this error without running/cleaning a Flutter app or on a non-Windows machine, please comment below.
Closing this as a dupe of https://github.com/flutter/flutter/issues/46616, since @bounty1342 confirmed in Discord that the issue is gone on Flutter's master channel.
If anyone still sees issues when using a version of Flutter with the fix, do let me know!
I am on master, still an issue
[08:53:19] [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:414:19)
at writeOrBuffer (_stream_writable.js:402:5)
at Socket.Writable.write (_stream_writable.js:302:11)
at b.sendMessage (c:\Users\Ruan\.vscode\extensions\dart-code.dart-code-3.14.0\out\dist\extension.js:1:130828)
at b.sendMessage (c:\Users\Ruan\.vscode\extensions\dart-code.dart-code-3.14.0\out\dist\extension.js:1:158470)
at c:\Users…
@dupiesdupreez can you confirm the exact version of Flutter you have (output of flutter --version)? I believe this issue may have been accidentally re-introduced and recently fixed (https://github.com/dart-lang/sdk/commit/04879fa4cdc2fc173b99472bae186feecc7e08e0).
i have same problem.
Flutter 1.20.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 216dee60c0 (7 days ago) • 2020-09-01 12:24:47 -0700
Engine • revision d1bc06f032
Tools • Dart 2.9.2
I don't think the fix above is included in 1.20.3, so it could be the same issue linked above and be fixed in the next major stable release.
You can reinstall discord, for me, its seem to work
This problem already exists and has bothered me for months 。
i have try reinstall vscode , change flutter version, no work.


The original issue linked above was accidentally re-introduced in the Dart SDK and has recently been re-fixed (see https://github.com/dart-lang/sdk/issues/40348#issuecomment-689468824). That fix hasn't made Flutter's stable channel yet, so I suspect you're seeing the same thing.
Hello devs!
I managed to solve this by doing the following steps:
It was a success! I hope I can help them 😀
Most helpful comment
The original issue linked above was accidentally re-introduced in the Dart SDK and has recently been re-fixed (see https://github.com/dart-lang/sdk/issues/40348#issuecomment-689468824). That fix hasn't made Flutter's stable channel yet, so I suspect you're seeing the same thing.