Giter VIP home page Giter VIP logo

code_autocomplete's Introduction

code_autocomplete's People

Contributors

adminradio avatar agoose77 avatar jacqueslucke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

code_autocomplete's Issues

Something wrong when enabling the addon by clicking on the checkbox

When I try to click on the checkbox, there is an error: TypeError: user_resource() takes 1 positional argument but 2 were given

Traceback (most recent call last):
File "c:\Users\ASUS\OneDrive - 中山大学\桌面\blender-3.3.1-windows-x64\3.3\scripts\modules\addon_utils.py", line 333, in enable
mod = import(module_name)
File "C:\Users\ASUS\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\code_autocomplete-master_init_.py", line 45, in
modules = developer_utils.setup_addon_modules(path, name, "bpy" in locals())
File "C:\Users\ASUS\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\code_autocomplete-master\developer_utils.py", line 39, in setup_addon_modules
modules = import_submodules(names)
File "C:\Users\ASUS\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\code_autocomplete-master\developer_utils.py", line 30, in import_submodules
modules.append(importlib.import_module("." + name, package_name))
File "c:\Users\ASUS\OneDrive - 中山大学\桌面\blender-3.3.1-windows-x64\3.3\python\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\ASUS\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\code_autocomplete-master\addon_development\addon_selection.py", line 5, in
from . utils import (get_directory_names,
File "C:\Users\ASUS\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\code_autocomplete-master\addon_development\utils.py", line 4, in
addons_path = bpy.utils.user_resource("SCRIPTS", "addons")
TypeError: user_resource() takes 1 positional argument but 2 were given

Blender 2.78-9 (buildbot version) error when building BPY Module.

2.79 is in beta stage so not sure if useful. But here is the error.

  File "C:\Users\pgolab\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\code_autocomplete\autocompletion\suggestions\generate_fake_bpy.py", line 28, in execute
    regenerate_fake_bpy()
  File "C:\Users\pgolab\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\code_autocomplete\autocompletion\suggestions\generate_fake_bpy.py", line 36, in regenerate_fake_bpy
    generate_fake_bpy()
  File "C:\Users\pgolab\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\code_autocomplete\autocompletion\suggestions\generate_fake_bpy.py", line 46, in generate_fake_bpy
    create_private_subdirectory()
  File "C:\Users\pgolab\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\code_autocomplete\autocompletion\suggestions\generate_fake_bpy.py", line 64, in create_private_subdirectory
    generate_code_files()
  File "C:\Users\pgolab\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\code_autocomplete\autocompletion\suggestions\generate_fake_bpy.py", line 77, in generate_code_files
    write_code_file(name, code)
  File "C:\Users\pgolab\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\code_autocomplete\autocompletion\suggestions\generate_fake_bpy.py", line 252, in write_code_file
    file.write(code)
  File "C:\Users\pgolab\Desktop\Apps\blender-2.78.0-git.9cd6b03-windows64\2.78\python\lib\encodings\cp1250.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\xb2' in position 5339: character maps to <undefined>

location: <unknown location>:-1

rna_utils bug

Traceback (most recent call last):
  File "C:\Users\Jacques Lucke\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\code_autocomplete\autocompletion\modal_operator.py", line 119, in draw_callback_px
    handler.draw(text_block)
  File "C:\Users\Jacques Lucke\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\code_autocomplete\autocompletion\autocomplete_handler.py", line 169, in draw
    self.update_completions(text_block)
  File "C:\Users\Jacques Lucke\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\code_autocomplete\autocompletion\autocomplete_handler.py", line 147, in update_completions
    self.completions = complete(text_block)
  File "C:\Users\Jacques Lucke\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\code_autocomplete\autocompletion\suggestions\__init__.py", line 17, in complete
    if setting.use_operator_completion: completions.extend(operator_provider.complete(text_block))
  File "C:\Users\Jacques Lucke\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\code_autocomplete\autocompletion\suggestions\operator_completion.py", line 59, in complete
    return list(iter_operator_inner_completions(operator, text_block))
  File "C:\Users\Jacques Lucke\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\code_autocomplete\autocompletion\suggestions\operator_completion.py", line 104, in iter_operator_inner_completions
    yield from iter_parameter_completions(operator, text_block)
  File "C:\Users\Jacques Lucke\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\code_autocomplete\autocompletion\suggestions\operator_completion.py", line 113, in iter_parameter_completions
    yield ParameterCompletion(parameter)
  File "C:\Users\Jacques Lucke\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\code_autocomplete\autocompletion\suggestions\operator_completion.py", line 39, in __init__
    get_property_default(parameter),
  File "C:\Users\Jacques Lucke\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\code_autocomplete\autocompletion\suggestions\rna_utils.py", line 55, in get_property_default
    return repr(property.default)
AttributeError: 'CollectionProperty' object has no attribute 'default'

Jedi library not found

When I use your addon, under the START button it says Jedi library not found.
Have I done something incorrectly or missed a file?
Still, a great addon. 👍

Modules in Subdirectory not registered

Hi Jaques,
I am using your addon to write addons myself. Best Addon purchase ever! Thanks for this great utility!

I now released my first written multi file addon with autocomplete.
It seems mac user have problems with it. Usually there are 13 modules that are registered. But in the console print of one user there are only 3 modules registered. It seems all modules in a subdirectory are not registered. On windows everything seems to run fine, but not on mac.

Possible conflict with new version of Jedi, or unclear documentation

The documentation isn't quite clear on what code_autocomplete expects regarding Jedi. This is what it says:

When there is a error message Jedi library not found you have to use another .zip file in the beginning. Direct download from the github page is not supported, because the Jedi library is a submodule which isn’t included in these downloads. You can either use an official release or use git to download the repository and its submodules.

The documentation mentioned that the jedi module is not included in the github download. I tried adding the jedi module to the download, copying the contents of the "jedi" subfolder into code_autocomplete's own "jedi" subfolder, but it gives this error and refuses to run:

Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender\2.76\scripts\modules\addon_utils.py", line 324, in enable mod = __import__(module_name) File "C:\Users\HiddenUsername\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\code_autocomplete-master\__init__.py", line 45, in <module> modules = developer_utils.setup_addon_modules(__path__, __name__, "bpy" in locals()) File "C:\Users\HiddenUsername\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\code_autocomplete-master\developer_utils.py", line 39, in setup_addon_modules modules = import_submodules(names) File "C:\Users\HiddenUsername\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\code_autocomplete-master\developer_utils.py", line 30, in import_submodules modules.append(importlib.import_module("." + name, package_name)) File "C:\Program Files\Blender Foundation\Blender\2.76\python\lib\importlib\__init__.py", line 109, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "C:\Users\HiddenUsername\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\code_autocomplete-master\jedi\__init__.py", line 41, in <module> from jedi.api import Script, Interpreter, NotFoundError, set_debug_function ImportError: No module named 'jedi'

I looked into my roaming appdata and it seems to be fine. Code_autocomplete's jedi folder has the contents of the jedi library (api, library, parser, init.py, etc...). If the problem is that I need to include the other root files/folders in the jedi git repository, I still get errors if I include those too. If I remove the jedi library, it installs fine but complains about the missing library.

Perhaps the documentation needs to be updated with what code_autocomplete expects from the user regarding how to include the jedi library? I would be happy to help write that. I just need to know the correct approach first. The other possibility is that jedi is no longer compatible with code_autocomplete or Blender, in which case the documentation should probably specify a working version.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.