Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fatal regex parse error coming from tracing-subscriber after updating #534

@s1gtrap

Description

@s1gtrap

I tried updating my install with cargo install --force trunk as I noticed an issue was fixed on master. Now it always errors with a regex parse error from tracing-subscriber..

This sucks especially as it worked fine before I tried updating AND it also works fine on my local git clone (even added some tests that were missing), but now no matter what version I try to install (back to ^0.15) it always fails as mentioned earlier.

Even if I discard all of my .zshrc changes

s1g@Coy ~ % env
TERM_SESSION_ID=w0t2p0:622BF19F-D4E7-48F5-BE5D-32598D2AB160
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.fKsl6B7xAZ/Listeners
LC_TERMINAL_VERSION=3.4.15
COLORFGBG=15;0
ITERM_PROFILE=s1g
XPC_FLAGS=0x0
PWD=/Users/s1g
SHELL=/bin/zsh
__CFBundleIdentifier=com.googlecode.iterm2
LC_CTYPE=UTF-8
TERM_PROGRAM_VERSION=3.4.15
TERM_PROGRAM=iTerm.app
PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/s1g/.cargo/bin
LC_TERMINAL=iTerm2
COLORTERM=truecolor
COMMAND_MODE=unix2003
TERM=xterm-256color
HOME=/Users/s1g
TMPDIR=/var/folders/14/w1_h_p_53393wdwbd_g528sw0000gn/T/
USER=s1g
XPC_SERVICE_NAME=0
LOGNAME=s1g
ITERM_SESSION_ID=w0t2p0:622BF19F-D4E7-48F5-BE5D-32598D2AB160
__CF_USER_TEXT_ENCODING=0x0:0:0
SHLVL=1
OLDPWD=/Users/s1g
EDITOR=vim
HOMEBREW_PREFIX=/opt/homebrew
HOMEBREW_CELLAR=/opt/homebrew/Cellar
HOMEBREW_REPOSITORY=/opt/homebrew
MANPATH=/opt/homebrew/share/man::
INFOPATH=/opt/homebrew/share/info:
_=/usr/bin/env
s1g@Coy ~ % which trunk
/Users/s1g/.cargo/bin/trunk
s1g@Coy ~ % trunk --version
trunk 0.16.0
s1g@Coy ~ % trunk build
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Syntax(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
regex parse error:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1: (?x)
 2:             ^(?P<global_level>(?i:trace|debug|info|warn|error|off|[0-5]))$ |
                                      ^
 3:                 #                 ^^^.
 4:                 #                     `note: we match log level names case-insensitively
 5:             ^
 6:             (?: # target name or span name
 7:                 (?P<target>[\w:-]+)|(?P<span>\[[^\]]*\])
 8:             ){1,2}
 9:             (?: # level or nothing
10:                 =(?P<level>(?i:trace|debug|info|warn|error|off|[0-5]))?
11:                     #          ^^^.
12:                     #              `note: we match log level names case-insensitively
13:             )?
14:             $
15:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: Unicode-aware case insensitivity matching is not available (make sure the unicode-case feature is enabled)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
)', /Users/s1g/.cargo/registry/src/github.com-1ecc6299db9ec823/tracing-subscriber-0.3.16/src/filter/env/directive.rs:140:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
zsh: abort      trunk build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions