XAMPPRocky / tokei

Count your code, quickly.
Other
10.56k stars 507 forks source link

My tokei does not detect the config file #1034

Open TPReal opened 8 months ago

TPReal commented 8 months ago
❯ cat tokei.toml
types = ["PHP", "TypeScript", "TSX", "Sass", "YAML"]

❯ tokei --version
tokei 12.1.2 compiled with serialization support: json

❯ tokei
===============================================================================
 Language            Files        Lines         Code     Comments       Blanks
===============================================================================
 Dockerfile              1           50           28            5           17
 INI                     1            3            3            0            0
 JavaScript              1            6            6            0            0
 JSON                    7         7680         7680            0            0
 PHP                   165         8554         5913         1449         1192
 Sass                   11          669          545           19          105
 SVG                     4           21           15            0            6
 Plain Text              2           21            0           18            3
 TOML                    1            1            1            0            0
 TSX                    84         6139         5090          712          337
 TypeScript             55         2839         2137          458          244
 XML                     1           28           26            2            0
 YAML                   10          414          390            2           22
-------------------------------------------------------------------------------
 Markdown               20          705            0          503          202
 |- JSON                 1           35           35            0            0
 (Total)                            740           35          503          202
===============================================================================
 Total                 363        27130        21834         3168         2128
===============================================================================

For some reason tokei does not see the config file in the same directory. I also tried naming the file .tokeirc, it's the same. Passing the config directly as command line parameters works fine. What's the problem?

TPReal commented 8 months ago

More information: I'm on WSL and install tokei by cargo install tokei. The error is both in the stable and in the new alpha release. But when I clone this repo and build locally, the config file is taken into account correctly.