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

Ktlint plugin duplicate folder if project path contains accented letters #429

Open
NarcAle opened this issue Jan 30, 2021 · 5 comments
Open
Labels

Comments

@NarcAle
Copy link

NarcAle commented Jan 30, 2021

I'm using Ktlint plugin and I saw a small problem: when it generates the report, if proj path contains an accented letter, it changes the accented letter with a special character, resulting in a new folder which will contains the reports.

Here is an example:
from this path "D:\User\Università\my\project\path"
the report will be into this path "D:\User\UniversitÃ\my\project\path\build\reports\ktlint"

I'm using windows (not sure if this matters), gradle v=6.8.1, ktlint v=9.4.1.

If you need more info about this bug, I'll be glad to help you.

@Tapchicoma
Copy link
Collaborator

Interesting, should not modify it. Could you create some simple project that reproduces this issue? This would be really helpful.

@Tapchicoma Tapchicoma added the bug label Jan 30, 2021
@NarcAle
Copy link
Author

NarcAle commented Jan 30, 2021

Here is the repo.
https://github.com/NarcAle/ktlint_accent_error.git

I tried to explain how to reproduce the error into the readme

@Tapchicoma
Copy link
Collaborator

I could not reproduce it on Linux.

On Windows 10 I could not even run gradlew.bat as it could not load org.gradle.wrapper.GradleWrapperMain (gradle-wrapper.jar exists). Moving it to folder whose name does not contain accents solves this issue.

To what region and language your Windows installation has set?

@NarcAle
Copy link
Author

NarcAle commented Jan 31, 2021

The region is Italy and language is italian.

I'll move my project into another folder.
Thank you anyway

@Tapchicoma
Copy link
Collaborator

Tapchicoma commented Jan 31, 2021

Setting my locale to Italian did not solve my issue, created a bug in Gradle repo 🤔

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

No branches or pull requests

2 participants