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
yield
and await
don't work in let
blocks
#1019
Comments
yield
doesn't work in let
blocksyield
and await
don't work in let
blocks
Re: the issue, good catch and I agree with your expectations. Re: the sidenote, first of all, continuing to contribute high quality bug reports like this one would indeed be helpful, so thank you! However, the number of people currently contributing (capable of contributing?) good PRs is very low, and if you are interested in taking the time to learn more about hacking LiveScript, I would be interested in taking the time to help you through that and producing resources for you and other future contributors. This issue in particular I think would be a good candidate for a tutorial—it has a fix that is fairly small and clear but involves picking up some context before it becomes obvious. I think the ideal thing, if you're willing, would be for you to write the fix for this with hints and guidance from me, and then I could take the transcript of our interactions and annotate it into a compiler hacking tutorial on the LiveScript wiki. Does that sound like something you'd be interested in doing? (Alternatively, I could write the fix myself and try to document my thought process alone, but I don't know if that would be as good at covering the things a newbie needs to know.) |
If possible, the former would definitely be better :-)! LS could use a few more contributors. |
|
No spoilers! 😄 (I stand by my original characterization, but I guess we'll see?) |
Thanks for the offer. Yes, that sounds interesting, I'll appreciate the help and guidance. But about that, where should I start? You suggested, that I could start from fixing this bug. And I agree, with trial and error I think I'll be able to patch things. In fact, I believe I fixed the About communication, what platform would you suggest? And by you I mean all of you, the more the merrier :) Regarding my time, currently I have little to no time left for this, next month should be more relaxed, we'll see. I still plan to keep posting issues, those are less time consuming. And perhaps, in the future I will be fixing them myself. |
Excellent! How about this: open a working PR with just (failing) tests for this bug (where every good bug fix should start!). Make sure to add the tests to Once you've done that, I'll comment on the PR with further tips on how to start diagnosing the problem and what parts of the compiler code to look at. Re: time, feel free to do all of this on whatever schedule works for you—there's no rush, my offer isn't going anywhere. |
I think I got it now :). |
@pepkin88, are you still interested in working through a fix for this? I would like it to be fixed for the 1.6 release, so if you don't think you can get to it in the next month, I'll use my own fix. |
@rhendric Sorry for a silence from my part. Yes, I'm still interested, I'm working toward organizing for myself some time for this. But in case I can't proceed with it, I'll let you know. |
yield
Example:
Result:
Expected result:
await
Example:
Result:
Expected result:
(AFAIK, unlike
yield
,await
doesn't need wrapping in parentheses,!await something
works fine)Sidenote:
This is the first issue of many I'm going to post. Way back I announced, that I am planning to start posting some pull requests for the bugs I've found (#903 (comment)), but ended up posting nothing. I even was waiting so long, before I started doing something to fix #1005, despite knowing about this bug for years.
So this time I decided to dump my list of bugs and feature proposals one at the time, at least once a day. I hope I'll find some time and will to learn the internals to help more, by making pull requests. But "done is better than perfect". I have procrastinated for so long and I see, that LiveScript needs a help (with bugfixes, with tools, with promotion, with rewriting), and it hurts me, that I just wait and do nothing about it.
Feel free to post suggestions about how I can be more helpful, given low time resources.
I tried learning how the compiler works, but it's quite complicated and requires more analysis, so I've postponed it. Do you know some good resources to learn how to get into such code?
And I'm sorry for any duplicates. I'm not familiar with the whole issue pool, it's quite daunting.
And don't wait for me with 1.6.0. These all can be included in future versions.
The text was updated successfully, but these errors were encountered: