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.

Cursor falling behind in SQL Lab

See original GitHub issue

When I type a SQL query in SQL Lab, the cursor doesn’t align with where I’m actually typing. This can be reproduced in Chrome, Firefox and Edge.

I suspect this is related to the following issues and MRs:

Since I can apply this fix manually in the browser to get it working.

Expected results

The cursor can roughly lines up.

Actual results

It doesn’t.

How to reproduce the bug

  1. Go to ‘SQL Lab’
  2. Type in your query
  3. See error

Environment

docker pull apache/superset:1.2.0

Checklist

Make sure to follow these steps before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven’t found one similar.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:22 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
Naichcommented, Jul 5, 2022

This is still happening when running the latest, which is based off of 9c854ff1f1ab80b26438a3b6d91ca9b44b5f2a7a.

I think the root cause is similar to this: #9183 (comment). There are two .ace_editor classes applied to the SQL editor. Disabling the font-family attribute in one and having the font attribute in another applied seem to be able to get the cursor properly aligned.

image

Before: image

After: image

Chrome 102.0.5005.63 + superset 1.5.1 same issue here, and disabling the first font-family css could solve it.

2reactions
mapshencommented, Sep 27, 2021

@junlincc Sorry for the late reply and appreciate your help on trying to fix this issue so far.

Unfortunately, in my test just now with the latest image apache/superset:fcab489860399d38bc3a66fd26dd62b7c3e3ffd5, the issue still persists - could we please reopen this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[GitHub] [superset] mapshen opened a new issue #15749
When I type a SQL query in SQL Lab, the cursor doesn't align with where I'm actually typing. This can be reproduced in...
Read more >
SQL Server cursor performance problems - SQLShack
This article provides an explanation about performance problems caused by using SQL Server cursors, describes why these cursors exist.
Read more >
- SQL Assistant 15.00 Cursor lagging problems - Community
I just updated to the newest SQL Assistant 15.00 and experienced lagging problems due to the cursor constantly switching back and forth from ......
Read more >
20 Improving Real-World Performance Through Cursor Sharing
Cursor sharing can improve database application performance by orders of magnitude.
Read more >
Cursor-Killing: Accessing Data in the Next Row
Cursors are considered by many to be the bane of good T-SQL. What are the best ways to avoid iterative T-SQL and to...
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