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 253283 - "go to declaration" fails with not-standard php extension (i.e. .phph , .phpo etc)
Summary: "go to declaration" fails with not-standard php extension (i.e. .phph , .phpo...
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.2
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-02 08:08 UTC by boedociclon
Modified: 2015-07-31 11:27 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (15.41 KB, image/png)
2015-07-31 03:54 UTC, junichi11
Details

Note You need to log in before you can comment on or make changes to this bug.
Description boedociclon 2015-07-02 08:08:16 UTC
I have function my_function declared in file functions.phpo which is required in file index.php where I call my_function. If I ctrl+click on function name NB does not open functions.phpo file.
I have already added .phpo extension in tools/options/miscellaneous/files and associated it with php MIME type.
If I rename functions.phpo into functions.php everything works fine.
Thanks for helping.
Regards,
Davide.

Ps: form topic link: http://forums.netbeans.org/viewtopic.php?p=164867
Comment 1 junichi11 2015-07-30 00:44:46 UTC
(In reply to boedociclon from comment #0)
> I have already added .phpo extension in tools/options/miscellaneous/files
> and associated it with php MIME type.

Please try to restart IDE.
Thanks.
Comment 2 boedociclon 2015-07-30 09:08:40 UTC
Still doesn't work.
Now NB lists in Navigator all classes, functions, properties etc. declared inside a .phpo/.phph file; but when I command+click / command+hover on functions names used in another file NB doesn't tell me where the declaration is.
Comment 3 junichi11 2015-07-31 03:54:17 UTC
Created attachment 155071 [details]
screenshot

(In reply to boedociclon from comment #2)
> but when I command+click / command+hover on
> functions names used in another file NB doesn't tell me where the
> declaration is.

I cannot reproduce that...

One idea:
Please try to remove your user directory(and cache?) of NetBeans (You can get the path in the Help > About dialog). Then, try to set mime-type again.
*NOTE* All your configurations, plugins, e.t.c. are initialized.

Thanks.
Comment 4 boedociclon 2015-07-31 07:47:04 UTC
Finally it works!

I deleted cache (on Mac: ~/Library/Caches/NetBeans/${netbeans_version}/) and restarted NB

Thank you so much!

My best regards.
Comment 5 junichi11 2015-07-31 10:39:35 UTC
I'm glad to hear that :)
Comment 6 junichi11 2015-07-31 10:46:38 UTC
Tomas, what's a correct status in this case?

Thanks.
Comment 7 Tomas Mysik 2015-07-31 11:10:21 UTC
(In reply to junichi11 from comment #6)
> Tomas, what's a correct status in this case?
> 
> Thanks.

WORKSFORME because it worked for you without any changes in the code and it was a relevant issue (otherwise it would be INVALID).

Thanks.
Comment 8 junichi11 2015-07-31 11:27:47 UTC
(In reply to Tomas Mysik from comment #7)
> WORKSFORME because it worked for you without any changes in the code and it
> was a relevant issue (otherwise it would be INVALID).

Make sense. 
Thanks!