New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No Symbols Found for PHP #2823
Comments
I'm assuming it worked in the past. If so if you can build from git you could use bisect to find which commit broke it, then see what it did. Hint try reverting #2666 manually first before you try to learn to use bisect :) |
Current master does show symbols for me. |
@DevynCJohnson also check that Geany is recognising those files as PHP (Filetype in the status bar). |
@elextr , yes, Geany recognizes the file as PHP. I happened to notice that if I set the file-type to "HTML", then the symbols are listed. I still need to try Geany without that commit. I hope to report back soon. @eht16 , below is some code that (at least on my system) does not display symbols.
|
@DevynCJohnson that code shows symbols for me |
Oh wait, both @eht16 and I are on 1.38 with the number of the beast #2666 ctags PR that was after 1.37 IIRC. @DevynCJohnson maybe try current Git master. |
@elextr , I am on the master-branch. With both v1.37.1 and the master branch, I experience that issue. |
I may have found something. I tried disabling all of my plugins and then the symbols are listed. I will see which plugin is the culprit. |
Never mind about my last comment. The functions that were listed were JavaScript functions that were called in HTML with the PHP file. |
The below is from the latest master-branch code that I am currently using.
|
Hmmm, I thought if Geany was built from Git it said the HEAD when it was configured (sadly not the one when built), like:
At this point I'm out of immediate ideas. |
@elextr , you read that correctly. If JavaScript functions are in a |
Well, as I said I don't know how well (or not) thats handled, but I guess it doesn't affect why you get no symbols but I do for the code you pasted above. [Edit, all I did was paste it into a blank document, set the filetype to PHP and save it to /tmp] |
I found the cause of the issue. It was an ID-10-T error. More specifically, I had |
In both v1.37.1 and the code on the master-branch (running on Ubuntu 20.04) do not report any symbols for PHP code. Neither can I Ctrl+Click a symbol nor use "Go to Symbol Definition" to find the symbol definition. Other languages (like C) list the symbols on the file and allow me to go to the symbol definition. I have tried many PHP files and I verified that my PHP files are valid, yet Geany seems to not be able to parse out the symbols.
The text was updated successfully, but these errors were encountered: