Closed nfiles closed 4 months ago
Note: this worked locally (on a 2019 Intel Mac Pro), but I haven't tested on Windows or Windows+WSL.
Currently I'm using a MacBook Air 13. I want to specifically thank you. javascript works fine but dart didn't work. So I Googled it, but it didn't solve the problem. It worked out this way. Thank you for the specific method. I hope the administrator will update you officially soon.
I tested this on my windows 10/WSL machine and can confirm that it works for
echo "Hello"
)console.log('Heyo')
)Thanks for the detective work! Doing the updates to 1.11.x I faced some issues with too many different merges and changes. Thank you for answering all the issues and finding the problem
Published in release version 1.12.0
Description:
All code snippets failed to execute on Mac with the error:
Solution:
A previous commit (59414abba95ee3caf5ecedf259016c2bfdd119ee) hard-coded the Windows file separator (
\
) inExecutor.getTempFile
.This change replaces the Windows file separator with the Node built-in
path.join
so thegetTempFile
will automatically use the correct OS file separator.Testing:
npm ci
npm run build
cp main.js <vaultpath>/.obsidian/plugins/execute-code/
Fixes twibiral/obsidian-execute-code#347
Edit: tested successfully on Windows 10 as well