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

project.py: request users to stop IDEs before running west init #703

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/west/app/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,16 @@ def __init__(self):
branch will be used, if it exists.

With neither, -m {MANIFEST_URL_DEFAULT} is assumed.

Warning: 'west init' renames and/or deletes temporary files inside the
workspace being created. This fails on some filesystems when some
development tool or any other program is trying to read/index these
temporary files at the same time. For instance, it is required to stop
Visual Studio Code before running 'west init` on the Windows NTFS
filesystem. Find other, similar "Access is denied" examples in west
issue #558.
Comment on lines +162 to +163

Choose a reason for hiding this comment

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

Suggested change
filesystem. Find other, similar "Access is denied" examples in west
issue #558.
filesystem. Find other, similar "Access is denied" examples in
https://github.com/zephyrproject-rtos/west/issues/558.

Most terminals make links clickable these days, so this is worth spelling out, IMO

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I considered this but I tried to minimize the length as much as possible. In fact I was a bit reluctant to add this at all because a help text should be really concise and not turn into a changelog or bug list. However this particular bug seems frequent, fatal and totally unfixable.

This is not required on inode-based, Linux filesystems that wait and
finalize the deletion until there is no concurrent user left.
''',
requires_workspace=False)

Expand Down
Loading