-
Notifications
You must be signed in to change notification settings - Fork 148
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
support running from within scripts or IDEs #157
Comments
It's trying to determine the terminal width, you'll need to give me more information on how it fails. Does it fail? or is it just printing that, but otherwise working? This is the code where https://github.com/catkin/catkin_tools/blob/master/catkin_tools/common.py#L251-L255 |
Does this help? |
Yes, thanks. It does not complain anymore now. ]2; [build] Finished. On Tue, Mar 10, 2015 at 5:19 PM, Jonathan Bohren notifications@github.com
|
Another issue (which may be qtcreator dependant) is that even when using -i, there's still output buffered which is periodically printed. On the console -i works as expected. Note that this did not happen when invoking catkin_make from qtcreator. |
One final note, qtcreator fails to detect the error lines which allow you to click on them and go straight to the offending code. This appears to be due to the fact that the package name is prepended to the compiler output. It would be nice to have an option to simply pass the compiler/cmake output as-is. |
That's probably a place where we're not checking if color is on or off before printing an ANSI reset escape sequence.
You can try to set https://docs.python.org/2/using/cmdline.html#envvar-PYTHONUNBUFFERED In this case it's not worth comparing to
That could be an option, I don't have time to implement it myself, but here is the code you'd need to affect: Specifically the |
On Fri, Mar 13, 2015 at 4:28 PM, William Woodall notifications@github.com
This made the trick, thanks. Maybe it is something worth documenting
—
|
By the way, I realized that actually there is no preffix printed before any error lines. QtCreator for some reason does not seem to be able to detect the error lines. Could this maybe due to some particular way you are printing things from catkin? I don't understand what could be causing this. Anyone else tried it on qtcreator? |
I opened the CMakeLists.txt directly in QtCreator and get correct detection of issues. What benefits does adding the catkin step give you? |
Running |
As Jon mentioned, I tend to change the build step to use 'catkin build', not 'make'. This ensures that all dependencies in the workspace are built properly. On a side note, QtCreator also has a xml file that allows to define a workspace with multiple projects and inter-project dependencies. It would be awesome if catkin had an option to generate that xml file. |
@adeguet1 Do you know if that xml schema is documented somewhere? |
Another reason for me to use catkin as the build command is that I have too On Mon, Jul 6, 2015 at 10:40 AM, Jonathan Bohren notifications@github.com
|
@adeguet1 wrote:
wouldn't this be more a task for CMake itself? It already has generators for a number of build systems. |
Only if CMake had a mechanism to build multiple projects in a cohesive way. What @adeguet1 is describing is a file describing the topology of a catkin workspace with numerous CMake projects. |
Isn't the CMake Eclipse generator used to generate project files for Eclipse for entire workspaces? Or does that work only with |
Exactly, since |
@simonschmeisser I simply create one big project and set it as as "custom" so that I can define my own build steps, where I set catkin build as the build command (with a bunch of other flags) and set the source directory the top-level src/ of the catkin_ws When I want to just build one project I alter the build step. I can either use --no-deps or not, or build everything. The downside for me, at the moment, is that qtcreate does not recognize compiler errors which does not allow me to click the offending line in the console output. I'm not sure why is this. |
catkin_tools is redirecting all output on stderr to stdout. However QtCreator (and other IDEs) only checks stderr for compiler warnings/errors. A work-around would be to remove ", stderr=STDOUT" from https://github.com/catkin/catkin_tools/blob/master/catkin_tools/runner/run_unix.py#L45 to allow the error messages to be printed unfiltered. It seems to work fine for me, but I don't know what catkin_tool functionality this may impact negatively. |
Great find, thanks. It is strange that it does this, since it is not usual. On Tue, Aug 25, 2015 at 5:10 PM, Daniel Seifert notifications@github.com
|
@v01d I am trying to set up catkin_tools with qtcreator as well, but can't find any information, other than your introductory comment to this issue, on how to set it up. |
I have tracked back that random I guess that doesn't really have to do anything with the |
There are two options: you can create a project using the project wizard, On Wed, Aug 26, 2015 at 3:40 AM, cbandera notifications@github.com wrote:
|
Generating the Generating the xml files from outside qtcreator is a bit tricky, since for example, one needs to know something about the existing "Kits" and which to choose. This is currently a manual step when opening a CMake project in QtCreator. There is some discussion about the xml generation and the qtcreator "catkin"-plugin over at the at qtcreator mailing list. Tobias Hunger from the Qt Company who seems to be doing a lot of work improving the QtCreator cmake integration is responding quickly and seems to be open to such ideas. |
@NikolausDemmel wrote:
Haven't yet used it myself, but Levi-Armstrong/ros_qtc_plugins is meant to do exactly that. |
Nice! I wasn't aware of that. It seems to aim at much more integration, whereas I was focusing on just building initially (and so far only in discussion). I will raise my ideas over there. Thanks for the pointer. |
I'm seeing this issue when running catkin_tools builds in a Jenkins SSH-connected slave, where
In my opinion, this check should be skipped over when the |
Note that a workaround is to prepend the catkin_tools invocation with |
Hi guys, can this be closed or at least broken into more specific issues? It's hard to tell what we were originally talking about here 😄. The handling of terminal width changed in 0.4.3, see #415, and there seems to be a work around for that now, i.e. I'd appreciate parting this out to specific issues if anyone has time. @v01d as the OP, I'll let you decide if this can be closed or not. |
I too lost track of the status of the issue/s =b |
I'm running catkin from qtcreator as a custom build step and it complains about:
tput: No value for $TERM and no -T specified
I'm using the following parameters: --no-deps -v -i --no-color --no-status
The text was updated successfully, but these errors were encountered: