Closed php-coder closed 1 year ago
Hm, perhaps there is no colon after ticket number?!..
Any updates on this?
I ran pdd
manually and it complain that this is a binary file:
/data/src/cli.js is a binary file (11908 bytes)
It looks like pdd expects that a file type will contain text/
substring
while in this case it doesn't:
$ file src/cli.js
src/cli.js: a /usr/bin/env node script text executable, ASCII text
Nope, the theory doesn't work:
$ file --mime src/cli.js
src/cli.js: text/plain; charset=us-ascii
I debugged it and I found that fm.file(file)
returns application/javascript; charset=us-ascii
for that file:
/data/src/cli.js has MIME type: application/javascript; charset=us-ascii
Most likely, because it has the following shebang:
$ head -1 src/cli.js
#!/usr/bin/env node
I confirm: removing a shebang, did the trick -- pdd found all the puzzles in this file.
@yegor256 Hi Egor, I don't see any activity in this repository. Is the project still maintained?
@php-coder of course! The latest release was done six month ago. Let me check this bug today.
@rultor release, tag is 0.23.2
@rultor release, tag is
0.23.2
@yegor256 OK, I will release it now. Please check the progress here
@rultor release, tag is
0.23.2
@yegor256 Done! FYI, the full log is here (took me 2min)
@php-coder I believe it's fixed. I will release 0pdd soon: https://github.com/yegor256/0pdd/issues/476
@yegor256 It was fast! Thanks!
(Initially submitted against 0pdd but it has been discovered that it's a bug in pdd: https://github.com/yegor256/0pdd/issues/395)
pdd doesn't extract puzzles from JS code. Here are the examples:
At GitHub: https://github.com/php-coder/query2app/blob/27ffed4faa098b8ba006c51b0a3fc8db5552eb7d/src/cli.js#L16
It's supposed that pdd should find these puzzles and create issues for them but it didn't find puzzles there.