Giter Site home page Giter Site logo

Update dependences versions about generator HOT 5 CLOSED

Mte90 avatar Mte90 commented on August 21, 2024
Update dependences versions

from generator.

Comments (5)

johnbillion avatar johnbillion commented on August 21, 2024 1

I somehow messed this up. I shouldn't be messing with nested Composer dependencies at 11PM.

from generator.

johnbillion avatar johnbillion commented on August 21, 2024

What's the Composer error message please?

from generator.

Mte90 avatar Mte90 commented on August 21, 2024

The issue is the php-parser library that this project require the 1.0 release.
The issue is on https://github.com/johnbillion/wp-parser-lib/blob/master/composer.json#L24 that is at 3 but latest is 5.
That library in that version uses php-parser at 1 as it was released in 2016 https://github.com/phpDocumentor/Reflection/releases/tag/3.0.1

from generator.

kkmuffme avatar kkmuffme commented on August 21, 2024

@johnbillion can't install this due to old dependencies. Error:

phpdocumentor/reflection[3.0.0, ..., 3.0.1] require nikic/php-parser ^1.0 -> found nikic/php-parser[v1.0.0, ..., v1.4.1] but the package is fixed to v4.13.2 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

(which is installed bc I use php-stubs/generator too, which uses a newer version of nikic/php-parser)

It's bc https://github.com/johnbillion/wp-hooks-generator/blob/master/composer.json
uses https://github.com/johnbillion/wp-parser-lib/blob/master/composer.json which is locked to:

"phpdocumentor/reflection" : "~3.0",

(as its underlying source https://github.com/WordPress/phpdoc-parser/blob/master/composer.json is)

but latest version is https://github.com/phpDocumentor/Reflection 5.1.0

See also: WordPress/phpdoc-parser#228

from generator.

johnbillion avatar johnbillion commented on August 21, 2024

I mistakenly thought the phpDocumentor 5 API was compatible with 3, but it's actually only 4 and 5 that are compatible. I'm going to close this off because it requires refactoring the doc block processing in WP Parser Lib, and that code is just an extraction of the code in WP Parser and the issue has been reported there: WordPress/phpdoc-parser#228.

from generator.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.