00:00:22  * hdmsjoined
00:17:34  * jetjoined
00:28:29  * hdmsquit (Quit: hdms)
00:42:55  * hdmsjoined
00:46:49  <rphillips>weekend... man... evening*
00:46:52  <rphillips>it's only tuesday
00:47:39  <rje>rphillips, here i thought you were taking a bunch of time off
00:49:05  <rphillips>heh :)
01:06:47  <rphillips>https://github.com/virgo-agent-toolkit/rackspace-monitoring-agent/pull/720
01:09:38  * kazuponjoined
01:18:14  * hdmsquit (Quit: hdms)
01:31:06  * gavellanedajoined
01:54:08  * joconnor_quit (Ping timeout: 245 seconds)
02:43:47  * gavellanedaquit (Ping timeout: 246 seconds)
02:52:26  * gavellanedajoined
03:11:23  * kazuponquit (Remote host closed the connection)
04:11:47  * kazuponjoined
04:16:37  * kazuponquit (Ping timeout: 264 seconds)
04:21:26  * kazuponjoined
04:22:56  * SouL_|_quit (Ping timeout: 240 seconds)
04:23:17  * SouL_|_joined
04:37:17  * SouL_|__joined
04:40:27  * SouL_|_quit (Ping timeout: 244 seconds)
04:53:55  * SouL_|__quit (Ping timeout: 256 seconds)
04:54:13  * SouL_|__joined
05:09:19  * SouL_|__quit (Read error: Connection reset by peer)
05:09:58  * SouL_|_joined
05:14:11  * SouL_|__joined
05:14:16  * gavellanedaquit (Ping timeout: 250 seconds)
05:15:57  * SouL_|_quit (Ping timeout: 265 seconds)
05:24:53  * SkyRocknRolljoined
05:24:53  * SkyRocknRollquit (Changing host)
05:24:53  * SkyRocknRolljoined
05:25:15  * SouL_|_joined
05:27:41  * SouL_|___joined
05:28:37  * SouL_|__quit (Ping timeout: 264 seconds)
05:31:04  * SouL_|_quit (Ping timeout: 245 seconds)
05:32:13  * SouL_|___quit (Ping timeout: 255 seconds)
05:32:16  * SouL_|_joined
05:46:51  * kazuponquit (Remote host closed the connection)
05:46:54  * SouL_|_quit (Ping timeout: 245 seconds)
05:50:30  * kazuponjoined
06:08:30  * SouL_|_joined
06:12:23  * SouL_|__joined
06:14:29  * SouL_|_quit (Ping timeout: 246 seconds)
06:17:27  * SouL_|_joined
06:19:56  * SouL_|__quit (Ping timeout: 252 seconds)
06:29:41  * SouL_|_quit (Ping timeout: 248 seconds)
06:29:55  * SouL_|_joined
07:03:19  * SouL_|__joined
07:07:01  * SouL_|_quit (Ping timeout: 264 seconds)
07:22:43  * DarkGodjoined
08:17:17  * kazuponquit (Remote host closed the connection)
08:27:33  * ldubjoined
08:27:48  <ldub>hello
08:29:27  <ldub>need some help ^^
08:30:46  <ldub> for testing purpose, i'm trying to make luvit.io as a standalone executable.
08:32:44  <ldub>i've imported luvit as a dependency in packages.lua, did a "lit install" and "lit make" but i'm stuck with this:
08:32:46  <ldub>[string "bundle:main.lua"]:24: attempt to index global 'module' (a function value)
08:33:25  <ldub>i've tried desperatly to find where "module" is defined but didn't find
08:34:11  <ldub>(this error) happens when executing blog.luvit.io
08:35:09  <ldub>(context: lit version 1.1.4, luvi version v2.0.3, luvit 2.1.0)
08:35:47  <ldub>maybe i missed a step somewhere ?
08:44:42  <ldub>"module" is used in this line: ".route({ method = "GET", path = "/blog/:path:"}, static(pathJoin(module.dir, "articles")))"
08:51:19  <ldub>trying to change manually "module.dir" to "/" make launching the app without error but don't do anything. I think that i misunderstand basics... ^ ^
08:52:41  * kazuponjoined
08:54:35  * SouL_|_joined
08:56:24  * SouL_|_quit (Read error: Connection reset by peer)
08:56:44  * SouL_|_joined
08:58:17  * SouL_|__quit (Ping timeout: 265 seconds)
09:04:06  * SouL_|__joined
09:06:43  * SouL_|_quit (Ping timeout: 250 seconds)
09:14:19  * UniOnjoined
09:56:45  <ldub>ok, i think i'm close, the http server is up now , but don't expose resources.
10:17:56  * ldubquit (Ping timeout: 240 seconds)
10:19:19  * ldubjoined
10:47:43  * hdmsjoined
10:51:34  * ldub_joined
10:53:12  * ldubquit (Ping timeout: 276 seconds)
10:54:02  <ldub_>pages/install.html*
11:02:24  * kazuponquit (Remote host closed the connection)
11:10:17  * SouL_|_joined
11:13:16  * SouL_|__quit (Ping timeout: 240 seconds)
11:31:56  * SouL_|_quit (Ping timeout: 272 seconds)
11:40:27  * ldub__joined
11:42:45  * ldub_quit (Ping timeout: 248 seconds)
11:44:35  * DarkGodquit (Quit: Leaving)
11:51:12  * ldub_joined
11:53:22  * ldub__quit (Ping timeout: 250 seconds)
11:59:34  <rphillips>good morning
12:00:28  <rphillips>ldub_: local module = require('luvi').module
12:00:31  <rphillips>might help
12:10:03  <ldub_>wrapping all my code within a "return require('luvit')(function(...)..." in main.lua correct my first pb (module.dir).
12:11:22  <ldub_>but now trying to http GET an html resource bundled in the app, i'm stuck with "ENOENT: no such file or directory: bundle:/pages/install.html"
12:12:24  <ldub_>when i "lit make", install.html seems to be recognized. ("including: pages/install.html")
12:40:28  * SkyRocknRollquit (Remote host closed the connection)
13:21:45  * gavellanedajoined
13:31:49  <rphillips>that file is being looked for within the bundle. try ./pages/install.html
13:32:50  <gavellaneda>good morning
14:08:27  <ldub_>thanks rphillips , i needed to change load-content.lua so that it will work in that case, but not sure for all ^^
14:13:37  <ldub_>this is "local fs = require('coro-fs').chroot(pathJoin(module.dir, ".."))" that is not suitable for standalone execution.
14:40:27  <ldub_>"module.dir" seems not a generic path that can be used for standalone execution or as a luvit module
14:56:29  * kazuponjoined
15:08:55  * SouL_|_joined
15:13:20  * kazuponquit
15:26:54  * kazuponjoined
15:55:35  * SouL_|__joined
15:58:10  * SouL_|_quit (Ping timeout: 252 seconds)
16:02:13  * SouL_|_joined
16:05:04  * SouL_|__quit (Ping timeout: 265 seconds)
16:13:15  * SouL_|_quit (Read error: Connection reset by peer)
16:13:32  * SouL_|_joined
16:15:55  * SouL_|__joined
16:17:57  * SouL_|_quit (Ping timeout: 244 seconds)
16:18:32  * joconnorjoined
16:19:01  * SouL_|__quit (Read error: Connection reset by peer)
16:46:43  * SouL_|_joined
16:49:59  * SouL_|__joined
16:50:58  * SouL_|_quit (Ping timeout: 252 seconds)
16:52:03  <creationix>ldub_: are you trying to make a luvi app?
16:52:26  <creationix>module.dir only exist for files that were loaded with luvit’s require system, it will have a “bundle://“ prefix if loaded from the bundle
16:52:45  <creationix>fs.* can’t work with bundle:* paths and require(‘luvi’).bundle only works with bundle paths
16:53:18  <creationix>I’ve considered adding require.loadfile, require.scandir, require.stat, etc that is relative to the caller and automatically uses bundle or fs
16:53:40  <creationix>you can make a wrapper by checking for the bundle prefix and switching which API you use
16:54:11  <creationix>see how I do it in ffi-loader https://github.com/creationix/lit-ffi-loader/blob/master/ffi-loader.lua
16:54:32  <creationix>base is passed in as module.dir
16:58:19  <ldub_>hi tim, i'm trying to use the current luvit.io and make it as a standalone app with lit make
17:02:09  <creationix>ahh, then you probably need to patch weblit’s static file server to know about bundle paths and use the bundle api in that case
17:02:25  <creationix>source at https://github.com/creationix/weblit/blob/master/libs/weblit-static.lua
17:02:38  <creationix>you an test by modifying your file in deps in-place
17:03:05  <creationix>one thing to watch for is fs has readFile vs bundle’s readfile
17:03:14  <creationix>and bundle has readdir while fs has scandir
17:03:30  <creationix>and remove the “bundle:” prefix when handing paths to bundle’s APIs
17:04:58  <ldub_>i see, so some work need to me made ^^
17:05:47  <ldub_>but it was just for fun, so i will probably not break luvit.io current structure
17:09:27  * SouL_|__quit (Ping timeout: 256 seconds)
17:09:38  * SouL_|_joined
17:11:43  * SouL_|__joined
17:13:47  * SouL_|_quit (Ping timeout: 250 seconds)
17:18:43  * SouL_|__quit (Ping timeout: 245 seconds)
17:21:17  <rphillips>got the scheduler tests migrated
17:21:27  <rphillips>figuring out the timeout issue with them on travis though
17:29:22  * SouL_|_joined
17:29:50  * slurpjoined
17:30:40  <creationix>rje: rphillips: I didn’t sleep well last night (not enough oxygen) I’ve got a doctor’s appointment in 30 minutes and probably won’t make the planning meeting.
17:31:07  <rje>creationix: thanks for letting us know, take care of yourself
17:34:33  <rphillips>take care
17:42:47  * kazuponquit (Remote host closed the connection)
17:42:57  * kazuponjoined
17:43:55  * SouL_|_quit (Ping timeout: 255 seconds)
18:26:59  * kazuponquit (Remote host closed the connection)
18:35:01  * ldub_quit (Quit: Leaving)
18:42:03  * SouL_|_joined
18:46:38  * SouL_|_quit (Ping timeout: 264 seconds)
18:47:38  * gavellanedaquit (Ping timeout: 250 seconds)
18:50:30  * ldub_joined
18:50:41  * SouL_|_joined
18:53:42  * ldub_quit (Quit: Leaving.)
18:55:44  * SouL_|_quit (Ping timeout: 246 seconds)
18:55:51  * ldub_joined
18:55:52  * SouL_|_joined
18:59:54  * SouL_|__joined
19:01:38  * SouL_|_quit (Ping timeout: 264 seconds)
19:02:46  * avidalquit (Quit: bye)
19:04:20  * avidaljoined
19:04:50  * SouL_|__quit (Ping timeout: 244 seconds)
19:14:05  * ldub_1joined
19:14:32  * ldub_quit (Ping timeout: 265 seconds)
19:14:48  * SouL_|_joined
19:15:53  * SouL_|_quit (Read error: Connection reset by peer)
19:20:29  * SouL_|_joined
19:24:18  * ldub_joined
19:24:41  * ldub_1quit (Ping timeout: 265 seconds)
19:24:45  * gavellanedajoined
19:27:34  * SouL_|_quit (Ping timeout: 244 seconds)
19:35:02  * ldub_1joined
19:35:38  * ldub_quit (Ping timeout: 246 seconds)
19:37:39  * ldub_joined
19:38:40  <rphillips>rje: vidyo?
19:39:29  * ldub_1quit (Ping timeout: 246 seconds)
19:52:24  * SouL_|_joined
20:00:00  * SouL_|_quit (Ping timeout: 250 seconds)
20:06:52  * ldub_1joined
20:08:21  * ldub_quit (Ping timeout: 248 seconds)
20:09:49  * SouL_|_joined
20:11:22  <creationix>back, did I miss anything?
20:12:54  <rphillips>not really
20:13:01  <rphillips>dom0 discussion
20:54:19  <creationix>ldub_1: so making luvit.io work in a luvi app is actually a bit of work. I fixed some of the stuff
20:55:50  <creationix>ldub_1: you can see the progress at https://github.com/luvit/luvit.io/tree/luvi-app
20:56:02  <creationix>I fixed ffi-loader (used by hoedown) to work in luvi bundles
20:56:18  <ldub_1>creationix: thanks for it, hope that it was not a waste of time for you
20:56:36  <creationix>ldub_1: no, it’s great experience to see how different luvit and luvi environments are
20:56:44  <creationix>I can see people wanting to switch between them
20:57:08  <ldub_1>creationix: i agree
20:57:11  <creationix>bundle.* and fs.* are quite different, there should probably be something
20:58:54  <ldub_1>did you thought about an embedded lit explorer in lit presentation ?
21:00:43  <rje>rphillips: sure, was in a meeting
21:01:06  <rphillips>rje: i'm in my 1x1 now... it'll have to be afterwards
21:01:26  <rje>ok, i'll get coffee...
21:02:50  * gavellanedaquit (Ping timeout: 264 seconds)
21:02:55  <ldub_1>sorry for my english, was just saying: a lit explorer & search would be great
21:04:21  <creationix>ldub_1: yes, lit search is on the TODO list
21:05:00  <ldub_1>cool
21:11:41  * ldub_1quit (Ping timeout: 250 seconds)
21:13:08  * SouL_|_quit (Ping timeout: 252 seconds)
21:13:28  * ldub_joined
21:18:13  * ldub_1joined
21:19:08  * ldub_quit (Ping timeout: 245 seconds)
21:37:54  <creationix>ldub_1: ok, I think I have luvit.io working as a luvi app
21:38:00  <creationix>you can test it by running `lit make github://luvit/luvit.io@luvi-app`
21:38:08  <creationix>or cloning the luvi-app branch of the repo
21:38:16  <creationix>and running with `luvi .`
21:38:31  <rphillips>rje: back
21:38:39  <ldub_1>i test
21:38:53  <creationix>I made this library help out https://github.com/creationix/hybrid-fs
21:38:55  <rje>rphillips: ok
21:39:03  <creationix>used by weblit-static and several internal libs to luvit.io’s framework
21:40:18  <ldub_1>creationix: ffi-loader is needed by hoedown . lit install does not do recursive dependency search ?
21:40:42  <creationix>it does, but the old version of hoedown didn’t have it listed as a dep
21:40:48  <creationix>rm -rf deps and try again
21:41:04  <creationix>lit install won’t ever replace code already in deps
21:41:05  * erlbot--quit (Remote host closed the connection)
21:41:32  <creationix>though if you ran `lit install creationix/hoedown` directly it would grab the latest version and overwrite it
21:41:40  <ldub_1> no i still have to manually import it
21:42:00  <creationix>how are you running it?
21:42:32  <creationix>I fixed it in hoedown 1.0.7 https://github.com/creationix/lit-hoedown/commit/3d95483eb04a82c031e667813fcace044e9a6361#diff-d1fa909ca8a7ee494144a51c73228384L5
21:43:07  <creationix>and it’s on lit too http://lit.luvit.io/packages/creationix/hoedown/v1.0.7
21:43:08  * erlbot--joined
21:44:05  <ldub_1>do i need to manually change package.lua to change versions
21:44:07  <ldub_1>?
21:45:48  <creationix>you shouldn’t need to for the hoedown update
21:46:07  <creationix>but you do need to either remove the old version of install it explicitly
21:46:13  <creationix>automatic deps never overwrite local files
21:46:45  <creationix>hmm, I just tested and hybrid fs doesn’t quite work with zip bundles
21:49:29  <creationix>ok, fixed the content-loader to work with zip bundles
21:49:57  <creationix>They don’t prefix the error message with “ENOENT:” like all the other APIs do https://github.com/luvit/luvit.io/commit/d044eb5e8704a4b7de6c8333bd4c5984af001bf3
21:50:46  <creationix>ldub_1: did you test with `lit make github://luvit/luvit.io@luvi-app`
21:51:00  <creationix>it works for me in a blank directory (it builds a `luvit.io` binary you can execute)
21:51:52  <ldub_1>creationix: i'm learning also git ;-)
21:53:27  <ldub_1>i'm trying by fetching last commits of luvi-app branch
21:53:44  <ldub_1>creationix: still have [string "bundle:deps/require.lua"]:171: No such module 'ffi-loader' in 'bundle:/deps/hoedown/init.lua'
21:54:05  <creationix>what version does howdown/init.lua export at the top?
21:54:12  <creationix>you need version 1.0.7
21:54:20  <ldub_1>creationix: yes i have
21:54:40  <creationix>and I assume you have latest lit?
21:54:49  <ldub_1>1.1.4
21:55:01  <ldub_1>luvi v2.0.3
21:55:41  <ldub_1>creationix: you want the make trace ?
21:55:50  <creationix>hmm, I wonder if it’s a lit bug
21:56:03  <creationix>it appears to be loading the deps for hoedown 1.0.1 but using hoedown 1.0.7
21:56:06  <ldub_1>i have version mismatch
21:56:33  <ldub_1>creationix: version mismatch (disk): hoedown 1.0.7 ~= 1.0.1
21:56:36  <creationix>yep that’s a warning meaning the package.lua version doesn’t match
21:56:42  <creationix>just a warning though
21:58:35  <ldub_1>creationix: lit make github://luvit/luvit.io@luvi-app works just fine
21:59:05  <creationix>yep, I’m seeing the same thing, not sure what’s up
21:59:16  <creationix>updating the version in package.lua will work around the issue
22:04:52  <ldub_1>creationix: +1
22:09:40  <ldub_1>creationix: so now we can consider luvit.io as a luvi app not a luvit app ? (ref readme.md ) (i don't know how to refer to a line of file in github)
22:29:14  <ldub_1>well past midnight here,.. thanks for helps
22:29:31  * ldub_1quit (Quit: Leaving.)
22:51:47  * gavellanedajoined
23:32:41  * UniOnquit (Remote host closed the connection)