Acknowledged

Monkey C / VS Code: macOS home folder contains exclamation mark fail to compile

As previously discussed here

My development machine which i utilize to code fail to compile "Your First Connect IQ app".

The culprit was my home folder name has exclamation mark as one of its character. After creating new account with safer username, everything build as expected.

Renaming home folder or account name is really cumbersome. Creating a dedicated "safe" username requires to setup a lot of things, which also add a lot complexity (installation, authentication for syncing, etc) which are also really tedious.

I've been using this laptop for almost a decade to develop lots of software with numerous variety of SDKs, libraries and programming languages, and compilers without any problems.

Please allow special characters to escape to Monkey C compiler.

Thank you.

Parents
  • As a workaround you could try creating a symlink with a safe name to your existing folder.

    e.g.

    ln -sf /Users/JRENG! /Users/jreng

    Whenever you use CIQ, you'd open VS Code (or use the terminal) in the safe path.

    Seems to me the biggest problem with that scheme is the SDK folder would still have an exclamation mark in it, which might still cause the build to fail (or not). If that's a problem, you could try to fix that by manually editing the following 2 files, which both have a reference to the location of the currently selected SDK:

    ~/Library/Application Support/Garmin/ConnectIQ/current-sdk.cfg

    ~/Library/Application Support/Garmin/ConnectIQ/sdkmanager-config.ini

    Or you could write a script to do this.

    I'm not saying you should have to do any of that, but it could work if this is a blocker for you.

Comment
  • As a workaround you could try creating a symlink with a safe name to your existing folder.

    e.g.

    ln -sf /Users/JRENG! /Users/jreng

    Whenever you use CIQ, you'd open VS Code (or use the terminal) in the safe path.

    Seems to me the biggest problem with that scheme is the SDK folder would still have an exclamation mark in it, which might still cause the build to fail (or not). If that's a problem, you could try to fix that by manually editing the following 2 files, which both have a reference to the location of the currently selected SDK:

    ~/Library/Application Support/Garmin/ConnectIQ/current-sdk.cfg

    ~/Library/Application Support/Garmin/ConnectIQ/sdkmanager-config.ini

    Or you could write a script to do this.

    I'm not saying you should have to do any of that, but it could work if this is a blocker for you.

Children
  • 1. Creating symlink does not work.
    2. I tried to move the whole sdks, and project, developer key, in "safe" name location. Change the path in

    ~/Library/Application Support/Garmin/ConnectIQ/current-sdk.cfg

    ~/Library/Application Support/Garmin/ConnectIQ/sdkmanager-config.ini

    It compiles. Simulator is running, but shows blank. 

    my terminal output

     *  Executing task in folder HelloWorld: java -Xms1g -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -jar /Users/Garmin/ConnectIQ/Sdks/connectiq-sdk-mac-4.1.7-2022-11-21-562b8a195/bin/monkeybrains.jar -o bin/HelloWorld.prg -f /Users/Garmin/projects/HelloWorld/monkey.jungle -y /Users/Garmin/developer_key -d instinct2s_sim -w -l 2 
    
    WARNING: instinct2s: The launcher icon (30x30) isn't compatible with the specified launcher icon size of the device 'instinct2s' (54x54). Image will be scaled to the target size.
     *  Terminal will be reused by tasks, press any key to close it.