Ask Your Question
0

Make generated messages visible for an IDE

asked 2014-07-23 21:47:28 -0600

Mehdi. gravatar image

I am working with Pycharm and since I started using catkin, Pycharm can't find my msg files anymore and my program is full of red underlines making it difficult to distinguish between true and false errors. As example the following import will seem to Pycharm as "unresolved reference to mypackage.msg"

from mypackage.msg import *

This makes sense since the build is made out of source and all msg files are generated in the devel/share folder. How can I fix that and make my IDE find the necessary files automatically?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2014-07-24 00:21:43 -0600

ahendrix gravatar image

In general, the right solution to this is to source your workspace's setup.bash file and then start your IDE directly from that shell, rather than trying to launch it from the GUI.

If that works well, you can usually create a custom launcher icon which sources your workspace's setup.bash file and then runs your IDE; the QtCreator instructions describe how to do this, and it shouldn't be hard to adapt it to another IDE. See the IDEs Page and the QtCreator Section. Note that the instructions there assume that your bashrc sources the setup file for your workspace by default.

edit flag offensive delete link more

Comments

Thanks, creating a .desktop file like QtCreator solved it. where the most important line is : Exec=bash -i -c pycharm %F

Mehdi. gravatar imageMehdi. ( 2014-07-27 23:50:20 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-07-23 21:47:28 -0600

Seen: 882 times

Last updated: Jul 24 '14