GithubHelp home page GithubHelp logo

saltychiang / vapoursynth-plugins-stub-generator Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 1.0 51 KB

An unofficial stub generator for vapoursynth and its plugins, which is helpful to autocomplete code in VSCode.

License: MIT License

Python 100.00%

vapoursynth-plugins-stub-generator's People

Contributors

huangruixiao-eng avatar saltychiang avatar vxzms 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

Watchers

 avatar  avatar

vapoursynth-plugins-stub-generator's Issues

R56: IndexError: list index out of range

Hi, I believe the new API V4 has broken this tool. No problems with R54.

Python 3.9.7 [GCC 11.1.0] on linux
python -m pip install ./vsstubs
python -m vsstubs install package

Defaulting to user installation because normal site-packages is not writeable
Processing ./vsstubs
Building wheels for collected packages: vsstubs
  Building wheel for vsstubs (setup.py) ... done
  Created wheel for vsstubs: filename=vsstubs-0.1.1-py3-none-any.whl size=7852 sha256=58d0cfb105332cb02db4fae1f5684ef3d8e379ad7947d6a1e287cf5a900c6395
  Stored in directory: /tmp/pip-ephem-wheel-cache-24hwzkuq/wheels/65/1a/ac/f2bd322c6d07f430aca2cbcbfa4d1f9396d637cc4a004ce89c
Successfully built vsstubs
Installing collected packages: vsstubs
Successfully installed vsstubs-0.1.1
Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/nsqy/.local/lib/python3.9/site-packages/vsstubs/__main__.py", line 4, in <module>
    main()
  File "/home/nsqy/.local/lib/python3.9/site-packages/vsstubs/main.py", line 27, in main
    install(stubsdir, "__init__.pyi")
  File "/home/nsqy/.local/lib/python3.9/site-packages/vsstubs/install.py", line 5, in install
    pyi_content = generate.stub()
  File "/home/nsqy/.local/lib/python3.9/site-packages/vsstubs/generate.py", line 31, in stub
    plugins_meta = convert.plugins_vs2py(plugins)
  File "/home/nsqy/.local/lib/python3.9/site-packages/vsstubs/convert.py", line 64, in plugins_vs2py
    plugin_meta = PluginMeta(plugin["namespace"], plugin["name"], functions_vs2py(plugin["functions"]))
  File "/home/nsqy/.local/lib/python3.9/site-packages/vsstubs/convert.py", line 56, in functions_vs2py
    functions_core[name], functions_video[name] = function_params_vs2py(params)
  File "/home/nsqy/.local/lib/python3.9/site-packages/vsstubs/convert.py", line 33, in function_params_vs2py
    ptype = name_type_opt[1]
IndexError: list index out of range

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.