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 when handling yaml code #56422

Closed
lucasjinreal opened this issue Aug 9, 2024 · 2 comments
Closed

Exception when handling yaml code #56422

lucasjinreal opened this issue Aug 9, 2024 · 2 comments
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@lucasjinreal
Copy link

lucasjinreal commented Aug 9, 2024

[Error - 22:08:30] An error occurred while handling initialized notification: type 'Null' is not a subtype of type 'Object' in type cast
#0      YamlNodeExtension.valueOrThrow (package:analyzer/src/util/yaml.dart:147:36)
#1      _LintConfig.asString (package:analyzer/src/lint/config.dart:93:47)
@dart-github-bot
Copy link
Collaborator

Summary: The user is experiencing a VSCode crash due to a type error in the analyzer package. The error occurs when attempting to cast a Null value to an Object, likely during YAML configuration parsing.

@dart-github-bot dart-github-bot added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Aug 9, 2024
@lrhn lrhn removed the triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. label Aug 12, 2024
@keertip keertip changed the title VSCode crash Exception when handling yaml code Aug 12, 2024
@keertip
Copy link
Contributor

keertip commented Aug 12, 2024

Duplicate of #56429

@keertip keertip marked this as a duplicate of #56429 Aug 12, 2024
@keertip keertip closed this as completed Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

4 participants