Robot-Will / Stino

A Sublime Text Plugin for Arduino
Other
1.58k stars 250 forks source link

Compile error: relative compiler path from arduino IDE not handled [Patch proposed] #317

Closed andig closed 7 years ago

andig commented 8 years ago

I'm trying to compile an esp8266 project that works in arduino ide 1.6.5. on Windows.

Problem ist that 1.6.5-r5\hardware\arduino\avr\platform.txt defines compiler.path as /bin/'. That works as/bin/` in the IDE is apparently relative to the arduino IDE/tools folder (or one of those). Stino however treats that path as absolute and can't find the compiler therefore.

I'm able to circumvent this by undefining compiler.path in compiler.py but then get stuck at the xtensa tools again.

This issue needs a general fix for handling path variables read from Arduino IDE.

Any idea?

andig commented 8 years ago

Update: issue fixed by defining runtime.platform.pathas below including in the respective calls:

def getPlatformArgs(platform_path, platform_text, args):
    args['runtime.platform.path'] = platform_path

Please let me know if you want a PR.

FWeinb commented 8 years ago

This would be incredible useful. :+1:

andig commented 8 years ago

@FWeinb I have honestly no clue if this is "the right thing to do" but it's working for me. Would appreciate double checking by an Arduino build process expert.

FWeinb commented 8 years ago

I can't even choose the ESP8266 boards from "Arduino" -> "Boards". I installed the esp8266 boards via the Board Manager from the ArduinoIDE.

nugrahawahyu commented 8 years ago

try to install using git.