Skip to content

fix: block forever when using a related path - #1000

Merged
CppCXY merged 1 commit into
EmmyLuaLs:mainfrom
myzhan:dev.fix_block_on_related_path
Apr 2, 2026
Merged

CppCXY merged 1 commit into
EmmyLuaLs:mainfrom
myzhan:dev.fix_block_on_related_path

Conversation

@myzhan

@myzhan myzhan commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

复现场景:

cd crates/emmylua_check && cargo run ../../some.lua

进程会一直卡住不退出

两个问题:

  1. 没处理相对路径,导致找不到 workspace
  2. 由于第一个问题引起,need_check_files 为空,tokio 不退出

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request improves path handling by canonicalizing workspace paths to resolve relative components and ensures the diagnostic channel is properly closed by dropping the original sender after task spawning. I have no feedback to provide as the review comments were either explanatory or lacked actionable suggestions.

@CppCXY
CppCXY merged commit 36d6148 into EmmyLuaLs:main Apr 2, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants