-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
Not all supported NuGet references are being linkified #449
Comments
Maybe related to #338 |
This one is very strange, opening the URL yields no octolinks whatsoever. but clicking View in |
Indeed, this is very strange and I can't think of anything which is causing this behaviour. I think it's best follow the same debugging steps as described in #510 (comment) Let me know if you need additional help. Thanks for looking into this @leomoty |
Hello @stefanbuck, @josephfrazier, I have been quite busy at work, but got a bit of time today, I figured out the issue, it might be related to #338. It is not an OctoLinker issue per se, we are handling it fine, however, some blobs are not loaded with the document. This is loaded by javascript afterwards: If you disable javascript you'll see this: I don't know the best solution, but we need either to defer the A friend suggested something alongside these lines: https://gist.github.com/BrockA/2625891, we might need to rethink BlobReader to not visit the same blobs over and over, could even benefit #505? |
GitHub uses selector-observer and delegated-events to wire up their JS because of how parts of the site load (mostly PJAX). I'm not familiar with how Octolinker is setup but maybe this pattern is what's needed to get these other sections to work? |
@xt0rted, this is the relevant line: https://github.com/OctoLinker/OctoLinker/blob/master/packages/core/octo-linker.js#L85
|
I wonder if the extension is rerunning at |
It should re-run on https://github.com/OctoLinker/injection/blob/master/index.js#L12 |
Yeah I noticed that as well. |
Also that being the case, when you expand a deleted file, the content wont get octolinked, right? |
Seems to be working fine now. Feel free to reopen the issue in case it's still an issue |
Browser name: Chrome
Browser version: 64
OctoLinker version: 4.16.1
URL and line number where issue occurs: equineexchange/EquineExchange.ImageHosting@3a91729#diff-f2c1409a20722ddaf5705add38f2fbe1
Expected behavior: The NuGet packages should be linkified like they are elsewhere such as equineexchange/EquineExchange.ImageHosting@de36584#diff-f2c1409a20722ddaf5705add38f2fbe1
Actual behavior: The NuGet packages are not linkified like they are in other diffs
I've worked on the NuGet references but I don't have the time right now to look into this. I wanted to report it in case someone else might know what's causing the issue.
I've been noticing this in a lot of my recent PR diffs. Sometimes the diff will contain say 8 files that contain NuGet package references, but only 2 or 3 of them will actually be linkified. In other cases all the files are. It's happening in both my
packages.config
and*.csproj
files.The text was updated successfully, but these errors were encountered: