nodemcu / nodemcu-firmware

Lua based interactive firmware for ESP8266, ESP8285 and ESP32

Home Page:https://nodemcu.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windows luac.cross fails in require

HHHartmann opened this issue · comments

Expected behavior

run NTest_NTest.lua without failure on windows.

Actual behavior

prints

d:\luac.cross_3.0-release_20201107_x64_float_Lua51.exe: NTest_NTest.lua:1: module 'NTest' not found:
        no field package.preload['NTest']
        no file '/rfs/NTest.lua'
        no file '/rfs/NTest.lc'
        no file '/mmc/NTest.lua'
        no file '/mmc/NTest.lc'
        no file '/rom/NTest.lua'
        no file '/rom/NTest.lc'

Test code

Use luac.cross.exe
have following files in current directory:

tests\NTest\NTest.lua
tests\NTest\NTest_NTest.lua

execute

luac.cross.exe  -e NTest_NTest.lua

NodeMCU startup banner

current dev or release branch

Hardware

generic windows computer