Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 13 17:35
    samcv synchronize #464
  • Sep 12 06:57

    mafredri on master

    Use ellipsis for continuation p… (compare)

  • Sep 12 06:57
    mafredri closed #493
  • Sep 12 06:55

    mafredri on master

    Fix missing ─ in readme color d… (compare)

  • Sep 09 09:11

    mafredri on issue-445-testfix1

    Undo breaking change (compare)

  • Sep 08 17:20
    issuehunt-app[bot] edited #494
  • Sep 08 17:20
    issuehunt-app[bot] edited #332
  • Sep 08 17:19
    issuehunt-app[bot] edited #493
  • Sep 08 17:19
    issuehunt-app[bot] edited #332
  • Sep 08 17:18
    bricewge edited #493
  • Sep 08 16:49

    mafredri on master

    Fix extra space in color diagra… (compare)

  • Sep 08 16:32

    mafredri on issue-445-testfix2

    Revert "Simplify async tasks by… (compare)

  • Sep 08 16:26

    mafredri on issue-445-testfix1

    Stab in the dark (compare)

  • Sep 05 20:37
    issuehunt-app[bot] edited #493
  • Sep 05 20:37
    issuehunt-app[bot] edited #332
  • Sep 05 20:27
    sindresorhus edited #497
  • Sep 05 20:22

    sindresorhus on master

    Simplify the setup phase in the… (compare)

  • Sep 05 20:22
    sindresorhus closed #494
  • Sep 05 20:22
    sindresorhus closed #384
  • Sep 05 20:22
    sindresorhus closed #332
Zhiming Wang
@zmwangx
That was a hell of a long thread... Anyway, glad it's fixed, and thanks for your effort that led up to the fix!
Mathias Fredriksson
@mafredri
Hehe, thanks zmwangx. The message I linked to is quite unrelated to the deadlock stuff though, just a nice bonus :).
Pushed a branch of async that utilizes the new patch, it’s pretty neat! https://github.com/mafredri/zsh-async/commits/zle-test
Zhiming Wang
@zmwangx
Yeah seen that. I actually also went through the entire thread.
Mathias Fredriksson
@mafredri
Cool!
With all the patches that went in though, I’m surprised not more people have run into this.
Sindre Sorhus
@sindresorhus
@mafredri With sindresorhus/pure@f396975 landed, should we do a new release?
Mathias Fredriksson
@mafredri
@sindresorhus I was thinking of including the latest release of zsh-async in the next update but haven’t gotten around to it. What’s new there is that the stderr and stdout streams are separated, so there should be no more possibility for garbled output in the preprompt.
Mathias Fredriksson
@mafredri
Ok, just pushed the updated zsh-async to pure, do we go for version 1.2?
Sindre Sorhus
@sindresorhus
@mafredri Awesome! I tried out master now. Looks good to me. Feel free to do a 1.2.0 release ;)
Mathias Fredriksson
@mafredri
Great, I’ll do so! :)
Btw @sindresorhus, I’ve noticed your npm releases are of type 1.2.0 whereas npm version minor produces a v1.2.0 for me
Mathias Fredriksson
@mafredri
Although it looks like it’s only on the git tag, not the version number in the commit :S
Mathias Fredriksson
@mafredri
Sindre Sorhus
@sindresorhus
@mafredri Yeah, I hate the v npm adds so I used an option to remove it. Did that for a while, then realized every other person needs to do that for it to be consistent, so I dropped it. Not worth the inconsistency it causes.
Mathias Fredriksson
@mafredri
Ah, that explains it. I never really reached a consencus with myself about which I prefer, with or without v-prefix.
Brian Millar
@brianmillar
Hi, I'm having a problem with the Pure prompt, when I start zsh with prompt pure or run prompt -p I get "set_prompt:100: fatal error: out of memory", I can only see this error when running zsh on top of another shell as it cause zsh to crash and if another shell is not running the session obviously disappears. I'm using ZSH 5.0.8 on Gentoo. I tried looking into the issue and could not find documentation relating to the out of memory error anywhere, I'm not sure what memory they mean whether prompts need to fix inside some sized buffer or something.
Sindre Sorhus
@sindresorhus
@mafredri ^ Any ideas?
Brian Millar
@brianmillar
I've traced the crash and found zsh trying to allocate an astronomical amount of memory which obviously fails. While this error has shown up by trying to run pure I am doubtful that pure is actually the cause
Brian Millar
@brianmillar
I've fixed the problem, thanks for you time anyway and sorry for bothering you
The issue was my files and links were just a little messed up, which should have given a normal error however I traced the zsh syscalls and I think it tried to read a directory as a file called lseek() on it and then mmap() on the result to allocate memory for it but messed up and tried to allocate something ridculous amount because the return from lseek was all wrong and so I got a memory error instead of something useful
Brian Millar
@brianmillar
lseek(3, 0, SEEK_END) = 9223372036854775807
mmap(NULL, 9223372036854779904, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
this shows what happened
Now that its working its pretty nice, thanks for creating the prompt guys and sorry for wasring your time :)
*wasting
Mathias Fredriksson
@mafredri
I'm glad you got it sorted out, wouldn't have had the slightest idea where to start 😀
No worries, its great that you're enjoying the theme. Also, if you feel you stumbled upon a Zsh bug, it would be great if you sent a report to the zsh-workers mailing list ☺
Brian Millar
@brianmillar
I'll not submit anything until I do more research, its unclear who's to blame for such weird behavior it might even be a kernel bug
Brian Millar
@brianmillar
Yeah the kernel folks said zsh should be checking the file got with open() was not anything other than a file, I'll report it to them
Mathias Fredriksson
@mafredri
Cool, thanks.
Mathias Fredriksson
@mafredri
Sindre Sorhus
@sindresorhus
Woot! Nice work on the git stuff @mafredri. So much nicer with having the conflict all the time.
Mathias Fredriksson
@mafredri
Thanks :). I pretty much knew how to fix it a long time ago already, but couldn’t get it to working, but the wait paid of, was an easy fix in the end :D. I can imagine how annoying it’s been for anyone using git actively (it has for me!)
Sindre Sorhus
@sindresorhus
@mafredri So annoying. I encountered it maybe 20 times a day, but I didn't think it could be fixed. So you can understand how pleased I am that it's fixed :D
Mathias Fredriksson
@mafredri
Totally :). Are there currently any other annoyances with pure, btw? I’m a bit annoyed that I still haven’t gotten around to #143 but I’ve forgot most of it and would need to re-aquaint myself :D
Sindre Sorhus
@sindresorhus
@mafredri Not for me personally.
Timothy Achumba
@timothyachumba
Hi there, I'm having some issue with Pure and Hyper, I've followed the steps but each time a new instance of the terminal is create i always need to reinitialise Pure
Sindre Sorhus
@sindresorhus
@mafredri We just passed 4000 stars on GitHub. Thanks for all your hard work maintaining Pure. The project would not have been the same without you.
Rob Mac
@maccelerated
If I'm having a strange tab completion bug involving caret positioning on macOS, should I first look at zim or pure?
hal869
@hal869
@sindresorhus ping. still around in this room?
Mathias Fredriksson
@mafredri
Thanks for the kind words @sindresorhus :), we're nearing 5k now, exciting! (I had missed this, no Gitter email notifications :/)
@maccelerated anything I can still help with? (I realize it's been a while since you asked)
Rob Mac
@maccelerated
@mafredri I ended switching to my own configs and antibody, so all is well!
Mathias Fredriksson
@mafredri
Alright, glad to hear you got it sorted!
ScrumpyJack
@ScrumpyJack
Love pure and async, they have changed my prompt for the better
Small issue on alpinelinux though, I don't get git info in a repo when sshing (so tried on a lovely alpinelinux yet)
I'm sure we can fit that. It's probably quite simple. I'll try and take a look at work today
Mathias Fredriksson
@mafredri
Happy to hear @ScrumpyJack :smile:! Too bad about Alpine though :/
If you investigate and find a solution, feel free to submit a PR! Otherwise, I might be able to take a look at the Alpine issues during the weekend but more likely it'll fall over to next week.
ScrumpyJack
@ScrumpyJack
no rush, I’ll also take a look at some point, when it become too annoying to ignore ;)