zsh-users
 help / color / mirror / code / Atom feed
* Autocomplete doesn't work correctly on certain folder names
@ 2023-04-20 12:08 Ville Viitaharju
  2023-04-20 12:13 ` Roman Perepelitsa
  0 siblings, 1 reply; 5+ messages in thread
From: Ville Viitaharju @ 2023-04-20 12:08 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 1216 bytes --]

Steps to reproduce

    Install zsh and ohmyzsh
    run mkdir my-longfoldername-firstname  you-longfoldername-secondname
    type cd long<tab><tab>
    terminal shows "cd O-longfoldername- " instead of trying to
autocomplete.

Expected behavior

It should autocomplete like it would in case of:

    Install ohmyzsh
    run mkdir my-dir-2  your-dir-1
    type cd dir<tab><tab>
    autocomplete works as intended

How to reproduce with docker:

Create Dockerfile:

FROM ubuntu:23.04
RUN apt-get update && apt-get install -y zsh curl git
RUN sh -c "$(curl -fsSL
https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
RUN mkdir my-longfoldername-firstname  you-longfoldername-secondname
CMD zsh


Build with: docker build -t zsh-test .
Run with: docker run -ti zsh-test

cd long<tab> will produce the error while cd fold<tab><tab> works.
cd old<tab> produces another error (cd F-longfoldername-), so 0- isn't
always first character


It seems that this doesn't happen on archlinux or macOS.
POP_OS/Ubuntu seems to be affected, so this seems to be an OS dependent
issue.

Issue tested in zsh 5.8.1 and 5.9 + latest ohmyzsh

More info/discussion here: https://github.com/ohmyzsh/ohmyzsh/issues/11621

[-- Attachment #2: Type: text/html, Size: 1684 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Autocomplete doesn't work correctly on certain folder names
  2023-04-20 12:08 Autocomplete doesn't work correctly on certain folder names Ville Viitaharju
@ 2023-04-20 12:13 ` Roman Perepelitsa
  2023-04-20 12:55   ` Ville Viitaharju
  0 siblings, 1 reply; 5+ messages in thread
From: Roman Perepelitsa @ 2023-04-20 12:13 UTC (permalink / raw)
  To: Ville Viitaharju; +Cc: zsh-users

On Thu, Apr 20, 2023 at 2:10 PM Ville Viitaharju <racle@lonke.ro> wrote:
>
> Steps to reproduce
>
>     Install zsh and ohmyzsh
>     run mkdir my-longfoldername-firstname  you-longfoldername-secondname
>     type cd long<tab><tab>
>     terminal shows "cd O-longfoldername- " instead of trying to autocomplete.
>
> Expected behavior
>
> It should autocomplete like it would in case of:
>
>     Install ohmyzsh
>     run mkdir my-dir-2  your-dir-1
>     type cd dir<tab><tab>
>     autocomplete works as intended

This has already been fixed in master.

Roman.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Autocomplete doesn't work correctly on certain folder names
  2023-04-20 12:13 ` Roman Perepelitsa
@ 2023-04-20 12:55   ` Ville Viitaharju
  2023-04-20 13:05     ` Roman Perepelitsa
  0 siblings, 1 reply; 5+ messages in thread
From: Ville Viitaharju @ 2023-04-20 12:55 UTC (permalink / raw)
  To: Roman Perepelitsa; +Cc: zsh-users

[-- Attachment #1: Type: text/plain, Size: 551 bytes --]

> This has already been fixed in master.

> Roman.

Build latest version using this:
https://gist.github.com/nicoulaj/715855/7fa178a4fa954f9a8a0201ee8e7dfa5611812bb0

zsh --version
zsh 5.9.0.1-dev (x86_64-pc-linux-gnu)

Issue still exist when using cd long<tab><tab>

Does this require some system package update as well, as building zsh from
source isn't enough?


And randomly when pressing tab while trying to autocomplete zsh crashes
with (might be just dev version issue)
free(): invalid pointer
[1]    1179055 IOT instruction (core dumped)  zsh

[-- Attachment #2: Type: text/html, Size: 1098 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Autocomplete doesn't work correctly on certain folder names
  2023-04-20 12:55   ` Ville Viitaharju
@ 2023-04-20 13:05     ` Roman Perepelitsa
  2023-04-20 13:42       ` Ville Viitaharju
  0 siblings, 1 reply; 5+ messages in thread
From: Roman Perepelitsa @ 2023-04-20 13:05 UTC (permalink / raw)
  To: Ville Viitaharju; +Cc: zsh-users

On Thu, Apr 20, 2023 at 2:56 PM Ville Viitaharju <racle@lonke.ro> wrote:
>
> > This has already been fixed in master.
>
> > Roman.
>
> Build latest version using this: https://gist.github.com/nicoulaj/715855/7fa178a4fa954f9a8a0201ee8e7dfa5611812bb0
>
> zsh --version
> zsh 5.9.0.1-dev (x86_64-pc-linux-gnu)
>
> Issue still exist when using cd long<tab><tab>

I haven't tested it myself. My response was based on
https://zsh.org/workers/50875 but maybe I misunderstood it.

Roman.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Autocomplete doesn't work correctly on certain folder names
  2023-04-20 13:05     ` Roman Perepelitsa
@ 2023-04-20 13:42       ` Ville Viitaharju
  0 siblings, 0 replies; 5+ messages in thread
From: Ville Viitaharju @ 2023-04-20 13:42 UTC (permalink / raw)
  To: Roman Perepelitsa; +Cc: zsh-users

[-- Attachment #1: Type: text/plain, Size: 366 bytes --]

> I haven't tested it myself. My response was based on
> https://zsh.org/workers/50875 but maybe I misunderstood it.

Quick Dockerfile to test with: https://pastebin.com/Nixex4RF

Build with: docker build -t zsh-test .
Run with: docker run -ti zsh-test

This uses ubuntu:23.04 image as base and it builds zsh from source.

Issue is reproducible with this Dockerfile

[-- Attachment #2: Type: text/html, Size: 664 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-04-20 13:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-20 12:08 Autocomplete doesn't work correctly on certain folder names Ville Viitaharju
2023-04-20 12:13 ` Roman Perepelitsa
2023-04-20 12:55   ` Ville Viitaharju
2023-04-20 13:05     ` Roman Perepelitsa
2023-04-20 13:42       ` Ville Viitaharju

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).