Open SleeplessOne1917 opened 4 months ago
I really need to check the PR tracker first, as there is already a PR for this with #538. Maintainers' call as to which PR to use.
I've looked at the others and I think this PR is the one to use.
Can you fix the CI failure please?
Note to self: There is no Cargo.lock diff since there is no Cargo.lock.
Failures for 2 of the steps are saying Makefile.sublime-syntax: Invalid YAML file syntax: comments must be separated from other tokens by whitespace at byte 10 line 2 column 1
. Do you know where I can find that file, as it's not showing up when I search through the project files.
Also, I'm not sure what to do about the minimum supported rust version test.
Makefile.sublime-syntax
is in the testdata folder, Packages submodule, Makefile subfolder
If the yaml specification and version of the yaml file hasn't changed, why is it reporting a parse error I wonder when it didn't before?
Makefile.sublime-syntax is in the testdata folder, Packages submodule, Makefile subfolder
Is that file supposed to be generated? I don't see anyhthing in that directory.
It will appear when you checkout the git submodules https://github.com/trishume/syntect#getting-started
I did some investigation and it turns out yaml-rust2
is buggy. It doesn't recognize this kind of header for YAML files:
%YAML 1.2
---
# actual content here
It is also unable to parse Markdown.sublime-syntax
. To check that it was an issue with the library and not the YAML file itself, I pasted the contents into this YAML validator and it says it's valid. I tested the same file in a little test project I threw together and, surely enough, it gave me the same errors it gave in this repo's CI tests.
I'll open an issue on the library's repository.
Also, I'm not sure what to do about the minimum supported rust version test.
If you were using yaml-rust
, you can disable the default features of yaml-rust2
to lower MSRV from 1.70 to 1.65.
Feel free to bump MSRV if needed
Hi!
If you still want to transition to yaml-rust2
, is there anything I can help you with?
@Ethiraric I forgot about this PR. I'll squeeze some time in this week to see if there's anything I can address on my end to get the build passing.
When running
cargo audit
on this repo, I get a warning thatyaml-rust
is no longer maintained:This PR replaces that dependency with
yaml-rust2
, which does the same thing and has the same API, but is also actively maintained.Some other warnings popped up as well, but they were related to dev dependencies, so likely not a big deal.