LuaLS / LuaLS/lua-language-server
Get error when require module that doesn't exist
Open
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 442
- PR merge metrics
- No merged PRs in 30d
Description
require 'doesnotexist' should produce an error.
I come from the discussion https://github.com/LuaLS/lua-language-server/discussions/2339
I don't find any related issues so opening a new one.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading discussion 2339, then locate the Lua language server's handling of require calls. Reproduce require 'doesnotexist' and trace whether missing modules are reported. Done means this unresolved module produces an error diagnostic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100