gepd / deviot Goto Github PK
View Code? Open in Web Editor NEWSublime Text plugin for IoT development based in PlatformIO ecosystem (Arduino IDE)
License: Apache License 2.0
Sublime Text plugin for IoT development based in PlatformIO ecosystem (Arduino IDE)
License: Apache License 2.0
Hi!
I tried Deviot but i have an problem. When i try to upload my project, after select /dev/TTYUSB0, a got this warning:
OTA Upload are only available for Espressif (ESP8266) platforms currently
I don't use any wireless programmer.
This is my build conf file:
[env:pro16MHzatmega328]
platform = atmelavr
framework = arduino
board = pro16MHzatmega328
[platformio]
src_dir=/home/an/Arduino/temperature/final
On usb i have connected an USB to serial adapter witch work fine with ArduinoIDE.
#lsusb
Bus 004 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
Thanks!
Howdy, there is an ATMEL section under board but it does not show 'the usual suspects' like tiny45, 44, 84 and 85. Would you please add these as an enhancement?
Hi. I've started using Deviot, and I see that it's way better than Stino. The syntax highlighting is perfect. However, I think we need to add more data types into it.
I would love to have boolean
, byte
, and word
to be highlighted and italicized like other data types shown in the photo.
I did post a similar issue to Stino, but you said Stino is out for Deviot now. So, I want to suggest the enhancement above in the right area.
When I manually add libraries, they are not picked up, nor are examples.
If I revert to stable it works.
Maybe I am using the wrong lib location...
user/.platformio/lib
Is there a user lib folder?
Un simple error como poner un float con coma (,) y no (.) punto decimal genera esto
La parte de código que muestra el error es
`void loop() {
float valor = analogRead(A0) * 0,00782; //0,00782 = 5/1023
Serial.println(valor);
delay(1000);
}`
El error mostrado
`[ Deviot 1.1.10 ] Borrar_3.ino
15:13:24 Compilando el proyecto | Procesando...
[07/07/16 15:13:24] Processing uno (platform: atmelavr, board: uno, framework: arduino)
avr-g++ -o .pioenvs\uno\src\tmp_ino_to.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DPLATFORMIO=021001 -DARDUINO_ARCH_AVR -DARDUINO_AVR_UNO -DARDUINO=10608 -I.pioenvs\uno\FrameworkArduino -I.pioenvs\uno\FrameworkArduinoVariant -ID:\Dropbox\Arduino\Foro\Borrar\Borrar_3 D:\Dropbox\Arduino\Foro\Borrar\Borrar_3\tmp_ino_to.cpp
D:/Dropbox/Arduino/Foro/Borrar/Borrar_3/Borrar_3.ino:28:36: error: invalid digit "8" in octal constant
D:/Dropbox/Arduino/Foro/Borrar/Borrar_3/Borrar_3.ino: In function 'void loop()':
D:/Dropbox/Arduino/Foro/Borrar/Borrar_3/Borrar_3.ino:28:36: error: expected unqualified-id before numeric constant
avr-gcc -o .pioenvs\uno\FrameworkArduino\WInterrupts.o -c -std=gnu11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DPLATFORMIO=021001 -DARDUINO_ARCH_AVR -DARDUINO_AVR_UNO -DARDUINO=10608 -I.pioenvs\uno\FrameworkArduino -I.pioenvs\uno\FrameworkArduinoVariant .pioenvs\uno\FrameworkArduino\WInterrupts.c
avr-g++ -o .pioenvs\uno\FrameworkArduino\WMath.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DPLATFORMIO=021001 -DARDUINO_ARCH_AVR -DARDUINO_AVR_UNO -DARDUINO=10608 -I.pioenvs\uno\FrameworkArduino -I.pioenvs\uno\FrameworkArduinoVariant .pioenvs\uno\FrameworkArduino\WMath.cpp
scons: *** [.pioenvs\uno\src\tmp_ino_to.o] Error 1
avr-g++ -o .pioenvs\uno\FrameworkArduino\WString.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DPLATFORMIO=021001 -DARDUINO_ARCH_AVR -DARDUINO_AVR_UNO -DARDUINO=10608 -I.pioenvs\uno\FrameworkArduino -I.pioenvs\uno\FrameworkArduinoVariant .pioenvs\uno\FrameworkArduino\WString.cpp
[ ERROR ] Took 1.21 seconds `
Hi,
on a Windows 7 and XP system only rectangles are showing up instead of the correct symbols. Is it necessary to install any symbol library?
Do upload
resize console
Do upload
console snaps back to default size
Deviot was working fine on my Windows 10 64bit machine and for some reason, I removed the preferences file. After that, I have not been able to select a serial port. The serial ports menu item is empty, even though I see COM3 in Device Manager. I can still select and upload programs through the Arduino IDE.
Board: Wemos D1
Sketch:
/**
* reuseConnection.ino
*
* Created on: 22.11.2015
*
*/
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <ESP8266HTTPClient.h>
#define USE_SERIAL Serial
ESP8266WiFiMulti WiFiMulti;
HTTPClient http;
void setup() {
USE_SERIAL.begin(115200);
// USE_SERIAL.setDebugOutput(true);
USE_SERIAL.println();
USE_SERIAL.println();
USE_SERIAL.println();
for(uint8_t t = 4; t > 0; t--) {
USE_SERIAL.printf("[SETUP] WAIT %d...\n", t);
USE_SERIAL.flush();
delay(1000);
}
WiFiMulti.addAP("SSID", "PASSWORD");
// allow reuse (if server supports it)
http.setReuse(true);
}
void loop() {
// wait for WiFi connection
if((WiFiMulti.run() == WL_CONNECTED)) {
http.begin("http://192.168.1.12/test.html");
//http.begin("192.168.1.12", 80, "/test.html");
int httpCode = http.GET();
if(httpCode > 0) {
USE_SERIAL.printf("[HTTP] GET... code: %d\n", httpCode);
// file found at server
if(httpCode == HTTP_CODE_OK) {
http.writeToStream(&USE_SERIAL);
}
} else {
USE_SERIAL.printf("[HTTP] GET... failed, error: %s\n", http.errorToString(httpCode).c_str());
}
http.end();
}
delay(1000);
}
Error message:
[ Deviot 1.1.7 ] ReuseConnection.ino
08:27:13 Initializing the project | SUCCESS | it took 1.69s
08:27:15 Building the project | Processing...
In file included from .pioenvs\d1\WiFi\WiFiUdp.cpp:29:0:
.pioenvs\d1\WiFi\WiFiUdp.h:25:0: warning: "UDP_TX_PACKET_MAX_SIZE" redefined [enabled by default]
#define udp_tx_packet_max_size 24
^
In file included from .pioenvs\d1\WiFi\utility/wifi_drv.h:26:0,
#define udp_tx_packet_max_size 8192
^
In file included from .pioenvs\d1\WiFi\WiFiUdp.cpp:29:0:
.pioenvs\d1\WiFi\WiFiUdp.h:27:7: error: redefinition of 'class WiFiUDP'
class wifiudp : public udp {
^
In file included from .pioenvs\d1\WiFi\utility/wifi_drv.h:26:0,
.pioenvs\d1\ESP8266WiFi/WiFiUdp.h:32:7: error: previous definition of 'class WiFiUDP'
class wifiudp : public udp, public slist<wifiudp> {
^
.pioenvs\d1\WiFi\WiFiUdp.cpp:35:22: error: class 'WiFiUDP' does not have any field named '_sock'
wifiudp::wifiudp() : _sock(no_socket_avail) {}
^
.pioenvs\d1\WiFi\WiFiUdp.cpp:45:9: error: '_sock' was not declared in this scope
_sock = sock;
^
.pioenvs\d1\WiFi\WiFiUdp.cpp:46:9: error: '_port' was not declared in this scope
_port = port;
^
.pioenvs\d1\WiFi\WiFiUdp.cpp:56:7: error: '_sock' was not declared in this scope
if (_sock != no_socket_avail)
^
.pioenvs\d1\WiFi\WiFiUdp.cpp:66:8: error: '_sock' was not declared in this scope
if (_sock == no_socket_avail)
^
.pioenvs\d1\WiFi\WiFiUdp.cpp:69:26: error: '_sock' was not declared in this scope
serverdrv::stopclient(_sock);
^
.pioenvs\d1\WiFi\WiFiUdp.cpp:88:7: error: '_sock' was not declared in this scope
if (_sock == no_socket_avail)
^
.pioenvs\d1\WiFi\WiFiUdp.cpp:90:7: error: '_sock' was not declared in this scope
if (_sock != no_socket_avail)
^
.pioenvs\d1\WiFi\WiFiUdp.cpp:101:32: error: '_sock' was not declared in this scope
return serverdrv::sendudpdata(_sock);
^
.pioenvs\d1\WiFi\WiFiUdp.cpp:111:27: error: '_sock' was not declared in this scope
serverdrv::insertdatabuf(_sock, buffer, size);
^
.pioenvs\d1\WiFi\WiFiUdp.cpp:125:23: error: '_sock' was not declared in this scope
serverdrv::getdata(_sock, &b);
^
.pioenvs\d1\WiFi\WiFiUdp.cpp:137:31: error: '_sock' was not declared in this scope
if (!serverdrv::getdatabuf(_sock, buffer, &size))
^
.pioenvs\d1\WiFi\WiFiUdp.cpp:152:22: error: '_sock' was not declared in this scope
serverdrv::getdata(_sock, &b, 1);
^
.pioenvs\d1\WiFi\WiFiUdp.cpp:166:25: error: '_sock' was not declared in this scope
wifidrv::getremotedata(_sock, _remoteip, _remoteport);
^
.pioenvs\d1\WiFi\WiFiUdp.cpp:176:25: error: '_sock' was not declared in this scope
wifidrv::getremotedata(_sock, _remoteip, _remoteport);
^
08:27:43 ERROR | it took 28.19s
it would be great if there was a way to setup the default folder to create new Sketchs
Did you just push an update version ?
I noticed my Deviot sub menus all disappeared, and I had to restart ST.
Just an FYI for UX.
doesn't seem to figure it out. I just get the menu with 1 and 2 and check. But nothing happens
using mac, with platformio installed..
any help appreciated?
I'm running OSX 10.11.6. Not really sure what information is relevant to help with this so please ask away. Thanks!
Main error (I think) highlighted with **** in code below. I think it is because the folder "Application Support" has a space that is not being escaped:
Currently:
/bin/sh: /Users/gianpaolo/Library/**Application** Support/Sublime Text 3/Packages/User/Deviot/penv/bin/python
Maybe it should be:
/bin/sh: /Users/gianpaolo/Library/**Application\** Support/Sublime Text 3/Packages/User/Deviot/penv/bin/python
startup, version: 3114 osx x64 channel: stable
executable: /Applications/Sublime Text.app/Contents/MacOS/Sublime Text
working dir: /
packages path: /Users/gianpaolo/Library/Application Support/Sublime Text 3/Packages
state path: /Users/gianpaolo/Library/Application Support/Sublime Text 3/Local
zip path: /Applications/Sublime Text.app/Contents/MacOS/Packages
zip path: /Users/gianpaolo/Library/Application Support/Sublime Text 3/Installed Packages
ignored_packages: ["Vintage"]
pre session restore time: 0.347639
using gpu buffer for window
startup time: 0.422887
first paint time: 0.45831
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.comment
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_file_settings
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.profile
reloading plugin Default.quick_panel
reloading plugin Default.run_syntax_tests
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.show_scope_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin 0_package_control_loader.00-package_control
reloading plugin 0_package_control_loader.02-bz2
reloading plugin 0_package_control_loader.50-backrefs
reloading plugin BracketHighlighter.bh_core
reloading plugin BracketHighlighter.bh_logging
reloading plugin BracketHighlighter.bh_plugin
reloading plugin BracketHighlighter.bh_regions
reloading plugin BracketHighlighter.bh_remove
reloading plugin BracketHighlighter.bh_rules
reloading plugin BracketHighlighter.bh_search
reloading plugin BracketHighlighter.bh_swapping
reloading plugin BracketHighlighter.bh_wrapping
reloading plugin BracketHighlighter.changes
reloading plugin BracketHighlighter.support
reloading plugin FileDiffs.file_diffs
reloading plugin Go To Definition.Go To Definition
reloading plugin Package Control.1_reloader
reloading plugin Package Control.2_bootstrap
reloading plugin Package Control.Package Control
reloading plugin WordCount.WordCount
reloading plugin Deviot.DeviotStarter
plugins loaded
**************************************************************
/bin/sh: /Users/gianpaolo/Library/Application Support/Sublime Text 3/Packages/User/Deviot/penv/bin/python: No such file or directory
**************************************************************
Package Control: Skipping automatic upgrade, last run at 2016-08-30 11:47:57, next run at 2016-08-30 12:47:57 or after
generating syntax summary
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 553, in run_
return self.run()
File "/Users/gianpaolo/Library/Application Support/Sublime Text 3/Packages/Deviot/DeviotStarter.py", line 133, in run
self.MENU_LIST = Menu().createBoardsMenu()
File "/Users/gianpaolo/Library/Application Support/Sublime Text 3/Packages/Deviot/libs/Menu.py", line 50, in createBoardsMenu
list_env.extend(Tools.getEnvFromFile())
File "/Users/gianpaolo/Library/Application Support/Sublime Text 3/Packages/Deviot/libs/Tools.py", line 556, in getEnvFromFile
inipath = getInitPath(view)
File "/Users/gianpaolo/Library/Application Support/Sublime Text 3/Packages/Deviot/libs/Tools.py", line 530, in getInitPath
workingpath = getWorkingPath(view)
File "/Users/gianpaolo/Library/Application Support/Sublime Text 3/Packages/Deviot/libs/Tools.py", line 672, in getWorkingPath
filepath = Paths.getCWD(view.file_name())
File "/Users/gianpaolo/Library/Application Support/Sublime Text 3/Packages/Deviot/libs/Paths.py", line 247, in getCWD
folder_path = os.path.dirname(file_path)
File "./python3.3/posixpath.py", line 151, in dirname
AttributeError: 'NoneType' object has no attribute 'rfind'
Traceback (most recent call last):
File "/Users/gianpaolo/Library/Application Support/Sublime Text 3/Packages/Deviot/libs/PlatformioCLI.py", line 413, in savePortCallback
self.beforeProcess()
File "/Users/gianpaolo/Library/Application Support/Sublime Text 3/Packages/Deviot/libs/PlatformioCLI.py", line 219, in beforeProcess
if('src_dir' in INIFILE['platformio']):
File "/Users/gianpaolo/Library/Application Support/Sublime Text 3/Packages/Deviot/libs/configobj/configobj.py", line 547, in __getitem__
val = dict.__getitem__(self, key)
KeyError: 'platformio'
Exception in thread Thread-13:
Traceback (most recent call last):
File "./python3.3/threading.py", line 901, in _bootstrap_inner
File "./python3.3/threading.py", line 858, in run
File "/Users/gianpaolo/Library/Application Support/Sublime Text 3/Packages/Deviot/libs/PlatformioCLI.py", line 118, in fileCheck
self.projectRecognition()
File "/Users/gianpaolo/Library/Application Support/Sublime Text 3/Packages/Deviot/libs/PlatformioCLI.py", line 151, in projectRecognition
self.beforeProcess()
File "/Users/gianpaolo/Library/Application Support/Sublime Text 3/Packages/Deviot/libs/PlatformioCLI.py", line 219, in beforeProcess
if('src_dir' in INIFILE['platformio']):
File "/Users/gianpaolo/Library/Application Support/Sublime Text 3/Packages/Deviot/libs/configobj/configobj.py", line 547, in __getitem__
val = dict.__getitem__(self, key)
KeyError: 'platformio'
was just thinking it might be useful to run platform io commands in env from a cmd input entry.
( I do not think st3 has a robust sys console solution, wbond has something though )
Hi!
I try to define a new board to use with optiboot bootloader.
Edited boards.txt in "/home/dev/.platformio/packages/framework-arduinoavr/" and added this lines:
`################################################################
atmega328o.name=Optiboot Arduino Pro Mini 5V 16Mhz w/ ATmega328
atmega328o.upload.protocol=arduino
atmega328o.upload.maximum_size=32256
atmega328o.upload.speed=115200
atmega328o.bootloader.low_fuses=0xff
atmega328o.bootloader.high_fuses=0xde
atmega328o.bootloader.extended_fuses=0x05
atmega328o.bootloader.file=optiboot/optiboot_atmega328.hex
atmega328o.bootloader.unlock_bits=0x3F
atmega328o.bootloader.lock_bits=0x0F
atmega328o.build.mcu=atmega328p
atmega328o.build.f_cpu=16000000L
atmega328o.build.core=arduino:arduino
atmega328o.build.variant=arduino:standard
atmega328o.bootloader.tool=avrdude
atmega328o.upload.tool=avrdude
atmega328o.build.board=AVR_PRO
`
I closed sublime text and restart but i can't find board in list. What is wrong?
I do not see a way to bring back console.
hitting esc or bringing up sublime console, hides the deviot console.
So Deviot says "None serial port selected". But I can't select a port, because the teensy (at least teensy 3.1) does not use a serial port for programming.
I verified that platformio will just ignore the --upload-port argument.
I messed around in the Deviot source code, but guess a sudo touch /dev/ttyUSB99
would also solved my problem, since that would be a fake port I could have selected.
I was previously using Stino, but want to give Deviot a try.
I have a project folder with multiple .pde files that are alphabetically sorted, that compiled fine on Stino.
Now, I have out of scope errors. How are multiple files handled in Deviot?
It would be nice to implement autoscroll on the console, without stealing focus from editor.
I notice if you focus console, hit end , and then blur ( go back to coding), it stays scrolling.
Might be a useful workaround or implementation available,.
Is there a way to output the serial monitor in the console window? I think this would be much better so you can still see the code and the Serial monitor output at the same time.
Hi,
I have the problem, that in the console output everything goes into an endless string instead of beginning a new line for every statement. In your animated gifs everything looks fine. Is that a matter of preferences or what could be the reason?
Thx!
The menu option button Deviot -> Donate directs to a broken link (https://github.com/gepd/Deviot/blob/master/Donate.md).
How can we use the development version of PlatformIO? There is a SAMD uploading issue which has been fixed as of today, but is only available on the latest dev version of PlatformIO.
Atom has an option for PlatformIO to update to latest (even non-stable versions), does Deviot have something similar? If not, whats a quick fix that we can do for now?
Here is link to SAMD issue at PlatformIO: platformio/platformio-core#520 (comment)
Right now Deviot seems to stick to keeping its libraries at one specific location which cannot be changed. This is highly unpractical as this gives you files to maintain at multiple locations. Did I overlook some setting or is this simply a bug that needs to be fixed?
If a lib contains .pde files instead of .ino, they show up in examples menu, but nothing happens when you click them.
Where does the toolbar come from in the screencast in the readme ?
I do not have a toolbar...
Get this error. No clue what environment it means.
esp8266 core was updated to 2.3.0.
How do i go about updating it in deviot/stino/platformio
Is there any useful cli support for this in either of these platforms ?
Hi!
I have Windows 7 x86, Sublime Text 3 build 3103.
Like to try you product.
Install python 2.7, after that install Deviot 1.1.7 by click Install from Sublime Text menu.
In start install, wait wait wait ... and got error Error Installing PlatformIO
I was restart Sublime, open console - again this error.
What i need to do?
[ Deviot 1.1.7 ] Setup
00:58:12 PlatformIO is not installed
Preparing to installing it, please be patient it may take a while.
00:58:12 Extracting files...
00:58:12 Installing PlatformIO...
00:58:27 Error Installing PlatformIO
hi @gepd
I'm still having issues on Mac with how detection of port and board is handled in mDNSCheck()
.
I've placed some debugging code in there to see where it halts, and it's clearly the regExp failing something.
Unluckily I'm clueless about regExp, so I don't know what fails there.
Sure thing is if I execute search(r"[\d{3}\.]{3}", PORT)
with PORT='/dev/tty.usbserial-A900adQQ'
(my USB Serial port) in a Python console I get nothing.
I temporarily fixed it by just commenting out the return False
so I can at least move on and work, but I think a better solution needs to be found here.
The previous fix based on if
worked, but maybe not for everyone.
In my opinion, searching for the presence of tty
, cu.
, COM
(case insensitive) followed by a number might fix it for all the cases I'm aware of.
thanks for your attention
u.
Deviot does not appear on the menu and keeps asking for Python 2.7 even though Python 2.7 was installed.
Using latest version of Sublime (build 3114), installed Deviot through package control and installed the latest version of Python 2.7. Python 3 is not installed.
Hello,
I have a problem with the UPLOAD option when i upload the arduino script for the arduino Due into the chip.
The console write :
[ Deviot 1.2.3 ] Test.ino
OTA Upload are only available for Espressif (ESP8266) platforms currently
My configuration is :
Have you any solution ?
Thanks a lot !
Followed the instructions as far as i know:
cloned Deviot into the sublime packages directory
restarted sublime and it attempted installing platform io and deviot on its own
Claims the installation was successful... but no Deviot menu option, and this is what i see in the console:
startup, version: 2221 osx x64 channel: stable
executable: /Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2
working dir: /
packages path: /Users/Taba/Library/Application Support/Sublime Text 2/Packages
settings path: /Users/Taba/Library/Application Support/Sublime Text 2/Settings
PackageSetup not required
catalogue loaded
found 5 files for base name Default.sublime-keymap
found 1 files for base name Default.sublime-mousemap
found 3 files for base name Main.sublime-menu
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/0_package_control_loader/00-package_control.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/0_package_control_loader/02-bz2.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/CSS/css_completions.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/comment.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/copy_path.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/delete_word.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/detect_indentation.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/duplicate_line.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/echo.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/exec.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/fold.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/font.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/goto_line.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/indentation.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/kill_ring.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/mark.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/new_templates.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/open_file_settings.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/open_in_browser.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/paragraph.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/save_on_focus_lost.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/scroll.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/set_unsaved_view_name.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/side_bar.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/sort.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/swap_line.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/switch_file.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/transform.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/transpose.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Default/trim_trailing_white_space.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Deviot/DeviotStarter.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Diff/diff.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/HTML/encode_html_entities.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/HTML/html_completions.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Package Control/1_reloader.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Package Control/2_bootstrap.py
Reloading plugin /Users/Taba/Library/Application Support/Sublime Text 2/Packages/Package Control/Package Control.py
plugin init time: 0.124853
loading bindings
loading pointer bindings
found 1 files for base name Default.sublime-theme
theme loaded
app ready
pre session restore time: 0.255007
using gpu buffer for window
using gamma: 2 (err: 6.85565)
Traceback (most recent call last):
File "./sublime_plugin.py", line 205, in on_activated
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 204, in
File "./DeviotStarter.py", line 96, in on_activated
File "./libs/PlatformioCLI.py", line 111, in init
File "./libs/Paths.py", line 241, in getCurrentFilePath
AttributeError: 'NoneType' object has no attribute 'views'
wrote startup cache, added files: 1 orphaned files: 0 total files: 98 cache hits: 97
startup time: 0.360317 (package setup was not run)
Exception in thread Thread-1:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 484, in run
self.__target(_self.__args, *_self.__kwargs)
File "./libs/Install.py", line 97, in checkPio
File "./libs/Install.py", line 256, in endSetup
File "./libs/PlatformioCLI.py", line 544, in generateFiles
File "./libs/PlatformioCLI.py", line 492, in saveAPIBoards
File "./libs/PlatformioCLI.py", line 473, in getAPIBoards
RuntimeError: Must call on main thread, consider using sublime.set_timeout(function, timeout)
loaded 837 snippets
found 3 files for base name Main.sublime-menu
Package Control: Skipping automatic upgrade, last run at 2016-03-20 13:57:54, next run at 2016-03-20 14:57:54 or after
I just installed support for SAMD arduino boards, like the new MKR1000, from the boards manager of the Arduino IDE. I wonder how can I set Sublime/Deviot to work with the MKR1000
Thanks :)
When I attempt to open the serial monitor it fails to open with the following error:
Traceback (most recent call last):
File "/opt/sublime_text/sublime_plugin.py", line 553, in run
return self.run()
File "/home/user/.config/sublime-text-3/Packages/Deviot/DeviotStarter.py", line 557, in run
PlatformioCLI(feedback=False, callback=self.on_done).openInThread(
TypeError: __init__() got an unexpected keyword argument 'callback'
I can compile and upload for Due using progamming port at first. But when next I modify something and try to reupload this erros apears.
How do we set board options ?
There is no board menu.
I tried modifying boards.txt to my preferences but it didn't work.
for example
esptool upload.speed ?
Is this a feature you added, i notice my console is syntax highlighted, but only if verbose is not enabled.
Is this a feature or is this something my install is doing ?
Also any idea why verbose is not themed ?
Either way it is very nice touch.
after installing all , and receiving successful installation comment , deviot menu do not appear on the st3 head menu.
Can you add autoscrolling behavior to the serial monitor as in the Arduinio IDE serial monitor? When checked, it automatically scrolls down to let you to see the newest data.
I was able to successfully program my attiny85 with the normal arduino ide by installing attiny boards and selecting USBtinyISP as the programmer.
Is there a way to do this in Deviot? I've tried using GenericATTiny85 but it doesn't do anything. Reading up on platform.io it looks like it needs to be using the program command instead of the upload command.
http://docs.platformio.org/en/latest/platforms/atmelavr.html#upload-using-programmer
I've tried adding "upload_protocol = usbtiny" to the build config file in Deviot but it wasn't successful, probably because it's using the upload command still?
I'm rather new at this and would appreciate any help!
I can't seem to get comment toggling to work when editing .ino files.
Am I doing something wrong, or is it simply not supported yet?
I tried to go add comment functionality in the Arduino.tmLanguage file, but it didn't work for me.
Thanks!
Morten, Denmark
Why does deviot not register itself in the package settings menu for prefs and keyboard files.
I tried to change build folder to be something other than default /tmp/Deviot but this does not seem to be saved - "Open build directory" still opens /tmp/Deviot. Code builds in right place - in .pioenvs subdirectory, which is hidden so even if you fix the display problem the content of actual build directory might not be visible unless somebody turns on display of hidden files.
Hi
MY SETUP:
I'm running a portable version of Python 2.7.6.1 (http://portablepython.com/wiki/PortablePython2.7.6.1/ ) on a USB stick, installed under: "E:\MyTools\Python\App"
Also, I'm running a portable version of Sublime Text 3 Build 3059 (http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%20Build%203059.zip ) on the same USB stick, installed under: "E:\MyTools\Sublime Text 3"
Edited the "E:\MyTools\Sublime Text 3\Data\Packages\Deviot\Settings-Default\Deviot Preferences.sublime-settings" with this line:
"env_path": "E:\MyTools\Python\App","E:\MyTools\Python\App\Scripts"
Results:
When Sublime stars, Devion ask again for instal python 2.7
Any idea for setting?
I can't build any simplest project. Where does it look for library files? I have it in 3 directory:
There's file at c:\Users%Username%.platformio\lib\OneWire\OneWire.h
fatal error: OneWire.h: No such file or directory
#include <onewire.h>
Or I'm doing something wrong?
Hello,
As the tittle says I cannot select the environment. I have the board selected in the Select Board option but the Select Environment is grayed out.
Error says:
12:07:00 None environment selected
I have tried Teensy, Arduino Uno, Arduino Atmegaxxx and all of them give the same problem.
Can you guide in how to start debugging this problem? What console utils I should use to debug it or if you know what the problem could be please let me know.
I have Arduino 1.6.7 and Teenyduino installed. I also have the platformio utility installed as well. Am missing packages to install?
I am using XUbuntu 14.04.
Thank you in advance and if you need more info please let me know!
I can upload from arduino ide with no problem.
But I get cannot access serial port, I have never seen this issue before.
MethodWrapper(["upload"], [".pioenvs/huzzah/firmware.bin"])
Looking for upload port/disk...
Manually specified: /dev/cu.usbserial-a100vng2
"/Users/.../.platformio/packages/tool-esptool/esptool" -vv -cd nodemcu -cb 115200 -cp "/dev/cu.usbserial-a100vng2" -cf .pioenvs/huzzah/firmware.bin
esptool v0.4.9 - (c) 2014 Ch. Klippel <[email protected]>
setting board to nodemcu
setting baudrate from 115200 to 115200
setting port from /dev/tty.usbserial to /dev/cu.usbserial-a100vng2
espcomm_upload_file
espcomm_upload_mem
opening port /dev/cu.usbserial-a100vng2 at 115200
error: cannot access /dev/cu.usbserial-a100vng2
error: espcomm_open failed
error: espcomm_upload_mem failed
scons: *** [upload] Error 255
========================= [ ERROR ] Took 6.05 seconds =========================
09:00:48 ERROR | it took 6.35s
any ideas on error: cannot access
I can run serial monitor just fine, and arduino ide uploads just fine.
should i try esptool from cmd line and see what it does.
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.