githubcode-navigation

How to use GitHub code navigation from browser?


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?


Solution

  • 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.