Hello! Unable to use the extension.
How to fix: Restart vscode till next crash. Or... disable devsense and use another php intellisense.
Environment: Fedora 30, vscode 1.37.1, PHP 7.3.8, DevSense 1.0.3774.
Tried: disable all php extensions but devsense, reinstall devsense, different projects (code base).
When: Random behavior

[Error - 11:49:46 AM] Request textDocument/foldingRange failed.
Error: Connection got disposed.
at Object.dispose (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/node_modules/vscode-jsonrpc/lib/main.js:876:25)
at Object.dispose (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/lib/client.js:71:35)
at LanguageClient.handleConnectionClosed (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/lib/client.js:2143:42)
at LanguageClient.handleConnectionClosed (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/lib/main.js:150:15)
at closeHandler (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/lib/client.js:2130:18)
at CallbackList.invoke (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/node_modules/vscode-jsonrpc/lib/events.js:120:36)
at closeHandler (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/node_modules/vscode-jsonrpc/lib/main.js:226:26)
at CallbackList.invoke (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/node_modules/vscode-jsonrpc/lib/events.js:120:36)
at StreamMessageReader.fireClose (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/node_modules/vscode-jsonrpc/lib/messageReader.js:111:27)
at Socket.listen.readable.on (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/node_modules/vscode-jsonrpc/lib/messageReader.js:151:46)
at Socket.emit (events.js:187:15)
at Pipe.Socket._destroy._handle.close (net.js:606:12)

    Thank you for your feedback @EugeneT. May I ask you if there is another error stack trace / another log of the exception?

    It might be in the VSCode Output panel or in the developer tools (Help / Toggle Developer Tools, tab Console)

    We'll try to fix this within the next update.

      JakubMisek
      Caught another today:
      [Info - 3:34:38 PM] Connection to server got closed. Server will restart.
      [Error - 3:34:38 PM] Request textDocument/hover failed.
      Error: Connection got disposed.
      at Object.dispose (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/node_modules/vscode-jsonrpc/lib/main.js:876:25)
      at Object.dispose (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/lib/client.js:71:35)
      at LanguageClient.handleConnectionClosed (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/lib/client.js:2143:42)
      at LanguageClient.handleConnectionClosed (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/lib/main.js:150:15)
      at closeHandler (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/lib/client.js:2130:18)
      at CallbackList.invoke (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/node_modules/vscode-jsonrpc/lib/events.js:62:39)
      at Emitter.fire (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/node_modules/vscode-jsonrpc/lib/events.js:120:36)
      at closeHandler (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/node_modules/vscode-jsonrpc/lib/main.js:226:26)
      at CallbackList.invoke (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/node_modules/vscode-jsonrpc/lib/events.js:62:39)
      at Emitter.fire (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/node_modules/vscode-jsonrpc/lib/events.js:120:36)
      at StreamMessageReader.fireClose (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/node_modules/vscode-jsonrpc/lib/messageReader.js:111:27)
      at Socket.listen.readable.on (/home/eugeny/.vscode/extensions/devsense.phptools-vscode-1.0.3774/node_modules/vscode-languageclient/node_modules/vscode-jsonrpc/lib/messageReader.js:151:46)
      at Socket.emit (events.js:187:15)
      at Pipe.Socket._destroy._handle.close (net.js:606:12)

        Ah I will show log from console a bit later (didn't see your reply)

          thank you, seems the stack trace we need is not there :/ we'll release an update soon that provides more information in case of error

            Thanks @JakubMisek ! I will wait for the updates..
            Can I ask here about another extension? I have an alert from vscode after the window has loaded:

            Following extensions should be disabled since their features may interfere with PHP Tools: aaron-bond.better-comments, MehediDracula.php-namespace-resolver

            Seems "PHP Tools" doesn't have this features... Can you fix it on next update?

              @EugeneT we do have namespace resolver (through code actions Ctrl+.),
              the first one - aaron-bond.better-comments - will be allowed

                @JakubMisek
                According to observations, error textDocument/documentSymbol failed happens more often in legacy project with many in/out php tags and inline HTML. Hope it will be useful.

                @EugeneT - we have released the update.

                There is additional log in the VSCode Output pane, it will help us to identify the problem.

                Also the better-comments extension has been allowed.

                Please let me know if there would be more information, thank you

                  @EugeneT we have found a possible issue - Stack Overflow - which is not even reported.

                  This is caused by a circular dependency of trait uses, will be fixed in the next update, hopefully soon.

                  Thanks again for your feedback!

                    @EugeneT just released an update 1.0.3951 which fixes the crash - maybe it solves the problem you having :)

                      12 days later

                      @EugeneT I'll mark this as solved and if it happens again, please feel free to start a new issue. The recent release will output more detailed information in case it crashes.

                        Write a Reply...