Skip to content

Instantly share code, notes, and snippets.

@helightdev
Created May 17, 2024 09:56
Show Gist options
  • Save helightdev/83b9ed4d704baaf8f472367175e4232e to your computer and use it in GitHub Desktop.
Save helightdev/83b9ed4d704baaf8f472367175e4232e to your computer and use it in GitHub Desktop.
Dart Code extension: 3.89.20240513
Flutter extension: 3.89.20240501 (not activated)
App: Visual Studio Code
App Host: desktop
Version: linux 1.89.1
Workspace type: Dart (LSP)
Dart (3.5.0-160.0.dev): /home/helight/snap/flutter/common/flutter/bin/cache/dart-sdk
Flutter (3.22.0-35.0.pre.34): /home/helight/snap/flutter/common/flutter (No device)
[11:55:09 AM] [DartToolingDaemon] [Info] Spawning /home/helight/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart with args ["tooling-daemon","--machine"]
[11:55:09 AM] [DartToolingDaemon] [Info] .. with {"toolEnv":{"FLUTTER_HOST":"VSCode","PUB_ENVIRONMENT":"vscode.dart-code"}}
[11:55:09 AM] [DartToolingDaemon] [Info] PID: 147
[11:55:09 AM] [Analyzer] [Info] Spawning /home/helight/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart with args ["language-server","--protocol=lsp","--client-id=VS-Code","--client-version=3.89.20240513"]
[11:55:09 AM] [Analyzer] [Info] PID: 216
[11:55:09 AM] [General] [Info] Returning cached results for project search
[11:55:09 AM] [General] [Info] Version last used for Pub is 3.5.0-160.0.dev (3.5.0), current is 3.5.0-160.0.dev (3.5.0)
[11:55:09 AM] [General] [Info] Found 0 folders requiring "pub get" or "pub upgrade":
[11:55:09 AM] [Analyzer] [Info] ==> Content-Length: 6600
[11:55:09 AM] [Analyzer] [Info] ==> {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":147,"clientInfo":{"name":"Visual Studio Code","version":"1.89.1"},"locale":"en","rootPath":"/home/helight/StudioProjects/macro_test","rootUri":"file:///home/helight/StudioProjects/macro_test","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional","normalizesLineEndings":true,"changeAnnotationSupport":{"g…
[11:55:09 AM] [General] [Info] Loaded 20000 package names from vscode-userdata:/home/helight/.var/app/com.visualstudio.code/config/Code/User/globalStorage/dart-code.dart-code/package_cache.json
[11:55:09 AM] [DartToolingDaemon] [Info] <== {"tooling_daemon_details":{"uri":"ws://127.0.0.1:33127/7Bkdst1x86Kdx9VU","trusted_client_secret":"1QThdFZkwZvjX43j"}}
[11:55:09 AM] [DartToolingDaemon] [Info] Connecting to DTD at ws://127.0.0.1:33127/7Bkdst1x86Kdx9VU...
[11:55:09 AM] [DartToolingDaemon] [Info] Connected to DTD
[11:55:09 AM] [DartToolingDaemon] [Info] ==> {"id":"1","jsonrpc":"2.0","method":"FileSystem.setIDEWorkspaceRoots","params":{"secret":"1QThdFZkwZvjX43j","roots":["file:///home/helight/StudioProjects/macro_test"]}}
[11:55:09 AM] [DartToolingDaemon] [Info] <== {"jsonrpc":"2.0","result":{"type":"Success"},"id":"1"}
[11:55:09 AM] [Analyzer] [Info] <== Content-Length: 883
Content-Type: application/vscode-jsonrpc; charset=utf-8
[11:55:09 AM] [Analyzer] [Info] <== {"id":0,"jsonrpc":"2.0","result":{"capabilities":{"executeCommandProvider":{"commands":["dart.edit.sortMembers","dart.edit.organizeImports","dart.edit.fixAll","dart.edit.fixAllInWorkspace.preview","dart.edit.fixAllInWorkspace","dart.edit.sendWorkspaceEdit","refactor.perform","refactor.validate","dart.logAction","dart.refactor.convert_all_formal_parameters_to_named","dart.refactor.convert_selected_formal_parameters_to_named","dart.refactor.move_selected_formal_parameters_left","dart.refactor.…
[11:55:09 AM] [Analyzer] [Info] ==> Content-Length: 86
[11:55:09 AM] [Analyzer] [Info] ==> {"jsonrpc":"2.0","method":"initialized","params":{},"clientRequestTime":1715939709918}
[11:55:09 AM] [Analyzer] [Info] <== Content-Length: 178
Content-Type: application/vscode-jsonrpc; charset=utf-8
[11:55:09 AM] [Analyzer] [Info] <== {"id":1,"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"scopeUri":"file:///home/helight/StudioProjects/macro_test","section":"dart"},{"section":"dart"}]}}
[11:55:09 AM] [Analyzer] [Info] ==> Content-Length: 7595
[11:55:09 AM] [Analyzer] [Info] ==> {"jsonrpc":"2.0","id":1,"result":[{"additionalAnalyzerFileExtensions":[],"analysisExcludedFolders":[],"analyzeAngularTemplates":true,"analyzerAdditionalArgs":[],"analyzerVmAdditionalArgs":[],"analyzerDiagnosticsPort":null,"analyzerPath":null,"analyzerSshHost":null,"analyzerVmServicePort":null,"includeDependenciesInWorkspaceSymbols":true,"notifyAnalyzerErrors":true,"onlyAnalyzeProjectsWithOpenFiles":false,"showTodos":true,"showExtensionRecommendations":true,"useLegacyAnalyzerProtocol":false,"…
[11:55:09 AM] [Analyzer] [Info] <== Content-Length: 6698
Content-Type: application/vscode-jsonrpc; charset=utf-8
[11:55:09 AM] [Analyzer] [Info] <== {"id":2,"jsonrpc":"2.0","method":"client/registerCapability","params":{"registrations":[{"id":"0","method":"textDocument/prepareCallHierarchy","registerOptions":{"documentSelector":[{"language":"dart","scheme":"file"},{"language":"dart","scheme":"dart-macro+file"}]}},{"id":"1","method":"textDocument/codeAction","registerOptions":{"codeActionKinds":["source","source.organizeImports","source.fixAll","source.sortMembers","quickfix","refactor"],"documentSelector":[{"language":"dart","scheme":"fi…
[11:55:09 AM] [Analyzer] [Info] ==> Content-Length: 72
[11:55:09 AM] [Analyzer] [Info] ==> {"jsonrpc":"2.0","id":2,"result":null,"clientRequestTime":1715939709953}
[11:55:09 AM] [Analyzer] [Info] ==> Content-Length: 426
[11:55:09 AM] [Analyzer] [Info] ==> {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"file:///home/helight/StudioProjects/macro_test/lib/controller.dart","languageId":"dart","version":1,"text":"import 'package:macro_test/macro_test.dart';\n\n@ControllerMacro()\nclass MyControllerText {\n @CustomAnnotation()\n void main() {}\n}\n\nclass CustomAnnotation {\n const CustomAnnotation();\n}\n"}},"clientRequestTime":1715939709953}
[11:55:09 AM] [Analyzer] [Info] ==> Content-Length: 98
[11:55:09 AM] [Analyzer] [Info] ==> {"jsonrpc":"2.0","method":"$/setTrace","params":{"value":"off"},"clientRequestTime":1715939709960}
[11:55:09 AM] [Analyzer] [Info] ==> Content-Length: 122
[11:55:09 AM] [Analyzer] [Info] ==> {"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"settings":null},"clientRequestTime":1715939709960}
[11:55:09 AM] [Analyzer] [Info] ==> Content-Length: 317
[11:55:09 AM] [Analyzer] [Info] ==> {"jsonrpc":"2.0","id":1,"method":"textDocument/codeAction","params":{"textDocument":{"uri":"file:///home/helight/StudioProjects/macro_test/lib/controller.dart"},"range":{"start":{"line":11,"character":0},"end":{"line":11,"character":0}},"context":{"diagnostics":[],"triggerKind":2}},"clientRequestTime":1715939709961}
[11:55:09 AM] [Analyzer] [Info] ==> Content-Length: 199
[11:55:09 AM] [Analyzer] [Info] ==> {"jsonrpc":"2.0","id":2,"method":"textDocument/documentColor","params":{"textDocument":{"uri":"file:///home/helight/StudioProjects/macro_test/lib/controller.dart"}},"clientRequestTime":1715939709961}
[11:55:09 AM] [Analyzer] [Info] <== Content-Length: 446
Content-Type: application/vscode-jsonrpc; charset=utf-8
[11:55:09 AM] [Analyzer] [Info] ==> Content-Length: 198
[11:55:09 AM] [Analyzer] [Info] ==> {"jsonrpc":"2.0","id":3,"method":"textDocument/documentLink","params":{"textDocument":{"uri":"file:///home/helight/StudioProjects/macro_test/lib/controller.dart"}},"clientRequestTime":1715939709977}
[11:55:09 AM] [Analyzer] [Info] ==> Content-Length: 270
[11:55:09 AM] [Analyzer] [Info] ==> {"jsonrpc":"2.0","id":4,"method":"textDocument/inlayHint","params":{"textDocument":{"uri":"file:///home/helight/StudioProjects/macro_test/lib/controller.dart"},"range":{"start":{"line":0,"character":0},"end":{"line":11,"character":0}}},"clientRequestTime":1715939709977}
[11:55:10 AM] [Analyzer] [Info] ==> Content-Length: 98
[11:55:10 AM] [Analyzer] [Info] ==> {"jsonrpc":"2.0","method":"$/setTrace","params":{"value":"off"},"clientRequestTime":1715939710005}
[11:55:10 AM] [Analyzer] [Info] ==> Content-Length: 122
[11:55:10 AM] [Analyzer] [Info] ==> {"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"settings":null},"clientRequestTime":1715939710005}
[11:55:10 AM] [Analyzer] [Info] <== {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[{"code":"unnecessary_dev_dependency","message":"The dev dependency on lyell is unnecessary because there is also a normal dependency on that package.\nTry removing the dev dependency.","range":{"end":{"character":7,"line":17},"start":{"character":2,"line":17}},"severity":2,"source":"dart"}],"uri":"file:///home/helight/StudioProjects/macro_test/pubspec.yaml"}}
[11:55:10 AM] [Analyzer] [Info] <== Content-Length: 97
Content-Type: application/vscode-jsonrpc; charset=utf-8
[11:55:10 AM] [Analyzer] [Info] <== {"id":3,"jsonrpc":"2.0","method":"window/workDoneProgress/create","params":{"token":"ANALYZING"}}
[11:55:10 AM] [Analyzer] [Info] ==> Content-Length: 72
[11:55:10 AM] [Analyzer] [Info] ==> {"jsonrpc":"2.0","id":3,"result":null,"clientRequestTime":1715939710053}
[11:55:10 AM] [Analyzer] [Info] <== Content-Length: 887
Content-Type: application/vscode-jsonrpc; charset=utf-8
[11:55:10 AM] [Analyzer] [Info] <== {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[{"code":"deprecated_member_use","codeDescription":{"href":"https://dart.dev/diagnostics/deprecated_member_use"},"message":"'resolveIdentifier' is deprecated and shouldn't be used. This API should eventually be replaced with a different, safer API.\nTry replacing the use of the deprecated member with the replacement.","range":{"end":{"character":49,"line":5},"start":{"character":32,"line":5}},"severity":3,"so…
[11:55:10 AM] [Analyzer] [Info] <== Content-Length: 36
Content-Type: application/vscode-jsonrpc; charset=utf-8
{"id":3,"jsonrpc":"2.0","result":[]}
[11:55:10 AM] [Analyzer] [Info] ==> Content-Length: 7595
[11:55:10 AM] [Analyzer] [Info] ==> {"jsonrpc":"2.0","id":4,"result":[{"additionalAnalyzerFileExtensions":[],"analysisExcludedFolders":[],"analyzeAngularTemplates":true,"analyzerAdditionalArgs":[],"analyzerVmAdditionalArgs":[],"analyzerDiagnosticsPort":null,"analyzerPath":null,"analyzerSshHost":null,"analyzerVmServicePort":null,"includeDependenciesInWorkspaceSymbols":true,"notifyAnalyzerErrors":true,"onlyAnalyzeProjectsWithOpenFiles":false,"showTodos":true,"showExtensionRecommendations":true,"useLegacyAnalyzerProtocol":false,"…
[11:55:10 AM] [Analyzer] [Info] <== Content-Length: 178
Content-Type: application/vscode-jsonrpc; charset=utf-8
[11:55:10 AM] [Analyzer] [Info] <== {"id":5,"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"scopeUri":"file:///home/helight/StudioProjects/macro_test","section":"dart"},{"section":"dart"}]}}
[11:55:10 AM] [Analyzer] [Info] <== Content-Length: 118
Content-Type: application/vscode-jsonrpc; charset=utf-8
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"ANALYZING","value":{"kind":"begin","title":"Analyzing…"}}}Content-Length: 154
Content-Type: application/vscode-jsonrpc; charset=utf-8
{"id":2,"jsonrpc":"2.0","error":{"code":-32013,"data":"/home/helight/StudioProjects/macro_test/lib/controller.dart","message":"Analysis failed for file"}}Content-Length: 154
Content-Type: application/vscode-jsonrpc; cha…
[11:55:10 AM] [Analyzer] [Info] ==> Content-Length: 7595
[11:55:10 AM] [Analyzer] [Info] ==> {"jsonrpc":"2.0","id":5,"result":[{"additionalAnalyzerFileExtensions":[],"analysisExcludedFolders":[],"analyzeAngularTemplates":true,"analyzerAdditionalArgs":[],"analyzerVmAdditionalArgs":[],"analyzerDiagnosticsPort":null,"analyzerPath":null,"analyzerSshHost":null,"analyzerVmServicePort":null,"includeDependenciesInWorkspaceSymbols":true,"notifyAnalyzerErrors":true,"onlyAnalyzeProjectsWithOpenFiles":false,"showTodos":true,"showExtensionRecommendations":true,"useLegacyAnalyzerProtocol":false,"…
[11:55:10 AM] [Analyzer] [Info] ==> Content-Length: 200
[11:55:10 AM] [Analyzer] [Info] ==> {"jsonrpc":"2.0","id":5,"method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///home/helight/StudioProjects/macro_test/lib/controller.dart"}},"clientRequestTime":1715939710259}
[11:55:10 AM] [Analyzer] [Info] ==> Content-Length: 198
[11:55:10 AM] [Analyzer] [Info] ==> {"jsonrpc":"2.0","id":6,"method":"textDocument/foldingRange","params":{"textDocument":{"uri":"file:///home/helight/StudioProjects/macro_test/lib/controller.dart"}},"clientRequestTime":1715939710260}
[11:55:10 AM] [Analyzer] [Info] ==> Content-Length: 281
[11:55:10 AM] [Analyzer] [Info] ==> {"jsonrpc":"2.0","id":7,"method":"textDocument/semanticTokens/range","params":{"textDocument":{"uri":"file:///home/helight/StudioProjects/macro_test/lib/controller.dart"},"range":{"start":{"line":0,"character":0},"end":{"line":11,"character":0}}},"clientRequestTime":1715939710262}
[11:55:10 AM] [Analyzer] [Error] [UnimplementedError: Null
#0 DeclarationBuilder.resolveIdentifier (package:analyzer/src/summary2/macro_declarations.dart:308:9)
#1 _Builder._buildIdentifier (package:_macros/src/executor/augmentation_library.dart:73:53)
#2 _Builder._buildCode (package:_macros/src/executor/augmentation_library.dart:133:9)
#3 _Builder._buildCode (package:_macros/src/executor/augmentation_library.dart:131:9)
#4 _Builder._buildCode (package:_macros/src/executor/augmentation_library.dart:131:…
[11:55:10 AM] [Analyzer] [Error]
[11:55:10 AM] [Analyzer] [Info] Spawning /home/helight/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart with args ["language-server","--protocol=lsp","--client-id=VS-Code","--client-version=3.89.20240513"]
[11:55:10 AM] [Analyzer] [Info] PID: 289
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment