CodelyTV / dotly

🌚 Modular and easy to customize dotfiles framework
https://codely.com/cursos
MIT License
1.19k stars 116 forks source link

Dot command error #237

Open usarral opened 1 year ago

usarral commented 1 year ago

I has an error when I type the command dot, the fzf list is 0/0 and it outputs this error image

That's on MacOs 13.3 on Warp and MacOs integrated Terminal

gtrabanco commented 1 year ago

Please give us more context by show us your env DOTFILES_PATH and DOTLY_PATH folder

env | grep "^DOT"

Also check those folders exists if variables are defined:

[[ -G "$DOTFILES_PATH" ]] && echo "Dotfiles folder exists and owned by me"
[[ -G "$DOTLY_PATH" ]] && echo "Dotly folder exists and owned by me"

If variables are not defines check

[[ -f "${HOME}/.bashrc" ]] && echo "bashrc exists"
cat "${HOME}"/.bashrc

Please copy paste all outputs but remember to check and censorship private outputs like secrets variables content.

jacarrara commented 1 year ago

Hi! I had the same issue. The issue relies on the binaries or symlinks in ~/bin are not loaded. If you write in your terminal find --version and you get an error, you are not using gfind. Add in your .zshenv the next line: export PATH="/Users/$USER/bin":$PATH

Regards!

jmcerrejon commented 1 year ago

Same issue here. When I run dot I get Command not found.

OS: macOS Ventura 13.5.1 Shell: zsh

The file dotly.log shows:

----- 2023-09-07 08:04:37 - Installing dotly dependencies -----
Submodule 'modules/dotbot' (https://github.com/anishathalye/dotbot.git) registered for path 'modules/dotly/modules/dotbot'
Submodule 'modules/z' (https://github.com/rupa/z.git) registered for path 'modules/dotly/modules/z'
Cloning into '/Users/ulysess/.dotfiles/modules/dotly/modules/dotbot'...
Cloning into '/Users/ulysess/.dotfiles/modules/dotly/modules/z'...
fatal: unable to access 'https://github.com/rupa/z.git/': Failed to connect to github.com port 443 after 75006 ms: Couldn't connect to server
fatal: clone of 'https://github.com/rupa/z.git' into submodule path '/Users/ulysess/.dotfiles/modules/dotly/modules/z' failed
Failed to clone 'modules/z'. Retry scheduled
Cloning into '/Users/ulysess/.dotfiles/modules/dotly/modules/z'...
fatal: unable to access 'https://github.com/rupa/z.git/': Failed to connect to github.com port 443 after 19475 ms: Couldn't connect to server
fatal: clone of 'https://github.com/rupa/z.git' into submodule path '/Users/ulysess/.dotfiles/modules/dotly/modules/z' failed
Failed to clone 'modules/z' a second time, aborting
fatal: Failed to recurse into submodule path 'modules/dotly'

Note:

I re-run the install script and now It works 😅