Hello,
I have this small script :
ifnotstring.find(package.path, "demonstrator") thenpackage.path=[[D:\xxx\Documents\code\demonstrator\lib\?.lua;D:\xxx\Documents\code\demonstrator\lib\?\init.lua;]]..package.pathprint(package.path)
endlocalmap=require("map")
localinspect=require("inspect").inspectprint(inspect(map))which is correctly run with C-c C-l :
LuaJIT 2.1.0-beta3 -- Copyright (C) 2005-2017 Mike Pall. http://luajit.org/
JIT: ON SSE2 SSE3 SSE4.1 BMI2 fold cse dce fwd dse narrow loop abc sink fuse
> > D:\xxx\Documents\code\demonstrator\lib\?.lua;D:\xxx\Documents\code\demonstrator\lib\?\init.lua;D:\xxx\Documents\utils\luarocks-3.7.0\systree\share\lua\5.1\?.lua;D:\xxx\Documents\utils\luarocks-3.7.0\systree\share\lua\5.1\?\init.lua
{
config = {
default = {
tile = {
path = "c:/Users/yyyy/tiles"
}
}
},
engine = {
load = <function 1>
}
}
>
Then, if I add a few lines to the script :
ifnotstring.find(package.path, "demonstrator") thenpackage.path=[[D:\xxx\Documents\code\demonstrator\lib\?.lua;D:\xxx\Documents\code\demonstrator\lib\?\init.lua;]]..package.pathprint(package.path)
endlocalmap=require("map")
localinspect=require("inspect").inspectprint(inspect(map))
locala=function(t)
return2endlocalg=a({ q=4, f=5 })
print(g)
I get the error :
> > >> stdin:1: unfinished string near ''d:/xxx/Documents/code/demonstrat'
>
Do you understand wht is happening ?
I run luajit on windows 10 mingw64
Regards
Hello,
I have this small script :
which is correctly run with
C-c C-l:Then, if I add a few lines to the script :
I get the error :
Do you understand wht is happening ?
I run
luajiton windows 10 mingw64Regards