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

Problem decoding source #36

Closed
yinian1992 opened this issue Oct 22, 2013 · 9 comments
Closed

Problem decoding source #36

yinian1992 opened this issue Oct 22, 2013 · 9 comments
Labels

Comments

@yinian1992
Copy link

I'm writing in Python3 and saving source with UTF8 (the default). I have already set the external interpreter as the Python3 one.
However, if I have some non-ASCII characters in source, the "problem decoding source" error will popup. While I tested my source with Flake8 standalone, nothing wrong happened.

@dreadatour
Copy link
Owner

Could you, please, send me one of these files?
I use non-ASCII chars everyday and there is no problems at all.

@yinian1992
Copy link
Author

When I have a file like this:

x = "北冥有鱼,其名为鲲"
# In the northern ocean there is a fish, called the kun.

and I set the python_interpreter as /usr/local/bin/python3, then encounter this error:

2013-11-30 1 00 43

@dreadatour
Copy link
Owner

Sorry, still have no problems with your case.
Here is project settings:
screen shot 2013-12-02 at 00 02 25
And here is your file with Flake8Lint plugin debug print (with chosen interpreter):
screen shot 2013-12-02 at 00 02 35
And here is my /usr/local/bin/python3 version:
screen shot 2013-12-02 at 00 03 37

Here you can see everything is OK with linting:
screen shot 2013-12-02 at 00 06 46

@dreadatour
Copy link
Owner

Could you, please, provide more info about your case? /usr/local/bin/python3 version, plugin config, project config?

@yinian1992
Copy link
Author

Project config:

{
    "folders":
    [
        {
            "path": "/Users/yinian1992/lolstat"
        }
    ],
    "settings": {
        "python_interpreter_path": "/Users/yinian1992/.virtualenvs/lolstat/bin/python"
    }
}

Plugin config (Flake8Lint.sublime-settings):

{
    "python_interpreter": "/usr/local/bin/python3"
}

/usr/local/bin/python3 version:

➜  ~  /usr/local/bin/python3 -V
Python 3.3.2

@dreadatour
Copy link
Owner

I will add an option to config to turn debug output on and we will try again, if you don't mind.
Thank you for your help!

@dreadatour
Copy link
Owner

Oh, wait, what version does your Sublime Text have? 2 or 3?

@yinian1992
Copy link
Author

Version 2.0.2, Build 2221.

dreadatour pushed a commit that referenced this issue Dec 11, 2013
@dreadatour
Copy link
Owner

Hello, yinian,

is the problem still exists and actual?

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

No branches or pull requests

2 participants