Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
loomax
Post subject: Autocomplete in JSP Editor fails in linked folders  PostPosted: Jan 04, 2006 - 10:16 AM



Joined: Sep 30, 2004
Posts: 49

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>
 
 View user's profile Send private message  
Reply with quote Back to top
loomax
Post subject:   PostPosted: Jan 04, 2006 - 10:26 AM



Joined: Sep 30, 2004
Posts: 49

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
 
 View user's profile Send private message  
Reply with quote Back to top
loomax
Post subject:   PostPosted: Jan 04, 2006 - 12:05 PM



Joined: Sep 30, 2004
Posts: 49

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)
 
 View user's profile Send private message  
Reply with quote Back to top
loomax
Post subject:   PostPosted: Jan 04, 2006 - 12:45 PM



Joined: Sep 30, 2004
Posts: 49

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
 
 View user's profile Send private message  
Reply with quote Back to top
loomax
Post subject:   PostPosted: Jan 05, 2006 - 05:43 AM



Joined: Sep 30, 2004
Posts: 49

Can anyone reproduce this behavior or post that it works on his system ( Eclipse 3.1.1 and Myeclipse 4.1 M2 )
 
 View user's profile Send private message  
Reply with quote Back to top
loomax
Post subject:   PostPosted: Jan 09, 2006 - 06:10 AM



Joined: Sep 30, 2004
Posts: 49

Please help me - i'm still stuck
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Jan 09, 2006 - 04:20 PM
Moderator
Moderator


Joined: Jan 06, 2004
Posts: 23310

Loomax this does seem to be a bug, thank you for bringing it to our attention.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
fuzzyslug
Post subject:   PostPosted: Jan 12, 2006 - 09:19 PM
Veteran Member
Veteran Member


Joined: Sep 19, 2003
Posts: 1

Does anyone know how far you need to roll back to get things working again? I really miss this feature.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
loomax
Post subject:   PostPosted: Jan 19, 2006 - 10:31 AM



Joined: Sep 30, 2004
Posts: 49

Just to motivate you -- I'll buy another two licences if you fix this in the next release
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Jan 19, 2006 - 01:46 PM
Moderator
Moderator


Joined: Jan 06, 2004
Posts: 23310

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.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
loomax
Post subject:   PostPosted: Jan 20, 2006 - 06:10 AM



Joined: Sep 30, 2004
Posts: 49

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.
 
 View user's profile Send private message  
Reply with quote Back to top
loomax
Post subject:   PostPosted: Feb 14, 2006 - 09:54 AM



Joined: Sep 30, 2004
Posts: 49

Will this be solved in 4.1.1 ?
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Feb 14, 2006 - 01:38 PM
Moderator
Moderator


Joined: Jan 06, 2004
Posts: 23310

It has not been targetted for 4.1.1 at this time, but I will ask the developers if there is time.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
njendrusch
Post subject:   PostPosted: Mar 01, 2006 - 12:21 PM
Registered Member
Registered Member


Joined: Mar 01, 2006
Posts: 1

I've same trouble -- is the any solution in the pipeline -- I think this was korking in previous versions
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Mar 01, 2006 - 02:26 PM
Moderator
Moderator


Joined: Jan 06, 2004
Posts: 23310

This was not fixed in 4.1.1 AFAIK. Sorry guys. This should be fixed in 5.0 though.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits