trufflesuite / ganache-ui

Personal blockchain for Ethereum development
https://www.trufflesuite.com/ganache
MIT License
4.67k stars 806 forks source link

System Error when running Ganache 2.0.0 on win32 #1184

Closed avinanakarmi closed 5 years ago

avinanakarmi commented 5 years ago

I tried to create a new work space in Ganache and it said this when i added a project and saved the workspace.

PLATFORM: win32 GANACHE VERSION: 2.0.0

EXCEPTION:

SyntaxError: Unexpected token k in JSON at position 0
    at JSON.parse (<anonymous>)
    at Pipe.channel.onread (internal/child_process.js:468:28)
OnlyOneJMJQ commented 5 years ago

Same as #1188

OnlyOneJMJQ commented 5 years ago

Hi @avinanakarmi, can you provide more context as to when the error occurred? Thanks!

avinanakarmi commented 5 years ago

I installed the Ganache Windows App and tried to create a new work-space. When i add a project i.e. truffle-config.js file and save work-space, i get the fore mentioned error.

davidmurdoch commented 5 years ago

@avinanakarmi, Do you mind sharing your truffle config here?

darccio commented 5 years ago

I ran into this same error. Please find my truffle-config.js in this gist: https://gist.github.com/imdario/be9821fa2ec58de40bf6b8b79f13f7a0

This config was generated using truffle init and it wasn't edited in any way.

davidmurdoch commented 5 years ago

@imdario I was unable to reproduce with the supplied truffle-config.js. Are you able to share your entire project?

darccio commented 5 years ago

Actually, I just did these steps:

mkdir Greeter
cd Greeter
truffle init

That's all. Truffle's version is v5.0.10.

davidmurdoch commented 5 years ago

@imdario, what version of node does node --version return and what OS are you running?

avinanakarmi commented 5 years ago

Thank you for your response.

I have already solved the issue. My account in MetaMask was in private mode. I switched it off n the problem was solved.

On Wed, Apr 3, 2019, 8:48 PM David Murdoch notifications@github.com wrote:

@imdario https://github.com/imdario, what version of node does node --version return and what OS are you running?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/trufflesuite/ganache/issues/1184#issuecomment-479528584, or mute the thread https://github.com/notifications/unsubscribe-auth/AgjS29Yed-7LF1rtDq848u2kker7p2MAks5vdMKtgaJpZM4cMgKu .

davidmurdoch commented 5 years ago

@avinanakarmi interesting! This is still a bug in Ganache we'll get fixed, as metamask connecting in private mode shouldn't crash it! Thanks!

davidmurdoch commented 5 years ago

@avinanakarmi I can't reproduce in private mode. Are there any other steps I should take?

darccio commented 5 years ago

@davidmurdoch It returns v10.7.0. I upgraded and tested against 10.15.3 LTS and it just worked.

I also checked my MetaMask settings and it doesn't have private mode activated.

davidmurdoch commented 5 years ago

This should now be fixed in our latest beta: https://github.com/trufflesuite/ganache/releases/tag/v2.0.1-beta.0 Let me know if you have any issues or if the fix doesn't work for you.