Closed CandySunPlus closed 7 years ago
@homu
@homu
That is a build bot, so it will not answer.
I'm not sure I understand the issue here, can you write a minimal series of step that was working before but that are now broken for you?
This just started happening to me too.
Err 0 Exception on executing command {"command": "semanticDiagnosticsSync", "type": "request", "arguments": {"includeLinePosition": true, "file": "my_file.ts"}, "seq": 1}:
No Project.
Error: No Project.
at Object.ThrowNoProject (/usr/lib/node_modules/typescript/lib/tsserver.js:6143:23)
at IOSession.Session.getFileAndProjectWorker (/usr/lib/node_modules/typescript/lib/tsserver.js:67622:42)
at IOSession.Session.getFileAndProject (/usr/lib/node_modules/typescript/lib/tsserver.js:67612:29)
at IOSession.Session.getDiagnosticsWorker (/usr/lib/node_modules/typescript/lib/tsserver.js:67299:31)
at IOSession.Session.getSemanticDiagnosticsSync (/usr/lib/node_modules/typescript/lib/tsserver.js:67392:29)
at Session.handlers.ts.createMap._a.(anonymous function) (/usr/lib/node_modules/typescript/lib/tsserver.js:67006:61)
at IOSession.Session.executeCommand (/usr/lib/node_modules/typescript/lib/tsserver.js:68120:28)
at IOSession.Session.onMessage (/usr/lib/node_modules/typescript/lib/tsserver.js:68140:35)
at Interface.<anonymous> (/usr/lib/node_modules/typescript/lib/tsserver.js:69284:27)
at emitOne (events.js:96:13)
The diagnostics were working for me until I updated ycmd today.
edit: it starts working fine after running :YcmRestartServer
@CandySunPlus @icholy Could you try PR https://github.com/Valloric/YouCompleteMe/pull/2595? It should fix the issue.
@micbou that fixed it :+1:
@micbou thx
after YouCompleteMe update to https://github.com/Valloric/YouCompleteMe/commit/95a44c22cf3d2d9a151f5a9e77824d1ea28ec829 for auto merge #https://github.com/Valloric/YouCompleteMe/pull/2589 can not trigger TypeScript completer's OnBufferVisit when BuffEnter, that will break the completer with No Project error.
YCM error log