atom-community / ide-python

Python language support for Atom-IDE :atom: :snake:
https://atom.io/packages/ide-python
Other
237 stars 39 forks source link

Outlines sometime not available #131

Open alanzzhao-toast opened 6 years ago

alanzzhao-toast commented 6 years ago

On some .py files I can see it, on others I cannot.

OSX 10.13.6 Atom 1.8.2 x64 ide-python 0.10.0 (downgraded because of the challenges brought up here https://github.com/lgeiger/ide-python/issues/119)

What more information can I provide?

lgeiger commented 5 years ago

Could you provide a minimal code sample where the outline isn't working?

Alternatively could you enable debug messages by executing atom.config.set('core.debugLSP', true) in the Developer Tools Console and post a screenshot of the console output when this issue occurs? You might need to restart Atom in order to see the debug messages.

mohsenSy commented 5 years ago

I have the same issue here, it does not work for most of the files this is a sample file

class Test(object):
    """docstring for Test."""

    def __init__(self, arg):
        super(Test, self).__init__()
        self.arg = arg
    def test(self, arg):
        print("hy")

It says in the outline No Outline available Python Django files do not currently support outlines. Install and IDE package first

Auto-complete works well but not outline is available.

I have Ubuntu 18.04.2, atom 1.35.1 and latest IDE package.

I executed atom.config.set('core.debugLSP', true) and restarted atom but now output is displayed.

lgeiger commented 5 years ago

No Outline available Python Django files do not currently support outlines. Install and IDE package first

@mohsenSy It looks like you are using a django atom package that switches your syntax highlighting of python files to a custom django syntax. This means actually ide-python is not running since it doesn't recognize the custom django grammar. Could you try disabling the django specific atom packages and try again?

mohsenSy commented 5 years ago

@lgeiger Thanks a lot it worked now. You think this bug is related to Django package??

However when I open a python file I get this error pylama provided path does not exist.

I am sure pylama is installed in /usr/bin/pylama I can use it in my terminal, how can I fix this?