cucumber / cucumber-jvm

Cucumber for the JVM
https://cucumber.io
MIT License
2.7k stars 2.02k forks source link

New Eclipse 2024 crashes with invalid charset of cucumber-java #2916

Open glauciosouthier opened 3 weeks ago

glauciosouthier commented 3 weeks ago

👓 What did you see?

All language packs with non-ASCII chars get this error :

Errors occurred during the build. Errors running builder 'CDI (Contexts and Dependency Injection) Builder' on project 'MyProject'. Malformed input or input contains unmappable characters: ~/.m2/repository/io/cucumber/cucumber-java/7.18.1/cucumber-java-7.18.1.jar/io/cucumber/java/ca/Atès$Atèss.class

✅ What did you expect to see?

put non-ASCII packets in separate files, with optional import

📦 Which tool/library version are you using?

cucumber-java-7.18.1.jar

🔬 How could we reproduce it?

reate new Java springboot project on Eclipse, add this dependencies:

    <dependency>
        <groupId>io.cucumber</groupId>
        <artifactId>cucumber-java</artifactId>
        <version>7.18.0</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>io.cucumber</groupId>
        <artifactId>cucumber-junit</artifactId>
        <version>7.18.0</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <scope>test</scope>
    </dependency>

run Maven->Update Project the error apears!

Type CTRL+O, the error apears...

📚 Any additional context?

No response

mpkorstanje commented 3 weeks ago

What is your locale set to? It sounds like the JVM running Eclipse is not using UTF8.