Beta version of Force.com IDE appears to break content assist

139 views
Skip to first unread message

jason...@amnhealthcare.com

unread,
Mar 20, 2015, 5:31:39 PM3/20/15
to apex-editor...@googlegroups.com
First of all, I would like to say thank you for Apex Editor LS. It's an awesome tool, especially since SFDC broke content assist with the last release!

I was giving the beta version of the force.com IDE (33.0.0.201503191609) a whirl today and noticed that Apex Editor LS doesn't appear to function correctly. Are you planning on doing another release? 

Also, have you considered contributing some of your code to the open source portion of the IDE? Your content assist tool is better than the previous incarnations that SFDC offered.

Thanks again for the awesome tool!

Krešimir Tonković

unread,
Mar 20, 2015, 5:57:36 PM3/20/15
to apex-editor...@googlegroups.com
Hi,

Thanks for using the editor. LS relies on the force.com IDE to save code to the server and to get metadata. There should be no problem with content assist though as it is independent.

Try to find the ApexEditorLS.log file and see if there are any exceptions that look relevant.

Regards,
Kresimir

--
You received this message because you are subscribed to the Google Groups "Apex Editor LS general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apex-editor-ls-general+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

susanoo chidori

unread,
Apr 16, 2015, 7:35:30 AM4/16/15
to apex-editor...@googlegroups.com, kres...@tonkovic.org
Am too facing the same issue when i updated my IDE to ver 33.0. Please have a look at it.
To unsubscribe from this group and stop receiving emails from it, send an email to apex-editor-ls-general+unsubscri...@googlegroups.com.

Krešimir Tonković

unread,
Apr 16, 2015, 7:38:00 AM4/16/15
to susanoo chidori, apex-editor...@googlegroups.com, Krešimir Tonković
Hi,

Not sure if it is the same thing - I have noticed that adding an annotation to a field or property, like @TestVisible breaks the parser. An update is on its way. 

In the meantime please check if this is in fact the issue - please remove any annotations from fields/properties and see if auto complete starts working again.

Thanks,,
Kresimir

kresho

Jason Hardy

unread,
Apr 16, 2015, 7:58:54 PM4/16/15
to apex-editor...@googlegroups.com, susanoo...@gmail.com, kres...@tonkovic.org
Sorry for the delay, things have been a bit crazy. Here's what I'm seeing:

16:43:18.731 [main] DEBUG h.m.a.c.ApexContentAssistProcessor - Can't compute completion proposals: project scope is null

Could that be it?

Jason Hardy

unread,
Apr 16, 2015, 8:15:37 PM4/16/15
to apex-editor...@googlegroups.com, kres...@tonkovic.org, susanoo...@gmail.com
Ok I think I've got as clean of a version as possible, here is the log from when I open an upgraded project:
17:12:01.165 [main] DEBUG h.m.a.q.QuickOutlineAction - Action quick outline invoked
17:12:01.200 [main] DEBUG h.m.a.o.ApexContentOutlineProvider - Get elements org.eclipse.ui.part.FileEditorInput(/2015-04-16 - DEVJLH/src/classes/ApplicationUtils.cls)
17:12:01.237 [main] WARN  h.m.a.parser.ApexParserProvider - 2 syntax errors found
17:12:01.238 [main] WARN  h.m.a.parser.ApexParserProvider - parseClassDocument: parsed ApplicationUtils in 37ms
17:12:02.607 [main] DEBUG h.m.a.o.ApexContentOutlineProvider - Dispose
17:12:40.450 [main] DEBUG h.m.a.o.ApexContentOutlineProvider - Dispose
17:12:47.391 [main] DEBUG h.m.a.q.QuickOutlineAction - Init action contributor
17:12:47.420 [main] DEBUG h.m.a.q.QuickOutlineAction - Quick outline initialized
17:12:47.420 [main] DEBUG h.m.a.actions.ToggleCommentAction - Toggle comment initialized
17:12:47.421 [main] DEBUG h.m.a.actions.GotoDeclarationAction - Goto declaration initialized
17:12:47.435 [main] DEBUG h.m.apexeditor.editors.ApexEditor - StyledText part: StyledText {}
17:12:47.445 [main] DEBUG h.m.a.o.ApexContentOutlineProvider - Get elements org.eclipse.ui.part.FileEditorInput(/2015-04-16 - DEVJLH/src/classes/UtilityClass.cls)
17:12:47.485 [main] WARN  h.m.a.parser.ApexParserProvider - parseClassDocument: parsed UtilityClass in 39ms
17:12:47.488 [main] DEBUG h.m.a.o.ApexContentOutlineProvider - Get children ClassDeclaration utilityMethods 7:1
17:12:47.489 [main] DEBUG h.m.a.o.ApexContentOutlineProvider - Get children ClassDeclaration utilityTestMethods 329:1
17:12:47.495 [main] DEBUG h.m.a.o.ApexContentOutlineProvider - Get children ClassDeclaration utilityMethodsNoSharing 783:1
17:12:48.008 [Text Viewer Hover Presenter] DEBUG h.m.apexeditor.editors.ApexTextHover - Starting text hover
17:12:48.008 [Text Viewer Hover Presenter] DEBUG h.m.apexeditor.editors.ApexTextHover - Project scope is null
17:12:48.008 [Text Viewer Hover Presenter] DEBUG h.m.apexeditor.editors.ApexTextHover - Text hover ended
17:13:08.314 [Worker-2] DEBUG h.m.a.e.m.ApexOccurrenceAnnotator - Project scope is null
17:13:10.521 [main] DEBUG h.m.a.c.ApexContentAssistProcessor - Can't compute completion proposals: project scope is null

Jason Hardy

unread,
Apr 16, 2015, 9:20:48 PM4/16/15
to apex-editor...@googlegroups.com, susanoo...@gmail.com, kres...@tonkovic.org
Found this as well:

!ENTRY org.eclipse.core.jobs 4 2 2015-04-16 17:04:31.689
!MESSAGE An internal error occurred during: "2015-03-20-DEVJLH build ".
!STACK 0
java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils
	at hr.multimodus.apexeditor.editors.ProjectManager.populateSObjects(ProjectManager.java:218)
	at hr.multimodus.apexeditor.editors.ProjectManager.buildProject(ProjectManager.java:193)
	at hr.multimodus.apexeditor.editors.ProjectManager.access$0(ProjectManager.java:170)
	at hr.multimodus.apexeditor.editors.ProjectManager$1.run(ProjectManager.java:74)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils cannot be found by hr.multimodus.apexeditorls_1.1.2
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 5 more

Krešimir Tonković

unread,
Apr 17, 2015, 4:00:43 AM4/17/15
to apex-editor...@googlegroups.com
Yes, that could be it. Thanks.
Kresimir

kresho

To unsubscribe from this group and stop receiving emails from it, send an email to apex-editor-ls-ge...@googlegroups.com.

cody....@gmail.com

unread,
Jun 26, 2015, 5:21:52 PM6/26/15
to apex-editor...@googlegroups.com, susanoo...@gmail.com, kres...@tonkovic.org
I'm getting something very similar, think it has to do with Force.com IDE v33 which seems to be throwing errors:
!ENTRY org.eclipse.core.jobs 4 2 2015-06-26 14:03:35.437
!MESSAGE An internal error occurred during: "CS1_EmailMessage_Dispatcher.cls build".
!STACK 0
java.lang.NoSuchMethodError: java.lang.String.join(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;
	at hr.multimodus.apexeditor.parser.ApexParserProvider.parseDocument(ApexParserProvider.java:77)
	at hr.multimodus.apexeditor.parser.ApexParserProvider.parseProjectDocument(ApexParserProvider.java:40)
	at hr.multimodus.apexeditor.ApexAstProvider.getFileAst(ApexAstProvider.java:33)
	at hr.multimodus.apexeditor.editors.ProjectManager.parseSourceFile(ProjectManager.java:179)
	at hr.multimodus.apexeditor.editors.ProjectManager.access$0(ProjectManager.java:171)
	at hr.multimodus.apexeditor.editors.ProjectManager$2.run(ProjectManager.java:99)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.eclipse.core.jobs 4 2 2015-06-26 14:03:35.581
!MESSAGE An internal error occurred during: "GanttChartController.cls build".
!STACK 0
java.lang.NoSuchMethodError: java.lang.String.join(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;
	at hr.multimodus.apexeditor.parser.ApexParserProvider.parseDocument(ApexParserProvider.java:77)
	at hr.multimodus.apexeditor.parser.ApexParserProvider.parseProjectDocument(ApexParserProvider.java:40)
	at hr.multimodus.apexeditor.ApexAstProvider.getFileAst(ApexAstProvider.java:33)
	at hr.multimodus.apexeditor.editors.ProjectManager.parseSourceFile(ProjectManager.java:179)
	at hr.multimodus.apexeditor.editors.ProjectManager.access$0(ProjectManager.java:171)
	at hr.multimodus.apexeditor.editors.ProjectManager$2.run(ProjectManager.java:99)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.eclipse.core.jobs 4 2 2015-06-26 14:03:35.582
!MESSAGE An internal error occurred during: "AkGoldenRule.cls build".
!STACK 0
java.lang.NoSuchMethodError: java.lang.String.join(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;
	at hr.multimodus.apexeditor.parser.ApexParserProvider.parseDocument(ApexParserProvider.java:77)
	at hr.multimodus.apexeditor.parser.ApexParserProvider.parseProjectDocument(ApexParserProvider.java:40)
	at hr.multimodus.apexeditor.ApexAstProvider.getFileAst(ApexAstProvider.java:33)
	at hr.multimodus.apexeditor.editors.ProjectManager.parseSourceFile(ProjectManager.java:179)
	at hr.multimodus.apexeditor.editors.ProjectManager.access$0(ProjectManager.java:171)
	at hr.multimodus.apexeditor.editors.ProjectManager$2.run(ProjectManager.java:99)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
...

-Cody Cusic

Krešimir Tonković

unread,
Jun 26, 2015, 5:25:30 PM6/26/15
to apex-editor...@googlegroups.com, susanoo...@gmail.com, Krešimir Tonković
Hi,

It seems I have introduced a dependency on Java 8 with the String.join method. I'll update the plugin metadata for the next version. Please upgrade your Java to 8 if possible.

Thanks,
Kresimir

To unsubscribe from this group and stop receiving emails from it, send an email to apex-editor-ls-ge...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Krešimir Tonković
Multimodus d.o.o.
Reply all
Reply to author
Forward
0 new messages