-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: proc macro panicked #170
Comments
I had the same issue earlier today and here's how I fixed it Specific the CMAKE_PREFIX_PATH or ROSRUST_MSG_PATH path variables.
Finally, in my main.rs I had mod msg {
rosrust::rosmsg_include!(std_msgs/String);
} I saw that there was also a pull request with a suggested warning to the user instead of panicking #165 to make it more clear what needs to be done. I highly suggest we merge this in since it was very confusing what was going on otherwise. |
+1 on this one - I have the same issue as of now - looking forward to the release :) |
After adding the two dependencies according to your instructions and after using the "cargo build" command I got the following at the very end of the process:
( ...)
"error: proc macro panicked
--> C:\Users\NUC\Desktop\rust\publisher\target\debug\build\rosrust_msg-313b65941bcfc194\out/messages.rs:2:1
|
2 | rosrust::rosmsg_include!(,IGNORE_BAD);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: message: Failed to parse all message paths
error: could not compile
rosrust_msg
due to previous errorwarning: build failed, waiting for other jobs to finish...
error: build failed"
How can we fix that?
By the way, I also cannot get how to run a publisher and subscriber or a client and a server at the same time, since there is no way to create a launch file to do so. Should I create two separate package with "cargo new --bin" and then add the two dependencies in each of the two generated Cargo.toml? And then if so, should I run "main.rs" in separate shells?
The text was updated successfully, but these errors were encountered: