Skip to content

Show locations relative to the current directory - #84

Merged
bbatsov merged 1 commit into
mainfrom
relative-reference-paths
Nov 6, 2026
Merged

bbatsov merged 1 commit into
mainfrom
relative-reference-paths

Conversation

@bbatsov

@bbatsov bbatsov commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

,refs and where printed absolute paths, which wrapped in the terminal. Locations in text now come relative to the directory neorepl runs in, as test failure headings already did. edn and JSON keep them absolute, so MCP's structured content does too, while its text is relative to where the MCP server started.

@bbatsov
bbatsov force-pushed the relative-reference-paths branch from 696beeb to 5953abd Compare November 6, 2026 09:34
where, refs and deps printed the absolute paths the server gives, which
for a project a few directories deep wrap in the terminal and repeat
what the current directory already says. Test failure headings were
relative already, so location-text, which every file:line:column in
text goes through, now makes them all relative, check's and eval
--line's errors included. edn and JSON keep absolute paths, and so do
files outside the directory, everything when the directory is a root,
and what isn't a path, like a jar: URL or <stdin>, which java.io.File
can't take on Windows.
@bbatsov
bbatsov force-pushed the relative-reference-paths branch from 5953abd to cba1a2a Compare November 6, 2026 18:36
@bbatsov
bbatsov merged commit 0023254 into main Nov 6, 2026
20 checks passed
@bbatsov
bbatsov deleted the relative-reference-paths branch November 6, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant