Skip to content

Corrupted errors in TypeScript files #35848

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
tills13 opened this issue Oct 8, 2017 · 4 comments
Closed

Corrupted errors in TypeScript files #35848

tills13 opened this issue Oct 8, 2017 · 4 comments
Assignees
Labels
info-needed Issue requires more information from poster typescript Typescript support issues

Comments

@tills13
Copy link

tills13 commented Oct 8, 2017

  • VSCode Version: 1.17
  • OS Version: macOS Sierra 10.12.6

Steps to Reproduce:

  1. Create a .ts/x file

screen shot 2017-10-08 at 2 49 58 pm

I can't figure out how to capture the popups without them closing - but, In the above example above:

  • the error on import is
[ts]
Cannot find name 'import
'.

(note the newline)

  • the errors on line 18 are

[ts] Cannot find name 'con '.
and
[ts] Cannot find name 'icon '.

etc...

If I add lines above, the errors stay in place (character count wise). i.e. if I were to add let x = 1 after const mClassName... the errors would offset 9 characters (flowing up lines if necessary).

Reproduces without extensions: Yes

@vscodebot vscodebot bot added the new release label Oct 8, 2017
@vscodebot vscodebot bot assigned mjbvz Oct 8, 2017
@vscodebot vscodebot bot added the typescript Typescript support issues label Oct 8, 2017
@tills13
Copy link
Author

tills13 commented Oct 9, 2017

I disagree with the "New Release" label - I've had this happen to me on a couple versions of VSCode over the last couple months.

Also, further information - I've had this happen on all three major platforms (Windows 10, Ubuntu 16.04, and macOS Sierra).

@mjbvz mjbvz added the info-needed Issue requires more information from poster label Oct 11, 2017
@mjbvz
Copy link
Collaborator

mjbvz commented Oct 11, 2017

I've seen similar problems. The root cause for me seemed to be microsoft/TypeScript#16540

@tills13 If you're able to reliably reproduce this, can you please try installing typescript@next in your workspace and enabling it to see if the problem has been resolved upstream

@tills13
Copy link
Author

tills13 commented Oct 12, 2017

I played around with TS 2.6.0-dev.20171012 a little bit today and it seems to have fixed it. I will keep my eye on it over the next couple days and post here if I run into anything (or if I don't)

@mjbvz
Copy link
Collaborator

mjbvz commented Oct 25, 2017

Closing this as one of the possible root causes was addressed by TS 2.6. Please let me know if you start seeing this issue again

@mjbvz mjbvz closed this as completed Oct 25, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 9, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster typescript Typescript support issues
Projects
None yet
Development

No branches or pull requests

4 participants
@tills13 @chrmarti @mjbvz and others