Floobits / floobits-neovim

Floobits plugin for NeoVim
Apache License 2.0
167 stars 7 forks source link

Frequent overwrite warnings while editing 3-way #43

Open adamwight opened 7 years ago

adamwight commented 7 years ago

I'm seeing errors every time I switch between a web editor and nvim, with a third IntelliJ editor idling in the background.

WARNING: The file has been changed since reading it!!!
Do you really want to write to it (y/n)?

Steps to reproduce:

It looks like nvim is able to detect that the local clone is in ~/PhpstormProjects, and edits there. My wild guess is that the local processes are contending for access or modification time.

This is an edge case, but not totally unreasonable--I can imagine wanting to edit in nvim and PHPStorm at the same time to take advantage of their strengths, and meanwhile connecting to a group Floo.

It would be fine to clone two separate repos and use the local editors on different copies, using Floo for synchronization--but floobits-neovim seems to insist on reusing PHPStorm's checkout. I haven't figured out how nvim discovers that local path.

adamwight commented 7 years ago

I tried this simple workaround, but still unable to set things up with two local editors:

The gotcha is that PHPStorm will now use nvim's project directory when trying to re-join the workspace.