Skip to content

lint does not work with external typescript (sourcefile not in empty array) #245

Open

Description

@nhnb

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)"
}

Activity

  1. nhnb commented on Jul 11, 2019

    @nhnb
    Author

    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.
  2. angelozerr commented on Jul 11, 2019

    @angelozerr
    Owner
  3. jabby commented on Jul 11, 2019

    @jabby

    Here are some links about Eclipse Wild Web Developer

  4. angelozerr commented on Jul 12, 2019

    @angelozerr
    Owner

    Thank's @jabby for your links. @nhnb please create issues in https://github.com/eclipse/wildwebdeveloper/issues to improve TypeScript support in Eclipse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions