FAQ

Supported devices & Browsers

Q: What browsers will Remix work on?

A: We support Firefox, Chrome, and Brave. We do not test or look for errors in Safari, Edge or other browsers.

Q: Will Remix work on a tablet or mobile device?

A: We do not support the use of Remix on tablets or mobile phones.

General

Q: Are there keyboard shortcuts in Remix?

A: Yes - here is the list of keyboard shortcuts:

Ctrl+S: Compiles the active Solidity file

Ctrl+Shift+S: Compiles a Solidity file and runs a script when the script is displayed in the editor.
(go here for more info about this functionality)

Ctrl+Shift+F : Opens the File Explorer

CTRL+Alt+F : Formats the code in the current file

Ctrl+Shift+A : Opens the Plugin Manager

Solidity compiler

Q: Error: compiler might be in a non-sane state

error: "Uncaught JavaScript exception: RangeError: Maximum call stack size exceeded.
The compiler might be in a non-sane state, please be careful and do not use further compilation data to deploy to mainnet.
It is heavily recommended to use another browser not affected by this issue (Firefox is known to not be affected)."

A: Old versions of solidity compiler had this problem with chrome. Please change the compiler version in Solidity Plugin to the newer one or use another browser.

Q: I’m getting an issue with Maximum call stack exceed and various other errors, can’t compile.

A: Try a different browser or a newer solidity compiler version.

Q: How to verify a contract that imports other contracts?

A: The verification tool does not recursively go through the import statements in a contract. So can only verify a ‘flattened’ contract.

A contract can be ‘flattened’ by right-clicking on it in the File Explorer and choosing the Flatten option. This will assemble all the original code as well as the imported code into a single file.

Deploy & Run

Q: I am using an Infura endpoint in my app, but when I try to deploy against that endpoint in Remix IDE selecting “External HTTP Provider” and putting my endpoint in, it’s telling me that it can’t connect

A: If the endpoint you are using is http, it won’t work.

Q: Where is deploy button?

A: It’s in the Deploy & Run Transactions module.

Q: How to pass a tuple to a public function in Remix?

A: Pass it as an array [].

Q: How to input a struct as input to a parameter of a function in the Deploy & Run module?

A: For inputting a struct, just like a tuple, pass it in as an array []. Also you need to put in the line:

pragma experimental ABIEncoderV2; at the top of the solidity file.

For example, here’s a solidity file with a struct as an input parameter.

pragma solidity >=0.4.22 <0.6.0;
pragma experimental ABIEncoderV2;

contract daPeeps {
    struct Peep {uint a; uint b;} // declaration of Peep type
    Peep peep; //declaration of an object of Peep type

    constructor () public
    {
        peep.a = 0; // definition/initialisation of object
        peep.b = 0; //
    }

    function initPeepToPeep(Peep memory i) public payable {
        peep.a = i.a;
        peep.b = i.b;
    }
    function setPeep(uint a, uint b) public payable {
        peep.a = a;
        peep.b = b;
    }

    function getPeep() public view returns(Peep memory)
    {
        return peep;
    }
}

The input of initPeepToPeeps takes a struct. If you input [1,2] the transaction will go through.

Plugin Developers

Q: Where do plugin developers go with their questions?

A: First, join our Discord server and then go to the development-plugin channel.

Analytics

Q: What information does Remix save when Matomo Analytics is enabled?

A: We want to know:

  • Which plugins get activated & deactivated

  • If users check the box to publish a contract’s metadata when deploying

  • Which themes are used/used most/not used at all

  • The usage of the links to documentation

  • On the homepage, which file importing buttons are used

Q: Is it opt-in or opt-out?

A: We use Matomo as an opt-in analytics platform.

Q: Where is the info stored? Is the info shared with 3rd parties?

A: All data collected through Matomo is stored on our server. No data is given to third parties.

We respect your privacy and do not collect nor store any personally identifiable information (PII).

Q: What does Remix do with this info?

A: Our goal is to understand how many users we have, what plugins people are using, what is not getting used, what is not being used to its full potential.

With this understanding, we can make adjustments to the UI as well as providing more tips and documentation. It’s a way of getting constant anonymous feedback from our users.

Q: After I agree opt-in, can I change my mind?

A: You can turn off or on Matomo in the Settings panel. There are no consequences for not opting-in or opting-out.