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 from yaml parsing during dart fix #56473

Closed
theaquaflower opened this issue Aug 15, 2024 · 1 comment
Closed

Exception from yaml parsing during dart fix #56473

theaquaflower opened this issue Aug 15, 2024 · 1 comment
Assignees
Labels
analyzer-dartfix Issues with the dartfix package area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@theaquaflower
Copy link

Computing fixes in aqua_flower_app (dry run)...
An unexpected error was encountered by the Analysis Server.
Please file an issue at https://github.com/dart-lang/sdk/issues/new/choose with the following details:

Exception while getting bulk fixes: Error on line 63, column 4: Expected a key while parsing a block mapping.

63 │ assets:
│ ^

#0 Parser._parseBlockMappingKey (package:yaml/src/parser.dart:456:5)
#1 Parser._stateMachine (package:yaml/src/parser.dart:100:16)
#2 Parser.parse (package:yaml/src/parser.dart:61:19)
#3 Loader._loadMapping (package:yaml/src/loader.dart:169:23)
#4 Loader._loadNode (package:yaml/src/loader.dart:88:35)
#5 Loader._loadMapping (package:yaml/src/loader.dart:163:19)
#6 Loader._loadNode (package:yaml/src/loader.dart:88:35)
#7 Loader._loadDocument (package:yaml/src/loader.dart:68:20)
#8 Loader.load (package:yaml/src/loader.dart:60:20)
#9 loadYamlDocument (package:yaml/yaml.dart:69:25)
#10 loadYamlNode (package:yaml/yaml.dart:54:5)
#11 BulkFixProcessor._runPubspecValidatorAndFixGenerator (package:analysis_server/src/services/correction/bulk_fix_processor.dart:926:21)
#12 BulkFixProcessor._computeChangesToPubspec (package:analysis_server/src/services/correction/bulk_fix_processor.dart:424:28)
#13 BulkFixProcessor.fixPubspec (package:analysis_server/src/services/correction/bulk_fix_processor.dart:289:7)
#14 EditBulkFixes.handle (package:analysis_server/src/handler/legacy/edit_bulk_fixes.dart:60:38)
#15 LegacyAnalysisServer.handleRequest.. (package:analysis_server/src/legacy_analysis_server.dart:576:25)
#16 OperationPerformanceImpl.runAsync (package:analyzer/src/util/performance/operation_performance.dart:174:29)
#17 LegacyAnalysisServer.handleRequest. (package:analysis_server/src/legacy_analysis_server.dart:557:29)
#18 _rootRun (dart:async/zone.dart:1399:13)
#19 _CustomZone.run (dart:async/zone.dart:1301:19)
#20 _runZoned (dart:async/zone.dart:1826:10)
#21 runZonedGuarded (dart:async/zone.dart:1814:12)
#22 LegacyAnalysisServer.handleRequest (package:analysis_server/src/legacy_analysis_server.dart:553:5)
#23 LegacyAnalysisServer.handleRequestOrResponse (package:analysis_server/src/legacy_analysis_server.dart:617:7)
#24 _rootRunUnary (dart:async/zone.dart:1407:47)
#25 _CustomZone.runUnary (dart:async/zone.dart:1308:19)
#26 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1217:7)
#27 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:365:11)
#28 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:297:7)
#29 _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:63:11)
#30 _EventSinkWrapper.add (dart:async/stream_transformers.dart:13:11)
#31 new _DebounceRequests.. (package:analysis_server/src/server/debounce_requests.dart:50:20)
#32 _rootRun (dart:async/zone.dart:1391:47)
#33 _CustomZone.run (dart:async/zone.dart:1301:19)
#34 _CustomZone.runGuarded (dart:async/zone.dart:1209:7)
#35 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1249:23)
#36 _rootRun (dart:async/zone.dart:1399:13)
#37 _CustomZone.run (dart:async/zone.dart:1301:19)
#38 _CustomZone.bindCallback. (dart:async/zone.dart:1233:23)
#39 Timer._createTimer. (dart:async-patch/timer_patch.dart:18:15)
#40 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
#41 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
#42 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)

