-
Notifications
You must be signed in to change notification settings - Fork 141
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 sublimehq/Packages and update tests accordingly #535
base: master
Are you sure you want to change the base?
update sublimehq/Packages and update tests accordingly #535
Conversation
This requires support for |
dcd6f23
to
d27a140
Compare
I was not building with |
I'm looking at how to implement extends (in a different PR). My initial idea is to add an error for Do you have any input on that? |
The test failure is due to serde auto detecting nightly and trying to enable unstable features. We could update to a newer nightly to fix the issues, but really, serde should just stop doing that 😠 |
Sounds reasonable, but I'm not sure about the case where the "extended" syntax (i.e. syntax with |
I guess that is why there is a separate linking step at the moment - maybe it would be possible to do the work there? |
Could you point me to the linking step? I am currently hacking everything together on top of the |
The linking is done when building the syntax set: syntect/src/parsing/syntax_set.rs Line 658 in de715e5
|
What I would need to do then, is delay loading syntaxes when I find an |
d27a140
to
b62ffed
Compare
Rebased on top of |
I'll look at the failures this afternoon, thanks for running the CI c: |
I don't understand how the tests work, specifically, how |
|
Oh, I missed that the actually failure is on the following command
I'm able to reproduce locally. I'll have a look and see if I can find out something... |
Does it make sense to change the known failure files? If so, I've done it in jalil-salame#1. Although this seems relatively sensible within the context of this change (please do correct me if I'm wrong), I suspect it might not be desirable to be merged on |
I think the files need to be updated, just like the tests, but I don't know how to do that (or if it should be done at all). I think the syntax definitions changed (which is why it is failing), but I need some input from someone who knows. |
I believe if you merge jalil-salame#1, the tests will pass. But I, too, could use some guidance with regard to whether this is acceptable. Maybe @keith-hall knows more? 🙂 |
It could be acceptable, but first I think it's worth taking some time to identify what those failures are, and whether they are simply due to existing known bugs. Upgrading the syntaxes and having them highlight more wrongly than before updating them would kind of defeat the point... 😅 I'll try to take a look into it myself at some point in the near future, but I don't get much free time these days unfortunately |
Some scope names have changed so it might be because of that, but I don't know how to check what the errors are (just what grammars failed). |
it is running the syntax tests which are alongside the syntax definitions, which would also cover scope name changes - these tests pass directly in Sublime Text, for example. One can manually run the |
The new syntax files cause new test to fail (and C# to pass). This should be looked over more carefully and fixed in the future.
b62ffed
to
0aa5b6a
Compare
After giving it another look, I think the right thing to do is to update the I'll probably even give it a shot later c: I updated the files, could you rerun the CI @keith-hall ? Thanks |
One of the HTML errors is probably due to a change in the theme file ( Whereas the other What do you think we should do @keith-hall? The first case seems pretty uncontroversial to just update, the second one though is a bit more complicated:
I don't like any of the options. I hope someone has a better idea. |
Markdown is failing due to lack of branch point support in |
I'll look for the last working commit then, and take a look at the issue you linked c: |
Is there anything I can do to help this move forward? The current syntax references are 7 years old. I'd also like to use typescript without any difficult installation steps. |
You probably want to look at |
I was looking into issues with newer sublime syntax packages so I updated the
testdata/Packages
submodule to the last working version.This required some small tweaks to the
parser
tests.The next commit (40ec1f2f) fails to pass the tests due to a failure to parse the YAML:
As far as I can tell, this happens due to not handling
include: context-name
properly. I would like to also fix the issue with 40ec1f2f, but I don't know where to start.How I found the bad commit
If you want to reproduce the search, what I did was:
Then fix the parser tests until I got to 40ec1f2f.
Additional thoughts
This would've been easier with insta, as I could've set
INSTA_UPDATE=always
ingood.sh
to have the snapshot tests be automatically updated (ignored), and thus found the bad commit slightly quicker. If this sounds desirable, then I would gladly switch snapshots fromassert_eq!
toassert_debug_snapshot
.