-
Notifications
You must be signed in to change notification settings - Fork 9
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
Install VSCodium and make host .application file #86
base: main
Are you sure you want to change the base?
Conversation
justinmichaud
commented
Jan 16, 2025
- Work around lldb python issues
- Install VSCodium by default
- Add helpful clangd default settings
- Make VSCode .application file by default
"editorWhitespace.background": "#FF0000" | ||
}, | ||
"terminal.integrated.allowChords": false, | ||
} |
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.
Some of these are pretty arbitrary. I like the clangd.arguments
but maybe lets move this to a different PR to discuss.
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.
The clangd and fg/bg colours are important for our style guidelines, but I removed the rest.
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.
Oh you just mean to more easily visualize whitespace.
I've never needed that and don't think I'd want it by default. I'll check how it looks.
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.
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.
Oh shoot, it doesn't look like that for me. It is only supposed to display trailing whitespace
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.
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.
Some other setting is involved. It would be best to keep these PRs small, I'd remove this change here and it can be discussed on its own.
728c692
to
f5cd9f4
Compare
Thank you for the review, everything has been updated! |
- Add helpful clangd default settings - Make VSCode .application file by default
f5cd9f4
to
3e1d171
Compare
install_extension() { | ||
|
||
sudo chown "${USER}" "${HOME}/.config" |
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.
How would .config be owned by a different user?
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.
Maybe this was an idiosyncrasy of my setup, let's remove it and see if it comes up again
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.
This is needed if you run this script from your firstrun script. It seems it runs as root. I guess I can change my firstrun script to run as the container user
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.
What I said makes no sense, since we use $USER here
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.
It looks like systemd makes the config path? At the very least, some files in ~/.config/systemd appear to be owned by root.
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.
This is needed if you run this script from your firstrun script. It seems it runs as root. I guess I can change my firstrun script to run as the container user
It very explicitly runs as your user:
su "${container_user_name}" --group="${container_group_name}" --command="${user_home}/.wkdev-firstrun" |
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.
It looks like systemd makes the config path?
While podman
supports systemd, we don't use it, and I'd expect systemd knows nothing at all about the containers home.
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.
Yeah, this is confusing to me, although .config is definitely owned by root. In particular, so is .config/systemd, which seems to come from nowhere. Do you have any ideas how I can start debugging this?