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

win8 sublime 2 安装后没有效果 #5

Closed
l5oo00 opened this issue Dec 16, 2014 · 7 comments
Closed

win8 sublime 2 安装后没有效果 #5

l5oo00 opened this issue Dec 16, 2014 · 7 comments
Assignees

Comments

@l5oo00
Copy link

l5oo00 commented Dec 16, 2014

求助:

win8 64位
sublime2 v2.0.2 build 2221
fecs 0.1.1

命令行下执行有效果

C:\>fecs
fecs  INFO aa.js (12 messages)
fecs  WARN → line 1, col 0: Missing JSDoc @file.
fecs  WARN → line 1, col 0: Missing JSDoc @author.
fecs  WARN → line 1, col 9: Missing semicolon.
fecs  WARN → line 4, col 1: Bad indentation (0 instead 4).
fecs  WARN → line 5, col 1: Bad indentation (0 instead 4).
fecs  WARN → line 6, col 1: Bad indentation (0 instead 4).
fecs  WARN → line 7, col 1: Bad indentation (0 instead 4).
fecs  WARN → line 7, col 1: Expression called with trailing whitespace before se
micolon
fecs  WARN → line 8, col 1: Bad indentation (0 instead 4).
fecs  WARN → line 8, col 6: There should be no spaces inside this paren.
fecs  WARN → line 8, col 10: There should be no spaces inside this paren.
fecs  WARN → line 9, col 1: Newline required at end of file but not found.

fecs: 113ms

但是装了插件后,保存时没有任何提示。

配置如下(用username代替我的用户名):

{
    "env": {
        "fecs_bin": "C:\\Users\\username\\AppData\\Roaming\\npm\\node_modules\\fecs\\bin\\fecs",
        "node_bin": "D:\\Program Files\\nodejs\\node"
    }
}

或者

{
    "env": {
        "fecs_bin": "C:\\Users\\username\\AppData\\Roaming\\npm\\fecs",
        "node_bin": "D:\\Program Files\\nodejs\\node"
    }
}

一开始配错了还会弹个 "Error 5",这会完全没有任何效果。

求大神给看看是不是还是路径没配对?

@leeight leeight self-assigned this Dec 18, 2014
@leeight
Copy link
Owner

leeight commented Dec 18, 2014

@l5oo00 操作系统情况,Sublime版本?fecs -v

@footya
Copy link

footya commented Dec 23, 2014

"node_bin": "D:\Program Files\nodejs\node.exe" 加上.exe

@l5oo00
Copy link
Author

l5oo00 commented Dec 23, 2014

@leeight 系统信息如下:

win8 64位
sublime2 v2.0.2 build 2221
fecs v0.1.1
node v0.10.32

刚才又捣鼓了下,发现一些新问题:

重装插件后按 @footya 提示操作,有效果了,但是还是跑不通,一保存就报错。

后来按照 #4 改了fecs的配置,终于有效果了。
image
image

最终配置如下:

{
    "env": {
        "fecs_bin": "C:\\Users\\username\\AppData\\Roaming\\npm\\node_modules\\fecs\\bin\\fecs",
        "node_bin": "D:\\Program Files\\nodejs\\node.exe"
    }
}



然后重启sublime,发现保存时又没效果,打开控制台,发现貌似是插件加载失败:
```dash
Reloading plugin D:\ProgramGreen\Sublime Text 2.0.2\Data\Packages\Baidu FE Code Style\fecs.py
Traceback (most recent call last):
  File ".\sublime_plugin.py", line 62, in reload_plugin
  File ".\fecs.py", line 264, in <module>
    watch()
  File ".\fecs.py", line 174, in watch
    view = sublime.active_window().active_view()
AttributeError: 'NoneType' object has no attribute 'active_view'
Reloading plugin D:\ProgramGreen\Sublime Text 2.0.2\Data\Packages\Baidu FE Code Style\gs.py
Reloading plugin D:\ProgramGreen\Sublime Text 2.0.2\Data\Packages\Baidu FE Code Style\gsq.py

fecs.py 这里报错:
image

不过先禁用然后再启用插件,就又能用了。

求指导!

@l5oo00
Copy link
Author

l5oo00 commented Dec 26, 2014

@leeight 求助 sublime重启后 插件加载不成功的问题。

@sundyxfan
Copy link

同求:sublime重启后 插件加载不成功的问题

@aflext
Copy link

aflext commented Jan 5, 2015

系统:win7 64位,sublime text3,fecs 0.2.4,node v0.10.33
先是 npm install fecs -g,等了好久终于装上了。
然后按照要求,安装_fecs_插件。
路径配置为

{
    "env": {
        "fecs_bin": "C:\\Users\\username\\AppData\\Roaming\\npm\\node_modules\\fecs\\bin",
        "node_bin": "D:\\Program Files\\nodejs\\node.exe"
    }
}

编辑js保存的时候控制台提示 error: String required
image

求助大神~~

@jinzhubaofu
Copy link

windows上python调用fecs的姿势貌似不太对。。。

@l5oo00 l5oo00 closed this as completed Apr 24, 2015
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

6 participants