You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the "zinit without zinit-annex-bin-gem-node" instructions and the script runs by itself but I can't seem to get it actually process a file correctly:
zsweep --auto zsh/get-icon-for-command.zsh
[ZSweep][zs::get-prj-dir:46]: Warning: didn't find any main poject dir uptree, was looking for: ·.git, ·TAGS, ·tags, ·CMakeLists.txt, ·configure[ZSweep][zsweep:65]: Notice: scanning file: •ZSH/GET-ICON-FOR-COMMAND.ZSH•…[ZSweep][zs::get-prj-dir:46]: Warning: didn't find any main poject dir uptree, was looking for: ·.git, ·TAGS, ·tags, ·CMakeLists.txt, ·configure
[ZSweep][zs::read-file:20]: Error: no input file given
[ZSweep][zsweep:75]: Warning: returning non-zero exit code
[ZSweep][zsweep:76]: Warning: the 1/1 failed files are:
·zsh/get-icon-for-command.zsh
I'm running that script from ~/dotfiles which is a git repo. I traced through that problem and the if at functions/util/zs::get-prj-dir:32 evaluates as true but I don't understand why. This is what set -x shows for that comparison:
None of that explains the [ZSweep][zs::read-file:20]: Error: no input file given error.
Any idea what might be going on?
I'm interested to see if it would be possible to get zsweep set up as a zsh linter in nvim via nvim-lint / mason. But I have to get it working first :) Any help much appreciated!
The text was updated successfully, but these errors were encountered:
Did a little more digging and this is the comparison in zs::read-file that's evaluating as true even thought it doesn't seem like it should (line numbers off by one from GH src because i added a set -x line):
+util/zs::read-file:20> [[ /Users/cam/dotfiles/zsh/get-icon-for-command.zsh == ([[:cntrl:][:space:][:INCOMPLETE:][:INVALID:]]#|*[[:INCOMPLETE:][:INVALID:]]*|[[:cntrl:]]#|0#|[^[:print:][:alnum:]]#) ]]
+util/zs::read-file:21> zsmsg_ zs::read-file:21 -h '{err}Error:{txt}' no input file given
I'm terrible at pattern matching but perplexity.ai says of that pattern:
The alternative [^[:print:][:alnum:]]# at the end allows for zero occurrences of non-printable, non-alphanumeric characters, which is true for any string (including your path).
Changing the last # to a + in WRONGSTR does seem to let it find the script (and the project directory):
I followed the "zinit without zinit-annex-bin-gem-node" instructions and the script runs by itself but I can't seem to get it actually process a file correctly:
I'm running that script from
~/dotfiles
which is a git repo. I traced through that problem and the if atfunctions/util/zs::get-prj-dir:32
evaluates as true but I don't understand why. This is whatset -x
shows for that comparison:None of that explains the
[ZSweep][zs::read-file:20]: Error: no input file given
error.Any idea what might be going on?
I'm interested to see if it would be possible to get zsweep set up as a zsh linter in nvim via nvim-lint / mason. But I have to get it working first :) Any help much appreciated!
The text was updated successfully, but these errors were encountered: