-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Tempdir code tries writing to root owned path #124
Comments
I'm experiencing this issue as well, even after updating to e08bb0b. I can see why e08bb0b doesn't fix the issue. On my system,
I think the slash was added in the wrong place, i.e. vista.vim should assume that TMPDIR does not end in a slash, and prepend a slash to the route being added to it. Hopefully that makes sense. |
I have pushed a commit to catch the error and fall back to the safe |
When running Error detected while processing function vista#[24]..vista#sidebar#Open[12]..vista#executive#ctags#Execute[2]..<SNR>168_Dispatch[12]..<SNR>168_Execute[3]..<SNR>168_ApplyExecute[1]..<SNR>168_IntoTemp:
line 38:
E121: Undefined variable: tmp
E116: Invalid arguments for function writefile
E15: Invalid expression: writefile(lines, tmp) == 0 |
@petobens Can you provide a minimal vimrc? I can't reproduce. |
That commit fixes the issue for me. |
Same issue as @petobens, |
Thanks @petobens @joshuarubin . Please pull the latest commit, should be fixed. |
looks good, thx |
Thanks! |
The new tempdir code in 310ca5b is trying to access a root owned path using Vim 8.1 in linux.
The problem is a missing / between the temp-directory and sha-hash so the paths end up in the form "/tmp3ab83353affetcetc"
The following patch appears to solve it for my environment which has $TMPDIR set to '/tmp'
The text was updated successfully, but these errors were encountered: