Skip to content
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

get symbol infomation through symbol name #244

Closed
yikengboy opened this issue May 7, 2024 · 1 comment
Closed

get symbol infomation through symbol name #244

yikengboy opened this issue May 7, 2024 · 1 comment
Assignees
Labels
graph/scip question Further information is requested team/graph

Comments

@yikengboy
Copy link

yikengboy commented May 7, 2024

I install sourcegraph v5.3 instance, I want to find method reference top 20 in a repo through codeintel function,
now i can build symbol name from codeintel_scip_symbol_names db, The complete structure is as follows semanticdb maven maven/com.qunhe.devops/moon.api 0.0.1-SNAPSHOT com/qunhe/devops/moon/common/DateUtils#().

I want through this symbol name to find symbol’s path and some information like Range, Is there a way to achieve this?

Copy link
Contributor

If you're a Sourcegraph customer, please file a support request through your assigned Customer Engineer or Support Engineer.

I'm tentatively closing this issue, as it's not clear what exactly you're trying to do. We cannot help you with reverse engineering the DB schema, as that may change in upcoming Sourcegraph versions.

At the granularity of Sourcegraph, you can use the references GraphQL API today using source ranges, similar to how it is used by our client-side code. At the granularity of a SCIP index, you'd have to iterate through the symbols field of every Document, and if a SymbolInformation with matching name is found, then you can search the occurrences in that Document for one with a Definition SymbolRole.

@varungandhi-src varungandhi-src closed this as not planned Won't fix, can't repro, duplicate, stale May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graph/scip question Further information is requested team/graph
Projects
None yet
Development

No branches or pull requests

2 participants