Giter VIP home page Giter VIP logo

Comments (10)

calmofthestorm avatar calmofthestorm commented on July 28, 2024

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.

djr7C4 avatar djr7C4 commented on July 28, 2024

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.

calmofthestorm avatar calmofthestorm commented on July 28, 2024

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.

djr7C4 avatar djr7C4 commented on July 28, 2024

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.

calmofthestorm avatar calmofthestorm commented on July 28, 2024

Yeah your change went from never working to sometimes working:-)

from aenea.

djr7C4 avatar djr7C4 commented on July 28, 2024

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.

djr7C4 avatar djr7C4 commented on July 28, 2024

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.

Yorgg avatar Yorgg commented on July 28, 2024

I am encountering this issue. I need to restart DNS each time i update the files :(

from aenea.

djr7C4 avatar djr7C4 commented on July 28, 2024

from aenea.

Haggr avatar Haggr commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.