eclipse-bash-editor icon indicating copy to clipboard operation
eclipse-bash-editor copied to clipboard

Launch configuration should have variables and prompts for parameters

Open cristalp opened this issue 2 years ago • 3 comments

In other launch configurations (Java etc.), it's possible to add variables, like current_date or file_prompt (I can't enter the required dollar sign and curly brackets in this editor). This seems to work for Environment variables, but not for the parameters. This is a pity, because it's a very powerful feature in Eclipse.

I don't know Eclipse from a plugin developers perspective, but if this is easy to integrate, it would be a great feature!

Thanks for your great plugin, I really love it!

cristalp avatar Feb 27 '23 10:02 cristalp

You are right: At the environment tab you are able to add "variables" and it seems to work... But at runtime the variables are currently not evaluated.

To understand it correctly:

  • you would like to have the possibilty to add something like "$(current_date)" as a parameter (like in next picture)
  • you would like to have those parameters replaced at runtime
  • out-of-scope: code completion while entering parameters

image

When I start currently the launch configuration following is shown: image

In my example you want to have the 4th parameter to be the current date?

de-jcup avatar Mar 27 '23 07:03 de-jcup

I also have tried to use Eclipse Variables today and it didn't work. It is not being interpolated once the debug is started. In my case I just used the project_loc one in order to get the project's root directory: ${project_loc:/my-project} so I can use it inside the script.

Btw. this is a very nice plugin and it's debug support saved my life today :)

cvgaviao avatar Apr 18 '23 12:04 cvgaviao

Sorry for not answering, it looks like the GitHub mail got caught in the spam folder...

Yes, you unterstand the first two bullet points correctly. Since I don't know whether this is a standard functionality of Eclipse or just part of the Java launch configuration framework, I don't know whether you have to implement all of these features yourself.

But nonetheless, it would be very cool to have parameters for file prompts etc. :-)

cristalp avatar Apr 18 '23 14:04 cristalp