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.

Shortcodes: openPattern '{{' doesn't work on linux (Arch linux), best alternative ? Possible fix ?

See original GitHub issue

openPattern: {{ doesn’t work on my machine, I get this error message from rollup:

44:   {{ picture src={data.url} /}}
                 ^
...
ParseError: Unexpected token

(arrow under the ‘s’ of src).

So for now I go with %% as the openPattern operator. All operator including bracket seems to have the same result, no problem with closePattern set to }}. Two questions about it:

  • What is the best alternative according to you ?
  • Do you think is something that can be fix in the future ? Thank’s 😃

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
kiuKisascommented, Mar 10, 2021

That’s currently interesting, because if I understand well, this helper return the shortcode.

So: openPattern + your shortcode + closePattern

And it works even if we have {{ as openPattern… Hum… 🤔

Edit: in elderjs/shortcodes, there is already a test about that and it pass on my machine.

Given these informations, the issue probably come from the implementation.

Investigate mode activate 👀

0reactions
ramshorstcommented, Mar 10, 2021

Interesting, I might try that. Thanks !

Read more comments on GitHub >

github_iconTop Results From Across the Web

System maintenance - ArchWiki
Regular system maintenance is necessary for the proper functioning of Arch over a period of time. Timely maintenance is a practice many ...
Read more >
Visual Studio Code - ArchWiki
Code is a cross-platform text editor developed by Microsoft, built on the Electron framework. Visual Studio Code is a binary distribution of ...
Read more >
pacman - ArchWiki
Arch's package manager pacman can install, update, and remove those packages. Using packages instead of compiling and installing programs ...
Read more >
Frequently asked questions - ArchWiki - Arch Linux
Before asking for help, do your own independent research by searching the Web, the forum and the superb documentation provided by the Arch...
Read more >
Network configuration/Wireless - ArchWiki - Arch Linux
The default Arch Linux kernel is modular, meaning many of the drivers for machine hardware reside on the hard drive and are available...
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