-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
tempname() fails when NVIM_APPNAME is set to subdirectory #23056
Labels
bug
issues reporting wrong behavior
Comments
as of 0.9, |
glacambre
added a commit
to glacambre/neovim
that referenced
this issue
Apr 20, 2023
glacambre
added a commit
to glacambre/neovim
that referenced
this issue
Apr 20, 2023
glacambre
added a commit
to glacambre/neovim
that referenced
this issue
Apr 20, 2023
glacambre
added a commit
to glacambre/neovim
that referenced
this issue
Apr 20, 2023
glacambre
added a commit
to glacambre/neovim
that referenced
this issue
Apr 20, 2023
glacambre
added a commit
to glacambre/neovim
that referenced
this issue
Apr 20, 2023
glacambre
added a commit
to glacambre/neovim
that referenced
this issue
Apr 20, 2023
glacambre
added a commit
to glacambre/neovim
that referenced
this issue
Apr 20, 2023
glacambre
added a commit
to glacambre/neovim
that referenced
this issue
Apr 20, 2023
glacambre
added a commit
to glacambre/neovim
that referenced
this issue
May 7, 2023
glacambre
added a commit
to glacambre/neovim
that referenced
this issue
May 7, 2023
glacambre
added a commit
to glacambre/neovim
that referenced
this issue
May 7, 2023
dundargoc
pushed a commit
that referenced
this issue
May 28, 2023
2 tasks
justinmk
pushed a commit
to RoryNesbitt/neovim
that referenced
this issue
Sep 27, 2023
Problem: NVIM_APPNAME does not allow path separators in the name, which means relative paths can't be used: NVIM_APPNAME="neovim-configs/first-config" nvim NVIM_APPNAME="neovim-configs/second-config" nvim Solution: - Let NVIM_APPNAME be a relative path. Absolute paths are not supported. - Also change tempname() to replace "/" with "%" instead of "_", for consistency. fix neovim#23056 fix neovim#24966
justinmk
pushed a commit
to RoryNesbitt/neovim
that referenced
this issue
Sep 27, 2023
Problem: NVIM_APPNAME does not allow path separators in the name, so relative paths can't be used: NVIM_APPNAME="neovim-configs/first-config" nvim NVIM_APPNAME="neovim-configs/second-config" nvim Solution: Let NVIM_APPNAME be a relative path. Absolute paths are not supported. fix neovim#23056 fix neovim#24966
justinmk
pushed a commit
to RoryNesbitt/neovim
that referenced
this issue
Sep 27, 2023
Problem: NVIM_APPNAME does not allow path separators in the name, so relative paths can't be used: NVIM_APPNAME="neovim-configs/first-config" nvim NVIM_APPNAME="neovim-configs/second-config" nvim Solution: Let NVIM_APPNAME be a relative path. Absolute paths are not supported. fix neovim#23056 fix neovim#24966
justinmk
pushed a commit
to RoryNesbitt/neovim
that referenced
this issue
Sep 27, 2023
Problem: NVIM_APPNAME does not allow path separators in the name, so relative paths can't be used: NVIM_APPNAME="neovim-configs/first-config" nvim NVIM_APPNAME="neovim-configs/second-config" nvim Solution: Let NVIM_APPNAME be a relative path. Absolute paths are not supported. fix neovim#23056 fix neovim#24966
justinmk
pushed a commit
to RoryNesbitt/neovim
that referenced
this issue
Sep 27, 2023
Problem: NVIM_APPNAME does not allow path separators in the name, so relative paths can't be used: NVIM_APPNAME="neovim-configs/first-config" nvim NVIM_APPNAME="neovim-configs/second-config" nvim Solution: Let NVIM_APPNAME be a relative path. Absolute paths are not supported. fix neovim#23056 fix neovim#24966
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
When
NVIM_APPNAME
contains a subdirectory, tempname() fails to return anything. For example, I store all of my nvim configs in$HOME/nvim-profiles
and use an alias to run nvim with the theNVIM_APPNAME
variable set. However, any plugins that rely ontempname()
to generate a temporary directory are not able to run properly.Before
NVIM_APPNAME
, I just set the variousXDG_HOME
variables using the following shell script, and everything worked fine:Shell Script
Steps to reproduce
NVIM_APPNAME="TestVim" nvim
tempname()
returns a temporary directory pathExpected behavior
I would expect
tempname()
to return the path to a temporary directory:Interestingly enough, calling the alias in the
~/.local/state
directory allows tempname() to return a directory. No clue why this happens.Neovim version (nvim -v)
NVIM v0.10.0-dev-46+ge23c6ebed
Vim (not Nvim) behaves the same?
no
Operating system/version
macOS 13.3
Terminal name/version
Kitty 0.27.1
$TERM environment variable
xterm-kitty
Installation
bob
The text was updated successfully, but these errors were encountered: