-
-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PREVIEW] a new lua language server #3017
Comments
Can I export the document now? |
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). |
|
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. |
Ok。thanks |
can it run in wasm for mocano? |
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
因特殊原因我 macos 是停留在 |
我不清楚github有没有提供低版本的mac, 有的话你可以试试, 或者你可以在拥有rust工具链后, 一键编译 |
我根据deepseek的提示在项目中添加了配置: [target.x86_64-apple-darwin]
rustflags = ["-C", "link-arg=-mmacosx-version-min=10.15"] 你可以试试是否有用, 毕竟我没有mac |
我下載後放到
我問 gpt4o 他也是給出同樣的解決方法 ... [target.x86_64-apple-darwin]
rustflags = ["-C", "link-arg=-mmacosx-version-min=11.6"] 而這裡找到另1個是說 xcode build c++ project 遇到類似問題 🤔
但這個似是 xcode project 的配置,我不知怎樣用在 rust project 上... |
主要是github已经把macos 10.15的虚拟机停用了, 得另寻他法 |
我尝试了:
感觉应该可能可以, 有机会可以再试试 |
I tried:
It seems like it should be possible, I can try it again if I have the chance |
從這個 stackoverflow 的回覆中
不知真假 🤔 |
我尝试了这个方案: RUSTFLAGS="-C link-args=-mmacos-version-min=10.15" cargo build 试试: https://github.com/CppCXY/emmylua-analyzer-rust/actions/runs/13517997221/job/37770686540 |
剛試了,無效。。。 🤦♂
|
应该是libc++版本问题, 你能尝试升级吗 |
用 otool 檢查的額外訊息
你是指升級 macos 嗎? 或者我看看 libc++ 能否單獨升級 🤔 |
Extra messages checked with otool
Do you mean upgrading macos? Or I can see if libc++ can be upgraded separately 🤔 |
看来一番努力并没有用, 他就是最低支持到10.12的, 我还提高到了10.15去了, 剩下的看能否处理libc++的问题了, 其实你装个rust工具链就可以自己编译了 |
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. |
我剛剛在1個 而在網上找 issue 的過程中
如果 @CppCXY 有空的話,可以考慮再試一次這個方式 🙏 |
当前进度为主要诊断已完成, 来点好伙计测试下诊断是否正常 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. |
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.
language server: https://github.com/CppCXY/emmylua-analyzer-rust
vscode plugin: https://marketplace.visualstudio.com/items?itemName=tangzx.emmylua
The text was updated successfully, but these errors were encountered: