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

15th
Feb 2016
Bastien Jansen
@bjansen
Feb 15 2016 09:46
I just updated the plugin and I have lots and lots of these:
Caused by: java.lang.NullPointerException
    at com.redhat.ceylon.eclipse.core.builder.CeylonBuilder.interpolateVariablesInRepositoryPath(CeylonBuilder.java:4382)
    at com.redhat.ceylon.eclipse.core.builder.CeylonBuilder.getInterpolatedCeylonSystemRepo(CeylonBuilder.java:4369)
    at com.redhat.ceylon.eclipse.core.model.EclipseCeylonProject.getSystemRepository(EclipseCeylonProject.ceylon:254)
    at com.redhat.ceylon.ide.common.model.BaseCeylonProject.createRepositoryManager$priv$(CeylonProject.ceylon:124)
    at com.redhat.ceylon.ide.common.model.BaseCeylonProject.getRepositoryManager(CeylonProject.ceylon:140)
    at com.redhat.ceylon.eclipse.core.classpath.CeylonLanguageModuleContainer.<init>(CeylonLanguageModuleContainer.java:58)
    at com.redhat.ceylon.eclipse.core.classpath.CeylonLanguageModuleInitializer.initialize(CeylonLanguageModuleInitializer.java:23)
David Festal
@davidfestal
Feb 15 2016 09:46
really?
let me have a look
Bastien Jansen
@bjansen
Feb 15 2016 09:48
hm my SDK is not on master, but on 1.2.1-fixes, I'll try building again and see if it works
David Festal
@davidfestal
Feb 15 2016 09:51
OK
Bastien Jansen
@bjansen
Feb 15 2016 09:55
still the same error :/
and in the project settings, when I navigate to "build paths" I get an alert: "the currently displayed page contains invalid values"
David Festal
@davidfestal
Feb 15 2016 09:57
wait a minute
I might have forgotten to push a commit
let mecheck
Bastien Jansen
@bjansen
Feb 15 2016 09:57
ok
David Festal
@davidfestal
Feb 15 2016 10:10
I've pushed
Bastien Jansen
@bjansen
Feb 15 2016 10:11
ok
only in ceylon-ide-eclipse, right?
David Festal
@davidfestal
Feb 15 2016 10:11
yeah
Bastien Jansen
@bjansen
Feb 15 2016 10:30
@davidfestal I still have the same error :(
(master)
David Festal
@davidfestal
Feb 15 2016 10:30
strange
Can't you install the 1.2.1 release in your mail Eclipse
and debug this by running the master eclipse in debug ?
Bastien Jansen
@bjansen
Feb 15 2016 10:31
I suppose I can
David Festal
@davidfestal
Feb 15 2016 10:31
That's my current configuration
so that you have a bug-free main eclipse :-)
Bastien Jansen
@bjansen
Feb 15 2016 10:33
"Ceylon IDE" will be ignored because a newer version is already installed.
argh
David Festal
@davidfestal
Feb 15 2016 10:34
Ahh
just remove it :-)
Bastien Jansen
@bjansen
Feb 15 2016 10:34
I think I have another eclipse install somewhere
I'll use this one
David Festal
@davidfestal
Feb 15 2016 10:34
if you prefer
Bastien Jansen
@bjansen
Feb 15 2016 21:08
@davidfestal CeylonBuilder.getCeylonPluginRepository() returns null, that seems to be why my eclipse is crashing
eclipseUrl is null, so FileLocator.resolve(eclipseUrl) throws a NPE
David Festal
@davidfestal
Feb 15 2016 21:10
do you have the embedded repository project opened in your main eclipse ?
Bastien Jansen
@bjansen
Feb 15 2016 21:10
if I debug, I see that it's going inside the if (bundle == null)
David Festal
@davidfestal
Feb 15 2016 21:10
(sub-sub project of ceylon/ dist)
Bastien Jansen
@bjansen
Feb 15 2016 21:10
hm no
David Festal
@davidfestal
Feb 15 2016 21:12
so it fails the same way with the main eclipse (when the master plugin is installed in it)
and with the debugged secondary eclipse ?
Bastien Jansen
@bjansen
Feb 15 2016 21:12
I'm debugging my main eclipse install
using a 1.2.1 install
David Festal
@davidfestal
Feb 15 2016 21:12
remote debug ?
Bastien Jansen
@bjansen
Feb 15 2016 21:12
yes
David Festal
@davidfestal
Feb 15 2016 21:12
Ah, OK
did anyone bump any version number ?
or did you locally ?
Bastien Jansen
@bjansen
Feb 15 2016 21:13
no
David Festal
@davidfestal
Feb 15 2016 21:14
so it seems the embedded repository plugin is not installed in the main eclipse
are you sure you updated everything the last time ?
Bastien Jansen
@bjansen
Feb 15 2016 21:15
yes
is embeddedRepository supposed to be a subfolder of repo?
David Festal
@davidfestal
Feb 15 2016 21:15
and was any version bumped for the distribution?
Bastien Jansen
@bjansen
Feb 15 2016 21:15
afaik we're still using 1.2.1 everywhere
David Festal
@davidfestal
Feb 15 2016 21:15
OK
well, there are 2 cases here:
  • you run in the main Eclipse:
