A test case would be super helpful. Luvit sets this variable up within the
init.lua [1] file and will call this initialization routine automatically
for Luvit. If you are using Luvit in a Luvi app, then you may have to do
something like:
require('luvit')(function(...)
-- require another lua/luvi/luvit file or your luvit code goes here.end)
-Ryan
[1]
https://github.com/luvit/luvit/blob/959b6dc475ed31655613eebff5a46ae0242b4f2f/init.lua#L21-L22
On Mon, Apr 4, 2016 at 7:56 PM, develephant <[email protected]>
wrote:
> Hi,
>
> After hours of hacking (and finally some Google), it appears that
> something is broken with "process"
>
> *Uncaught Error: [string "bundle:deps/stream/stream_readable.lua"]:805:
> attempt to index global 'process' (a nil value)*
> *stack traceback:*
> * [string "bundle:deps/stream/stream_readable.lua"]:805: in function
> 'resume'*
> * [string "bundle:deps/stream/stream_readable.lua"]:797: in function
> 'resume'*
> * [string "bundle:deps/net.lua"]:165: in function 'resume'*
> * [string "bundle:deps/stream/stream_readable.lua"]:762: in function 'on'*
> * [string "bundle:main.lua"]:40: in function 'handler'*
> * [string "bundle:deps/core.lua"]:248: in function 'emit'*
> * [string "bundle:deps/net.lua"]:306: in function 'handler'*
> * [string "bundle:deps/core.lua"]:248: in function 'emit'*
> * [string "bundle:deps/net.lua"]:255: in function <[string
> "bundle:deps/net.lua"]:252>*
> * [C]: in function 'run'*
> * [string "bundle:main.lua"]:66: in main chunk*
>
> But, if I add this to main.lua then the problem is solved (thanks @sclark39
> ):
>
> *_G['process'] = require('process').globalProcess()*
>
> Bug?
>
> Cheers.
>
> --
> You received this message because you are subscribed to the Google Groups
> "luvit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"luvit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.