Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot destructure property 'code' of '(intermediate value)' as it is null. #7

Open
ConfigCpuTimer opened this issue Mar 17, 2020 · 3 comments

Comments

@ConfigCpuTimer
Copy link

Sorry for my poor English. I just learn to build a dApp within vite, but it's difficult to start with the extension. The guide on your website https://vite.wiki/zh/tutorial/contract/debug.html#%E7%BC%96%E5%86%99%E5%90%88%E7%BA%A6%E4%BB%A3%E7%A0%81 told me to execute command soliditypp: Generage HelloWorld.solpp first but responded nothing. So I wrote a copy of the example showed in guide.

`pragma soliditypp ^0.4.2

contract HelloWorld {
event transfer(address indexed addr, uint256 amount);
onMessage SayHello(address addr) payable {
addr.transfer(msg.tokenId, msg.amount);
emit transfer(addr, msg.amount);
}
}`

Then I got an error.

TypeError: Cannot destructure property 'code' of '(intermediate value)' as it is null. at SolidityppDebugSession.<anonymous> (c:\Users\Kyousuke Ayukawa\.vscode\extensions\vitelabs.soliditypp-0.4.2\out\debugSession.js:99:21) at Generator.next (<anonymous>) at fulfilled (c:\Users\Kyousuke Ayukawa\.vscode\extensions\vitelabs.soliditypp-0.4.2\out\debugSession.js:4:58)

Could you please help me fix it? I am literally impressed by the features of block-lattice, and a better guide will be very helpful to developers. Thanks.

@ConfigCpuTimer
Copy link
Author

Problem solved. I reinstalled the plugin and found another compile error. There should not be a space in the direction, otherwise compile will fail. Hope in future version it could be fixed, thanks.

@ConfigCpuTimer
Copy link
Author

Space in directory still cause a failure in 0.6.1 version, could you please fix it?

@osdio
Copy link
Contributor

osdio commented Nov 11, 2020

I'm ok on my mac with "Space in directory". Can you have a try v0.7.1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants