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.

Bug in commit 5686daa

See original GitHub issue

In commit 5686daa there is a bug

ERROR in ./src/MusicalScore/Graphical/VexFlow/SvgVexFlowBackend.ts
./src/MusicalScore/Graphical/VexFlow/SvgVexFlowBackend.ts 188:36-47
[tsl] ERROR in ./src/MusicalScore/Graphical/VexFlow/SvgVexFlowBackend.ts(188,37)
      TS2554: Expected 1-3 arguments, but got 0.

ctx.openGroup() cannot be called with 0 parameters.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
rvilarlcommented, Jan 10, 2022

you are right, the error is in VexFlow, sorry for that. The first string is checked not to be undefined. I will fix that in VexFlow and you can undo this one if you want.

1reaction
sschmidTUcommented, Jan 7, 2022

@rvilarl I’m fixing this by updating the definitions in DefinitelyTyped (only relevant for Vexflow 1.2.93 or 3.0.9). The definitions for openGroup() were missing the parameters: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/29216607f433cbb900acdcf4a0e4ea69e9db5376/types/vexflow/index.d.ts#L74

I’ve submitted a PR to DefinitelyTyped: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/58042

It should be merged soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

git-bisect Documentation - Git
This command uses a binary search algorithm to find which commit in your project's history introduced a bug. You use it by first...
Read more >
Automatically find the commit that introduced a bug
Uses a binary search algorithm and a given script to find which commit in history introduced a bug.
Read more >
Finding bugs in Git commits using git bisect - gists · GitHub
Here's how to use git bisect to find the commit that causes the bug. # in the git root, start the git bisect...
Read more >
Find the commit that introduced a bug in your code
When you want to find out which commit introduced a bug in your code. How to use git bisect. Find two commits to...
Read more >
Git - Commit with no changes contains bug - Stack Overflow
If I checkout the third commit (or any commits below it / older), then I no longer see the bug on screen. As...
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