-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
vscode.fhs: add buildFHSUserEnv wrapped version #99968
Conversation
0a7bba3
to
41a65db
Compare
This opens and mostly works for me, although unfortunately the UserEnv also applies to vscode's integrated terminal, which would basically break that feature for me. Not sure if that can be fixed. |
I'd like to keep using the unwrapped version. Would it be possible to make this overridable? |
it's on the passthru |
I'm in no hurry to merge this, and it could probably be improved to support the other use cases. Meant for this to be more of a discussion than anything else |
Using the unwrapped version seems good enough for me since I already got my plugins working natively. I wonder if it would be a good idea for discoverability if the unwrapped versions of vscode/vscodium were added to |
the other option would be to expose @buckley310 can you give some steps to repro the terminal breaking? |
I have gcc in my systemPackages, but when I try and compile a C hello-world from the wrapped vscode terminal gcc returns
The bash prompt itself is just the bash default |
I'll try to see what I can do, it would be nice for vscode to "just work" |
41a65db
to
c31a17d
Compare
@buckley310 do you mind trying again. I was able to get my terminal to be similar to my normal terminal |
@Atemu @illegalprime do you mind reviewing the bubblewrap changes? |
c31a17d
to
438ca07
Compare
Bash interaction seems all good now. |
what gcc issues are you having? |
fails with
|
@buckley310 I figured it out, the unwrapped gcc gets put into the environment |
the @buckley310 please try again |
doing |
027eff6
to
803082c
Compare
since I have buildFHSUserEnv sourcing your bash terminal. It should be inheriting from your normal shell |
803082c
to
51210e7
Compare
@jonringer Just in case, I'm not a vscode user. I was only reviewing vscode PR's because it used to be that there was no one else to look at those. |
oh, then thank you for your contributions. Sorry for bothering you :) |
In home manager config in
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/new-users-using-nixos-wrong/9973/38 |
584745f
to
1be31e4
Compare
decided to revive this. You can do
to either have a minimal environment or one with additional tools that you only care to have a available for vscode. Been able to use extensions and the terminal fine |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
56abf05
to
603bae4
Compare
In the current iteration, the existing behavior is preserved. People are able to use the |
I can't say anything about this because I don't use vscode in nix or know to much about bubblewrap. |
I saw you mentioned it as an alternative before but I did not comment that earlier. For discoverability you may want to make it a top-level package instead of a |
Allows for processes which fork to not be immediately killed when the parent process dies.
603bae4
to
992844e
Compare
did both :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Package descriptions can be improved
992844e
to
060d025
Compare
Well, 7 months later, I think this is a good compromise. The original unwrapped workflow hasn't been altered in any fashion, but users now have the option to use extensions freely within vscode. Extensions which require additional dependencies can be added with the |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
If I install |
yes |
Motivation for this change
Extensions commonly use pre-compiled binaries which aren't
aware of the nix store. Using buildFHSUserEnv will allow
for a more "natural" usage of vscode.
EDIT:
To not break users due to FHSUser regressions, I'm instead adding this as a passthru to the original vscode/vscodium flavors.
closes: #73810
closes: #91179
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)