uqbar-project / wollok

Wollok Programming Language
GNU General Public License v3.0
60 stars 16 forks source link

Can't create anonymous object on REPL #860

Closed PalumboN closed 7 years ago

PalumboN commented 8 years ago

When you write object in REPL it stop and the IDE shows weird.

Juancete commented 8 years ago

It happens in WollokCodeHighLightLineStyleListener at method parseIt when content have a program with the object word

Seems to have a problem with WollokLinker when tries to createAndSetProxy but i don't know why. Any Ideas?

!ENTRY org.eclipse.ui 4 0 2016-08-14 20:20:57.081 !MESSAGE Unhandled event loop exception !STACK 0 java.lang.NullPointerException at org.eclipse.xtext.linking.lazy.LazyURIEncoder.getRelativePath(LazyURIEncoder.java:209) at org.eclipse.xtext.linking.lazy.LazyURIEncoder.getRelativePath(LazyURIEncoder.java:209) at org.eclipse.xtext.linking.lazy.LazyURIEncoder.getRelativePath(LazyURIEncoder.java:209) at org.eclipse.xtext.linking.lazy.LazyURIEncoder.getRelativePath(LazyURIEncoder.java:209) at org.eclipse.xtext.linking.lazy.LazyURIEncoder.getRelativePath(LazyURIEncoder.java:209) at org.eclipse.xtext.linking.lazy.LazyURIEncoder.getRelativePath(LazyURIEncoder.java:209) at org.eclipse.xtext.linking.lazy.LazyURIEncoder.getRelativePath(LazyURIEncoder.java:209) at org.eclipse.xtext.linking.lazy.LazyURIEncoder.getRelativePath(LazyURIEncoder.java:209) at org.eclipse.xtext.linking.lazy.LazyURIEncoder.getRelativePath(LazyURIEncoder.java:209) at org.eclipse.xtext.linking.lazy.LazyURIEncoder.getRelativePath(LazyURIEncoder.java:209) at org.eclipse.xtext.linking.lazy.LazyURIEncoder.getRelativePath(LazyURIEncoder.java:209) at org.eclipse.xtext.linking.lazy.LazyURIEncoder.getRelativePath(LazyURIEncoder.java:209) at org.eclipse.xtext.linking.lazy.LazyURIEncoder.getRelativePath(LazyURIEncoder.java:209) at org.eclipse.xtext.linking.lazy.LazyURIEncoder.getRelativePath(LazyURIEncoder.java:209) at org.eclipse.xtext.linking.lazy.LazyURIEncoder.getRelativePath(LazyURIEncoder.java:209) at org.eclipse.xtext.linking.lazy.LazyURIEncoder.getRelativePath(LazyURIEncoder.java:209) at org.eclipse.xtext.linking.lazy.LazyURIEncoder.getRelativePath(LazyURIEncoder.java:209) at org.eclipse.xtext.linking.lazy.LazyURIEncoder.getRelativePath(LazyURIEncoder.java:209) at org.eclipse.xtext.linking.lazy.LazyURIEncoder.getRelativePath(LazyURIEncoder.java:209) at org.eclipse.xtext.linking.lazy.LazyURIEncoder.encode(LazyURIEncoder.java:81) at org.eclipse.xtext.linking.lazy.LazyLinker.createProxy(LazyLinker.java:204) at org.eclipse.xtext.linking.lazy.LazyLinker.createAndSetProxy(LazyLinker.java:191) at org.eclipse.xtext.linking.lazy.SyntheticLinkingSupport.createAndSetProxy(SyntheticLinkingSupport.java:42) at org.uqbar.project.wollok.linking.WollokLinker.installProxies(WollokLinker.java:30) at org.eclipse.xtext.linking.lazy.LazyLinker$2.process(LazyLinker.java:103) at org.eclipse.xtext.linking.lazy.LazyLinker$2.process(LazyLinker.java:1) at org.eclipse.xtext.util.concurrent.IUnitOfWork$Void.exec(IUnitOfWork.java:37) at org.eclipse.xtext.util.OnChangeEvictingCache.execWithoutCacheClear(OnChangeEvictingCache.java:129) at org.eclipse.xtext.linking.lazy.LazyLinker.doLinkModel(LazyLinker.java:93) at org.eclipse.xtext.linking.impl.AbstractCleaningLinker.linkModel(AbstractCleaningLinker.java:51) at org.eclipse.xtext.resource.XtextResource.doLinking(XtextResource.java:323) at org.eclipse.xtext.resource.XtextResource.updateInternalState(XtextResource.java:284) at org.eclipse.xtext.resource.XtextResource.updateInternalState(XtextResource.java:273) at org.eclipse.xtext.resource.XtextResource.doLoad(XtextResource.java:171) at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1518) at org.uqbar.project.wollok.ui.console.highlight.WollokCodeHighLightLineStyleListener$14.apply(WollokCodeHighLightLineStyleListener.java:321) at org.uqbar.project.wollok.ui.console.highlight.WollokCodeHighLightLineStyleListener$14.apply(WollokCodeHighLightLineStyleListener.java:1) at org.eclipse.xtext.xbase.lib.ObjectExtensions.operator_doubleArrow(ObjectExtensions.java:139) at org.uqbar.project.wollok.ui.console.highlight.WollokCodeHighLightLineStyleListener.parseIt(WollokCodeHighLightLineStyleListener.java:327)

Juancete commented 8 years ago

Any suggestions ?? @javierfernandes @tesonep

tesonep commented 8 years ago

pffffffffff, I don't know, I will see what it is trying to do.

fdodino commented 7 years ago

I remember @javierfernandes found a workaround, but later some additional problems arised. I think we should try to fix it, what do you think @tesonep @npasserini ?

tesonep commented 7 years ago

I will see the proposed solution of @javierfernandes, the changes looks alright. But I will have to integrated as soon as the build process is back on green.

fdodino commented 7 years ago

Yeah @tesonep is back!!! Watch out this, @Juancete !!