gepd / stino Goto Github PK
View Code? Open in Web Editor NEWThis project forked from robot-will/stino
A Sublime Text Plugin for Arduino
License: Other
This project forked from robot-will/stino
A Sublime Text Plugin for Arduino
License: Other
Hi, I've been unable to upload on Linux Mint. It says I'm missing the avrdude.conf.. I figured out the answer but I thought I would post on here in case someone else has the same problem. I just used this command to find it and the other command to cp and fix it. If you already know the location of your avrdude.conf then obviously you don't need to find it lol!
find * -name avrdude.conf
sudo cp /usr/share/arduino/hardware/tools/avrdude.conf /usr/share/arduino/hardware/tools/avr/etc/avrdude.conf
Hi,
I am running Arduino IDE 1.6.9 with Sublime 3. When i try to run any sketch through Sublime with Stino installed, i get the following error:
[Stino - Start building "Desktop"...]
[ 3%] Creating /tmp/Stino_build/Desktop/Desktop.ino.cpp.o...
[ 6%] Creating /tmp/Stino_build/Desktop/core_arduino/hooks.c.o...
[ 10%] Creating /tmp/Stino_build/Desktop/core_arduino/WInterrupts.c.o...
[ 13%] Creating /tmp/Stino_build/Desktop/core_arduino/wiring.c.o...
[ 16%] Creating /tmp/Stino_build/Desktop/core_arduino/wiring_analog.c.o...
[ 20%] Creating /tmp/Stino_build/Desktop/core_arduino/wiring_digital.c.o...
[ 23%] Creating /tmp/Stino_build/Desktop/core_arduino/wiring_pulse.c.o...
[ 26%] Creating /tmp/Stino_build/Desktop/core_arduino/wiring_shift.c.o...
[ 30%] Creating /tmp/Stino_build/Desktop/core_arduino/abi.cpp.o...
[ 33%] Creating /tmp/Stino_build/Desktop/core_arduino/CDC.cpp.o...
[ 36%] Creating /tmp/Stino_build/Desktop/core_arduino/HardwareSerial.cpp.o...
[ 40%] Creating /tmp/Stino_build/Desktop/core_arduino/HardwareSerial0.cpp.o...
[ 43%] Creating /tmp/Stino_build/Desktop/core_arduino/HardwareSerial1.cpp.o...
[ 46%] Creating /tmp/Stino_build/Desktop/core_arduino/HardwareSerial2.cpp.o...
[ 50%] Creating /tmp/Stino_build/Desktop/core_arduino/HardwareSerial3.cpp.o...
[ 53%] Creating /tmp/Stino_build/Desktop/core_arduino/IPAddress.cpp.o...
[ 56%] Creating /tmp/Stino_build/Desktop/core_arduino/main.cpp.o...
[ 60%] Creating /tmp/Stino_build/Desktop/core_arduino/new.cpp.o...
[ 63%] Creating /tmp/Stino_build/Desktop/core_arduino/PluggableUSB.cpp.o...
[ 66%] Creating /tmp/Stino_build/Desktop/core_arduino/Print.cpp.o...
[ 70%] Creating /tmp/Stino_build/Desktop/core_arduino/Stream.cpp.o...
[ 73%] Creating /tmp/Stino_build/Desktop/core_arduino/Tone.cpp.o...
[ 76%] Creating /tmp/Stino_build/Desktop/core_arduino/USBCore.cpp.o...
[ 80%] Creating /tmp/Stino_build/Desktop/core_arduino/WMath.cpp.o...
[ 83%] Creating /tmp/Stino_build/Desktop/core_arduino/WString.cpp.o...
[ 86%] Creating /tmp/Stino_build/Desktop/core_arduino/wiring_pulse.S.o...
[ 90%] Creating /tmp/Stino_build/Desktop/core.a...
[ 93%] Creating /tmp/Stino_build/Desktop/Desktop.elf...
[ 96%] Creating /tmp/Stino_build/Desktop/Desktop.eep...
[100%] Creating /tmp/Stino_build/Desktop/Desktop.hex...
Sketch uses 1,808 bytes (5.6%) of program storage space. Maximum is 32,256 bytes.
Global variables use 222 bytes (10.8%) of dynamic memory, leaving 1,826 bytes for local variables. Maximum is 2,048 bytes.
[Stino - Done building "Desktop" in 3.2s.]
[Stino - Start uploading...]
avrdude: no programmer has been specified on the command line or the config file
Specify a programmer using the -c option and try again
[Stino - Exit with error code 1.]
But when i run the same Arduino sketches using the Arduino IDE, it works perfectly.
Can anyone help me with this? I would really appreciate it.
Thanks. E
Greetings, good project I want to know how I can match the syntax of ST3 C++, do not recognize the colors only works well in ST2 and as I am not very eperto birds I agree if the word is correct and in the autocopused is not as complete as in ST2 https://github.com/gepd/Stino/tree/new-stino
I find it more comfortable to work
I get this error when trying to compile for teensy.
/Applications/Arduino.app/Contents/Java/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld:--defsym:1: ignoring invalid character {' in expression /Applications/Arduino.app/Contents/Java/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld:--defsym:1: ignoring invalid character
}' in expression
--defsym:1: undefined symbol `extra.time.local' referenced in expression
collect2: error: ld returned 1 exit status
[Stino - Exit with error code 1.]
Same error for any code:
[Stino - Start building "testtest"...]
[ 3%] Creating /tmp/Stino_build/testtest/testtest.ino.cpp.o...
/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file
[Stino - Exit with error code 2.]
I'm setting up stint because the basic arduino IDE is crap, to get around this I compile ST3 ion code with another ST3 plugin (arduino-cli). Please help.
EDIT: forgot to mention i'm on mac osX
I just reinstall my workstation with Sublime Text 3 installed.
And I try to add Stino back, but I cannot find the package for Stino even I have installed Package Control and add the repo link to Repository. I don't know if this is the problem in my internet connection, but it can display the default package, also the one called "Arduino-Like IDE", and I can visit this github entry via Chrome; however, it cannot get the package here.
Could you please also provide the installation package, so that it can be installed by manual procedure as before?
Thanks in advance.
Using Sublimetext 3 and Arduino 1.5.7 on Windows 10 64bit
Added this package to the packages folder and set up the location of the Arduino environment. I can open Arduino projects but it cannot compile. Recieve the same error, no matter what I attempt to compile (note: it DOES actually create the .cpp file in the right place, so I'm not sure what the problem is):
[Stino - Start building "pressureSensorTest"...]
[ 3%] Creating C:\Users\Scott\Development\pressureSensorTest\pressureSensorTest.ino.cpp.o...
The filename, directory name, or volume label syntax is incorrect.
[Stino - Exit with error code 1.]
I just try the following command in Sublime Text Console
setx path "%path%;E:\Arduino\IDE\arduino-1.6.4"
where E:\Arduino\IDE\arduino-1.6.4 is the installation folder of Arduino IDE.
But the following error is returned:
setx path "%path%;E:\Arduino\IDE\arduino-1.6.4"
File "", line 1
setx path "%path%;E:\Arduino\IDE\arduino-1.6.4"
^
SyntaxError: invalid syntax
Is this command for the Console of Sublime Text 3?
Then I just try to create a batch file to set the path before running sublime text 3:
setx path "%path%;E:\Arduino\IDE\arduino-1.6.4"
"C:\Program Files\Sublime Text 3\subl.exe"
It can now start compile without error, but it will stop at [ 3%] and no more progress.
The workstation has been reinstalled, so it should not be affected by other package, and I cannot use Sublime Text + Stino now. Please help.
Thanks a lot.
After the new installation process, the plugins is almost working it compiles the code, but shows an error when it tries to upload it. (with IDE 1.6.4)
Error:
"{runtime.tools.avrdude.path}/bin/avrdude" "-C{runtime.tools.avrdude.path}/etc/avrdude.conf" -v -patmega328p -carduino "-PCOM10" -b115200 -D "
I modify the platform_wiring.txt
and platform_avr.txt
based on the platform.txt
file located in arduino-1.6.4\hardware\arduino\avr
but the error keeps
When the "Bare Gcc (no arduino code munging)" option is ticked the verify/compile button as well as the upload buttons don't do anything... Do you have any suggestions how I should obtain more debugging information? No output window is shown and nothing at all seems to happen... As if no action was assigned to these buttons...
I have arduino 1.6.5 which doesn't seem to have this feature in it's ide but stino uses a lower level avr-g++ so should still be able to do this right?
Here is the console output when I select the arduino application folder.
Traceback (most recent call last):
File ".\StinoStarter.py", line 470, in on_done
File ".\app\base.py", line 24, in refresh
File ".\app\base.py", line 53, in genKeywordList
File ".\app\base.py", line 884, in getKeywordListFromPlatform
File ".\app\base.py", line 866, in getKeywordListFromCoreFolderList
File ".\app\base.py", line 855, in getKeywordListFromFile
UnboundLocalError: local variable 'keyword_type' referenced before assignment
Your work is really great!
But can you:
Or can you permit me to collaborate?
I really love your work!
Thank you.
TADT.
The Arduino IDE has an option to enable warnings at various verbosity. I cannot find a corresponding setting for Stino. It always seem to supply -w while I would like to replace -w with -Wall -Wextra.
when i select atmega 2560 board and try complie a sketch a file called eeprom.h will open with the folowing errors, any ideas how to fix?
c:/winavr-20090313/lib/gcc/../../avr/include/avr/eeprom.h: In function 'void eeprom_read_block(void_, const void_, size_t)':
c:/winavr-20090313/lib/gcc/../../avr/include/avr/eeprom.h:290: error: ISO C++ forbids incrementing a pointer of type 'void*'
c:/winavr-20090313/lib/gcc/../../avr/include/avr/eeprom.h:290: error: ISO C++ forbids incrementing a pointer of type 'const void*'
c:/winavr-20090313/lib/gcc/../../avr/include/avr/eeprom.h:290: error: invalid conversion from 'const void_' to 'const uint8_t_'
c:/winavr-20090313/lib/gcc/../../avr/include/avr/eeprom.h:290: error: initializing argument 1 of 'uint8_t eeprom_read_byte(const uint8_t*)'
c:/winavr-20090313/lib/gcc/../../avr/include/avr/eeprom.h:290: error: lvalue required as left operand of assignment
c:/winavr-20090313/lib/gcc/../../avr/include/avr/eeprom.h: In function 'void eeprom_write_block(const void_, void_, size_t)':
c:/winavr-20090313/lib/gcc/../../avr/include/avr/eeprom.h:400: error: expected primary-expression before '}' token
c:/winavr-20090313/lib/gcc/../../avr/include/avr/eeprom.h:400: error: expected `;' before '}' token
I have installed the current version of Stino, but when I run Verify/Compile, I get:
/Applications/arduino.app/Contents/Java/hardware/tools/avr/bin/avr-ar: {archive_file_path}: Permission denied
The file permissions for avr-ar are correct, and I can run it normally. Any ideas?
[Stino - Start uploading...]
avrdude: can't open config file "/usr/share/arduino/hardware/tools/avr/etc/avrdude.conf": No such file or directory
avrdude: error reading system wide configuration file "/usr/share/arduino/hardware/tools/avr/etc/avrdude.conf"
[Stino - Exit with error code 1.]
Anyone have a clue? Haven't got any luck so far, I've tried different versions of Sublime Text 2/3. And also different ways of installing Arduino onto Sublime. (Extracted ZIP into package folder, and using github repository).
Running Linux Mint 64-bit
Cheers.
Hi,
Your tool is very nice. However, it appears to associate files with the .pde extension with the Arduino. That means that Processing files (which also end in .pde) are diverted from their normal association. So, I can seem to use this tool with the Processing Sublime Text plugin (https://github.com/b-g/processing-sublime).
I think all you need to do is to remove the association to .pde files. Most current Arduino source files end in .ino these days so I don't think that's asking too much.
Also, it looks like you associate .c .cc and .h files with Arduino as well. Is that a good idea? There are many, many .c etc. files out there which aren't Arduino-specific files.
Thanks,
Clay Budin
NYC
If I want to compile with Stino I get the Error:
[Stino - Start building "Blink"...]
Der Befehl "C:\Program" ist entweder falsch geschrieben oder konnte nicht gefunden werden.
meaning that C:\Program
could not be found.
So my Arduino lives in c:\Program Files (x86)\Arduino\
. On Windows a filename with spaces in it has to be put in quotes if used as an argument. So I fixed this by changing arduino_compiler.py, row 355:
self.working_dir = '"%s"' % self.arduino_info.get_ide_dir().get_path()
But don' t know if this works on Linux as well.
I installed newest version using Package Control. When i do verify/compile there is a error associated with .elf, .hex and .eep files, because the compiler is trying to put those files in a folder called "sketch", inside the BUILD\sketch_name directory. After the error, if i create a folder "sketch" inside the folder "sketch_name" and run verify/compile again, no error occurs.
Maybe I'm missing something, but it seems that Stino won't compile my sketch unless I move my contributed/custom libraries to {ARDUINO_INSTALL}/libraries./ AFAIK, custom libraries belong in {SKETCH_FOLDER}/libraries/, and not in the arduino install directory.
I would guess that this could be accomplished by editing one of the .py files in Stino/ but I'm not sure which one(s) to edit so as to make the compiling also search {SKETCH_FOLDER}/libraries/ for any #includes.
....or am I missing a configuration step somewhere?
I am working on Mac OS10.10.3, Sublime Text 2 2.0.2, Arduino 1.6.5 and stino (v2015.7.6)
I am trying to use stino to compile and upload to an Arduino Uno. Initially I had an issue compiling (it didnt). After some digging online I found a work around. Replacing the exec_cmd in the arduino_compiler.py with the following seemed to work.
def exec_cmds(working_dir, cmds, message_queue, is_verbose=False):
error_occured = False
for cmd in cmds:
return_code, stdout, stderr = exec_cmd(working_dir, cmd)
if is_verbose:
message_queue.put(cmd + '\n')
if stdout:
message_queue.put(stdout + '\n')
if stderr:
message_queue.put(stderr + '\n')
if return_code != 0:
message_queue.put(
'[Stino - Exit with error code {0}.]\\n', return_code)
error_occured = True
break
return error_occured
I am however still unable to upload. I see the [Stino - Done uploading.] message but nothing happens. Checking the Sublime Text 2 console revealed this:
Traceback (most recent call last):
File "./sublime_plugin.py", line 337, in run_
File "./StinoStarter.py", line 162, in run
File "./stino/main.py", line 197, in open_sketch
AttributeError: 'Window' object has no attribute 'project_data'
this seems to be the problem but I have no idea how to fix it. Any ideas?
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.