News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

IDE error: why double click, on error list, don't go to the line?

Started by cambalinho, May 08, 2022, 06:51:36 PM

Previous topic - Next topic

BlueHazzard

There should be no setting to modify this.
You have not answered the other questions....

stahta01

The image he posted had an code completion box up; could the box need to be closed before the build message click works?

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Pecan

Quote from: stahta01 on May 10, 2022, 02:45:21 AM
The image he posted had an code completion box up; could the box need to be closed before the build message click works?

Tim S.


I believe, Yes, it needs to be closed because the popup owns the focus.
That means (with an open popup window)  CompilerMessages::OnDoubleClick(wxCommandEvent& event) will never see the mouse double click.

@cambalinho, close the codeCompletion popup window and see if the doubleClick works.

cambalinho

not working :(
https://imgur.com/iz35hsZ

BlueHazzard: "There should be no setting to modify this.
You have not answered the other questions...."
did i miss some questions? i said that i use Windows 10 20H2... and CodeBlocks is 20.03.
when i uninstall the CodeBlocks, some options files aren't deleted? after reinstall, several times, the CodeBlocks, the problem remains :(

Pecan

Quote from: cambalinho on May 10, 2022, 07:04:13 PM
not working :(
https://imgur.com/iz35hsZ

BlueHazzard: "There should be no setting to modify this.
You have not answered the other questions...."
did i miss some questions? i said that i use Windows 10 20H2... and CodeBlocks is 20.03.
when i uninstall the CodeBlocks, some options files aren't deleted? after reinstall, several times, the CodeBlocks, the problem remains :(

To remove all config data, after uninstalling CB, delete the folder at C:\Users\<YourUserName>\AppData\Roaming\CodeBlocks
Then re-install CB.

cambalinho

why all config data, registry or\and others aren't deleted on uninstall?
or, at least, a reset button\option for help more
doing these will help the user
i uninstall it and delete that folder, but no success :(

stahta01

Please post a full re-build log so we can find out what your build path is?
Edit: Add link to directions: https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

You have yet to tell us if it has spaces or special chars in it.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

cambalinho

so i did an empty project for share:
#include <iostream>

using namespace std;

int main()
{
    cout << "hello world" // error no ';'
    return 0;
}

on 'Logs & others' Window:
'Build Log' tab:
Quote
-------------- Clean: Debug in testefg (compiler: GNU GCC Compiler)---------------

Cleaned "testefg - Debug"

-------------- Build: Debug in testefg (compiler: GNU GCC Compiler)---------------

g++.exe -Wall -g  -c "C:\Users\Camba\Documents\Documentos de Programacao, Matematica e Fisica\CodeBlocks\testefg\Untitled1.cpp" -o obj\Debug\Untitled1.o
g++.exe  -o bin\Debug\testefg.exe obj\Debug\Untitled1.o   
C:\Users\Camba\Documents\Documentos de Programacao, Matematica e Fisica\CodeBlocks\testefg\Untitled1.cpp: In function 'int main()':
C:\Users\Camba\Documents\Documentos de Programacao, Matematica e Fisica\CodeBlocks\testefg\Untitled1.cpp:7:26: error: expected ';' before 'return'
     cout << "hello world"
                          ^
                          ;
     return 0;
     ~~~~~~               
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))


on 'Build Messages' tab:
Quote||=== Build: Debug in testefg (compiler: GNU GCC Compiler) ===|
Matematica e Fisica\CodeBlocks\testefg\Untitled1.cpp||In function 'int main()':|
Matematica e Fisica\CodeBlocks\testefg\Untitled1.cpp|7|error: expected ';' before 'return'|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
i just write normal and no copy paste.... no special chars in it.

cambalinho

i'm sorry, when you said 'has spaces or special chars in it.' do you mean folder name or something?

cambalinho

tested!!!!
the problem is:
- we can't use spaces on special characters on folders names... and maybe on project files names too.
thank you so much for to all... thank
maybe, in future, the problem can be fixed ;)
new project on a different folder name:
Quote||=== Build: Debug in testefg (compiler: GNU GCC Compiler) ===|
C:\Users\Camba\Documents\teste\Untitled2.cpp||In function 'int main()':|
C:\Users\Camba\Documents\teste\Untitled2.cpp|7|error: expected ';' before '}' token|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

Miguel Gimenez

I have just created a ticket.

EDIT: I Have checked current trunk (r12806) with spaces and accented characters in the path, and it works as it should, so I have closed the ticket.

cambalinho

is there another codeblocks version?
(i copy the my codeblocks projects folder(for test) to the previous folder and isn't working)

Miguel Gimenez

There are no more releases ATM, but there are nightlies (beta versions) that you can use just like a portable application.

cambalinho

i can't teste it, because it's missing some files:
- libgcc_s_seh-1.dll and other dependency dll files. i can go to Codeblocks folder and teste it.... but thanks for all
thank you.

BlueHazzard

Quote from: cambalinho on May 11, 2022, 09:46:16 PM
i can't teste it, because it's missing some files:
- libgcc_s_seh-1.dll and other dependency dll files. i can go to Codeblocks folder and teste it.... but thanks for all
thank you.
You have to read the instructions:
Quote
A link to the unicode windows wxWidget dll(s) for Code::Blocks : https://sourceforge.net/projects/codeblocks/files/Binaries/Nightlies/Prerequisites/wxmsw31u_gcc_cb_wx315_2D_gcc810-mingw64.7z
A link to Mingw64 dll's needed by Code::Blocks : http://sourceforge.net/projects/codeblocks/files/Binaries/Nightlies/Prerequisites/Mingw64dlls8.1.0.7z