Skip to content

Pressing enter after JSX element with missing closing tag causes exception to be thrown #4515

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
DanielRosenwasser opened this issue Aug 28, 2015 · 2 comments
Labels
Bug A bug in TypeScript Duplicate An existing issue was already created

Comments

@DanielRosenwasser
Copy link
Member

<div>/**/
  1. Press enter

Expected: Indentation
Actual:

Description:

getIndentationAtPosition('C:\Users\drosen\file1.tsx', 7)

Message:

StackTrace:

Error: Debug Failure. False expression: 
   at assert (:1558:17)
   at find (:38781:13)
   at find (:38776:29)
   at find (:38776:29)
   at find (:38776:29)
   at findPrecedingToken (:38751:9)
   at getIndentation (:41411:17)
   at getIndentationAtPosition (:47287:13)
   at Anonymous function (:48969:17)
   at simpleForwardCall (:48727:9)
   at forwardJSONCall (:48743:13)
   at forwardJSONCall (:48789:13)
   at getIndentationAtPosition (:48967:13)
@DanielRosenwasser DanielRosenwasser added the Bug A bug in TypeScript label Aug 28, 2015
@vladima
Copy link
Contributor

vladima commented Aug 28, 2015

dupe of #4332 ?

@DanielRosenwasser
Copy link
Member Author

Thanks for catching that.

@DanielRosenwasser DanielRosenwasser added the Duplicate An existing issue was already created label Aug 28, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants