You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This language server has excellent performance and rich features, and it’s compatible with most of luals’ features. If you’re interested, feel free to give it a try.
Exporting documentation is actually not the job of the language server, but I also agree that there is no good tool for exporting documentation that supports luacats well. The documentation export function of luals itself is not very effective and not highly usable. I might consider adding a standalone CLI for documentation export in the future, but not now.
The release was too rushed yesterday, and I didn't provide a detailed description of the features. However, I plan to describe its features once I am almost done (in about ten days).
Exporting documentation is actually not the job of the language server, but I also agree that there is no good tool for exporting documentation that supports luacats well. The documentation export function of luals itself is not very effective and not highly usable. I might consider adding a standalone CLI for documentation export in the future, but not now.导出文档实际上不是语言服务器的工作,但我也同意没有一个好的工具可以很好地支持 luacats 来导出文档。luals 本身的文档导出功能不是很有效,也不是很好用。我可能会考虑在未来添加一个独立的 CLI 来导出文档,但现在不会。
Agreed, this is indeed the case with exporting documents, and I would like to have a good tool for exporting documents. I look at the last dozens of issues, and the proportion of issues about exporting documents is also quite a lot, and it seems that everyone has a great demand for this feature.
Regarding the purpose of exporting documents, I feel that I can use the JSON documents exported from the document to convert the Lua library files annotated with Luacats into library files in various Lua dialects in batches, so that we can quickly share various Lua ecological components in various Lua dialects.
Regarding the purpose of exporting documents, I feel that I can use the JSON documents exported from the document to convert the Lua library files annotated with Luacats into library files in various Lua dialects in batches, so that we can quickly share various Lua ecological components in various Lua dialects.
If it's just for this purpose, all you need is a parser and simple analysis to achieve your goal, and I have already provided such a parser.
What kind of form is it? Can I get the results of my analysis?
a rust lib, I described this library in a previous issue, and it supports both strongly-typed APIs and simple APIs. Additionally, they can be converted freely between each other.
The current language server and plugin have been released. If you're interested, you can give them a try. My next step is to plan the design of export documentation.
The current language server and plugin have been released. If you're interested, you can give them a try. My next step is to plan the design of export documentation.当前的语言服务器和插件已经发布。如果您感兴趣,可以尝试使用。我的下一步是规划导出文档的设计。
I'm unsure if WASM supports asynchronous operations, and my codebase is fully asynchronous. Additionally, the file system poses another issue—I don't know how to load the workspace in the WebIDE. Perhaps a dedicated crate needs to be written to support the WASM runtime. On another note, since the language server itself supports TCP connections, that might be a viable solution.
我嘗試在 macbook 上安裝 vscode plugin tangzx.emmylua,但好像遇到 server start error
dyld: Symbol not found: __ZTTNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE
Referenced from: /Users/tomlau10/.vscode/extensions/tangzx.emmylua-0.9.13-darwin-x64/server/emmylua_ls
Expected in: /usr/lib/libc++.1.dylib
in /Users/tomlau10/.vscode/extensions/tangzx.emmylua-0.9.13-darwin-x64/server/emmylua_ls
[Error - 11:35:29 AM] Server process exited with signal SIGABRT.
[Error - 11:35:29 AM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
On the contrary, the original version (that is, the binary that comes with the existing vscode plug-in installed) is specified 10.12 😳
It should be a libc++ version issue, can you try to upgrade
Are you referring to upgrading macos? I have not upgraded macos again because I want to use certain software, which only supports macos 11 at most.
Or I can see if libc++ can be upgraded separately 🤔
It seems that some efforts are useless. It only supports it to 10.12 at the minimum, and I have also increased it to 10.15. The rest depends on whether I can handle the libc++ problem. In fact, you can compile it yourself by installing a rust toolchain.
Currently, the main diagnostic functions have been completed, and we require more test cases to ensure their accuracy. If you encounter any anomalies in the diagnostics, please raise an issue so that it can be addressed and fixed.
If there are any diagnostics you still need completed, please provide an example.
emmylua-rust is not directly related to either luals or emmylua. Yes, even though it's still called emmylua, you can think of it as a more strictly typed and feature-rich version of luals.
emmylua-rust is compatible with most of luals's functionality while adding support for generics. It also includes several user experience improvements. Most importantly, its performance has been significantly enhanced—by over 10 times!
For VSCode, I recommend using https://github.com/xuhuanzy/VSCode-EmmyLua-Luals as the plugin, Its name in the extension marketplace is emmylua-luals. This branch removes some features exclusive to emmylua (such as the built-in debugger in emmylua) and adds several options for better compatibility with luals.
How to use this with love2d? There are zero instructions on how to use it with libraries, i don't see any addons, or library support, i had to fix the vscode plugin by adding .exe to ls server because it couldnt find it by default.
It's very painful to use this, install instructions are lacking, your first instruction tells me to install rust and gives a command for linux,
i had to myself find that the vscode extension comes with the binary for the server already, and spent time assuming i had to manually set it up in the system myself.
After all this time, i loaded the project and it doesnt recognize love2d api, and i don't know where the button is to make it work.
Activity
Mc-GrowlR commentedon Jan 1, 2025
Can I export the document now?
CppCXY commentedon Jan 1, 2025
Exporting documentation is actually not the job of the language server, but I also agree that there is no good tool for exporting documentation that supports luacats well. The documentation export function of luals itself is not very effective and not highly usable. I might consider adding a standalone CLI for documentation export in the future, but not now.
CppCXY commentedon Jan 1, 2025
The release was too rushed yesterday, and I didn't provide a detailed description of the features. However, I plan to describe its features once I am almost done (in about ten days).
Mc-GrowlR commentedon Jan 1, 2025
Mc-GrowlR commentedon Jan 1, 2025
Regarding the purpose of exporting documents, I feel that I can use the JSON documents exported from the document to convert the Lua library files annotated with Luacats into library files in various Lua dialects in batches, so that we can quickly share various Lua ecological components in various Lua dialects.
CppCXY commentedon Jan 1, 2025
If it's just for this purpose, all you need is a parser and simple analysis to achieve your goal, and I have already provided such a parser.
Mc-GrowlR commentedon Jan 1, 2025
What kind of form is it? Can I get the results of my analysis?
CppCXY commentedon Jan 2, 2025
a rust lib, I described this library in a previous issue, and it supports both strongly-typed APIs and simple APIs. Additionally, they can be converted freely between each other.
CppCXY commentedon Jan 10, 2025
The current language server and plugin have been released. If you're interested, you can give them a try. My next step is to plan the design of export documentation.
Mc-GrowlR commentedon Jan 23, 2025
Ok。thanks
ParadiseFallen commentedon Jan 30, 2025
can it run in wasm for mocano?
CppCXY commentedon Jan 30, 2025
I'm unsure if WASM supports asynchronous operations, and my codebase is fully asynchronous. Additionally, the file system poses another issue—I don't know how to load the workspace in the WebIDE. Perhaps a dedicated crate needs to be written to support the WASM runtime. On another note, since the language server itself supports TCP connections, that might be a viable solution.
tomlau10 commentedon Feb 21, 2025
我嘗試在 macbook 上安裝 vscode plugin tangzx.emmylua,但好像遇到 server start error
因特殊原因我 macos 是停留在
11.6是不是太舊了所以 prebuilt binary 不支持。。。
我只能手動 build 嗎? @CppCXY
6 remaining items
tomlau10 commentedon Feb 24, 2025
從這個 stackoverflow 的回覆中
-mmacosx-version-min本身是 gcc 的 flagMACOSX_DEPLOYMENT_TARGET根據 gcc 的 man page 說,是和-mmacosx-version-min一樣效果的clang而 clang 在支持這個 option 時,將 flag name 改成
-mmacos-version-min(沒有x)https://stackoverflow.com/questions/25352389/what-is-the-difference-between-macosx-deployment-target-and-mmacosx-version-min#comment137650077_62470735
不知真假 🤔
google
"-mmacos-version-min"的話,確實有一些文章是用這個 沒有x的 flag比如這個:
https://www.cnblogs.com/z16166/p/16861268.html
CppCXY commentedon Feb 25, 2025
我尝试了这个方案:
RUSTFLAGS="-C link-args=-mmacos-version-min=10.15" cargo build试试: https://github.com/CppCXY/emmylua-analyzer-rust/actions/runs/13517997221/job/37770686540
tomlau10 commentedon Feb 26, 2025
剛試了,無效。。。 🤦♂
CppCXY commentedon Feb 26, 2025
应该是libc++版本问题, 你能尝试升级吗
tomlau10 commentedon Feb 26, 2025
用 otool 檢查的額外訊息
LC_VERSION_MIN_MACOSX10.12😳你是指升級 macos 嗎?
我是因為要使用某些軟件,最多只支援 macos 11
所以一直沒再升級 macos
或者我看看 libc++ 能否單獨升級 🤔
Issues-translate-bot commentedon Feb 26, 2025
Extra messages checked with otool
LC_VERSION_MIN_MACOSX10.12😳Do you mean upgrading macos?
I want to use some software, and only support macos 11 at most
So I haven't upgraded macos
Or I can see if libc++ can be upgraded separately 🤔
CppCXY commentedon Feb 26, 2025
看来一番努力并没有用, 他就是最低支持到10.12的, 我还提高到了10.15去了, 剩下的看能否处理libc++的问题了, 其实你装个rust工具链就可以自己编译了
Issues-translate-bot commentedon Feb 26, 2025
It seems that some efforts are useless. It only supports it to 10.12 at the minimum, and I have also increased it to 10.15. The rest depends on whether I can handle the libc++ problem. In fact, you can compile it yourself by installing a rust toolchain.
tomlau10 commentedon Mar 1, 2025
我剛剛在1個
macos 12的 vm 上測試 compile,然後放到1個macos 10.15的 vm 上跑各種方式之中只有你最初提出的
MACOSX_DEPLOYMENT_TARGET=10.15 cargo build的方式是有效(至於那個
-mmacos-version-min/-mmacosx-version-min完全沒效。。。 🤦♂ )而在網上找 issue 的過程中
wezterm也是用了相同方式https://github.com/wezterm/wezterm/pull/132/files#diff-258c8e6cdf61e87e9d94e06c76fb5e23f602423313565dcb8a46afe648587ace
kubectl-ports也是https://github.com/widnyana/kubectl-ports-rs/blob/main/Makefile.toml#L24
如果 @CppCXY 有空的話,可以考慮再試一次這個方式 🙏
xuhuanzy commentedon Mar 16, 2025
当前进度为主要诊断已完成, 来点好伙计测试下诊断是否正常
Currently, the main diagnostic functions have been completed, and we require more test cases to ensure their accuracy. If you encounter any anomalies in the diagnostics, please raise an issue so that it can be addressed and fixed.
If there are any diagnostics you still need completed, please provide an example.
cryi commentedon Mar 31, 2025
What is relation of new emmylua-analyzer-rust tolua-language-server? Is it supposed to be an alternative, replacement or plugin?
xuhuanzy commentedon May 13, 2025
emmylua-rustis not directly related to eitherlualsoremmylua. Yes, even though it's still calledemmylua, you can think of it as a more strictly typed and feature-rich version ofluals.emmylua-rustis compatible with most ofluals's functionality while adding support for generics. It also includes several user experience improvements. Most importantly, its performance has been significantly enhanced—by over 10 times!For VSCode, I recommend using https://github.com/xuhuanzy/VSCode-EmmyLua-Luals as the plugin, Its name in the extension marketplace is
emmylua-luals. This branch removes some features exclusive toemmylua(such as the built-in debugger inemmylua) and adds several options for better compatibility withluals.azcguy commentedon Nov 9, 2025
How to use this with love2d? There are zero instructions on how to use it with libraries, i don't see any addons, or library support, i had to fix the vscode plugin by adding
.exeto ls server because it couldnt find it by default.It's very painful to use this, install instructions are lacking, your first instruction tells me to install rust and gives a command for linux,
i had to myself find that the vscode extension comes with the binary for the server already, and spent time assuming i had to manually set it up in the system myself.
After all this time, i loaded the project and it doesnt recognize love2d api, and i don't know where the button is to make it work.