Problems compiling w/ contract editor


A simple solidity contract:

pragma solidity ^0.4.0;
contract Counter {
int private count = 0;
function incrementCounter() public {
count += 1;
function decrementCounter() public {
count -= 1;
function getCount() public constant returns (int) {
return count;

I get the following error when I try to compile with Strato Contract Editor:

(line 5, column 40):
unexpected “\r”
expecting string character or end of string

I’m able to compile on


What’s your dev environment? Sometimes, we see the issue in Windows. The workaround usually is to use a windows editor to save the file in a unix format and then upload. If you have some time, we can go through it together.


It is in fact Windows so I used notepad++ to format line endings of my file using Unix/OSX. I uploaded the file and it now compiles properly. Thank you for your help.


On second thought I’m still having a heck of a time compiling solidity contracts on Strato that do compile on Remix even after saving and uploading in unix format. Maybe I could schedule a call to discuss any details I’m missing. Please advise on how best to arrange a meeting. Thank you.


We can send you a calendar to book something. Before that, would you please let us know what problems you currently have when compiling? Any background info that may be helpful in this case, e.g., use case, contract size, etc.?