brotzeit / arch-packer

Arch Linux package management frontend for pacman and pacaur
43 stars 2 forks source link

sounds great, but launching arch-packer-list-packages seems stuck at 'pacman proccesing' #1

Open zeltak opened 7 years ago

zeltak commented 7 years ago

Hi

thx for this cool package. I installed it (using latest up-to-date arch and emacs) and launching arch-packer-list-packages seems stuck at 'pacman proccesing'.

i have tried both with the default and the ``(setq arch-packer-default-command "pacaur")``` option and in both cases i cant get it to load.

the message buffer says

Error in post-command-hook (arch-packer-status-reporter): (error "Process arch-packer-process does not exist")

any ideas on how to debug this?

best

z

brotzeit commented 7 years ago

It seems that the process does not start. Try to start the process manually with arch-packer-open-shell-process and tell me if it works. It's not an interactive function.

zeltak commented 7 years ago

Hi!

thx for the quick response. since its not interactive i assume you mean to eval that command?

if so then this is the output

Debugger entered--Lisp error: (void-variable arch-packer-open-shell-process)
  eval(arch-packer-open-shell-process nil)
  eval-expression(arch-packer-open-shell-process nil)
  funcall-interactively(eval-expression arch-packer-open-shell-process nil)
  call-interactively(eval-expression nil nil)
  command-execute(eval-expression)

happy to further investigate this

z

brotzeit commented 7 years ago

When you want to evaluate a function you have to put it in parentheses. Then you have to use the command list-processes and if the process is running you should see it in the process buffer.

zeltak commented 7 years ago

ok cool thx. yes i do see it in the list-proccess buffer

arch-packer-... run     *Pacman-Pack... /dev/pts/7   /bin/bash
idna            run     --              /dev/pts/6   idn --quiet --idna-to-ascii --usestd3asciirules
ispell          run     --              --           /usr/bin/aspell -a -m -B -p /home/zeltak/.emacs.d/ispell-dico-personal --encoding=utf-8

i still cant get a list and yet i just noticed there is also a new buffer pacman-packages that is created when i lunch arch-packer-list-packages with the following error

Process arch-packer-process segmentation fault (core dumped)

maybe thats a clue?

brotzeit commented 7 years ago

Interesting. I'm no expert, but this looks like an emacs issue to me. Can you open other processes for example with shell ? Did you try to run arch-packer-list-packages after starting the process ?

zeltak commented 7 years ago

Hi

Yes i can open a shell proccess and see it in the list-process

launching does start a process arch-packer-... run *Pacman-Pack... /dev/pts/11 /bin/bash but also i get the above error (Process arch-packer-process segmentation fault (core dumped)) in the buffer pacman-packages

there is no list buffer that ever comes up

best

Z

brotzeit commented 7 years ago

So the process is running but you get a segmentation fault when you use arch-packer-list-packages.

I think the only way to find the reason is that you modify the code in order to narrow it down. I don't know how to help you without having the same issue, sorry. However it isn't much code that is called for this command. In this case it only starts the process and calls a pacman -Sy.

You can try to call arch-packer-refresh-database after you started the process. It should also produce a segfault. So you would have to send some cli commands to the process and see what comes back. I don't know if you're interested in learning a little elisp, but this would be a good opportunity.