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

[Linter panic] panicked at 'called Option::unwrap() in pycodestyle invalid_escape_sequence.rs #9542

Closed
rsyring opened this issue Jan 16, 2024 · 3 comments

Comments

@rsyring
Copy link
Contributor

rsyring commented Jan 16, 2024

Possibly a dupe of #9398

# Code
print(f'Found template at {template.origin} for locations: {%s', template.origin, template_list)
# pyproject.toml
[tool.ruff]
select = [
    'W',   # pycodestyle warnings
]

Error:

panicked at 'called `Option::unwrap()` on a `None` value', crates/ruff_linter/src/rules/pycodestyle/rules/invalid_escape_sequence.rs:175:18
Backtrace:    0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: <unknown>
  18: __libc_start_call_main
             at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
  19: __libc_start_main_impl
             at ./csu/../csu/libc-start.c:360:3
  20: <unknown>
@rsyring
Copy link
Contributor Author

rsyring commented Jan 16, 2024

I thought I had the latest version of Ruff installed but upon further review, it was v0.1.0. Upgrading to 0.1.13 resolved the crash.

@rsyring rsyring closed this as completed Jan 16, 2024
@charliermarsh
Copy link
Member

Oh great, thank you!

@dhruvmanila
Copy link
Member

Just for reference this was fixed in #8154 (v0.1.4).

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

3 participants