|
Post by clamzonprozac on Jun 24, 2024 10:37:56 GMT 1
Howdy, I was just bitten again by one of my bad habits : sometimes when editing deep within a stack of include files I place a comment after a statement by using a colon, followed by a single quote, and then followed by my comment. Simple, one should think. Except if the quote is forgetfully omitted. The result is a terse "Compilation Failed" message, and many times scrolling back doesn't uncover a hint of a line number where the error occurred (FWIW: I use geany here). Yes, I have ways of hunting down the offending code area, but it takes time, but I'm hoping the error reporting mechanism(s) of BaCon can be modified to help out.
Thanks for the read! Kind Regards, -Roger
|
|
|
Post by Pjot on Jun 24, 2024 16:28:52 GMT 1
Hi Roger,
When trying to reproduce your scenario, I do not see a "compilation error"?
For example:
PRINT FILELEN("/etc/hosts") : This is a comment
This will produce a syntax error, showing the line number where the error occurs:
Syntax error: could not parse line 1 in file 'debug.bac': "This is a comment"
Can you provide an example of your code which delivers "Compilation failed"?
BR Peter
|
|
|
Post by clamzonprozac on Jun 27, 2024 5:03:28 GMT 1
Hi Peter, I was afraid it would be difficult to reproduce. I've come across this behavior again since my last post. This time a bit different: the result was a "Compilation failed" message, and scrolling back the error was properly listed along with yet
another legitimate error but appearing while processing the wrong include file. Odd. Very odd. When time permits, I'll try to come up with a sample set of files that demonstrate what I'm speaking of. BTW: at the moment I'm dealing with 4 includes leading to the "main" file where the GUI definitions live ( in the "older" style of : NAME, ATTACH, CALLBACK and friends).
Kind Regards, -Roger
|
|
|
Post by Pjot on Jun 29, 2024 17:35:13 GMT 1
Hi Roger,
If you have an example which demonstrates the issue, I'll be happy to fix it.
BR Peter
|
|
|
Post by clamzonprozac on Jul 4, 2024 10:52:45 GMT 1
Hi Peter, Thank you! If I can find an example, I'll send it over. Usually, I have to stumble over them. Kind Regards, -Roger
|
|