Comments (10)
I've run into this too, and am not sure how to fix it. The only work-around I know about is restarting Dragon.
from aenea.
Likewise.
Have you been able to reproduce this error reliably? I haven't and this makes it hard to fix...
On October 27, 2014 11:00:20 PM EDT, Alex Roper [email protected] wrote:
I've run into this too, and am not sure how to fix it. The only
work-around I know about is restarting Dragon.
Reply to this email directly or view it on GitHub:
#77 (comment)
from aenea.
Afraid not, but I don't reload frequently in regular use, only when developing, wihch I haven't done much of since you changed how reloads work. Before that change it was easy to reproduce, just import a module that's not a grammar.
from aenea.
Are you saying this was already an issue before the reload change I made? I never noticed it before that.
On October 27, 2014 11:17:23 PM EDT, Alex Roper [email protected] wrote:
Afraid not, but I don't reload frequently in regular use, only when
developing, wihch I haven't done much of since you changed how reloads
work. Before that change it was easy to reproduce, just import a module
that's not a grammar.
Reply to this email directly or view it on GitHub:
#77 (comment)
from aenea.
Yeah your change went from never working to sometimes working:-)
from aenea.
Interesting! At least we are making progress!
I figure the ordering of sys.modules might differ from run to run so I've changed the code on my local copy to always sort it before doing anything. We'll see if that makes things more predictable...
from aenea.
Is anyone still encountering this issue? I have not had it happen for some time now so perhaps it was fixed by some other change.
from aenea.
I am encountering this issue. I need to restart DNS each time i update the files :(
from aenea.
from aenea.
I encountered the error as well and made a makeshift fix. I don't think the solution is worth a pull request but I can elaborate on the problem to make it easy to fix later on.
I first encountered the problem when I started to use _multiedit.py. The unload function was causing the problem. Long story short, this grammar deals with the vocabulary grammar to inhibit/uninhibit some vocabularies. It calls on to uninhibit them while unloading. Not sure how that works but the vocabulary grammar is multiedit's wrapper. I don't even know what wrapper means in this case. The problem occurs because the vocabulary grammar is the first to unload. Thus, when multiedit attemps to unload, because the "wrapper" is not loaded, it raises an error. The traceback is at the bottom.
My dumbass solution was to just go to the unloadEverything function in core/natlinkmain.py and hardcode into it that it should unload the grammar named "_vocabulary" the last.
Error calling _multiedit.unload
Traceback (most recent call last):
File "C:\Natlink\Natlink\MacroSystem\core\natlinkmain.py", line 360, in safelyCall
apply(func, [])
File "C:\Natlink\Natlink\MacroSystem\_multiedit.py", line 339, in unload
aenea.vocabulary.uninhibit_global_dynamic_vocabulary('multiedit', MULTIEDIT_TAGS)
File "C:\Natlink\Natlink\MacroSystem\aenea\vocabulary.py", line 293, in uninhibit_global_dynamic_vocabulary
uninhibit_global_dynamic_vocabulary(grammar_name, t)
File "C:\Natlink\Natlink\MacroSystem\aenea\vocabulary.py", line 290, in uninhibit_global_dynamic_vocabulary
_rebuild_lists('dynamic')
File "C:\Natlink\Natlink\MacroSystem\aenea\vocabulary.py", line 162, in _rebuild_lists
_global_list.clear()
File "C:\Python27\lib\site-packages\dragonfly\grammar\list.py", line 272, in clear
self._update(); return result
File "C:\Python27\lib\site-packages\dragonfly\grammar\list.py", line 115, in _update
self._grammar.update_list(self)
File "C:\Python27\lib\site-packages\dragonfly\grammar\grammar_base.py", line 337, in update_list
self._engine.update_list(lst, self)
File "C:\Python27\lib\site-packages\dragonfly\engines\backend_natlink\engine.py", line 282, in update_list
wrapper = self._get_grammar_wrapper(grammar)
File "C:\Python27\lib\site-packages\dragonfly\engines\base\engine.py", line 191, in _get_grammar_wrapper
raise EngineError("Grammar %s never loaded." % grammar)
EngineError: Grammar Grammar(vocabulary) never loaded.
from aenea.
Related Issues (20)
- Is there any way to have a rule to match any single word? HOT 6
- Vim - 'escape' key issue when keys chained HOT 5
- Support for accentuated letters is lacking HOT 3
- Client breaks/Getting timeouts when long `Text()` gets executed HOT 3
- Mysterious text gets typed in this grammar HOT 6
- Text('a"b') causes errors in the osx server HOT 2
- dictation client repeats voice entry in a forever loop begun with Shift_L on OSX 10.13.6 HOT 10
- Wayland server HOT 3
- Required version of dragonfly 0.6.5 does not contain 'semicolon' as typeable HOT 18
- Are their instructions on how to get the setup working on a non virtualbox vm? HOT 9
- disable all grammars (or DNS) for 20 seconds HOT 1
- argument of type 'NoneType' is not iterable HOT 1
- Has anyone tried a newer version of dragon (13, 14, etc) HOT 8
- `Aenea: Successfully connected to server.` printed when not connected to server HOT 5
- Windows server needs security token support HOT 2
- Support for Python 3.x HOT 7
- Error when running `aenea/server/linux_x11/test-client.py` HOT 3
- Manually changing contexts HOT 5
- Error when using default choices HOT 2
- ISSUE DELETED
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 aenea.