Skip to content
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

godef not working for UTF-8 BOM encoded files #85

Open
boxu-zhang opened this issue Aug 9, 2018 · 0 comments
Open

godef not working for UTF-8 BOM encoded files #85

boxu-zhang opened this issue Aug 9, 2018 · 0 comments

Comments

@boxu-zhang
Copy link

I'm using Vscode-go to develop. Today, I found a strange problem that godef tool not working for those files encoded with UTF-8 BOM. And I debugged the problem with godef source. It turned out that the parse shows 'illegal content U+FFEF' which is not very accurate but still helpful. I followed the lead and finally find out it's all about the UTF-8 BOM. After I changed the source file to UTF-8 without BOM, everything goes fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant