Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outline error when opening a single file #1550

Closed
aminya opened this issue Jul 5, 2020 · 12 comments
Closed

Outline error when opening a single file #1550

aminya opened this issue Jul 5, 2020 · 12 comments

Comments

@aminya
Copy link
Contributor

aminya commented Jul 5, 2020

Outline error when opening a single file without a project:

Error: Error processing request. No Project.
Error: No Project.
    at Object.ThrowNoProject (C:\Users\yahyaaba\node_modules\typescript\lib\tsserver.js:137981:23)
    at IOSession.Session.getFileAndLanguageServiceForSyntacticOperation (C:\Users\yahyaaba\node_modules\typescript\lib\tsserver.js:145263:42)
    at IOSession.Session.getNavigationTree (C:\Users\yahyaaba\node_modules\typescript\lib\tsserver.js:145614:31)
    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (C:\Users\yahyaaba\node_modules\typescript\lib\tsserver.js:144481:61)
    at C:\Users\yahyaaba\node_modules\typescript\lib\tsserver.js:146003:88
    at IOSession.Session.executeWithRequestId (C:\Users\yahyaaba\node_modules\typescript\lib\tsserver.js:145994:28)
    at IOSession.Session.executeCommand (C:\Users\yahyaaba\node_modules\typescript\lib\tsserver.js:146003:33)
    at IOSession.Session.onMessage (C:\Users\yahyaaba\node_modules\typescript\lib\tsserver.js:146027:35)
    at Interface.<anonymous> (C:\Users\yahyaaba\node_modules\typescript\lib\tsserver.js:147342:27)
    at Interface.emit (events.js:194:13)
    at Interface._onLine (readline.js:312:10)
    at Interface._normalWrite (readline.js:457:12)
    at Socket.ondata (readline.js:168:10)
    at Socket.emit (events.js:194:13)
    at addChunk (_stream_readable.js:296:12)
    at readableAddChunk (_stream_readable.js:277:11)
    at Socket.Readable.push (_stream_readable.js:232:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:165:17)
    at Callbacks.resolve (C:\Users\yahyaaba\.atom\packages\atom-typescript\dist\client\callbacks.js:40:28)
    at MessageStream.TypescriptServiceClient.onMessage (C:\Users\yahyaaba\.atom\packages\atom-typescript\dist\client\client.js:87:32)
    at MessageStream.emit (events.js:194:13)
    at addChunk (_stream_readable.js:296:12)
    at readableAddChunk (_stream_readable.js:277:11)
    at MessageStream.Readable.push (_stream_readable.js:232:10)
    at MessageStream.Transform.push (_stream_transform.js:148:32)
    at MessageStream._transform (C:\Users\yahyaaba\.atom\packages\atom-typescript\dist\client\client.js:212:22)
    at MessageStream.Transform._read (_stream_transform.js:187:10)
    at MessageStream.Transform._write (_stream_transform.js:175:12)
    at doWrite (_stream_writable.js:415:12)
    at writeOrBuffer (_stream_writable.js:399:5)
    at MessageStream.Writable.write (_stream_writable.js:299:11)
    at LineStream.ondata (_stream_readable.js:706:22)
    at LineStream.emit (events.js:194:13)
    at addChunk (_stream_readable.js:296:12)
    at readableAddChunk (_stream_readable.js:277:11)
    at LineStream.Readable.push (_stream_readable.js:232:10)
    at LineStream.Transform.push (_stream_transform.js:148:32)
    at LineStream._pushBuffer (C:\Users\yahyaaba\.atom\packages\atom-typescript\node_modules\byline\lib\byline.js:126:17)
    at LineStream._transform (C:\Users\yahyaaba\.atom\packages\atom-typescript\node_modules\byline\lib\byline.js:117:8)
    at LineStream.Transform._read (_stream_transform.js:187:10)
    at LineStream.Transform._write (_stream_transform.js:175:12)
    at doWrite (_stream_writable.js:415:12)
    at writeOrBuffer (_stream_writable.js:399:5)
    at LineStream.Writable.write (_stream_writable.js:299:11)
    at Socket.ondata (_stream_readable.js:706:22)
    at Socket.emit (events.js:194:13)
    at addChunk (_stream_readable.js:296:12)
    at readableAddChunk (_stream_readable.js:277:11)
    at Socket.Readable.push (_stream_readable.js:232:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:165:17) "C:\Users\yahyaaba\Documents\GitHub\JavaScript\atom-ide-datatip\typings\atom-ide.d.ts"
@lierdakil
Copy link
Collaborator

I can't reproduce locally. This might be an issue with the custom TypeScript version you're using (apparently located in C:\Users\yahyaaba\node_modules\typescript\)

@aminya
Copy link
Contributor Author

aminya commented Jul 8, 2020

Try opening a TS file from another project in the current project. The error is shown in the console.

@lierdakil
Copy link
Collaborator

Still can't reproduce. You'll have to write a detailed reproduction guide I'm afraid. But the error is thrown by TypeScript server, not the package itself, it's only re-repored via console. So I still suspect the issue is your local TypeScript installation.

@github-actions
Copy link

github-actions bot commented Oct 7, 2020

This issue has been marked as stale because it did not have any activity for the last 90 days or more. Remove the stale label or comment or this will be closed in 14 days

@aminya
Copy link
Contributor Author

aminya commented Oct 21, 2020

This is still an issue

@lierdakil
Copy link
Collaborator

Well I still can't reproduce.

@aminya
Copy link
Contributor Author

aminya commented Oct 21, 2020

I am not lying though 😄. I try to provide you a reproduction. Could you open the issue again?

@github-actions
Copy link

github-actions bot commented Feb 2, 2021

This issue has been marked as stale because it did not have any activity for the last 90 days or more. Remove the stale label or comment or this will be closed in 14 days

@github-actions github-actions bot added the stale label Feb 2, 2021
@aminya
Copy link
Contributor Author

aminya commented Feb 2, 2021

Still an issue as I remember

@aminya
Copy link
Contributor Author

aminya commented Feb 8, 2021

Probably related to atom-community/atom-languageclient#11

@lierdakil
Copy link
Collaborator

Probably related to atom-community/atom-languageclient#11

Likely not, since atom-ts doesn't use atom-languageclient (can't, tsserver isn't LSP-compliant)

@lierdakil lierdakil reopened this Feb 25, 2021
@lierdakil lierdakil removed the stale label Feb 25, 2021
@github-actions
Copy link

This issue has been marked as stale because it did not have any activity for the last 90 days or more. Remove the stale label or comment or this will be closed in 14 days

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

No branches or pull requests

2 participants