MantisBT - CMake
View Issue Details
0013288CMakeCCMakepublic2012-06-08 19:282016-06-10 14:31
zub 
Kitware Robot 
normalminoralways
closedmoved 
Linux
CMake 2.8.8 
 
0013288: ccmake screen cluttered by stray text when using the -C option
When -C option (initial cache file) is used with ccmake the screen is cluttered by a stray text ("loading initial cache file"). See attached screenshot.

Looks like a stray printf breaking the otherwise curses-managed screen.

The stray message is annoying and it can obscure important fields.
1. create an initial cmake cache file (empty file is ok)
2. create a hello world cmake project
3. run: ccmake . -Cyour-initial-cache-file
4. press 'c' to run the configure step
5. observe the stray text (pressing 'c' again causes another occurrence of the text, always at the current position of the cursor)

Or just use the attached testcase (unpack, execute ./run.sh).
No tags attached.
png ccmake-initial-cache-bug.png (31,304) 2012-06-08 19:28
https://public.kitware.com/Bug/file/4351/ccmake-initial-cache-bug.png
png

gz ccmake-initial-cache-testcase.tar.gz (384) 2012-06-08 19:30
https://public.kitware.com/Bug/file/4352/ccmake-initial-cache-testcase.tar.gz
Issue History
2012-06-08 19:28zubNew Issue
2012-06-08 19:28zubFile Added: ccmake-initial-cache-bug.png
2012-06-08 19:30zubFile Added: ccmake-initial-cache-testcase.tar.gz
2012-06-10 10:51David ColeNote Added: 0029656
2012-08-11 21:42David ColeStatusnew => backlog
2012-08-11 21:42David ColeNote Added: 0030435
2016-06-10 14:28Kitware RobotNote Added: 0042062
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0029656)
David Cole   
2012-06-10 10:51   
This is due to the use of "cerr" in cmake::SetCacheArgs. Also happens with a malformed -D arg to ccmake:

  ccmake -Dblah .

Not sure what the best fix is for this. There may be (scripted) command line users of cmake that depend on the output being emitted on cerr for use with "cmake".

Seems like we should fix this only to avoid cerr use when being called from ccmake or cmake-gui, but not command line cmake.
(0030435)
David Cole   
2012-08-11 21:42   
Sending old, never assigned issues to the backlog.

(The age of the bug, plus the fact that it's never been assigned to anyone means that nobody is actively working on it...)

If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^]

It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing.
(0042062)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.