Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print worktree path fo flake folders instead of store path #5425

Open
RonnyPfannschmidt opened this issue Oct 23, 2021 · 2 comments · May be fixed by #5625
Open

print worktree path fo flake folders instead of store path #5425

RonnyPfannschmidt opened this issue Oct 23, 2021 · 2 comments · May be fixed by #5625
Labels
UX The way in which users interact with Nix. Higher level than UI.

Comments

@RonnyPfannschmidt
Copy link

Is your feature request related to a problem? Please describe.

when developing flakes in a git repo, whenever i get a error, the store path is printed instead of the source tree path,
this makes it a pain to click to the filename in a ide, as its always jumping to the errors in the store, instead of the worktree

Describe the solution you'd like

for store paths derived from the current working directory, print the working directory filename if possible

Additional context

$ . build-vm.sh 
warning: Git tree '/home/ronny/Projects/RonnyPfannschmidt/nixos' is dirty
error: syntax error, unexpected '}', expecting ';'

       at /nix/store/cq60cn270jc82ij9fldvrjipsvnvmjiy-source/modules/unfree.nix:7:1:

in that example the local filename is modules/unfree.nix
however when one would click to the path for example in the vscode terminal, one would jump to the store instead of the local file one can actually edit

@edolstra edolstra added the UX The way in which users interact with Nix. Higher level than UI. label Oct 27, 2021
@edolstra
Copy link
Member

Related: #4507

mopleen added a commit to tweag/nix that referenced this issue Nov 22, 2021
@mopleen mopleen linked a pull request Nov 22, 2021 that will close this issue
@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/tweag-nix-dev-update-24/17230/1

@stale stale bot added the stale label Aug 12, 2022
@stale stale bot removed the stale label Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UX The way in which users interact with Nix. Higher level than UI.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants