-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Error when using in a multi user setup #1199
Comments
It seems like this line Line 71 in 4f19700
sorin , is trying to save data to.
Since the directory is created with 700 you can change it for example to 777 to allow everyone to write to it. I am not sure if this is correct, what if multiple users are logged in? From my understanding each user is overwriting the data of the other one, if all are using the same prompt. I would change the prompt setup to be unique for each user at
|
@akshayrawat I think there might be something wrong with your system. By default, osx creates a user specific temp directory. You should not be getting any conflicts because $TMPDIR should already be set and be specific to you. Also the fact that the directory that you are trying to create is: I don't know exactly what's going on with your system, but it should be a fairly easy fix. Edit the file:
to:
This will create a per user temporary directory with the correct permissions which should prevent the problem you are seeing (and others you haven't seen yet). |
#1209 - Not sure if this will get merged or not, but I think it's a reasonable fix. |
@jlax47 this does not work for me with Ubuntu 16.04. This also affects the module. |
Hey @donpatrice, #1209 was merged into zsh-users/prezto, the community fork of this repo. zsh-users is an organization dedicated to host Zsh community projects and therefore became the rational home for a community maintained version of prezto. See #1239 for more information on the fork. This is the commit. You may want to migrate over. There are some upgrade instructions, soon to be merged. |
Thank you @paulmelnikow very much for the hint. The commit mentioned does not work for me, I will open an issue on zsh-users. |
The fix was merged yesterday, so I'm closing this issue now. |
So, as it turns out, the fix in #1209 only fixed the issue for login shells. There are a couple ways this could be fixed for non-login shells: see prezto-inactive-community-fork#35 (comment) and prezto-inactive-community-fork#35 (comment). @belak Would you like to reopen this, so we can finish up that discussion here? |
Sure, makes sense. Thanks for following up. |
I think the best method may be to set TMPPREFIX in init.zsh, as that would ensure it's handled properly. |
That would fix TMPPREFIX, which would be good as a minimum since prezto itself depends on it. (Though TMPPREFIX is itself a zsh thing.) That said, the rest of the |
I'm not sure what the best way to handle this would be... I guess this is a bit more complicated than first glance. |
so, what's the official fix? it still happens for me on latest master |
I don't know if there is a "correct" fix for the runcoms. Additionally, I haven't actually used them in a while, so I'm probably not the best person to ask about those. That being said, the sorin prompt should be fixed, as 2f20a80 ensured a unique tmp file is created for each running process and a0541ce ensured that we fall back to /tmp if TMPDIR isn't set. If you're having similar issues with other parts of the code, or you have more info I can use to reproduce this, I'd be happy to look into it further. |
ok, will |
Those commits were merged about a week ago. |
hmmm, but they still happen
|
After pulling did you try in the current shell or a new shell? The current shell would have the old code loaded. One key thing to note: the current code doesn't use a tmp directory named like that. It should be /tmp/sorin-prompt-async-XXXXXXXXXX where the Xs are replaced with random characters. |
in a new shell of course, that's why i entered and no idea who/where |
Ah, I didn't see the new shell call. Sorry about that. Maybe it's loading from a different location than you think it is? |
ok - all i want to know is how to fix this? :) |
It should be fixed on master, as I mentioned... but for whatever reason, however you're loading prezto isn't picking up the new version... which leads me to believe that prezto may be cloned to multiple locations on your system and the one which is actually being used has not been updated. Are your dotfiles posted anywhere? I'd be happy to take a look to see if I can spot anything. |
well, the dotfiles are exactly the defaults you provide in the runcoms directory
|
This is what I see with the default setup:
I realize "it works on my machine" doesn't always mean that the code is correct, but this is how I'm making sure I'm not completely crazy. |
This might be a silly question, but are you on the master branch, or do you have another branch checked out? Also, are you using a custom fork? Your |
aaaaaaaaahhhh, finally solved it myself. i had a little git mess, ignored some files. not reverted that and pulled all over again incl submodules. all good now :) thanks for your help dude! |
Glad you got it figured out! And it sounds like this fixed the error for you, so I'm closing this for now. :D This should be solved, but if anyone runs into this issue please let me know and I can repopen it. |
I get this error when using prezto from a second user (where the first user also uses prezto) on MacOS.
Doing a
chmod a+r+w
for it creates the same problem for the other user.prezto version: latest as of now
zsh 5.2 (x86_64-apple-darwin15.4.0)
The text was updated successfully, but these errors were encountered: