Skip to content

Error compiling regex: Look-behind assertion without constant size #50219

@cos4ni2s

Description

@cos4ni2s

Reproduction steps

  1. Input (?<=^(?:\s{4})*)\s{4} in the search bar.
  2. See the error.

Current vs. Expected behavior

  • Current Behavior: Error compiling regex: Look-behind assertion without constant size.
  • Expected Behavior: Every sequence of four spaces starting from the beginning of the line should be selected, as it is the case in VSCode.

Zed version and system specs

Zed: v0.225.9+stable (Zed)
OS: Linux Wayland cachyos unknown
Memory: 7.1 GiB
Architecture: x86_64
GPU: AMD Radeon Graphics (RADV RENOIR) || radv || Mesa 25.3.6-arch2.2

Attach Zed log file

Zed.log

Relevant Zed settings

settings.json

Relevant Keymap

keymap.json

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

Labels

area:parity/vscodeFeedback for VSCode parity featuresarea:searchbuffer search, project search, etcfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usagemeta:easy repro stepsSteps to reproduce are easypriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

Type

No fields configured for Bug.

Projects

Status

Bug Bashers

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions