Code Monkey home page Code Monkey logo

Comments (6)

kdvolder avatar kdvolder commented on June 7, 2024 1

Similar effects observed as @PyvesB reports. I will add that not only are the black and blue colors being displayed incorrectly, the colors are actually 'unstable'. Every time a error message is printed that should normally get the hyperlink/underline, the black and blue colors are changing in a somewhat unpredictable way (some stuff that was black becomes blue and vice versa).

I was able to reproduce this by running some code that deliberately logs stuff that 'looks like' an error message. Here's my test code (it's the main method of a very simple maven/spring-boot app).

package com.example.demo;
import java.util.Random;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
@SpringBootApplication
@EnableScheduling
public class VmargDumperApplication {
	Random rnd = new Random();
	private static final Logger log = LoggerFactory.getLogger(VmargDumperApplication.class);
	public static void main(String[] args) {
		SpringApplication.run(VmargDumperApplication.class, args);
	}
	@Scheduled(fixedRate = 200)
	public void doStuff() {
		int x = rnd.nextInt(8);
		if (x==0) {
			log.error("java.lang.IllegalArgumentException: test");
		}
		log.info("Stuff = "+x);
	}
}

Full zip of the test project:
vmarg-dumper.zip

Import this as a 'Existing Maven Project' or 'Existing Project'. Then run the main class with ansi console enabled.

You will see that every time the message java.lang.IllegalArgumentException: test is printed the black and blue colors on the screen are jumping around (other colors seem to remain correct).

More info: Observed this during testing of (about to be released) STS 4.5.1 which is based on Eclipse 4.14.

from ansi-econsole.

mihnita avatar mihnita commented on June 7, 2024 1

Fixed by version 1.4.0.202001252332

from ansi-econsole.

mihnita avatar mihnita commented on June 7, 2024

Thank you, I will take a look.

from ansi-econsole.

famod avatar famod commented on June 7, 2024

Same here, Eclipse 2019-09.

from ansi-econsole.

PyvesB avatar PyvesB commented on June 7, 2024

Not sure whether this is directly related, but when running Maven builds (for instance this library), I'm seeing a lot of incorrect blue line colouring in the output:

Screenshot 2020-01-17 at 13 33 48

from ansi-econsole.

PyvesB avatar PyvesB commented on June 7, 2024

I've updated to the latest version, looks great so far, thanks @mihnita !

from ansi-econsole.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.