-
Notifications
You must be signed in to change notification settings - Fork 41
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
Autocompletion does not work on files with non-latin chars #54
Comments
Hi @bezdupel, I have analyzed your gulpfile.js and there is an unrecognized character that makes Flow server crash (I think because there is an hidden special char or something similar)! The line 60 is the line that causes the server crash:
and the character is the letter |
Oh, thanks, it helped. I copied this line from the official documentation 😄 But do not you think it's a bug that the wrong letter in the comment leads to the inoperability of the extension? I do not really want to switch to VSCode, for example, but there autocompletion does not pay attention to the wrong letters in the comments. Is there any way to correct this behavior in your extension? Or at least specify in the console where exactly to search for the wrong letter or symbol? |
After all, comments can contain, for example, cyrillic symbols or hieroglyphs, etc. By the way, Java Script Completions does not pay attention to the "wrong" characters 😉 |
It isn't a bug of the extension. Instead, it is a bug of Flow. The flow server is the one that can't recognize it. In fact, it throws this error:
Also, I can't delete comments because Flow could use them, for example for linting or for defining types in your code. I'm really sorry about this! I hope the Facebook team will fix it as soon as possible. About the "JavaScript Completions" plugin, because it works in a different way. It doesn't take into account the current context. It is just a static list of completions.. I mean that it won't produce smart completions! |
Thanks, now everything is clear. Perhaps it's worth pointing somewhere in the wiki about this behavior - about the (temporary?) inadmissibility of non-latin characters in the code? And thanks again for your work and excellent extension 👍 |
Ok, I was wrong! There are problems when I send data to the flow server with this non-latin chars. I will try to resolve this! |
Solved! I'm going to publish a new release with this fix. |
I'm glad I could help you! 👍 |
Expected Behavior
Autocompletion should work in all js-files.
Actual Behavior
After opening gulpfile.js, the autocompletion does not work in this and any other js-files until the Sublime Text is restarted.
Sublime Text console logs
Screenshots
Steps to Reproduce the Problem
Specifications
Gulpfile:
gulpfile.zip
The text was updated successfully, but these errors were encountered: