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.

AppGameKit Classic Chat / [SOLVED] Is there a compiler option to output erros to a file?

Author
Message
Arch-Ok
1
Years of Service
User Offline
Joined: 11th Jul 2019
Location:
Posted: 20th Nov 2020 12:22
It is really very hard for me to code in agk's ide and syntax. I need to get the errors of source code while compiling by agk, if any. Is there a solution for this?

The author of this post has marked a post as an answer.

Go to answer

Kevin Cross
17
Years of Service
User Offline
Joined: 15th Nov 2003
Location: London, UK
Posted: 20th Nov 2020 18:37 Edited at: 20th Nov 2020 18:38
You could try these functions and write out the errors to a file

https://www.appgamekit.com/documentation/Reference/Error/GetErrorOccurred.htm
https://www.appgamekit.com/documentation/Reference/Error/GetLastError.htm

You can also choose to report most errors or stop on any error.

https://www.appgamekit.com/documentation/Reference/Error/SetErrorMode.htm

EDIT: would be nice if this forum could auto detect links...
OryUI - A WIP AGK2 UI Framework
Arch-Ok
1
Years of Service
User Offline
Joined: 11th Jul 2019
Location:
Posted: 20th Nov 2020 19:38 Edited at: 20th Nov 2020 19:45
Thank you. I've already tried these. I don't mean runtime errors but compile errors.




this results with;

main.agc:13: error: "therewasanerror" is not a recognised function or command


I want to catch that if possible.
blink0k
Moderator
7
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 20th Nov 2020 20:00
What are you using to edit/compile your program?
Arch-Ok
1
Years of Service
User Offline
Joined: 11th Jul 2019
Location:
Posted: 20th Nov 2020 20:33 Edited at: 20th Nov 2020 20:39
I'm planning to use notepad++ for editing, agkint for interpreting (my own interpreter) and present the final code to agkcompiler.
I've designed notepad++ already, started to develop my own interpreter
I can not look at the agk geany ide while coding, may be that ide is the world's finest but i used to code in a very different way;

I always want to use "then", I want to type "end if" not "endif", I want to type "tr1 = timer" not "tr1 = timer()", I want to use "#define", I want to include any file from any where. These wishes can be done with my interpreter. I miss unsigned variables. I need to use asm instructions as I've cretaed a software 3d engine in freebasic and x86 asm. I'm sure it is very possible if the agk developer team wishes it.

For short, I have my own world of coding and I want to use agk's power but in my own way.

I'm so used to code in this way, with this theme;
https://eksiup.com/p/gs3251203xhj

attached more screen shots.

Attachments

Login to view attachments
blink0k
Moderator
7
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Arch-Ok
1
Years of Service
User Offline
Joined: 11th Jul 2019
Location:
Posted: 20th Nov 2020 20:44
Thank you, I've searched them already.
Arch-Ok
1
Years of Service
User Offline
Joined: 11th Jul 2019
Location:
Posted: 21st Nov 2020 23:42
Well the answer is no.

Yet, there are other ways.

Attachments

Login to view attachments
blink0k
Moderator
7
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 22nd Nov 2020 00:10
This post has been marked by the post author as the answer.
Arch-Ok
1
Years of Service
User Offline
Joined: 11th Jul 2019
Location:
Posted: 22nd Nov 2020 06:53
I did my search but never come to that page. Yet there are other ways and now I only press F5 in FBIDE for my interpreter.exe, not notpad++. Thank you very much. Now I can save my eyes

Login to post a reply

Server time is: 2020-12-03 14:13:57
Your offset time is: 2020-12-03 14:13:57