1. Summary
Commands don't run for me after first time, I get stack trace in console.
2. Settings
My .onsave file:
LISTENER:
- CMD : subl --command select_all
If I change select_all to any other Sublime Text command → I get same behavior.
3. Steps to reproduce
I reproduce the problem in a version of Sublime Text without plugins and user settings.
I install On Save → I create .onsave file in root directory of my project → I restart Sublime Text → I open any file in my project → I run save Sublime Text command (Ctrl+S in Windows).
4. Expected behavior
Successful run select_all command any number of times in session if I save file.
If I run subl --command select_all in terminal, I don't have errors.
5. Actual behavior
Text of my file select, I get stack trace:
key evt: control+s
command: save
command: select_all
Exception in thread Thread-9:
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 "exec in D:\Sublime Text Build 3126 x64 For Debug\Packages\Default.sublime-package", line 143, in read_stdout
File "program.cmd_queue in D:\Sublime Text Build 3126 x64 For Debug\Data\Installed Packages\On Save.sublime-package", line 88, in on_finished
TypeError: %d format: a number is required, not NoneType
Second time, when I save my file, text not select.
6. Environment
Operating system and version:
Windows 10 Enterprise LTSB 64-bit EN
Sublime Text:
Build 3126
Package:
I use the latest version of this package for Sublime Text 3
Thanks.
1. Summary
Commands don't run for me after first time, I get stack trace in console.
2. Settings
My
.onsavefile:If I change
select_allto any other Sublime Text command → I get same behavior.3. Steps to reproduce
I reproduce the problem in a version of Sublime Text without plugins and user settings.
I install On Save → I create
.onsavefile in root directory of my project → I restart Sublime Text → I open any file in my project → I runsaveSublime Text command (Ctrl+S in Windows).4. Expected behavior
Successful run
select_allcommand any number of times in session if I save file.If I run
subl --command select_allin terminal, I don't have errors.5. Actual behavior
Text of my file select, I get stack trace:
Second time, when I save my file, text not select.
6. Environment
Operating system and version:
Windows 10 Enterprise LTSB 64-bit EN
Sublime Text:
Build 3126
Package:
I use the latest version of this package for Sublime Text 3
Thanks.