-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
When running the relay compiler with errors, theres a few problems with the outputted erroring filepaths. They are not critical or "wrong", but cause inconvenience when attempting to open the problematic line (especially in vscode). Here's an example output:
[ERROR] Compilation failed.
[ERROR] Unable to run relay compiler. Error details:
Failed to build:
- Validation errors:
- The type `Company` has no field `metric`. Did you mean `metrics`?:client/components/console/metrics_catalog/MetricPageInsightsCard.tsx:495:501
- Theres no space between "Did you mean?" and the file link. This causes vs-code to think the filepath starts with the "?", so cmd-clicking the file in terminal fails
- Theres a colon before the path; I'm not sure why this is here (to indicate its relative to the root?), but again it is included in the path opened by VSCode upon cmd-clicking, causing it to fail to find any files
- The numbers after the path appear to be character indices within the file, whereas vscode expects the format
<path>:<linenumber>:<character_index_within_line>
. I'm not sure how standard this format is, but it would be very convenient within vscode at least to adopt this format.
Metadata
Metadata
Assignees
Labels
No labels