-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Some directories are separate from --user-data-dir #6834
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
Comments
Might be related, or a separate issue. I'm not setting --user-data-dir but seeing the logs look like it's correct though, and that file/dir actually exists. My thought is that these directories should exist as |
Oh weird yeah I got this issue once but then I could never reproduce it. It is especially weird because we are not adding any date time to the file path so I have no idea where it is coming from. Are you on the latest version of code-server? Do you have any |
Yep, latest. I am running with args |
I was going to experiment with |
I noticed that all the logs that are left over are 10M, taking a quick look at the docs, I think the first param for
So I think with trace on, logs have just been getting big enough to be rotated and when they're rotated rfs is prepending the time/date to the whole path, rather than the filename since that's what was passed in. |
Ohhh! Really good find!!! I reproduced by lowering the limit. Pushed up a fix here: d431c9c Thank you for figuring this out. It will make it into the 4.90.3 release today. |
Steps to Reproduce
Set
--user-data-dir
.Expected
Everything should move to that directory.
Actual
Some things move, but not:
Workaround
You can set xdg data home environment variable instead of using the flag.
Notes
Changing this could be considered be a breaking change? If someone was setting
--user-data-dir
but then relying on these files being in the other location. Not 100% sure how best to proceed. Maybe check if they exist, and if not use the new location, but even that could be breaking.Maybe introduce a new flag and deprecate
--user-data-dir
.The text was updated successfully, but these errors were encountered: