Skip to content
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

Frequent overwrite warnings while editing 3-way #43

Open
adamwight opened this issue May 10, 2017 · 1 comment
Open

Frequent overwrite warnings while editing 3-way #43

adamwight opened this issue May 10, 2017 · 1 comment

Comments

@adamwight
Copy link

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:

  • Clone github repo from floobits browser.
  • Clone repo using PHPStorm and join the floobits workspace.
  • Join workspace from web editor.
  • Join workspace from nvim, using the remote URL.
  • Make edits in nvim.
  • Switch to the web editor, then back to nvim.

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
Copy link
Author

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

  • Rename the repo at the cached path, in this case mv ~/PhpstormProjects/proj1 to a new location.
  • Restart nvim and issue :FlooJoinWorkspace https://floobits.com/adamwight/photo-booth/
  • You will be prompted to enter a path:

Save workspace files to: /home/you/proj1

  • Enter a new path that won't conflict with IntelliJ or your secondary editor.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant