Giter Site home page Giter Site logo

Comments (18)

stormpat avatar stormpat commented on June 18, 2024 32

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.

mubisco avatar mubisco commented on June 18, 2024 2

@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.

AFwcxx avatar AFwcxx commented on June 18, 2024 2

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.

rosmanov avatar rosmanov commented on June 18, 2024 1

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.

dvaqueiro avatar dvaqueiro commented on June 18, 2024

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.

mubisco avatar mubisco commented on June 18, 2024

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.

marlonfan avatar marlonfan commented on June 18, 2024

Hi guys, I don't see this problem in my environment.

Can you turn on verbose mode so I can see CocInfo Output?

@mubisco @dvaqueiro @AFwcxx

from coc-phpls.

AFwcxx avatar AFwcxx commented on June 18, 2024

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.
Screenshot 2019-12-17 at 13 18 45

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.

tomsteg avatar tomsteg commented on June 18, 2024

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.

marlonfan avatar marlonfan commented on June 18, 2024

@AFwcxx @dvaqueiro @mubisco @tomsteg Hi, please update to latest version. Does it work?

from coc-phpls.

Norbytus avatar Norbytus commented on June 18, 2024

Hm i have this problem too, after last update, but before updae all was normal

from coc-phpls.

marlonfan avatar marlonfan commented on June 18, 2024

@Norbytus Because of some problems with the upstream LSP server, it should have been fixed

from coc-phpls.

AFwcxx avatar AFwcxx commented on June 18, 2024

@AFwcxx @dvaqueiro @mubisco @tomsteg Hi, please update to latest version. Does it work?

Seems like it's still behaving the same.

from coc-phpls.

Terseus avatar Terseus commented on June 18, 2024

@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.

tomsteg avatar tomsteg commented on June 18, 2024

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.

tomsteg avatar tomsteg commented on June 18, 2024

@stormpat Yes, that fixed everything. Thank you very much. Great and simple.

from coc-phpls.

Terseus avatar Terseus commented on June 18, 2024

I can confirm that the issue goes away after deleting the coc-phpls cache.

Thanks a lot for the info @stormpat ^_^

from coc-phpls.

dvaqueiro avatar dvaqueiro commented on June 18, 2024

Yes, remove the cache solve the problem in my case. Thanks

from coc-phpls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.