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
Hi, I came across this project while working on LSPs for name resolution. At first, I would like to appreciate the effort as this is an amazing project. To get started, I created a basic rust project, created an element of type StackGraph but couldn't figure out what to do next?
Am I supposed to somehow give it the path of the whole project dir and it'll create an in-memory stack-graph out of it? Or, should I walk through that project-dir and add each file to the stack graph? Or should I also parse each file using tree-sitter and then add each symbol to this stack-graph? Or am I supposed to index the project dir first using command line and then pass it directly to stackgraph?
DISCLAIMER: in the stackgraph API, there are functions like add_file, add_symbol, and others which states the obvious like this adds a file node to the stackgraph but I couldn't see if it also parses that file and add subnodes or not. if not, how am I supposed to add those nodes.
I would appreciate if you could elaborate complete workflows for handling of a project. like from creating a stackgraph to resolving a symbol. Code is not necessarily needed, you can just tell me steps and functions to call at each step.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I came across this project while working on LSPs for name resolution. At first, I would like to appreciate the effort as this is an amazing project. To get started, I created a basic rust project, created an element of type StackGraph but couldn't figure out what to do next?
DISCLAIMER: in the stackgraph API, there are functions like add_file, add_symbol, and others which states the obvious like this adds a file node to the stackgraph but I couldn't see if it also parses that file and add subnodes or not. if not, how am I supposed to add those nodes.
Beta Was this translation helpful? Give feedback.
All reactions