Skip to content

Commit 752e56e

Browse files
committed
Merge branch 'release/v2.2.0'
2 parents 8a08b5a + 7fb9cce commit 752e56e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2631
-1111
lines changed

.github/ISSUE_TEMPLATE.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
Before report an issue, please make sure it hasn't been reported before.
22

3+
If you need information about an option or feature make sure to first look into the [Deviot Wiki](https://github.com/gepd/Deviot/wiki)
4+
35
### Operating system
46

57
### Board used

CHANGES.md

+55
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,60 @@
11
# Deviot Release Notes
22

3+
## Version 2.2.0 | 17 Feb 2018
4+
5+
#### New
6+
* New color status when the serial monitor is running
7+
* New file windows (Terminal, Monitor) will be opened in a new group at the right side
8+
9+
10+
#### Improvements
11+
* Updated pyserial to 3.4
12+
* Added ".h" extension to the list of IOT files (issue: https://github.com/gepd/Deviot/issues/202)
13+
* Updated "Serial Port(s)" string to "Device(s)"
14+
* Added `< Previous` option in the list of examples (Issue: https://github.com/gepd/Deviot/issues/205)
15+
* Open and show a message the first time the console is call (Issues: https://github.com/gepd/Deviot/issues/184 https://github.com/gepd/Deviot/issues/209)
16+
* Automatically load the programmer preference from platformio.ini (Issue: https://github.com/gepd/Deviot/issues/208)
17+
* Restored feature to show errors inline
18+
* Performance improvements
19+
20+
#### Bugs
21+
* Fixed bug fix not showing verbose mode in the upload output
22+
* Fixed bug selecting the serial baud rate when there is an option in the preferences file not stored in the list of baud rates. (Issue: https://github.com/gepd/Deviot/issues/190)
23+
* Minor bug checking the "freeze sketch" option
24+
* Fixed bug installing pio developer version (issue: https://github.com/gepd/Deviot/issues/201)
25+
* Fix to avoid add wrong paths in the ENV variable (Issue: https://github.com/gepd/Deviot/issues/204)
26+
* Fix issue reconnecting the serial monitor even if the upload failed (issue: https://github.com/gepd/Deviot/issues/171)
27+
* Avoid to ask for a port when the upload protocol is set (issue: https://github.com/gepd/Deviot/issues/208)
28+
* Fixed auto-scroll options not working in realtime
29+
* Fixed auto-clean option
30+
31+
## Version 2.1.6 | 11 Sep 2017
32+
33+
#### New
34+
* New option 'platformio.ini untouch'. To remove any flag added by Deviot before compile or upload (Issue: https://github.com/gepd/Deviot/issues/137)
35+
* New feature to "freeze" a sketch (Issue: https://github.com/gepd/Deviot/issues/170)
36+
* New option to update an installed library (Issue: https://github.com/gepd/Deviot/issues/172)
37+
* Deviot spricht Deutsch! https://github.com/gepd/Deviot/issues/178
38+
39+
#### Improvements
40+
* Create a python.txt file in Packages/User/Deviot with the python paths for cases when python is installed in non standard path (Issue: https://github.com/gepd/Deviot/issues/159)
41+
* Avoid to close the window buffer when the sketch is moved to the `src` folder
42+
* Show the port previously selected in the list of serial ports
43+
* Show the upload baudrate previously selected in the quick list
44+
* Minor tweaks in the console highlight
45+
* Show an `*` insted of `-` in the boards already selected, in the list of boards
46+
* Update the main menu after an update
47+
* Show baudrate, line endings and display mode serial monitor options in a Quick Panel.
48+
* Make PlatformIO telemetry disabled by default
49+
50+
51+
#### Bugs
52+
* Deviot console always scroll (Issue: https://github.com/gepd/Deviot/issues/156)
53+
* Bug fix to select examples in any directory level (Issue: https://github.com/gepd/Deviot/issues/82)
54+
* Bug fix adding the `upload_speed` flag (issue: https://github.com/gepd/Deviot/issues/183)
55+
* Bug fixes in readconfig library
56+
* other minor improvements
57+
358
## Version 2.1.5 | 11 Sept 2017
459

560
#### Improvements

Console.tmLanguage

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
</dict>
3434
<dict>
3535
<key>match</key>
36-
<string>src |lib |platformio.ini |Compiling|Archiving|Updating|Uninstalling|Indexing|Downloading\.{3}|Unpacking\.{3}|Converting|Linking|Building|Calculating size|Collected|Processing|LibraryManager:|Library Storage:|\`[a-zA-Z\s\-\%\_\,\.]*\`*</string>
36+
<string>src |lib |platformio.ini |Generating partitions|Compiling|Archiving|Updating|Uninstalling|Indexing|Downloading\.{3}|Unpacking\.{3}|Converting|Linking|Building|Calculating size|Collected|Processing|LibraryManager:|Library Storage:|\`[a-zA-Z\s\-\%\_\,\.]*\`*</string>
3737
<key>name</key>
3838
<string>entity.name.function</string>
3939
</dict>
4040
<dict>
4141
<key>match</key>
42-
<string>(platform:|board:|framework:|build_flags:|upload_port:) (\S+)</string>
42+
<string>(\S+:) (\S+)</string>
4343
<key>captures</key>
4444
<dict>
4545
<key>1</key>
@@ -109,7 +109,7 @@
109109
</dict>
110110
<dict>
111111
<key>match</key>
112-
<string>text |data |bss |dec |hex |filename </string>
112+
<string>text |data |bss |dec |hex |filename</string>
113113
<key>name</key>
114114
<string>entity.name.tag.xml</string>
115115
</dict>

Deviot.py

+38-8
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,20 @@
1212
from sublime_plugin import EventListener
1313

1414
from .commands import *
15-
from .platformio.update import Update
16-
from .beginning.pio_install import PioInstall
17-
from .libraries.tools import get_setting, save_setting
18-
from .libraries.syntax import Syntax
19-
from .libraries.paths import getMainMenuPath, getPackagesPath
20-
from .libraries.paths import getDeviotUserPath, getPluginName
21-
from .libraries.preferences_bridge import PreferencesBridge
22-
from .libraries.project_check import ProjectCheck
15+
16+
try:
17+
from .libraries.paths import getPluginName
18+
from .platformio.update import Update
19+
from .libraries.syntax import Syntax
20+
from .beginning.pio_install import PioInstall
21+
from .libraries.tools import get_setting, save_setting
22+
from .libraries.paths import getMainMenuPath, getPackagesPath
23+
from .libraries.paths import getDeviotUserPath, status_color_folder
24+
from .libraries.preferences_bridge import PreferencesBridge
25+
from .libraries.project_check import ProjectCheck
26+
from .libraries import messages, status_color
27+
except:
28+
pass
2329

2430
package_name = getPluginName()
2531

@@ -49,6 +55,7 @@ def plugin_loaded():
4955
# alert when deviot was updated
5056
if(events.post_upgrade(package_name)):
5157
from .libraries.I18n import I18n
58+
save_setting('compile_lang', True)
5259
message = I18n().translate("reset_after_upgrade")
5360
message_dialog(message)
5461

@@ -67,18 +74,41 @@ def plugin_unloaded():
6774
if(path.isdir(user)):
6875
rmtree(user)
6976

77+
# plugin_unload is not working so if the status bar color
78+
# folder is present when ST starts, it will remove it.
79+
try:
80+
rmtree(status_color_folder())
81+
except:
82+
pass
83+
7084
class DeviotListener(EventListener):
7185
def on_activated(self, view):
7286
PreferencesBridge().set_status_information()
87+
88+
def on_pre_close(self, view):
89+
# run on_pre_close to get the window instance
90+
try:
91+
name = view.name()
92+
messages.session[name].on_pre_close(view)
93+
except:
94+
pass
7395

7496
def on_close(self, view):
97+
# close empty panel
98+
try:
99+
name = view.name()
100+
messages.session[name].on_close(view)
101+
except:
102+
pass
103+
75104
# remove open used serials ports
76105
from .libraries import serial
77106

78107
window_name = view.name()
79108
search_id = window_name.split(" | ")
80109

81110
if(len(search_id) > 1 and search_id[1] in serial.serials_in_use):
111+
status_color.set('error', 3000)
82112
port_id = search_id[1]
83113
serial_monitor = serial.serial_monitor_dict.get(port_id, None)
84114
serial_monitor.stop()

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
<p align="center" style="font-size: 9pt">Sublime theme used: <a href="https://github.com/ihodev/sublime-boxy">Boxy</p>
1717
</p>
1818

19-
**Deviot** is a plugin inspired in [stino](https://github.com/Robot-Will/Stino), it's compatible with Sublime Text 3 and uses the [PlatformIO](http://platformio.org/) ecosystem, which supports more than **400** boards.
19+
**Deviot** is a plugin inspired in [stino](https://github.com/Robot-Will/Stino), it's compatible with Sublime Text 3 and uses the [PlatformIO](http://platformio.org/) ecosystem, which supports more than **450** boards.
2020

2121

2222
# Features
23-
- **400+ Embedded Boards**, thanks to *[PlatformIO](http://platformio.org/)*, Deviot can handle a lot of boards!
23+
- **450+ Embedded Boards**, thanks to *[PlatformIO](http://platformio.org/)*, Deviot can handle a lot of boards!
2424
- **Library Manager**, find, install and remove any Library
2525
- **OTA Upload** Sends your firmware Over The Air to any ***espressif*** board
2626
- **PlatformIO Terminal**, if you love the CLI and know *[PlatformIO CLI](http://docs.platformio.org/en/latest/core.html)*, this is for you.
@@ -41,6 +41,7 @@ Deviot is available in:
4141
* **Spanish**
4242
* **Portuguese**
4343
* **Chinese**
44+
* **German**
4445
* **French** (Incomplete)
4546
* **Italian** (Incomplete)
4647
* **Polish** (Incomplete)
@@ -61,6 +62,7 @@ You should let the `msgid` as is, and paste your translated string in `msgstr`.
6162
* **Italian Translation** @davide-dv, @avivace
6263
* **Polish Translation** @jacek-c
6364
* **Portuguese Translation** @alexandrefernandesjs
65+
* **German Translation** @CSchoch
6466
* **Code Contributor:** @goolic, @thinkyhead
6567

6668

@@ -71,7 +73,7 @@ Support the open source!. If you liked this plugin, and you want to make a contr
7173

7274
## License
7375

74-
Copyright 2015-2017 GEPD <[email protected]>
76+
Copyright 2015-2018 GEPD <[email protected]>
7577

7678
Deviot is licensed with the permissive Apache 2.0 licence. It means that you can use it personal or commercially, free of charge.
7779

0 commit comments

Comments
 (0)