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

[log syntax] Escaped quotes messes up colors inside of the json string. #2123

Closed
zetanumbers opened this issue Mar 16, 2022 · 2 comments · Fixed by #2127
Closed

[log syntax] Escaped quotes messes up colors inside of the json string. #2123

zetanumbers opened this issue Mar 16, 2022 · 2 comments · Fixed by #2127
Labels
bug Something isn't working syntax-highlighting

Comments

@zetanumbers
Copy link

Describe the bug you encountered:

Escaped quote breaks color of the json string

изображение

What did you expect to happen instead?

String should be one color.

How did you install bat?

Installed bat via homebrew.


bat version and environment

Software version

bat 0.20.0

Operating system

Linux 5.16.11-76051611-generic

Command-line

bat /home/zeta/.cache/helix/helix.log --diagnostic

Environment variables

SHELL=/bin/bash
PAGER=<not set>
LESS=<not set>
LANG=ru_RU.UTF-8
LC_ALL=<not set>
BAT_PAGER=<not set>
BAT_CACHE_PATH=<not set>
BAT_CONFIG_PATH=<not set>
BAT_OPTS=<not set>
BAT_STYLE=<not set>
BAT_TABS=<not set>
BAT_THEME=<not set>
XDG_CONFIG_HOME=<not set>
XDG_CACHE_HOME=<not set>
COLORTERM=truecolor
NO_COLOR=<not set>
MANPAGER=<not set>

Config file

Could not read contents of '/home/zeta/.config/bat/config': No such file or directory (os error 2).

Compile time information

  • Profile: release
  • Target triple: x86_64-unknown-linux-gnu
  • Family: unix
  • OS: linux
  • Architecture: x86_64
  • Pointer width: 64
  • Endian: little
  • CPU features: fxsr,sse,sse2
  • Host: x86_64-unknown-linux-gnu

Less version

> less --version
less 551 (GNU regular expressions)
Copyright (C) 1984-2019  Mark Nudelman

less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Home page: http://www.greenwoodsoftware.com/less
@zetanumbers zetanumbers added the bug Something isn't working label Mar 16, 2022
@keith-hall
Copy link
Collaborator

hi, thanks for reporting. Can you paste (part of) your log file here please, so we can reproduce the problem locally - it will help us investigate how to fix it :)

@keith-hall keith-hall changed the title Escaped quotes messes up colors inside of the json string. [log syntax] Escaped quotes messes up colors inside of the json string. Mar 16, 2022
@zetanumbers
Copy link
Author

hi, thanks for reporting. Can you paste (part of) your log file here please, so we can reproduce the problem locally - it will help us investigate how to fix it :)

2022-03-16T17:41:02.519 helix_term::application [WARN] unhandled window/showMessage: ShowMessageParams { typ: Error, message: "rust-analyzer failed to load workspace: Failed to read Cargo metadata from Cargo.toml file /home/zeta/dev/raytracer/Cargo.toml, cargo 1.61.0-nightly (65c8266 2022-03-09): Failed to run `\"cargo\" \"metadata\" \"--format-version\" \"1\" \"--manifest-path\" \"/home/zeta/dev/raytracer/Cargo.toml\" \"--filter-platform\" \"wasm32-unknown-unknown\"`: `cargo metadata` exited with an error:     Updating crates.io index\nerror: failed to select a version for `parking_lot`.\n    ... required by package `raytracer v0.1.0 (/home/zeta/dev/raytracer)`\nversions that meet the requirements `^0.12.0` are: 0.12.0\n\nthe package `raytracer` depends on `parking_lot`, with features: `wasm-bindgen` but `parking_lot` does not have these features.\n\n\nfailed to select a version for `parking_lot` which could resolve this conflict\n" }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working syntax-highlighting
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants