Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Can't find references to variables or constant any-more (The "find references" functionnality seems broken for variables and constants)
Can't find references to variables or constant any-more [message #1821115] Wed, 05 February 2020 21:24 Go to next message
Mathieu Dubois is currently offline Mathieu DuboisFriend
Messages: 16
Registered: September 2018
Junior Member
Dear forum,

I have recently upgraded my linux box to Fedora 31 and the installation of eclipse from their repository is really unstable (often crashes). Therefore, I switched to using the installer from eclipse.org. So I have installed the PHP flavor from this installer and imported my projects.

This more or less works but for some reasons I can no longer find references to a variable/constant in my projects (more precisely, always find 0 references). Note that I can find references to functions and classes and I can access to the definitions of all objects (variables, constants, function and classes) with the usual shortcut (Ctrl + click or the contextual menu).

Do you have any idea ?

Some information:
- OS: Fedora 31
- Eclipse: 2019-09
- PDT: 7.0

Thanks in advance,
Mathieu
Re: Can't find references to variables or constant any-more [message #1821148 is a reply to message #1821115] Thu, 06 February 2020 10:41 Go to previous messageGo to next message
Mathieu Dubois is currently offline Mathieu DuboisFriend
Messages: 16
Registered: September 2018
Junior Member
I have tried to install Eclipse 2019-12 but the behaviour seems the same.
Re: Can't find references to variables or constant any-more [message #1821159 is a reply to message #1821148] Thu, 06 February 2020 12:29 Go to previous messageGo to next message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 289
Registered: March 2013
Senior Member
Have you something in logs? Window -> Show View -> Other -> Error Log

Make sure auto-build is enabled. Project -> Build Automatically

You can also re-build your workspace: Project -> Clean and select all


Re: Can't find references to variables or constant any-more [message #1821164 is a reply to message #1821159] Thu, 06 February 2020 12:55 Go to previous messageGo to next message
Mathieu Dubois is currently offline Mathieu DuboisFriend
Messages: 16
Registered: September 2018
Junior Member
Thanks for your help.

Dawid Pakula wrote on Thu, 06 February 2020 12:29
Have you something in logs? Window -> Show View -> Other -> Error Log

There is message at startup: Unable to retrieve the bundle from the URI: bundleclass://org.eclipse.launchbar.ui.controls/org.eclipse.launchbar.ui.controls.internal.LaunchBarControl

Dawid Pakula wrote on Thu, 06 February 2020 12:29

Make sure auto-build is enabled. Project -> Build Automatically

Auto-build was enabled.

Dawid Pakula wrote on Thu, 06 February 2020 12:29

You can also re-build your workspace: Project -> Clean and select all

I have tried that: build goes without any error but validation triggers a lot of errors. AFAICT they are all JS errors (our JS files are written in typescript but the extension is .js). The log is attached.
Re: Can't find references to variables or constant any-more [message #1821167 is a reply to message #1821164] Thu, 06 February 2020 13:05 Go to previous messageGo to next message
Mathieu Dubois is currently offline Mathieu DuboisFriend
Messages: 16
Registered: September 2018
Junior Member
I have tried to start from a fresh work space with a new project containing only the attached file: I can find references to the function get_answer but not to the variable answer.
  • Attachment: newfile.php
    (Size: 0.09KB, Downloaded 24 times)
Re: Can't find references to variables or constant any-more [message #1821170 is a reply to message #1821167] Thu, 06 February 2020 13:34 Go to previous messageGo to next message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 289
Registered: March 2013
Senior Member
This look like bug in PDT or DLTK. I'm not sure for now.

Re: Can't find references to variables or constant any-more [message #1821195 is a reply to message #1821170] Thu, 06 February 2020 21:31 Go to previous messageGo to next message
Mathieu Dubois is currently offline Mathieu DuboisFriend
Messages: 16
Registered: September 2018
Junior Member
Thanks for confirming this. Can you reproduce this bug or is this something related to my installation ?

[Updated on: Thu, 06 February 2020 21:32]

Report message to a moderator

Re: Can't find references to variables or constant any-more [message #1821207 is a reply to message #1821195] Fri, 07 February 2020 08:51 Go to previous messageGo to next message
Mathieu Dubois is currently offline Mathieu DuboisFriend
Messages: 16
Registered: September 2018
Junior Member
Please find attached a slightly more complete version of the test file.

I can find references to the class, methods and functions but not to the variables or the constant.

I was about to report a bug on PDT bugzilla. If you think that helps, just tell me.
  • Attachment: newfile.php
    (Size: 0.35KB, Downloaded 26 times)
Re: Can't find references to variables or constant any-more [message #1821213 is a reply to message #1821207] Fri, 07 February 2020 09:24 Go to previous messageGo to next message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 289
Registered: March 2013
Senior Member
Bugzilla will be best place for that, and will allow you to track ;)

Re: Can't find references to variables or constant any-more [message #1821220 is a reply to message #1821213] Fri, 07 February 2020 10:33 Go to previous messageGo to next message
Mathieu Dubois is currently offline Mathieu DuboisFriend
Messages: 16
Registered: September 2018
Junior Member
It's reported in https://bugs.eclipse.org/bugs/show_bug.cgi?id=559917.

[Updated on: Tue, 01 September 2020 09:53]

Report message to a moderator

Re: Can't find references to variables or constant any-more [message #1828166 is a reply to message #1821220] Wed, 03 June 2020 07:58 Go to previous messageGo to next message
sho show is currently offline sho showFriend
Messages: 1
Registered: May 2020
Junior Member
I even have tried that: build goes without any errors however validation triggers a number of mistakes of . AFAICT they're all JS errors (our JS documents are written in typescript however the extension is .Js). The log is connected.
Re: Can't find references to variables or constant any-more [message #1828192 is a reply to message #1828166] Wed, 03 June 2020 14:29 Go to previous message
Mathieu Dubois is currently offline Mathieu DuboisFriend
Messages: 16
Registered: September 2018
Junior Member
sho show wrote on Wed, 03 June 2020 07:58
I even have tried that: build goes without any errors however validation triggers a number of mistakes of . AFAICT they're all JS errors (our JS documents are written in typescript however the extension is .Js). The log is connected.


What was the purpose of this message ?
Previous Topic:Operation lockout after starting multiple operations
Next Topic:Composer Vendor Folder being removed
Goto Forum:
  


Current Time: Mon Apr 19 17:41:47 GMT 2021

Powered by FUDForum. Page generated in 0.02798 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top