-
-
Notifications
You must be signed in to change notification settings - Fork 443
ARDUINO_USER_AGENT environment variable not set #2318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you for reporting it
IDE2 has never set any environment variables. I see this is an issue in the CLI: arduino/arduino-cli#2499. I keep this issue open for visibility. |
I tested the new CLI 0.35.1 release just now. Can confirm it defines ARDUINO_USER_AGENT. Will test IDE nightly builds to confirm here. Hopefully nightly builds have CLI 0.35.1 soon? |
Closes #2318 Signed-off-by: Akos Kitta <[email protected]>
@PaulStoffregen, can you provide a link to the modified tool for macOS (Intel)? I want to verify #2332.
I got this error when compiling in IDE2:
Thank you! |
Will build a MacOS copy in several hours. Right now I have a Windows test machine set up on my workbench. Need to first wrap up this work with Windows before I can put it away and set up my Mac. |
You don't need to. Thank you! You've already helped a lot by checking the build from the PR (#2332 (comment)). I've set up my Linux env and will go ahead with the already attached binary for Linux. |
I built the modified teensy_size for MacOS. |
Closes #2318 Signed-off-by: Akos Kitta <[email protected]>
Thank you! I have verified it on macOS: Before: ![]() After: ![]() |
Describe the problem
Latest IDE nightly builds are not setting the ARDUINO_USER_AGENT environment variable when running tools.
To reproduce
Using Linux x86-64:
1: File - Preferences, add Teensy URL
https://www.pjrc.com/teensy/package_teensy_index.json
2: Boards Manager, Install Teensy 0.59.4
3: Copy this modified teensy_size tool to ~/.arduino15/packages/teensy/tools/teensy-tools/0.59.4/
4: Click Verify and look for "ARDUINO_USER_AGENT = " in the output panel.
Alternately, edit the source code for any tool to print the ARDUINO_USER_AGENT environment variable. This copy of teensy_size merely has these lines added:
Expected behavior
The ARDUINO_USER_AGENT environment variable is supposed to be set, according to the Platform Specification, under "Environment variables":
https://arduino.github.io/arduino-cli/0.35/platform-specification/#environment-variables
Arduino IDE 2.2.1 does it correctly:
Arduino IDE version
arduino-ide_nightly-20231227_Linux_64bit
Operating system
Linux
Operating system version
Ubuntu 22.04
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: