Bug 201904 - Hyperlinking and/or coloration of errors and warnings in console
Hyperlinking and/or coloration of errors and warnings in console
Status: RESOLVED INCOMPLETE
Product: cnd
Classification: Unclassified
Component: Project
7.1
PC Other
: P1 (vote)
: TBD
Assigned To: issues@cnd
issues@cnd
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-09 17:34 UTC by sbheinric
Modified: 2013-01-21 13:46 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sbheinric 2011-09-09 17:34:25 UTC
It is very difficult to make efficient progress in Netbeans when developing C++ due to the fact that that errors and warnings in the output window are not hyperlinked to the source code, and in fact, are not even color coded.  Sometimes it takes me more than 5 minutes just to spot the tiny word "error" hidden in pages of text that get spit out.  I am compiling with "-Wfatal-errors" in order to reduce the jumble but it doesn't help much.  Here is an example of the output created by one run with -Wfatal-errors.  How long does it take you to spot the error?

----

"/usr/bin/make" -f nbproject/Makefile-Release.mk QMAKE= SUBPROJECTS= .clean-conf
make[1]: Entering directory `/mnt/hgfs/NetBeansProjects/gearman_arrow_worker'
rm -f -r build/Release
rm -f dist/Release/GNU-Linux-x86/gearman_arrow_worker
make[1]: Leaving directory `/mnt/hgfs/NetBeansProjects/gearman_arrow_worker'

CLEAN SUCCESSFUL (total time: 250ms)
"/usr/bin/make" -f nbproject/Makefile-Release.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `/mnt/hgfs/NetBeansProjects/gearman_arrow_worker'
"/usr/bin/make"  -f nbproject/Makefile-Release.mk dist/Release/GNU-Linux-x86/gearman_arrow_worker
make[2]: Entering directory `/mnt/hgfs/NetBeansProjects/gearman_arrow_worker'
mkdir -p build/Release/GNU-Linux-x86
rm -f build/Release/GNU-Linux-x86/main.o.d
g++ -I/home/omniar/Libraries/lumatic -I/home/omniar/Libraries/heinlib -I/home/omniar/Libraries/external -I/home/omniar/local/include -Wfatal-errors   -c -O2 -I/C/Users/Stuart/Libraries/external -I/C/Users/Stuart/Libraries/heinlib -I/C/Users/Stuart/Libraries/lumatic `pkg-config --cflags gearmand` `pkg-config --cflags x11` `pkg-config --cflags libcurl`    -MMD -MP -MF build/Release/GNU-Linux-x86/main.o.d -o build/Release/GNU-Linux-x86/main.o main.cpp
In file included from /home/omniar/local/include/libaws/common.h:19,
                 from /home/omniar/local/include/libaws/awsconnectionfactory.h:20,
                 from /home/omniar/local/include/libaws/aws.h:19,
                 from /home/omniar/Libraries/lumatic/io/amazon_s3.h:24,
                 from /home/omniar/Libraries/lumatic/jobs/render_view_worker.h:23,
                 from main.cpp:14:
/home/omniar/local/include/libaws/config.h:17:1: warning: "HAVE_STDLIB_H" redefined
In file included from /home/omniar/local/include/jpeglib.h:26,
                 from /home/omniar/Libraries/lumatic/graphics/jpeg.h:7,
                 from /home/omniar/Libraries/lumatic/graphics/jpeg_cimg.h:4,
                 from /home/omniar/Libraries/lumatic/jobs/render_view_worker.h:21,
                 from main.cpp:14:
/home/omniar/local/include/jconfig.h:20:1: warning: this is the location of the previous definition
In file included from /home/omniar/Libraries/lumatic/jobs/render_view_worker.h:27,
                 from main.cpp:14:
/home/omniar/Libraries/heinlib/datastruct/kd_tree.h:25:39: error: geometry/point_in_polygon.h: No such file or directory
In file included from /usr/include/c++/4.4/backward/strstream:47,
                 from /home/omniar/Libraries/lumatic/jobs/make_route_worker.h:17,
                 from main.cpp:15:
/usr/include/c++/4.4/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h: In function ‘void cimg_library::cimg::system(const char*, const char*)’:
In file included from /home/omniar/Libraries/heinlib/vision/image.h:21,
                 from /home/omniar/Libraries/lumatic/jobs/render_view_worker.h:20,
                 from main.cpp:14:
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h:3842: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
/home/omniar/Libraries/heinlib/math/cuberoot.h: In function ‘T heinlib::cuberoot(T)’:
In file included from /home/omniar/Libraries/heinlib/math/chebyshev_cubic.h:21,
                 from /home/omniar/Libraries/heinlib/math/polynomial_roots.h:21,
                 from /home/omniar/Libraries/heinlib/vision/drawing.h:24,
                 from /home/omniar/Libraries/heinlib/graphics/rasterize/rasterizer.h:21,
                 from /home/omniar/Libraries/lumatic/jobs/render_view_worker.h:29,
                 from main.cpp:14:
/home/omniar/Libraries/heinlib/math/cuberoot.h:98: note: #pragma message: Using 'pow(x, 1/3)' for cuberoot,  this is slow and can give wrong results!!!
/home/omniar/Libraries/heinlib/vision/color/color_spaces.h: In function ‘heinlib::static_matrix<3u, 1u, Real> heinlib::HSL_to_RGB(const heinlib::static_matrix<3u, 1u, Real>&) [with Real = float]’:
In file included from /home/omniar/Libraries/heinlib/vision/filters/auto_adjust.h:19,
                 from /home/omniar/Libraries/lumatic/graphics/beautify.h:2,
                 from /home/omniar/Libraries/lumatic/jobs/render_view_worker.h:35,
                 from main.cpp:14:
/home/omniar/Libraries/heinlib/vision/color/color_spaces.h:631:   instantiated from ‘void heinlib::HSL_to_sRGB(cimg_library::CImg<t1>&) [with T = float]’
/home/omniar/Libraries/heinlib/vision/filters/auto_adjust.h:120:   instantiated from ‘void heinlib::vibrance(cimg_library::CImg<t1>&, float) [with T = float]’
/home/omniar/Libraries/lumatic/graphics/beautify.h:26:   instantiated from ‘void omniar::beautify2(cimg_library::CImg<t1>&) [with T = float]’
/home/omniar/Libraries/lumatic/jobs/render_view_worker.h:340:   instantiated from here
/home/omniar/Libraries/heinlib/vision/color/color_spaces.h:619: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h: In member function ‘cimg_library::CImg<T>& cimg_library::CImg<T>::load_ascii(FILE*, const char*) [with T = float]’:
In file included from /home/omniar/Libraries/heinlib/vision/image.h:21,
                 from /home/omniar/Libraries/lumatic/jobs/render_view_worker.h:20,
                 from main.cpp:14:
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h:22425:   instantiated from ‘cimg_library::CImg<T>& cimg_library::CImg<T>::load_ascii(const char*) [with T = float]’
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h:22363:   instantiated from ‘cimg_library::CImg<T>& cimg_library::CImg<T>::load(const char*) [with T = float]’
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h:8855:   instantiated from ‘cimg_library::CImg<T>& cimg_library::CImg<T>::assign(const char*) [with T = float]’
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h:8841:   instantiated from ‘cimg_library::CImg<T>::CImg(const char*) [with T = float]’
/home/omniar/Libraries/heinlib/graphics/rasterize/material_manager.h:85:   instantiated from here
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h:22395: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h: In member function ‘cimg_library::CImg<T>& cimg_library::CImg<T>::load_pnm(FILE*, const char*) [with T = float]’:
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h:22599:   instantiated from ‘cimg_library::CImg<T>& cimg_library::CImg<T>::load_pnm(const char*) [with T = float]’
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h:22379:   instantiated from ‘cimg_library::CImg<T>& cimg_library::CImg<T>::load(const char*) [with T = float]’
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h:8855:   instantiated from ‘cimg_library::CImg<T>& cimg_library::CImg<T>::assign(const char*) [with T = float]’
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h:8841:   instantiated from ‘cimg_library::CImg<T>::CImg(const char*) [with T = float]’
/home/omniar/Libraries/heinlib/graphics/rasterize/material_manager.h:85:   instantiated from here
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h:22508: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h:22514: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h: In static member function ‘static void cimg_library::CImg<T>::_load_inr(FILE*, int*, float*) [with T = float]’:
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h:23506:   instantiated from ‘cimg_library::CImg<T>& cimg_library::CImg<T>::load_inr(FILE*, const char*, float*) [with T = float]’
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h:23571:   instantiated from ‘cimg_library::CImg<T>& cimg_library::CImg<T>::load_inr(const char*, float*) [with T = float]’
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h:22366:   instantiated from ‘cimg_library::CImg<T>& cimg_library::CImg<T>::load(const char*) [with T = float]’
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h:8855:   instantiated from ‘cimg_library::CImg<T>& cimg_library::CImg<T>::assign(const char*) [with T = float]’
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h:8841:   instantiated from ‘cimg_library::CImg<T>::CImg(const char*) [with T = float]’
/home/omniar/Libraries/heinlib/graphics/rasterize/material_manager.h:85:   instantiated from here
/home/omniar/Libraries/heinlib/libs/CImg/cimg.h:23530: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
make[2]: *** [build/Release/GNU-Linux-x86/main.o] Error 1
make[2]: Leaving directory `/mnt/hgfs/NetBeansProjects/gearman_arrow_worker'
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory `/mnt/hgfs/NetBeansProjects/gearman_arrow_worker'
make: *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 11s)
Comment 1 ivan 2012-10-25 07:59:55 UTC
Question: Are you doing your builds using the main Build action
or are you opening Output->Terminal and doing a 'make' in a shell?
Comment 2 igor_nikiforov 2013-01-21 13:46:24 UTC
The output formation was broken by the Bugzilla.

Could you, please, attach the output as file?


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo