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.

Thin bug with substitution

See original GitHub issue

So, this is a problem:

#def ____$ =   
#def EQU_M$(equ$; macro$)
    #hide
    macro$$
    #show
    '<p align="center">'equ$',</p>
    macro$$
#end def

'This shows x²+y²+z²=10²+20²+0²=1400
#def VARS$
    'where'x = 10
    '____$'y = 20
    '____$'z = 30
#end def
EQU_M$(x^2 + y^2 + z^2; VARS)

It shows 0² instead of 30², but result is correct. Generated code is correct too and works normally. It seems that it’s a problem with calling macros inside macros, may be output is correct because it shows after 2 times replacer calling but substitution is processed after 1-st time.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
csercommented, Aug 18, 2022

Yes, now it’s OK. Seems that other isn’t broken.

1reaction
Proektsoftbgcommented, Aug 17, 2022

@cser Thank you for reporting that! This is a very wierd bug. I will have a look.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug Identification Guide to Common Insects (With Photos)
Identify the creature you found with this quick and easy bug identification guide to commonly found insects, bugs, arthropods, ...
Read more >
Good Bug? Bad Bug? identification guide
It is not a substitute for personnel with expert knowledge of pulse production or of any aspects of Integrated Pest ... Pacific damsel...
Read more >
17 Tiny Brown Bugs In Kitchen (with Pictures) - Miss Ollie's
American spider beetles are tiny brown spider-like bugs that sometimes invade kitchens and contaminate grain-based food. They are not picky eaters and consume ......
Read more >
Bugs That Look Like Cockroaches
Beetles look similar to cockroaches but have shorter legs and antennae. ... Because both types of bugs can have similar coloring, it can...
Read more >
How to Get Rid of Pantry Bugs: Food Network
Learn all about pantry pests, like moths and weevils, and how to get rid of then, with the Food Network experts.
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