apollographql / apollographql/apollo-tooling
Output absolute paths in error messages to support terminals with an integrated cmd-click (open-in-editor) behavior
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 460
- PR merge metrics
- No merged PRs in 30d
Description
Running `apollo client:codegen --target typescript` gives output like
```
⠇ Loading Apollo Project
Generating query files
.../apps/graph/UseMenuLibrary/UseMenuLibrary.ts: Cannot query field "title" on type "Menu".
...
```
when a query with a type error is present. If the absolute path to file was used I could use cmd-click to navigate directly to the above file to fix the problem ...
Contributor guide
Research direction
Start by running `apollo client:codegen --target typescript` with a query type error and inspect where the reported file path is formatted. Update the output so the path is absolute, then rerun the command and verify that the error remains actionable for terminal cmd-click navigation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, typescript
- Domain
- cli, developer-experience
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100