Skip to content

Autocomplete is broken (Godot 4.3) #31

Open
@Ivorforce

Description

@Ivorforce

In Godot 4.3 (at least), autocomplete fails:

  �src/module/class_creation_info.cpp:73 - �[91;1mTraceback (most recent call last):
  �[0m�[91;1;2m  File "godot/_python_extension/python_language.py", line 170, in _complete_code
      from .editor.code_completion import complete
  �[0m�[91;1;2m  File "godot/_python_extension/editor/code_completion.py", line 222, in <module>
      _completer = _Completer()
                   ^^^^^^^^^^^^
  �[0m�[91;1m  File "godot/_python_extension/editor/code_completion.py", line 105, in __init__
      fs = godot.EditorInterface.get_resource_filesystem()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  �[0m�[91;1mTypeError: EditorInterface.get_resource_filesystem() missing 1 required positional argument: 'self'
  �[0m�[91;1;2m  While calling: godot._python_extension.python_language.PythonLanguage._complete_code
  �[0m

This is because get_resource_filesystem() is a member function, and expects self.

Commenting out the affected lines in __init__ and __del__ works as a workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions