msys2 / MSYS2-packages

Package scripts for MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
1.3k stars 490 forks source link

MSYS2 launcher error #3501

Open HellJon6 opened 1 year ago

HellJon6 commented 1 year ago

Description / Steps to reproduce the issue

just tried installing msys2 on a fresh windows 11 22H2 22621.1105 install, everything seems to work fine during MSYS2 installation and the terminal opens and works fine ONLY the first time, after I close it and try to open again it shows this message "could not find configuration file"(0x0)... I tried updating it, uninstalling and installing from safe mode but I always get the same error. 2023-01-19 00 58 53

Expected behavior

The terminal should open

Actual behavior

the program is not opening, instead it shows a message saying "could not find configuration file"

Verification

Windows Version

MSYS_NT-10.0-22621

Are you willing to submit a PR?

No response

Biswa96 commented 1 year ago

Please make sure mingw64.ini file exists in msys2 installation directory. Also if possible exclude msys2 installation directory in antivirus settings. Antivirus programs may delete files.

HellJon6 commented 1 year ago

yes, the mingw64.ini file is in the installation directory. windows defender is completely disabled as well. I really have no idea what could be going on.

lazka commented 1 year ago

Did you install it to some special location, or the default C:\msys64 ?

HellJon6 commented 1 year ago

Did you install it to some special location, or the default C:\msys64 ?

Default location, I did try installing to different locations as well, including E drive, but it always throws me the same error.

lazka commented 1 year ago

No idea sadly. The only difference between the first time it opens from the installer and starting manually is that it starts ucrt64.exe in the installer.

HellJon6 commented 1 year ago

No idea sadly. The only difference between the first time it opens from the installer and starting manually is that it starts ucrt64.exe in the installer.

yes,the first time It is installed it opens ucrt64.exe fine, but after closing it neither ucrt64, mingw64 or any other of the executables will open, they all show the same error

goyalyashpal commented 1 year ago

maybe related: https://github.com/msys2/MSYS2-packages/issues/3102

revelator commented 1 year ago

does running the msys2_shell.cmd with the option -ucrt64 work ? if it does not then something interferes with the shell.