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

python-language-server and possibly jedi has trouble with PyGObject's GTK #911

Open
xrogaan opened this issue Feb 20, 2021 · 0 comments
Open

Comments

@xrogaan
Copy link

xrogaan commented Feb 20, 2021

Pinging @mpanarin as requested.

Using emacs to write an application based on GTK, pyls seems to have trouble with some if not most object. The project is managed by poetry. pyls tends to use high cpu cycles before failing, which incur a lag within the editor itself — it becomes unresponsive.

Sample code that seem to generate the problem:

class ButtonExplore(Gtk.Button):

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.set_label("Explore")

The type of errors I first noticed, but didn't save, was:

[...]
.venv/lib/python3.9/site-packages/jedi/inference/star_args.py", line 26, in _iter_nodes_for_param
    module_node = function_node.get_root_node()
AttributeError: 'NoneType' object has no attribute 'get_root_node'

I haven't been able to reproduce this specific error, it happened organically and I'm not sure of the specifics for its happenstance. However the snipped posted earlier did trigger another kind of error, linked below.

Attached are


PS: This issue was submitted empty because my hand got caught up is my headset's cable and hit the enter key while the focus was not in any text input. Somehow github don't see sending empty issues as an problem?

@xrogaan xrogaan closed this as completed Feb 20, 2021
@xrogaan xrogaan reopened this Feb 20, 2021
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