Skip to content

TS 3.5.2 Error: No Project #32827

@wclr

Description

@wclr

Version: 3.5.2

While editing TS type checking just stucks.

There is such output in the log

Err 1297  [2:38:30.802] Exception on executing command {"seq":306,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"d:/Code/chartify/apps/payments/index.ts","line":176,"offset":58}}:

    No Project.

    Error: No Project.
        at Object.ThrowNoProject (c:\Users\alexo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:124624:23)
        at ProjectService.doEnsureDefaultProjectForFile (c:\Users\alexo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:127469:131)
        at ProjectService.ensureDefaultProjectForFile (c:\Users\alexo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:127464:75)
        at IOSession.Session.getFileAndProjectWorker (c:\Users\alexo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130982:87)
        at IOSession.Session.getFileAndProject (c:\Users\alexo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130965:29)
        at IOSession.Session.getDefinitionAndBoundSpan (c:\Users\alexo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130653:31)
        at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (c:\Users\alexo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130011:61)
        at c:\Users\alexo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:131665:88
        at IOSession.Session.executeWithRequestId (c:\Users\alexo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:131656:28)
        at IOSession.Session.executeCommand (c:\Users\alexo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:131665:33)
        at IOSession.Session.onMessage (c:\Users\alexo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:131687:35)
        at Interface.<anonymous> (c:\Users\alexo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:132978:27)
        at Interface.emit (events.js:182:13)
        at Interface._onLine (readline.js:290:10)
        at Interface._normalWrite (readline.js:433:12)
        at Socket.ondata (readline.js:149:10)
        at Socket.emit (events.js:182:13)
        at addChunk (_stream_readable.js:283:12)
        at readableAddChunk (_stream_readable.js:264:11)
        at Socket.Readable.push (_stream_readable.js:219:10)
        at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
Info 1298 [2:38:30.802] response:
    {"seq":0,"type":"response","command":"definitionAndBoundSpan","request_seq":306,"success":false,"message":"Error processing request. No Project.\nError: No Project.\n    at Object.ThrowNoProject (c:\\Users\\alexo\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\resources\\app\\extensions\\node_modules\\typescript\\lib\\tsserver.js:124624:23)\n    at ProjectService.doEnsureDefaultProjectForFile (c:\\Users\\alexo\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\resources\\app\\extensions\\node_modules\\typescript\\lib\\tsserver.js:127469:131)\n    at ProjectService.ensureDefaultProjectForFile (c:\\Users\\alexo\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\resources\\app\\extensions\\node_modules\\typescript\\lib\\tsserver.js:127464:75)\n    at IOSession.Session.getFileAndProjectWorker (c:\\Users\\alexo\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\resources\\app\\extensions\\node_modules\\typescript\\lib\\tsserver.js:130982:87)\n    at IOSession.Session.getFileAndProject (c:\\Users\\alexo\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\resources\\app\\extensions\\node_modules\\typescript\\lib\\tsserver.js:130965:29)\n    at IOSession.Session.getDefinitionAndBoundSpan (c:\\Users\\alexo\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\resources\\app\\extensions\\node_modules\\typescript\\lib\\tsserver.js:130653:31)\n    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (c:\\Users\\alexo\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\resources\\app\\extensions\\node_modules\\typescript\\lib\\tsserver.js:130011:61)\n    at c:\\Users\\alexo\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\resources\\app\\extensions\\node_modules\\typescript\\lib\\tsserver.js:131665:88\n    at IOSession.Session.executeWithRequestId (c:\\Users\\alexo\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\resources\\app\\extensions\\node_modules\\typescript\\lib\\tsserver.js:131656:28)\n    at IOSession.Session.executeCommand (c:\\Users\\alexo\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\resources\\app\\extensions\\node_modules\\typescript\\lib\\tsserver.js:131665:33)\n    at IOSession.Session.onMessage (c:\\Users\\alexo\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\resources\\app\\extensions\\node_modules\\typescript\\lib\\tsserver.js:131687:35)\n    at Interface.<anonymous> (c:\\Users\\alexo\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\resources\\app\\extensions\\node_modules\\typescript\\lib\\tsserver.js:132978:27)\n    at Interface.emit (events.js:182:13)\n    at Interface._onLine (readline.js:290:10)\n    at Interface._normalWrite (readline.js:433:12)\n    at Socket.ondata (readline.js:149:10)\n    at Socket.emit (events.js:182:13)\n    at addChunk (_stream_readable.js:283:12)\n    at readableAddChunk (_stream_readable.js:264:11)\n    at Socket.Readable.push (_stream_readable.js:219:10)\n    at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)"}
Info 1299 [2:38:33.292] request:
    {"seq":307,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["d:/Code/chartify/node_modules/cloudpayments/dist/NotificationHandlers.d.ts"],"openFiles":[]}}
Info 1300 [2:38:33.292] Open files: 
Info 1300 [2:38:33.292] Open files: 
Perf 1300 [2:38:33.292] 307::updateOpen: elapsed time (in milliseconds) 0.3813
Info 1301 [2:38:33.292] response:
    {"seq":0,"type":"response","command":"updateOpen","request_seq":307,"success":true,"body":true}
Info 1302 [2:38:33.293] request:
    {"seq":308,"type":"request","command":"geterr","arguments":{"delay":0,"files":["d:/Code/chartify/apps/client/cycles/SyncManager/OrderCommands.ts","d:/Code/chartify/apps/client/cycles/ChartArea/PrintOrderBlock.ts","d:/Code/chartify/apps/client/cycles/ChartArea/dict/ru.ts","d:/Code/chartify/client/dom/dom.ts","d:/Code/chartify/apps/client/styles.ts","d:/Code/chartify/apps/client/styles-appear.ts","d:/Code/chartify/apps/client/cycles/OrdersPage/OrdersPage.ts","d:/Code/chartify/apps/client/cycles/LifeMain.ts","d:/Code/chartify/apps/client/cycles/NotificationsDisplay.ts","d:/Code/chartify/client/payment-driver/index.ts","d:/Code/chartify/apps/payments/index.ts","d:/Code/chartify/apps/api-server/handlers/orders.ts","d:/Code/chartify/apps/payments/client.ts","d:/Code/chartify/apps/api-server/index.ts"]}}
Info 1303 [2:38:33.293] event:
    {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":308}}
Perf 1304 [2:38:33.293] 308::geterr: async elapsed time (in milliseconds) 0.3998

Link to the log:
https://gist.github.com/whitecolor/81e376b04ee2021328d00b90aa18c9bb

I tried to add disableSizeLimit: true, no luck.

The first error message in the log is strange

Could not find file "d:/Code/chartify/apps/payments/index.ts".

This is the file I'm editing.

Metadata

Metadata

Assignees

Labels

Needs More InfoThe issue still hasn't been fully clarified

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions