This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 206411 - JSP intellisense does not work for free-form project
Summary: JSP intellisense does not work for free-form project
Status: RESOLVED INCOMPLETE
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Freeform (show other bugs)
Version: 7.0.1
Hardware: PC Windows 7 x64
: P4 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-14 22:13 UTC by csbubbles
Modified: 2013-07-26 09:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Java editor (183.85 KB, image/jpeg)
2011-12-15 22:41 UTC, csbubbles
Details
JSP editor (129.34 KB, image/jpeg)
2011-12-15 22:42 UTC, csbubbles
Details
Settings (78.21 KB, image/jpeg)
2011-12-15 22:43 UTC, csbubbles
Details

Note You need to log in before you can comment on or make changes to this bug.
Description csbubbles 2011-12-14 22:13:52 UTC
I have a Java free-form project with several folders which contain JSP files. When I open some of those files I can see that highlighting work fine, but, unfortunately, intellisense does not at all. That means when I press Ctrl-Space keys I always get "no suggestions" popup message.

Can anyone help?

OS: MS Windows 7 x64
Comment 1 Martin Janicek 2011-12-15 10:05:46 UTC
Reassigning to Freeform
Comment 2 David Konecny 2011-12-15 19:30:20 UTC
Does everything works fine for Java files? Classpath configuration would be first culprit I would have a look at.
Comment 3 csbubbles 2011-12-15 22:39:59 UTC
Everything works fine with .java files. I have two separate source folders for .java and .jsp files, but they use absolutely the same classpath (checkbox 'Separate Classpath for Each Source Package Folder' disabled in settings). In .jsp files I even cannot get auto-complete for standard Java classes inside the scriplets.
Comment 4 csbubbles 2011-12-15 22:41:40 UTC
Created attachment 114239 [details]
Java editor
Comment 5 csbubbles 2011-12-15 22:42:14 UTC
Created attachment 114240 [details]
JSP editor
Comment 6 csbubbles 2011-12-15 22:43:00 UTC
Created attachment 114241 [details]
Settings
Comment 7 csbubbles 2011-12-15 22:43:37 UTC
I have added some screenshots to show what I described earlier.
Comment 8 David Konecny 2013-07-25 01:08:31 UTC
I cannot reproduce the problem. A test project illustrating the issue would help. On JSP editor screenshot it looks like JSP files are under Java packages?? That would be wrong - they should be under Web Document root.
Comment 9 csbubbles 2013-07-25 02:12:32 UTC
I don't have that exact project right now (it was from the previous job), but as far as I remember, it was an ant-based project, definitely not a web one. Though the .jsp files were in the directory where they were supposed to be for the correct .war file creation.

Regardless of what the project was and even whether the .jsp files were located in some strange directories, I happen to disagree with the "that would be wrong" statement. If you open a .jsp file, it is expected to be handled as a .jsp file with regard to the intelligence support. As you can see from the screenshots, the highlighting worked fine for the .jsp file.

Please try to reproduce it by creating an ant-project out of NetBeans with jsp files in it. Then open that project in NetBeans ("create from an existing build.xml file" or something like that, as far as I remember), and I believe you would reproduce the issue just fine.
Comment 10 csbubbles 2013-07-25 02:16:11 UTC
PS In the initial description I was writing "a Java free-form project" (I think this is one of the options in NetBeans to create a project), you can also try that one. And please note that essentially in such projects people can have .jsp files in whichever folders they want to.
Comment 11 David Konecny 2013-07-25 02:45:02 UTC
I should have said "that would be wrong in context of NetBeans IDE because JSP files are expected under Web Document Root". I agree that users can put there files anywhere they want but that does not mean that IDE will be able to assist them always equally well. Putting JSP into a Java package is like putting Java file into a non-Java package and expecting that Java editor will be able to work,  provide code completion, compile file on save, etc. Sometimes maybe but in many cases it will be a failure. And in such cases I too would suggest to place Java files under java package to resolve the issue. :-)

Anyway it sounds like you do not have this problem anymore and while possibly the defect is still valid and exists it is not worth fixing it. IMO.
Comment 12 csbubbles 2013-07-25 03:06:29 UTC
That's correct, I am not working with JSP right now, and using NetBeans for plain Java only.

Regarding your last phrase, my personal opinion is that if the NetBeans dev team is going to make the product better and improve its quality, it's worth fixing any bug, especially taking into account that not all your customers file bugs (they can be too lazy or for any other reason, it doesn't really matter). My point here is that I might be not the only person who faced that issue, and if I personally don't work with JSP at the moment, maybe there are people who do.

PS Just my opinion, of course...
Comment 13 David Konecny 2013-07-25 22:29:46 UTC
In general I agree with what you are saying. We do not lack bug reports though. :-) And out of hundreds of P3 reports some are more severe and some less. This one fits the less category.
Comment 14 csbubbles 2013-07-26 09:58:55 UTC
Okay, good, so let's close it then for now. If I happen to face this issue again in future, I will just find this bug and reopen it attaching a sample project, so you would be able to reproduce it.