-
Notifications
You must be signed in to change notification settings - Fork 69
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
rqt cannot find plugin after changing ROS_PACKAGE_PATH #90
Comments
Did you changed the location where the |
You ran At least that's my theory. |
@dirk-thomas No. @wjwwood I would say no, but I'm not 100% sure. I also couldn't reproduce the error following your description. Btw, I'm always using |
Is the problem still there when you invoke it with |
I'll try this, once I run into this bug again. I currently don't know how to reproduce this. |
No. This fixes it.
qt_gui_core: 0.2.18-0precise-20131015-2036-+0000 |
rqt (since a very recent version) caches the list and location of found plugins. It does that to improve the start-up time significantly. That means for 24h it reuses the previous discovery. If you add packages in the meantime rqt will not recrawl the filesystem and therefore not find them (until the cache expires or you invoke the program with the Can you please clarify what you did to run into the issue? You descriptions says that it was working before and suddenly stopped working. Did you do anything in between like source a different environment, change ROS_PACKAGE_PATH, add/remove/move packages? |
That was it! I'm using multiple workspaces. Switching between them can cause the mentioned error, if the cache has been initialised in workspace, which does not contain the plugin you are trying to load. Maybe a quick fix would be showing a warning/info, which suggests to try |
I tend to use multiple workspaces as well, I was constantly getting the problem. A warning would be a good idea. Also a config option that turns off the cache so rqt always discovers on startup would be nice. |
Well, the config option that turns off the cache is there: --force-discover |
I was thinking something in ~/.rviz/config so I don't have to add --force-discover on every invocation. |
I've made a working example of using different plugin manager caches depending on the current ROS_PACKAGE_PATH in the branch "plugin_cache_prefix": It works for me, please test and comment. |
+1 please create pull requests for those two branches. I will merge and release likely today since this is a pretty nasty bug. |
@bit-pirate @markpitchless Can you please try the latest version from the git repos for |
Closing the ticket since it is assumed that the latest changes fix the problem. |
For no obvious reason the rqt plugin I'm using (i.e. rqt_capabilities) suddenly stopped working with this error:
Removing the rqt gui config as described in this answer solved this issue.
Is this supposed to happen?
The text was updated successfully, but these errors were encountered: