Parsing error on last line of LCB file

LiveCode Builder is a language for extending LiveCode's capabilities, creating new object types as Widgets, and libraries that access lower-level APIs in OSes, applications, and DLLs.

Moderators: LCMark, LCfraser

Post Reply
trevix
Posts: 1077
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Parsing error on last line of LCB file

Post by trevix » Thu Aug 07, 2025 3:47 pm

Hello.
I keep getting the following error, no matter what:
16:33: Compiling module /Users/trevix/Desktop/MyTestB10/_TESTmieiClaude/ClaudeAppContents/extensionNew_12/com.trevix.minewbten/minewbten.lcb
16:33: Error: on line 636 ():
16:33: Error: /Users/trevix/Desktop/MyTestB10/_TESTmieiClaude/ClaudeAppContents/extensionNew_12/com.trevix.minewbten/minewbten.lcb:636:12: error: Parsing error: syntax error
end handler
^

16:33: Error: failed to compile module
16:33: Error: Could not compile module /Users/trevix/Desktop/MyTestB10/_TESTmieiClaude/ClaudeAppContents/extensionNew_12/com.trevix.minewbten
There are 636 lines in the LCB file.
If I remove the last handler, the parsing error moves again to the last line if it.
I now that debugging in LCB is tough, but this seems too much...

Is there a way to handle this?
Thanks
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4171
Joined: Sun Jan 07, 2007 9:12 pm

Re: Parsing error on last line of LCB file

Post by bn » Thu Aug 07, 2025 5:45 pm

Hi Trevix,

I can provoke that error when I omit

Code: Select all

end widget
as the last line.

Could that be the case for you? That is just a guess.

Or maybe another handler without end handler?

Kind regards
Bernd

trevix
Posts: 1077
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Re: Parsing error on last line of LCB file

Post by trevix » Fri Aug 08, 2025 9:06 am

Good catch!
I was missing "end library".
Thanks
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

Post Reply