Pushing to luanhost

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Pushing to luanhost

Hugo <Nabble>
I am trying to push a site to luanhost but I get the error below. I have no idea how to fix it. I have the latest luan code installed.
bad argument #1 (table expected, got nil)
	Java: in function 'ipairs'
	pickle-reader:12
	Java: in function '_reversed_pickle'
	pickle-reader:1
	Java: in function 'pc.call'
	luan:host/Hosting:11: in function 'Hosting.push'
	luan:host/push.luan:10: in function 'main_file'
	classpath:luan/cmd_line.luan:79
	Java: in function 'try'
	classpath:luan/cmd_line.luan:76
in:
------------------
1	            local Luan = require "luan:Luan"
2	            local ipairs = Luan.ipairs
3	            local Io = require "luan:Io"
4	
5	            local children, file_info
6	    
7	            function children(dir)
8	                if dir.name() == "local" then
9	                    return {}
10	                end
11	                local rtn = {}
12	                for _,child in ipairs(dir.children()) do
13	                    local info = file_info(child)
14	                    if info ~= nil then
15	                        rtn[#rtn+1] = info
16	                    end
17	                end
18	                return rtn
19	            end
20	    
21	            function file_info(file)
22	                local info = { name = file.name(), path = file.to_string() }
23	                if file.is_directory() then
24	                    info.children = children(file)
25	                elseif file.is_file() then
26	                    info.last_modified = file.last_modified()
27	                else
28	                    return nil
29	                end
30	                return info
31	            end
32	    
33	            return children(Io.schemes.file("site1"))
34	        
------------------

	Java: in function 'pc.call'
	classpath:luanhost/main.luan:37
	Java: in function 'Io.reverse_pickle'
	classpath:luanhost/main.luan:130: in function 'Hosting.do_push'
	pickle-reader:2
	Java: in function '<forked>'
in:
------------------
1	return true
2	
------------------

	Java: in function 'pc.call'
	luan:host/Hosting:11: in function 'Hosting.push'
	luan:host/push.luan:10: in function 'main_file'
	classpath:luan/cmd_line.luan:79
	Java: in function 'try'
	classpath:luan/cmd_line.luan:76
Reply | Threaded
Open this post in threaded view
|

Re: Pushing to luanhost

fschmidt
Administrator
Please update luan and try again.
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: Pushing to luanhost

Hugo <Nabble>
The error message is understandable now, thanks. Closing thread.