Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: cambalinho on May 08, 2022, 06:51:36 pm

Title: IDE error: why double click, on error list, don't go to the line?
Post by: cambalinho on May 08, 2022, 06:51:36 pm
when i compile and i get an error, we get the error line... seems normal... but when i double click, with mouse button, nothing happens.
why isn't going to the error\warning line?
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: stahta01 on May 08, 2022, 07:00:37 pm
Are you using an custom makefile CB project?
If yes, it is a known issues.

If no, it should work.

Tim S.
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: cambalinho on May 08, 2022, 07:25:10 pm
"Are you using an custom makefile CB project?"
honestly what is 'an custom makefile CB project'?
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: stahta01 on May 08, 2022, 07:26:58 pm
Did you create a CB project?
If so, how did you create it?
If you used cmake then you likely have an custom makefile CB project.

Tim S.
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: cambalinho on May 08, 2022, 07:31:52 pm
just for test, i created an empty project with CPP file.
the olders projects have the same problem :(
but, before reinstall the windows, the problem wasn't there :(
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: stahta01 on May 08, 2022, 07:35:36 pm
The problem will not be fixed by reinstalling windows!
The problem is likely caused by something; but, you need to post information for someone to help you.

CB Version?
Windows Version?

Win11 has not been out long enough to find all the CB related issues. This might be one.

Tim S.
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: cambalinho on May 08, 2022, 07:41:31 pm
honestly i don't know what i did for get these problem!!!
i use Windows 10, code blocks 20.03.
what you need more?
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: cambalinho on May 08, 2022, 07:53:53 pm
when i do Ctrl+G the line window is showed... i add the line, but nothing happens :(
something is wrong between the Logs&Others - Build Messages and the editor window
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: stahta01 on May 08, 2022, 08:04:27 pm
when i do Ctrl+G the line window is showed... i add the line, but nothing happens :(
something is wrong between the Logs&Others - Build Messages and the editor window

I think you are going to have to wait a few days and hope someone have something to suggest.

Tim S.
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: cambalinho on May 08, 2022, 08:10:53 pm
i tryied reinstall the codeblock, but the problem remains :(
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: BlueHazzard on May 09, 2022, 12:09:23 am
Be sure you are in the "Build message" tab and not the build log tab
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: Miguel Gimenez on May 09, 2022, 09:06:13 am
Is there a non-ASCII character in the project path?
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: stahta01 on May 09, 2022, 01:15:55 pm
Is there a non-ASCII character in the project path?

Or a space?

Tim S.
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: cambalinho on May 09, 2022, 09:51:12 pm
https://imgur.com/BGLmR4S
if i double click on message error, nothing happens... the text cursor don't go to the error line :(
like you see on image, i'm on  'Build Messages'
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: cambalinho on May 09, 2022, 09:54:42 pm
maybe i disable something and i don't know what
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: BlueHazzard on May 09, 2022, 11:30:26 pm
There should be no setting to modify this.
You have not answered the other questions....
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: 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.
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: Pecan on May 10, 2022, 06:32:48 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.
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: 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 :(
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: Pecan on May 10, 2022, 08:54:14 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.
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: cambalinho on May 10, 2022, 09:43:22 pm
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 :(
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: stahta01 on May 10, 2022, 10:40:49 pm
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 (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.
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: cambalinho on May 10, 2022, 10:55:43 pm
so i did an empty project for share:
Code
#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.
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: cambalinho on May 10, 2022, 11:02:59 pm
i'm sorry, when you said 'has spaces or special chars in it.' do you mean folder name or something?
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: cambalinho on May 10, 2022, 11:07:13 pm
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)) ===|
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: Miguel Gimenez on May 11, 2022, 09:50:12 am
I have just created a ticket (https://sourceforge.net/p/codeblocks/tickets/1267/).

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.
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: cambalinho on May 11, 2022, 09:09:29 pm
is there another codeblocks version?
(i copy the my codeblocks projects folder(for test) to the previous folder and isn't working)
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: Miguel Gimenez on May 11, 2022, 09:33:39 pm
There are no more releases ATM, but there are nightlies (https://forums.codeblocks.org/index.php/topic,24945.0.html) (beta versions) that you can use just like a portable application.
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: 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.
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: BlueHazzard on May 11, 2022, 10:30:07 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
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: cambalinho on May 11, 2022, 11:18:40 pm
tested. but when i use a folder name with spaces or special characters, the problem  remains :(
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: BlueHazzard on May 12, 2022, 10:55:27 am
In the "Build messages" tab, where you double click, are there the correct line number and file name?
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: cambalinho on May 12, 2022, 09:00:19 pm
BlueHazzard: Yes. the problem was, again, using a folder names with spaces or special characters.
using a normal folder name( no spaces or special characters), the double click works fine.

Miguel Gimenez did an update for, maybe, next CodeBlocks version.

Miguel Gimenez: correct me a different question: if we use the CodeBlocks last version, the link(when we execute the CodeBlocks, the 'Start here' tab) don't go to download page?(or do nothing)
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: Miguel Gimenez on May 12, 2022, 10:07:45 pm
If you are asking about the top link (under the logo), clicking on it just copies the link text to the clipboard. This IMHO is counter intuitive.
Title: Re: IDE error: why double click, on error list, don't go to the line?
Post by: cambalinho on May 12, 2022, 11:02:33 pm
thanks for correct me...
thanks for all to all