-
Notifications
You must be signed in to change notification settings - Fork 491
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
Uncommenting MSYS2_PATH_TYPE=inherit in msys2.ini does not have any effect #2140
Comments
I believe those ini files only apply to the msys2-launcher exes, not to msys2_shell.cmd batch script. |
You need to pass |
I don't launch from the command line. I am not sure what gets invoked "out of the box" by double clicking on the shortcut (o) or from the Start menu, but I would expect that a .ini file should work; both from the CLI or from the GUI. (o) I know I can find out. But (1) I am lazy and (2) time is a tyrant (oo) |
ok, thanks, I think the shortcut just calls msys2_shell.cmd, so you'd have to edit the shortcut |
Yes. I know. But that is not what I want. I want the uncommenting of the MSYS2_PATH_TYPE in the .ini to work as expected. Moreover, if I clicked on the actual program and not on the shortcut I would have a different behavior. |
Understood. Thy are currently two different things https://packages.msys2.org/package/msys2-launcher?repo=msys&variant=x86_64 and the installer, so not that easy. |
I urge you to unify them. Users do not like surprises. |
MSYS2 is open source, instead of urging others to do something, perhaps you could try to fix this? It would be very welcome. |
Look. I understand you may have felt that the word "urge" was a tad strong. Having said that, as I said before, I know the drill for FOSS. It would take me quite an investment in time to be able to fix this, even if the fix may be three lines of code. Alas, time is a tyrant. As it is it is an open bug. Just keep it as such until it gets fixed. All the best |
OK, I have to agree with @marcoxa here - this behavior is extremely surprising and prone to causing many people headaches:
|
Yep. This is a bug. No other ways to describe it. |
This definitely should not be defined behavior, it got me too |
a proposed solution is by appending "-use-full-path" to the windows command script target shortcut, which sit in this directory: However, I see ORIGINAL_PATH enviroment variable has the W10 inherited paths; which I expected to be appended to PATH. Is this expected behavior? Should note that I have Cygwin installed side-by-side with MYS2, which I installed recently to build Emacs. Although I've taken care in .bashrc/.bashrc_profile to ensure which application (MSys or Cygwin) is launching at startup, but honestly, I've not dug deeper to figure out if Cygwin and MSYS2 can in fact co-exist, without tripping each other. |
Maybe the fix is to add the environment variable and change the shortcut to "-use-full-path" in the windows installer for msys2 that way it would just come that way by default? Also, adding MSYS2_PATH_TYPE with a value of inherit and uncommenting MSYS2_PATH_TYPE in the msys2.ini in the directory worked for me. I'm not sure if you need both and I'm satisfied with just leaving it because it works now, lol. |
Uncommenting the line in the associated .ini file works for me, when executing the |
I just found out that the shortcut created in the start menu during installation is a special terminal shortcut with a terminal tab. It doesn't read config file in C:\msys64\mingw64.ini. If I just run "C:\msys64\mingw64.exe" it does read the config file and MSYS2_PATH_TYPE=inherit works. |
I have a Visual Studio Code setup where the integrated terminal is configured to use |
Wow. Almost 2 years and still open :) |
Respectfully, work seems to be landing in relevant repositories to address the inconsistencies around when the .ini files do and don't apply as observed with the start menu shortcuts: There's no release with that PR at the moment, but hopefully it'll help. |
Hi Peeps; I am having a similar issue. Only when I run under > M$ DOS < it can't find libint-8.dll |
You probably need to add MSYS2 paths to system's PATH variable. |
I came here from the comments on this S.O. answer: I worked around the issue by running Any summary about what's happening? |
Seems to me like this happens because For whatever reason if you launch |
Thank you @Xaffen. It looks like this is the first message that at least hints at a diagnosis of the possible issue. |
This ticket has devolved into multiple people complaining about multiple things AFAICT. The inconsistency between using msys2.exe (and friends) and the Start menu shortcuts seems to have been resolved in msys2/msys2-installer#50. If you still suffer from a related issue, please create a new ticket and describe it there. |
Best option is to create new system variable and add MSYS2_PATH_TYPE as the variable name and inherit as the variable value. |
You really should consider how disrespectful the tone of your message is... The sentiment you are expressing basically states, "It doesn't take a lot of time and effort to make a request asking someone to refactor the code to function the way you expect it to work - yet, you don't have the time or the inclination to do it for the good of not only yourself but also the open source community... |
Dear @edwardbeckett as you may have noticed, this thread has been going for some time now. It appears that my original issue (2020) was finally resolved (in 2023). However, since I read your comment, I had an urge to respond, just because I feel that many people who work on FOSS seem not to understand that many FOSS users (who also happen to contribute to FOSS (*)) have limited time (and, at my age, patience :) cfr., TOWANDA!). If you re-read the whole thread, you would have found out that my original assessment was essentially right (and other people agreed). Bottom line, I know what I get when I deal with FOSS; but it appears that many FOSS enthusiasts have time management issues, and forget that the F stands for Free as in "Liberty" and not as in "Beer". So, here I state my present and future standard response to comments like "it's FOSS, you should contribute": TOWANDA! Cheers MA (*) Hey, I just contributed to Emacs 30.x. Don't tell me you are a VS Code or (worse) vim user! (insert image of Munch's "Scream" here) :) :) :) :)
|
Describe the bug
I am trying to inherit the W10 PATH in MSYS2, however, uncommenting MSYS2_PATH_TYPE=inherit in msys2.ini does not have any effect. The MSYS2 path is unchanged from the minimalistic starting one. The same happens with mingw32.ini and mingw64.ini.
My guess is that there is some inconsistency that crept in the msys2_shell.cmd script.
Note that this is a fresh MSYS2 installation.
Any clues about how this is happening?
Thanks
Marco
The text was updated successfully, but these errors were encountered: