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

在Ubuntu20.04安装遇到问题 #37

Open
Zgh20060114 opened this issue Sep 18, 2024 · 16 comments
Open

在Ubuntu20.04安装遇到问题 #37

Zgh20060114 opened this issue Sep 18, 2024 · 16 comments

Comments

@Zgh20060114
Copy link

无法[y/N]进行选择,一路滚动就自己安装完成了,没法进行配置
下面是过程信息:

现在开始为您的个性化定制,如果不确定,可以一路按 ENTER 下去

=================================

==> Did your terminal shows this symbols correctly?  (clock symbol)
==> 您的终端是否能正常显示此字符? (应为时钟符号)
==> 是或否,默认选否 [y/N] shell-init:获取当前目录时出错: getcwd: 无法访问父目录:没有那个文件或目录
Error detected while processing /home/zgh/.local/share/nvim/site/pack/packer/start/cmake-tools.nvim/plugin/cmake-tools.lua:
E5113: Error while calling lua chunk: ...ack/packer/start/cmake-tools.nvim/plugin/cmake-tools.lua:4: loop or previous error loading module 'cmake-tools'
stack traceback:
[C]: in function 'require'
...ack/packer/start/cmake-tools.nvim/plugin/cmake-tools.lua:4: in main chunk
Error detected while processing command line:
packer.nvim: Error running config for cmake-tools.nvim: /home/zgh/.config/nvim/lua/archvim/config/cmake-tools.lua:1: loop or previous error loading module 'cmake-tools'
packer.nvim: Error running config for neogit: ...m/site/pack/packer/start/neogit/lua/neogit/lib/state.lua:19: attempt to index a nil value=================================

-- Worry not, you may still use NeoVim without the fancy icons.
-- 别担心,您仍然可以正常使用 NeoVim,只不过没有了一些花哨的图标。

==> The symbol is not showing correctly due to lack of the Nerd Fonts. Would you like to install and enable it right now?
==> 此字符 “ ” 无法显示可能是因为您没有安装 Nerd Fonts 字体,要现在安装并启用这款字体吗?
==> 是或否,默认选否 [y/N]

==> Do you need to use this NeoVim in remote connection (SSH)?
==> 您是否需要在远程连接(SSH)中使用此 NeoVim?
==> 是或否,默认选是 [Y/n] shell-init:获取当前目录时出错: getcwd: 无法访问父目录:没有那个文件或目录
Error detected while processing /home/zgh/.local/share/nvim/site/pack/packer/start/cmake-tools.nvim/plugin/cmake-tools.lua:
E5113: Error while calling lua chunk: ...ack/packer/start/cmake-tools.nvim/plugin/cmake-tools.lua:4: loop or previous error loading module 'cmake-tools'
stack traceback:
[C]: in function 'require'
...ack/packer/start/cmake-tools.nvim/plugin/cmake-tools.lua:4: in main chunk
Error detected while processing command line:
packer.nvim: Error running config for cmake-tools.nvim: /home/zgh/.config/nvim/lua/archvim/config/cmake-tools.lua:1: loop or previous error loading module 'cmake-tools'
packer.nvim: Error running config for neogit: ...m/site/pack/packer/start/neogit/lua/neogit/lib/state.lua:19: attempt to index a nil value

==> Did you set any background image for the terminal?
==> 您是否为终端设定了背景贴图(例如二次元壁纸)?
==> 是或否,默认选是 [Y/n] shell-init:获取当前目录时出错: getcwd: 无法访问父目录:没有那个文件或目录
Error detected while processing /home/zgh/.local/share/nvim/site/pack/packer/start/cmake-tools.nvim/plugin/cmake-tools.lua:
E5113: Error while calling lua chunk: ...ack/packer/start/cmake-tools.nvim/plugin/cmake-tools.lua:4: loop or previous error loading module 'cmake-tools'
stack traceback:
[C]: in function 'require'
...ack/packer/start/cmake-tools.nvim/plugin/cmake-tools.lua:4: in main chunk
Error detected while processing command line:
packer.nvim: Error running config for cmake-tools.nvim: /home/zgh/.config/nvim/lua/archvim/config/cmake-tools.lua:1: loop or previous error loading module 'cmake-tools'
packer.nvim: Error running config for neogit: ...m/site/pack/packer/start/neogit/lua/neogit/lib/state.lua:19: attempt to index a nil value

Inlay Hint: add(a: 1, b: 2)
No Inlay Hint: add(1, 2)

Inlay Hint: auto i:int = 1;
No Inlay Hint: auto i = 1;

==> Would you like to enable inlay hints?
==> 您是否希望开启 Inlay Hint 提示?
==> 是或否,默认选是 [Y/n] shell-init:获取当前目录时出错: getcwd: 无法访问父目录:没有那个文件或目录
Error detected while processing /home/zgh/.local/share/nvim/site/pack/packer/start/cmake-tools.nvim/plugin/cmake-tools.lua:
E5113: Error while calling lua chunk: ...ack/packer/start/cmake-tools.nvim/plugin/cmake-tools.lua:4: loop or previous error loading module 'cmake-tools'
stack traceback:
[C]: in function 'require'
...ack/packer/start/cmake-tools.nvim/plugin/cmake-tools.lua:4: in main chunk
Error detected while processing command line:
packer.nvim: Error running config for cmake-tools.nvim: /home/zgh/.config/nvim/lua/archvim/config/cmake-tools.lua:1: loop or previous error loading module 'cmake-tools'
packer.nvim: Error running config for neogit: ...m/site/pack/packer/start/neogit/lua/neogit/lib/state.lua:19: attempt to index a nil value

-- You may always edit these settings later in: /.local/share/nvim/archvim/opts.json
-- 您以后可以随时修改这些设置:
/.local/share/nvim/archvim/opts.json

@Zgh20060114
Copy link
Author

哦,抱歉,问题应该不在无法[y/N]进行选择,而是”无法访问父目录:没有那个文件或目录“

@archibate
Copy link
Owner

y/n选择无法输入吗?此处的无法访问父目录是一个无关紧要的错误,不影响使用,我会尝试抑制这个无关信息。另外,即使不配置y/n,一路ENTER,也是可以使用的,只是针对不同类型终端的用户体验优化。

@Zgh20060114
Copy link
Author

就是安装的时候,信息一路滚动,我都没来得及输入y/n
目前情况是图标乱码,而且和老师您的界面长的不一样欸

@archibate
Copy link
Owner

安装nerd fonts并终端字体将设为nerd fonts可以解决乱码。

@archibate
Copy link
Owner

按理说y/n是会等待你输入,才会继续执行,而不是直接执行下去,你可以执行一下这个命令帮我测试一下吗?可能有的bash版本不支持read

echo -n "[Y/n] "
read -n1 res
echo "你输入了 $res"

@Zgh20060114
Copy link
Author

zgh@zgh-virtual-machine:$ echo -n "[Y/n] "
[Y/n] zgh@zgh-virtual-machine:
$ read -n1 res
zgh@zgh-virtual-machine:~$ eecho "你输入了 $res"

找不到命令“eecho”,您的意思是:

command 'echo' from deb coreutils (8.30-3ubuntu2)

尝试 sudo apt install

zgh@zgh-virtual-machine:~$ echo "你输入了 $res"
你输入了 e

@archibate
Copy link
Owner

看起来没什么问题,你的read会在这里停住吗?

    echo -n "==> 是或否,默认选否 [y/N] "
    read -n1 x 2> /dev/null || read x || x=n

@Zgh20060114
Copy link
Author

之前我是在虚拟机了安装的,刚才我在另一台双系统笔记本ubuntu20.04又安装了一次,也设置了nerd-fonts字体,现在有些地方的图标是乱码,如图
image
其他图标是对的
还有:checkhealth里面有很多error,不知道正不正常

@Zgh20060114
Copy link
Author

看起来没什么问题,你的read会在这里停住吗?

    echo -n "==> 是或否,默认选否 [y/N] "
    read -n1 x 2> /dev/null || read x || x=n

会停住的

@archibate
Copy link
Owner

设定的是JetBrainMono NerdFont吗

@Zgh20060114
Copy link
Author

设定的是JetBrainMono NerdFont吗

是的,就是按照老师您readme里面那个链接博客里下载安装的NerdFont

@Zgh20060114
Copy link
Author

设定的是JetBrainMono NerdFont吗

是的,就是按照老师您readme里面那个链接博客里下载安装的NerdFont

image

@Zgh20060114
Copy link
Author

设定的是JetBrainMono NerdFont吗

是的,就是按照老师您readme里面那个链接博客里下载安装的NerdFont

image

下载的JetBrainMono.zip没有找到JetBrainMono NerdFont,是不是这个原因呀

@Zgh20060114
Copy link
Author

抱歉老师,是我的问题,下错字体了换回正确字体就好了

@archibate
Copy link
Owner

archibate commented Sep 18, 2024 via email

@Zgh20060114
Copy link
Author

对,那个里面没有那个字体,我在https://www.nerdfonts.com/找的

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

2 participants