Arduino Create Agent - Open Configuration bug

Hi,

After installing Arduino Create Agent, clicking "Open Configuration" in the dropdown takes no action. After finding and associating config.ini with TextEdit, Open Configuration works. It seems like .ini files are not associated with a text editor on Mac by default. This caused me and a few folks around me some confusion while all installing ACA around the same time.

I'm using a MacBook Pro, Sonoma 14.4.1, Apple silicon.

Happy to provide other details if necessary!

1 Like

I have the same problem. Could you provide more information on how to fix it please?

Same here

Same. Is there more info you can provide @arduadam?

Hi @gold_bird11, @calexh09, and @ashbro278. The default configuration of Arduino Create Agent will work fine for 99.9% of users. You might expect that the "Open Configuration" menu item would open up a friendly GUI where you can easily configure useful behavior of the application. That is not the case. The menu item is intended to open a INI format configuration file that contains some cryptic configuration settings that would only need to be adjusted for certain very rare and advanced use cases. You can see what the configuration file looks like here:

gc = std  # Type of garbage collection. std = Normal garbage collection allowing system to decide (this has been known to cause a stop the world in the middle of a CNC job which can cause lost responses from the CNC controller and thus stalled jobs. use max instead to solve.), off = let memory grow unbounded (you have to send in the gc command manually to garbage collect or you will run out of RAM eventually), max = Force garbage collection on each recv or send on a serial port (this minimizes stop the world events and thus lost serial responses, but increases CPU usage)
hostname = unknown-hostname  # Override the hostname we get from the OS
regex = usb|acm|com  # Regular expression to filter serial port list
v = true  # show debug logging
appName = CreateAgent/Stable
updateUrl = https://downloads.arduino.cc/
origins = https://local.arduino.cc:8000
#httpProxy = http://your.proxy:port # Proxy server for HTTP requests
crashreport = false # enable crashreport logging
autostartMacOS = true # the Arduino Create Agent is able to start automatically after login on macOS (launchd agent)

So the easiest solution to the problem of the "Open Configuration" menu item not opening the configuration file is to simply not click that "Open Configuration" menu item, since it probably wouldn't be useful to you anyway.

In case you actually do have a need to adjust one of those configuration settings, since you aren't likely to need to open it frequently, the most simple solution will be to open the file directly in a text editor, make the necessary edits, then save the file. The file is at the following path:

If you are using Linux

/home/<username>/ArduinoCreateAgent/config.ini

(where <username> is your Linux username)

If you are using macOS

/Users/<username>/Library/Application Support/ArduinoCreateAgent/config.ini

(where <username> is your macOS username)


:exclamation: The Library folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut.


If you are using Windows

C:\Users\<username>\AppData\Roaming\ArduinoCreateAgent\config.ini

(where <username> is your Windows username)


:exclamation: If looking for it with your file manager or command line, note that the AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".


It won’t show anything in the Finder when I search that in Spotlight for MacOS

It seems that Spotlight can only be used to search for the parent folder of the config.ini file, not the file itself.

So type this path in Spotlight:

/Users/<username>/Library/Application Support/ArduinoCreateAgent

(where <username> is your macOS username)

Click on the Finder result. That will open the ArduinoCreateAgent folder in Finder. You should see a file named config.ini in that folder. You can then open the file in any text editor.


Would you mind telling me why you want to change the configuration? I would like to understand why so many different people asked about this over the course of only several hours. That understanding might allow me to more effectively support the Arduino Create Agent users.

Hello @ptillisch
I do not know for the other users, but I am trying to get the configuration to open so I can make it compatible with Crunchlabs IDE. The Crunchlabs IDE shows that it cannot connect to the Arduino Create Agent, and I need to configure it so that it shows my board on their IDE.

1 Like

Hi @ptillisch and @ashbro278! The reason I need to modify the config file is also so I can update it for the Hack Pack IDE. I will try your fix @ptillisch, then give you an update. Thanks

1 Like

@ptillisch there is not a Finder result in Spotlight for me when I try that. I don't know if this is unrelated, but there wasn't really I had to do when installing. I just had to drag it over to the Applications folder and that was it, no installation portal or anything. I did have to update the HTTPS certificates though. I have tried installing and re-installing the Arduino Create Agent, if that helps.

@ptillisch Thank you for this detailed response! I was struggling to find the config.ini file myself. In case it's helpful for anyone else, my workaround was to create a new doc, give it the .ini extension, and then associate it with a text editor:

  1. Open textEdit
  2. Create "New Document"
  3. Save new document to desktop as Untitled.rtx
  4. Right click Untitled.rtx, "Get Info"
  5. Under the "Name & Extension" dropdown, change Untitled.rtx to Untitled.ini
  6. Hit enter. In the "Are you sure?" pop-up, choose "Use .ini" to confirm that's the extension you want.
  7. Open Untitled.ini from desktop. Select textEdit as the default text application for .ini files
  8. Restart ACA. You should be able to use "open configuration" now and have the text window populate.

In retrospect, this is more a default mac configuration issue than an Arduino Create Agent issue, and so maybe should have dropped into an Apple forum (if those even exist)... Thanks for your solution!

2 Likes

Unfortunately I'm not sure where it would be then. The config.ini file is automatically generated with the default configuration values the first time you run Arduino Create Agent.

Try the procedure described by @arduadam a try. Please let us know what is the path of the config.ini file that is opened in TextEdit at the last step.

Hi @ptillisch and @arduadam! @arduadam your fix worked. I did have to set the file as an .ini then open it with text edit, but after that I could open config.ini for ACA and got the config files updated for the Ctunchlabs IDE. Thx for all of your help guys! :smiling_face: :hugs:

1 Like

Hey @arduadam,
Thank you so much for this solution. It worked great for me. I am very grateful.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.