Solving 'V8 Nesting Issues' Error with EmEditor Text Editor

Solving 'V8 Nesting Issues' Error with EmEditor Text Editor

Joseph Lv8

Solving ‘V8 Nesting Issues’ Error with EmEditor Text Editor

Viewing 1 post (of 1 total)

  • Author
    Posts
  • August 4, 2024 at 7:46 am #29897
    Patrick C
    Participant
    V8 nesting issues occurred error message
    Exception number
    Caused by a V8 macro executing a second V8 macro synchronously.
    Example code:
#language = "V8"  
#async = "off"  
editor.ExecuteMacro("runner.jsee", eeRunFile | eeMacroSyncOnly);  

executes

#language = "V8"  
#async = "off"  
OutputBar.writeln("Hi there I’m runner!");  

Removing the eeMacroSyncOnly flag does not raise an error but I`ll end up in a race condition. My application requires the first macro to wait until the second macro ends.
What works and doesn’t is:
✔️ JScript executing JScript synchronously
✔️ JScript executing V8 synchronously
✔️ V8 executing JScript synchronously
❌ V8 executing V8 synchronously 😞
Question:
Is there an alternative way to wait for the second script to end (e.g. a semaphore)?
Note that for my particular application #include is not an option.

  • Author
    Posts

Viewing 1 post (of 1 total)

  • You must be logged in to reply to this topic.

Also read:

https://techidaily.com
  • Title: Solving 'V8 Nesting Issues' Error with EmEditor Text Editor
  • Author: Joseph
  • Created at : 2024-10-09 10:36:04
  • Updated at : 2024-10-13 20:32:55
  • Link: https://win-lab.techidaily.com/solving-v8-nesting-issues-error-with-emeditor-text-editor/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
Solving 'V8 Nesting Issues' Error with EmEditor Text Editor