=> Bundle bundle = Platform.getBundle(EMBEDDED_REPO_PLUGIN_ID) should not be null.
because normally the IDE setup includes a bundle that contains an embedded repo
(and in your case this bundle doesn't seem to be there)
  • you run in a debugged eclipse:
=> the embedded repository bundle might be unavailable : in this case we explicitly point to embeddedRepository sub-directory of the ceylon-dist-osgi project that is used to find the ceylon dist bundle
(since we are debug mode)
Bastien Jansen
@bjansen
Feb 15 2016 21:20
I can see the bundle is missing in the "installation details" dialog
David Festal
@davidfestal
Feb 15 2016 21:20
but since you use the main Eclipse you're in teh first casse
Ah, yeah
Bastien Jansen
@bjansen
Feb 15 2016 21:20
and I can see it in my 1.2.1 install
David Festal
@davidfestal
Feb 15 2016 21:21
if you try an update again from the master repo
Bastien Jansen
@bjansen
Feb 15 2016 21:21
I see com.redhat.ceylon.dist, but not com.redhat.ceylon.dist.repo
David Festal
@davidfestal
Feb 15 2016 21:21
(generated by the maven build )
that's the problem
go into the generated local update site
into the plugins sub-directory
and search for it
it should be there
Bastien Jansen
@bjansen
Feb 15 2016 21:23
in ...ceylon/ceylon-ide-eclipse/site/target/repository/plugins ?
David Festal
@davidfestal
Feb 15 2016 21:23
FTR it is there in the ceylon/dist/osgi/build/dist/plugins directory
yes
and then should also be there
in ceylon-ide-eclipse/site/target/repository/plugins
Bastien Jansen
@bjansen
Feb 15 2016 21:25
I can see it in ceylon/dist/osgi/build/dist/plugins, but not in ceylon-ide-eclipse/site/target/repository/plugins
I'll try to build again
David Festal
@davidfestal
Feb 15 2016 21:25
yeah
Bastien Jansen
@bjansen
Feb 15 2016 21:29
I'm getting a lot of errors when building the SDK, just like these: https://ci-ceylon.rhcloud.com/job/ceylon-sdk/lastFailedBuild/console
Bastien Jansen
@bjansen
Feb 15 2016 21:40
ok, I built again, here's the output:
$ ls -1 /Users/bastien/Dev/ceylon/ceylon-ide-eclipse/site/target/repository/plugins
ceylon.collection_1.2.1.v20160215-2135.jar
ceylon.file_1.2.1.v20160215-2135.jar
ceylon.formatter_1.2.1.v20160215-2136.jar
ceylon.interop.java_1.2.1.v20160215-2135.jar
ceylon.tool.converter.java2ceylon_1.2.1.v20160215-2136.jar
com.redhat.ceylon.eclipse.android.plugin_1.2.1.v20160215-2137-Final.jar
com.redhat.ceylon.eclipse.ui.jdt.debug.fragment_1.2.1.v20160215-2137-Final.jar
com.redhat.ceylon.eclipse.ui_1.2.1.v20160215-2137-Final.jar
com.redhat.ceylon.ide.common_1.2.1.v20160215-2136.jar
com.redhat.ceylon.test.eclipse.plugin_1.2.1.v20160215-2137-Final.jar
net.lingala.zip4j_1.3.2.jar
org.antlr.antlr4-runtime-osgi_4.5.1.jar
org.jgrapht.core_0.9.1.jar
$ ls -1 /Users/bastien/Dev/ceylon/ceylon/dist/osgi/build/dist/plugins
ceylon.bootstrap_1.2.1.v20160215-2133.jar
ceylon.language_1.2.1.v20160215-2133.jar
ceylon.runtime_1.2.1.v20160215-2134.jar
com.github.lookfirst.sardine_5.1.0.jar
com.github.rjeschke.txtmark_0.13.0.jar
com.redhat.ceylon.common_1.2.1.v20160215-2133.jar
com.redhat.ceylon.compiler.java_1.2.1.v20160215-2133.jar
com.redhat.ceylon.compiler.js_1.2.1.v20160215-2133.jar
com.redhat.ceylon.dist.repo_1.2.1.v20160215-2134.jar
com.redhat.ceylon.dist_1.2.1.v20160215-2134.jar
com.redhat.ceylon.langtools.classfile_1.2.1.v20160215-2133.jar
com.redhat.ceylon.maven-support_2.0.0.jar
com.redhat.ceylon.model_1.2.1.v20160215-2133.jar
com.redhat.ceylon.module-resolver_1.2.1.v20160215-2133.jar
com.redhat.ceylon.tool.provider_1.2.1.v20160215-2134.jar
com.redhat.ceylon.typechecker_1.2.1.v20160215-2133.jar
net.minidev.json-smart_1.1.1.jar
org.antlr.antlr_2.7.7.jar
org.antlr.runtime_3.4.0.jar
org.antlr.stringtemplate_3.2.1.jar
org.apache.commons.codec_1.8.0.jar
org.apache.commons.logging_1.1.1.jar
org.apache.httpcomponents.httpclient_4.3.2.jar
org.apache.httpcomponents.httpcore_4.3.2.jar
org.jboss.jandex_2.0.0.Final.jar
org.jboss.logmanager_2.0.3.Final.jar
org.jboss.modules_1.4.4.Final.jar
org.slf4j.api_1.6.1.jar
org.slf4j.simple_1.6.1.jar
org.tautua.markdownpapers.core_1.2.7.jar
David Festal
@davidfestal
Feb 15 2016 21:48
blob
Bastien Jansen
@bjansen
Feb 15 2016 21:49
which folder is that?
David Festal
@davidfestal
Feb 15 2016 21:49
david@travail-david-gnome:~/git/ceylon-ide-eclipse/site/target/repository/plugins$ ls -l
total 35952
-rw-rw-r-- 1 david david    21067 févr. 11 13:39 ceylon.bootstrap_1.2.1.v20160211-1221.jar
-rw-rw-r-- 1 david david   298972 févr. 11 13:39 ceylon.collection_1.2.1.v20160211-1230.jar
-rw-rw-r-- 1 david david    98194 févr. 11 13:39 ceylon.file_1.2.1.v20160211-1231.jar
-rw-rw-r-- 1 david david   516710 févr. 11 13:39 ceylon.formatter_1.2.1.v20160211-1234.jar
-rw-rw-r-- 1 david david   167353 févr. 11 13:39 ceylon.interop.java_1.2.1.v20160211-1230.jar
-rw-rw-r-- 1 david david  1677128 févr. 11 13:39 ceylon.language_1.2.1.v20160211-1224.jar
-rw-rw-r-- 1 david david   106219 févr. 11 13:39 ceylon.runtime_1.2.1.v20160211-1227.jar
-rw-rw-r-- 1 david david   483954 févr. 11 13:39 ceylon.tool.converter.java2ceylon_1.2.1.v20160211-1234.jar
-rw-rw-r-- 1 david david   115704 févr. 11 13:39 com.github.lookfirst.sardine_5.1.0.jar
-rw-rw-r-- 1 david david    72837 févr. 11 13:39 com.github.rjeschke.txtmark_0.13.0.jar
-rw-rw-r-- 1 david david   377783 févr. 11 13:39 com.redhat.ceylon.common_1.2.1.v20160211-1220.jar
-rw-rw-r-- 1 david david  3019871 févr. 11 13:39 com.redhat.ceylon.compiler.java_1.2.1.v20160211-1221.jar
-rw-rw-r-- 1 david david   354373 févr. 11 13:39 com.redhat.ceylon.compiler.js_1.2.1.v20160211-1223.jar
-rw-rw-r-- 1 david david    16271 févr. 11 13:39 com.redhat.ceylon.dist_1.2.1.v20160211-1228.jar
-rw-rw-r-- 1 david david 16360839 févr. 11 13:39 com.redhat.ceylon.dist.repo_1.2.1.v20160211-1228.jar
-rw-rw-r-- 1 david david    13746 févr. 11 13:39 com.redhat.ceylon.eclipse.android.plugin_1.2.1.v20160211-1237-Final.jar
-rw-rw-r-- 1 david david  3883128 févr. 11 13:39 com.redhat.ceylon.eclipse.ui_1.2.1.v20160211-1237-Final.jar
-rw-rw-r-- 1 david david     5929 févr. 11 13:39 com.redhat.ceylon.eclipse.ui.jdt.debug.fragment_1.2.1.v20160211-1237-Final.jar
-rw-rw-r-- 1 david david   703845 févr. 11 13:39 com.redhat.ceylon.ide.common_1.2.1.v20160211-1235.jar
-rw-rw-r-- 1 david david   201564 févr. 11 13:39 com.redhat.ceylon.langtools.classfile_1.2.1.v20160211-1220.jar
-rw-rw-r-- 1 david david  2292712 févr. 11 13:39 com.redhat.ceylon.maven-support_2.0.0.jar
-rw-rw-r-- 1 david david   464692 févr. 11 13:39 com.redhat.ceylon.model_1.2.1.v20160211-1220.jar
-rw-rw-r-- 1 david david   334137 févr. 11 13:39 com.redhat.ceylon.module-resolver_1.2.1.v20160211-1220.jar
-rw-rw-r-- 1 david david   284204 févr. 11 13:39 com.redhat.ceylon.test.eclipse.plugin_1.2.1.v20160211-1237-Final.jar
-rw-rw-r-- 1 david david    45168 févr. 11 13:39 com.redhat.ceylon.tool.provider_1.2.1.v20160211-1227.jar
-rw-rw-r-- 1 david david  1138593 févr. 11 13:39 com.redhat.ceylon.typechecker_1.2.1.v20160211-1221.jar
-rw-rw-r-- 1 david david    53403 févr. 11 13:39 net.minidev.json-smart_1.1.1.jar
-rw-rw-r-- 1 david david   443659 févr. 11 13:39 org.antlr.antlr_2.7.7.jar
-rw-rw-r-- 1 david david   302027 févr. 11 13:39 org.antlr.antlr4-runtime-osgi_4.5.1.jar
-rw-rw-r-- 1 david david   166293 févr. 11 13:39 org.antlr.runtime_3.4.0.jar
-rw-rw-r-- 1 david david   150601 févr. 11 13:39 org.antlr.stringtemplate_3.2.1.jar
-rw-rw-r-- 1 david david   265821 févr. 11 13:39 org.apache.commons.codec_1.8.0.jar
-rw-rw-r-- 1 david david    62756 févr. 11 13:39 org.apache.commons.logging_1.1.1.jar
-rw-rw-r-- 1 david david   590219 févr. 11 13:39 org.apache.httpcomponents.httpclient_4.3.2.jar
-rw-rw-r-- 1 david david   284489 févr. 11 13:39 org.apache.httpcomponents.httpcore_4.3.2.jar
-rw-rw-r-- 1 david david   188002 févr. 11 13:39 org.jboss.jandex_2.0.0.Final.jar
-rw-rw-r-- 1 david david   338192 févr. 11 13:39 org.jboss.logmanager_2.0.3.Final.jar
-rw-rw-r-- 1 david david   366775 févr. 11 13:39 org.jboss.modules_1.4.4.Final.jar
-rw-rw-r-- 1 david david   351225 févr. 11 13:39 org.jgrapht.core_0.9.1.jar
-rw-rw-r-- 1 david david    27246 févr. 11 13:39 org.slf4j.api_1.6.1.jar
-rw-rw-r-- 1 david david    88410 févr. 11 13:39 org.tautua.markdownpapers.core_1.2.7.jar
Bastien Jansen
@bjansen
Feb 15 2016 21:49
huh
interesting
although, it's 4 days old
could you do a clean build?
(you'll have to revert this first: ceylon/ceylon-sdk@6992d2e)
David Festal
@davidfestal
Feb 15 2016 21:51
well, I'm in the middle of some abstraction change :-/
Bastien Jansen
@bjansen
Feb 15 2016 21:51
ok
David Festal
@davidfestal
Feb 15 2016 21:52
and I was planning to leave...
Sorry about that
Bastien Jansen
@bjansen
Feb 15 2016 21:52
we'll continue tomorrow then
I was going to leave too
David Festal
@davidfestal
Feb 15 2016 21:52
could you open an issue for that, and I'll have a look tomorrow
?
and assign it to me ?
Bastien Jansen
@bjansen
Feb 15 2016 21:53
ok
David Festal
@davidfestal
Feb 15 2016 21:53
Thanks !