`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.