MyEclipse: Autocomplete in JSP Editor fails in linked folders

loomax - Jan 04, 2006 - 10:16 AM
Post subject: Autocomplete in JSP Editor fails in linked folders
I have a Eclipse Project with jsp pages with linked folders - autocompletion of the jsp editor doesn't work

To make a proof i created a project with two folders one of them linked to the filesystem

when just creating a jsppage from the template autocompletion only works in the not linked folder

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
basePath.
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'MyJsp.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>

<body>
This is my JSP page. <br>
</body>
</html>
loomax - Jan 04, 2006 - 10:26 AM
Post subject:
This problem was also mentioned here:

http://myeclipseide.com/PNphpBB2+file-viewtopic-t-10137-highlight-linked.html

I assume that it's a problem related to my config --- can anyone do a short test on a Eclipse 3.1.1 amd MyEclipse 4.1M2 Environment
and give me a post here
loomax - Jan 04, 2006 - 12:05 PM
Post subject:
It's nor a problem of my config -- I took the downloads of Eclips 3.1.1 and 4.1 M2 and run this new installed system -- same result

No codecompletion is done in the editor - pressing ctrl+1 i get a MessageWindow showing a NullpointerException


Here's the content of my logfile:

!SESSION 2006-01-04 12:56:05.734 -----------------------------------------------
eclipse.buildId=M20050929-0840
java.version=1.5.0_05
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:56.328
!MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\css_snippets.xml

!ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:56.718
!MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\forms_lists_snippets.xml

!ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:56.828
!MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\htmlform_snippets.xml

!ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:56.875
!MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\html_snippets.xml

!ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:56.953
!MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\javascript_snippets.xml

!ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:57.00
!MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\jsf_f_snippets.xml

!ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:57.62
!MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\jsf_h_snippets.xml

!ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:57.109
!MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\struts_bean_snippets.xml

!ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:57.171
!MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\struts_html_snippets.xml

!ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:57.218
!MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\struts_logic_snippets.xml

!ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:57.250
!MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\struts_tiles_snippets.xml

!ENTRY com.genuitec.eclipse.core 1 0 2006-01-04 12:58:16.671
!MESSAGE Unable to locate .myeclipse.properties file

!ENTRY org.eclipse.ui 4 4 2006-01-04 13:01:09.140
!MESSAGE "Quick Fix" did not complete normally. Please see the log for more information.

!ENTRY org.eclipse.ui 4 0 2006-01-04 13:01:09.140
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at org.eclipse.jdt.internal.ui.text.correction.QuickFixProcessor.hasCorrections(QuickFixProcessor.java:177)
at com.ibm.sse.editor.jsp.internal.correction.CorrectionProcessorJSP.addQuickFixProposals(CorrectionProcessorJSP.java:87)
at com.ibm.sse.editor.internal.correction.StructuredCorrectionProcessor.computeCompletionProposals(StructuredCorrectionProcessor.java:44)
at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1503)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:301)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$13(CompletionProposalPopup.java:298)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:261)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:256)
at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1352)
at com.ibm.sse.editor.StructuredTextViewer.doOperation(StructuredTextViewer.java:569)
at org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:122)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:120)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:182)
at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:108)
at org.eclipse.core.commands.Command.execute(Command.java:311)
at org.eclipse.core.commands.ParameterizedCommand.execute(ParameterizedCommand.java:396)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:459)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:781)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:828)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:550)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:493)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:117)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:917)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:880)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:876)
at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1475)
at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:3348)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3067)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1656)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2711)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
loomax - Jan 04, 2006 - 12:45 PM
Post subject:
public QuickFixProcessor()
{
}

public boolean hasCorrections(ICompilationUnit cu, int problemId)
{
/* 37*/ switch(problemId)
{
/* 175*/ case -1610612266:
/* 175*/ case -1610612265:
/* 175*/ case -1610612263:
.
.
.
}
/* 177*/ if(JavaModelUtil.is50OrHigher(cu.getJavaProject()))
/* 178*/ return ModifierCorrectionSubProcessor.hasSuppressWarningsProposal(problemId);
/* 180*/ else
/* 180*/ return false;
}

The problem seems to be that cu is coming as Null in line 175
loomax - Jan 05, 2006 - 05:43 AM
Post subject:
Can anyone reproduce this behavior or post that it works on his system ( Eclipse 3.1.1 and Myeclipse 4.1 M2 )
loomax - Jan 09, 2006 - 06:10 AM
Post subject:
Please help me - i'm still stuck
support-rkalla - Jan 09, 2006 - 04:20 PM
Post subject:
Loomax this does seem to be a bug, thank you for bringing it to our attention.
fuzzyslug - Jan 12, 2006 - 09:19 PM
Post subject:
Does anyone know how far you need to roll back to get things working again? I really miss this feature.
loomax - Jan 19, 2006 - 10:31 AM
Post subject:
Just to motivate you -- I'll buy another two licences if you fix this in the next release
support-rkalla - Jan 19, 2006 - 01:46 PM
Post subject:
Unfortunately this wasn't directly addressed in 4.1, I will make a note to see if it can make it into a followup bugfix release.
loomax - Jan 20, 2006 - 06:10 AM
Post subject:
Thank you for your help -- i don't know whether myeclipse does so but if you need a beta tester as soon as the bugfix is done i'd like to test it.
loomax - Feb 14, 2006 - 09:54 AM
Post subject:
Will this be solved in 4.1.1 ?
support-rkalla - Feb 14, 2006 - 01:38 PM
Post subject:
It has not been targetted for 4.1.1 at this time, but I will ask the developers if there is time.
njendrusch - Mar 01, 2006 - 12:21 PM
Post subject:
I've same trouble -- is the any solution in the pipeline -- I think this was korking in previous versions
support-rkalla - Mar 01, 2006 - 02:26 PM
Post subject:
This was not fixed in 4.1.1 AFAIK. Sorry guys. This should be fixed in 5.0 though.
xenon - Mar 07, 2006 - 08:17 AM
Post subject:
Is there any chance that this is fixed in 4.1.2 ? -- "This should be fixed in 5.0 though" - maybe it would be good to give bugfixes a higher priority than new developments

Anyhow - you're all doing a great job
support-rkalla - Mar 07, 2006 - 12:34 PM
Post subject:
No worries, I didn't mean to push this to 5.0 because we are so busy with bells and whistles. In the Eclipse 3.2 platform (5.0 based on this), they are adding the ability to create linked resources ANYWHERE in the project now, so when I said "5.0" I meant "If we don't support this in 5.0, we will end up with a 10 page thread from our users demanding it" as we think users will start going bonkers creating completely custom project layouts then, so that is a big change we are going to need to keep our eyes on.

We will run a long development cycle for 5.0 with lots of milestones, so you guys can keep us honest ;)
loomax - Mar 30, 2006 - 08:01 PM
Post subject:
Any idea whether this is already fixed and will be available in the upcoming version 5.0 ?
Is threr any neew plan when to release 5.0 ?
support-rkalla - Mar 30, 2006 - 10:12 PM
Post subject:
No, it's still the same. June/July, we are preparing Milestone 1 and want to get it out the door soon.
loomax - Apr 01, 2006 - 11:14 PM
Post subject:
Is this issue really addressed for 5.0 or will i wait for this release again and the bug will not be fixed ?
support-rkalla - Apr 04, 2006 - 09:32 PM
Post subject:
Management has not committed to this yet, but I"m pushing for it. If it's not fixed in 5.0, you can send me a very angry email.
loomax - Apr 25, 2006 - 07:51 AM
Post subject:
I just read "We're planning on making the first milestone build of MyEclipse 5.0 (for Eclipse 3.2) for end of april" --- are there any news regarding this bug ?
support-rkalla - Apr 25, 2006 - 02:55 PM
Post subject:
I believe we are still on track for that, it's all-hands-on-deck for M1 right now, wether it's right at the end of April or right at the beginning May I'm not certain. M1 won't be feature complete though, so if you don't see something in M1, don't loose hope.
loomax - May 22, 2006 - 10:01 AM
Post subject:
It's working now in 5.0 M1 -- thanks a lot
support-rkalla - May 22, 2006 - 03:18 PM
Post subject:
Good, thanks for hanging in there and being patient.
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits