You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It happens when I save nvim session and then reload it. I use NVIM v0.10.0-dev-2016+g5dc0bdfe9, the latest version of projectionist (commit a57b9bf) and have the following config:
After I restart nvim, load my session and am in file /path/to/src/Name.cc (pathes redacted), executing :A command, I get this prompt:
Create alternate file?
1 /path/to/include/Name.h
2 /path/to/src/Name.h
Type number and <Enter> or click with the mouse (q or empty cancels):
This is already a problem, because the file 1 actually exists. If I manually enter the command :e /path/to/include/Name.h, I can open and edit the header file without any problems. But if I select the option 1 from the above prompt, I am landed in a new (!!!) buffer that is empty but has the same file name as existing file. Reloading the new buffer (:e! or :e %) does not work - I am still in that empty buffer... Using :ls, I see that I have 2 buffers now with the same file path:
The buffer with lower id is the real file that has been opened before. The buffer with higher id is the one created by projectionist instead of opening the real file.
The text was updated successfully, but these errors were encountered:
You've redacted a bit too much for me to tell what is going on, but that {dirname|dirname} is setting off alarm bells. I wouldn't be surprised if there's an edge case hiding in there.
But if I select the option 1 from the above prompt, I am landed in a new (!!!) buffer that is empty but has the same file name as existing file.
This is impossible; you're probably missing some difference between the two names. Presumably in the part you redacted.
It happens when I save nvim session and then reload it. I use NVIM v0.10.0-dev-2016+g5dc0bdfe9, the latest version of projectionist (commit a57b9bf) and have the following config:
After I restart nvim, load my session and am in file
/path/to/src/Name.cc
(pathes redacted), executing:A
command, I get this prompt:This is already a problem, because the file 1 actually exists. If I manually enter the command
:e /path/to/include/Name.h
, I can open and edit the header file without any problems. But if I select the option 1 from the above prompt, I am landed in a new (!!!) buffer that is empty but has the same file name as existing file. Reloading the new buffer (:e!
or:e %
) does not work - I am still in that empty buffer... Using:ls
, I see that I have 2 buffers now with the same file path:The buffer with lower id is the real file that has been opened before. The buffer with higher id is the one created by projectionist instead of opening the real file.
The text was updated successfully, but these errors were encountered: