Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is pachist broken? #11

Closed
pjhalsli opened this issue Feb 11, 2020 · 18 comments
Closed

is pachist broken? #11

pjhalsli opened this issue Feb 11, 2020 · 18 comments

Comments

@pjhalsli
Copy link

Hi.

I've been using pachist since I was introduced to it a few years ago.
For some reason it stopped keeping track 25 oct 2019.
I tried to remove the script and reinstall it but with the same result. Nothing new after that date.

Including a pic
https://imgur.com/a/xd2vpPA

@shellkr
Copy link
Owner

shellkr commented Feb 11, 2020

Yes, and thanks for notifying me. It looks like the package log which pachist uses has changed a bit so I'll have to adapt to it. I'll try to sort it as soon as possible.

@shellkr
Copy link
Owner

shellkr commented Feb 11, 2020

It should work now. Just do an update and reinstall the package and it should work. I will close this issue but if you continue to have issues.. just reopen it.

@shellkr shellkr closed this as completed Feb 11, 2020
@pjhalsli
Copy link
Author

now the time is gone in pachist too
https://imgur.com/a/qyYvhVe

@shellkr
Copy link
Owner

shellkr commented May 22, 2020

I made som changes to how the time is displayed but strange of it to disappear like that. Are you able to select it? Like if it is a color thing? That can be changed in the ~/.config/pachist.conf or deleted so it will be recreated with defaults.

I am also at @shellkr@mstdn.io on Mastodon

@pjhalsli
Copy link
Author

pjhalsli commented May 23, 2020

no it's not a color thing. The time just disappeared. earlier also ther was some time issue - no bigie - but it showed more than it used to do. now it's just totally gone. I tried pachist.conf but there as no differece. together wit pikar and pacman hooks this is my. fav program.

mastodon huh? i'm at frendica - the same universe I also like telegran - there re some cool groups there - arch - bspwm etc etc

@shellkr
Copy link
Owner

shellkr commented May 23, 2020

Could you tell me about your env a bit so that I could reproduce it? I don't see anything that sticks out... Did you try change the 'color1' in ~/.config/pachist.conf to "white" or something? The default is black which may make it hard to see in some setups.

@pjhalsli
Copy link
Author

oh yeah my bg is black so that might be the issue. Will try another color

@pjhalsli
Copy link
Author

yup that was the issue - works fine now. Thank You

@pjhalsli
Copy link
Author

https://imgur.com/a/bXsDpor
the date stopped 2019-12-02 15.58
I installed cmus just now and it doesn't recognize newly installed paclages

@shellkr
Copy link
Owner

shellkr commented May 24, 2020

It would be more valuable if you could share you /var/log/pacman.log... when did you last do a -Syu and please check if you have 'tac' installed?

@pjhalsli
Copy link
Author

my logfiles have the correct dates- My last Syu was when I read your comment so like 5 minutes ago.
tac? you have any more keywords to search for - only tac gave me close to 700 results

@shellkr
Copy link
Owner

shellkr commented May 25, 2020

By the looks of the date it looked like if tac was not run. Tac is cat but backwards. So that if the result was output backwards. Do the log end or begin on 2019-12-02? It is hard to troubleshoot from just that picture.

@pjhalsli
Copy link
Author

pjhalsli commented May 26, 2020

My pacman log has all dates right up until today. I installed cmus yesterday and removed it right away and that was also in the log. It looks to me as pachist hasn't recognized anything after 2019-12-02 15.58 as I can see yay is still in pachist and I switched to pikaur months ago. it gets the reboots correct just not the installs and removals of programs

Edit:
my pacman.log is really really long but I copied the last lines so you can see the dates here are correct;
[2020-05-26T03:45:13+0200] [ALPM] installed cmus (2.8.0-3)
[2020-05-26T03:45:13+0200] [ALPM] transaction completed
[2020-05-26T03:45:13+0200] [ALPM] running '30-systemd-update.hook'...
[2020-05-26T03:54:12+0200] [PACMAN] Running 'pacman -Rns cmus'
[2020-05-26T03:54:15+0200] [ALPM] transaction started
[2020-05-26T03:54:16+0200] [ALPM] removed cmus (2.8.0-3)
[2020-05-26T03:54:16+0200] [ALPM] removed libdiscid (0.6.2-3)
[2020-05-26T03:54:16+0200] [ALPM] transaction completed
[2020-05-26T03:54:16+0200] [ALPM] running '30-systemd-update.hook'...

edit2:
in pachist it says I use git version 2.24.0-1 but I'm actually using 2.26.2-1 so it looks like anything after december 2019 isn't recognized somehow

@shellkr
Copy link
Owner

shellkr commented May 27, 2020

The beginning of your log. What date does it say? How does the format of the time look at the beginning of your log? Not that I think it matter but cat /var/log/pacman.log|wc -l would show how many lines your log contain.

@pjhalsli
Copy link
Author

pjhalsli commented May 27, 2020

8810 lines :)
The first line says [2019-12-02 15:41]

I just checked my two other laptops and there pachist works just fine
https://imgur.com/a/3uBupYd

@shellkr
Copy link
Owner

shellkr commented May 27, 2020

Does pachist -v , pachist -d 20200526 or any other option also render in wrong output?

It looks like if it crashes before it comes to the 'tac' part.

@pjhalsli
Copy link
Author

I removed and reinstalled pachist and now it works. Tried this before too without any difference.
Have no idea what the problem was but at least it's all good now. Sorry to bother you with this - it's just one of my fav programs
https://imgur.com/a/O0qirD2

@shellkr
Copy link
Owner

shellkr commented May 27, 2020

That is awesome! It had me scratching my head both two and three times. So, happy that it works again! Thanks to you I had to rewatch the code so took the time to fix some other things too. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants