Hi,
I just begin to use Geany. It is really a very good IDE. I use GCBASIC to create programs for microchips PIC. I use Linux version, UBUNTU.
Everything works but when there are errors after compilation, I can see error lines in red in Compiler tab, when I click on line, it doesnt jump to the line in editor. I get error, ther Cannot open file ...
Here are my screenshots.
I make a simple program for testing.
There is screen shot after compilation with errors. The second is after click on line with error.
At the bottom You cacn see there is error opening file. But the file is opened in editor.
It is bug or something need to be setted ?
Please help
Thank You
Andrej
On Wed, 7 Nov 2018 at 19:55, andrej.meszaros@agromel.sk wrote:
Hi,
I just begin to use Geany. It is really a very good IDE. I use GCBASIC to create programs for microchips PIC. I use Linux version, UBUNTU.
Everything works but when there are errors after compilation, I can see error lines in red in Compiler tab, when I click on line, it doesnt jump to the line in editor. I get error, ther Cannot open file ...
Here are my screenshots.
I make a simple program for testing.
There is screen shot after compilation with errors. The second is after click on line with error.
At the bottom You cacn see there is error opening file. But the file is opened in editor.
It is bug or something need to be setted ?
What is the build command you are using?
Cheers Lex
Please help
Thank You
Andrej _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
On 2018-11-07 11:17, Lex Trotman wrote:
On Wed, 7 Nov 2018 at 19:55, andrej.meszaros@agromel.sk wrote:
Hi,
I just begin to use Geany. It is really a very good IDE. I use GCBASIC to create programs for microchips PIC. I use Linux version, UBUNTU.
Everything works but when there are errors after compilation, I can see error lines in red in Compiler tab, when I click on line, it doesnt jump to the line in editor. I get error, ther Cannot open file ...
Here are my screenshots.
I make a simple program for testing.
There is screen shot after compilation with errors. The second is after click on line with error.
At the bottom You cacn see there is error opening file. But the file is opened in editor.
It is bug or something need to be setted ?
What is the build command you are using?
Cheers Lex
Please help
Thank You
Andrej _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Hi,i use "/opt/GCBASIC/makehex.sh %f"
Regards
Andrej
On Wed, 7 Nov 2018 at 20:24, andrej.meszaros@agromel.sk wrote:
On 2018-11-07 11:17, Lex Trotman wrote:
On Wed, 7 Nov 2018 at 19:55, andrej.meszaros@agromel.sk wrote:
Hi,
I just begin to use Geany. It is really a very good IDE. I use GCBASIC to create programs for microchips PIC. I use Linux version, UBUNTU.
Everything works but when there are errors after compilation, I can see error lines in red in Compiler tab, when I click on line, it doesnt jump to the line in editor. I get error, ther Cannot open file ...
Here are my screenshots.
I make a simple program for testing.
There is screen shot after compilation with errors. The second is after click on line with error.
At the bottom You cacn see there is error opening file. But the file is opened in editor.
It is bug or something need to be setted ?
What is the build command you are using?
Cheers Lex
Please help
Thank You
Andrej _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Hi,i use "/opt/GCBASIC/makehex.sh %f"
Ok, thats a shell script so I don't know what its doing.
It would appear that the location of the file as the build system thinks it is doesn't agree with where the editor thinks it is, otherwise it would just jump to the line in the already open buffer.
Not knowing what the script does and not knowing your directory layout its hard to help in detail. Perhaps you could check that the script is running in the directory of the open file, since the error message only gives the basic file name without any path.
Cheers Lex
Regards
Andrej _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
I modified the script adding the path but the result is the same. Intristing is that the error message has the full path to the file. I mean the error message that can not open file. There is a full path to the file.
I dont use other language like C. But when somebody can try with other compiler if the result is the same ?
Odoslané z BlueMail
7. 11. 2018, 11:41, at 11:41, Lex Trotman elextr@gmail.com napísal:
On Wed, 7 Nov 2018 at 20:24, andrej.meszaros@agromel.sk wrote:
On 2018-11-07 11:17, Lex Trotman wrote:
On Wed, 7 Nov 2018 at 19:55, andrej.meszaros@agromel.sk wrote:
Hi,
I just begin to use Geany. It is really a very good IDE. I use
GCBASIC
to create programs for microchips PIC. I use Linux version, UBUNTU.
Everything works but when there are errors after compilation, I
can
see error lines in red in Compiler tab, when I click on line, it doesnt jump to the line in editor. I get error, ther Cannot open file ...
Here are my screenshots.
I make a simple program for testing.
There is screen shot after compilation with errors. The second is after click on line with error.
At the bottom You cacn see there is error opening file. But the
file
is opened in editor.
It is bug or something need to be setted ?
What is the build command you are using?
Cheers Lex
Please help
Thank You
Andrej _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Hi,i use "/opt/GCBASIC/makehex.sh %f"
Ok, thats a shell script so I don't know what its doing.
It would appear that the location of the file as the build system thinks it is doesn't agree with where the editor thinks it is, otherwise it would just jump to the line in the already open buffer.
Not knowing what the script does and not knowing your directory layout its hard to help in detail. Perhaps you could check that the script is running in the directory of the open file, since the error message only gives the basic file name without any path.
Cheers Lex
Regards
Andrej _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Le 07/11/2018 à 11:41, Lex Trotman a écrit :
[…] It would appear that the location of the file as the build system thinks it is doesn't agree with where the editor thinks it is, otherwise it would just jump to the line in the already open buffer.
Isn't the problem simply that the format of the error message doesn't match the default error_regex? see https://www.geany.org/manual/#build-settings-section
Regards, Colomban
On Thu, 8 Nov 2018 at 09:27, Colomban Wendling lists.ban@herbesfolles.org wrote:
Le 07/11/2018 à 11:41, Lex Trotman a écrit :
[…] It would appear that the location of the file as the build system thinks it is doesn't agree with where the editor thinks it is, otherwise it would just jump to the line in the already open buffer.
Isn't the problem simply that the format of the error message doesn't match the default error_regex? see https://www.geany.org/manual/#build-settings-section
Well, the images in the OP shows that the error message is recognised as an error (its red and clickable), and its trying to find the right filename, just its looking for it in the wrong place. So presumably the weird fallback parsing for basic in msgwindow.c:parse_compiler_error_line() is working after the regex fails.
Cheers Lex
Regards, Colomban _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
I make some tests.
Make C project. Make errors in it. Compile, Get errors. Click, and it works.
The error line uses this format : <file name> ":" <line number with error> ":" This format can recognize the Geany.
The error line from GCBasic compiler is a little bit different. <file name> "(" <line number with error> ")" This is not recognized correctly.
So I need to change the regex.
Where can I find regex and how to change to get the correct format ?
Can somebody help ?
Regards
Andrej
On 2018-11-08 01:30, Lex Trotman wrote:
On Thu, 8 Nov 2018 at 09:27, Colomban Wendling lists.ban@herbesfolles.org wrote:
Le 07/11/2018 à 11:41, Lex Trotman a écrit :
[…] It would appear that the location of the file as the build system thinks it is doesn't agree with where the editor thinks it is, otherwise it would just jump to the line in the already open buffer.
Isn't the problem simply that the format of the error message doesn't match the default error_regex? see https://www.geany.org/manual/#build-settings-section
Well, the images in the OP shows that the error message is recognised as an error (its red and clickable), and its trying to find the right filename, just its looking for it in the wrong place. So presumably the weird fallback parsing for basic in msgwindow.c:parse_compiler_error_line() is working after the regex fails.
Cheers Lex
Regards, Colomban _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
After research on internet and regex ... a found a solution.
Add this regex in build settings : (.+) ([^\d]*(\d+)[^\d]*)
This works, when I click on error line, the line is showed in editor.
Andrej
On 2018-11-08 10:52, andrej.meszaros@agromel.sk wrote:
I make some tests.
Make C project. Make errors in it. Compile, Get errors. Click, and it works.
The error line uses this format : <file name> ":" <line number with error> ":" This format can recognize the Geany.
The error line from GCBasic compiler is a little bit different. <file name> "(" <line number with error> ")" This is not recognized correctly.
So I need to change the regex.
Where can I find regex and how to change to get the correct format ?
Can somebody help ?
Regards
Andrej
On 2018-11-08 01:30, Lex Trotman wrote:
On Thu, 8 Nov 2018 at 09:27, Colomban Wendling lists.ban@herbesfolles.org wrote:
Le 07/11/2018 à 11:41, Lex Trotman a écrit :
[…] It would appear that the location of the file as the build system thinks it is doesn't agree with where the editor thinks it is, otherwise it would just jump to the line in the already open buffer.
Isn't the problem simply that the format of the error message doesn't match the default error_regex? see https://www.geany.org/manual/#build-settings-section
Well, the images in the OP shows that the error message is recognised as an error (its red and clickable), and its trying to find the right filename, just its looking for it in the wrong place. So presumably the weird fallback parsing for basic in msgwindow.c:parse_compiler_error_line() is working after the regex fails.
Cheers Lex
Regards, Colomban _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users