Compiler Error: : - Command failed: soul generate --wasm --output=temp/45120650bcdafbb9029d7e6b67c92fea-1ba88b4d-3880-41c4-ac05-166f62277660/out.wasm temp/45120650bcdafbb9029d7e6b67c92fea-1ba88b4d-3880-41c4-ac05-166f62277660/GainSlider.soulpatch terminate called after throwing an instance of ‘choc::value::Error’ Aborted
Can someone explain what’s going wrong and how to fix it?
If you’re pasting code, please surround it with triple-backticks or use the “preformatted text” button to make it readable on the forum!
I tried copying this code straight into the website and it works just fine… this is what I did:
I’d be keen to know what you managed to do to make it cause that internal error, but it’s not obvious from what you said here. If you can share a link to the website when it’s showing the error, we’ll certainly take a look at that.
Well the patch Jules posted above runs for me fine in Firefox, and I can modify the code and re-compile and that also runs fine. It would be helpful if you pasted a particular soul.dev link to the thing that doesn’t compile rather than pasting the code here, as there are other problems that might be going on and the link will allow us to recreate your problem
OK, thanks - this has nothing to do with the soul code itself, it’s just because the .soulpatch file has a line "description": null, in it - we already fixed that bug, I guess it just hasn’t rolled out to the webserver yet. If you want to get your code working, just delete that line, or change it to be a string instead of null and it’ll be fine.