Skip to content

No $env.config.color_config.glob option #14600

Closed

Description

@PerchunPak

Describe the bug

Setting $env.config.color_config.glob gives me cannot find column 'glob', looks like it is not defined in code, but I can find some references to it.

Value::Glob { .. } => TextStyle::with_style(Left, s),

let mut map: StyleMapping = [

How to reproduce

  1. Run $env.config.color_config.glob

Expected behavior

no error

Configuration

key value
version 0.100.1
major 0
minor 100
patch 1
branch
commit_hash
build_os linux-x86_64
build_target x86_64-unknown-linux-gnu
rust_version rustc 1.82.0 (f6e511eec 2024-10-15) (built from a source tarball)
cargo_version cargo 1.82.0 (8f40fc59f 2024-08-21)
build_time 1980-01-01 00:00:00 +00:00
build_rust_channel release
allocator mimalloc
features default, sqlite, trash
installed_plugins

Installed on NixOS from 3760910

Activity

  1. added
    status:needs-triage
    on Dec 16, 2024
  2. NotTheDr01ds commented on Dec 16, 2024

    @NotTheDr01ds
    Contributor

    Good catch - Looks like it's been missing for a while. I'll add it to the default config so it will get populated.

  3. PerchunPak commented on Dec 16, 2024

    @PerchunPak
    ContributorAuthor

    Looks like $env.config.color_config.closure has the same issue

  4. fdncred commented on Dec 16, 2024

    @fdncred
    Contributor

    I thought this was shape_globpattern?

  5. NotTheDr01ds commented on Dec 16, 2024

    @NotTheDr01ds
    Contributor

    @fdncred There's both. The glob is what would show in:

    let a: glob = "*"
    $env.config.color_config.glob = "red"
    {
      glob: $a
    }
    
    # => ╭──────┬───╮
    # => │ glob │ * │
    # => ╰──────┴───╯

    The glob in structured data is styled via the .glob. Whether or not that's useful, I'm not sure. Related - See #13443.

    On the other hand:

    $env.config.color_config.shape_globpattern = "black"
    def foo [x: glob] {}
    foo "*"

    The argument to foo will be styled via .shape_globpattern

  6. NotTheDr01ds commented on Dec 16, 2024

    @NotTheDr01ds
    Contributor

    I'm not quite sure how to demonstrate $env.config.color_config.closure, however. The <closure xxx> will never be styled, AFAICT.

    It's possible that it's just another one of the "useless" settings, but I can't be sure.

  7. fdncred commented on Dec 17, 2024

    @fdncred
    Contributor

    Thanks for the examples

  8. added this to the v0.101.0 milestone on Dec 17, 2024
  9. added a commit that references this issue on Dec 17, 2024
    6367fb6
  10. PerchunPak commented on Dec 17, 2024

    @PerchunPak
    ContributorAuthor

    Looks like I found one more: $env.config.color_config.shape_raw_string

    EDIT: Weird, yesterday it didn't throw an error, but today these are not found

    • $env.config.color_config.shape_raw_string
    • $env.config.color_config.shape_glob_interpolation
    • $env.config.color_config.shape_garbage
    • $env.config.color_config.shape_vardecl
    • $env.config.color_config.shape_external_resolved
    • $env.config.color_config.shape_keyword
    • $env.config.color_config.shape_closure
      I didn't update and didn't change config since yesterday
  11. NotTheDr01ds commented on Dec 18, 2024

    @NotTheDr01ds
    Contributor

    @PerchunPak Thanks!

    All of the above except shape_garbage appear to be there. I'm adding that one (building while I type this).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions