arduino.tmbundle
arduino.tmbundle copied to clipboard
compiling/uploading no longer working with current version of TextMate
Arduino TextMate Bundle 1.0a no longer works with a default installation of TextMate 2.0-alpha.9475
All variables in makefile have been set accordingly, compiling gives the following error:
make: *** No rule to make target T.ino', needed by
applet/T.cpp'. Stop.
Same here. is there any plan for update?
+1
Yeah, I'll +1 this one too
Same here +1
Pretty please!
I looked into it myself some last night and I found that if you go to:
Bundles -> Edit Bundles... -> Arduino -> Menu Actions -> Upload
or Compile
and add:
cd $TM_DIRECTORY
on the line after the echo "<pre>"
you can get past that error but then I was hitting a ton of other build issues that I couldn't easily get past.
@dtrotzjr was this the error you were getting:
/Applications/Arduino.app/Contents/Resources/Java/libraries/Esplora/Esplora.cpp:54: error: 'A11' was not declared in this scope make: *** [/Applications/Arduino.app/Contents/Resources/Java/libraries/Esplora/Esplora.o] Error 1
Also +1 for this error. Wasn't sure if it was just me because this was my first time using Textmate... Are you supposed to follow the directions written in the Makefile too or are you only supposed to follow the directions posted in the github.com/nasser/arduino.tmbundle README.md ? I assume the latter but just checking...
+1 and +1 @swagyolo also get
${TM_BUNDLE_SUPPORT}/Monitor
if I "Watch Serial Port" but I'm new to TM too so I just figured that was a variable I needed to set somewhere.
A few edits to get the arduino bundle to work with a basic sketch in Arduino 1.0.5:
Add $TM_DIRECTORY to the compile section of the bundle as noted above.
Comment out the ARDUINO_LIB section in the Makefile. Starting at line 85.
Edit line (204) of the Makefile "echo
$(TM_BUNDLE_SUPPORT)/bin/arduino-preprocess .$(TARGET)_merged.ino
>> applet/$(TARGET).cpp" so the arduno-preprocess script can be found.
TODO: fix the external library references correctly. Make the whole thing work with Arduino 1.5.5 with options of SAM/AVR CPUs and a revised directory structure.
Stop the presses. Found a much better solution for an Arduino makefile. http://ed.am/dev/make/arduino-mk
I'll use that to tackle the 1.5.5 ide.
@ccpetersen
#Comment out the ARDUINO_LIB section in the Makefile. Starting at line 85.
#Edit line (204) of the Makefile "echo $(TM_BUNDLE_SUPPORT)/bin/arduino-preprocess
#.$(TARGET)_merged.ino >> applet/$(TARGET).cpp" so the arduno-preprocess script can be found.
...What should you do after you do that ( ^ )?
If anyone gets weird output when they use the Compile command, let me know. I just had a bug where a bunch of the js gets inserted into the body because there was an extra opening "
" in the Bundles > Edit Bundles > Arduino > Menu Actions > Compile. I think I removed that before I requested the pull but not positive.