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

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

Open
christianhujer opened this issue Jun 11, 2023 · 1 comment
Assignees

Comments

@christianhujer
Copy link

christianhujer commented Jun 11, 2023

* 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:

  • Gradle version: 8.1.1
  • SonarLint Plugin Version: 3.2.2
  • Encoding: UTF-8
  • Java version: 19.0.2.fx-zulu
  • Project: Kotlin Multi-Module
  • Build File Language: Kotlin Script
@remal
Copy link
Member

remal commented Jun 12, 2023

@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.

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

No branches or pull requests

2 participants