Expecting expression but encountered end-of-file
BlitzMax Forums/BlitzMax Programming/Expecting expression but encountered end-of-file
| ||
All of a sudden I am getting this error in release mode:Building executable... Compiling:TestGame.bmx Compile Error: Expecting expression but encountered end-of-file Build Error: failed to compile H:/Dropbox/CodeMax/TestGame/TestGame.bmx [H:/Dropbox/CodeMax/TestGame/TitleScreen.bmx;1128;1] Building has been canceled because compiling couldn't be completed And when I compile in debug mode it compiles but it has become very slow!!! The thing is I havent changed TitleScreen.bmx in days............ ???? Any ideas? Cheers, Steve |
| ||
Is TestGame.bmx "including" files? I assume you somewhere opened a conditional (?win32) and forgot to close it (?). Another option is, that you opened up an "if" or "while"/"repeat"/"function"/"method"/"type" - but conditionals are what I often miss to close. bye Ron |
| ||
Slightly related, but after updating everything to the latest from the repo its' strange that compiling has also become incredibly slow for me too :/ |
| ||
Thanks Ron, I went thru the code and I did have a ?Debug command but no closing ? which took a bit to find, so I can now compile in Release mode again :) Debug mode is still acting a bit strange though... Starting.. DebugLog:Includes... DebugLog:CommonCode... DebugLog:LevelSelectScreen... AppArgs = H:\Dropbox\CodeMax\TestGame\TestGame.debug.exe AppArgs = log DebugLog: (17:10:45) SubPath = C:\ProgramData\The Revills Games/TestGame/ DebugLog: (17:10:54) GraphicsCreate - Trying WindowWidth = 1366 DebugLog: (17:10:54) GraphicsCreate - Trying WindowHeight = 768 Notice the 9 seconds pause... In Release mode: Starting.. AppArgs = H:\Dropbox\CodeMax\TestGame\TestGame.exe AppArgs = log DebugLog: (17:17:48) SubPath = C:\ProgramData\The Revills Games/TestGame/ DebugLog: (17:17:48) GraphicsCreate - Trying WindowWidth = 1366 DebugLog: (17:17:48) GraphicsCreate - Trying WindowHeight = 768 This has only started to happen today :( |
| ||
@ col Talking about maxmods-repo or about the official one ? If you also updated "bmk" - the newer BMKs (Brucey's of course) introduced this automatic-module-compilation approach. On my computer (non-ssd-hard-disc) this increased compilation time. Which is why "-quick" was introduced (not to mix up with "-q" for "quiet"). Using this, is then similar to the "vanilla BMK" way of doing things: assuming everything is up-to-date already. @9 seconds pause What is happening between these two lines? GC catching up? Some directory traversal? "Graphics create" sounds as if some GPU/renderer detection might happen (check if DX is available, if OGL is working ...). Saw some pauses on Windows-logs for my game too. Seems some computers take their time when probing the various renderpaths/engines. Debug then makes things worse or apparent. bye Ron |
| ||
It's every module with all the 'quick' options on or off - makes no difference, compiles 1 .c file every second or so where as it used to fly through them like a rocket. I don't want to hijack the thread with this just that I thought it might have been related but I think its something else, if I can't resolve it then I'll start a new thread. Cheers! |
| ||
Are you using Windows? If so, what version and do you have automatic updates on. I had a problem where an update screwed something up and some programs took forever to run. Try rolling back to a previous point and see if that helps. |
| ||
If you roll back to "not the latest git revisions", does it speedup again? If so, we could narrow down the issue. If it stays slow, the issue might be something else. bye Ron |
| ||
Okay my issue seems to be with setting the sound driver... In release mode: DebugLog: 09:56:41 Starting.. AppArgs = H:\Dropbox\CodeMax\TestGame\TestGame.exe AppArgs = log DebugLog:09:56:41 InitGameSetup - start The Revills Games/TestGame DebugLog:09:56:41 SubPath = C:\ProgramData\The Revills Games/TestGame/ DebugLog:09:56:41 Init Start DebugLog:09:56:41 Using correct path... DebugLog:09:56:41 Setting sound driver 0 DebugLog:09:56:41 ChangSoundDriver start d = OpenAL Generic Software DebugLog:09:56:41 EnableOpenALAudio DebugLog:09:56:41 SetAudioDriver DebugLog:09:56:41 IniUpdate DebugLog:09:56:41 FRL Init DebugLog:09:56:41 ChangSoundDriver End DebugLog:09:56:41 OSVersion Windows NT DebugLog:09:56:41 ChangSoundDriver start d = OpenAL Generic Software DebugLog:09:56:41 EnableOpenALAudio DebugLog:09:56:41 SetAudioDriver DebugLog:09:56:41 IniUpdate DebugLog:09:56:41 FRL Init DebugLog:09:56:41 ChangSoundDriver End DebugLog:09:56:41 Creating FRL DebugLog:09:56:41 Allocating channels DebugLog:09:56:41 Finish InitGameSetup DebugLog:09:56:41 GraphicsCreate - Trying WindowWidth = 1366 DebugLog:09:56:41 GraphicsCreate - Trying WindowHeight = 768 Debug Mode: DebugLog: 09:55:04 Starting.. AppArgs = H:\Dropbox\CodeMax\TestGame\TestGame.debug.exe AppArgs = log DebugLog:09:55:04 InitGameSetup - start The Revills Games/TestGame DebugLog:09:55:04 SubPath = C:\ProgramData\The Revills Games/TestGame/ DebugLog:09:55:04 Init Start DebugLog:09:55:04 Using correct path... DebugLog:09:55:04 Setting sound driver 0 DebugLog:09:55:04 ChangSoundDriver start d = OpenAL Generic Software DebugLog:09:55:04 EnableOpenALAudio DebugLog:09:55:12 SetAudioDriver DebugLog:09:55:13 IniUpdate DebugLog:09:55:13 FRL Init DebugLog:09:55:13 ChangSoundDriver End DebugLog:09:55:13 OSVersion Windows NT DebugLog:09:55:13 ChangSoundDriver start d = OpenAL Generic Software DebugLog:09:55:13 EnableOpenALAudio DebugLog:09:55:13 SetAudioDriver DebugLog:09:55:15 IniUpdate DebugLog:09:55:15 FRL Init DebugLog:09:55:15 ChangSoundDriver End DebugLog:09:55:15 Creating FRL DebugLog:09:55:15 Allocating channels DebugLog:09:55:15 Finish InitGameSetup DebugLog:09:55:15 GraphicsCreate - Trying WindowWidth = 1366 DebugLog:09:55:15 GraphicsCreate - Trying WindowHeight = 768 And Linking seems super slow in debugmode... Never been an issue before yesterday.... strange... |
| ||
Just applied Dave's (col) Windows Defender excluding "fix" and now it compiles super fast and I dont have the sound driver slowness issue!!! Now in debug mode: DebugLog: 10:21:45 Starting.. DebugLog:Includes... DebugLog:CommonCode... AppArgs = H:\Dropbox\CodeMax\TestGame\TestGame.debug.exe AppArgs = log DebugLog:10:21:45 InitGameSetup - start The Revills Games/TestGame DebugLog:10:21:45 SubPath = C:\ProgramData\The Revills Games/TestGame/ DebugLog:10:21:45 Init Start DebugLog:10:21:45 Using correct path... DebugLog:10:21:45 Setting sound driver 0 DebugLog:10:21:45 ChangSoundDriver start d = OpenAL Generic Software DebugLog:10:21:45 EnableOpenALAudio DebugLog:10:21:45 SetAudioDriver DebugLog:10:21:45 IniUpdate DebugLog:10:21:45 FRL Init DebugLog:10:21:45 ChangSoundDriver End DebugLog:10:21:45 OSVersion Windows NT DebugLog:10:21:45 ChangSoundDriver start d = OpenAL Generic Software DebugLog:10:21:45 EnableOpenALAudio DebugLog:10:21:45 SetAudioDriver DebugLog:10:21:45 IniUpdate DebugLog:10:21:45 FRL Init DebugLog:10:21:45 ChangSoundDriver End DebugLog:10:21:45 Creating FRL DebugLog:10:21:45 Allocating channels DebugLog:10:21:45 Finish InitGameSetup DebugLog:10:21:45 GraphicsCreate - Trying WindowWidth = 1366 DebugLog:10:21:45 GraphicsCreate - Trying WindowHeight = 768 |