nutti / fake-bpy-module

Fake Blender Python API module collection for the code completion.
MIT License
1.37k stars 97 forks source link

Bpy Module is Completely Empty, does not Autocomplete #271

Closed Gonderage closed 2 months ago

Gonderage commented 3 months ago

System Information

Expected behavior

Module bpy shows context, data, etc.

Description about the bug

Module bpy is empty in VSCode, but all other modules are autocompleting.

Screenshot from 2024-06-24 21-14-31 Screenshot from 2024-06-24 21-14-56 Screenshot from 2024-06-24 21-14-45

nutti commented 3 months ago

This is weird. Is bpy/init.pyi also empty?

Gonderage commented 3 months ago

No, init.py is not empty.

image

nutti commented 2 months ago

Then, this error should be come from the editor settings. I suspect your file is not connected to some python project (from the name Untitle-1). Please confirm that the source code which you edit, is connected to the project.

nutti commented 2 months ago

@Gonderage

Any update?

JonathanPlasse commented 2 months ago

The generation sometimes fails and a lot of modules are missing or incomplete. Some fake-bpy-module-latest versions with this problem can be found on PyPI.

nutti commented 2 months ago

@JonathanPlasse

Thank you for the response. Is this issue recently raised?

JonathanPlasse commented 2 months ago

I haven't seen the problem recently.

nutti commented 2 months ago

Thank you. OK, then I will close this issue. Maybe this issue comes from the result of refactoring when I introduced the ruff linter.