-
-
Notifications
You must be signed in to change notification settings - Fork 410
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
[Java] Not able to visualize Graph in Java #148
Comments
Try |
Then something changed in the implementation of the Java Debug adapter :( It should be very easy to fix though. Can you look into it? The source code of this extension has instructions how to build it. |
Hi @hediet , I suppose this extension is build in TypeScript. I have no idea about typescript or javascript. Just a beginner to Java. |
Hi Hediet, First of all thanks for making such cool extension and contributing it to the community.
I am trying to visualize a Graph. But I am facing some issues with it. When I am passing Graph as a json as per format shared by you. It is showing json as an object only not a graph.
`JSONObject mainJsonObject = new JSONObject();
mainJsonObject is the json of Graph created from Nested arraylist. But when I am trying to visualize then it is showing it as an object only.
![image](https://user-images.githubusercontent.com/78197478/165935607-db7678af-6e1a-4701-8c89-5f44c4e78afa.png)
Please refer the screenshot. It looks cool though but it is of no use.
I am trying to pass mainJsonObject directly to expression bar.
Json passed by my code is completely valid ( checked on jsonlint) -
{ "nodes": [ { "id": "0", "label": "0" }, { "id": "1", "label": "1" }, { "id": "2", "label": "2" }, { "id": "3", "label": "3" }, { "id": "4", "label": "4" } ], "kind": { "graph": true }, "edges": [ { "from": "0", "to": "1" }, { "from": "0", "to": "4" }, { "from": "1", "to": "4" }, { "from": "1", "to": "3" }, { "from": "1", "to": "2" }, { "from": "3", "to": "2" }, { "from": "4", "to": "3" } ] }
The text was updated successfully, but these errors were encountered: