Comments (11)
fixed crash. please try again.
from cuda_exterminal.
new error
Python 3.8.10
Startup: 180ms, plugins: 0ms ()
Init: cuda_example_terminal
Init: cudatext
Traceback (most recent call last):
File "/home/user/cuda/cuda/app/py/cudatext.py", line 1232, in _dlg_proc_callback_proxy
return _live[info](id_dlg, id_ctl, data=data)
File "/home/user/cuda/cuda/app/py/cuda_example_terminal/terminal.py", line 247, in form_key_down
if is_toggle_focus_hotkey(key, data):
File "/home/user/cuda/cuda/app/py/cuda_example_terminal/terminal.py", line 479, in is_toggle_focus_hotkey
for hotkey in get_hotkeys('toggle_focus'):
TypeError: 'NoneType' object is not iterable
ERROR: Exception in CudaText for cudatext._dlg_proc_callback_proxy: TypeError: 'NoneType' object is not iterable
Traceback (most recent call last):
File "/home/user/cuda/cuda/app/py/cudatext.py", line 1232, in _dlg_proc_callback_proxy
return _live[info](id_dlg, id_ctl, data=data)
File "/home/user/cuda/cuda/app/py/cuda_example_terminal/terminal.py", line 247, in form_key_down
if is_toggle_focus_hotkey(key, data):
File "/home/user/cuda/cuda/app/py/cuda_example_terminal/terminal.py", line 479, in is_toggle_focus_hotkey
for hotkey in get_hotkeys('toggle_focus'):
TypeError: 'NoneType' object is not iterable
ERROR: Exception in CudaText for cudatext._dlg_proc_callback_proxy: TypeError: 'NoneType' object is not iterable
Traceback (most recent call last):
File "/home/user/cuda/cuda/app/py/cudatext.py", line 1232, in _dlg_proc_callback_proxy
return _live[info](id_dlg, id_ctl, data=data)
File "/home/user/cuda/cuda/app/py/cuda_example_terminal/terminal.py", line 247, in form_key_down
if is_toggle_focus_hotkey(key, data):
File "/home/user/cuda/cuda/app/py/cuda_example_terminal/terminal.py", line 479, in is_toggle_focus_hotkey
for hotkey in get_hotkeys('toggle_focus'):
TypeError: 'NoneType' object is not iterable
ERROR: Exception in CudaText for cudatext._dlg_proc_callback_proxy: TypeError: 'NoneType' object is not iterable
from cuda_exterminal.
they only reason i need this code is for checking if I press hotkey for "toggle focus terminal/editor" command.
because for some reason hotkeys are not working in bottom dock panel. except for Console/Output/Validate panels.
What should I do to make hotkeys work in bottom panel for plugins?
from cuda_exterminal.
when bottom-panel is docked, hotkeys are going to main form (Cud) , not to your form, so i guess you won't get on_key events.
from cuda_exterminal.
maybe change for hotkey in get_hotkeys('toggle_focus'):
to
for hotkey in (get_hotkeys('toggle_focus') or []):
from cuda_exterminal.
when bottom-panel is docked, hotkeys are going to main form (Cud) , not to your form, so i guess you won't get on_key events
no. the problem is opposite. on_key events work normally (without them terminal cannot work).
when I return not False from on_key events I expect they go to Cud. but that not happens.
from cuda_exterminal.
maybe it's failing for you because your folder is still "cuda_example_terminal".
there is a check in get_hotkeys: cmd['p_module']=='cuda_exterminal'
(it is using PROC_GET_COMMANDS api.)
from cuda_exterminal.
get latest fix and try again, please.
from cuda_exterminal.
I would remove all this PROC_GET_COMMANDS code if I will find the way to pass hotkeys to main Cud form from docked panel.
from cuda_exterminal.
Yes it was old folder name
Fixed
from cuda_exterminal.
IDK how to improve hotkeys yet
from cuda_exterminal.
Related Issues (20)
- Maybe add option max_log_lines=3000 to speed up colored painting? HOT 1
- macOS testing HOT 3
- cannot copy contents of the memo HOT 6
- Windows/Linux discrepancies HOT 28
- Lexer: PAX_Pascal HOT 5
- I got a email with patches to translate the plugin HOT 1
- How to change the background and hide the dots? HOT 7
- How to increase font size? HOT 3
- Background of the icon HOT 17
- context menu item 'Close terminal' HOT 2
- Clean the entire terminal HOT 7
- Patches to better support i18n HOT 1
- terminal shows 'margin' line like main editor HOT 2
- Strange behavior HOT 3
- option for floating terminal HOT 2
- Constant 5% CPU usage under Windows HOT 1
- Command history? HOT 12
- better config() method HOT 1
- [Not An Issue][Advice Needed] PseudoConsole Escape Codes HOT 4
- TODO: shift-tab doesn't work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cuda_exterminal.