twibiral / obsidian-execute-code

Obsidian Plugin to execute code in a note.
MIT License
1.06k stars 67 forks source link

Problems with functioning for Dart. #277

Open ArthurValada opened 1 year ago

ArthurValada commented 1 year ago

First of all, I would like to start by thanking the contributors for their work, this extension is very useful.

Depending on your availability, I would like to point out that, at least in my virtual environment, I could not implement Dart functionality. I'm using a Linux based Ubuntu, Zorin 16 Core. According to the guidelines, I made the following command in the terminal: "which dart", the following path was returned: /usr/bin/dart. When I set this path to the extension and then run the code, I get the following error: "/bin/sh: line 1: /usr/bin/dart: No such file or directory". However, when I try to open this file in the terminal it works as it should.

I already uninstalled and installed dart. I'm in version: Dart SDK version: 3.0.6 (stable) (None) on "linux_x64"

If I'm doing something wrong, please let me know, and I'm sorry for opening a question about something frivolous.

KunMengcode commented 1 month ago

You should use the full path of dart: For example:E:/SDK/Dart_Stable_3.4.1/bin/dart.exe @ArthurValada