I'm trying to open CppCheck error / warning in Code::Block (file, line) from CppCheck GUI (Not with Code::Blocks plugin).
The following command works great at cmd.exe:
"C:/Program Files (x86)/CodeBlocks/codeblocks.exe" --file=C:\xxx\xxx\xx.cpp:19
While at Cppcheck - Preferences - Applications with the following parameters it fails:
Name: CodeBlocks
Executable: "C:/Program Files (x86)/CodeBlocks/codeblocks.exe"
Parameters: --file=(file):(line)
What am I missing?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Today I had the time to download Qt environment and debug the code.
I found that if I comment out the following line it works excellent for both Notepad++ and Codeblocks (It jumps to the correct file and line), Notepad also works as expected (Opens the correct file).
Version: Cppcheck x64 1.76.1
IDE: Code::Block 16.01
OS: Windows 7 x64
I'm trying to open CppCheck error / warning in Code::Block (file, line) from CppCheck GUI (Not with Code::Blocks plugin).
The following command works great at cmd.exe:
"C:/Program Files (x86)/CodeBlocks/codeblocks.exe" --file=C:\xxx\xxx\xx.cpp:19
While at Cppcheck - Preferences - Applications with the following parameters it fails:
Name: CodeBlocks
Executable: "C:/Program Files (x86)/CodeBlocks/codeblocks.exe"
Parameters: --file=(file):(line)
What am I missing?
I do not see why it does not work.
wild guess.. does C:\xxx\xxx\xx.cpp have any spaces? I guess not.
If you want to take a look at our code please do..
https://github.com/danmar/cppcheck/blob/master/gui/resultstree.cpp#L731
If you have a Qt dev environment setup you could step..
Hi Daniel and thanks for the fast response.
Today I had the time to download Qt environment and debug the code.
I found that if I comment out the following line it works excellent for both Notepad++ and Codeblocks (It jumps to the correct file and line), Notepad also works as expected (Opens the correct file).
https://github.com/danmar/cppcheck/blob/master/gui/resultstree.cpp#L678
If you can update the code (commenting out the line) in your next release it will be great.
Regards,
Roee