Menu

#271 Clicking an error in the errors list doesn't open the corresponding line when execution directory is not the project root path

Undefined
open
nobody
Bug_Report
2022-02-09
2015-12-13
No

If project execution directory is set to anything other than the project root path - clicking on the error in compilation errors list does not open the corresponding file and shows the line where the error has occured as it should.

Discussion

  • Teodor Petrov

    Teodor Petrov - 2015-12-13

    Can you post a minimal project that can be used to reproduce the problem?
    Can you post the full build log from the project?

     
  • Mystery Keeper

    Mystery Keeper - 2015-12-13

    That's a bit complicated thing to do. But I can clarify a bit. My project is Qt project. Source files are kept in "src" folder, and project file is kept in "pro" folder. Execution directory is set to "./pro/".
    Here is how an error looks in the build log:
    ..\src\preview../settings/settingsmanager.cpp:723:9: error: 'whiteddddd' is not a member of 'Qt'
    But in the "Build messages" tab the path is changed to:
    pro\src\settings\settingsmanager.cpp
    Obviously, when I double-click on an error, nothing happense. Because "src" folder is not in "pro" folder.

     
  • Mystery Keeper

    Mystery Keeper - 2015-12-13
     
    • Andrew Cottrell

      Andrew Cottrell - 2022-02-09

      Looks like an issue with using mixed directory separators and some part of the code or library etc not liking mixed separators.

      Example of this from the build log in case it disappears is:
      -------------- Build: release-64bit-gcc in vapoursynth-editor (compiler: MinGW 64bit)---------------

      [100.0%] Checking if target is up-to-date: mingw32-make.exe -q -f Makefile release
      Running command: mingw32-make.exe -f Makefile release
      mingw32-make.exe -f Makefile.Release
      mingw32-make.exe[1]: Entering directory 'D:/Programming/vapoursynth-editor/pro'
      g++ -c -pipe -fno-keep-inline-dllexport -O2 -fexpensive-optimizations -funit-at-a-time -std=c++11 -O2 -w -frtti -fexceptions -mthreads -DUNICODE -DNDEBUG -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I. -I"C:\Program Files (x86)\VapourSynth\sdk\include" -I..\src\image\zimg -IE:\sdk\qt-5.5.0-x64-mingw510r0-seh\include -IE:\sdk\qt-5.5.0-x64-mingw510r0-seh\include\QtWidgets -IE:\sdk\qt-5.5.0-x64-mingw510r0-seh\include\QtGui -IE:\sdk\qt-5.5.0-x64-mingw510r0-seh\include\QtANGLE -IE:\sdk\qt-5.5.0-x64-mingw510r0-seh\include\QtCore -I..\generated\moc -I..\generated\ui -IE:\sdk\qt-5.5.0-x64-mingw510r0-seh\mkspecs\win32-g++ -o ..\generated\obj-release-64bit-gcc\preview_advanced_settings_dialog.o ..\src\preview\preview_advanced_settings_dialog.cpp
      In file included from ..\src\preview\preview_advanced_settings_dialog.cpp:3:0:
      ..\src\preview../settings/settingsmanager.cpp
      : In member function 'QColor SettingsManager::getDefaultTextBackgroundColor() const':
      ..\src\preview../settings/settingsmanager.cpp:723:9: error: 'whiteddddd' is not a member of 'Qt'
      return Qt::whiteddddd;
      ^
      mingw32-make.exe[1]: [../generated/obj-release-64bit-gcc/preview_advanced_settings_dialog.o] Error 1
      mingw32-make.exe:
      [release] Error 2
      Makefile.Release:3677: recipe for target '../generated/obj-release-64bit-gcc/preview_advanced_settings_dialog.o' failed
      mingw32-make.exe[1]: Leaving directory 'D:/Programming/vapoursynth-editor/pro'
      Makefile:48: recipe for target 'release' failed
      Process terminated with status 2 (0 minute(s), 4 second(s))
      3 error(s), 0 warning(s) (0 minute(s), 4 second(s))

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.