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

config.cson中无法添加命令 #14

Open
yuhaoxin opened this issue Nov 23, 2016 · 12 comments
Open

config.cson中无法添加命令 #14

yuhaoxin opened this issue Nov 23, 2016 · 12 comments

Comments

@yuhaoxin
Copy link

我把说明文档提供的compile指令复制到config.cson中,保存后会自动变成"atom-shell-commands": {}
如下图所示:
保存前
1
保存后
image
请问如何解决,谢谢。

@skywind3000
Copy link
Owner

注意 indent, tab设置,要和cson其他行保持一致。

@AWPelican
Copy link

AWPelican commented Nov 26, 2016

I'm experiencing the same problem as you're describing. I put in the settings exactly like you're saying, save the file, and then in a few moments get an empty set of curly braces (i.e., my settings are wiped out). I'm not sure if you found the solution or not, but I'd love to hear if you did!

This extension looks fantastic. I love the simplicity and power it would add to my editing environment. Hopefully I can end up getting it working.

@madakk
Copy link

madakk commented Dec 22, 2016

I'm also experiencing this issue, my indentation all seem to be correct and everything is in order, but as soon as I save the config the contents get stripped and I'm left with empty curly braces. Anyone has any ideas on this?

@jpenca
Copy link

jpenca commented Dec 22, 2016

+1 exactly the same issue. I'm new to Atom and installing this package was the first thing I tried to do. no idea at all what's going on.

@madakk
Copy link

madakk commented Dec 22, 2016

I had a short discussion about this on the Atom discussion forums, with the conclusion that this is definitely the package itself and not Atom causing this. There's also a good alternative suggested as part of te discussion.

https://discuss.atom.io/t/config-file-problem-related-to-atom-shell-commands/37338

@skywind3000
Copy link
Owner

你们不要在 config.cson里面写空的东西,配置好再保存注意indent,不然错误的东西或者空的东西一保存就会被删除掉

@madakk
Copy link

madakk commented Dec 23, 2016

Look at the screenshot from @yuhaoxin, he's pasting the example code from the README as is. What's wrong with that?

@lemongrassnginger
Copy link

yup, I'm getting the same issue, trying to adjust the sample config from the readme. Is there some kind of config parsing that's not working? Is the sample config in the readme valid cson?
I love the concept this package offers, would be awesome to get it working

@kedvsk
Copy link

kedvsk commented Jan 17, 2017

My solution was to remove the .../.atom/config.cson file, restart atom and then edit the regenerated file with an external editor. The file has to be stored as a UNIX file, not with UTF-8 or some else encoding.

But now my problem is, that the records within "atom-shell-commands" are not recognized, i.e. I don't have any idea how to use a configured command.

image

@AWPelican
Copy link

AWPelican commented Jan 23, 2017

This is a duplicate of issue #10, where using an external editor solved the issue for me. After using an external editor for the first command I created, I could edit config.cson in Atom as normal and not have my future changes wiped out. It was just that first time that I had to do it in an external editor.

@skywind3000
Copy link
Owner

Sorry, for replying late,
This repository is looking for maintainer now, #20

@pinkieli
Copy link

您好,我也遇到了题主一样的问题,一改变保存就自动归为{}。后面尝试了用其他的编辑器打开也是一样的。请问这个具体应该如何配置啊?折腾N久了。谢谢

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

8 participants