#0 Parser._parseBlockMappingKey (package:yaml/src/parser.dart:456:5)
#1 Parser._stateMachine (package:yaml/src/parser.dart:100:16)
#2 Parser.parse (package:yaml/src/parser.dart:61:19)
#3 Loader._loadMapping (package:yaml/src/loader.dart:169:23)
#4 Loader._loadNode (package:yaml/src/loader.dart:88:35)
#5 Loader._loadMapping (package:yaml/src/loader.dart:163:19)
#6 Loader._loadNode (package:yaml/src/loader.dart:88:35)
#7 Loader._loadDocument (package:yaml/src/loader.dart:68:20)
#8 Loader.load (package:yaml/src/loader.dart:60:20)
#9 loadYamlDocument (package:yaml/yaml.dart:69:25)
#10 loadYamlNode (package:yaml/yaml.dart:54:5)
#11 BulkFixProcessor._runPubspecValidatorAndFixGenerator (package:analysis_server/src/services/correction/bulk_fix_processor.dart:926:21)
#12 BulkFixProcessor._computeChangesToPubspec (package:analysis_server/src/services/correction/bulk_fix_processor.dart:424:28)
#13 BulkFixProcessor.fixPubspec (package:analysis_server/src/services/correction/bulk_fix_processor.dart:289:7)
#14 EditBulkFixes.handle (package:analysis_server/src/handler/legacy/edit_bulk_fixes.dart:60:38)
#15 LegacyAnalysisServer.handleRequest.. (package:analysis_server/src/legacy_analysis_server.dart:576:25)
#16 OperationPerformanceImpl.runAsync (package:analyzer/src/util/performance/operation_performance.dart:174:29)
#17 LegacyAnalysisServer.handleRequest. (package:analysis_server/src/legacy_analysis_server.dart:557:29)
#18 _rootRun (dart:async/zone.dart:1399:13)
#19 _CustomZone.run (dart:async/zone.dart:1301:19)
#20 _runZoned (dart:async/zone.dart:1826:10)
#21 runZonedGuarded (dart:async/zone.dart:1814:12)
#22 LegacyAnalysisServer.handleRequest (package:analysis_server/src/legacy_analysis_server.dart:553:5)
#23 LegacyAnalysisServer.handleRequestOrResponse (package:analysis_server/src/legacy_analysis_server.dart:617:7)
#24 _rootRunUnary (dart:async/zone.dart:1407:47)
#25 _CustomZone.runUnary (dart:async/zone.dart:1308:19)
#26 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1217:7)
#27 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:365:11)
#28 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:297:7)
#29 _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:63:11)
#30 _EventSinkWrapper.add (dart:async/stream_transformers.dart:13:11)
#31 new _DebounceRequests.. (package:analysis_server/src/server/debounce_requests.dart:50:20)
#32 _rootRun (dart:async/zone.dart:1391:47)
#33 _CustomZone.run (dart:async/zone.dart:1301:19)
#34 _CustomZone.runGuarded (dart:async/zone.dart:1209:7)
#35 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1249:23)
#36 _rootRun (dart:async/zone.dart:1399:13)
#37 _CustomZone.run (dart:async/zone.dart:1301:19)
#38 _CustomZone.bindCallback. (dart:async/zone.dart:1233:23)
#39 Timer._createTimer. (dart:async-patch/timer_patch.dart:18:15)
#40 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
#41 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
#42 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)

@dart-github-bot
Copy link
Collaborator

Summary: The Analysis Server encountered an error while processing a pubspec file. The error occurred during YAML parsing, specifically when expecting a key within a block mapping. This suggests an issue with the pubspec file's formatting.

@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 15, 2024
@keertip keertip changed the title Analysis Server Error Exception from yaml parsing during dart fix Aug 15, 2024
@keertip keertip added analyzer-dartfix Issues with the dartfix package P2 A bug or feature request we're likely to work on labels Aug 15, 2024
@lrhn lrhn removed the triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. label Aug 16, 2024
@keertip keertip self-assigned this Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-dartfix Issues with the dartfix package area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

4 participants