Skip to content

'module' object has no attribute 'ReturnOutsideFunction' #81

Description

@autumnjolitz

My Sublime recently updated to the most recent SublimePythonIDE version and no longer parses valid Python code in my Flask project.

The console prints:

SublimePythonIDE: No server response
'module' object has no attribute 'ReturnOutsideFunction'

When I terminate the server.py program, I see:

started server on port 57389 with ['/Users/BenJolitz/.virtualenvs/cpython27/bin/python']
SublimePythonIDE: No server response
'module' object has no attribute 'ReturnOutsideFunction'

Activity

  1. JulianEberius commented on Feb 1, 2016

    @JulianEberius
    Owner

    Hi,

    thanks for the report! I'm not really sure how to reproduce this. Looks like some reloading problem that could be fixed by just restarting Sublime Text.

    If not, and you find some time, you could add the lines

    import traceback
    traceback.print_exc()
    

    in sublime_python_linting.py at line 122 to get a full stracktrace.

    Julian

  2. autumnjolitz commented on Feb 2, 2016

    @autumnjolitz
    Author

    Thanks Julian.

    I've sutured in the traceback print statement.

    Traceback (most recent call last):
      File "/Users/BenJolitz/Library/Application Support/Sublime Text 3/Packages/SublimePythonIDE/sublime_python_linting.py", line 107, in check
        parse_errors(view, errors, lines, vid)
      File "/Users/BenJolitz/Library/Application Support/Sublime Text 3/Packages/SublimePythonIDE/sublime_python_linting.py", line 323, in parse_errors
        pyflakes.messages.ReturnOutsideFunction,
    AttributeError: 'module' object has no attribute 'ReturnOutsideFunction'
    SublimePythonIDE: No server response
    
  3. JulianEberius commented on Feb 2, 2016

    @JulianEberius
    Owner

    Looks like a broken installation to me. The attribute "ReturnOutsideFunction" is definitely there in the current version (https://github.com/JulianEberius/SublimePythonIDE/blob/master/pyflakes/messages.py#L130) ... maybe try removing SublimePythonIDE and reinstalling it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions