- This topic has 3 replies, 2 voices, and was last updated 18 years, 5 months ago by Riyad Kalla.
-
AuthorPosts
-
Rob ConawayMemberI hava project where the Eclipse/MyEclipse project files are in one location, but the actual sources files (.java, .jsp) are in folders linked to another drive. Content assist does not work in the .jsp files. I was able to reproduce the problem in a simpler project that I describe below:
I created the test project as follows:
-
1) I created a new Web Project in c:\temp\test
2) I added a folder “x” (c:\temp\test\x) to the project and put a file MyJsp.jsp in that folder.
3) I added a linked folder “y” to the project and put a file MyJsp.jsp in that folder. y is linked to c:\temp\test1.Content assist works in x/MyJsp.jsp, but not in y/MyJsp.jsp. Specifically, within the following code, I can type “request.” and press ctrl-space to see the members of request in x/MyJsp.jsp, but this does not work in y/MyJsp.jsp.
<% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %>
In a separate test, I did something simliar with Java files and content assist works in any case. The problem only occurs with .jsp files.
Here is my project directory tree:
C:\temp\test C:\temp\test1 C:\temp\test\.myeclipse C:\temp\test\src C:\temp\test\WebRoot C:\temp\test\x C:\temp\test\.classpath C:\temp\test\.mymetadata C:\temp\test\.project C:\temp\test\WebRoot\META-INF C:\temp\test\WebRoot\WEB-INF C:\temp\test\WebRoot\META-INF\MANIFEST.MF C:\temp\test\WebRoot\WEB-INF\classes C:\temp\test\WebRoot\WEB-INF\lib C:\temp\test\WebRoot\WEB-INF\web.xml C:\temp\test\x\MyJsp.jsp C:\temp\test1\MyJsp.jsp
Here is my MyEclipse configuration summary:
*** Date: Tue May 23 16:26:49 EDT 2006 *** System properties: OS=WindowsXP OS version=5.1 Java version=1.5.0_05 *** MyEclipse details: MyEclipse Enterprise Workbench Version: 4.1.1 GA Build id: 20060309-4.1.1-GA *** Eclipse details: Eclipse SDK Version: 3.1.2 Build id: M20060118-1600 Eclipse Platform Version: 3.1.2 Build id: M20060118-1600 Eclipse RCP Version: 3.1.2 Build id: M20060118-1600 Eclipse Java Development Tools Version: 3.1.2 Build id: M20060118-1600 Eclipse Plug-in Development Environment Version: 3.1.2 Build id: M20060118-1600 Eclipse Project SDK Version: 3.1.2 Build id: M20060118-1600 Eclipse startup command=-os win32 -ws win32 -arch x86 -launcher C:\Program Files\eclipse.3.1.2\eclipse.exe -name Eclipse -showsplash 600 -exitdata bf4_60 -vm C:\WINDOWS\system32\javaw.exe
Here is the MyEclipse startup command:
"C:\Program Files\eclipse.3.1.2\eclipse.exe" -vmargs -Duser.language=en -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M -Dosgi.splashLocation="C:\Program Files\MyEclipse.4.1.1\eclipse\MyEclipseSplash.bmp"
I appreciate any help. I have found other posts along this line, but nothing was helpful.
Rob
Riyad KallaMemberThere was quite a long thread about this recently and the users confirmed that it’s fixed in MyEclipse 5.0M1. If you had the time, would you be able to download Eclipse 3.2RC5 and MyEclipse 5.0M1, install them to new directories then create a new workspace and try your test again?
Rob ConawayMemberThank you for the reply. As I mentioned in another post, I had tried 5.0M1 without success. However, after your message, I managed to make it work. It was some combination of recreating the workspace, -clean, and hand-waving. If it gives me trouble again, I’ll try to come up with something reproducible.
Riyad KallaMemberRob I’m glad it’s working now, I would point out that “Hand waving” is a very important part of creating a new workspace, I’m glad you found that out 😉
-
AuthorPosts