jpt/owl-write
2
12
Fork
You've already forked owl-write
0

Latest version and build on crate.io panics on my website's repo. #26

Open
opened 2026年05月28日 14:30:48 +02:00 by asibahi · 2 comments
Contributor
Copy link

Here is the full error, just running owl init then owl check. I am on macOS as it happens.

thread 'main' (2323990) panicked at /Users/USER/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owl-write-0.5.0/src/core/checks.rs:196:18:
valid regex: Syntax(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
regex parse error:
 \b)\b
 ^
error: unopened group
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

owl -V gives me owl 0.5.0


This is the repo it happens on : https://git.sr.ht/~asibahi/site .

Here is the full error, just running `owl init` then `owl check`. I am on macOS as it happens. ``` thread 'main' (2323990) panicked at /Users/USER/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owl-write-0.5.0/src/core/checks.rs:196:18: valid regex: Syntax( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ regex parse error: \b)\b ^ error: unopened group ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ) note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ``` `owl -V` gives me `owl 0.5.0` --- This is the repo it happens on : https://git.sr.ht/~asibahi/site .
asibahi changed title from (削除) Build on crate.io panics (削除ここまで) to Latest version and build on crate.io panics on my website's repo. 2026年05月28日 14:42:34 +02:00
Author
Contributor
Copy link

It is choking on code blocks.

diff --git a/src/core/checks.rs b/src/core/checks.rs
index 00435a809d..48f28ebbb9 100644
--- a/src/core/checks.rs
+++ b/src/core/checks.rs
@@ -190,6 +190,7 @@

 for window in words.windows(2) {
 if window[0].1.eq_ignore_ascii_case(window[1].1) {
+ dbg!(&window);
 let line_num = window[0].0;
 let line = &lines[line_num - 1];
 let start_col = Regex::new(&format!(r"\b{}\b", window[0].1))

Gave me this dbg!:

[src/core/checks.rs:193:13]&window=[(217,")",),(218,")",),]
It is choking on code blocks. ```diff diff --git a/src/core/checks.rs b/src/core/checks.rs index 00435a809d..48f28ebbb9 100644 --- a/src/core/checks.rs +++ b/src/core/checks.rs @@ -190,6 +190,7 @@ for window in words.windows(2) { if window[0].1.eq_ignore_ascii_case(window[1].1) { + dbg!(&window); let line_num = window[0].0; let line = &lines[line_num - 1]; let start_col = Regex::new(&format!(r"\b{}\b", window[0].1)) ``` Gave me this `dbg!`: ```rust [src/core/checks.rs:193:13] &window = [ ( 217, ")", ), ( 218, ")", ), ] ```
Owner
Copy link

Thanks, just digging out from some work stuff and will try to take a look at this soon. Thanks for the other contributions!

Thanks, just digging out from some work stuff and will try to take a look at this soon. Thanks for the other contributions!
jpt added this to the 0.5.x milestone 2026年06月08日 02:05:27 +02:00
Sign in to join this conversation.
No Branch/Tag specified
main
0.5.0
0.4.5
0.4.4
0.4.3
0.4.2
0.4.0
0.3.0
0.2.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jpt/owl-write#26
Reference in a new issue
jpt/owl-write
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?