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 257301 - CTRL+Click navigation broken / auto project creation
Summary: CTRL+Click navigation broken / auto project creation
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks: 253339
  Show dependency tree
 
Reported: 2015-12-26 16:18 UTC by nordlichtxs
Modified: 2016-06-03 05:28 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nordlichtxs 2015-12-26 16:18:35 UTC
Hey!

I have a PHP project created in 8.0.2 or even some older version. I upgraded to 8.1 and CTRL+Click navigation stopped working on at least class names, method names and static class method names. Even when you define the class within the same file:
class AController {
 function x(){

 }
 static function y(){

 }
}
$a = new AController();
$a::y();
$a->x();

Cannot CTRL+Click navigate to AController, y or x. It does work for the native PHP classes.

A "feature" causing this might be the Netbeans project auto-creation.

My PHP project has the folder structure
php-project/
Folder1
Folder2
src/classes/AController.php
src/bower.json
src/package.json

Now Netbeans tries to be smart and converts the contents of src into its own HTML5 project. So when I open a file below src it thinks it is in another project. Very annoying. I tried to delete the nbproject folder but it just keeps coming back and I could not find a way to turn it off.

Worse, in the new project I cannot change any PHP related settings. Particularly short open tags (<? instead of <?php). Although I do have to say most of my files have <?php including the class files I tested with. So it would be nice to have the PHP settings in an HTML5 project as well.

Thanks for providing and maintaining the IDE. :)

Lisa
Comment 1 nordlichtxs 2015-12-26 16:23:55 UTC
I already closed netbeans, deleted the cache folder and restarted nb: /home/username/.cache/netbeans/8.1
Comment 2 Tomas Mysik 2016-06-03 05:28:40 UTC
(In reply to nordlichtxs from comment #0)
> A "feature" causing this might be the Netbeans project auto-creation.

Yes, this is the culprit. Fortunately, this is fixed in the dev version of NetBeans [1], I just verified it. Feel free to let us know if it still does not work for you.

Thanks.
[1] http://bits.netbeans.org/download/trunk/nightly/latest/

Product Version: NetBeans IDE Dev (Build 20160602-eb3cfce69024)
Java: 1.8.0_91; Java HotSpot(TM) 64-Bit Server VM 25.91-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_91-b14
System: Linux version 4.2.0-36-generic running on amd64; UTF-8; cs_CZ (nb)