Skip to content
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

My tokei does not detect the config file #1034

Open
TPReal opened this issue Oct 29, 2023 · 1 comment
Open

My tokei does not detect the config file #1034

TPReal opened this issue Oct 29, 2023 · 1 comment

Comments

@TPReal
Copy link
Contributor

TPReal commented Oct 29, 2023

❯ 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
Copy link
Contributor Author

TPReal commented Nov 2, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant