Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » [CDT 9.2] Run/Debug Configurations are HORROR ...
[CDT 9.2] Run/Debug Configurations are HORROR ... [message #1782898] Sun, 04 March 2018 10:18 Go to next message
Didier Garcin is currently offline Didier GarcinFriend
Messages: 56
Registered: April 2013
Where is the fucking manual for arguments specification ???
Else what is the logic ???

Use Case :

Here is submitted to the argument line (Debug configuations -> Arguments -> Program arguments) :

What is expected on Windows :

<project effective path>\intern\

What is actually obtained :

<project effective path>intern

Ok ! anti-slash is the special character. Well, I adapt :


Obtained :
<project effective path>\\\\intern\\\\

My god ...

As a result :
The argument line interpreter acts like this :
- if there is a single anti-slash, then delete it
- if there are two consecutive anti-slashes, then double them.

So, it never returns a single anti-slash.

Don't mind ... trying with single quote enclosure :

<project effective path>'\\intern\\'

Great ... not only anti-slashes are doubled inside single quotes but single quotes are preserved ...

True to its principle: follow no functional logic...

trying with double quote enclosure :

Obtained ... A nightmare :

<project effective path>\\intern\"

The opening double quote is removed but the closing one, the first anti-slash is double but not the second one while it is in the same condition as the first one.

Can't be understood.

The software designer was drunk...

Is there a documentation about the argument line syntax ?
Else, how to make this right ?

I fed up.

Thanks a lot.

The one who has the solution must be rewarded.

[Updated on: Mon, 05 March 2018 11:36]

Report message to a moderator

Re: [CDT 9.2] Run/Debug Configurations are HORROR ... [message #1782907 is a reply to message #1782898] Sun, 04 March 2018 18:38 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1408
Registered: July 2009
Senior Member
You post doesn't explain the basic task you are trying to accomplish, but you seem to be trying to pass the path to the intern directory in your project as an argument to the program you are running. You might want to look into using the resource_loc variable. Any file or directory in your workspace is considered a resource of the project. The resource_loc variable allows you to pass the absolute path of one of these resources as a program argument. Eclipse should perform the correct platform formatting so you don't need to construct it using things like file.separator. You specify the resource you want to resolve as an argument in the resource:loc definition. To pass the \intern\ directory from the root directory of your project, you specify {resource_loc:project_name/intern.

There is documentation on the different resource/location variables in the Workspace User Guide->Concepts->Ant & External tools->External tools.
Re: [CDT 9.2] Run/Debug Configurations are HORROR ... [message #1782932 is a reply to message #1782907] Mon, 05 March 2018 11:48 Go to previous message
Didier Garcin is currently offline Didier GarcinFriend
Messages: 56
Registered: April 2013
Thanks a lot, David.

I'm discovering :
What I want to do is not part of CDT but Eclipse workbench: to extend a variable path.
It is advisable to do this like documentation recommends.
This documentation is not there the user should expert to be.
And the contextual documentation itself is quiet about the subject. What a pity.

Thanks again and best regards, David.

[Updated on: Mon, 05 March 2018 11:48]

Report message to a moderator

Previous Topic:ANT File Error (Time Sensitive)
Next Topic:renaming cpp file
Goto Forum:

Current Time: Tue Mar 20 10:18:15 GMT 2018

Powered by FUDForum. Page generated in 0.01659 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software