Skip to content

Absolute File Paths In Error Reports #2082

@beeequeue

Description

@beeequeue

In monorepos you often run builds in different directories at the same time for efficiency, and it would be nice if there was an option to print the absolute path to files with errors so it's easier to Ctrl+click the links to open them as relative paths don't work.

It would also allow for using GH Action problem matchers in monorepos as now when a path is matched in an error it can't find the file, since it's relative to the directory it ran in and not the root.

e.g.

✘ [ERROR] No matching export in "../shared/src/index.ts" for import "SOURCE_FILES_FOLDER"

    /home/bq/dev/project/packages/cli/src/commands/run.ts:8:2:
      8 │   SOURCE_FILES_FOLDER,
        ╵   ~~~~~~~~~~~~~~~~~~~

1 error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions