Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird character during running phase #502

Open
laupse opened this issue Nov 17, 2023 · 1 comment
Open

Weird character during running phase #502

laupse opened this issue Nov 17, 2023 · 1 comment

Comments

@laupse
Copy link

laupse commented Nov 17, 2023

When air is running the binary, those character ^[[20;1R^[[20;9R (escape string ?) appears followed by some of my code execution (debugging println) and then those character again. And finnally the normal execution of code goes on. I made a video and it is not edited

2023-11-17.14-10-52.mp4

It really slows down the reloading

This behavior does not appears when running the binary manually ./tmp/main
This behavior only appears on one specific project (link soon)
This behavior apperas from version 1.45 to 1.49

@laupse
Copy link
Author

laupse commented Nov 17, 2023

I have isolated the root cause. It's because of use of this logging library https://github.com/charmbracelet/log

You can reproduce whis this file

package main

import (
	"os"

	"github.com/charmbracelet/log"
)

func main() {
	log.NewWithOptions(os.Stdout, log.Options{})
	log.Info("test")
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant