Closed ssh352 closed 6 months ago
I can't replicate the issue with the development version of Neovim. Are any other warning messages displayed by :messages
? You could try to completely remove Nvim-R
and R.nvim
and, then, install Nvim-R
again (and never have both installed at the same time).
I can't replicate the issue with the development version of Neovim. Are any other warning messages displayed by
:messages
? You could try to completely removeNvim-R
andR.nvim
and, then, installNvim-R
again (and never have both installed at the same time).
I tried it but the issue persist. there are no other warning messages.
Here is what I found
I cd to /usr/local/bin
, then ./nvim ~/a.R
, the issue is gone
then I cd ~
and nvim a.R
, the issue appears again.
I am on MacOS and nvim is installed via homebrew. Luckily R.nvim works without any issue. I use NVIM_APPNAME to separate my Lua (R.nvim) and vim script (nvim-R) configurations. They are separated and won't affect each other.
It turns out I have a file r.lua
in my home directory, where a.R
is. I removed it and the issue is gone.
So it seems that nvim-r is picking up this r.lua file unintentionally.
It could be reproduced by putting a r.lua
file together with a a.R
file. If you open a.R
you will get an error. If you you remove r.lua
, there is no error.
I can replicate the issue. Even an empty r.lua
causes problems. However, I guess it's a Neovim bug and not something to be fixed in Nvim-R
.
yeah it may be related to how vim script works. closing since we found the root cause.
I upgrade to homebrew neovim 0.10 version and got the following error. RCreateStartMaps
RCreateStartMaps is defined in Nvim-R/R/common_global.vim, for some reason it is not sourced correctly. Please advise.