Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork23.8k
Add tilde symbol (~) & expand environment variables#114102
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
AThousandShips commentedDec 17, 2025
You are once again using spaces instead of tabs, please set upclang-format to automate fixing this |
AR-DEV-1 commentedDec 17, 2025
@AThousandShips This is the new logic in which the environment variables are expanded. Is it acceptable? |
AThousandShips commentedDec 17, 2025
Can't really speak to it, but easier to review if you just update the PR with it |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
AThousandShips left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
You haven't declared it inos.h though, did you run this code or did you just forget to include that file in the push?
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
AR-DEV-1 commentedDec 17, 2025
I forgot. Should I push that with the declaration in |
AThousandShips commentedDec 17, 2025
The code won't work without it so you need to add it to The default method should probably just return the input string unchanged, but we'd need to check if any other platform needs it (that don't use |
AR-DEV-1 commentedDec 17, 2025
@AThousandShips Should I just declare in |
AThousandShips commentedDec 17, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
No you should just add It should be separate for each OS as it's different in each, unless it doesn't need to be and both can use |
AR-DEV-1 commentedDec 17, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I was thinking about |
AThousandShips commentedDec 17, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I don't understand what you mean my suggestion is to add Just add the code you forgot to include that works on your local machine and we can go from there |
AThousandShips commentedDec 17, 2025
Please build the code locally to avoid pushing so many times with simple errors in the code and to make sure your PR actually works |
AR-DEV-1 commentedDec 17, 2025
Is there a git command to push & not cause CI to run? |
AThousandShips commentedDec 17, 2025
Yes you can add |
AR-DEV-1 commentedDec 17, 2025
Yes, my build took some time but also failed. I'll start using |
AThousandShips commentedDec 17, 2025
Please just update your local branch, confirm it builds and fix any issues with it if it doesn't, and then push, no reason to push before you know it's actually correct |
AR-DEV-1 commentedDec 17, 2025
Sorry, will do now. |
AThousandShips commentedDec 18, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This looks quite good! I have one concern though: Leading Also are you still planning to add environment variable expansion support? Otherwise I'd remove it from the description and title |
bruvzg commentedDec 18, 2025
It is, and not only on Windows (works on macOS as well). And it is permitted as the first (or only) character of the folder names. So it might cause issues with relative paths. |
AR-DEV-1 commentedDec 18, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Thanks! Took some time but now works as intended. |
AR-DEV-1 commentedDec 18, 2025
@AThousandShips Should I also update |
AThousandShips commentedDec 18, 2025
Does that dialog need this? It is derived from |
AR-DEV-1 commentedDec 18, 2025
No, you are correct. Same code is shared. |
AR-DEV-1 commentedDec 18, 2025
@bruvzg Can you test the logic on MacOS? |
AR-DEV-1 commentedDec 18, 2025
@AThousandShips If you are on Windows, can you test the logic? |
AThousandShips commentedDec 18, 2025
I can try later when I have the time to build, but I don't think this should be ignored for CI unless you're going to update it more soon, assuming it compiles locally, assuming you are on Linux so you can test the Linux side |
AR-DEV-1 commentedDec 18, 2025
I'll upload an MRP. Linux works fine, just have to confirm on Windows & MacOS. I'll not ignore the CI for the next change. |
AThousandShips commentedDec 18, 2025
No MRP needed, I just need to build it and it'll take a little bit since |
AR-DEV-1 commentedDec 18, 2025
Alright, tell me if you encounter any problems/issues |
bruvzg commentedDec 18, 2025
Will check it tomorrow. |
TL;DR
~) in FileDialog folder/file path fields godot-proposals#13823This PR adds the tilde symbol (which is used in UNIX based OS). It checks for your platform & expands the tilde symbol to your home dir (which is
USERPROFILEon Windows &HOMEon Linux). Currently, this PR has to expand the environment variables (I'm working on that, just not pushed yet).