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

compilation errors on folders with Korean names #5216

Closed
Myriads opened this issue Aug 7, 2016 · 8 comments
Closed

compilation errors on folders with Korean names #5216

Myriads opened this issue Aug 7, 2016 · 8 comments
Labels
Type: Duplicate Another item already exists for this topic

Comments

@Myriads
Copy link

Myriads commented Aug 7, 2016

Compiling the sketch on the Korean named folder, the following error messages are displayed:

스케치를 컴파일 중…
"D:\Tools\arduino-1.6.10\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.12\cores\arduino" "-IC:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.12\variants\standard" "C:\Users\ADMINI~1\AppData\Local\Temp\build23759f5b464ad05d4eee1a2a8893d847.tmp\sketch\Ping.ino.cpp" -o "C:\Users\ADMINI~1\AppData\Local\Temp\build23759f5b464ad05d4eee1a2a8893d847.tmp\sketch\Ping.ino.cpp.o"
C:\Users\Administrator\Documents\Arduino\examples\06. ?꽱?꽌?뱾\Ping\Ping.ino: In function 'void loop()':

Ping:67: error: 'microsecondsToInches' was not declared in this scope

Ping:68: error: 'microsecondsToCentimeters' was not declared in this scope

exit status 1
'microsecondsToInches' was not declared in this scope

arduino_ide_01

@dlabun
Copy link

dlabun commented Aug 7, 2016

If you open up the folder "C:\Users\Administrator\Documents\Arduino\examples" outside of Arduino do the folder names show properly or do they have question marks in them? I've seen this before working with other files with Korean names.

@facchinm
Copy link
Member

@matthijskooijman can it be a side effect of arduino/arduino-builder#156 ?
@cmaglie , should we refactor the fact that the name of the folder becomes the menu item so we don't end up with paths like C:\Users\Administrator\Documents\Arduino\examples\06. ?꽱?꽌?뱾\Ping\Ping.ino ?

@matthijskooijman
Copy link
Collaborator

@facchinm Possibly, perhaps the lack of escaping previously masked problems in ctags with special characters? I guess it would be interesting to see the ctags input and output here.

@dlabun
Copy link

dlabun commented Aug 10, 2016

@facchinm @matthijskooijman Since the OP hasn't responded I am going to throw the korean language pack on my PC and see if I can get more information... I have a theory I want to test out as I have seen this issue before in other software that couldn't handle Korean, Japanese or Chinese properly.

@matthijskooijman
Copy link
Collaborator

@dlabun, thanks for diving into this! :-D

@dlabun
Copy link

dlabun commented Aug 12, 2016

Gentlemen, I do not believe the OP's installation is a "standard" Arduino install. It looks like somebody attempted to translate the sketches into Korean... From looking at the screenshot he attached it's clear that's not the normal Ping example, it's been translated into Korean. If you try to save or open files with Korean characters the IDE throws an error stating only ASCII characters are support for file / folder names. The IDE works perfectly fine if I set the language to Korean but use only ASCII for the actual code and file names.

@oqibidipo
Copy link

oqibidipo commented Aug 23, 2016

Minimal sketch to reproduce the bug:

void setup() {
  foo();
}

void loop() { }

void foo() { }

IDE 1.6.11 on OSX 10.11.5, sketch file name is
~/Documents/Arduino/bug/äbç/sketch_aug23b/sketch_aug23b.ino

I guess it would be interesting to see the ctags input and output here.

There is not much to see, ctags_target_for_gcc_minus_e.cpp is empty.

When I run the commands manually, I get:
g++ -E output

<snip>
# 24 "/Users/rjl/Applications/Arduino/Arduino-1.6.11.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h" 2
# 250 "/Users/rjl/Applications/Arduino/Arduino-1.6.11.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h" 2
# 2 "/var/folders/sl/3x4zr7v14j5d_8xznyys7tjc0000gn/T/build0a6a8887a45148b65601f0a6c8c30d3b.tmp/sketch/sketch_aug23b.ino.cpp" 2
# 1 "/Users/rjl/Documents/Arduino/bug/äbç/sketch_aug23b/sketch_aug23b.ino"
# 1 "/Users/rjl/Documents/Arduino/bug/äbç/sketch_aug23b/sketch_aug23b.ino"
void setup() {
  foo();
}

void loop() { }

void foo() { }

ctags output

<snip>
setup   /Users/rjl/Documents/Arduino/bug/äbç/sketch_aug23b/sketch_aug23b.ino    /^void setup() {$/;"    kind:function
   line:1  signature:()    returntype:void
loop    /Users/rjl/Documents/Arduino/bug/äbç/sketch_aug23b/sketch_aug23b.ino    /^void loop() { }$/;"   kind:function
   line:5  signature:()    returntype:void
foo     /Users/rjl/Documents/Arduino/bug/äbç/sketch_aug23b/sketch_aug23b.ino    /^void foo() { }$/;"    kind:function
   line:7  signature:()    returntype:void

@cmaglie
Copy link
Member

cmaglie commented Dec 19, 2016

This issue has been solved in #5277 that is basically a duplicate of this one.

@cmaglie cmaglie closed this as completed Dec 19, 2016
@cmaglie cmaglie added this to the Release 1.6.14 milestone Dec 19, 2016
@per1234 per1234 added the Type: Duplicate Another item already exists for this topic label Jul 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Duplicate Another item already exists for this topic
Projects
None yet
Development

No branches or pull requests

7 participants