How to set up the stub dir correctly? #2822
Unanswered
robmck1995
asked this question in
Q&A
Replies: 1 comment 4 replies
-
The stubs are certainly distributed in the PHAR - which version of Phpactor are you using? But goto definition will not work on stubs in the PHAR - as you cannot open the file in your IDE client (unless your IDE client has special support for opening files in PHARs) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys, new to phpactor and I'm sure I'm just going about this wrong.
I have a custom LSP client that wraps various language servers and does more complex operations like building call hierarchies. So I need the configuration to be bulletproof
I am using phpactor in language server mode. The issue I'm having is when I try to call GoToDefinition on a built-in symbol I get this
Based on
phpactor config:dumpthis appears to be coming fromSpecifically, the second entry, which I believe means that it's expecting the stubs to be packaged with the phar? But the github release phar does not have these stubs, correct? And the
composer install"manual installation` route in the docs doesn't appear to create a phar either?This config comes from adding a
.phpactor.jsonas followsSo it appears the stub_paths just appends rather than replaces the default?
So based on all of this it seems like there are some options to resolve, but I don't know how to accomplish them
Thanks in advance! Happy to clarify anything unclear.
Beta Was this translation helpful? Give feedback.
All reactions