Skip to content

Stack overflow symbolCanBeReferencedAtTypeLocation #27872

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

Closed
amcasey opened this issue Oct 12, 2018 · 3 comments
Closed

Stack overflow symbolCanBeReferencedAtTypeLocation #27872

amcasey opened this issue Oct 12, 2018 · 3 comments
Assignees
Labels
Bug A bug in TypeScript Crash For flagging bugs which are compiler or service crashes or unclean exits, rather than bad output Fixed A PR has been merged for this issue Source: Telemetry The issue relates to the telemetry in editors

Comments

@amcasey
Copy link
Member

amcasey commented Oct 12, 2018

Trace from 3.1.3

Error processing request. Maximum call stack size exceeded
RangeError: Maximum call stack size exceeded
    at tsserver.js:37085:38
    at Map.forEach (<anonymous>)
    at symbolsToArray (tsserver.js:37085:21)
    at Object.getExportsOfModuleAsArray [as getExportsOfModule] (tsserver.js:32407:20)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94659:55)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
    at symbolCanBeReferencedAtTypeLocation (tsserver.js:94662:44)
    at Array.some (<anonymous>)
@amcasey amcasey added Bug A bug in TypeScript Source: Telemetry The issue relates to the telemetry in editors Crash For flagging bugs which are compiler or service crashes or unclean exits, rather than bad output labels Oct 12, 2018
@amcasey
Copy link
Member Author

amcasey commented Oct 12, 2018

Command was completionInfo.

@sandersn
Copy link
Member

sandersn commented Nov 1, 2018

Probably getting completions on a commonjs module with a both export-assignment and export-property-assignments. I'm not sure how to repro this, but the fix would be to only recur if the exported symbol is not equal to the symbol itself.

@sandersn sandersn added Fixed A PR has been merged for this issue Design Limitation Constraints of the existing architecture prevent this from being fixed and removed Design Limitation Constraints of the existing architecture prevent this from being fixed labels Nov 1, 2018
@sandersn
Copy link
Member

sandersn commented Nov 1, 2018

Fixed by #28295

@sandersn sandersn closed this as completed Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Crash For flagging bugs which are compiler or service crashes or unclean exits, rather than bad output Fixed A PR has been merged for this issue Source: Telemetry The issue relates to the telemetry in editors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants