obsidian-execute-code icon indicating copy to clipboard operation
obsidian-execute-code copied to clipboard

C: Parameter is incorrect

Open ollioddi opened this issue 3 years ago • 5 comments

Hi.

I want to execute C code, and have successfully installed Cling in WSL. I am having issues with the path / actually executing the code.

I get this error: image

This is the actual location of Cling: "\wsl.localhost\Ubuntu\root\cling_2020-11-05_ROOT-ubuntu2004\bin\cling" image

I am unable to figure out what path to use in Obsidian for Cling. I have tried the WSL path and the ROOT path since i have enabled WSL.

How should this be configured? image

ollioddi avatar Nov 25 '22 11:11 ollioddi

Hi! I'm sorry for the late reply.

Could you try the following?

WSL Mode: on Cling path: cling

Seperately, if you open a terminal in WSL, are you able to type in cling -v and see Cling's version information?

chlohal avatar Dec 12 '22 17:12 chlohal

Hey @chlohal ! Thanks for the answer.

It seems that my installation is not properly configured. I am having a difficult time finding info on how to properly install Cling? Its very cryptic to me. It is not available globally, but i can execute it from the path shown in my first post. image

This is what i was trying to figure out, to use this location as path, but no luck.

EDIT: I had added it as an alias following this guide: https://kaustubh13.medium.com/how-to-install-cling-on-linux-or-wsl-8125798ed9b9

Now i am able to call cling anywhere by typing "cling", but i still get the parameter is incorrect.

ollioddi avatar Dec 14 '22 15:12 ollioddi

Interesting, thanks! Could you try using echo for the Cling path?

This will just echo back the configuration parameters. That'll help to know whether it's a WSL issue or a Cling issue.

If you still see "The parameter is incorrect", it will be a WSL problem.

chlohal avatar Dec 14 '22 18:12 chlohal

I have same question like you. Did you solve that?

cowdedroyal avatar Feb 25 '23 02:02 cowdedroyal

No i unfortunately never fixed the issue.

ollioddi avatar Mar 03 '23 20:03 ollioddi