ethereum / remix-desktop

Remix IDE desktop
1.02k stars 264 forks source link

Remix is spooked by its own changes #150

Open mushketyk opened 2 years ago

mushketyk commented 2 years ago

The desktop version of Remix has an odd behavior when editing files in a local git repository.

If I edit a smart contract code, after a few edits it displays the following modal page complaining about the file that I've edited:

image

This behavior is quite consistent and I get this error every time after I make a few changes. If I click on any of the buttons, the modal closes, but it then reappears again when I make a few more changes.

This happens every few typed characters and is extremely disruptive.

There are no other processes editing this file in the background. So the only explanation that I can think of is that Remix does not recognize its own changes and displays this warning for its own edits.

How to reproduce

  1. Open Remix locally.
  2. Click "Connect to Localhost"
  3. Open a folder with a git repository
  4. Select workspace "localhost"
  5. Try to make a few edits in a smart contract

Software versions

Remix version: Version 1.3.4 (1.3.4.825) OS: macOS 12.0.1 (21A559) Apple M1 Max

mushketyk commented 2 years ago

Here is an example of how it happens:

https://user-images.githubusercontent.com/592286/180666804-101d74e1-8928-4f4b-a9fe-36bbd8870362.mov