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.49k stars 970 forks source link

no way to re-import a file from github.. #228

Open pussinboot opened 5 years ago

pussinboot commented 5 years ago

.. other than by re-opening remix / clearing localStorage.

I mistakenly imported the latest SafeMath.sol from openzeppelin's contracts repo, which required a later version of the solidity compiler than the one I was working with in my code. Then, when I tried to import https://github.com/OpenZeppelin/openzeppelin-contracts/blob/[proper commit hash]/contracts/math/SafeMath.sol, nothing happened.

With no way to delete the imported source file from the file explorer I was stuck. The current workaround (other than being more careful with imports) is to refresh the page, losing your current state.

possibly related issue: ethereum/remix-ide#2332

AndreiD commented 5 years ago

what do you mean losing the current state ? isn't it saved in the local storage ?

pussinboot commented 5 years ago

things like

Aniket-Engg commented 2 months ago

@yann300 I think this has become possible now, right?