Ref12 icon indicating copy to clipboard operation
Ref12 copied to clipboard

Bad url when using F12

Open billybraga opened this issue 8 years ago • 4 comments

Goes to this url, which gives an error message : http://referencesource.microsoft.com/System.Core/a7.html#783a052330e7d48d

billybraga avatar May 05 '17 12:05 billybraga

This bug is pretty critical since it makes Ref12 completely unusable.

Seems it's because Microsoft changed the hashes they use to link to the code files (maybe with the release of Framework 4.7 the hashes automatically updated?), hence Ref12's hardcoded ones no longer match and MS can't find them to do the redirect. Amusingly enough, Microsoft's own Link to a type/member link on the front page of referencesource.microsoft.com suffers from the same problem.

For example, Ref12 is passing a80c803cd6c25112 for System/Linq/Enumerable.cs (which gets translated to 80c803c by MS's JavaScript), but Microsoft's hash for that file is 0f3613a.

Assuming MS did change the hashes intentionally, and will continue to do so in future - perhaps it would be a better long-term solution to have this extension pull the list of latest file hashes from a URL every so often, and cache them locally?

IanKemp avatar Jun 05 '17 10:06 IanKemp

Not sure if this is the same issue but when I try going to a reference in VB for example "Keys.A" I get sent to the link below http://referencesource.microsoft.com/System.Windows.Forms/ac.html#c9ea55b52b93f5c4 with the message.

Don't use this page directly, pass #symbolId to get redirected."

paul1956 avatar Jun 06 '17 07:06 paul1956

@paul1956 Yes, it's the same issue.

IanKemp avatar Jun 06 '17 07:06 IanKemp

Now tracked at https://github.com/Microsoft/referencesource/issues/28

IanKemp avatar Jun 18 '17 10:06 IanKemp