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.

the building terminal does not render ANSII coloring

See original GitHub issue

Details

Expected Result

I build my new documentation using a new extention called jupyter-sphinx. The extention build jupyter binder on the fly to execute cells and display them within the documentation. My installation was working just fine locally but when i pushed it to RDT an error occured.

The issue being that python kernel error are displayed using ANSII color code. These color codes are not rendered by the RDT terminal, making it impossible to read:

[0;31m---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
/tmp/ipykernel_244/3861035409.py in <module>
      1 from sepal_ui import mapping as sm
      2 
----> 3 sm.SepalMap()


which should look like:

--------------------------------------------------------------------------- 
FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_244/3861035409.py in <module>  
          1 from sepal_ui import mapping as sm  
          2  
----> 3 sm.SepalMap()

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
agjohnsoncommented, Sep 15, 2021

Issues like these are in a strange place until we have our public beta ready at very least. Agreed that it feels like we need a way to track these though, and follow up when the public beta goes up.

I’d avoid putting these on the development board for the new templates, as they’ll just get shuffled out of view I’m sure (the work is done).

1reaction
stsewdcommented, Sep 13, 2021

Hi, we set the NO_COLOR env https://no-color.org, there is an open issue on the plugin repo about this https://github.com/jupyter/jupyter-sphinx/issues/115.

I think @agjohnson did some progress to support ansii colors in the build page on the new templates.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Integrated Terminal with wrong ANSI colors #146357 - GitHub
ANSI colors in terminal do not render the way they are supposed to. Colored text on colored backgrounds appears as black or white...
Read more >
Git Bash in Windows Terminal not rendering Picocli ANSI ...
For showing ansi colors on Windows, I strongly recommend that applications use the Jansi library in combination with picocli.
Read more >
Use ANSI colors in the terminal - Windows CMD - SS64.com
Specify the color codes in a batch file by ECHOing the foreground and/or background color codes (from the following table) followed by the...
Read more >
Windows console with ANSI colors handling - Super User
When writing with WriteFile or WriteConsole, characters are parsed for VT100 and similar control character sequences that control cursor movement, color/font ...
Read more >
ANSI color coding not output in VSCode Git bash
(Since I don't use VSCode, I don't really know what it allows). Sure enough, the bash.exe above doesn't render the colors.
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