microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.4k stars 29.33k forks source link

Go To Definition not working #208231

Closed lcsqlpete closed 7 months ago

lcsqlpete commented 7 months ago

Type: Bug

In a PHP class file, right-click on a function like this

$result = self::processRemovals_checkParameters()

and select Go To Definition.

Actual result: message "No definition found for processRemovals_checkParameters".

Expected result:The cursor jumps to the function. Note that the function exists in the class files a s private function and is executed correctly at run time.

VS Code version: Code 1.87.2 (863d2581ecda6849923a2118d93a088b0745d9d6, 2024-03-08T15:21:31.043Z) OS version: Darwin x64 19.6.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz (4 x 3200)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|1, 1, 2| |Memory (System)|32.00GB (6.67GB free)| |Process Argv|--crash-reporter-id 5af32177-13d8-4b6f-b795-cbf22dd13792| |Screen Reader|no| |VM|0%|
Extensions (13) Extension|Author (truncated)|Version ---|---|--- dbclient-jdbc|cwe|1.3.4 vscode-mysql-client2|cwe|7.1.1 mustache|daw|1.1.1 vscode-eslint|dba|2.4.4 gitlens|eam|14.9.0 vscode-html-css|ecm|2.0.9 php-intellisense|fel|2.3.14 todo-tree|Gru|0.0.226 youtrack-issues|hud|1.0.2 rest-client|hum|0.25.1 vscode-phpfmt|kok|1.1.37 vscode-JS-CSS-HTML-formatter|lon|0.2.3 tabsort|oma|1.1.5 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 accentitlementst:30887150 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:30979542 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp1r3:30958155 dsvsc020:30976470 ```
vscodenpa commented 7 months ago

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.

Happy Coding!

lcsqlpete commented 7 months ago

Start extension bisect didn't identify the extension, however I believe it is PHP Intellisense since Go To Definiton is not an option if I disable it, and the docs include a description of Go To Definition. I have opene an issue on the github site for PHP Intellisense.