question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Strange Bug with <<BS_START>> <<BS_END>> output in riot templates

See original GitHub issue

You 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. screenshot from 2015-12-01 02 05 27

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.

screenshot from 2015-12-01 02 07 10

And it works with 3.

screenshot from 2015-12-01 02 07 34

And it isn’t a bug caused just by removing an item from the array…

screenshot from 2015-12-01 02 07 56

But now once I’m down to one item again…

screenshot from 2015-12-01 02 08 16

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:open
  • Created 8 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
shakyShanecommented, May 11, 2016

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.

1reaction
bolaumcommented, Sep 2, 2017

See #1364.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Untitled
Very funny indian wallpaper, Paginas amarillas internet chile, 10k gold per hour, ... Technical report templates, National balloon classic 2013 results, ...
Read more >
Full text of "PC Mag 1989-02-28" - Internet Archive
Here's how to understand the strange-looking code that results 283 POWER PROGRAMMING File Management in C and Assembly Language Ray Duncan!
Read more >
posts-2016-10-12.xml - Medium
... https://medium.com/creative-tims-blog/10-resume-templates-that-are-worth- ... https://medium.com/@wishyouwerehere/send-postcard-mobile-app-ffeb44b4bd6e ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found