Giter Club home page Giter Club logo

Comments (7)

leeight avatar leeight commented on May 22, 2024

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

from baidu-fe-code-style.

footya avatar footya commented on May 22, 2024

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

from baidu-fe-code-style.

l5oo00 avatar l5oo00 commented on May 22, 2024

@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

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

求指导!

from baidu-fe-code-style.

l5oo00 avatar l5oo00 commented on May 22, 2024

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

from baidu-fe-code-style.

sundyxfan avatar sundyxfan commented on May 22, 2024

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

from baidu-fe-code-style.

aflext avatar aflext commented on May 22, 2024

系统: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

求助大神~~

from baidu-fe-code-style.

jinzhubaofu avatar jinzhubaofu commented on May 22, 2024

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

from baidu-fe-code-style.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.