BowlerHatLLC / vscode-as3mxml

ActionScript & MXML language extension for Visual Studio Code. Develop apps for Adobe AIR, Adobe Flash Player, or Apache Royale.
https://as3mxml.com/
Apache License 2.0
257 stars 39 forks source link

language server pulishDiagnostics times out #438

Closed yishayw closed 4 years ago

yishayw commented 4 years ago

Not sure if this is a neovim language client issue or a language server issue but I'm getting the following error on initialization:

12:17:29 WARN unnamed src/language_server_protocol.rs:946 Failed to get initializationOptions: expected value at line 1 column 1 12:17:41 WARN unnamed src/language_server_protocol.rs:3075 Failed to get workspace settings: expected value at line 1 column 1 12:17:41 ERROR unnamed src/rpchandler.rs:14 Error handling message: Input watch path is neither a file nor a directory.

Message: {"jsonrpc":"2.0","method":"client/registerCapability","params":{"registrations":[{"id":"as3mxml-language-server-0.8628580101532646","method":"workspace/didChangeWatchedFiles","registerOptions":{"watchers":[{"globPattern":"*/"}]}}]},"id":"1"}

Error: Generic("Input watch path is neither a file nor a directory.")

And errors such as the following when I try to go to a definition 12:18:45 ERROR unnamed src/rpchandler.rs:30 Error handling message: timed out waiting on receive operation

Message: {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[{"code":"as3mxml-unused-import","message":"The import org.apache.royale.core.IBead is never used","range":{"end":{"character":36,"line":20},"start":{"character":1,"line":20}},"severity":4},{"code":"as3mxml-unused-import","message":"The import org.apache.royale.core.ValuesManager is never used","range":{"end":{"character":44,"line":24},"start":{"character":1,"line":24}},"severity":4}],"uri":"file:///C:/dev/flexjs/royale-asjs/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/TitleBar.as"}}

Error: Timeout 12:18:45 ERROR unnamed src/rpchandler.rs:30 Error handling message: timed out waiting on receive operation

Message: {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[{"code":"as3mxml-unused-import","message":"The import org.apache.royale.core.ILayoutHost is never used","range":{"end":{"character":42,"line":25},"start":{"character":1,"line":25}},"severity":4},{"code":"as3mxml-unused-import","message":"The import org.apache.royale.core.ILayoutParent is never used","range":{"end":{"character":44,"line":27},"start":{"character":1,"line":27}},"severity":4},{"code":"as3mxml-unused-import","message":"The import org.apache.royale.core.IStrand is never used","range":{"end":{"character":38,"line":28},"start":{"character":1,"line":28}},"severity":4},{"code":"as3mxml-unused-import","message":"The import org.apache.royale.core.IParentIUIBase is never used","range":{"end":{"character":45,"line":29},"start":{"character":1,"line":29}},"severity":4},{"code":"as3mxml-unused-import","message":"The import org.apache.royale.core.UIBase is never used","range":{"end":{"character":37,"line":31},"start":{"character":1,"line":31}},"severity":4},{"code":"as3mxml-unused-import","message":"The import org.apache.royale.events.Event is never used","range":{"end":{"character":38,"line":32},"start":{"character":1,"line":32}},"severity":4},{"code":"as3mxml-unused-import","message":"The import org.apache.royale.events.IEventDispatcher is never used","range":{"end":{"character":50,"line":37},"start":{"character":2,"line":37}},"severity":4},{"code":"as3mxml-unused-import","message":"The import org.apache.royale.geom.Rectangle is never used","range":{"end":{"character":41,"line":38},"start":{"character":2,"line":38}},"severity":4},{"code":"as3mxml-unused-import","message":"The import org.apache.royale.utils.CSSUtils is never used","range":{"end":{"character":41,"line":39},"start":{"character":2,"line":39}},"severity":4}],"uri":"file:///C:/dev/flexjs/royale-asjs/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/layouts/HorizontalFlexLayout.as"}}

Error: Timeout 12:18:45 ERROR unnamed src/rpchandler.rs:30 Error handling message: timed out waiting on receive operation

yishayw commented 4 years ago

Client timeout is set to 10 seconds.

yishayw commented 4 years ago

It's working for smaller projects. Anyway, more likely to be a client issue.