Hello. Earlier, in versions from 2.0.0 to 2.0.3, I could write the name of the sketch in Cyrillic characters. For me it was more convenient. But in version 2.0.4, such sketches are no longer opened. This was one of the reasons why I switched from IDE 1.8 to IDE 2. Is there any way to get Cyrillic character recognition back in the sketch title?
Hi @dyadyagenya. I'm afraid there is no way. The ability to use those characters in the sketch filenames was only because the developers had not gotten around to implementing sketch filename validation according to the Arduino Sketch Specification:
https://arduino.github.io/arduino-cli/latest/sketch-specification/#sketch-folders-and-files
I don’t understand why the Cyrillic characters in the name of the sketch interfere. Even if it contradicts the specification in some way. Has this caused any problems? If so, please provide a link to a description of such problems.
In that case, it was the non-compliant use of a space in the filename that caused the error, but the same will occur with Cyrillic characters:
The situation is even worse with Arduino Web Editor. In that case, the sketch simply fails to compile without any indication of what is wrong:
Even though Arduino IDE 2.0.3 will load the sketch, such characters can cause mysterious errors when compiling or uploading:
Using board 'mega' from platform in folder: C:\Users\per\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\per\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Detecting libraries used...
avr-g++: error: C:\Users\per\AppData\Local\Temp\arduino-sketch-919F46E80D6C013E15AF0AF22266A049\sketch\??????????????.ino.cpp: Invalid argument
avr-g++: warning: '-x c++' after last input file has no effect
avr-g++: fatal error: no input files
compilation terminated.
"C:\\Users\\per\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\per\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\per\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\mega" "C:\\Users\\per\\AppData\\Local\\Temp\\arduino-sketch-919F46E80D6C013E15AF0AF22266A049\\sketch\\мікроконтролер.ino.cpp" -o nul
Alternatives for no input files: []
ResolveLibrary(no input files)
-> candidates: []
exit status 1
Compilation error: exit status 1
Having a sketch filename specification, and enforcing compliance on the creation of sketches allows the sketches created with one Arduino development tool to be used in any other, on any operating system. Such portability very important in this community of sharing open source software.
The fact that this is important for portability is understandable. But I didn't have a single problem with Cyrillic characters. I would love to have a choice. Moreover, you can always rename the sketch if you want to show it to other people. You can also rename the sketch if there are problems during compilation and compile it with a new name. But I repeat. I use Cyrillic characters all the time. I often save versions of the same sketch. This replaces git for me. And never had a problem. With spaces between characters were. It is solved either by continuous writing, or by inserting some character instead of a space, for example, a lower space.
BUT not a single problem with Cyrillic characters in the title. I would be very grateful if there was an opportunity to choose which characters will be used in the name of the sketch. Or tell me in which file this setting is made so that I can do it for myself.
Then I hurried))) I thought that the file is in the zip directory that is downloaded for installation and thought that it can be fixed in the same way as the settings file is corrected, for example, the font in IDE 1.X version.
The file is part of the source code of the application. You would modify that source code and then build the IDE application from the modified code. Information on that is available here:
https://github.com/arduino/arduino-ide/blob/main/docs/development.md#build-from-source
Of course I will try, but I'm afraid that at this stage I do not have enough knowledge. I will study. God willing, in the future it will be possible to do this. The developers themselves definitely cannot make a checkbox to choose whether to use Cyrillic characters or not?
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.