robot-will / stino Goto Github PK
View Code? Open in Web Editor NEWA Sublime Text Plugin for Arduino
License: Other
A Sublime Text Plugin for Arduino
License: Other
Tried to upload the basic blink
program. Compilation & upload seems to work, but no led blinking. Does work using the official Arduino app (I'm on latest OSX ML).
Love this plugin/package. After editing and saving the Arduino.tmLanguage file, I notice that upon restarting ST2 my changes have been wiped and the file appears with its default settings. Is there a way to make my edits permanent?
Creating /Users/walkerj/Dropbox/Arduino/build/Blink/Blink.ino.cpp.o...
"/Applications/Arduino.app/Contents/Resources/JAVA/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=103 "-I." "-I/Applications/Arduino.app/Contents/Resources/JAVA/hardware/arduino/cores/arduino" "-I/Applications/Arduino.app/Contents/Resources/JAVA/hardware/arduino/variants/eightanaloginputs" "/Users/walkerj/Dropbox/Arduino/build/Blink/Blink.ino.cpp" -o "/Users/walkerj/Dropbox/Arduino/build/Blink/Blink.ino.cpp.o"
avr-g++: no input files
This is with Arduino 1.0.3, I am using OSX. This happens no matter what sketch I try to compile. It's very strange because if I copy and paste the command from the output window into terminal, it works fine.
Hello,
I installed the plugin and noticed I wasn't able to compile my sketches. I have a path issue with an environment variable and it seems the your code saw the unspecified path output as a compilation error. Here's the code in compilation.py:
if return_code != 0:
termination_with_error = True
break
I commented out these lines and I can now compile with no problem. Perhaps there should be a more specific clause in handling compilation errors other than a return code != 0?
Thanks for the great plugin.
I am using OS X. I cannot select a folder. I traverse to ~/Documents/Arduino, where I keep my Arduino things but the interface will just drill down into folders, not actually allow me to select anything and close the dialog. I also don't know where to set the serial port, board, processor, etc.
Hi, thanks for this great project.
I'm not being able to compile sketches that uses the Ethernet libraries.
The same sketch compiles just fine on the Arduino Application.
While trying to compile a simple sketch (from the O'Reilly book) I got the following errors:
Gathering compilation infomation...
Compiling sketch...
Cleaning...
Creating /Users/mlemos/Documents/Arduino_Build/Ethernet_Test/Ethernet_Test.cpp.o...
Creating /Users/mlemos/Documents/Arduino_Build/Ethernet_Test/Ethernet_Test.elf...
/Users/mlemos/Documents/Arduino_Build/Ethernet_Test/Ethernet_Test.cpp.o: In function `__static_initialization_and_destruction_0':
/Users/mlemos/Documents/Arduino_Build/Ethernet_Test/Ethernet_Test.cpp:10: undefined reference to `EthernetClient::EthernetClient()'
/Users/mlemos/Documents/Arduino_Build/Ethernet_Test/Ethernet_Test.cpp.o: In function `loop':
/Users/mlemos/Documents/Arduino_Build/Ethernet_Test/Ethernet_Test.cpp:36: undefined reference to `EthernetClient::available()'
/Users/mlemos/Documents/Arduino_Build/Ethernet_Test/Ethernet_Test.cpp:37: undefined reference to `EthernetClient::read()'
/Users/mlemos/Documents/Arduino_Build/Ethernet_Test/Ethernet_Test.cpp:41: undefined reference to `EthernetClient::connected()'
/Users/mlemos/Documents/Arduino_Build/Ethernet_Test/Ethernet_Test.cpp:44: undefined reference to `EthernetClient::stop()'
/Users/mlemos/Documents/Arduino_Build/Ethernet_Test/Ethernet_Test.cpp.o: In function `setup':
/Users/mlemos/Documents/Arduino_Build/Ethernet_Test/Ethernet_Test.cpp:19: undefined reference to `Ethernet'
/Users/mlemos/Documents/Arduino_Build/Ethernet_Test/Ethernet_Test.cpp:19: undefined reference to `Ethernet'
/Users/mlemos/Documents/Arduino_Build/Ethernet_Test/Ethernet_Test.cpp:19: undefined reference to `EthernetClass::begin(unsigned char*, IPAddress)'
/Users/mlemos/Documents/Arduino_Build/Ethernet_Test/Ethernet_Test.cpp:25: undefined reference to `EthernetClient::connect(IPAddress, unsigned int)'
[Stino - Error while compiling.]
The sketch code is here:
#include <SPI.h>
#include <Ethernet.h>
byte mac[] = { 0xAD, 0xAD, 0x00, 0x00, 0x00, 0x01};
byte ip[]= {10,0,1,220};
byte server[] = {209,85,229,104};
EthernetClient client;
void setup() {
Serial.begin(9600);
Ethernet.begin(mac,ip);
delay(1000);
Serial.println("connecting...");
if (client.connect(server,80)) {
Serial.println("connected");
client.println("GET /search?q=arduino HTTP/1.0");
client.println();
} else {
Serial.println("connection failed");
}
}
void loop() {
if (client.available()) {
char c = client.read();
Serial.print(c);
}
if (!client.connected()) {
Serial.println();
Serial.println("disconnecting.");
client.stop();
for(;;)
;
}
}
class StartSerialMonitorCommand(sublime_plugin.WindowCommand): ... def is_enabled(self): ... if stino.smonitor.isSerialPortAvailable(serial_port):
The cause of high-latency is the line of 'stino.smonitor.isSerialPortAvailable(serial_port)' .
This code should not be here, can this code be moved to change 'serial port' action?
When trying to upload the example Blink
sketch to my Arduino Micro on OS X Mountain Lion I get the following error:
Gathering compilation infomation...
Compiling sketch...
Cleaning...
Creating /Users/Tyilo/Documents/Arduino_Build/Blink/Blink.cpp.o...
Creating /Users/Tyilo/Documents/Arduino_Build/Blink/Blink.elf...
Creating /Users/Tyilo/Documents/Arduino_Build/Blink/Blink.eep...
Creating /Users/Tyilo/Documents/Arduino_Build/Blink/Blink.hex...
Binary sketch size: 4,830 bytes (of a 28,672 byte maximum, 16.85%).
Estimated memory use: 157 bytes (of a 2,560 byte maximum, 6.13%).
[Stino - Done compiling.]
Uploading /Users/Tyilo/Documents/Arduino_Build/Blink/Blink.hex to Arduino Micro...
Forcing reset using 1200bps open/close on port.
"/Applications/Arduino.app/Contents/Resources/JAVA/hardware/tools/avr/bin/avrdude" "-C/Applications/Arduino.app/Contents/Resources/JAVA/hardware/tools/avr/etc/avrdude.conf" -v -v -v -v -V -patmega32u4 -cavr109 -P/dev/tty.usbmodem1421 -b57600 -D "-Uflash:w:/Users/Tyilo/Documents/Arduino_Build/Blink/Blink.hex:i"
avrdude: Version 5.11, compiled on Sep 2 2011 at 18:52:52
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "/Applications/Arduino.app/Contents/Resources/JAVA/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/Users/Tyilo/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/tty.usbmodem1421
Using Programmer : avr109
Overriding Baud Rate : 57600
AVR Part : ATmega32U4
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 10 8 0 no 1024 8 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
flash 65 6 128 0 yes 32768 128 256 4500 4500 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : butterfly
Description : Atmel AppNote AVR109 Boot Loader
Connecting to programmer: .avrdude: Send: . [1b]
avrdude: Send: S [53]
avrdude: ser_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
[Stino - Error while uploading.]
I have set Arduino Micro
as the board and /dev/tty.usbmodem1421
as the serial port, which is the one the official Arduino application uses.
Hi, first off, thanks for this amazing boost in productivity!
One issue that I'm having is with getting multiple ino's to load in the correct order. This is what things look like inside the project:
I tried renaming easing.ino to z_easing.ino (in case that would fix the error, but doesn't seem to). Can you see what's going wrong with my setup?
I'm using ubuntu 12.04, arduino 1.0.1 (old, but this is the latest from ubuntu universe repo). When I try to upload, I get this:
/bin/sh: 1: /usr/share/arduino/hardware/tools/avr/bin/avr-g++: not found
Uploading with the arduino IDE works, the arduino dir is set correctly in stino:
Arduino 1.0.1~ubuntu12.04.1 is found at /usr/share/arduino.
The tools folder has two avrdude symlinks, nothing else.
The AltGr key does not work, I'm using ST3 on Win8.
On some keyboard layouts, AltGr is used for special characters like {, }, #, @, €, |, etc.
First off, amazing plugin, THANK YOU!
I am getting this error in the console:
Creating /Users/Max/Documents/Arduino_Build/BioMeme_proto_v3_1x_with_Ecoli_BLEShield/ArduinoRobot.cpp.o...
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Robot_Control/ArduinoRobot.cpp: In constructor 'RobotControl::RobotControl()':
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Robot_Control/ArduinoRobot.cpp:8: error: 'LCD_CS' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Robot_Control/ArduinoRobot.cpp:8: error: 'DC_LCD' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Robot_Control/ArduinoRobot.cpp:8: error: 'RST_LCD' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Robot_Control/ArduinoRobot.cpp: In member function 'void RobotControl::begin()':
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Robot_Control/ArduinoRobot.cpp:18: error: 'MUXA' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Robot_Control/ArduinoRobot.cpp:18: error: 'MUXB' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Robot_Control/ArduinoRobot.cpp:18: error: 'MUXC' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Robot_Control/ArduinoRobot.cpp:18: error: 'MUXD' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Robot_Control/ArduinoRobot.cpp:19: error: 'MUX_IN' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Robot_Control/ArduinoRobot.cpp:22: error: 'BUZZ' was not declared in this scope
[Stino - Error while compiling.] ```
I looked at ArduinoRobot.cpp.d -- and notice that it's looking for 'JAVA' as opposed to 'Java' -- i tried changing it, to no avail. Do you have any advice?
Nothing happens when I put the folder of arduino.
This happens only in ubuntu.
Hi there,
first you did a great job with your plugin. sublime text with your plugin is the best ide i could find for programming the arduino. thx so much!
i´m working on osx 10.8.2 sublime 2.0.1 and have the newest version of stino and i get nearly every 5-10 minutes this error message:
Error trying to parse file: Expected value in ~/Library/Application Support/Sublime Text 2/Packages/Stino/Main.sublime-menu:186:6
the line where the error occurs changes in every message.
thx for the great work.
greetings ben
when building, every folder inside the sketchpad/libraries/ folder should be passed as a -I option to the compiler.
Hi. I´ve a problem to install Stino. I follow the step to install it, but the menu of Arduino don't work.
I get this
http://www.subirimagenes.com/imagen-sublimeerror-8591940.html
Any help?
Thank you
Hi!
The "Show Arduino Menu" command is disabled, so I can not add the menu, so I can not change the ino path…
Please help! :)
Could you add support for compiling the following example code:
typedef void(*callback_t)(void);
void callback1(void) {
// Stuff
}
callback_t callback;
void setupCallbackFunc(callback_t callback_func) {
callback = callback_func;
}
typedef struct foo_struct {
int bar;
} foo_struct;
void anyFunctionAcceptingAStruct(foo_struct *foo) {
foo->bar = 1;
}
void setup(void) {
setupCallbackFunc(callback1);
foo_struct foo;
anyFunctionAcceptingAStruct(&foo);
}
void loop(void) {
callback();
}
The .cpp
file generated is this:
#include <Arduino.h>
typedef void(*callback_t)(void);
void callback1 (void);
void setupCallbackFunc (callback_t callback_func);
void anyFunctionAcceptingAStruct (foo_struct *foo);
void setup (void);
void loop (void);
void callback1(void) {
// Stuff
}
callback_t callback;
void setupCallbackFunc(callback_t callback_func) {
callback = callback_func;
}
typedef struct foo_struct {
int bar;
} foo_struct;
void anyFunctionAcceptingAStruct(foo_struct *foo) {
foo->bar = 1;
}
void setup(void) {
setupCallbackFunc(callback1);
foo_struct foo;
anyFunctionAcceptingAStruct(&foo);
}
void loop(void) {
callback();
}
And the error is:
Gathering compilation infomation...
Compiling sketch...
Cleaning...
Creating /Users/Tyilo/Documents/Arduino_Build/Test/Test.cpp.o...
/Users/Tyilo/Documents/Arduino_Build/Test/Test.cpp:8: error: variable or field 'anyFunctionAcceptingAStruct' declared void
/Users/Tyilo/Documents/Arduino_Build/Test/Test.cpp:8: error: 'foo_struct' was not declared in this scope
/Users/Tyilo/Documents/Arduino_Build/Test/Test.cpp:8: error: 'foo' was not declared in this scope
[Stino - Error while compiling.]
It works fine without either of the struct and struct function or the functions pointer and the function pointer function.
However using them both seems to be problematic.
If you like this plugin or if you want something, leave message here. Thanks.
New version is almost done. You can try it at branch Master. Thanks. This version supports ST2 and ST3.
hi
now, i can compile and upload to arduino some sketches, except if use wire library.
compile log show this:
i don't know if any other library produce same problem, all of my schetches that produce this problem uses wire library.
thanks
Creating /Volumes/Datos/Dropbox/juanjo/arduino codigo/build/HelloWorld_i2c/LiquidCrystal_I2C.cpp.o...
Creating /Volumes/Datos/Dropbox/juanjo/arduino codigo/build/HelloWorld_i2c/LiquidCrystal_I2C_ByVac.cpp.o...
Creating /Volumes/Datos/Dropbox/juanjo/arduino codigo/build/HelloWorld_i2c/LiquidCrystal_SR.cpp.o...
Creating /Volumes/Datos/Dropbox/juanjo/arduino codigo/build/HelloWorld_i2c/LiquidCrystal_SR2W.cpp.o...
Creating /Volumes/Datos/Dropbox/juanjo/arduino codigo/build/HelloWorld_i2c/LiquidCrystal_SR3W.cpp.o...
Creating /Volumes/Datos/Dropbox/juanjo/arduino codigo/build/HelloWorld_i2c/Wire.cpp.o...
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Wire/Wire.cpp:26:19: error: twi.h: No such file or directory
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Wire/Wire.cpp: In member function 'void TwoWire::begin()':
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Wire/Wire.cpp:62: error: 'twi_init' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Wire/Wire.cpp: In member function 'void TwoWire::begin(uint8_t)':
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Wire/Wire.cpp:67: error: 'twi_setAddress' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Wire/Wire.cpp:68: error: 'twi_attachSlaveTxEvent' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Wire/Wire.cpp:69: error: 'twi_attachSlaveRxEvent' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Wire/Wire.cpp: In member function 'uint8_t TwoWire::requestFrom(uint8_t, uint8_t, uint8_t)':
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Wire/Wire.cpp:85: error: 'twi_readFrom' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Wire/Wire.cpp: In member function 'uint8_t TwoWire::endTransmission(uint8_t)':
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Wire/Wire.cpp:140: error: 'twi_writeTo' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Wire/Wire.cpp: In member function 'virtual size_t TwoWire::write(uint8_t)':
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Wire/Wire.cpp:177: error: 'twi_transmit' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Wire/Wire.cpp: In member function 'virtual size_t TwoWire::write(const uint8_t*, size_t)':
/Applications/Arduino.app/Contents/Resources/JAVA/libraries/Wire/Wire.cpp:195: error: 'twi_transmit' was not declared in this scope
[Stino - Compilation terminated with errors.]
Trying to build the NanodeUIP [1] example brings me to the following error:
[...]
Creating /home/dirk/Arduino_Build/uip_hello_world/enc28j60.cpp.o...
Creating /home/dirk/Arduino_Build/uip_hello_world/uip-neighbor.c.o...
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:58: error: expected specifier-qualifier-list before ‘u8_t’
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c: In function ‘uip_neighbor_init’:
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:69: error: ‘struct neighbor_entry’ has no member named ‘time’
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c: In function ‘uip_neighbor_periodic’:
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:79: error: ‘struct neighbor_entry’ has no member named ‘time’
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:80: error: ‘struct neighbor_entry’ has no member named ‘time’
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c: In function ‘uip_neighbor_add’:
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:89: error: ‘u8_t’ undeclared (first use in this function)
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:89: error: (Each undeclared identifier is reported only once
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:89: error: for each function it appears in.)
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:89: error: expected ‘;’ before ‘oldest_time’
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:96: error: ‘oldest_time’ undeclared (first use in this function)
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:99: error: ‘struct neighbor_entry’ has no member named ‘time’
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:103: error: invalid type argument of ‘->’ (have ‘uip_ipaddr_t’)
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:103: error: ‘struct uip_neighbor_addr’ has no member named ‘u16’
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:103: error: invalid type argument of ‘->’ (have ‘uip_ipaddr_t’)
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:103: error: ‘struct uip_neighbor_addr’ has no member named ‘u16’
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:107: error: ‘struct neighbor_entry’ has no member named ‘time’
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:109: error: ‘struct neighbor_entry’ has no member named ‘time’
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:115: error: ‘struct neighbor_entry’ has no member named ‘time’
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:116: error: invalid type argument of ‘unary *’ (have ‘uip_ipaddr_t’)
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:116: error: invalid type argument of ‘unary *’ (have ‘uip_ipaddr_t’)
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c: In function ‘find_entry’:
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:126: error: invalid type argument of ‘->’ (have ‘uip_ipaddr_t’)
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:126: error: invalid type argument of ‘->’ (have ‘uip_ipaddr_t’)
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:126: error: invalid type argument of ‘->’ (have ‘uip_ipaddr_t’)
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:126: error: invalid type argument of ‘->’ (have ‘uip_ipaddr_t’)
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c: In function ‘uip_neighbor_update’:
/home/dirk/sketchbook/libraries/NanodeUIP/uip/uip-neighbor.c:140: error: ‘struct neighbor_entry’ has no member named ‘time’
[Stino - Error while compiling.]
In the ArduinoIDE it builds fine. If you have any idea how we can find the problem, let me know if you need more details, ...
When uploading to my Mega 2560 it appears to hang without any error messages in the console. Trying to upload a second time I get the following in the console
Using Port : COM3
Using Programmer : stk500v2
Overriding Baud Rate : 115200
avrdude: ser_open(): can't open device "\\.\COM3": Access is denied.
avrdude done. Thank you.
[Stino - Error while uploading.]
Uploading works fine on COM3 with the Ardunio IDE. Let me know if there's any more information I can provide
So, I'm not sure if this is an issue with Sublime Text or Stino, but when I compile, the console output window always gets resized very small (~6 lines), and it's pretty difficult to grab that damn bar to resize it on OSX mountain lion (it takes a good 5 tries to get the cursor in the right spot. It seems like the "grab bar" may only actually be ~4 pixels tall, and sometimes the mouse outright passes by it. This is on the thunderbolt monitor in case that matters.
I'd love it if the size of the console output was persistent across compiles and also if it was easier to grab. Either would solve my issue and my preference if it was only one would be the second, since that is maddening. I can deal with resizing if it's not "hunt to find the sweet spot" every time.
For now, is there some place the default height of that is stored that I could change?
Thanks!
Message got from console:
Binary sketch size: 99,576 bytes (of a 524,288 byte maximum, 18.99%).
Estimated memory use: 3,840 bytes (of a 98,304 byte maximum, 3.91%).
Uploading C:/Users/Ivan/Documents/Arduino_Build/RescueB_v01/RescueB_v01.bin to Arduino Due (Programming Port)...
No device found on COM47
[Stino - Error while uploading.]
When attempting to upload using programmer, avrdude fails with error:
avrdude: ser_open(): can't open device "unknown": No such file or directory
Serial port selected: /dev/tty.usbserial-A9007OVO
Programmer selected: Arduino as ISP
These settings work through Arduino IDE, and Upload (not using programmer) works as well.
Sublime Text 2 on Mac OS X 10.8.4
Verbose output:
[Stino - Done compiling.]
Uploading /Users/axmo/Documents/Arduino_Build/arduino/arduino.hex to Arduino Mini w/ ATmega328...
"/Applications/Arduino.app/Contents/Resources/JAVA/hardware/tools/avr/bin/avrdude" "-C/Applications/Arduino.app/Contents/Resources/JAVA/hardware/tools/avr/etc/avrdude.conf" -v -v -v -v -V -patmega328p -cstk500v1 "-Uflash:w:/Users/axmo/Documents/Arduino_Build/arduino/arduino.hex:i"
avrdude: Version 5.11, compiled on Sep 2 2011 at 18:52:52
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "/Applications/Arduino.app/Contents/Resources/JAVA/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/Users/axmo/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : unknown
Using Programmer : stk500v1
avrdude: ser_open(): can't open device "unknown": No such file or directory
avrdude done. Thank you.
[Stino - Error while uploading.]
I'm trying to get Sublime Text 2 and Stino compiling a sketch for a Tiny microcontrollore using Tiny core but the only thing I get is this message:
"Gathering compilation infomation..."
then the IDE doesn't do nothing.
I'm using Arch Linux, IDE 1.0.5, Tiny core 0100-0017 got from here:
http://code.google.com/p/arduino-tiny/
With the Arduino IDE, if will merge all ino files to create a cpp file and build that one. But with this plug in , it will try to build every one instead.
And sub menus in 'Arduino Help' are almost not working.
I'm using osx 10.8.
using stino on linux I don't get the new Sketch menu and when I compile a sketch whith an error I d'ont get a "clear" error message just stino [error 1]
Add default key bindings for arduino menu interaction. And add a key binding option in the preferences menu. (key bindings for all of the commands in the package.)
Hello,
I'd like to ask, how to use libraries for Arduino with Stino?
I have this problem with "OneWire" library, which I need for DS18B20 temperature sensor.
Let's take a example source code from http://www.pjrc.com/teensy/td_libs_OneWire.html.
I have the library in "sketchbook/libraries/", when I try to compile in Stino, it fails:
/home/stibi/Arduino_Build/simple_temperature/simple_temperature.cpp.o: In function `setup':
/home/stibi/Arduino_Build/simple_temperature/simple_temperature.cpp:13: undefined reference to `OneWire::OneWire(unsigned char)'
/home/stibi/Arduino_Build/simple_temperature/simple_temperature.cpp:14: undefined reference to `OneWire::search(unsigned char*)'
/home/stibi/Arduino_Build/simple_temperature/simple_temperature.cpp:14: undefined reference to `OneWire::reset_search()'
/home/stibi/Arduino_Build/simple_temperature/simple_temperature.cpp:14: undefined reference to `OneWire::crc8(unsigned char const*, unsigned char)'
...etc...
I thought I have to tell Stino where it can find the OneWire library, Via "Add extra flags":
-I/home/stibi/Development/Arduino/sketchbook/libraries/OneWire/
Btw, is it correct?
Unfortunately, it doesn't work.
What I have missing there?
Is this the expected behavior ?
When I start the serial monitor the boar is reset.
a quick dig through your solved issues did not turn mine up, although it seems you have solidly fixed similar ones pretty easily, so kudos!
I am using the PID library, and none of the examples will compile. It will compile fine thru the arduino ide 1.0.1. If you can't recreate I will post a verbose error from my end.
Hi,
first of all thanks for porting Stino to ST3, but i cannot make it work, i followed the instruction in the README but i got the error in the console:
reloading plugin Stino.StinoStarter
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 586, in _check_name_wrapper
File "<frozen importlib._bootstrap>", line 1023, in load_module
File "<frozen importlib._bootstrap>", line 1004, in load_module
File "<frozen importlib._bootstrap>", line 562, in module_for_loader_wrapper
File "<frozen importlib._bootstrap>", line 869, in _load_module
File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
File "C:\Users\Volox\AppData\Roaming\Sublime Text 3\Packages\Stino\StinoStarter.py", line 8, in <module>
from . import app
File "C:\Users\Volox\AppData\Roaming\Sublime Text 3\Packages\Stino\app\__init__.py", line 20, in <module>
i18n = language.Language()
File "C:\Users\Volox\AppData\Roaming\Sublime Text 3\Packages\Stino\app\language.py", line 63, in __init__
self.setDefaultLanguage()
File "C:\Users\Volox\AppData\Roaming\Sublime Text 3\Packages\Stino\app\language.py", line 111, in setDefaultLanguage
en_name = lang_item.getEnName()
NameError: global name 'lang_item' is not defined
My system is Win 8 x64, ST3 build 3053
I'm trying to compile a program to ATTINY85 chip. In the Arduino IDE it's compile perfectly, without problems, but in sublime text and STINO: I get the following errors:
Gathering compilation infomation...
Compiling sketch...
Cleaning...
Creating /Users/darkomen/Documents/Arduino_Build/Pruebas/Pruebas.cpp.o...
/Users/darkomen/Documents/Arduino_Build/Pruebas/Pruebas.cpp: In function 'void setup()':
/Users/darkomen/Documents/Arduino_Build/Pruebas/Pruebas.cpp:12: error: 'OUTPUT' was not declared in this scope
/Users/darkomen/Documents/Arduino_Build/Pruebas/Pruebas.cpp:12: error: 'pinMode' was not declared in this scope
/Users/darkomen/Documents/Arduino_Build/Pruebas/Pruebas.cpp: In function 'void loop()':
/Users/darkomen/Documents/Arduino_Build/Pruebas/Pruebas.cpp:35: error: 'delay' was not declared in this scope
/Users/darkomen/Documents/Arduino_Build/Pruebas/Pruebas.cpp:45: error: 'delay' was not declared in this scope
[Stino - Error while compiling.]
Any body can help me?
I was asked frequently whether Stino runs on a certain OS, I said maybe, because I have no so much OSs. I tested it on the following OSs:
If you use other OSs, please write it down and I will add it to the list. Thanks a lot.
They are all "simple" functions in that they do not return any value to the program, they are just a list of commands to run. It does work fine in the normal Arduino IDE though. So one section (of the very long error log) is:
/home/david/Dropbox/Arduino/motor_controller/motor_controller_5.0/motor_controller.cpp: In function ‘void loop()’:
/home/david/Dropbox/Arduino/motor_controller/motor_controller_5.0/motor_controller.cpp:155:28: error: ‘motor1’ was not declared in this scope
/home/david/Dropbox/Arduino/motor_controller/motor_controller_5.0/motor_controller.cpp:162:30: error: ‘motor2’ was not declared in this scope
/home/david/Dropbox/Arduino/motor_controller/motor_controller_5.0/motor_controller.cpp:169:32: error: ‘motor3’ was not declared in this scope
/home/david/Dropbox/Arduino/motor_controller/motor_controller_5.0/motor_controller.cpp:176:34: error: ‘motor4’ was not declared in this scope
Thanks for the help.
The title is basically talking for itself. I know there's an option for OSX only to force a new tab opening, but I'm on Linux.
Currently there doesn't seem to be a settings file for this plugin. I'm not sure how you store the preferences, but I would suggest reworking the plugin to use package settings files. This will enable users to edit settings by changing the JSON file if they want to in addition to using your menus. It will also allow users to back up their settings more easily.
Tested on ST3 on Windows- getting the Arduino menu entry but disabled, nothing more. Would be great if it worked on ST3, too.
When I click on Preferences > Show Arduino Menu nothing happens, menu does not show. I've had the same problem on Ubuntu 12.04.
Hi, iam testing stino on ubuntu 12.04, the installation as succesfull, but i had the following
problem when uploading the code:
Uploading /home/lucas/Arduino_Build/programa_teste/programa_teste.hex to Arduino Uno...
avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission denied
ioctl("TIOCMGET"): Inappropriate ioctl for device
[Stino - Error while uploading.]
Did not find the solution on google, please help me. Thanks !
Im not sure if this is a bug or not as this is my first arduino attempt. But im using sublimeclang and sublimeintel to augment my rusty c skills. Unfortunately those plugins don't recognize INO files as c/c++ files so they don't work. So i renamed my INO file to cpp and was happily writing code again. Then i tried to compile and got this error
Writing file /home/scphantm/code/First/first/first.cpp with encoding UTF-8
Exception in thread Thread-239:
Traceback (most recent call last):
File ".\threading.py", line 532, in __bootstrap_inner
File ".\threading.py", line 484, in run
File "./stino/compilation.py", line 691, in compile
File "./stino/compilation.py", line 708, in preCompilationProcess
File "./stino/compilation.py", line 950, in genBuildMainSrcFile
File "./stino/compilation.py", line 581, in genBuildSrcText
IndexError: list index out of range
When i renamed the file back to INO, it worked just fine, but i noticed in its logs that it renames the INO file to a CPP file. My thinking is since it ends up a cpp file anyways, it should work if its an INO file or a CPP file.
is it a bug or am i just a newbie idiot?
Attempting to build for the ZPUino on a Papilio Pro ( ZPUino modified Arduino IDE can be found here: http://www.alvie.com/zpuino/download.html ) results in a host of "KeyError" build errors along the lines of:
KeyError: 'compiler.c.flags'
Now I understand there's no support for ZPUino, which will be why this is happening. Any chance it could be added?
With a minor fix to the downloaded IDE ( linked above, open version.txt and add in a sane number ) I can add the Arduino path in Sublime Text and see a "zpuino Board" menu option in the Arduino menu. But, as mentioned, "Verify/Compile" will not work.
I have a working sketch that I wrote in the Arduino IDE but when I try to compile it with Stino it fails.
I've put the sketch in my dropbox:
https://www.dropbox.com/sh/wnh3y6hf0fyd6kh/Lw6CTePbdw
It requires the WiFly lib, hosted at https://github.com/sparkfun/WiFly-Shield.
It seems to get confused at the point where I use custom typedefs that are declared in an .h file.
Here's the command that Stino runs:
"/Applications/Arduino.app/Contents/Resources/JAVA/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=103 "-I/Users/remcoder/Documents/Arduino_Build/telnet_robot" "-I/Applications/Arduino.app/Contents/Resources/JAVA/hardware/arduino/cores/arduino" "-I/Applications/Arduino.app/Contents/Resources/JAVA/hardware/arduino/variants/standard" "-I/Applications/Arduino.app/Contents/Resources/JAVA/libraries/SPI" "-I/Users/remcoder/Documents/Arduino/libraries/WiFly" "/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp" -o "/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp.o"
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:9: error: variable or field 'doMove' declared void
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:9: error: 'MoveCommand' was not declared in this scope
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:9: error: 'MoveCommand' was not declared in this scope
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:10: error: 'MoveCommand' does not name a type
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:11: error: variable or field 'setLeft' declared void
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:11: error: 'Direction' was not declared in this scope
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:11: error: expected primary-expression before 'int'
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:12: error: variable or field 'setRight' declared void
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:12: error: 'Direction' was not declared in this scope
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:12: error: expected primary-expression before 'int'
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp: In function 'void parseReceivedText()':
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:181: error: 'doAnalogCommand' was not declared in this scope
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:182: error: 'doDigitalCommand' was not declared in this scope
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:183: error: 'setPinMode' was not declared in this scope
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:184: error: 'checkCloseConnection' was not declared in this scope
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp: In function 'void doMove(MoveCommand, MoveCommand)':
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:210: error: 'setLeft' was not declared in this scope
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:215: error: 'setRight' was not declared in this scope
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp: In function 'void doDigitalCommand()':
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:293: error: 'readDigitalPins' was not declared in this scope
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:294: error: 'writeDigitalPin' was not declared in this scope
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp: In function 'void writeDigitalPin()':
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:337: error: 'parsePinSetting' was not declared in this scope
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp: In function 'void doAnalogCommand()':
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:367: error: 'readAnalogPins' was not declared in this scope
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:368: error: 'writeAnalogPin' was not declared in this scope
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp: In function 'void setPinMode()':
/Users/remcoder/Documents/Arduino_Build/telnet_robot/telnet_robot.cpp:441: error: 'parseModeSetting' was not declared in this scope
I have a program running on Arduino Uno R3. My OS is Windows 8 and I use sublime text 2.
In my program, there are lines checking Serial input. I wonder how I can have the end of my input act as the "New Line" in Arduino serial monitor. I tried Alt+ Enter, then Enter. It doesn't work every time.
char ch = Serial.read();
ch == 10
Currently it seems that the Arduino_Build folder is hardcoded to land in the user's Documents folder. Please allow users to configure this path, and consider using a temporary folder by default.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.