LuaLS / LuaLS/lua-language-server

Get error when require module that doesn't exist

Open
#3,129 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.