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 163494 - No code completion for non-project files
Summary: No code completion for non-project files
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 3 votes (vote)
Assignee: Ondrej Brejla
URL: http://www.youtube.com/watch?v=EQd6mW...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-23 14:33 UTC by niverin
Modified: 2012-04-12 11:59 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description niverin 2009-04-23 14:33:31 UTC
No auto-completion for functions and methods when editing single file that is not associated to any project (when file 
is opened via Open File, RemoteFS or Drag & Drop).

Only variables are auto-completed (not Class variables). 

Tested with *.php and *.js files.

Same issue in all NB versions (also in the latest builds up to this date).
Comment 1 Tomas Mysik 2009-04-24 09:07:27 UTC
Radku, have a look at the URL (video on YouTube). Thanks.
Comment 2 Tomas Mysik 2009-04-24 09:12:49 UTC
Filipe, maybe P2 - your opinion?
Comment 3 Filip Zamboj 2009-04-24 09:48:30 UTC
P2
do you guys think this may be done to fcs?
btw, has this ever been implemented?  
Comment 4 niverin 2009-04-24 13:30:58 UTC
Thank you, guys.
I am sorry, but what does mean "FCS"?
I Googled it and found only "Future Combat System" :)
Dík :)
Comment 5 rmatous 2009-05-04 16:07:00 UTC
FCS == next release

AFAIK - never implemented

Fixing this issue actually means to implement alternative CC code for this case because no idx for such a file outside
project. I don't plan to spend a week or more on it now.

Do you find it really P2?
Comment 6 Filip Zamboj 2009-05-04 16:38:03 UTC
well, honestly ... I didn't see people complaining about this so much. Editing file not being in project is rare I guess
... so P3 then. 
Comment 7 niverin 2009-05-04 22:19:35 UTC
Hi,

when there is a support for PHP in Netbeans, there should be also full support for remote editing I think - because it
is a web language and editing via FTP is a daily bread for many of PHP developers (including me).
Also I think that many of them will uninstall NetBeans after opening their single .php file when see there is no
autocomplete feature for their functions...although it is not such important feature, it is quite "basic feature".
And they don't want to write you or don't have time to do it.

When this issue is solved, Netbeans will be perfect IDE for me!

Thank you!
Comment 8 Tomas Mysik 2009-05-05 13:25:48 UTC
> [...] editing via FTP is a daily bread for many of PHP developers [...]

In fact, not a PHP issue. See issue #154446 for more information. However, for good code completion, you still
need the whole project - please, read the next paragraph.

> [...] opening their single .php file [...]

Well, NetBeans uses projects and not files as their primary "units" - so it can provide code completion etc. for all
the project files. Editing a single (not only) PHP file has lower priority for us - sorry, resources are limited and we
try to do our best to implement features that are the most wanted (measured by votes, duplicates, general
feedback from community).
Comment 9 david_d 2010-04-10 14:47:07 UTC
I would very much like to see this implemented.

It took a lot of searching before I even discovered that the reason for the lack of code completion was because I was using non-project files.

I am a php and web programmer, and I do more support work than development. This means I work on many different php applications, and it is an extra burden of work to set up new projects every time I want to investigate php files from different application sources.

This bug is the only reason I am still using Eclipse instead of NetBeans.

Thanks, David.
Comment 10 david_d 2010-04-11 12:46:35 UTC
(In reply to comment #9)
> I would very much like to see this implemented.
> 
> It took a lot of searching before I even discovered that the reason for the
> lack of code completion was because I was using non-project files.
> 
> I am a php and web programmer, and I do more support work than development.
> This means I work on many different php applications, and it is an extra burden
> of work to set up new projects every time I want to investigate php files from
> different application sources.
> 
> This bug is the only reason I am still using Eclipse instead of NetBeans.
> 
> Thanks, David.

Apologies for the double post: but I want to make a correction and add to my above comment:
In fact Eclipse is the same as NB in this regard, i.e. for Non-project files, code completion only covers basic language constructs but not the language function libs.
Would it be possible to ammend NB so that it creates some sort of 'default' project for the editing of non-project files, just for the purpose of enabling code completion?
Trying to find a work-around, I tried including the php directory of NB into the php Global Include Path, hoping that might make it pick up the php functions, but no luck.
Can you think of any other work-around that might help? Some way of making one single project that can be used for various files from varying locations across the filesystem?
Thanks for looking at this.
David
(using Windows XP, NB 6.8/6.9M1)
Comment 11 Filip Zamboj 2010-09-15 12:28:48 UTC
batch reassigning