-
Notifications
You must be signed in to change notification settings - Fork 56
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
Failed to upload index file #558
Comments
Hi KashingLiu. What output do you get when you run with |
@Strum355 here is my output, when I put the url which shows unknown repository into chrome, it can redirect to my correct repository, and I use ssh to clone my repository. Should I set something before I upload the lsif file? I don't know what is behind my IP and my port ".api/lsif/upload....." mean. Or can I just put the lsif file into somewhere in the sourcegraph docker?
< POST http://myIP:7080/.api/lsif/upload?commit=f73bb8a29fc9ebf8ea0699ff90ef86bcd913522e&indexerName=lsif-clang&repository=my repo url%2Fmy repo%2Ftesttt 404 Not Found in 13.998028ms |
@Strum355 Hello, it shows "< Response Body: unknown repository *my-repo-url*/*path-to-my-repo*/testtt ". Does it mean it doesn't recognize my repo url ? in the sourcegraph which I deploy on my host, I use SSH to clone the repo, and the port is 2222, so the url in the sourcegraph is repo:^***my-repo-url***-2222/*path-to-my-repo*/testtt$ , so if the repository is known, does it cause by the port? The url doesn't match because of the port? I don't know the match rule, when I upload, the POST request contains a parameter which is repository, it should be the same as what? It should be the same as my real git host url(*my-repo-url*/*path-to-my-repo*/testtt), OR the url which I get after I set the sourcegraph(***my-repo-url***-2222/*path-to-my-repo*/testtt)? |
@Strum355 Hello, I try to use https to clone my project and it works! But after I upload my lsif file, the code intelligence function still does not work. There is not a "Go to Defination" or something you mentioned in the documentation. What should I set or am I lost something? |
Hi @KashingLiu. Can you confirm that there is an upload visible under site-admin/code-intelligence/uploads? There should be a list of >0 LSIF uploads listed there, and if you click on one, you should be able to see a page that looks similar to the following image (assuming you are self-hosting Sourcegraph): Please do note, lsif-clang is not 100% complete. There are cases where precise code intelligence may be missing (notably for macros), but I would expect there to possibly be search-based code intelligence if that is the case. As an example, heres a precise result from lsif-clang compared to a symbol that only gives search based results, within the same repo. |
Hello @Strum355 . I have another question. |
Hi @KashingLiu, yes the extensions are required for code intelligence. If youre unable to connect to sourcegraph.com/.api/registry/extension, you may be able to run a private extension registry and copy the relevant extensions from the sourcegraph.com registry to it. The docs for that can be found here https://docs.sourcegraph.com/admin/extensions |
π‘ Inferred arguments
repo:
commit:
root:
file: dump.lsif
indexer: lsif-clang
β Index compressed
π‘ Indexed compressed (1.23MB -> 0.19MB).
β Failed to upload index file
The text was updated successfully, but these errors were encountered: