Bug? Wrong error message during compilation

Sandman

Expert
Licensed User
Longtime User
In my layout I have a button called btnExample and the following designer script:

B4X:
btnSomethingElse.HorizontalCenter = 50%x

The layout does not contain a view with the name used in the script.

During compilation I get this error:

B4X:
B4A version: 6.80
Parsing code.    (0.04s)
Compiling code.    (0.28s)
Compiling layouts code.    Error
'=' expected.
Error File: layoutexample.bal

Go to the designer script page to debug this error.

This error message is not correct. Instead it should point out that there is no view named btnSomethingElse.
 

Domingo Garcia

Member
Licensed User
I'mhaving a similar problem, but i verified all the elements and they are all present with the right names. Still when I try to compile I get this:

B4A Version: 7.80
Parsing code. (0.07s)
Compiling code. (0.27s)
Compiling layouts code. Error
'(' expected.
Error File: login.bal
Go to the designer script page to debug this error.

----------------------------------------------------------------------
and I don' have any Scripts
 

Sandman

Expert
Licensed User
Longtime User
Just today I had the Designer go very weird on me, complaining about strange things. After fighting it for five minutes I gave up and just tried to restart the IDE. That solved the problem. Can you please restart your IDE and see if that makes a difference?
 

Domingo Garcia

Member
Licensed User
closed everything. rebooted machine (just in case). Still same error. I don't know if it's the compiler or the layout. Should I just create a new one from scratch.
 

Domingo Garcia

Member
Licensed User
I deleted the layout and recreated it and now it compiles without problem....I guess somehow the layout file was corrupted.
 
Top