lint does not work with external typescript (sourcefile not in empty array)
Linting works fine with the integrated typescript compiler. But after changing typescript->runtime to an external typescript installation (version 3.4.5), no lint errors are shown.
The typescript traces contains the error message "Error processing request. Could not find sourceFile ... in []". The filename and path is valid. I don't know where the empty array originates from.
{
"seq":0,
"type":"response",
"command":"semanticDiagnosticsSync",
"request_seq":44,
"success":false,
"message":"Error processing request. Could not find sourceFile:
'/home/me/workspace/frontend/src/app/app.component.ts' in [].
Error: Could not find sourceFile: '/home/me/workspace/frontend/src/app/app.component.ts' in [].
at getValidSourceFile (/home/me/workspace/cs.sys.angularbase/node_modules/typescript/lib/tsserver.js:120714:23)
at Object.getSemanticDiagnostics (/home/me/workspace/cs.sys.angularbase/node_modules/typescript/lib/tsserver.js:120916:36)
at Object.proxy.getSemanticDiagnostics (/home/me/workspace/cs.sys.angularbase/node_modules/@angular/language-service/bundles/language-service.umd.js:49460:32)
at /home/me/workspace/cs.sys.angularbase/node_modules/typescript/lib/tsserver.js:129601:140
at IOSession.Session.getDiagnosticsWorker (/home/me/workspace/cs.sys.angularbase/node_modules/typescript/lib/tsserver.js:129443:35)
at IOSession.Session.getSemanticDiagnosticsSync (/home/me/workspace/cs.sys.angularbase/node_modules/typescript/lib/tsserver.js:129601:29)
at Session.handlers.ts.createMapFromTemplate._a.<computed> (/home/me/workspace/cs.sys.angularbase/node_modules/typescript/lib/tsserver.js:128961:61)
at /home/me/workspace/cs.sys.angularbase/node_modules/typescript/lib/tsserver.js:130466:88
at IOSession.Session.executeWithRequestId (/home/me/workspace/cs.sys.angularbase/node_modules/typescript/lib/tsserver.js:130457:28)
at IOSession.Session.executeCommand (/home/me/workspace/cs.sys.angularbase/node_modules/typescript/lib/tsserver.js:130466:33)
at IOSession.Session.onMessage (/home/me/workspace/cs.sys.angularbase/node_modules/typescript/lib/tsserver.js:130488:35)
at Interface.<anonymous> (/home/me/workspace/cs.sys.angularbase/node_modules/typescript/lib/tsserver.js:131789:27)
at Interface.emit (events.js:200:13)
at Interface._onLine (readline.js:314:10)
at Interface._normalWrite (readline.js:459:12)
at Socket.ondata (readline.js:170:10)
at Socket.emit (events.js:200:13)
at addChunk (_stream_readable.js:294:12)
at readableAddChunk (_stream_readable.js:275:11)
at Socket.Readable.push (_stream_readable.js:210:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)"
}
There are two issues:
- The tslint plugin was renamed from
tslint-language-servicetotypescript-tslint-pluginwhich need to be updated in tsconfig.json - The above error messages occurs if and only if
@angular/language-serviceis enabled.
I'm sorry but i gave up this project. I suggest you that you move to wild web developer which is based on language server protocol.
Le jeu. 11 juil. 2019 16:04, Hendrik Brummermann [email protected] a écrit :
There are two issues:
- The tslint plugin was renamed from tslint-language-service to typescript-tslint-plugin which need to be updated in tsconfig.json
- The above error messages occurs if and only if @angular/language-service is enabled.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/angelozerr/typescript.java/issues/245?email_source=notifications&email_token=AAOXXM7L3OAZHQQFHNVWHOLP644X7A5CNFSM4IA4QLWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZWZXWY#issuecomment-510499803, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOXXM4LKUPSAQPVQNVHG2LP644X7ANCNFSM4IA4QLWA .
Thank's @jabby for your links. @nhnb please create issues in https://github.com/eclipse/wildwebdeveloper/issues to improve TypeScript support in Eclipse.