-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
arrow function emit emit error #11377
Comments
@rbuckton can you take a look. |
@basarat Is this the entire set of repro steps? I tried this locally and cannot repro this. |
Sadly no. Seems to be an issue one with language service compile on save, stuff like semicolons etc can be used to trigger it to come in and go out. Same code can give different output depending on how the edits were made :-/ Made a quick video : https://www.youtube.com/watch?v=N4EgtjRnZGE 🌹 |
Thanks, I'll take a look at it. |
In the video it looks like you're using VSCode. Are you using a |
Or rather, is this Atom? |
@rbuckton I think it's https://github.com/alm-tools/alm |
Yup. |
Basically |
I can repro in alm with just With a simple {
"compilerOptions": {
"module": "commonjs",
"target": "es5"
}
} That said I ran the same with |
Looked at the tsserver and it uses the same function as me |
Guess |
I've attached the project: Opening it in alm is easy The repro is simply changing I added a log to
You can see the annotation appear and disappear in the output of Please let me know if there is still more info required 🌹 |
PS: thanks for your great work. |
Update: I've pushed the fix in alm : alm-tools/alm@687c238 that uses the slow but correct |
I have a similar issue to this where compile on save is not producing valid es5 output, I'm using
Steps to reproduce:
Let me know if you would like any more information, thanks |
@frankwallis what version of TS are you using for VS? compile on save is not driven from the MSBuild nugget package. |
@mhegazy I have run the VSDevMode.ps1 script (as per here) and pointed it at my global npm typescript installation (in ...AppData/Roaming/npm/node_modules/typescript/lib) which is:
I reran the VSDevMode.ps1 script today and retried the steps above, and the same issue is present. Is there a way of verifying which version the language service is actually using? |
This is sufficient information. thank you. |
@mhegazy - can the "Needs More Info" label be removed now? |
@basarat can you give tonight's build a try. |
@basarat have you had a chance to try the fix? |
In Mexico 🇲🇽 for a conf. Will update once I try 🌹❤️ |
thanks. |
I can no longer reproduce it with the latest nightly. Thanks! 🌹 |
thanks for conforming 🌷 |
TypeScript Version: nightly latest
Code
Expected behavior:
Gives js
Actual behavior:
The text was updated successfully, but these errors were encountered: