Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Feb 02 15:04
    Ryooooooga synchronize #452
  • Feb 02 04:15
    vladdoster commented #437
  • Feb 02 02:54
    vladdoster commented #468
  • Feb 02 00:25
    jankatins commented #467
  • Feb 01 16:17
    psprint edited #469
  • Feb 01 16:16
    psprint commented #469
  • Feb 01 16:14
    psprint synchronize #469
  • Feb 01 06:34
    vladdoster closed #471
  • Feb 01 06:34
    github-actions[bot] labeled #471
  • Feb 01 06:34
    github-actions[bot] labeled #471
  • Feb 01 06:34
    github-actions[bot] labeled #471
  • Feb 01 06:34
    github-actions[bot] labeled #471
  • Feb 01 06:34
    vladdoster review_requested #471
  • Feb 01 06:34
    vladdoster review_requested #471
  • Feb 01 06:34
    vladdoster opened #471
  • Feb 01 04:08
    miles170 commented #453
  • Feb 01 04:08
    miles170 edited #453
  • Feb 01 04:00
    github-actions[bot] unlabeled #453
  • Feb 01 04:00
    miles170 synchronize #453
  • Feb 01 01:28
    vladdoster commented #470
Anupam Srivastava
@anupamsr
That is from https://github.com/zdharma-continuum/zinit example. Removing bpick doesn't help
I think the problem is indeed in ziextract: Unpacking the files from: 'docker-compose-windows-x86_64.exe'…
vladislav doster
@vladdoster
zi as'null' from"gh-r" lbin'!* -> docker-compose' lucid nocompile nocompletions for @docker/compose
Anupam Srivastava
@anupamsr
Same
vladislav doster
@vladdoster
What’s full output
Anupam Srivastava
@anupamsr
zini as'null' from"gh-r" lbin'!* -> docker-compose' lucid nocompile nocompletions for @docker/compose

Downloading docker/compose…
(Requesting `docker-compose-windows-x86_64.exe'…)

ziextract: Unpacking the files from: `docker-compose-windows-x86_64.exe'…

Usage:  docker compose [OPTIONS] COMMAND

Docker Compose

Options:
      --ansi string                Control when to print ANSI control
                                   characters ("never"|"always"|"auto")
                                   (default "auto")
      --compatibility              Run compose in backward compatibility mode
      --env-file string            Specify an alternate environment file.
  -f, --file stringArray           Compose configuration files
      --profile stringArray        Specify a profile to enable
      --project-directory string   Specify an alternate working directory
                                   (default: the path of the, first
                                   specified, Compose file)
  -p, --project-name string        Project name

Commands:
  build       Build or rebuild services
  convert     Converts the compose file to platform's canonical format
  cp          Copy files/folders between a service container and the local filesystem
  create      Creates containers for a service.
  down        Stop and remove containers, networks
  events      Receive real time events from containers.
  exec        Execute a command in a running container.
  images      List images used by the created containers
  kill        Force stop service containers.
  logs        View output from containers
  ls          List running compose projects
  pause       Pause services
  port        Print the public port for a port binding.
  ps          List containers
  pull        Pull service images
  push        Push service images
  restart     Restart containers
  rm          Removes stopped service containers
  run         Run a one-off command on a service.
  start       Start services
  stop        Stop services
  top         Display the running processes
  unpause     Unpause services
  up          Create and start containers
  version     Show the Docker Compose version information

Run 'docker compose COMMAND --help' for more information on a command.
unknown docker command: "compose S:/"
ziextract: WARNING: extraction of the archive `docker-compose-windows-x86_64.exe' had problems.
vladislav doster
@vladdoster
Try for lbin”!* -> docker-compose.exe”
Does windows have symlinks? I haven’t used it in forever
Or change lbin to mv
Anupam Srivastava
@anupamsr
Hmm
vladislav doster
@vladdoster
It obviously works, but it’s calling it on when running one of the ices
Anupam Srivastava
@anupamsr
It does, in a way
I tried mv earlier btw, and now again. No help
+→zinit-extract:1> chmod a+x -- ./docker-compose-windows-x86_64.exe
+→zinit-extract:2> cygpath -w /home/srivastavaan/.local/share/zinit/plugins/docker---compose
+→zinit-extract:2> ./docker-compose-windows-x86_64.exe /S '/D=E:\scoop\apps\msys2\2022-06-03\home\srivastavaan\.local\share\zinit\plugins\docker---compose'
This is the issue
vladislav doster
@vladdoster
Where is /S coming from
Anupam Srivastava
@anupamsr
1814         ((#i)*.exe|(#i)*.pe32)
1815             →zinit-extract() {
1816                 command chmod a+x -- ./$file
1817                 ./$file /S /D="`cygpath -w $PWD`"
1818             }
1819             ;;
this is from zinit-install.zsh
vladislav doster
@vladdoster
Can you open an issue so I can track this?
Anupam Srivastava
@anupamsr
No idea what it is supposed to do: commit id c1163ff3abf38fd99e925581041c5499e539e6aa
vladislav doster
@vladdoster
Also, what happens if you only use “
Or vice versa
Might try that
Anupam Srivastava
@anupamsr
Oh. So double quote is probably not a good idea because it expands wildcards, but it works in .zshrc and satisfies my ocd of shellchek :)
come to think of it, i suppose it is best to use single quote everywhere
*when using zinit
Anupam Srivastava
@anupamsr
vladislav doster
@vladdoster
Thanks @Anupam
Sebastian Gniazdowski
@psprint
@vladdoster @anupamsr The /S /D comes from Firefox windows installer.. Sorry for not commenting this, that what the *.exesupport in ziextractis is actually Firefox installer support, experimental proof of concept to introduce a more versatile support later.. This is what makes pack for firefox on windows work
vladislav doster
@vladdoster
@psprint thanks for the insight on the issue
I haven’t used windows in over a decade so I’m getting up to speed with windows related Zinit related code
andriy melnyk
@turboBasic
+→zinit-extract:1> chmod a+x -- ./docker-compose-windows-x86_64.exe
+→zinit-extract:2> cygpath -w /home/srivastavaan/.local/share/zinit/plugins/docker---compose
+→zinit-extract:2> ./docker-compose-windows-x86_64.exe /S '/D=E:\scoop\apps\msys2\2022-06-03\home\srivastavaan\.local\share\zinit\plugins\docker---compose'
btw, how did you enable this log output?
vladislav doster
@vladdoster
@turboBasic I don't follow your question?
andriy melnyk
@turboBasic
@anupamsr @vladdoster i'm curious how to enable this kind of log during startup:
+→zinit-extract:1> chmod a+x -- ./docker-compose-windows-x86_64.exe
+→zinit-extract:2> cygpath -w /home/srivastavaan/.local/share/zinit/plugins/docker---compose
+→zinit-extract:2> ./docker-compose-windows-x86_64.exe /S '/D=E:\scoop\apps\msys2\2022-06-03\home\srivastavaan\.local\share\zinit\plugins\docker---compose'
vladislav doster
@vladdoster
XTRACE (-x, ksh: -x)
    Print commands and their arguments as they are executed. The output is preceded by the value of $PS4, formatted as described in Prompt Expansion.
exec zsh -x
@turboBasic
here is a more interesting example for you
zsh -icx "zinit for id-as'age' as'program' from'gh-r' ver'latest' pick'age/*' @FiloSottile/age"
andriy melnyk
@turboBasic
@vladdoster thanks, i was quite surprised that setopt xtrace shows file and line numbers, the new learning for me despite using zsh couple of years
kmath313
@kmath313
Hi all, I'm trying to install neovim from gh-r. when i run the below from an interactive terminal it works fine but when i put it in my .zshrc it doesn't create the link in polaris/bin
zinit ice from'gh-r' nocompile lbin'!**/nvim'
zinit load neovim/neovim
vladislav doster
@vladdoster
I assume you changed the recipe on the wiki in an attempt to use lbin, right?
vladislav doster
@vladdoster
use recipe on github wiki and change sbin' to lbin'!
xecho -e "\n--- $(which nvim)\n" ;zi delete neovim/neovim -y; echo -e "--- $(which nvim)\n\n";
zi for \
    from'gh-r' \
    nocompile \
    nocompletions \
    sbin'!**/nvim -> nvim' \
    ver'nightly' \
  @neovim/neovim;
echo -e "\n\n--- $(which nvim)\n---- $(nvim --version)"

echo -e "\n\n--- $(which nvim)\n\n" ;zi delete neovim/neovim -y; echo -e "\n\n--- $(which nvim)\n\n";
zi for \
    from'gh-r' \
    nocompile \
    nocompletions \
    lbin'!**/nvim -> nvim' \
    ver'nightly' \
  @neovim/neovim;
echo -e "\n\n--- $(which nvim)\n\n---- $(nvim --version)"
vladislav doster
@vladdoster
And if you want the ice syntax
zinit ice from'gh-r' nocompile lbin'!**/nvim -> nvim'
zinit load @neovim/neovim
kmath313
@kmath313
thanks @vladdoster!! that worked a charm. i'm still trying to understand the syntax correctly, i'll get there eventually.
vladislav doster
@vladdoster

@kmath313 np, happy to help.

That behavior is confuses me too. I think there is a open PR that might fix this issue. On the other hand, I’ve hit the same exact issue trying you brought up, but didn’t realize it worked if ran interactively.

So TLDR; the expected behavior is to have same behavior across interactive and scripted zi commands. I’ll check this against the open PR to see if it fixes it.

I had assumed it had to do with trying to create a softlink and not pointing it to the whole nvim dir which has files nvim needs. Idk lol
Stefanqn
@Stefanqn
all my fbins suddenly stopped working
vladislav doster
@vladdoster