Resurrect Modelines package#9333
Conversation
Package ReviewChannel DiffRemoved (none), changed Modelines, added (none). Review for Modelines 1.1.0Review for Modelines 2012.09.13.23.27.49 |
|
Okay, I've tagged a pre-merge Beta of SublimeText/Modelines#9. Can I get the reviewer bot to try that one instead? 📦 |
|
Is there anything I can do to move this forward? |
My understanding is that package changes with lots of Python functionality (i.e. not a color scheme, syntax, or snippet collection) take reviewer time, which is in short supply. We could probably get a quicker merge on a PR that limits ST2 to tags rather than But after Some Incidents ™️ in the past, packages get at least a security check to make sure they don't do anything nefarious. And sometimes additional code review. |
|
Understood. No worries, I am in no hurry (I have it installed locally anyways); just making sure it was not in limbo. |
|
The package reviewer script mostly looks at the tip of the default branch. That's in almost all cases the version we want to review. See also #9330 (comment). The repo layout is also a bit confusing for contributors if that's not the case... so while I'm inclined to take @michaelblyons 's word for it that the package is good, but I would love to run the bot on it anyway :) As for my own very quick review, some notes:
|
Not sure if that helps (probably not), but I have updated the default branch of my fork to be the one I worked on, and that will be merged.
The proper naming is indeed Modelines now, because I have added support for common modelines (VIM and Emacs). I can rename everything.
I think there were no settings file prior to my rewrite, so that will not be an issue. |
|
@braver, would you like me to split this into a ST2 -> tags PR and a subsequent ST4 series PR? If that helps, I can do it. |
|
I have pushed the full renaming of “Sublime Modelines” to “Modelines.” |
Nah, probably won't matter. |
|
Let's see... with the default branch basically being what you want to ship, the tests should run (and pass 🤞🏻) if you rebase this PR on master. |
12cba51 to
81ec565
Compare
Package ReviewChannel DiffRemoved (none), changed Modelines, added (none). Review for Modelines master-7f703b8-2012.09.13.23.27.49 |
I don't think this check is working correctly. We have prefixed SemVer tags, but the CI isn't evaluating them. I'm not sure if that's because it's trying the pre-existing JSON state, or I have a typo, or it's not handling prefixes at all, or something else. I would still prefer to run the tests against SublimeText/Modelines#9 before merging it into Modelines' |
|
The tests use our new crawler, so I assume it would be able to handle those kinds of prefixes. 🤷🏻♂️ What do you make of "invalid syntax (setup.py, line 62)"?
You might be able to run the tests locally, ie. not the GitHub action wrapper but the tests themselves. I have done it before but couldn't get the current version to run for me anymore. Might just be that I don't know what I'm doing 😅 |
This error is from a scan of the ST2 (!) code that is on Modelines master. The big rewrite hasn't been merged. Modelines is currently set in PCC to follow master not tags. If someone has it installed on ST2 (unlikely) and it's working, a merge of the new Modelines code would screw up their current system. I merged a fix for the ST2 branch today, which hopefully isn't too much of a nuisance for the ST4 version. If you can see your way to merging #9339 to change PCC from master to tags, I can safely merge SublimeText/Modelines#9, rebase this PR without side effects, and get scanner output for the code we're trying to deploy. If that's confusing, I can try to repeat it in a different way. But the upshot is that none of the scans by CI here have actually targeted the relevant package code. |
|
Got it... Honestly, it's an existing package. We don't test existing packages. My primary concern that packages have serious maintainers and that's certainly the case here. I'm not against simply merging the latest greatest and ignoring tests. No need to do one change ahead of the other. Shall we just go ahead and merge this PR, ignore the other, and let you guys merge branches and tag releases at will going forward? |
|
I'd honestly prefer you merge the other one first. I really do want the scan to be run in case I missed some best practice! 😅 I'm somewhat regretting my rigidity in not merging Frizlab's PR before opening this one. |
|
Done. Note by the way that the schema test fails because Will let his certificates expire. I handled that, but you need this PR rebased on master again (sorry!) to get the latest version of the tests. |
81ec565 to
835616b
Compare
Package ReviewChannel DiffRemoved (none), changed Modelines, added (none). Review for Modelines master-7bd1747-2026.03.20.21.09.47 |
Thank you! Things look decent to me.
Disputed and logged at kaste/st_package_reviewer#3
I'm not exactly sure what it's looking for that isn't handled in our Main.sublime-menu ... Maybe it wants another level of nesting? That's my best guess with looking at this test case. |
|
But if we don't have any key bindings, it's a useless extra nesting, no? |
|
Well it's consistent, which is useful in and of itself. It makes all entries in that menu the same: they open a sub menu. And you can add key bindings or a readme later on and everything would still be exactly where users expect them to be. |
|
I'm not sure I would've called that out in a review, I might not even notice it, if the test didn't reveal it. So put that down to the idiosyncrasies of a human in the loop. I do agree with the test as it is though. |
|
I will implement the change soon. I agree that consistency is important. |
|
Done in SublimeText/Modelines#15 (merged). |
|
Hi @braver, is there anything missing for this PR to move forward? |
|
It looks like your latest changes are not tagged yet, so I guess we're waiting for a 2.0 beta-04 tag :) |
|
Oops. That would be on me. I'll sort it later today. |
Credit to @Frizlab
835616b to
ce8d5e1
Compare
Package ReviewChannel DiffRemoved (none), changed Modelines, added (none). Review for Modelines master-7d28b14-2026.03.24.21.16.32 |
|
Thanks for everyone's patience! 🎉 |

am[represent] the package's author and/or maintainer. cc @FrizlabThis package is back from the dead! Credit to Frizlab.
I can't merge SublimeText/Modelines#9 to master without this change.1 Some of the checkmarks above are dependent on that merge. I'll tag an ST4 release when things are settled.2
Footnotes
That's based on the very unlikely assumption that someone is using ST2, has this package installed, and has automatic updates from Package Control. 😆 But we'll pretend. ↩
Edit: I've tagged a prerelease for ST4. I'd like to save the big 2.0.0 tag for the merge commit or a
messages.jsonupdate, but I can tag it now if it's necessary for the automated tests. ↩