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

Error display column spacing is off with Tabs in source code #10857

Open
e3dio opened this issue May 6, 2024 · 0 comments
Open

Error display column spacing is off with Tabs in source code #10857

e3dio opened this issue May 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@e3dio
Copy link
Contributor

e3dio commented May 6, 2024

What version of Bun is running?

1.1.7

What platform is your computer?

Linux

What steps can reproduce the bug?

This code including the Tab space in front:

	123 + error()

What is the expected behavior?

Caret points to correct location in code:

bun

What do you see instead?

Points to wrong location in source code:

image

Additional information

Tabs display as 4 spaces in Error output, but caret position uses 1 space per tab, so the alignment is off

@e3dio e3dio added the bug Something isn't working label May 6, 2024
@e3dio e3dio changed the title Terminal Error display output spacing is off with Tabs in source code Error display pointer spacing is off with Tabs in source code May 6, 2024
@e3dio e3dio changed the title Error display pointer spacing is off with Tabs in source code Error display column spacing is off with Tabs in source code May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant