Giter Site home page Giter Site logo

Comments (8)

romkatv avatar romkatv commented on August 16, 2024 1

Closing as Good Enough.

from zsh4humans.

romkatv avatar romkatv commented on August 16, 2024

What's the output of df --output=fstype for the problematic directories while they exist?

When you have a problematic directory (one that eventually times out on accessing it)

How long does it take for it to time out?

z4h will hang on opening a new zsh instance

Does it hang for good or only for as long as the timeout?

I'm just trying to explore options for fixing this that don't require user configuration. In the worst case I'll add a flag to disable persistent directory as you suggested but perhaps there is a better way.

from zsh4humans.

VorpalBlade avatar VorpalBlade commented on August 16, 2024

What's the output of df --output=fstype for the problematic directories while they exist?

I'll get back to you when I'm home and can replicate this again (should be this evening or tomorrow).

How long does it take for it to time out?

Over a minute for sure until zsh gets unstuck from the KDE kio case, I'll get back with a time measurement if you want.

Does it hang for good or only for as long as the timeout?

It does get unstuck again after the timeout. But again, this takes well over a minute.

from zsh4humans.

VorpalBlade avatar VorpalBlade commented on August 16, 2024

What's the output of df --output=fstype for the problematic directories while they exist?

Here are some I have seen:

  • fuse.kio-fuse
  • fuse.gvfsd-fuse
  • fuse.sshfs (hangs for much shorter than the others, only ~10 seconds)
  • cifs -- Note if this is inaccessible, df hangs, as does a lot of other commands such as umount.
  • smb3 -- Note if this is inaccessible, df hangs, as does a lot of other commands such as umount.

I'm not set up to test nfs.

I have also noticed that many other things hangs, such as even typing in the path, it seems to hang as it is trying to do syntax highlighting and decide if the path should be underlined for it being a valid path. Presumably this is a feature of zsh-syntax-highlighting and should be reported separately to there.

from zsh4humans.

romkatv avatar romkatv commented on August 16, 2024
  • cifs -- Note if this is inaccessible, df hangs, as does a lot of other commands such as umount.
  • smb3 -- Note if this is inaccessible, df hangs, as does a lot of other commands such as umount.

That's rough. I cannot think of a good automated solution that would handle this. Seems like disabling persistent dir history is the best option for you. You can do it like this:

zstyle ':z4h:dir-history:' max-size 0

I have also noticed that many other things hangs, such as even typing in the path, it seems to hang as it is trying to do syntax highlighting and decide if the path should be underlined for it being a valid path. Presumably this is a feature of zsh-syntax-highlighting and should be reported separately to there.

There is ZSH_HIGHLIGHT_DIRS_BLACKLIST.

from zsh4humans.

VorpalBlade avatar VorpalBlade commented on August 16, 2024

There is ZSH_HIGHLIGHT_DIRS_BLACKLIST.

Thanks, I already found that out separately after writing my previous post. That does help a bit.

That's rough. I cannot think of a good automated solution that would handle this.

An option similar to ZSH_HIGHLIGHT_DIRS_BLACKLIST for Z4H purposes could perhaps work here.

As for umount hanging etc, there seem to be some mount options that could help echo_interval=n for cifs/smb3 for example. From what I can read, NFS will have similar behaviour, but be more complicated to set up for sensible timeouts (-o soft,timeo=20 though apparently using soft might cause data corruption on NFS. I have not had time to test any of this yet, and I normally use the KDE kio approach for remote file SMB systems anyway. (I do also use sshfs between Linux machines.)

from zsh4humans.

romkatv avatar romkatv commented on August 16, 2024
zstyle ':z4h:dir-history:' max-size 0

Is this ☝️ good enough for you? I'd rather not add a new option if an existing option solves your use case.

from zsh4humans.

VorpalBlade avatar VorpalBlade commented on August 16, 2024

Is this point_up good enough for you? I'd rather not add a new option if an existing option solves your use case.

Yes, it seems to work correctly. I'm happy with this solution as persistent directory history is not something I use, and normal popd to go back one level of cd seems to still work.

from zsh4humans.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.