How to use GitHub code navigation from browser?

8.8k Views Asked by At

I want to take advantage of GitHub's code navigation features on the browser but I am getting this error message at the top of the Python code:

Code navigation is available for this repository but data for this commit does not exist.

When it works successfully it says:

You're using code navigation to jump to definitions or references.

Could somebody help me understand what this message means?

3

There are 3 best solutions below

0
On BEST ANSWER

Considering Code Navigation was released in limited public beta for select repositories earlier this year, and available on Python repositories since last November, it is possible your repository (assuming it has commits) was not yet scanned, especially if it is fairly recent.

Plus, the help page mentions:

Code navigation works for active branches.
If the feature is enabled for you but you don't see links to the definitions of functions and methods, push to the branch and try again.


Q1 2022: precise code navigation is now also active for Java, Javascript and Typescript.

See github/roadmap issue 371.

2
On

Amazing feature :- Now you can open VS code as a browser window. For now it is on Beta version. Try below steps.

  1. open the git repo you want.

enter image description here

  1. Type 1s in URL after github word like below.

enter image description here

  1. After hiting enter you can see view like below. It is VS code

enter image description here

============UPDATE============

Any repo can open using browser window and it is exact same open with vs code that repo.

For use this feature go to the repo and after press '.' (fullstop).

Now you can see it will open like vs code interface

1
On

Private Repositories are not currently being indexed for Code Navigation. Currently, Code Navigation indexing is being performed on Public Repositories and will be rolled out to Private Repositories over time.