ethereum / remix-project

Remix is a browser-based compiler and IDE that enables users to build Ethereum contracts with Solidity language and to debug transactions.
https://remix-ide.readthedocs.io
MIT License
2.36k stars 888 forks source link

Workflow with local files: Automatically reload when changed on disk #292

Open tjanson opened 5 years ago

tjanson commented 5 years ago

I’ve started a local remix-ide instance and opened a Solidity file via remixd on localhost. When the file on disk changes (e.g., editing it), Remix displays the following dialog:

This file has been changed outside of Remix IDE.
    > Keep the content displayed in Remix
    > Replace by the new content

I’d like this to always accept the file on disk.

I’m sure I can dig into the UI code and disable the pop-up, but I’m wondering whether this is perhaps already supported, or whether there’s a better, established workflow for externally editing the files (in a traditional editor / IDE) while using Remix to quickly deploy and try them out.

yann300 commented 5 years ago

There's no way for now, but should be fairly easy to add

tjanson commented 5 years ago

I see now that this is essentially a duplicate of ethereum/remixd#8, and I’ve encountered the same issue: both my IDE (IntelliJ IDEA) and remix-ide autosave the file, leading to a conflict.

In order to get the workflow I (& @skilesare, @ajsantander) want

I guess the latter could be achieved by either

As a quick and dirty fix, I’ve disabled the set and the dialog. So far the only remaining issue I’ve encountered is that newly created local files don’t show up in Remix IDE.

aspiers commented 3 years ago

Has the behaviour changed since this was reported? I seem to remember this used to work (albeit with the prompts mentioned above) but now it seems that remixd completely ignores any changes I make with my IDE, and I can't find any way to make it notice.

Aniket-Engg commented 1 year ago

@aspiers This should be working fine now. can you please check it with latest remixd v0.6.11?