chanhx / crabviz

🦀 A LSP-based interative call graph generator
Apache License 2.0
674 stars 22 forks source link

Does not seem to work with Python3 #24

Closed darkpandarts closed 8 months ago

darkpandarts commented 9 months ago

Looks amazing! But, Does this work with Python3? I get "no matching workspace symbols" errors. I think these were due to my init.py files which I deleted. However, no image is opening in vscode. Any ideas on how to get it working? Would be much appreciated :)

chanhx commented 9 months ago

Try this, it works for me.

darkpandarts commented 9 months ago

Thanks for the link. I uninstalled pylance and installed the prelease version: v2023.11.102, & reinstalled crabviz.

Still get the type error with empty init.py files. after removing said files, and running crabviz from right clicl, no type errors but crabviz does not open or show anything.

Do you have any ideas on what may being wrong? :)

chanhx commented 9 months ago

Is the code open-source? Or could you provide a minimal reproducible example?

darkpandarts commented 9 months ago

it is open source. the project is here

https://github.com/stablecaps/bash-auto-doc

darkpandarts commented 9 months ago

if using pip install using requirements-old.txt

darkpandarts commented 9 months ago

entrypoint is gen_mkdocs_site.py and main src files are in bashautodoc

chanhx commented 9 months ago

OK, I will test it later.

chanhx commented 9 months ago

I just cloned your code and analyzed the bashautodoc folder with Crabviz, no pip install, and then I got the output below. Maybe you should check about the pylance settings.

bashautodoc

darkpandarts commented 9 months ago

Ok that sounds amazing! :) What version of pylance do you have installed? I currently have v2023.11.102

Selection_108

chanhx commented 9 months ago

It's not about the version. I switched to the pre-release version, and it worked too. Maybe you should check about Python settings, I just modified the Python: Language Server and Python: Default Interpreter Path.

jonathanGGa commented 9 months ago

Same issue here with the v0.3.0 (crabviz) . I switched to v0.2.0 (crabviz), and now it works perfectly.

chanhx commented 8 months ago

There is an activation error in v0.3.0, which I think is the cause of this issue.

The bug should be fixed in the new version 0.3.1. Please update and try it out.

darkpandarts commented 8 months ago

Awesome! It works for me now thanks! You are a ⭐!!!