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"…
This was happening to me. I saw that new files was copied to %TEMP%\GARMIN\APPS folder but the name was truncated. I changed the workspace folder name to remove the space it had and it started working (worskspace folder is sued to name the prg file).
TL;DR: check if your workspace folder name has a space and remove it.
I was having the same issue and noticed that a new files was always created in that folder but the name was truncated. The solution for me was to change the workspace folder name and remove the space it had. It seems that when the file is copied to the TEMP folder they are not checking for spaces or using "" around the file name.
TL;DR: check if your workspace folder has a space in the name and remove it.
upgraded sdk to 4.1.1 and failed to connect: is back, and previous fixes wont work anymore. anyone?
Same issue:
the simulator is running, but the app not run,
Environment:
Visual Studio Code v1.71.2
Windows 11
Monkey C plugin v1.0.5
Java SDK v11.0.16.1
Connect IQ SDK 4.1.5
app type: watch face
app full filepath: C:\Users\xiaoc\AppData\Local\Temp\GARMIN\APPS
source bin full filepath: D:\Workspace\Garmin\ftest3\bin
Try deleting the folder C:\Users\xiaoc\AppData\Local\Temp\GARMIN . Note that at some point in the recent past we renamed the GARMIN folder to com.garmin.connectiq, so you might look and see if you have C:\Users\xiaoc\AppData\Local\Temp\com.garmin.connectiq and delete that one as well.
It is possible that there is some difference between Java 8 that we are using internally and the Java 11 that you are using. Have you successfully used Java 11 before?
Thankey you for reply! but the issue still exists
Now I delete the folder "C:\Users\xiaoc\AppData\Local\Temp\GARMIN" and "C:\Users\xiaoc\AppData\Local\Temp\com.garmin.connectiq"
change the JAVA SDK version to 1.8.0 341
I have successfully used Java 8 before.
for this issue,I try to use Java 8、Java 11、Java 17,
now app full path: "C:\Users\xiaoc\AppData\Local\Temp\com.garmin.connectiq\GARMIN\APPS"
the simulator is running, but the app not run,
Executing task in folder Xtest1: D:\Development\Java\jdk1.8.0_341\bin\java.exe
-Xms1g -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true
-jar c:\Users\xiaoc\AppData\Roaming\Garmin\ConnectIQ\Sdks\
connectiq-sdk-win-4.1.5-2022-08-03-6e17bf167\bin\monkeybrains.jar
-o bin\Xtest1.prg -f d:\Workspace\Garmin\Xtest1\monkey.jungle
-y d:\Workspace\Garmin\garmin_developer_key -d fenix6pro_sim -w
Is this something that you can reproduce with any app, or is it an issue with just this one app?
Have you tried running the shown command at the command line? Does that show any errors?
all apps have this problem,create new project, SDK samples,and my project create before
I try running the shown command at the command line, no errors.d:\Workspace\Garmin\Xtest1>D:\Development\Java\jdk1.8.0_341\bin\java.exe
-Xms1g -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true
-jar c:\Users\xiaoc\AppData\Roaming\Garmin\ConnectIQ\Sdks\connectiq-sdk-win-4.1.5
-2022-08-03-6e17bf167\bin\monkeybrains.jar
-o bin\Xtest1.prg -f d:\Workspace\Garmin\Xtest1\monkey.jungle
-y d:\Workspace\Garmin\garmin_developer_key -d fenix6pro_sim -w
WARNING: The launcher icon (30x30) isn't compatible with the specified launcher
icon size of the device 'fenix6pro' (40x40). Image will be scaled to the target
size.
d:\Workspace\Garmin\Xtest1>
Every app. I have to restart vscode temporarily.