ceylon-web-ide-backend
ceylon-web-ide-backend copied to clipboard
Shared imports throws exception
- Start from e.g. Hello World app in the Web IDE
- Enable "Advanced" mode
- Enter the following in the
modules.ceylonfile:
shared import ceylon.collection "1.2.0";
.. and then hit "Run".
Expected: "Hello world!" Actual:
error undefined — Translated code could not be parsed:
error undefined — --- TypeError: dep.indexOf is not a function
If I remove shared from the import declaration, no errors occur.
Weird that it only happens in the Web IE, any ideas @chochos ?
As a side effect also the "Run" button becomes permanently disabled, but you can save the project & reload the page to recover.
Off the top of my head, this could be because the generated code is not wrapped in a CommonJS module...