How can I run groovy script as EASE script? - eclipse

I am trying to run Groovy script file as "EASE Script" but nothing happens.
I know that the Eclipse Advanced Scripting Environment is originally written to use javascript. But javascript engine does't support multiline strings. So I need use groovy engine.
Is there some way to run *.groovy file as "EASE Script"?

Related

Is there a way to run a PowerShell script through a JetBrains IDE?

I am currently using RubyMine which is an IDE developed for the Ruby programming language. Although, strangely enough, I find myself executing a lot of PowerShell scripts - something that seems to fall outside the scope of this product.
With some tinkering, I managed to associate .ps1 files with PowerShell, as well as having the correct syntax highlighting, but I am short one piece of functionality. I would like to run my PowerShell scripts the same way I run my Ruby scripts; through the Run menu.
My question is essentially: Is there a way to have RubyMine run my PowerShell script in a new shell, without me having to manually copy/paste the code?

Eclipse LDT doesn't run local Lua interpreter

I have problem with Eclipse LDT. When I run my test Lua app, it executes just fine using JNLua inside JavaVM environment. But according to this tutorial, when I reference native lua.exe interpreter and set it in Run Configuration as Runtime Interpreter, Run Configuration disables Launch script: and nothing is executed. When I run a same script with a same native local Lua interpreter 5.1, everything works just fine.
So, what is the problem with LDT? Has anyone had the same experience?
EDIT
I've managed to run local lua.exe from Lua Development Tools stand-alone product, but still it doesn't work as Eclipse plug-in.
I'm not sure it's a bug.
I guess when you register your interpreter, you uncheck the checkbox : "Accept file as argument"
This mean LDT will not manage the file to launch (that's why the Launch script is disabled)
The standard lua interpreter support file as argument and -e option, so the two check box should be checked. (It's the default value)
It looks like a bug ... Would you mind filing it in the Koneki bug tracker?

How run JavaScript form eclipse in command line

Simple question:
I have one javaScript File , and eclipse.
Is it possible to run that script file using eclipse through command line.
If yes:
what i have to do .
If no:
Is there is any possibility to do this. any input will appreciated.
Thanks.
Eclipse's JSDT has a built-in rhino interpreter (new in Eclipse Juno). I have never used it myself, but it is possible to use it for interpreting your JS scripts. More information here.
Now if your JS script interacts with the DOM or the window, then rhino will not help you, but for pure, headless JS this will work.
if you are using eclipse juno(e4) , command /handler support calling JavaScript.
phantomjs is an webkit based headless web browser that could be invoked from command line. From this tutorial you could learn how to integrate eclipse and phantomjs to execute javscript files.

Notepad++ using "Run" command in a macro

Is it possible to create a macro in Notepad++ that is able to utilize the "Run" command so that I may call an external .exe to operate on the file specified? I am able to do it manually, but when I create a macro that includes the run (F5) and give it a specified command it fails to execute. Is this because the run command isn't supported when creating macros? If so, is there a work-around method?
Thanks
edit: to add context -- I've written a couple ruby scripts to facilitate data-entry that's done using notepad++, and would like to integrate them to the editor. Having them run by a shortcut method created by recording a macro seems to be the best way to do this, unless it's not possible to utilize the run command.
FWIW The Zeus and Zeus Lite editors can do this.
You can do it with the NppExec plugin (available in the Notepad++ wiki ). It allows you to create mini-scripts with keywords that perform commands.
You will also be able to add your script in the contextual (right-click) menu, or assign a shortcut to it.
I personaly uses it to saves a sql file, place myself in the current directory, and then executes isql.exe (external executable) on that file. That simple script transforms my Notepad++ into a rather handy SQL IDE.
I don't think you do it using only Notepad++.
Please see this thread:
http://sourceforge.net/projects/notepad-plus/forums/forum/331754/topic/4805532
If I understood you correctly, you have it all set up but are having issues with running it through Notepad++'s run command?
If so, try what I mentioned here.
I had similar issues with running php compiler and resolved it with the "cmd /c" added like in that mentioned example. And a "& pause" at the end, just so I see what goes on.

How to debug a tcl script which is argument to an executable?

I have a application which takes tcl script as argument. I want to debug tcl script when the application processes it.
My development environment consists of Dynamic Languages Toolkit along with Active state remote debugger -dbgp_tcldebug. I am able to debug the individual tcl scripts with this setup.
I created a tcl project in eclipse and added 'startup.tcl' and 'argumentScript.tcl' scripts and added following command to the startup script,
set ExecutableName "xyz.exe"
set returnValue [catch {eval exec $ExecutableName "argumentScript.tcl" } result]
My debugger works fine with 'startup.tcl' script. I added the breakpoint in 'argumentScript.tcl' but it is not working. How can I debug the "argumentScript.tcl" script ?
Edit: A solution without using eclipse environment is Tcl Dev Kit with remote debugging feature.
you could use tcls introspective abilities to have the script debug itself e.g. using trace
puts f "debug message" is our all!
Just dump all that you need in log file. Simple, Stupid and Robust :)