B4J Question Error compiling lay-out files (even in non-ui)

MathiasM

Active Member
Licensed User
Hello

I have a non-ui project. Since today, I had several errors while running the project:

B4J Version: 9.00
Parsing code. (0.03s)
Java Version: 11
Building folders structure. (1.66s)
Compiling code. (6.38s)
Compiling layouts code. Error
Kan een gedeelte van het pad G:\Mijn Drive\Documenten\GitHub\Lockily_Controller\Objects\src\b4j\example\designerscripts niet vinden.

The last line translates to "Cannot find part of the path G:\....."

Restarting the IDE often fixes the problem, but sometimes I have to do it multiple times.

I use B4J 9.0

Thanks
 

MathiasM

Active Member
Licensed User
I'm just trying to run my project, and it fails because it tries to compile lay-out files. The problem is mostly fixed by restarting the B4J IDE, but not always.
See a Gif below
CzbGwRv.gif
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
Have you checked your files tab to make sure there are no layout files included
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Have you checked your files tab to make sure there are no layout files included
It seems he IS using layoutfiles in his project.

@MathiasM
Remove the layoutfiles from the project and sync the filesfolder and clean the project so that no single layout is included and no layoutfile should be compiled.

As written in #2 layoutfiles are NOT supported in nonui-Apps.
 
Upvote 0

MathiasM

Active Member
Licensed User
I'm 100% sure I didn't add layout files to this non-ui project.

I got the error again today, I went to check the src path. So:

\Objects\src\b4j

And this folder is just empty. It looks like B4J just wipes the folder and didn't wrote the new source, thus erroring on the lay-out folder (it just doesn't exist)

explorer_B9h4fkpVQe.png


I tried building the project, so in release mode, and the error slightly changes:

oSk52Z7.png


So this times the main.java file isn't found. Obviously because the folder \example just doesn't exist.

The previous step in the proces (Building folders structure) just silently fails. I still consider this a bug. As something in the build process clearly goes wrong. At this moment, I see no clear indication of when/why this happens.

After restarting and rerunning the project multiple times, the source get's effectivily written and the error dissapears.
 
Last edited:
Upvote 0

AKJammer

Active Member
Licensed User
Just an FYI... I've got the same issue with a ui project. Just upgraded to 9.10. the path ....\Objects\src\ is empty but it can't find ...\Objects\src\b4j\example\designerscripts.
Restarting B4J made it go away.
 
Upvote 0

MathiasM

Active Member
Licensed User
Hi @AKJammer Is it possible that your project path is on a network drive? This was the case in my networked environment. Moving it to a local drive seem to have fixed my problem lately.
 
Upvote 0

AKJammer

Active Member
Licensed User
Yes. I'd moved it to a network drive to make working between my main machine and my laptop easier. When I moved it back, the error went away. I'm thinking it's a latency thing with accessing the folders, but <shrug>. Something for one of the experts to dive into I guess.
Thanks for confirming.
 
Upvote 0
Top