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

Issue with using VScode as the default profile editor #204

Open
yakutovicha opened this issue Feb 19, 2024 · 3 comments
Open

Issue with using VScode as the default profile editor #204

yakutovicha opened this issue Feb 19, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@yakutovicha
Copy link
Member

A colleague of mine tried to update a profile configuration with VScode as a default editor.
Unfortunately, any time she would run:

aiidalab-launch profile edit <name>

She would get an empty toml file to edit. After switching back to vim:

export VISUAL=vim
export EDITOR="$VISUAL"

Things worked fine

@yakutovicha yakutovicha added the bug Something isn't working label Feb 19, 2024
@yakutovicha
Copy link
Member Author

After some googling I found that adding "--wait" option resolves the issue for the VScode. We might need to add this option to aiidalab-launch as well.

@danielhollas
Copy link
Contributor

Oh, interesting observation, good to know.

It seems based on that StackOverflow answer that the fix needs to be done on the "shell" level?
In aiidalab-launch we use click.edit() for this functionality. It seems it doesn't allow passing additional parameter, but allows setting environment variables. I wonder if that is an option for VSCode?

https://click.palletsprojects.com/en/8.1.x/api/#click.edit

@yakutovicha
Copy link
Member Author

Sorry, @danielhollas, I don't have answers to those questions at the moment. I made this issue only for the sake of reporting. I might come to this issue later, for now I do not have time to investigate it further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants