Skip to content

Commit

Permalink
error on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengrenzhe committed Jan 7, 2018
1 parent a32cbb3 commit b7aa990
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Change Log
All notable changes to the "nyan-cat" extension will be documented in this file.

## [0.0.6] - 2018-01-04
- Add error message

## [0.0.5] - 2018-01-04
- Add reload command

Expand All @@ -16,4 +19,4 @@ All notable changes to the "nyan-cat" extension will be documented in this file.
- Add icon

## [0.0.1] - 2018-01-03
- Initial release
- Initial release
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,23 @@ After upgrade extension, you must be press `shift + command + p`, search `Nyan C

在更新Nyan Cat后,你必须按下`shift + command + p`,输入`Nyan Cat: reload Nyan Cat`并执行来手动更新注入代码。

**IMPORTANT 4**

For Linux users, you may receive error when run the command, it shows `xxx command not found`, this because of the VSCode extension have no permissions to modify the VSCode source code on Linux, it leds this problem, so you can run VSCode with sudo, for example:
```
sudo code --user-data-dir=~
```
Then rerun the command, and close this VSCode instance, then reopen VSCode by ordinary user, you can see the command came into effect.

对于Linux用户,当运行Nyan Cat的命令时可能会收到 `xxx command not found`的错误,这是因为VSCode扩展在Linux上没有修改VSCode源代码的权限,这导致了这个错误,所以你可以通过sudo运行VSCode,例如
```
sudo code --user-data-dir=~
```
重新运行刚刚出错的命令,然后关闭这个VSCode实例,以普通用户重新打开VSCode,这是就能看到刚刚的命令生效了。

## Uninstall

Before you actually uninstall, you must be press `shift + command + p`, search `Nyan Cat: ready to uninstall Nyan Cat` and execute it,
Before you actually uninstall, you must be press `shift + command + p`, search `Nyan Cat: ready to uninstall Nyan Cat` and execute it,
this will restore the file what you modified during the installation, it's important.

在实际卸载前,按下`shift + command + p`,输入`Nyan Cat: ready to uninstall Nyan Cat`并执行,这将恢复在安装过程中修改的文件,这一步很重要。
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "git",
"url": "https://github.com/zhengrenzhe/vscode-Nyan-Cat.git"
},
"version": "0.0.5",
"version": "0.0.6",
"publisher": "zhengrenzhe",
"engines": {
"vscode": "^1.19.0"
Expand Down

0 comments on commit b7aa990

Please sign in to comment.