Re: [anjuta-list] GNOME JavaScript project configuration



Hello Sébastien,

thanks for your response. You are right. The line:

    #!/usr/bin/gjs

was missing in the main.js file. Now it works.



Regards

Sebastian

Am So, 10. Mai, 2015 um 10:29 schrieb Sébastien Granjoux <seb sfo free fr>:
Hi, Le 10/05/2015 00:36, Sebastian Schlatow a écrit :
I created a _javascript_ project in Anjuta and tried a GNOME _javascript_ in Anjuta. I can not run the project, I get error like: const: command not found What could be the problem for this?
Anjuta isn't doing anything special to run a _javascript_ program. Looking at the generic _javascript_ example, the main file main.js start with: #!/usr/bin/gjs It means that it is run by calling gjs with the script name as argument. It will fail if gjs is not installed. What do you have in your program? Can you run your script outside Anjuta in a terminal by just typing its name? Regards, Sébastien


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]