-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
All GIT Versions Higher than 3.0.2 Can't Find the Arduino Preferences.txt File #8811
Comments
Hi, same issue with latest 3.1.1
it must be
because fqfn2 path does not exist if we reach that else clause (probably lines 464 and 466 should be swapped) I modified line 466 by hand and I can now compile correctly. Bye |
Your reply is posted with the issue so I think we’re covered and the developer will see your comments there.
Thanks for this.
Jguarrasi
From: Isidoro Russo ***@***.***>
Sent: Monday, January 16, 2023 5:25 PM
To: esp8266/Arduino ***@***.***>
Cc: jgrass3 ***@***.***>; Author ***@***.***>
Subject: Re: [esp8266/Arduino] All GIT Versions Higher than 3.0.2 Can't Find the Arduino Preferences.txt File (Issue #8811)
Hi, same issue with latest 3.1.1
I think the error is in %USERPROFILE%\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.1.1\tools\mkbuildoptglobals.py line 466:
return [fqfn, fqfn2]
it must be
return [fqfn, None]
because fqfn2 path does not exist if we reach that else clause (probably lines 464 and 466 should be exchanged)
I modified line 466 by hand and I can now compile correctly.
I don't know what is the best ways to report the issue to the developer though...
Bye
—
Reply to this email directly, view it on GitHub<#8811 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AQOHZAEZYTGBSFBN73BL3HLWSXDCDANCNFSM6AAAAAAT5FDZWA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
@risidoro81 I think I have your issues resolved with PR#8812 @jgrass3 I don't think that PR will resolve your issue. Your installation looks strange to me. Your installation has moved the Arduino sketch folder to |
Hi, thanks for the update. I believe that when you install Arduino IDE from the Microsoft Store, you have the option to put the App in whatever location you want. And so the ArduinoData directory goes with the installation. And since it is a Store App, you can go into the Apps section of Windows Settings and move it wherever you want. I typically move most of my Apps to my D: drive which has alot of storage vice my C: boot drive which is small. And remember, I never had a problem with any of the older versions of the Git. Something changed in the latest versions. |
@mcspr I think there are two different issues in this thread. I think what @risidoro81 describes is fixed. RE: The origin issue report by @jgrass3, based on the content of "Debug messages" there is some unusual placement of files. I think his issue may need PR#8814 |
I had a similar problem with an "alternate" location for the preferences file. My Arduino Data folder is on OneDrive. I edited line 455 of C:\Users\xxx\OneDrive\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.1.1\tools\mkbuildoptglobals.py" so that it reads 'fqfn = os.path.expanduser("~\OneDrive\Documents\ArduinoData\preferences.txt")'. Note the addition of "\OneDrive". It worked for me. Credit to @risidoro81 for steering me in the right direction. |
Same issue. |
For some reason, I've just bumped into this issue as well. I agree with what I think has been said (not sure I've followed everything so apologies if I'm behind the curve). There's a logical issue with the return values of From what I've seen though it looks like these should both have been addressed already? However, I re-installed 3.1.1 and I still seem to have mkbuildoptglobals.py with both issues. Either way, I'd like to add the following to the discussion... Similar to @cgalvan21, my ArduinoData folder is in OneDrive and resolves to So I sought a hopefully more reliable way of finding where the IDE has put the preferences folder. I examined with processmonitor how the IDE was accessing the preferences file, and, shortly before accessing preference.txt, it queries the I've therefore changed my version of mkbuildoptglobals.py to do the same thing in order to resolve the location of preferences.txt using the following:
This is working for me, though I'm not sure if it's still relevant with the latest version of mkbuildoptglobals.py, which I don't seem to have. So just adding that idea for anyone else with this issue, or maybe it might be relevant to incorporate properly. |
Basic Infos
Platform
Settings in IDE
Problem Description
Using any GIT version higher than 3.0.2 results in the compiler not being able to find my "preferences.txt" file. The file is always in the same place, in D:\Documents\ArduinoData, yet newer GIT versions can't find it. However, all versions 3.0.2 and lower, have no problem finding the file.
#include <Arduino.h>
Irrelevant since NO sketch will compile.
Debug Messages
The text was updated successfully, but these errors were encountered: