Coder Social home page Coder Social logo

gepd / deviot Goto Github PK

View Code? Open in Web Editor NEW
305.0 12.0 57.0 6.59 MB

Sublime Text plugin for IoT development based in PlatformIO ecosystem (Arduino IDE)

License: Apache License 2.0

Python 99.95% C++ 0.05%
platformio deviot ota python esp8266 arduino-ide esp32 arduino

deviot's People

Contributors

alexandrefernandesjs avatar alnoa avatar avivace avatar berendkleinhaneveld avatar ckblau avatar davide-dv avatar flashmeow avatar gepd avatar goolic avatar gro00 avatar ivankravets avatar jacek-c avatar jwhendy avatar m4rcu5 avatar r4ddd avatar thinkyhead avatar trakjohnson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deviot's Issues

unable to use /dev/TTYUSB0 on linux

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!

ATtiny85 support

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?

Need more syntax highlighting of other data types

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.

syntax-highlighting

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.

1.2.0 libraries not refreshing

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?

Error mal indicado

Un simple error como poner un float con coma (,) y no (.) punto decimal genera esto

image
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 `

Can't select serial port

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

Can't compile esp8266 example code.

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

Not detecting platformio

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?

Plugin start penv/bin/python not found inside package folder (and errors afterwards)

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'

feature platformio command line

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 )

new board defined but don't show in meniu

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?

Cant Upload to Teensy 3.1 3.2

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.

Multiple .pde files

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?

Feature console auto scroll

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

Serial monitor output in console window

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.

No new line in console output

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!

Update to development PlatformIO version

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)

I can't seem to point Deviot to a user defined library location

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?

pde examples

If a lib contains .pde files instead of .ino, they show up in examples menu, but nothing happens when you click them.

question: toolbar ?

Where does the toolbar come from in the screencast in the readme ?
I do not have a toolbar...

updating cores / packages ?

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 ?

Error Installing PlatformIO

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

Error Creating the virtualenv

During installation, an error occurs: "Error Creating the virtualenv"
screenshot 2016-03-25 19 54 15
python "python-2.7.11.amd64" + add python.exe to path option

persisting/new issues with mDNSCheck()

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

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.

Upload problem

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 :

  • Deviot V1.2.3
  • Pio V2.11.2

Have you any solution ?

Thanks a lot !

Installation failing somehow

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

Support for MKR1000

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 :)

Deviot fails to create PlatformioCLI class.

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'

How to set board options ?

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 ?

1.2 console syntax coloring?

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.

Autoscroll option for Serial Monitor

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.

Programming attiny via USBtinyISP?

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!

"Change build folder" not visible in IDE

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.

Portable Sublime and Python

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?

"No such file or directory" on lib file including

I can't build any simplest project. Where does it look for library files? I have it in 3 directory:

  • default Arduino "IDE" directories (c:\Program Files (x86)\Arduino\libraries);
  • C:\Users%Username%.platformio\lib;
  • near the .ino file I'm trying to build.

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?

Cannot select enviroment

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!

1.2 cant upload to board, portname case sensitive bug

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.