-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ext-ds round #2 #166
Comments
Hi @simPod thanks for reporting. Let me have a look at it. |
Hi @simPod I probably found the Issue. Will tag a new release soon. |
Or probably not right now. This is the same issue with However, this is fixed in the |
Ref: #166 Signed-off-by: Andreas Frömer <andreas.froemer@check24.de>
Ref: #166 Signed-off-by: Andreas Frömer <andreas.froemer@check24.de>
🤔 I tried running 0.8.x and it reports
even though "extra": {
"unused": [
"ext-ds"
]
} is specified |
Can you give me your full comsoser.json? |
{
"name": "v/functions",
"type": "library",
"license": "proprietary",
"keywords": [
"php",
"functions",
"ds",
"generators",
"never"
],
"authors": [
{
"name": "Simon Podlipsky",
"email": "simon@podlipsky.net"
}
],
"config": {
"sort-packages": true
},
"require": {
"php": "^7.4 || ^8.0",
"ext-ds": "*"
},
"autoload": {
"files": ["src/functions_include.php"]
},
"autoload-dev": {
"psr-4": {
"Ns\\Functions\\Tests\\": "tests"
}
},
"require-dev": {
"ext-pcov": "*",
"cdn77/coding-standard": "^5.0",
"icanhazstring/composer-unused": "^0.7.6",
"infection/infection": "^0.23.0",
"maglnet/composer-require-checker": "^3.3",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^0.12.92",
"phpstan/phpstan-phpunit": "^0.12.21",
"phpunit/phpunit": "^9.5",
"psalm/plugin-phpunit": "^0.16.1",
"roave/infection-static-analysis-plugin": "^1.8",
"vimeo/psalm": "^4.8"
},
"extra": {
"unused": [
"ext-ds"
]
}
} |
Thanks. I'll try to replicate it. seems like something with the autoload.files directive. Do you just have a single file that should be parsed which is using |
What could also help, is a small code example having a composer.json with used dependencies and a codesample, that is using the extension but 0.8.x is reporting as unused. Then I could cover it with a test and fix it 👍 |
Sure, prepared this https://github.com/simPod/composer-unused-reproduce |
Ah, sneaky one with a require inside the autoload file. I think I see where the problem is 😉 Good usecase, Thanks 💪 |
Ref: #166 Signed-off-by: Andreas Frömer <andreas.froemer@check24.de>
Ref: #166 Signed-off-by: Andreas Frömer <andreas.froemer@check24.de>
Hi @simPod I think I figured it out and updated the |
@icanhazstring I tried with the "reproduce" repo mentioned above
but the result seems unchanged
|
Shouldn't have coded this in the middle of the night :D Removing the |
This time it has to work! |
Works, GJ!
…On Mon, Aug 2, 2021 at 10:48 AM Andreas Frömer ***@***.***> wrote:
This time it has to work!
Could you check @simPod <https://github.com/simPod> ;)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#166 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACQAJLIMS6QCP7733YI2XDT2ZLV3ANCNFSM4ZNJW5ZQ>
.
|
Awesome, thanks for the use case 💪 |
Ref: #166 Signed-off-by: Andreas Frömer <andreas.froemer@check24.de>
Ref: #166 Signed-off-by: Andreas Frömer <andreas.froemer@check24.de>
Ref: #166 Signed-off-by: Andreas Frömer <andreas.froemer@check24.de>
Closing as its solved in 0.8.x |
Ref: #166 Signed-off-by: Andreas Frömer <andreas.froemer@check24.de>
Ref: #166 Signed-off-by: Andreas Frömer <andreas.froemer@check24.de>
@icanhazstring When do you expect to release 0.8. Thanks! |
Hi @simPod. I will probably strip down some additional features for 0.8 but I want the same features as before. So there are some still missing like required-by and suggested-by. Also some minor bugs should be solved before releasing this. If I find some time I think I will release something around end of the year. We could also make a faster release if there are some contributors willing to help me implement this stuff 😉 |
Thank you, just wanted to know what to ~expect. I'd help but currently I'm investing time in other OSS libs where issues burn me more (PHP81 stuff etc) 🙃 |
Describe the bug
So I had the issue with ext-ds before #87 which got fixed. Thanks!
Now installed this lib on another project and it reports unused
ext-ds
again. Not sure why though.The file has
use Ds\Set;
and a method is like
Error dump
Additional information
I wonder how to debug. I can see it's scanning the file with ext-ds used in dump.
The text was updated successfully, but these errors were encountered: