Skip to content

Commit 2c04ae9

Browse files
authored
fix(windows): wrong RT_MANIFEST ID in nvim.rc #36406
Problem: Starting Nvim on MinGW fails: msys2/MINGW-packages#25140 Unknown system error -1:"C:\msys64\ucrt64\bin\nvim.exe"Failed to start Nvim server! Solution: On Windows, the main application manifest should use resource ID 1 (RT_MANIFEST). Update `nvim.rc` to use `1 RT_MANIFEST nvim.manifest` instead of `2`, ensuring the manifest is correctly embedded and recognized by the system. ID = 1 is for executable files (.exe) ID = 2 is for DLLs (/DLL) From MSVC docs: "Use a value of 2 for a DLL to enable it to specify private dependencies." https://learn.microsoft.com/en-us/cpp/build/reference/manifest-create-side-by-side-assembly-manifest
1 parent 4998b8d commit 2c04ae9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nvim/os/nvim.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#include "winuser.h"
2-
2 RT_MANIFEST nvim.manifest
2+
1 RT_MANIFEST nvim.manifest

0 commit comments

Comments
 (0)