Implicit load std lua libraries.
Closed this issue · 2 comments
moteus commented
I use host application which just register std libraries loaders.
So when MobDebug try use table library i get error.
--
-- MobDebug 0.542
-- Copyright 2011-13 Paul Kulchenko
-- Based on RemDebug 1.0 Copyright Kepler Project 2005
--
local coroutine = require "coroutine"
local io = require "io"
local os = require "os"
local string = require "string"
local table = require "table"
local mobdebug = {
pkulchenko commented
So, the solution you are proposing is to add local table = require "table"
?
moteus commented
Yes. Host application just put cfunction to package.preload
(package.preload.os = luaopen_os).
So if you need this library you need calls require'os'
.