Strange Bug with <<BS_START>> <<BS_END>> output in riot templates
See original GitHub issueYou can find the exact code that readily replicates the issue here: https://github.com/skorlir/lucid-goose-nai/tree/1e93618b76da44b2219aa64ee82d3b69d231b157
It’s an interesting one.
See that weird output? I’m almost 100% certain that’s coming from Browser-Sync.
Now if you take a look at src/tags/projects.tag.jade, you’ll see that there’s only one project in the array. If I increase the number of projects to 2, everything renders correctly.
And it works with 3.
And it isn’t a bug caused just by removing an item from the array…
But now once I’m down to one item again…
Weird, right?
I thought the bug was being introduced at the jade-rendering step. But I switched to pre-rendered templates and the bug persisted.
If you want to reproduce (or try, who knows if it’ll happen consistently for someone else), you can download the code at the snapshot tree above and npm i && gulp
. Then go to localhost:3000. Then change the number of items in the array in src/tags/projects.tag.jade.
I’ve seen this type of output before from BrowserSync, but never like this, and never with such a weird reproduction.
Hopefully you’ll find time to look into it! In the meantime, I’m just going to try to keep my lists larger than 1. 😉
Issue Analytics
- State:
- Created 8 years ago
- Comments:11 (5 by maintainers)
Top GitHub Comments
We can’t use the method you suggest -
window.name
is a special property that survives a page reload, which is why we use it.There seems to be a bug though and that needs fixing, but you are incorrect about the usage of namespaces in this case.
See #1364.