ceu-lang / ceu-maker

5 stars 1 forks source link

Executing pico-Céu code by double click. #9

Closed AnnyCaroline closed 6 years ago

AnnyCaroline commented 6 years ago

Execute a pico-Céu application by drag and dropping the source code to pico-Céu.exe works just fine, but by double clicking after choose pico-Céu.exe as default application don't. image

Because of that, incorporating pico-Céu with VSCode don't work.

AnnyCaroline commented 6 years ago

When executing the source code by drag and dropping, the parameter %1 in make-pico.bat file contains the following string (using across.ceu example):

C:\Users\AnnyC\Desktop\ceu-maker\ceu-maker\examples\pico-ceu\across.ceu;

Executing by Open with, on the other hand, %1 contains

"C:\Users\AnnyC\Desktop\ceu-maker\ceu-maker\examples\pico-ceu\across.ceu";

So, the error was produced because of the quotes. Based on StackOverflow Question the solution was change set CEU_SRC=%1 by set CEU_SRC=%~1 in make-pico.bat file.