Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

require not being able to find the file, even though file is present.

Aberta
#113 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
52/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
c, lua
Domínio
devtools

Direção de pesquisa

Start by tracing how the LuaScript plugin builds Lua's module search paths for require, using the reported LuaScriptLibs paths and the case difference between config and Config as clues. Reproduce the failure with the provided ListMaker module on the reported setup, then identify whether the search path or the issue's file placement explains the error. Done means the expected module can be required from a supported dedicated path, with the behavior covered by a test or documented guidance.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Trying to require other lua files and I only get errors that it can't find the correct path?
The path to the actual file and the path shown in the error match.
My laptop is ARM cpu, incase that's an issue.

I've tried:

  • Empty Module
  • Resetting Notepad
  • Updating Notepad
  • Resetting My Laptop
  • Changing file name
  • lua to dll extension

Path from Explorer:
C:\Users\Piña\AppData\Roaming\Notepad++\plugins\config\LuaScriptLibs\ListMaker.lua

Error Code:

Console:1: module 'ListMaker' not found:
	no field package.preload['ListMaker']
	no file 'C:\Users\Piña\AppData\Roaming\Notepad++\plugins\Config\LuaScriptLibs\lua\ListMaker.lua'
	no file 'C:\Users\Piña\AppData\Roaming\Notepad++\plugins\Config\LuaScriptLibs\lua\ListMaker\init.lua'
	no file 'C:\Users\Piña\AppData\Roaming\Notepad++\plugins\Config\LuaScriptLibs\ListMaker.lua'
	no file 'C:\Users\Piña\AppData\Roaming\Notepad++\plugins\Config\LuaScriptLibs\ListMaker\init.lua'
	no file 'C:\Users\Piña\AppData\Roaming\Notepad++\plugins\Config\LuaScriptLibs\ListMaker.dll'
	no file 'C:\Users\Piña\AppData\Roaming\Notepad++\plugins\Config\LuaScriptLibs\ListMaker\loadall.dll'

Main Script

local ListMaker = require("ListMaker")

ListMaker.Run()

ListMaker Script

local ListMaker = {}

ListMaker.Run = function()
	print("Ran")
end

return ListMaker

I was wondering maybe I was doing something wrong?
and I guess, is there any way to make a dedicated path?

Linguagem predominante
C
Estrelas
130
Forks
24
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de dail8859/LuaScript

Todas as issues de dail8859/LuaScript

Issues semelhantes

Mais issues de C

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.