Comments (18)
Same issue
vim version: NVIM v0.4.3
node version: v13.3.0
coc.nvim version: 0.0.74-d83536aa4e
term: xterm-kitty
platform: darwin
EDIT.
This seemed to be a cache issue. Anyone still facing this delete the cache, restart vim and let coc reindex the files.
> rm -rf ~/.config/coc/extensions/coc-phpls-data
from coc-phpls.
@AFwcxx @dvaqueiro @mubisco @tomsteg Hi, please update to latest version. Does it work?
Currently with coc-phpls 2.1.6
Still marks core functions as deprecated
from coc-phpls.
Same issue
vim version: NVIM v0.4.3 node version: v13.3.0 coc.nvim version: 0.0.74-d83536aa4e term: xterm-kitty platform: darwin
EDIT.
This seemed to be a cache issue. Anyone still facing this delete the cache, restart vim and let coc reindex the files.
> rm -rf ~/.config/coc/extensions/coc-phpls-data
Use this to rectify issue.
from coc-phpls.
The same problem here.
vim version: NVIM v0.4.3
node version: v12.13.1
coc.nvim version: 0.0.74-bc017b02e6
term: screen-256color
platform: linux
coc-phpls: 2.1.7
from coc-phpls.
Describe the bug
Same issue, all core functions mark as deprecated: array_merge, strtoupper, bin2hex, ....
Desktop (please complete the following information):
vim version: NVIM v0.3.8
node version: v8.16.2
coc.nvim version: 0.0.74-317e3212e3
term: screen-256color
platform: linux
Maybe this can help:
Output channel: phpls
[Info - 15:16:20] Initialising intelephense 1.3.5
[Info - 15:16:20] Reading state from /home/dvaqueiro/.config/coc/extensions/coc-phpls-data/545e14fb.
[Info - 15:16:22] Initialised in 2398 ms
[Info - 15:16:22] Intelephense 1.2.3
ApplicationInsights:CorrelationIdManager [ { Error: getaddrinfo ENOTFOUND dc.services.visualstudio.com dc.services.visualstudio.com:443
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
errno: 'ENOTFOUND',
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'dc.services.visualstudio.com',
host: 'dc.services.visualstudio.com',
port: 443 } ]
[Info - 15:18:20] Initialising intelephense 1.3.5
from coc-phpls.
Describe the bug
Same issue, all php native functions tagged as deprecated.
Desktop (please complete the following information):
vim version: NVIM v0.4.3
node version: v12.13.1
coc.nvim version: 0.0.74-d83536aa4e
term: screen-256color
platform: linux
Maybe this can help:
Output channel: phpls
[Info - 15:16:53] Initialising intelephense 1.3.5
[Info - 15:16:53] Reading state from /home/xbellon/.config/coc/extensions/coc-phpls-data/5e572f5e.
[Info - 15:16:54] Initialised in 781 ms
[Info - 15:16:54] Intelephense 1.2.3
[Info - 15:16:55] Indexing started.
[Info - 15:16:55] Indexing ended. 1 files indexed in 0s.
[Info - 15:16:55] Writing state to /home/xbellon/.config/coc/extensions/coc-phpls-data/5e572f5e.
[Info - 15:16:55] Wrote state in 0.7s.
from coc-phpls.
Hi guys, I don't see this problem in my environment.
Can you turn on verbose mode so I can see CocInfo Output?
from coc-phpls.
Not sure how to turn on the verbose mode,
But when I add the line as shown in the screenshot, the intelephense show that the function base64_decode is deprecated.
This is what shown in the coc log:
2019-12-17T13:16:41.396 INFO (pid:20444) [services] - registered service "highlight"
2019-12-17T13:16:41.471 INFO (pid:20444) [plugin] - coc 0.0.74-d83536aa4e initialized with node: v13.3.0
2019-12-17T13:16:41.477 INFO (pid:20444) [language-client-index] - highlight started with 20445
2019-12-17T13:16:41.561 INFO (pid:20444) [services] - highlight server state change: starting => running
2019-12-17T13:16:48.391 INFO (pid:20444) [language-client-index] - phpls started with 20450
2019-12-17T13:17:53.624 INFO (pid:20444) [completion-complete] - Results from: phpls
2019-12-17T13:17:54.428 INFO (pid:20444) [completion-complete] - Results from: around,buffer,phpls
2019-12-17T13:17:56.108 INFO (pid:20444) [completion-complete] - Results from: around,buffer,phpls
2019-12-17T13:17:56.806 INFO (pid:20444) [completion-complete] - Results from: around,phpls
2019-12-17T13:18:02.164 INFO (pid:20444) [completion-complete] - Results from: around,buffer
2019-12-17T13:18:02.318 INFO (pid:20444) [completion-complete] - Results from: around,buffer
from coc-phpls.
I get "[intelephense 1010] [E] Undefined function" for example for is_null, sleep, Exception .
Coc Log:
2019-12-18T11:16:07.986 INFO (pid:93964) [services] - registed service "languageserver.intelephense"
2019-12-18T11:16:07.988 INFO (pid:93964) [services] - intelephense state change: stopped => starting
2019-12-18T11:16:08.003 INFO (pid:93964) [services] - registed service "eslint"
2019-12-18T11:16:08.207 INFO (pid:93964) [language-client-index] - languageserver.intelephense started with 93969
2019-12-18T11:16:08.214 INFO (pid:93964) [language-client-index] - phpls started with 93970
2019-12-18T11:16:08.216 INFO (pid:93964) [plugin] - coc 0.0.74-bc017b02e6 initialized with node: v13.3.0
2019-12-18T11:16:08.240 INFO (pid:93964) [services] - registed service "json"
2019-12-18T11:16:08.240 INFO (pid:93964) [services] - Json language server state change: stopped => starting
2019-12-18T11:16:08.247 INFO (pid:93964) [language-client-index] - json started with 93973
2019-12-18T11:16:08.324 INFO (pid:93964) [services] - Json language server state change: starting => running
2019-12-18T11:16:08.327 INFO (pid:93964) [services] - service json started
2019-12-18T11:16:09.200 INFO (pid:93964) [services] - intelephense state change: starting => running
2019-12-18T11:16:09.201 INFO (pid:93964) [services] - service languageserver.intelephense started
from coc-phpls.
@AFwcxx @dvaqueiro @mubisco @tomsteg Hi, please update to latest version. Does it work?
from coc-phpls.
Hm i have this problem too, after last update, but before updae all was normal
from coc-phpls.
@Norbytus Because of some problems with the upstream LSP server, it should have been fixed
from coc-phpls.
@AFwcxx @dvaqueiro @mubisco @tomsteg Hi, please update to latest version. Does it work?
Seems like it's still behaving the same.
from coc-phpls.
@Norbytus Because of some problems with the upstream LSP server, it should have been fixed
Can confirm that with coc-phpls 2.1.7 the problem still exists, core functions and interfaces (e.g. \Serializable
) are marked as deprecated.
from coc-phpls.
I can confirm, that the problem still exists with coc-phpls 2.1.7. The error message is 'undefined function', when an error is marked on standard functions. There is an other problem, that maybe correlates: In my composer.json I have an autoload section for autoloading classes for psr-4 and classmap. Those classes are marked as 'undefined type', but in php on the server everything works fine.
from coc-phpls.
@stormpat Yes, that fixed everything. Thank you very much. Great and simple.
from coc-phpls.
I can confirm that the issue goes away after deleting the coc-phpls cache.
Thanks a lot for the info @stormpat ^_^
from coc-phpls.
Yes, remove the cache solve the problem in my case. Thanks
from coc-phpls.
Related Issues (20)
- Bug/feature/missingdocumentation: How to include phpunit tokens?
- intelephense folding "premium feature"? HOT 1
- How to make :Fold include final brace?
- Are there docs anywhere?
- Cannot read properties of null (reading 'hasOwnProperty') HOT 6
- bug? HOT 2
- .phpcs.xml file not being applied
- Enums support HOT 3
- Ignore Warnings & Errors On Next Line
- Feature request: Add support for inlay hints
- Feature Request: Jump to implementations HOT 1
- Upgrade intelephense to v1.9 HOT 4
- Upgrade intelephense to v1.10 HOT 1
- doesn't support readonly class syntax HOT 1
- 是否支持函数方法跳转?? HOT 7
- Phpls premium features are not working as expected HOT 6
- Variables annotation doesn't work
- Coc-references displays less results than it should
- Intelephense doesn't work with PHP short tags within <script></script>
- When there is a bit of soft link, it will always restart and cannot be used
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coc-phpls.