Bug? Compiler error

kohle

Active Member
Licensed User
Longtime User
This behavior I only want to report. The editor/compiler should interpret this as an error
at compile time not at runtime.

I was typing some code very fast and it happen that typed a : ^ , but didnt see.

B4X:
NavControl = Nav
    Page1.Initialize("Page1")
    Page1.Title = "kitAPP"^
    Page1.RootPanel.LoadLayout("lay_main")

I compiled the project, everything fine , the app was installed via bridge, but when it started it showed in the log
the error :

B4X:
Application_Start
Error occurred on line: 70 (Main)
Error opening stream: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory" UserInfo={_kCFStreamErrorCodeKey=2, _kCFStreamErrorDomainKey=1}
Stack Trace: (
  CoreFoundation       <redacted> + 148
  libobjc.A.dylib      objc_exception_throw + 56
  CoreFoundation       <redacted> + 0
  kitaPP               -[B4IFile OpenInput::] + 436
  kitaPP               -[B4ILayoutBuilder loadLayout:::] + 652
  kitaPP               -[B4IPanelWrapper LoadLayout::] + 204
  kitaPP               -[b4i_main _application_start:] + 1948
  CoreFoundation       <redacted> + 144
  CoreFoundation       <redacted> + 292
  kitaPP               +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1624
 kitaPP               -[B4IShell runMethod:] + 448
 kitaPP               -[B4IShell raiseEventImpl:method:args::] + 1784
 kitaPP               -[B4IShellBI raiseEvent:event:params:] + 1408
 kitaPP               __33-[B4I raiseUIEvent:event:params:]_block_invoke + 60
 libdispatch.dylib    <redacted> + 24
 libdispatch.dylib    <redacted> + 16
 libdispatch.dylib    <redacted> + 1016
 CoreFoundation       <redacted> + 12
 CoreFoundation       <redacted> + 2012
 CoreFoundation       CFRunLoopRunSpecific + 436
 GraphicsServices     GSEventRunModal + 100
 UIKit                UIApplicationMain + 236
 kitaPP               main + 124
 libdyld.dylib        <redacted> + 4
)
Application_Active
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
I don't think that it is related to this character. It will not let you compile with it:

SS-2018-02-05_13.16.20.png


The error suggests that the layout file is missing. I cannot say why it is missing. If it is listed in the files tab then you should uninstall the existing app, clean the project and run it again.
 

kohle

Active Member
Licensed User
Longtime User
strange, Layout was there and could be opened. (screenshot)
I deinstalled on the iphone and cleared the project.
Start bridge, compile, get short black on the iphone, and goes to the home screen of iphone.
In the editor shows that the app is not running
 

Attachments

  • 05-02-_2018_12-24-59.png
    05-02-_2018_12-24-59.png
    97.2 KB · Views: 270

kohle

Active Member
Licensed User
Longtime User
cleared the app project again. didnt start bridge, compiled, waited until finished, started bridge , and app installed an works.
What can I say
 
Top