EmEditor (Text Editor) » All Posts https://www.emeditor.com/forums/feed/ Mon, 19 Aug 2024 10:33:57 +0000 https://bbpress.org/?v=2.6.11 en-US https://www.emeditor.com/forums/topic/native-linux-support/#post-29899 <![CDATA[Reply To: Native Linux support]]> https://www.emeditor.com/forums/topic/native-linux-support/#post-29899 Tue, 06 Aug 2024 02:43:41 +0000 Eric Pement Can anyone tell me the current status of EmEditor and CrossOver?

The last compatibility test that EmEditor had with CrossOver Linux was in March 2022, about 2 and a half years ago.
https://www.codeweavers.com/compatibility/crossover/emeditor

What has been the results with different types of Windows bottles? Please recommend or advise.

]]>
https://www.emeditor.com/forums/topic/v8-engine-is-there-a-way-to-reduce-the-code-execution-delay/#post-29898 <![CDATA[V8 Engine: Is there a way to reduce the code execution delay?]]> https://www.emeditor.com/forums/topic/v8-engine-is-there-a-way-to-reduce-the-code-execution-delay/#post-29898 Sun, 04 Aug 2024 17:35:59 +0000 Patrick C Yutaka outlined that the V8 engine can be slower than JScript.
EmEditor Blog January 25, 2023
EmEditor Blog December 6, 2022

My testing showed that this is due to a delay until the V8 engine starts executing code.
The V8 engine is fast once it runs, in some cases extremely fast when compared to JScript.

Delay between call (execute macro) and the actual execution:
JScript ≈ 2ms
V8 ≈ 680ms

Execution time (calculated pi over 2’000’000 iterations):
JScript ≈ 1460ms
V8 ≈ 35ms

Curiosity Question:
What causes this delay?
V8 “JIT compiling” the code?
→ As outlined in
https://cabulous.medium.com/how-v8-javascript-engine-works-5393832d80a7

The reason for asking, is that the delay makes the V8 engine unsuited when a fast reaction is required.

PS If someone really wants to see the code … 😳

]]>
https://www.emeditor.com/forums/topic/v8-engine-error-v8-nesting-issues-occurred/#post-29897 <![CDATA[V8 Engine Error: “V8 nesting issues occurred”]]> https://www.emeditor.com/forums/topic/v8-engine-error-v8-nesting-issues-occurred/#post-29897 Sun, 04 Aug 2024 14:46:41 +0000 Patrick C 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.

]]>
https://www.emeditor.com/forums/topic/modifier-key-ctrl-alt-shift-is-was-pressed/#post-29896 <![CDATA[Reply To: Modifier key (ctrl alt shift) is / was pressed?]]> https://www.emeditor.com/forums/topic/modifier-key-ctrl-alt-shift-is-was-pressed/#post-29896 Sat, 03 Aug 2024 17:27:56 +0000 Patrick C I just realised that this also allows querying the Num, Caps and Scroll lock states 🙂🙃😃

let iScrollState = 0;

iScrollState = shell.GetKeyState(0x91);

if(iScrollState === 1) {
    alert("Scroll Lock is enabled");
} else if(iScrollState === 0 ) {
    alert("Scroll Lock is disabled");
} else if(iScrollState === -127) {
    alert("Scroll Lock is enabled and its key is down, i.e. pressed");
} else if(iScrollState === -128) {
    alert("Scroll Lock is disabled and its key is down, i.e. pressed");
} else {
    alert("Unexpected Scroll Lock state:" + iScrollState);
}

🙏 🙇

]]>
https://www.emeditor.com/forums/topic/native-linux-support/#post-29882 <![CDATA[Reply To: Native Linux support]]> https://www.emeditor.com/forums/topic/native-linux-support/#post-29882 Sun, 07 Jul 2024 16:58:57 +0000 bluez I use Wine on debian12, emeditor 23 works, but not 24. MSi works

]]>
https://www.emeditor.com/forums/topic/utf32/#post-29880 <![CDATA[Reply To: UTF32]]> https://www.emeditor.com/forums/topic/utf32/#post-29880 Wed, 03 Jul 2024 12:08:03 +0000 Skeeve In an ideal world I also could directly open, edit and save the utf32 file, without converting it back and forth but I think this would require native 32 bit text support which I guess is currently not available. Can anyone confirm this?

Thanks!

]]>
https://www.emeditor.com/forums/topic/utf32/#post-29879 <![CDATA[Reply To: UTF32]]> https://www.emeditor.com/forums/topic/utf32/#post-29879 Wed, 03 Jul 2024 11:51:39 +0000 Skeeve Hi Patrick,

Thanks for your help. Sure, this possibility gladly always exists, a simple script could solve it too. It would just be easier, if EmEditor could already save it in the proper required format. Or is there a plugin available for that? Otherwise I’ll go down one of the roads, discussed before.

Thanks!

]]>
https://www.emeditor.com/forums/topic/utf32/#post-29878 <![CDATA[Reply To: UTF32]]> https://www.emeditor.com/forums/topic/utf32/#post-29878 Wed, 03 Jul 2024 11:32:06 +0000 Patrick C I once had a similar problem and resorted to PowerShell:
Get-Content .\my_UTF8_file.txt | Set-Content -Encoding utf32 my_UTF32_file.txt
or
Get-Content .\my_UTF16_file.txt | Set-Content -Encoding utf32 my_UTF32_file.txt

Kudos to https://superuser.com/questions/1163753/converting-text-file-to-utf-8-on-windows-command-prompt
+ reference https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-content?view=powershell-7.4#-encoding

]]>
https://www.emeditor.com/forums/topic/utf32/#post-29877 <![CDATA[UTF32]]> https://www.emeditor.com/forums/topic/utf32/#post-29877 Wed, 03 Jul 2024 10:24:16 +0000 Skeeve Hi guys,

I’m currently porting a project to the Nintendo Switch console. This project contains a lot of config files in UTF16 format. However, wchar_t on Switch is defined as 32 bit and there is no easy way to change this.

So my question is: Can I save / convert / export UTF-16 files to UTF-32 with EmEditor? I couldn’t find the format in the encoding list, so all help is much appreciated.

Thanks!
Kind regards
Marcus

]]>
https://www.emeditor.com/forums/topic/want-to-indent-block-by-one-column/#post-29871 <![CDATA[Reply To: want to indent block by one column]]> https://www.emeditor.com/forums/topic/want-to-indent-block-by-one-column/#post-29871 Sat, 22 Jun 2024 11:22:28 +0000 gning If there’s an issue that causes document.Config to not return the same object when referenced twice, or something like that, I do think it should be explicitly documented, with warnings on various settable config properties.

(My macro does fully work now.)

]]>