-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CrabViz not showing graph #20
Comments
I was also having problems with nothing happening. I was getting an error "Document symbol information not available" which I was able to solve by making sure the vscode.executeDocumentSymbolProvider would actually return something. For rust, I just had to install rust-analyzer. Not sure if this is the error that you're running into though |
Where did you see the error? in my case I was trying to use it for Python - so not sure what issues there are with different languages. It's an amazing idea though! hoping to leverage it somehow. |
It showed up as a small pop-up and staying the notification area until I cleared it / restarted vscode. I just tried it for python and was able to get it to work, but I had to have every file I wanted a call graph of open (presumably so vscode would generate the symbol information) I used ms-python.pylint for python. |
Crabviz stops working if no language was detected. Please use the |
I'm seeing similar behavior. In the "Extension Host" output, I get this on Linux, with a rust workspace:
|
@ishigoemon Thank you very much for reporting this. I just released a new version 0.3.1 solving this problem. Please update and try it out. |
The same problem occurs when I click on "CrabViz: generate call graph". So I try to degrade the version from v0.4.0 to v0.3.2,it works fortunately. And the version of the VSCODE is version 1.85.2 |
Are there any error logs from "Extension Host"? What platform is it running on? Windows, macOS, or Linux? |
Description: Environment: |
Thank you for the detailed report. I have not tested the new version on remote development, will look into this issue later. |
@chanhx can you tell me how to add new languages? Also, what are the current languages that are supported? I love your project btw, it will definitely be adding improvements to my workflow |
Thank you!
After v0.4.0, Crabviz reads extension manifests to know what languages are supported in VS Code, and it can generate call graphs for all those languages (except some languages in the ignore list, like xml, toml, css etc). So it depends on what languages are supported in your VS Code.
If you want supports for new languages, just install the corresponding language extensions in your VS Code. |
I have tried using the extension on both react+typescript projects and in python. I am unable to generate a function call graph from right clicking the src folder on the sidebar. it only works when i run the command after right clicking on a function inside a specific file. React and typescript is supported by default on vscode and i have installed all the language extensions for python. i am not sure of what the issue is. All i get is "detecting languages" in the bottom right and nothing else. |
So sorry for the late reply. I can't reproduce the bug, maybe it's platform-related, like #27. What's your OS? And the version of VS Code? Do you use the extension in remote development? |
I was able to reproduce this bug exactly as described above with v0.4.0 with the extension installed inside a Linux devcontainer with python3.8 code running an an Ubuntu 22.04 system. Hope that helps |
Thanks for the information. I will try to reproduce the bug and fix it. |
I'm trying to run CrabViz, and I'm not getting a visualization. I do the following:
And nothing happens. CrabViz does briefly pop up with "loading languages" but that's about it.
I'm happy to debug, but not sure about how to do so. Are there instructions on how to do so?
I'm using VSCode with the SSH plugin, if that changes anything.
The text was updated successfully, but these errors were encountered: