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.

Using "%s" as an argument name causes unexpected behavior

See original GitHub issue

Expected Behavior

  • Creating a custom procedure with “%s” as an argument name should work

Actual Behavior

  • Causes a number of exceptions that lead to instability

Steps to Reproduce

  • Click the “Make a block” button
  • Enter %s as the argument name
  • Click “ok”

Demo

untitled3

Operating System and Browser

Mac OS 10.13.2 | Chrome Version 63.0.3239.132 (Official Build) (64-bit)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
AmazingMech2418commented, Jan 28, 2018

@Kenny2github It actually does it for anything starting with “%” even if it isn’t an argument placeholder.

0reactions
thisandagaincommented, Jan 30, 2018

Moved to LLK/scratch-blocks#1368

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unexpected behavior calling a function with positioned ...
It seems to be that your error comes from mixing named and positional arguments in the same call. You can't do name(~forename="Jane", ...
Read more >
Python: Unexpected behavior when function argument is ...
In the code below I assign a list of lists A. I call it into a function named modify(M) that modifies M. As...
Read more >
Undefined behavior - Wikipedia
In computer programming, undefined behavior (UB) is the result of executing a program whose behavior is prescribed to be unpredictable, ... Not to...
Read more >
Solved: Re: Configure an alert on Service catalog variable ...
(Having names with uppercase, spaces, question marks is not best practice and does cause unexpected behavior. So if the name is indeed System...
Read more >
Implicit arguments — Coq 8.16.1 documentation
The command has indeed failed with message: Argument n is a trailing implicit, so it can't be declared non maximal. Please use {...
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