luvit / lit

Toolkit for developing, sharing, and running luvit/lua programs and libraries.
http://lit.luvit.io/
Apache License 2.0
245 stars 58 forks source link

Updated lit and getting error #171

Open james2doyle opened 8 years ago

james2doyle commented 8 years ago

Just update lit, but there is an error now

lit version: 3.1.0
luvi version: v2.6.0
command: update
load config: /Users/james2doyle/.litconfig
downloading: https://lit.luvit.io/packages/luvit/lit
lit is up to date: 3.1.0
fail: [string "bundle:libs/auto-updater.lua"]:42: attempt to index local 'meta' (a nil value)
stack traceback:
    [string "bundle:libs/auto-updater.lua"]:42: in function 'check'
    [string "bundle:commands/update.lua"]:115: in function <[string "bundle:commands/update.lua"]:1>
    [string "bundle:main.lua"]:52: in function <[string "bundle:main.lua"]:39>
    [C]: in function 'xpcall'
    [string "bundle:main.lua"]:39: in function <[string "bundle:main.lua"]:31>
creationix commented 8 years ago

Hmm, I saw this too and couldn't find the cause quickly.

There is a workaround by building luvit directly.

# assuming bash-like shell
lit make lit://luvit/luvit `which luvit`

Which will use lit to build latest luvit and replace whatever luvit is in your path

creationix commented 8 years ago

But I suspect the root problem will persist, so we should probably find the cause. I'll try to look at it tomorrow.

james2doyle commented 8 years ago

Yeah ok that worked for me

ghost commented 8 years ago

I just came across the same error:

# lit update
lit version: 2.2.16
luvi version: v2.4.0
command: update
load config: $HOME/.litconfig
downloading: https://lit.luvit.io/packages/luvit/lit
update status: update available: 2.3.1
downloading: https://lit.luvit.io/packages/luvit/lit/v2.3.1
downloading: https://github.com/luvit/luvi/releases/download/v2.5.1/luvi-regular-Linux_x86_64
downloading: https://lit.luvit.io/packages/luvit/lit/v2.3.1.zip
recursivly running update: $HOME/bin/lit update
lit version: 2.3.1
luvi version: v2.5.1
command: update
load config: $HOME/.litconfig
downloading: https://lit.luvit.io/packages/luvit/lit
update status: major update available: 3.4.3
downloading: https://lit.luvit.io/packages/luvit/lit/v3.4.3
downloading: https://github.com/luvit/luvi/releases/download/v2.7.4/luvi-regular-Linux_x86_64
downloading: https://lit.luvit.io/packages/luvit/lit/v3.4.3.zip
recursivly running update: $HOME/bin/lit update
lit version: 3.4.3
luvi version: v2.7.4
command: update
load config: $HOME/.litconfig
downloading: https://lit.luvit.io/packages/luvit/lit
lit is up to date: 3.4.3
fail: [string "bundle:libs/auto-updater.lua"]:42: attempt to index local 'meta' (a nil value)
stack traceback:
        [string "bundle:libs/auto-updater.lua"]:42: in function 'check'
        [string "bundle:commands/update.lua"]:115: in function <[string "bundle:commands/update.lua"]:1>
        [string "bundle:main.lua"]:52: in function <[string "bundle:main.lua"]:39>
        [C]: in function 'xpcall'
        [string "bundle:main.lua"]:39: in function <[string "bundle:main.lua"]:31>

done: success

done: success

A bit irritating is the double "success" at the end - the first one is in light-green on dark-green background, while the second is in yellow on light-green background.