Skip to content

Consider finding a new PHP grammar #162707

Closed

Description

@roblourens

Our built-in PHP grammar is based on https://github.com/atom/language-php, which is no longer maintained. There are a number of open issues, especially around different embedded languages https://github.com/atom/language-php/issues/created_by/roblourens

If there is an alternative well-maintained grammar, we could consider switching to that.

Activity

  1. added
    feature-request
    php
    on Oct 5, 2022
  2. added this to the Backlog milestone on Oct 5, 2022
  3. self-assigned this
    on Oct 5, 2022
  4. KapitanOczywisty commented on Oct 6, 2022

    @KapitanOczywisty
    Contributor

    Our built-in PHP grammar is based on https://github.com/atom/language-php, which is no longer maintained.

    roblourens It is maintained by me, at least with most urgent issues and new features. However as I mentioned in e-mail (not sure if you got it) atom will archive repositories in December, which will make maintaining a little bit impossible.

    This is not only PHP issues, other syntaxes are directly imported from atom: xml, css, less, sass, shellscript, clojure, java, coffe-script, every from corresponding atom/language-* repository.

    Obvious solution would be to just move them to the microsoft organization. This will require changing tests to not use atom, but vscode-textmate (somewhat like grammars for TS). However atom/language-php is still used by some projects and it would be good to maintain continuity (with move there would be no need to change update scripts to get updates).

    As far I know there is no better fork for PHP grammar, and if there is better grammar it will probably be using something else than textmate format.

  5. roblourens commented on Oct 6, 2022

    @roblourens
    MemberAuthor

    Sorry to write you out of the story KapitanOczywisty! Just tracking the fact that it is not "officially" maintained and needs a replacement. Thanks for the work you've put into language-php. Yeah, we are aware that we pull in a bunch of grammars from those repos and we will have to figure something out on a case by case basis. One thing I would consider would be pulling the grammar from a fork that you maintain. We don't plan to move these repos to the microsoft org but could depend on a community-maintained fork.

  6. added
    under-discussion
    and removed
    feature-request
    on Oct 6, 2022
  7. KapitanOczywisty commented on Oct 6, 2022

    @KapitanOczywisty
    Contributor

    Sure I could make a fork, however I feel this is just kicking the can down the road. Above that any dependent project have to be changed (if they even would know and trust potential fork) and you have even worse influence on the repository direction than now. At least you should consider if there is a chance to keep some repositories not-archived in atom organization and get permissions to merge PRs.

    With community fork variant, I'd like to know if you, or any vscode team member, would be willing to at least make PR reviews. I can put time to migrate grammar and maintain it, however I feel pushing changes without reviews would be irresponsible, so somebody needs to be on-board with that. And again I think this should be still under some organization account controlled by Microsoft, just to have option to take over "in case".

  8. KapitanOczywisty commented on Dec 13, 2022

    @KapitanOczywisty
    Contributor

    roblourens I've converted tests to use vscode-textmate instead of atom KapitanOczywisty/language-php#1 It's a crud patch, but will allow to get things moving. Please take a look if you can. I'd like to have also some way to implement highlighting preview to not require contributors to replace php extension in vscode, though this is not that important right now. Other language-* repositories could be converted the same way, will see how it will go.

    Update for PHP 8.2 should land somewhere around a new year.

  9. aarondfrancis commented on Jan 3, 2023

    @aarondfrancis

    roblourens Happy new year! I'm curious if y'all decided on anything w.r.t. the now-archived languages from the Atom package? I maintain torchlight.dev and am trying to update PHP to support highlighting for generics and am not sure what the best path forward is. I'd appreciate any insight y'all have!

  10. KapitanOczywisty commented on Jan 4, 2023

    @KapitanOczywisty
    Contributor
  11. modified the milestones: Backlog, April 2023 on Mar 24, 2023
  12. roblourens commented on Apr 26, 2023

    @roblourens
    MemberAuthor
  13. locked and limited conversation to collaborators on Jun 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

phpunder-discussion

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions