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.
Summary: | No code completion for built-in functions after enabling modules by ergonomics | ||
---|---|---|---|
Product: | editor | Reporter: | menic <menic> |
Component: | CSL (API & infrastructure) | Assignee: | Vitezslav Stejskal <vstejskal> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | emononen, fzamboj, mmirilovic, msauer, pjiricka, rmatous, tmysik, tslota |
Priority: | P1 | Keywords: | ERGONOMICS, REGRESSION |
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
message.log
example class NOT PATCH, JUST HINT - simply these changes (omitting caches) fixes the problem |
Description
menic
2009-04-17 20:40:12 UTC
still not working for you? wORKS FOR ME, Filip, can you test somehow i fixed it, but now problem returns. I think it is a problem with netbeans user profile. return? What does it mean? After downloading/using new dev builds or 6.7build. Or just starting with fresh userdir? Which build do you use? 100% reproducibel == simply doesn't work, or just sometimes? Thanks for your comments! Currently I am using todays relase and CC for php functions does not work. I can send you a log if you want to... ok, send me log and could you send me the url link to todays release to be sure and also steps how to reproduce, thanks still not working? any details? I have attached a message.log Created attachment 82572 [details]
message.log
Product Version: NetBeans IDE Dev (Build 200905210201) - downloaded from smetiste.czech Java: 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02 well, I maybe reproduced. Radek, please evaluate if it is really not working as expected: 1. create new php file in new php project 2. press ctrl+space for php (between <? ?>) 3. it doesn't offer any functions << PROBLEM 1 4. create function <? function myFunction() {return "OK";} ?> 5. invoke cc after function declaration 6. myFunction is not offered after ctrl+space << PROBLEM 2 Tested with "fresh userdir", followed your steps and works for me as expected (no problem found): Build: NetBeans IDE Dev (Build 200905210201) (taken just php build) Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-b02; Sun Microsystems Inc. I can try with jdk 1.6 also. Filip, can you reproduce with fresh userdir? Also not reproducible on: Product Version = NetBeans IDE Dev (Build 200905210201) Operating System = Linux version 2.6.24-24-generic running on i386 Java; VM; Vendor = 1.6.0_07; Java HotSpot(TM) Client VM 10.0-b23; Sun Microsystems Inc. Runtime = Java(TM) SE Runtime Environment 1.6.0_07-b06ducible Also not reproducible(php only): Product Version = NetBeans IDE Dev (Build 200905210201) Operating System = Linux version 2.6.24-24-generic running on i386 Java; VM; Vendor = 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02; Sun Microsystems Inc. Runtime = Java(TM) SE Runtime Environment 1.6.0_13-b03 Java Home = /usr/lib/jvm/jdk1.6.0_13/jre also not reproducible: with full IDE Probably RANDOM, if so I would suspect this to be infrastructure (indexing) bug rather than php bug. Please, evaluate, might happen that there are similar reports from other teams, anyway easily reassign back I can reproduce now with full IDE, so I'll strive to investigate deeply The problem occures after first start when php is activated (enabled) - features on demand in action. After rebooting it everything works fine. -not reproducible on php-only build -reproducible with Feature On Demanand will investigate, P2 for now (seems to be very unpleasant bug) Product Version: NetBeans IDE Dev (Build 200905220201) Java: 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02 it's daily build from smetiste.czech 1. cc doesn't offer php function 2. doesn't offer method's of classes inside class 3. no suggestions in case like this class A() { public function _construct() {} } $class = new <- press ctrl + space => no suggestions 4. no offering class variables class A() { var $conn; public function _construct() { $this-> ctrl+space => no suggestion } } @radek: you need some logging for this as well? I can send you project I used for testing. It's P1 to be fixed to 67. reproduced in RUBY in Product Version: NetBeans IDE Dev (Build 200905220201) Java: 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02 looks like not PHP specific problem. CC works after IDE restart. I really don't expect to be php specific bug. If its reproducible also on Ruby then reassigning to CSL (I would guess Features on demand is in game) for better evaluation. "I can send you project I used for testing." - yes please attach the project here. I am attaching just one class here ... project has more than allowed post size here. go to line 225, for example, and write $this-> then press ctrl+space and you get no suggestions what's not correct. i send you project by email. Created attachment 82666 [details]
example class
Created attachment 82670 [details]
NOT PATCH, JUST HINT - simply these changes (omitting caches) fixes the problem
Thanks Radku for analyzing this. This is not P1, definitely not a showstopper for RC1, maybe for FCS. Making it back to P2 status. I hope that everyone realizes that a workaround exists - restart the IDE (if I read all the comments correctly). BTW is it true that after restart or without ergonomics this works ok in both PHP and Ruby? I think David you understand it right. From my point of view this is showstopper for FCS. I cannot imagine to release 6.7 with this bug. 1. the first impression is that no editor features work for ruby, php (this first start then will often be the last one) 2. that majority of people according statistics use full (now ergonomics) IDE BTW: I cannot reproduce on Build 200905161401 but on Build 200905210201 its 100% reproducible for me. Shouldn't be so difficult to find the cause because its 100% reproducible and seems to be last moment regression I agree with Radek - back to P1 - stopper for FCS http://hg.netbeans.org/jet-main/rev/f22ea286a5e4 It should work now, please test and let me know. I'll verify once this is in main. I didn't reproduce this in web-main before but did in main. However, if you ensure me there is no difference for this bug I'll verify from jet-main. Thanks. wait for a fix into NB 6.7 fzamboj, could you please verify in the build from jet-main ? http://bertram.netbeans.org/hudson/job/jet-main/714/artifact/nbbuild/NetBeans-dev-jet-main-714-on-090526-full.zip ... thanks in advance. verified in provided build! please integrate into 67RC1 btw, I'll mark as verified once it's verified in RC1 build Integrated into 'main-golden', will be available in build *200905270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/f22ea286a5e4 User: Vita Stejskal <vstejskal@netbeans.org> Log: #162982 - register separate PathRecognizer for each language so that adding/removing languages (FoD) in the IDE correctly refreshes the classpath ids cache Patch reviewed. Thanks. Transplanted to release67 as http://hg.netbeans.org/release67/rev/52d7a4b20da1. verified in release67 clone, changeset: 665c1089cf53 posted here: http://forums.netbeans.org/viewtopic.php?t=11572 as born2code PHP code completion / documentation works fine when creating a new document. Does not work when opening a file from FTP (WinSCP) Uninstalled 6.5 again today - installed 6.7.1. Chose to import old settings. Opened file for editing from FTP. No code completion or documentation while inside the name of a PHP function. Opened a "Recent File". Same issue. (strlen, html_entity_decode, etc.). Opened a php file from hard drive (File -> Open..) Same issue. Created new project, typed in htm - hit CTRL+SPACE, proper listing and documentation displayed. Should show possible functions & documentation depending on where cursor is. phpjoel, please file a new defect in the php/editor category. This issue is different and was fixed in 6.7. Thanks |