Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Synergy Editor compiler errors

Author
Message
Brightside_
10
Years of Service
User Offline
Joined: 27th Oct 2013
Location:
Posted: 16th Oct 2015 21:23 Edited at: 16th Oct 2015 21:25
Hi!
Im using Synergy Editor.Everything fine but when i compile code with errors i get this message.

Compiler find the error but I cant get to line which it consists.
When error is because of "if - then - endif" mismatch I get to where error is in the code. With other errors editor just return project line but I cant get to it anyway

Attachments

Login to view attachments
John Y
Synergy Editor Developer
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 17th Oct 2015 14:40
Hi Brightside_,

There is a Go To Project Line menu item, I think it is under the Edit menu. This will help you navigate to line 5394.
Synergy Editor - Available for free HERE!
Brightside_
10
Years of Service
User Offline
Joined: 27th Oct 2013
Location:
Posted: 17th Oct 2015 14:47 Edited at: 17th Oct 2015 14:48
Quote: "There is a Go To Project Line menu item, I think it is under the Edit menu. This will help you navigate to line 5394."

This option doesnt work at all for me.
Only bring to front included file which consists this code line but not line itself
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 17th Oct 2015 17:43
Before compiling the ide must combine a multi-document project into one dba file. Based on the original editor, this file is named FullSourceDump.dba and is located in the Dark Basic Professional Online\TEMP folder.
John Y
Synergy Editor Developer
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 19th Oct 2015 05:55
Quote: "Only bring to front included file which consists this code line but not line itself"


Does it go to line 5394?

I think if it is going to that line, but the line doesn't contain the code you see listed then this is a compiler issue. The compiler is returning an incorrect line number, and Synergy Editor is going to to that line.
Synergy Editor - Available for free HERE!
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 19th Oct 2015 17:44 Edited at: 19th Oct 2015 17:47
The compiler is generating the errors line number from the combined modules. Here is three modules, source attached. This will generate an error in line 28 even though not one module contain a line 28.

Test.dba



init.dba


func.dba


Here is the combined code.

FullSourceDump.dba

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-04-26 15:22:43
Your offset time is: 2024-04-26 15:22:43