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

No files matched [**\\*.kt, **\\*.kts] when running on Windows #1611

Closed
0x6675636b796f75676974687562 opened this issue Aug 26, 2022 · 2 comments

Comments

@0x6675636b796f75676974687562
Copy link
Contributor

Expected Behavior

ktlint should be able to traverse and match Windows paths, too.

Observed Behavior

ktlint launched w/o arguments is unable to find Kotlin files in the current directory:

D:\Users\alice>dir *.kt
 Volume in drive D is Data
 Volume Serial Number is 3861-443F
 
 Directory of D:\Users\alice

25.08.2022  18:33                 8 C.kt
               1 File(s)              8 bytes
               0 Dir(s)  711 684 263 936 bytes free

D:\Users\alice>java -jar ktlint
15:31:21.793 [main] INFO com.pinterest.ktlint.internal.KtlintCommandLine - Enable default patterns [**\\*.kt, **\\*.kts]
15:31:21.854 [main] ERROR com.pinterest.ktlint.internal.KtlintCommandLine - No files matched [**\\*.kt, **\\*.kts]

This is a clear regression against the previous version (0.46.1, while still not ideal, it's far less brittle when working with paths).

Steps to Reproduce

Download the fat JAR and run it on Windows.

Your Environment

  • Version of ktlint used: 0.47
  • Name and version of integration used: CLI
  • Operating System and version: Windows 10
@0x6675636b796f75676974687562
Copy link
Contributor Author

Apologies, this is another manifestation of #1600.

@0x6675636b796f75676974687562
Copy link
Contributor Author

Duplicate of #1600

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