简体   繁体   English

遇到关于在 github 代表中导航代码的基本问题,因为单击函数引用不会突出显示它或显示定义

[英]Running into a basic issue about navigating code in github rep as clicking on a function-reference doesn't hightlight it or show definition

I was earlier able to browse the github repo at https://github.com/r9y9/Tacotron-2/blob/master/wavenet_vocoder/models/wavenet.py easily in browser, so that when I put cursor on top of jResidualConv1dGLU at Line84, it'd highlight and let me click on "Definition" and "References" of class ResidualConv1dGLU . I was earlier able to browse the github repo at https://github.com/r9y9/Tacotron-2/blob/master/wavenet_vocoder/models/wavenet.py easily in browser, so that when I put cursor on top of jResidualConv1dGLU at Line84,它会突出显示并让我点击 class ResidualConv1dGLU的“定义”和“参考”。

But I used the same repo in the same browser today, and it doesn't do anything.但是我今天在同一个浏览器中使用了同一个 repo,它什么也没做。 It doesn't highlight ResidualConv1dGLU or show links for Definition/References of it.它不会突出显示ResidualConv1dGLU或显示其定义/引用的链接。 It's as if it doesn't know that it's a class.就好像它不知道它是一个class。

Is there some default setting needed to enable that?是否需要一些默认设置来启用它? What am I missing?我错过了什么?

PS: (It was working a few days ago, so I am not sure what changed in just a few days) PS:(几天前它还在工作,所以我不确定这几天发生了什么变化)

What might have changed yesteraday (June 23, 2020) is " Design updates to repositories and GitHub UI "昨天(2020 年 6 月 23 日)可能发生的变化是“ 对存储库和 GitHub UI 的设计更新

Try and make sure to clear the cache of your browser and reload everything.尝试并确保清除浏览器的缓存并重新加载所有内容。

That being said, when clicking on "Jump to", I see:话虽如此,当点击“跳转到”时,我看到:

跳到

"Code navigation not available for this commit", which is expected for a fork. “此提交无法使用代码导航”,这是 fork 所期望的。
But I see the same issue on the original repository Rayhane-mamah/Tacotron-2 .但是我在原始存储库Rayhane-mamah/Tacotron-2上看到了同样的问题。

Those repositories needs to be re-scanned by GitHub, as I mentioned here .正如我在此处提到的,这些存储库需要由 GitHub 重新扫描。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM