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.

Strange highlighting

See original GitHub issue

I just noticed this strange highlighting behaviour while providing this sample code on reddit:

#include <memory>
#include <future>

int main() {
    using namespace std;

    auto foo = make_unique<int>(42);

    auto inc1 = async(launch::async, [foo = move(foo)] { (*foo)++; });

    // ...

    auto inc2 = async(launch::async, [foo = move(foo)] { (*foo)++; });
}

I was checking how gdb would behave on segfault. The c++ sample was compiled with g++ -g3 -O0 -std=c++14 -Wall -Wextra -pedantic -lpthread sample.cpp -o sample.

Running gdb ./sample + >>> r gives:

screenshot from 2017-01-30 18-55-31 Notice how mov DWORD PTR [rax],edx is not correctly highlighted.

My custom gdb-dashboard initialization is:

set disassembly-flavor intel
dashboard -style syntax_highlighting "algol_nu"

define hookpost-up
dashboard
end

define hookpost-down
dashboard
end

Issue Analytics

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

github_iconTop GitHub Comments

0reactions
cyrus-andcommented, Jun 14, 2019

Finally fixed, the problem was in how the lexer was chosen. (See the Pygments issue.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Small but strange syntax highlighting bug (or feature)? #90279
VSCode Version: VSCode Insiders 1.43.0. OS Version: Ubuntu 16.04 When you open a file, the syntax highlighting is okay: After a few seconds, ......
Read more >
Unity Tilemaps, Single Tile Collision detection for highlighting ...
Unity Tilemaps, Single Tile Collision detection for highlighting Tiles/Cells, strange behaviour · Careful: Afaik the Tilemap. · And yes make sure ...
Read more >
How to stop strange "highlighting" behavior when selecting ...
I have a strange situation with one user. When she selects text in a Word document the standard blue selection highlight shows up...
Read more >
Solved: Strange Filter and Highlighting Interaction
Strange Filter and Highlighting Interaction ... when I highlight the data on the graph by selecting the name in the Legend, the Multi-Row ......
Read more >
Strange Highlighting in overleaf - TeX - LaTeX Stack Exchange
Sometimes it signifies open brackets, but most of the time it does not. I have been using overleaf for years and this issue...
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