-
Notifications
You must be signed in to change notification settings - Fork 645
Auto-completion stops working when unicode chars are present #1431
Comments
@dc0d For some reason when I copy your example of unicode chars I get the below and I cannot repro So I tried a few chinese chars instead and I still cannot repro. Can you try running |
Thanks for the followup! Those are Old Persian characters, existing in Ubuntu 16.04. I've put the |
Used your The output you have shared seemed to be from the Instead can you share the output from the client? Example: |
I don't get any outputs from the command line. Maybe I'm doing it wrong. I've installed the extension and edited the file with a normal text editor (gedit) so gofmt won't run. But no output appeared inside the terminal. |
|
Are you getting nothing even without the unicode comment? Ensure to pass the file path in the
Those are still coming from gocode itself |
With this new command, it worked. These are related to the pictures previously posted. For the line before unicode comment:
For the line after the unicode comment:
|
Thanks @dc0d I have logged nsf/gocode#489 to track this issue upstream |
@dc0d Pushed a fix to use byte offset instead of char offset when calling gocode. Can you confirm that this fixes the current issue? All you have to do is
|
This fix is now out in the latest update to the Go extension (0.6.71) |
Copying @dc0d's comments from #441 (comment)
I've managed to reproduce it reliably.
When adding this comment with unicodes:
It stops working and when this comment gets removed, it starts working.
The text was updated successfully, but these errors were encountered: