Comments (5)
I somehow messed this up. I shouldn't be messing with nested Composer dependencies at 11PM.
from generator.
What's the Composer error message please?
from generator.
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.
@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.
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)
- Provide long descriptions in their raw markdown
- Multiline filter parse error HOT 2
- add deprecated field HOT 2
- Parse Error with Immediately Invoked Function Expression (IIFE) HOT 4
- Unable to parse files that contain namespaces and variables passed by reference HOT 1
- Function call inside a WC action hook HOT 2
- Reimplement the validator
- Output file that contains a parse error HOT 4
- Error on executing the binary HOT 6
- Issues with array notation HOT 6
- Hooks of WP cron schedule events HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generator.