coc-phpls icon indicating copy to clipboard operation
coc-phpls copied to clipboard

Telemetry ApplicationInsights error

Open Janghou opened this issue 4 years ago • 6 comments

Great extension, but I'm getting a ApplicationInsights:CorrelationIdManager [ { Error: connect ECONNREFUSED 0.0.0.0:443 every time I edit a php file. Also initially high CPU.

Steps to reproduce the behavior:

  1. open any php file
  2. :CocInfo

Desktop (please complete the following information): Kubuntu 18.04 VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jun 06 2019 17:31:41) Included patches: 1-1453

What is the use of Application Insights. Telemetry? Can it be disabled or removed?

Janghou avatar Nov 29 '19 10:11 Janghou

this process not belongs to coc-phpls

marlonfan avatar Nov 29 '19 11:11 marlonfan

To what then?

:CocInfo

## Output channel: phpls

[Info  - 10:44:23 AM] Initialising intelephense 1.2.3
[Info  - 10:44:23 AM] Reading state from ~/.config/coc/extensions/coc-phpls-data/5ec608e0.
ApplicationInsights:CorrelationIdManager [
  Error: connect ECONNREFUSED 0.0.0.0:443
      at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1056:14) {
    errno: 'ECONNREFUSED',
    code: 'ECONNREFUSED',
    syscall: 'connect',
    address: '0.0.0.0',
    port: 443
  }
]
[Info  - 10:44:23 AM] Initialised in 152 ms
[Info  - 10:44:23 AM] Intelephense 1.2.3
[Info  - 10:44:23 AM] Indexing started.
[Info  - 10:44:23 AM] Indexing ended. 1 files indexed in 0s.
[Info  - 10:44:23 AM] Writing state to ~/.config/coc/extensions/coc-phpls-data/5ec608e0.
[Info  - 10:44:23 AM] Wrote state in 0.2s.

Janghou avatar Dec 01 '19 09:12 Janghou

Let me check. In addition, I suggest you upgrade the version of coc-phpls

marlonfan avatar Dec 01 '19 11:12 marlonfan

Shouldn't that be done automatically?

You don't need to update coc extensions manually, coc detects acceptable new version of installed extension everyday (by default) the first time it starts. When it finds a new version of an extension, it will update it for you automatically.

https://github.com/neoclide/coc.nvim/wiki/Using-coc-extensions

Otherwise I have to file another bug.

Janghou avatar Dec 01 '19 14:12 Janghou

coc-phpls latest version is 2.1.2, your version's 1.2.3. it's old version

marlonfan avatar Dec 01 '19 14:12 marlonfan

Yes 2.1.2 is the version I use. Just checked that with :CocList.

The error relates to intelephense 1.2.3, which I suppose is something that is used in coc-phpls

I guess: https://github.com/bmewburn/vscode-intelephense

There is no intelephense 2.1.2.

Janghou avatar Dec 02 '19 11:12 Janghou