フラミナル

考え方や調べたことを書き殴ります。IT技術系記事多め

vscode の dart analysis server がクラッシュする

flutter/dart を入れ替えたりしたタイミングで dart analysis server が起動しなくなったので対応した内容。

{"id":21,"jsonrpc":"2.0","error":{"code":-32800,"message":"Request was cancelled"}}Content-Length: 83
Content-Type: application/vscode-jsonrpc; charset=utf-8

{"id":22,"jsonrpc":"2.0","error":{"code":-32800,"message":"Request was cancelled"}}
[21:46:04] [Analyzer] [Info] <== Content-Length: 83
Content-Type: application/vscode-jsonrpc; charset=utf-8

{"id":23,"jsonrpc":"2.0","error":{"code":-32800,"message":"Request was cancelled"}}Content-Length: 11418
Content-Type: application/vscode-jsonrpc; charset=utf-8


...

[21:46:10] [Analyzer] [Error] auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/authentication.dart, path: /Users/xxx/fvm/versions/3.16.9/bin/cache/pkg/sky_engine/lib/_interceptors/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/authentication.dart), (uri: dart:_interceptors/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth/auth…

rm ~/.dartServer/