Skip to content

Commit d7d5dcb

Browse files
committed
update version
1 parent ca096f8 commit d7d5dcb

4 files changed

Lines changed: 10 additions & 13 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
*All notable changes to the EmmyLua Analyzer Rust project will be documented in this file.*
44

5-
## [0.23.2] - 2026-5-29
5+
## [0.23.2] - 2026-6-3
66

77
- **Fix some stuck loading issue**: Fixed some issue that cause the language server stuck at loading workspace, and improve the loading performance of large workspace
88
- **Optimize formatter style**: Optimize some formatter style

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ mimalloc = { version = "0.1.50" }
5555
googletest = "0.14.2"
5656
ntest = "0.9.5"
5757
unicode-general-category = "1.0.0"
58-
luars = { version = "0.23.0", features = ["serde", "sandbox"] }
58+
luars = { version = "0.25.0", features = ["serde", "sandbox"] }
5959
# request's default-tls feature pulls in a dependency on aws-lc-rs,
6060
# which causes a linking error on Windows
6161
reqwest = { version = "0.13.1", default-features = false, features = [

crates/emmylua_code_analysis/src/config/lua_loader/mod.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
11
use std::time::Duration;
22

33
use luars::{
4-
Lua, LuaApi, LuaResult, LuaSandboxApi, LuaState, LuaValue, SafeOption, SandboxConfig, Table,
4+
Lua, LuaApi, LuaResult, LuaSandboxApi, LuaState, LuaTable, LuaValue, SafeOption, SandboxConfig,
55
};
66
use serde_json::Value;
77

88
pub fn load_lua_config(content: &str) -> Result<Value, String> {
99
let mut lua = Lua::new(SafeOption::default());
10-
let libs = [
10+
let _ = lua.open_stdlibs(&[
1111
luars::Stdlib::Package,
1212
luars::Stdlib::Basic,
1313
luars::Stdlib::Table,
1414
luars::Stdlib::String,
1515
luars::Stdlib::Math,
1616
luars::Stdlib::Os,
1717
luars::Stdlib::Utf8,
18-
];
19-
for lib in libs.iter() {
20-
let _ = lua.open_stdlib(*lib);
21-
}
18+
]);
2219

2320
let _ = lua.set_global("print", LuaValue::cfunction(ls_println));
2421
let sandbox = SandboxConfig {
@@ -41,7 +38,7 @@ pub fn load_lua_config(content: &str) -> Result<Value, String> {
4138
..Default::default()
4239
};
4340

44-
let r = match lua.load_sandboxed(content, &sandbox).eval::<Table>() {
41+
let r = match lua.load_sandboxed(content, &sandbox).eval::<LuaTable>() {
4542
Ok(v) => v,
4643
Err(e) => {
4744
let err_msg = lua.get_error_message(e);

0 commit comments

Comments
 (0)