Modernize repo and make sure it works with ST4#9
Modernize repo and make sure it works with ST4#9michaelblyons merged 204 commits intoSublimeText:masterfrom
Conversation
|
Okay. The tests run now (I spent quite a lot of time discovering I had |
|
I also intend on completely changing the algorithm for detecting a modeline. The rationale for that is we allow changing the syntax of the file, which means the comment char will probably incorrect if the syntax of the file is incorrect… I think we could probably have the tokens like so (full-line regex): (We assume here no comment will need to end with a That would make any of these modelines recognized: And those would not be recognized: What do you think? EDIT: Syntax changes. |
|
You don't think |
|
It’s very edge-casy, but there is dnl. |
|
If you want to check ST3 compat, UnitTesting has a GH Action that can do it for you. There's probably not any divergence between platforms, so ST3, ST4 on Ubuntu is probably enough. If you have CI minutes to burn. 😅 |
|
Yes I noticed the UnitTesting repo has a GitHub Actions for testing in the CI and thought about setting that up. Thanks for the review! I have not finalized everything yet, the PR is still a draft for now (I have to implement the format change, cleanup the tests even more, etc.) I will do the changes you proposed/requested before marking the PR ready. |
|
I may be over-engineering things and have 0 time, but I’m still on it! \o/ |
|
I'm still loosely watching your progress. (Great work, btw!) If you hadn't noticed, some time in the last two days, the CI started failing without test output. |
|
Thanks! Yes, I know, I intend to fix that before marking the PR ready. I'm missing the parser for the VIM and classic modelines, as well as fixing and adding some tests and then I'll be good! |
|
The core is done. |
c15208d to
c3b822d
Compare
|
Hi @michaelblyons! Locally the few tests I have restored work. Using I’m not sure how to debug that. Do you have some insight on how I could proceed? Thanks |
|
Does it help you to debug if you set Then you should be able to see any print statements (or logging?) and see how far your program executed. |
e03a884 to
8c3cbaa
Compare
They are now properly ordered by reverse date of contribution.
Inform this setting needs a full plugin reload to take effect.
That being said:
I have no idea if it works before ST4 nowIt does not work before ST4;I have not succeeded in running the tests (UnitTesting shows a panel at the bottom, but it is desperately empty; I suspect a syntax error, or something of that nature, but I don’t know for sure and am not sure how to debug…)-> Fixed;I have removed the support for vim modelines. There is a dedicated plugin for that if needed; let’s not mix everything up!-> I actually enhanced the support for it, as well as added Emacs modelines;