arduino.tmbundle icon indicating copy to clipboard operation
arduino.tmbundle copied to clipboard

compiling/uploading no longer working with current version of TextMate

Open creyc opened this issue 11 years ago • 13 comments

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 byapplet/T.cpp'. Stop.

creyc avatar Oct 04 '13 01:10 creyc

Same here. is there any plan for update?

zenz avatar Oct 18 '13 12:10 zenz

+1

danward79 avatar Dec 11 '13 09:12 danward79

Yeah, I'll +1 this one too

pas256 avatar Dec 27 '13 05:12 pas256

Same here +1

dtrotzjr avatar Dec 31 '13 01:12 dtrotzjr

Pretty please!

gknops avatar Jan 01 '14 02:01 gknops

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 avatar Jan 01 '14 02:01 dtrotzjr

@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

swagyolo avatar Jan 04 '14 04:01 swagyolo

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...

swagyolo avatar Jan 04 '14 04:01 swagyolo

+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.

andrew-luhring avatar Jan 04 '14 09:01 andrew-luhring

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.

ccpetersen avatar Jan 05 '14 22:01 ccpetersen

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 avatar Jan 06 '14 15:01 ccpetersen

@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 ( ^ )?

andrew-luhring avatar Jan 25 '14 19:01 andrew-luhring

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.

andrew-luhring avatar Feb 09 '14 21:02 andrew-luhring