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

Install VSCodium and make host .application file #86

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

justinmichaud
Copy link
Contributor

  • Work around lldb python issues
  • Install VSCodium by default
  • Add helpful clangd default settings
  • Make VSCode .application file by default

scripts/container-only/wkdev-setup-vscode Outdated Show resolved Hide resolved
scripts/container-only/wkdev-setup-vscode Show resolved Hide resolved
scripts/container-only/wkdev-setup-vscode Outdated Show resolved Hide resolved
scripts/container-only/wkdev-setup-vscode Show resolved Hide resolved
scripts/container-only/wkdev-setup-vscode Outdated Show resolved Hide resolved
"editorWhitespace.background": "#FF0000"
},
"terminal.integrated.allowChords": false,
}
Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to vote no on this, I think it would annoy most people.

image

Copy link
Contributor Author

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2025-01-27T13:27:24,752795531-07:00

Copy link
Member

@TingPing TingPing Jan 29, 2025

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.

scripts/container-only/.wkdev-init Outdated Show resolved Hide resolved
scripts/container-only/wkdev-setup-vscode Outdated Show resolved Hide resolved
@justinmichaud
Copy link
Contributor Author

Thank you for the review, everything has been updated!

- Add helpful clangd default settings
- Make VSCode .application file by default
install_extension() {

sudo chown "${USER}" "${HOME}/.config"
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Contributor Author

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

Copy link
Contributor Author

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

Copy link
Contributor Author

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.

Copy link
Member

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"

Copy link
Member

@TingPing TingPing Jan 29, 2025

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.

Copy link
Contributor Author

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?

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.

2 participants