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

Update regex-syntax to 0.8. #499

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Conversation

CGMossa
Copy link
Contributor

@CGMossa CGMossa commented Nov 27, 2023

I have updated the regex-syntax dependencies to 0.8.
I don't have a way to test this further than cargo test --no-fail-fast, which showed the same tests failing on master as on this. So it is the same in that regard.

@CGMossa
Copy link
Contributor Author

CGMossa commented Nov 27, 2023

I've added the errors from both before upgrading regex-syntax and after.

test_fail_master.txt
test_fail_updated_regex_syntax.txt

@CGMossa
Copy link
Contributor Author

CGMossa commented Nov 27, 2023

@keith-hall thanks for your response on the other issue. I promise you, I just checked again, cargo test fails on master. I even tried cargo test --no-fail-fast and it fails a lot.

@CGMossa
Copy link
Contributor Author

CGMossa commented Nov 27, 2023

I've had to run

git submodule init
git submodule update

and that helped with a bunch of the tests, locally. I see that CI has submodule: true, which is why I had different sets of failing tests on top of CI. But the tests still fail on master-branch for me locally.

@CGMossa
Copy link
Contributor Author

CGMossa commented Nov 27, 2023

I've found out that public_api.text needs to be updated by hand. This is done by setting env variable to UPDATE_EXPECT=1, that then generates a new public_api.txt.

According to the text, it "expects" nightly-2023-08-25, so I made a rust-toolchain.toml, and set it to

[toolchain]
channel = "nightly-2023-08-25"

@CGMossa CGMossa mentioned this pull request Nov 27, 2023
2 tasks
@CGMossa
Copy link
Contributor Author

CGMossa commented Nov 28, 2023

Alright! I've rebased with master, hopefully this will make CI pass.

@CGMossa
Copy link
Contributor Author

CGMossa commented Nov 28, 2023

It works!

Details

PS C:\Users\minin\Documents\GitHub\syntect> cargo test --test public_api
   Compiling syntect v5.1.0 (C:\Users\minin\Documents\GitHub\syntect)
warning: unused import: `serde_json::Value::Array as SettingsArray`
 --> src\highlighting\settings.rs:7:9
  |
7 | pub use serde_json::Value::Array as SettingsArray;
  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused import: `serde_json::Value::Object as SettingsObject`
 --> src\highlighting\settings.rs:8:9
  |
8 | pub use serde_json::Value::Object as SettingsObject;
  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: `syntect` (lib) generated 2 warnings (run `cargo fix --lib -p syntect` to apply 2 suggestions)
    Finished test [unoptimized + debuginfo] target(s) in 10.92s
     Running tests\public_api.rs (C:/cargo_target_dir\debug\deps\public_api-82f2a8627bd89d28.exe)

running 1 test
 Documenting syntect v5.1.0 (C:\Users\minin\Documents\GitHub\syntect)
    Finished dev [unoptimized + debuginfo] target(s) in 5.23s
test public_api ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 6.57s

@Enselic
Copy link
Collaborator

Enselic commented Nov 29, 2023

Thanks! Let's merge.

The other CI failure looks like a bug in the public-api crate that I happen to maintain. I'll look into it.

@Enselic Enselic merged commit 0351df5 into trishume:master Nov 29, 2023
4 checks passed
@CGMossa CGMossa deleted the update_regex_syntax branch November 29, 2023 04:36
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

Successfully merging this pull request may close these issues.

None yet

2 participants