-
Notifications
You must be signed in to change notification settings - Fork 12.8k
chore(services) rename visit to visitNode as visit was given an error #2505
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
Conversation
Hi @basarat, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! The agreement was validated by Microsoft and real humans are currently evaluating your PR. TTYL, MSBOT; |
I'm a bit confused. Why is 'visit' giving you an error? |
Absolutely no rational reason. I am calling It works fine for most projects including TypeScript : However for atom-typescript itself, and specifically this source file : https://github.com/TypeStrong/atom-typescript/blob/master/lib/typings/mixto/mixto.d.ts It gives the error as shown:
Fixes that work:
|
@CyrusNajmabadi in case it got lost in my noise. Look at the call stack. I see no reason for
|
Hrmm. I'd really like to understand why this error is occurring, rather than just patching around it. Is it possible the generated JS has some oddities around it in this area? |
I don't see how: The error is "use strict"
foo = 123
Not presented in this PR: Using |
I've created #2522 as the way to (hopefully) work around this issue, while using the same coding style as the rest of the services layer. Thanks! |
Cool ❤️ |
Does this issue repro with the latest bits from master? |
@vladima Yes |
closes #2503