Project

General

Profile

Bug #1074

Searching for included files which are not in use when transpiling. (Windows/Mac).

Added by malcolm harvey over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
01/17/2023
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

It seams quite at random this can happen, more often than not, if you put a folder under your application, eg: in this case, for example, I put an include folder in there which was not there before, with .aoz files and .aozinc files in it, and you then click to preview it, in the viewer, it can randomly bring up 70 messages say or more when transpile complete, searching yellow files looking for your code instructions or labels with gosub routines under them, even though I have not even included any of the .aoz or .aozinc file in my code. ie: I have not specified to include them at all, it just for whatever searches them regardless and brings up warnings in the message window.
You can see from the screenshots, that the first one transpiled ok which did not have the included folder in it and executed and ran the preview window ok, and no errors in the message pane.
The second screenshot, transpiled and executed the viewer as well, but you can see it contained many yellow error messages in the message pane.
It goes of looking in these files below. See all my notes on discord below. Happens on windows and mac in U38 currently.
It can cause alot of the time the transpiler to abort the run or stop prematurely).
(amiga.aoz,bobs.aoz,colours.aoz,dialogs.aoz,filesystem.aoz,keyboard_and_mouse.aoz,menus.aoz,rexx.aoz,speech.aoz,system.aoz,tracker.aoz). See my other notes on this previously in discord for more infomation on all this and other screenshots etc.
..
Something that did not happen at all, previous version of aoz when transpiling.
.
https://discord.com/channels/653893653940404224/707482106313441350/1063207610494500894
and
https://discord.com/channels/653893653940404224/707482106313441350/1059255263053488149
..
2) I found out as well why also the viewer does not work at times in (Amiga mode) on windows.
It is because of the trackker.xm files now or possibly and as well music.wav files now sitting in assets folder, again not being used in the actual code, but the fact that they are sitting there, caused it to just again bring up a blank message window after transpile if using the viewer only and not execute and run.
..
Also the same on the Mac(Amiga mode) would not run because of simply other files sitting in folders again filesystem/application or assets. (.aoz and .aozinc files sitting in an include folder).
As soon as I removed these other folders I had in there it transpiled and open the viewer ok as well.
.
So it seams the transpiler on windows and mac is looking at all files in all subfolders now regardless, in the root of your application and also in the assets and filesystem/application folder and whatever other files might be in there or in its subfolders, and if it finds a file in there not in your code, ramdonly, (im envisioning is all I can think its doing), it goes searching internally in aoz files or whatever other files the transpiler looks in when its working and if not found it just aborts and stops with a blank message pane.


Files

#1

Updated by malcolm harvey over 1 year ago

  • Subject changed from Searching for included files which are not in use when transpiling. (Windows/Amc). to Searching for included files which are not in use when transpiling. (Windows/Mac).
#2

Updated by malcolm harvey over 1 year ago

3)Also If your including a file eg:, Include "includes/variables.xxx" and its not in
that path, it just stops and pops up with a blank message window pane.
Currently does not tell you anything is missing or wrong.
.
In general tho if u specify a wrong filename, it should say, "File not found at line num".
It used to do this, again from what I see it just stops with a blank message pane now.
So yes making it very difficult to know what is wrong. This would help alot. Thx

#3

Updated by malcolm harvey about 1 year ago

re: Testing yellow errors again. Oddly today again I tested this again (Too see if yellow errors), (Amiga) mode manifest, and it transpilled in the viewer and executed ok, but then there was 142 yellow warrning errors looking in internal .aoz files (as below again). I then transpiled again in full screen browser and no yellow errors. So seams to be moreso transpiling for the viewer.
Again yellow files below that it thinks are my errors, but I have no errors in code at all. (False errors).
(amiga.aoz,bobs.aoz,colours.aoz,dialogs.aoz,filesystem.aoz,keyboard_and_mouse.aoz,menus.aoz,rexx.aoz,speech.aoz,system.aoz,tracker.aoz).

#4

Updated by malcolm harvey about 1 year ago

malcolm harvey wrote in #note-3:

re: Testing yellow errors again. Oddly today again I tested this again (Too see if yellow errors), (Amiga) mode manifest, and it transpilled in the viewer and executed ok, but then there was 142 yellow warrning errors looking in internal .aoz files (as below again). I then transpiled again in full screen browser and no yellow errors. So seams to be moreso transpiling for the viewer.
Again yellow files below that it thinks are my errors, but I have no errors in code at all. (False errors).
(amiga.aoz,bobs.aoz,colours.aoz,dialogs.aoz,filesystem.aoz,keyboard_and_mouse.aoz,menus.aoz,rexx.aoz,speech.aoz,system.aoz,tracker.aoz).

Again as above in point 2), I found that I had simply but too extra files in the assets folder, cb.mp3 and items.sprite, which were not used in my code. As soon as I removed these the yellow warning errors went away. So yes defiantly other files in assets or filesystem/application folder either in the root of those folder or in a subfolder under them will cause yellow error warnings for no reason.

#5

Updated by malcolm harvey about 1 year ago

  • Assignee changed from AOZ Studio Team to Francois Lionet
#6

Updated by malcolm harvey about 1 year ago

One last example here..
..
Tried it again today, definitely that yellow warning issue is pretty consistant even on the mac, here we see transpiling (to the viewer) mac, something with actually no errors (in the code) but it pops up looking at labels and instructions that it should not be doing.
If you re-run this again the warnings can go away but then it stops prematurely, if you change then to transpiling to the full screen browser, it then will transpile ok and run fine.
This again relates all to the same tickets for U38. 1070/1074.
This type of thing can happen in both windows and mac.
If you look at this screenshot it the line 62 says, Priority on and line 84 is just a label called roomdesc: but yet it goes of looking for these things in the yellow files incorrectly. (Does seam again more to do with the viewer, as above). It can also happen not only in amiga manifest mode but also on aoz manifest mode.
.
Note: If you do get it to transpile at all in the viewer and no errors, it will simply end but then the message windows pops up blank, thats it.

#7

Updated by malcolm harvey about 1 year ago

Same issue with U43.

#8

Updated by malcolm harvey about 1 year ago

  • Status changed from New to Closed

Ill close this ticket for now, as in u43, it seams to work unless putting multiple files of the same name with a diff ext in the filesystem/application folder, but this should not be done anyways as for now it clashes in aoz.

Also available in: Atom PDF