You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying out the Python bindings using Ubuntu 23.10 and the Halide16 apt packages in a Docker container with a VSCode remote connection, but I wasn't able to get code completion working.
My code did run fine, it was just the VSCode IDE that showed all kinds of errors because it didn't find the halide symbols.
Is this supposed to work correctly, or is this not supported.
The text was updated successfully, but these errors were encountered:
I was doing some quick experimentation just today on this! In short, pybind11 generated python bindings don't work with standard Python tools like pyright (VSCode's default lsp) or mypy.
I tried pybind11-stubgen with some success. Basically, after installing it, you run something like:
pybin11-stubgen halide -o path/to/site-packages
Assuming halide is installed under path/to/site-packages.
This will generate a few .pyi stub files and place them next to the installed halide files. Many things are still not working, though. But based on a quick look at this discussion on pybind11, some tweaks in halide's python bindings code will really help.
I was trying out the Python bindings using Ubuntu 23.10 and the Halide16 apt packages in a Docker container with a VSCode remote connection, but I wasn't able to get code completion working.
My code did run fine, it was just the VSCode IDE that showed all kinds of errors because it didn't find the halide symbols.
Is this supposed to work correctly, or is this not supported.
The text was updated successfully, but these errors were encountered: