Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osx 一格式化就报错 #4

Open
wkii opened this issue Mar 5, 2015 · 5 comments
Open

osx 一格式化就报错 #4

wkii opened this issue Mar 5, 2015 · 5 comments

Comments

@wkii
Copy link

wkii commented Mar 5, 2015

环境:sublime text3
osx, 使用brew 安装 lua
lua -v
Lua 5.2.3 Copyright (C) 1994-2013 Lua.org, PUC-Rio

一格式化就报错:

/usr/local/bin/lua: ./metalua/compiler.lua:119: ./metalua/compiler/bytecode/lopcodes.lua:284: attempt to call field 'gfind' (a nil value)
stack traceback:
    [C]: in function 'error'
    ./metalua/compiler.lua:119: in function 'get_bytecode_compiler'
    ./metalua/compiler.lua:125: in function 'f'
    ./metalua/compiler.lua:153: in function <./metalua/compiler.lua:150>
    (...tail calls...)
    [C]: in function 'require'
    formatter.lua:24: in main chunk
    [C]: in ?

这是缺什么依赖吗、

@icoder528
Copy link

应该是lua版本的问题,我这边用brew装lua51这个package后,然后修改下FormatLua.sublime-settings中的lua路径,就可以使用了

@mqliutie
Copy link

mqliutie commented May 8, 2015

我也是sublime text3 安装 用得package control安装的,然后路径要怎么配呢?始终配不对

@mqliutie
Copy link

mqliutie commented May 8, 2015

默认安装好后报错 /bin/sh: /usr/local/bin/lua: No such file or directory

@mqliutie
Copy link

mqliutie commented May 8, 2015

我用的lua版本5.2- -+ 只能用5.1版本?

@mqliutie
Copy link

mqliutie commented May 8, 2015

我从5.1 5.1.1到5.1.5都装了一遍,报错:
nil [string "isCodeValid"]:1: unexpected symbol near '<'
看来用不了这个插件了 最新版的lua也试过 也不行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants