Mingw64 on MSYS2
How are you using the lua-language-server?
Other
Which OS are you using?
Windows
What is the issue affecting?
Other
Expected Behaviour
$ make.sh should detect mingw64
Actual Behaviour
.it detects platform windows
Reproduction steps
- Go to '...'
- Click '...'
- See error '...'
Additional Notes
No response
Log File
/c/software/lua-server/lua-language-server/3rd/luamake /c/software/lua-server/lua-language-server ninja: no work to do. /c/software/lua-server/lua-language-server Plataforma detectada: windows [0/2] Run test: 3rd/bee.lua/test/test.lua.OS: mingw64 10.0.19045 Arch: x86_64 Compiler: GCC 14.2.0 CRT: libstdc++ 20240801 DEBUG: false ............F...........F......FF...F......F............................... .............................F.. Failed tests:
-
filesystem.test_absolute_relative 3rd/bee.lua/test/test_filesystem.lua:121: expected: true, actual: false stack traceback: 3rd/bee.lua/test/test_filesystem.lua:121: in local 'assertIsAbsolute' 3rd/bee.lua/test/test_filesystem.lua:128: in upvalue 'filesystem.test_absolute_relative'
-
filesystem.test_exists 3rd/bee.lua/test/test_filesystem.lua:321: expected: false, actual: true stack traceback: 3rd/bee.lua/test/test_filesystem.lua:321: in local 'is_exists' 3rd/bee.lua/test/test_filesystem.lua:331: in upvalue 'filesystem.test_exists'
-
filesystem.test_rename rename: "temp1", "temp2": (generic:13)Permission denied stack traceback: 3rd/bee.lua/test/test_filesystem.lua:474: in local 'rename_ok' 3rd/bee.lua/test/test_filesystem.lua:504: in upvalue 'filesystem.test_rename'
-
filesystem.test_current_path 3rd/bee.lua/test/test_filesystem.lua:516: expected: userdata:/tmp/test_bee, actual: <userdata:C:/m sys64/tmp/test_bee> stack traceback: 3rd/bee.lua/test/test_filesystem.lua:516: in upvalue 'filesystem.test_current_path'
-
filesystem.test_copy_dir copy: "temp", "temp1": (generic:17)File exists stack traceback: 3rd/bee.lua/test/test_filesystem.lua:697: in upvalue 'filesystem.test_copy_dir'
-
filesystem.test_symlink create_symlink: "temp.txt", "temp.link": (generic:40)Function not implemented stack traceback: 3rd/bee.lua/test/test_filesystem.lua:831: in local 'test_create' 3rd/bee.lua/test/test_filesystem.lua:858: in upvalue 'filesystem.test_symlink'
-
filewatch.test_symlink create_symlink: "C:/msys64/tmp/test_bee/temp/test1", "C:/msys64/tmp/test_bee/temp/test1": (generic:4 0)Function not implemented stack traceback: 3rd/bee.lua/test/test_filewatch.lua:89: in upvalue 'filewatch.test_symlink'
Ran 107 tests in 1.373 seconds, 100 successes, 7 failures
FAILED: build/_/bee-test build/bin/lua-language-server.exe 3rd/bee.lua/test/test.lua ninja: build stopped: subcommand failed.
In file code_format.lua just modified --victor line to avoid using utf-8 flag
local lm = require 'luamake'
lm.c = lm.compiler == 'msvc' and 'c89' or 'c11'
lm.cxx = 'c++17'
lm:source_set 'code_format' {
rootdir = '../3rd/EmmyLuaCodeStyle',
includes = {
"Util/include",
"CodeFormatCore/include",
"LuaParser/include",
"../bee.lua/3rd/lua",
"3rd/wildcards/include"
},
sources = {
-- codeFormatLib
"CodeFormatLib/src/*.cpp",
-- LuaParser
"LuaParser/src/**/*.cpp",
-- Util
"Util/src/StringUtil.cpp",
"Util/src/Utf8.cpp",
"Util/src/SymSpell/*.cpp",
"Util/src/InfoTree/*.cpp",
--CodeService
"CodeFormatCore/src/**/*.cpp",
},
windows = {
--flags = "/utf-8", --victor
},
macos = {
flags = "-Wall -Werror",
},
linux = {
flags = "-Wall -Werror"
}
}