Skip to content

[Bug]: terminal compiler diagnostics with bare filenames have no file link #37070

Closed

Description

@StiensWout

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Open a project's terminal in T3 Code on Linux.
  2. Create main.c containing int main(void) { return missing; } in the project root.
  3. Run gcc main.c.
  4. Ctrl+click main.c:1:25 in the compiler diagnostic.
  5. Compare with compiling gcc ./main.c, whose diagnostic location is clickable.

Expected behavior

The diagnostic opens main.c at line 1, column 25, as the equivalent ./main.c diagnostic does. TypeScript's bare main.ts(42,7): error TS... locations should also retain their position.

Actual behavior

The bare filename has no terminal file link. No editor opens. Unquoted paths containing a separator and quoted filenames work.

Impact

Minor bug or occasional failure. Deterministic for current-directory compiler filenames; users must navigate manually or adjust how they invoke the compiler.

Version or commit

pingdotgg/main at 71adeef080d1a6ee03ddd8fc7493ea5928afed89.

Environment

Linux, Chromium, web client. Desktop uses the same terminal parser. gcc 15.2.0 output independently confirmed by Claude Opus 5.5 during the Terminal Improvement Bug Hunt.

Logs or stack traces

main.c:1:25: error: 'missing' undeclared (first use in this function)

The focused parser reproduction returns [] for that line; the equivalent ./main.c:1:25 control succeeds. The real web terminal scenario fails on base because no editor launch occurs, and passes with the accompanying fix, recording the expected --goto <project>/main.c:1:25 arguments.

Workaround

Invoke the compiler with ./main.c, or navigate to the source file manually.

Activity

  1. added
    vouch:trusted
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions