Skip to content

Add information around Exited when "debugging" a project about what type of error happened #62079

@FMorschel

Description

@FMorschel

Yesterday, I was debugging some issues with the new plugin system and how it registers warnings (already filed) and trying to do a local patch so I can test my plugin on a separate project. I came back to it today, and I stumbled upon an error, so I manually opened the created plugin project and tried running it directly. This is the output:

Connecting to VM Service at ws://127.0.0.1:64559/aFo1eRDXgvk=/ws
Connected to the VM Service.
../../../../../.puro/shared/pub_cache/hosted/pub.dev/analysis_server_plugin-0.3.4/lib/src/registry.dart:59:48: Error: The argument type 'DiagnosticCode' can't be assigned to the parameter type 'LintCode'.
registry.dart:59
 - 'DiagnosticCode' is from 'package:_fe_analyzer_shared/src/base/errors.dart' ('../../../../../.puro/shared/pub_cache/hosted/pub.dev/_fe_analyzer_shared-92.0.0/lib/src/base/errors.dart').
 - 'LintCode' is from 'package:analyzer/src/dart/error/lint_codes.dart' ('../../../../../.puro/shared/pub_cache/hosted/pub.dev/analyzer-9.0.0/lib/src/dart/error/lint_codes.dart').
    registeredFixGenerators.registerFixForLint(code, generator);
                                               ^

Exited (254).

Since I saw at the beginning Connected to the VM Service, I assumed (mistakenly) that this was a runtime error and was trying to add breakpoints, but nothing worked. Then I remembered I was editing some cached dependencies to make things work, and that probably was a compile error.


This issue is requesting that we add some information around Exited to tell the user whether this was a compile or runtime error.

P.S.: If you know how to better phrase the title, please do so. Thanks!

CC @DanTup

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions