Skip to content

perry check: Print position of error location #129

@acomagu

Description

@acomagu

The problem

I tried perry check with my codebase, and it produces some errors like:

$ perry check app/app.ts
Checking 134 file(s)...
Warning: Dynamic import('./entry/local.js') not fully supported, returning undefined
Warning: Dynamic import('@opentelemetry/auto-instrumentations-node') not fully supported, returning undefined
Warning: Dynamic import('../app.js') not fully supported, returning undefined
Warning: Dynamic import('../app.js') not fully supported, returning undefined
error[U006]: Direct super property access not yet supported, use super.method()

error[U006]: Unsupported binding pattern


Check failed: 2 error(s), 0 warning(s)
Error: Check failed with errors

It doesn't any information about where the problem code is located in my codebase so I couldn't find the line.

Proposed solution

It's better to print the filename / line numbers.

Alternatives considered

Scope

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions