javacucumbergherkinnon-ascii-characters

Cucumber - Java - Non-ASCII characters in an identifier


Hi community: I'm working with Cucumber in another language different than English.

When I generate the Step Definitions it displays a message over the void method

Non-ASCII characters in an identifier 

This is the Step Definition sample.

@Y("^se despliega un menú lateral con diferentes opciones$")
   public void seDespliegaUnMenúLateralConDiferentesOpciones() {}

What should I do in this situation?


Solution

  • This is indeed an Intellij IDEA "code inspection" setting.

    I found the setting here:

    File (Menu) 
      > Settings
         > In left pane of the popup window, open "Editor"
            > Choose "Inspections" 
               > Type "ASCII" into the "search" text field
                  > Select "Non-ASCII characters" under "Internationalization"
    

    The popup window then looks as below, and you can unmark the option on the bottom right.

    Inspection options as shown by IDEA