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

dart migrate crashes in visitPrefixedIdentifier on dartdoc #47433

Closed
jcollins-g opened this issue Oct 11, 2021 · 1 comment
Closed

dart migrate crashes in visitPrefixedIdentifier on dartdoc #47433

jcollins-g opened this issue Oct 11, 2021 · 1 comment
Labels
area-migration (deprecated) Deprecated: this label is no longer actively used (was: issues with the `dart migrate` tool).

Comments

@jcollins-g
Copy link
Contributor

jcollins-g commented Oct 11, 2021

  • Dart SDK Version (dart --version)
    Dart SDK version: 2.15.0-203.0.dev (dev) (Mon Oct 11 01:29:51 2021 -0700) on "macos_x64"
  • Whether you are using Windows, MacOSX, or Linux (if applicable)
    MacOS X
  • Whether you are using Chrome, Safari, Firefox, Edge (if applicable)
    n/a

Tested at dart-lang/dartdoc@b4fa868.

jcollins-macbookpro2:dartdoc jcollins$ dart migrate .
Migrating /Users/jcollins/dart/dartdoc

See https://dart.dev/go/null-safety-migration for a migration guide.

Analyzing project...
[----------------------------------------------------------------------------------------------------------------------------------------------------------------\]No analysis issues found.

Generating migration suggestions...
[----\                                                                                                                                                            ]Aborting migration due to an exception.  This most likely is due to a
bug in the migration tool.  Please consider filing a bug report at:

https://github.com/dart-lang/sdk/issues/new
Please include the SDK version (2.15.0-203.0.dev) in your bug report.

To attempt to perform migration anyway, you may re-run with
--ignore-exceptions.

Exception details:

Null check operator used on a null value at offset 15 in /Users/jcollins/dart/dartdoc/test/mustachio/foo.dart (Renderer.forTest)

#0      EdgeBuilder._makeEdgeOrigin (package:nnbd_migration/src/edge_builder.dart:3267:24)
#1      EdgeBuilder._checkExpressionNotNull (package:nnbd_migration/src/edge_builder.dart:2065:18)
#2      EdgeBuilder._handleTarget (package:nnbd_migration/src/edge_builder.dart:3175:14)
#3      EdgeBuilder._handlePropertyAccess (package:nnbd_migration/src/edge_builder.dart:3098:20)
#4      EdgeBuilder.visitPrefixedIdentifier (package:nnbd_migration/src/edge_builder.dart:1566:14)
#5      PrefixedIdentifierImpl.accept (package:analyzer/src/dart/ast/ast.dart:8295:50)
#6      EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2305:24)
#7      EdgeBuilder.visitAnnotation (package:nnbd_migration/src/edge_builder.dart:390:7)
#8      AnnotationImpl.accept (package:analyzer/src/dart/ast/ast.dart:298:50)
#9      EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2305:24)
#10     EdgeBuilder._dispatchList (package:nnbd_migration/src/edge_builder.dart:2323:7)
#11     EdgeBuilder.visitLibraryDirective (package:nnbd_migration/src/edge_builder.dart:1287:5)
#12     LibraryDirectiveImpl.accept (package:analyzer/src/dart/ast/ast.dart:6653:50)
#13     EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2305:24)
#14     EdgeBuilder.visitNode (package:nnbd_migration/src/edge_builder.dart:1501:9)
#15     GeneralizingAstVisitor.visitCompilationUnit (package:analyzer/dart/ast/visitor.dart:202:52)
#16     CompletenessTracker.visitCompilationUnit.<anonymous closure> (package:nnbd_migration/src/utilities/completeness_tracker.dart:52:24)
#17     PermissiveModeVisitor.reportExceptionsIfPermissive (package:nnbd_migration/src/utilities/permissive_mode.dart:26:24)
#18     CompletenessTracker.visitCompilationUnit (package:nnbd_migration/src/utilities/completeness_tracker.dart:43:5)
#19     CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:2076:50)
#20     NullabilityMigrationImpl.processInput (package:nnbd_migration/src/nullability_migration_impl.dart:231:12)
#21     NonNullableFix.processUnit (package:nnbd_migration/src/front_end/non_nullable_fix.dart:164:16)
#22     _FixCodeProcessor.runLaterPhases.<anonymous closure> (package:nnbd_migration/migration_cli.dart:1092:20)
#23     _FixCodeProcessor.runLaterPhases.<anonymous closure> (package:nnbd_migration/migration_cli.dart:1090:28)
#24     _FixCodeProcessor.processResources (package:nnbd_migration/migration_cli.dart:1024:26)
<asynchronous suspension>
#25     _FixCodeProcessor.runLaterPhases (package:nnbd_migration/migration_cli.dart:1090:5)
<asynchronous suspension>
#26     MigrationCliRunner.run (package:nnbd_migration/migration_cli.dart:697:24)
<asynchronous suspension>
#27     MigrateCommand.run (package:dartdev/src/commands/migrate.dart:37:7)
<asynchronous suspension>
#28     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#29     DartdevRunner.runCommand (package:dartdev/dartdev.dart:223:18)
<asynchronous suspension>
#30     runDartdev (package:dartdev/dartdev.dart:66:16)
<asynchronous suspension>
#31     main (file:///opt/s/w/ir/cache/builder/sdk/pkg/dartdev/bin/dartdev.dart:11:3)
<asynchronous suspension>
@jcollins-g jcollins-g added the area-migration (deprecated) Deprecated: this label is no longer actively used (was: issues with the `dart migrate` tool). label Oct 11, 2021
@stereotype441
Copy link
Member

As of 1c7fe71, the null safety migration tool has been removed from active development and retired. No further work on the tool is planned.

If you still need help, or you believe this issue has been closed in error, please feel free to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-migration (deprecated) Deprecated: this label is no longer actively used (was: issues with the `dart migrate` tool).
Projects
None yet
Development

No branches or pull requests

2 participants