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

Yaml Loader._loadAlias failed for - **.g.dart #149

Closed
LongXiangGuo opened this issue Aug 18, 2023 · 2 comments
Closed

Yaml Loader._loadAlias failed for - **.g.dart #149

LongXiangGuo opened this issue Aug 18, 2023 · 2 comments
Labels
closed-invalid Closed as we don't believe the reported issue is generally actionable

Comments

@LongXiangGuo
Copy link

LongXiangGuo commented Aug 18, 2023

include: package:flutter_lints/flutter.yaml
analyzer:
  exclude:
    - **.g.dart

  errors:
    use_build_context_synchronously: ignore

4 │     - **.g.dart
  │       ^^^^^^^^^
  ╵ 
#0      Loader._loadAlias (package:yaml/src/loader.dart:114:5)
#1      Loader._loadNode (package:yaml/src/loader.dart:86:16)
#2      Loader._loadSequence (package:yaml/src/loader.dart:146:20)
#3      Loader._loadNode (package:yaml/src/loader.dart:90:16)
#4      Loader._loadMapping (package:yaml/src/loader.dart:169:19)
#5      Loader._loadNode (package:yaml/src/loader.dart:92:16)
#6      Loader._loadMapping (package:yaml/src/loader.dart:169:19)
#7      Loader._loadNode (package:yaml/src/loader.dart:92:16)
#8      Loader._loadDocument (package:yaml/src/loader.dart:68:20)
#9      Loader.load (package:yaml/src/loader.dart:60:20)
#10     loadYamlDocument (package:yaml/yaml.dart:72:25)
#11     loadYamlNode (package:yaml/yaml.dart:57:5)
#12     loadYaml (package:yaml/yaml.dart:44:5)
#13     getExcludeFolders (file:///Users/qxz3ln7/project/tools/bin/update_analytics_options.dart:133:28)
<asynchronous suspension>
#14     main (file:///Users/qxz3ln7/project/tools/bin/update_analytics_options.dart:56:29)
<asynchronous suspension>

#0      getExcludeFolders (file:///Users/qxz3ln7/project/tools/bin/update_analytics_options.dart:142:5)
<asynchronous suspension>
#1      main (file:///Users/qxz3ln7/project/tools/bin/update_analytics_options.dart:56:29)
<asynchronous suspension>
@jonasfj jonasfj added the closed-invalid Closed as we don't believe the reported issue is generally actionable label Jun 7, 2024
@jonasfj
Copy link
Member

jonasfj commented Jun 7, 2024

This is invalid YAML.

try:

include: package:flutter_lints/flutter.yaml
analyzer:
  exclude:
    - '**.g.dart'

  errors:
    use_build_context_synchronously: ignore

@jonasfj jonasfj closed this as completed Jun 7, 2024
@jonasfj
Copy link
Member

jonasfj commented Jun 7, 2024

It's be nice if the tooling handled it better though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-invalid Closed as we don't believe the reported issue is generally actionable
Projects
None yet
Development

No branches or pull requests

2 participants