Had a weird situation with a Micro:Bit recently.
Developing code for a Robot Cart using the Kitroniks Robotics board. Added a second servo, seemed to work ok, then got to a part where a message flashed up briefly saying there was something wrong with the code and I should check it. No indication of what or why or where to look.
Initially thought the Kitroniks library was at fault. But after much investigation, creating a custom.ts file, losing the whole program (lucky I keep many backups) and removing the library the error still occurred.
Then I happened to be compiling in Javascript mode not block mode and a 1 line error appeared in the main.ts for about half a second then disappeared. After a few retries I think it said something about program too long and a number like 16 bytes or something. I removed part of the code and the new addition then worked ok.
Will have to look in more detail at the program space available etc…
To me this is a fault with Make code, such an error should not vanish but remain or there should be a log somewhere (maybe there is). If I knew it was banging up against the limits of the Micro:Bit I could have saved about 6 hours of frustration and changed my design to suit.
Most other compilers I have used have a detailed output of resources used and flag when you are pushing the limits.
Anyway, the adventure continues.
Cheers
Jim