[Bug 980] New: self reference when creating eclipse-project

http://bugs.orocos.org/show_bug.cgi?id=980

Summary: self reference when creating eclipse-project
Product: Toolchain
Version: 2.5.0
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P3
Component: RTT
AssignedTo: orocos-dev [..] ...
ReportedBy: dominick [dot] vanthienen [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

Hi,

when creating an eclipse project with 'make eclipse-project' in an Orocos
package, there is a link added to the package itself. Therefore, the project
can't be loaded into eclipse.

The error message you get:
Error processing changed links in project description file.
Cannot create a link to 'path_to_your_package/package_name' because it
overlaps the location of the project that contains the linked resource.

Proposed solution:
Don't create this self reference.
As long as the bug exists: manually delete in the .project file that is created
by make eclipse-project, the following:
<link>
<name>package_name_<name>
<type>2<type>
<location>/pat_to_your_package/package_name<location>
<link>

nick

Ruben Smits's picture

[Bug 980] self reference when creating eclipse-project

[Bug 980] self reference when creating eclipse-project

[Bug 980] self reference when creating eclipse-project

[Bug 980] self reference when creating eclipse-project

On 08/20/2012 05:53 PM, Peter Soetens wrote:
>
> http://bugs.orocos.org/show_bug.cgi?id=980
>

[Bug 980] self reference when creating eclipse-project

http://bugs.orocos.org/show_bug.cgi?id=980

Peter Soetens <peter [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |peter [..] ...

[Bug 980] self reference when creating eclipse-project

On 08/20/2012 05:18 PM, Peter Soetens wrote:
>
> http://bugs.orocos.org/show_bug.cgi?id=980
>
> Peter Soetens <peter [..] ...> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> CC| |peter [..] ...
>

[Bug 980] self reference when creating eclipse-project

On Mon, Aug 20, 2012 at 5:53 PM, Dominick Vanthienen <
nick [dot] vanthienen [..] ...> wrote:

>
>
> On 08/20/2012 05:18 PM, Peter Soetens wrote:
> >
> > http://bugs.orocos.org/show_bug.cgi?id=980
> >
> > Peter Soetens <peter [..] ...> changed:
> >
> > What |Removed |Added
> >
> ----------------------------------------------------------------------------
> > CC| |
> peter [..] ...
> >
> > --- Comment #1 from Peter Soetens <peter [..] ...> 2012-08-20
> 17:18:32 CEST ---
> > (In reply to comment #0)
> >> Hi,
> >>
> >> when creating an eclipse project with 'make eclipse-project' in an
> Orocos
> >> package, there is a link added to the package itself. Therefore, the
> project
> >> can't be loaded into eclipse.
> >>
> >> The error message you get:
> >> Error processing changed links in project description file.
> >> Cannot create a link to 'path_to_your_package/package_name' because
> it
> >> overlaps the location of the project that contains the linked resource.
> >>
> >> Proposed solution:
> >> Don't create this self reference.
> >> As long as the bug exists: manually delete in the .project file that is
> created
> >> by make eclipse-project, the following:
> >> <link>
> >> <name>package_name_<name>
> >> <type>2<type>
> >> <location>/pat_to_your_package/package_name<location>
> >> <link>
> >
> > I have seen this issue some months ago and could fix it by modifying
> some of
> > the cmake logic. Strangely, I can't see the code that caused it there
> any more
> > in the ROS packages, so I assumed it was fixed.
> >
> > Could you find out what the minimal contents of your packages'
> CMakeLists.txt
> > needs to be before you hit this bug ? Is it just locating OROCOS-RTT
> using
> > find_package, or do you also need to include UseOrocos.cmake ?
>
> it is the rosbuild_init() that causes the problem
> installation:
> orocos toolchain 2.5
> ros Fuerte
>

Could you copy/paste your minimal cmake lists file that causes the problem ?

Peter

[Bug 980] self reference when creating eclipse-project

On 08/20/2012 06:14 PM, Peter Soetens wrote:
>
>
> On Mon, Aug 20, 2012 at 5:53 PM, Dominick Vanthienen <nick [dot] vanthienen [..] ... nick [dot] vanthienen [..] ...>> wrote:
>
>
>
> On 08/20/2012 05:18 PM, Peter Soetens wrote:
> >
> > http://bugs.orocos.org/show_bug.cgi?id=980
> >
> > Peter Soetens <peter [..] ... peter [..] ...>> changed:
> >
> > What |Removed |Added
> > ----------------------------------------------------------------------------
> > CC| |peter [..] ... <mailto:peter [..] ...>
> >
> > --- Comment #1 from Peter Soetens <peter [..] ... peter [..] ...>> 2012-08-20 17:18:32 CEST ---
> > (In reply to comment #0)
> >> Hi,
> >>
> >> when creating an eclipse project with 'make eclipse-project' in an Orocos
> >> package, there is a link added to the package itself. Therefore, the project
> >> can't be loaded into eclipse.
> >>
> >> The error message you get:
> >> Error processing changed links in project description file.
> >> Cannot create a link to 'path_to_your_package/package_name' because it
> >> overlaps the location of the project that contains the linked resource.
> >>
> >> Proposed solution:
> >> Don't create this self reference.
> >> As long as the bug exists: manually delete in the .project file that is created
> >> by make eclipse-project, the following:
> >> <link>
> >> <name>package_name_<name>
> >> <type>2<type>
> >> <location>/pat_to_your_package/package_name<location>
> >> <link>
> >
> > I have seen this issue some months ago and could fix it by modifying some of
> > the cmake logic. Strangely, I can't see the code that caused it there any more
> > in the ROS packages, so I assumed it was fixed.
> >
> > Could you find out what the minimal contents of your packages' CMakeLists.txt
> > needs to be before you hit this bug ? Is it just locating OROCOS-RTT using
> > find_package, or do you also need to include UseOrocos.cmake ?
>
> it is the rosbuild_init() that causes the problem
> installation:
> orocos toolchain 2.5
> ros Fuerte
>
>
> Could you copy/paste your minimal cmake lists file that causes the problem ?
>
> Peter
>