remal-gradle-plugins / sonarlint

A plugin that executes SonarLint checks without SonarQube server
MIT License
18 stars 2 forks source link

Malform input or input contains unmappable characters on UTF-8-encoded Non-ASCII characters #150

Open christianhujer opened 1 year ago

christianhujer commented 1 year ago
* What went wrong:
Execution failed for task ':app-chatncharge:sonarlintMain'.
> A failure occurred while executing name.remal.gradle_plugins.sonarlint.SonarLintAction
   > Malformed input or input contains unmappable characters: /home/christian.hujer/git/nelkinda/chatncharge4/app-chatncharge/src/main/resources/static/assets/profile_pics/rīgas.jpg

Note the filename: rīgas.jpg

Workaround: Only use ASCII in filenames. (Which is annoying, why is SonarLint even interested in a JPEG file in the resources path.)

Note This might be a bug in the upstream SonarLint instead of the plugin.

Further information:

remal commented 1 year ago

@christianhujer, unfortunately, I couldn't reproduce the issue. Could you please execute gradlew sonalitMain --stacktrace to get the full stacktrace and post the stacktrace here?

This plugin executes SonarLint checks for all source files, not only for Java/Kotlin.

My main assumption is that you faced this issue: https://stackoverflow.com/q/39770134. If so, I'd recommend renaming the file, as there is a chance that something else can also be broken. You can also try this suggestion.