LuaLS / LuaLS/lua-language-server
`luamake test` doesn't find packages
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Lua
- Estrellas
- 4.4k
- Forks
- 442
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
How are you using the lua-language-server?
Command Line
Which OS are you using?
MacOS
What is the issue affecting?
Other
Expected Behaviour
luamake test runs the same tests with the same results as luamake rebuild
Actual Behaviour
luamake rebuild works.
luamake test can't find packages:
module 'log' not found:
no field package.preload['log']
no file 'log.lua'
no file 'log/init.lua'
no file './test/log.lua'
no file './test/log/init.lua'
no file 'log.so'
no file 'build/bin/log.so'
stack traceback:
/Users/sparr/src/lua-language-server/test.lua:20: in main chunk
Updating package.path to point to the log module leads to another failed package load, then multiple additions to package.path to find more modules, eventually leading to needing to compile lpeglabel.so manually, then a dead end when I couldn't figure out how to resolve this one (note the new paths being searched from all the additions I made to package.path to get this far)
module 'luamake' not found:
no field package.preload['luamake']
no file 'luamake.lua'
no file 'luamake/init.lua'
no file './test/luamake.lua'
no file './test/luamake/init.lua'
no file './script/luamake.lua'
no file './script/luamake/init.lua'
no file './test/plugins/ffi/luamake.lua'
no file './make/luamake.lua'
no file 'luamake.so'
no file 'build/bin/luamake.so'
stack traceback:
...rs/clarence/src/lua-language-server/make/code_format.lua:1: in main chunk
...e/src/lua-language-server/script/provider/formatting.lua:1: in main chunk
...e/src/lua-language-server/script/provider/capability.lua:8: in main chunk
...nce/src/lua-language-server/script/provider/provider.lua:2: in main chunk
/Users/clarence/src/lua-language-server/script/lclient.lua:11: in main chunk
/Users/clarence/src/lua-language-server/test.lua:82: in local 'main'
/Users/clarence/src/lua-language-server/test.lua:119: in main chunk
Reproduction steps
- Run
3rd/luamake/luamake rebuild - Run
3rd/luamake/luamake test
Additional Notes
No response
Log File
No response
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Empieza ejecutando los comandos indicados, 3rd/luamake/luamake rebuild y 3rd/luamake/luamake test, y compara sus rutas de paquetes. Lee test.lua y sigue después los imports que fallan a través de make/code_format.lua y los archivos script referenciados. El trabajo está terminado cuando luamake test encuentra sus paquetes y ejecuta las mismas pruebas con los mismos resultados que luamake rebuild.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- lua
- Área
- build-system, cli, testing
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100