I am using the latest Garmin monkeyc vscode extension. But recently I find it cannot build my project. The prompt is just like above. Is there anyone encountering the similar problem? SDK manager is the latest as well.
I am using the latest Garmin monkeyc vscode extension. But recently I find it cannot build my project. The prompt is just like above. Is there anyone encountering the similar problem? SDK manager is the latest as well.
I created a bug report for this issue. Please upvote if you're seeing this too.
TL;DR If you're having this problem consistently, the workaround is to copy the PRG file over to %TEMP%\GARMIN\APPS manually.
I noticed another wrinkle to this problem when I was making changes to…
for the time being, use a link on the apps folder to your bin\<project>.prg:
C:\WINDOWS\system32>mklink %temp%\GARMIN\APPS\<project>.prg "<project folder>\bin\<project>.prg"…
for the time being, use a link on the apps folder to your bin\<project>.prg:
C:\WINDOWS\system32>mklink %temp%\GARMIN\APPS\<project>.prg "<project folder>\bin\<project>.prg"
works like a charm!
Ok then first thing tried the make link and all is working now thanks @berzerker.
Second point, i found the temp dir using Process Explorer thanks @flowState.
I can't explain this dir but...
The cd %temp% indicate the expected dir which is not the good one...
Maybe my experience will help something else.!!
This is an observation and should not be taken as a recommendation!
In the last couple weeks, I installed win 11 on my desktop. This greatly reduced problems with starting the sim from Eclipse or VS Code.
I needed a new laptop and now that some have win 11, I got one last week. I see the same there - launching the sim is much more reliable.
I'm running win 11 pro on both systems, and also running an older version of JRE:
java version "1.8.0_241"
Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)
I found quite some time back that newer versions of JRE made some things run VERY slowly, and is most notable when building an iq file. With 241, doing an export might take 5 minutes, where with the same app and a newer JRE, it takes more like 25 minutes, and this may also be involved with starting the sim - the timeout message.
To answer my own question, the temp folder used on Linux is indeed /tmp. So the PRG file needs to be manually copied to /tmp/GARMIN/APPS
I was initially confused because I couldn't find my app there - but that's because my app is an Audio Content Provider app, which gets generated at /tmp/GARMIN/APPS/MEDIA, rather than /tmp/GARMIN/APPS. I assume that applies to all OSes, not just Linux.
TL;DR - On Linux, copy your built PRG files to /tmp/GARMIN/APPS, or /tmp/GARMIN/APPS/MEDIA if your app is an Audio Content Provider.
On Linux the location of the temp folder is found by