Giter Site home page Giter Site logo

Comments (3)

texhnolyze avatar texhnolyze commented on July 2, 2024 1

Ok while typing the answer I realized that you were talking about ~/.cargo/config.toml.
As colcon creates a bunch of files/folders I have its own folder as a workspace under ~/colcon_ws resulting in the patch configuration for the path of rosidl_runtime_rs ending up in ~/colcon_ws/.cargo/config.toml and not being applied.
Copying the file to the correct folder in the homedir fixes the issue.
I suppose in this case it is more an issue with colcon-ros-cargo?
Looking at the code it the .cargo/config.toml is place in the working directory https://github.com/colcon/colcon-ros-cargo/blob/main/colcon_ros_cargo/task/ament_cargo/build.py#L100.
So I guess it not working is maybe due to the execution directory of cargo in the colcon build, as according to the docs if it is executed in the working dir the configuration should be applied.
Unless passing --manifest-path or --target-dir here change that.

Anyway it seems to not be an issue with ros2_rust.
@nnmm I saw that you are also maintaining colcon-ros-cargo.
I'm happy to open an issue there and do a PR if you could point me in the right direction.

from ros2_rust.

texhnolyze avatar texhnolyze commented on July 2, 2024 1

After a quick search, this might even be just a bug in cargo itself rust-lang/cargo#2930

from ros2_rust.

nnmm avatar nnmm commented on July 2, 2024

Thanks for the report! I'm trying to understand how the two versions got mixed – could you tell me how you depend on rclrs in your project (i.e. do you have a checkout of the repo, or through crates.io? And how is rclrs referenced in your Cargo.toml?)? And what is listed for rclrs and rosidl_runtime_rs in ~/.cargo/config.toml?

from ros2_rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.