Skip to content

Commit 494fed8

Browse files
committed
If you're more error messages
1 parent 7aae01f commit 494fed8

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## [0.1.2]
4+
5+
### Added
6+
7+
- Utility to automatically upgrade scripts in the preferences menu
8+
9+
### Fixed
10+
11+
- Fixed the massive subl blunder
12+
313

414
## [0.1.1]
515

python_voice_coding_plugin.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,29 @@
1111
from PythonVoiceCodingPlugin.interface.interface import Interface
1212

1313

14-
PLUGIN_VERSION = (0,1,1)
14+
PLUGIN_VERSION = (0,1,2)
1515

1616
settings = {}
1717
already_message = False
1818

1919
def plugin_loaded():
2020
global settings
2121
settings = sublime.load_settings("python_voice_coding_plugin.sublime-settings")
22+
try :
23+
from package_control import events
24+
if events.post_upgrade("PythonVoiceCodingPlugin"):
25+
sublime.error_message(
26+
"""
27+
CRITICAL UPDATE PythonVoiceCodingPlugin
28+
Up to release 0.1.1 a subtle yet critical installation step regarding communication between sublime and Caster was not documented, which may have prevented you from using the plug-in altogether!
29+
30+
You can find more information at https://github.com/mpourmpoulis/PythonVoiceCodingPlugin/issues/15 but simply upgrading your Caster grammar should be enough!
31+
For Caster 1.x.x users Preferences > Package Settings > PythonVoiceCodingPlugin >Quick 1.0.0 Install may make these process faster!
32+
33+
My sincerest apologies!
34+
""")
35+
except :
36+
pass
2237

2338

2439

quick_install_python_voice_coding_plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def run(self):
1818
if os.path.isdir(os.path.join("C:\\Users",user,x)):
1919
candidates.append(os.path.join("C:\\Users",user,x))
2020
if not candidates:
21-
return
21+
sublime.error_message("No Caster 1.x.x user directory was found! Are you sure you have it installedand you are not using an older version?")
2222
def on_done(index):
2323
if index==-1:
2424
return
@@ -32,7 +32,7 @@ def on_done(index):
3232
s = f.read()
3333
with open(os.path.join(c,name),"w") as f:
3434
f.write(s)
35-
35+
sublime.error_message("Grammar successfully copied!")
3636
self.window.show_quick_panel(candidates,on_done)
3737

3838

0 commit comments

Comments
 (0)