Pages: [1] 2   Go Down
Author Topic: Sublime Text and Stino: Best IDE you can have.  (Read 19099 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 70
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Stino is a Sublime Text plugin for upload/compile arduino sketches. Im using it on ElementaryOS (Ubuntu based) and can't imagine a better IDE. Sublime Text  has plugins for code completion, snippets,and lots of stuff... everything is there.
If you are curious, take a look at
http://www.sublimetext.com/

This is a plugin installer for Sublime Text plugins :
http://wbond.net/sublime_packages/package_control

After  install, do a search for arduino snippets.


 this is a snippet collection  not listed in package installer ( very good snippets there):
https://github.com/geetarista/ST2-Arduino

The coolest plugin i've found for Sublime Text and Arduino upload/compile.Kudos to the developer:
http://kaixin.netii.net/stino-a-sublime-text-2-plugin-for-arduino.html#comment-16


Forget about Eclipse, Netbeans and other editors...

 Cheers.
« Last Edit: December 18, 2012, 02:11:55 am by tomasi » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, Tomasi, you are nice.
Logged

Stino - A sublime text plugin for Arduino
https://github.com/Robot-Will/Stino

Offline Offline
Jr. Member
**
Karma: 3
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I will give it a try.
Logged

Rapa Nui
Offline Offline
Edison Member
*
Karma: 60
Posts: 2071
Pukao hats cleaning services
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nice!
With 1.5.2 (XP):
1. it does not show sketches with deeper directory structure (ie. c:/mysketchfolder/XX/YY/my.ino)
2. it has problem to compile sketches with multiple files (cannot find the main with setup and loop)..
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

This plugin is still under development, so there are still problems remaining.
Logged

Stino - A sublime text plugin for Arduino
https://github.com/Robot-Will/Stino

Finland
Offline Offline
Jr. Member
**
Karma: 1
Posts: 93
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I can't believe I haven't found this before! I love Sublime, this is great! Thank you for making this plugin.

I'm interested in using avr assembly to program my Arduino (need that extra oompf for video out). I'm using OS X so AVR Studio is not an option. Any chances that Stino would one day support assembly programming?  smiley
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't think it's difficult to add support of assembly. But I need some information:
1. the extension name of assembly files? is ".S"?
2. compilation command?

In Arduino platform.txt, there is one line:
compiler.S.flags=-c -g -assembler-with-cpp
but there is no compilation command.
Logged

Stino - A sublime text plugin for Arduino
https://github.com/Robot-Will/Stino

Britanny
Offline Offline
Full Member
***
Karma: 0
Posts: 233
Mais vrai, j'ai trop pleuré, toute lune est atroce
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Ay!!!

Really, really cool plugins.
Thanks.

Hurra to @Robot-Will... (i kiss your feet) smiley-wink
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the tip! I love keeping everything within Sublime.
Logged

UK
Offline Offline
Tesla Member
***
Karma: 121
Posts: 6980
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

As it costs $70 I will stick with Gedit and maybe spend the money on Arduino hardware.

...R
Logged

North Queensland, Australia
Online Online
Edison Member
*
Karma: 69
Posts: 2166
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Your last item is flagged as an unsafe page (http://kaixin.netii.net/stino-a-sublime-text-2-plugin-for-arduino.html#comment-16) .
Both VirusTotal and Comodo flagged it.
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Note for Due users:  
If you install SublimeLinter, you can get Linting on Arduino files by editing the following in SublimeLinter > Settings - User:

"linters": {
            "clang": {
                "@disable": false,
                "args": [],
                "excludes": [],
                "extra_flags": "",
                "include_dirs": [
                     "/path/to/arduino-1.5.5/hardware/arduino/sam/cores/arduino",
                     "/path/to/arduino-1.5.5/hardware/arduino/sam/system/libsam/",
                    "/path/to/arduino-1.5.5/hardware/arduino/sam/variants/arduino_due_x",
                    "/path/to/arduino-1.5.5/hardware/arduino/sam/system/CMSIS/Device/ATMEL/",
                    "/path/to/arduino-1.5.5/hardware/tools/g++_arm_none_eabi/arm-none-eabi/include/",
                    "/path/to/arduino-1.5.5/hardware/tools/g++_arm_none_eabi/lib/gcc/arm-none-eabi/4.4.1/include",
            }
        },

Where "/path/to/arduino-1.5.5" is the path to your arduino IDE install.  
However, this only affects CPP/H files unless you open an INO file and click on the bottom right (where it says Arduino) and select "Open all with current extension as..." > C++.  
Thanks Robot Will, your plugin is excellent!
« Last Edit: January 04, 2014, 10:51:20 am by blink1073 » Logged

Germany
Offline Offline
Edison Member
*
Karma: 2
Posts: 1363
Here we go!!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have some problems with Sublime text. For example some code that is compiling in the Arduino IDE it is not working in the Sublime Text.

For example I have the following errors:
Code:
C:\Users\***********\Controller_v3_2.ino.cpp:509: error: 'SPI_CONTINUE' was not declared in this scope
C:\Users\***********\Controller_v3_2\Controller_v3_2.ino.cpp:510: error: 'SPI_LAST' was not declared in this scope

I have no idea how to solve this problem. Could you help me?
Logged

L'impossibile...richiede solo piu' tempo!

North Queensland, Australia
Online Online
Edison Member
*
Karma: 69
Posts: 2166
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

SPI_CONTINUE and SPI_LAST do not appear to be in the Arduino package ( 1.0.5 ). You might have left out/improperly included a library and/or sublime might not define something that is used to conditionally include the SPI_x symbols.
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I just added support for assembly files used in your sketch or external libraries.

If Robot-Will accepts the modification, it will be on his github repo, but if you're hurry, use mine instead: https://github.com/HectorBravo/Stino
Logged

Pages: [1] 2   Go Up
Jump to: