These are chat archives for ceylon/ceylon-ide-eclipse

7th
Feb 2017
Stéphane Épardaud
@FroMage
Feb 07 2017 12:06
damnit, our Eclipse plugin for 1.3.1 doesn't accept js-only projects :(
@bjansen does the IJ plugin support js-only modules?
Bastien Jansen
@bjansen
Feb 07 2017 12:10
yes
I fixed a few issues that were reported on js-only projects
it could be broken again though, that was a few months ago
Stéphane Épardaud
@FroMage
Feb 07 2017 12:12
ok I'll try
thanks
David Festal
@davidfestal
Feb 07 2017 14:14
Hi all. Js-only projects should be supported in the eclipse plugin also. At least they used to be supported since a long time ago. So something must have been broken more or less recently.
Stéphane Épardaud
@FroMage
Feb 07 2017 14:17
it's pretty simple: create a JS project, import ceylon.json/1.3.1 (that works), then import anything from its package in run.ceylon and the package import is red
David Festal
@davidfestal
Feb 07 2017 14:19
FYI I'm on vacations. I just wanted to add my 2-cents comment to this discussion ;-)
to confirm it used to work
Gavin King
@gavinking
Feb 07 2017 16:28
I agree it should work. This must be a new bug
Stéphane Épardaud
@FroMage
Feb 07 2017 16:40
that's in 1.3.1 as released, in both IDEs
John Vasileff
@jvasileff
Feb 07 2017 17:34
@FroMage FWIW, it works for me on 1.3.1
Stéphane Épardaud
@FroMage
Feb 07 2017 19:30
errr… really?
John Vasileff
@jvasileff
Feb 07 2017 20:08
This worked:
  1. create a new JS only eclipse project
  2. copy files from that repo into the project dir
  3. code completion on JsonArray in run.ceylon
If I try to run it, I get:
/Users/jvasileff/Applications/Eclipse.app/Contents/Eclipse/plugins/com.redhat.ceylon.dist.repo_1.3.1.osgi-5-20161122-1240/repo/ceylon/language/1.3.1/ceylon.language-1.3.1.js:256
^
ceylon.language::Exception "Undefined or null reference: jQuery"
ceylon run-js: Node process exited with non-zero exit code: 1