~liebkne

Recent activity

Error when listing session 6 months ago

From Maximin Liebkne to ~niklaseklund/detached.el

Hi,

I got the below error when trying to list the sessions, even after I
delete the session db and restart Emacs. I'm using `GNU Emacs 29.1
(build 1, x86_64-apple-darwin22.3.0, Carbon Version 169 AppKit 2299.4)
of 2023-08-09`. I am not sure if it happens in other versions.

```
Debugger entered--Lisp error: (wrong-type-argument listp
#s(detached-session :id 92690c93cd8bd8a19cef0c4c4b3b2678 :command
"cargo build --release" :origin shell :working-directory
"~/git/rust/cabinet/src/bin/" :initial-mode attached :directory
"/Users/User/.emacs.d/savefile/var/detached/sess..." :metadata nil
:host ("macOS.local" . localhost) :degraded nil :text-mode

Re: Does not work with `direnv` 1 year, 4 months ago

From Maximin Liebkne to ~niklaseklund/detached.el

Hi, the script method works on my local and remote machines. I'm gonna
take this way. Thank you!

On Sat, Oct 8, 2022 at 7:54 PM Niklas Eklund <niklas.eklund@posteo.net> wrote:
>
> Maximin Liebkne <ispinfx@gmail.com> writes:
>
> > Hi, thanks for your work.
> >
> > I've tested it and it seems to work well on my local machine but not
> > remote direnv. That could be sad since my main usage of `detached` is
> > running commands on remote servers (possibly with different env), though
> > I understand that `envrc-mode` does not support `tramp`.
>

Re: Does not work with `direnv` 1 year, 4 months ago

From Maximin Liebkne to ~niklaseklund/detached.el

Hi, thanks for your work.

I've tested it and it seems to work well on my local machine but not
remote direnv. That could be sad since my main usage of `detached` is
running commands on remote servers (possibly with different env), though
I understand that `envrc-mode` does not support `tramp`.

On Fri, Oct 7, 2022 at 10:01 AM Maximin Liebkne <ispinfx@gmail.com> wrote:
>
> Will check it tomorrow, thanks for your work!
>
> On Thu, Oct 6, 2022 at 23:21 Niklas Eklund <niklas.eklund@posteo.net> wrote:
> >
> > Niklas Eklund <niklas.eklund@posteo.net> writes:

Re: Does not work with `direnv` 1 year, 4 months ago

From Maximin Liebkne to ~niklaseklund/detached.el

Will check it tomorrow, thanks for your work!

On Thu, Oct 6, 2022 at 23:21 Niklas Eklund <niklas.eklund@posteo.net> wrote:
>
> Niklas Eklund <niklas.eklund@posteo.net> writes:
>
> > Maximin Liebkne <ispinfx@gmail.com> writes:
> >
> >>> Is this behavior reproduceable for you as well?
> >>
> >> Yes, you are right, I can reproduce this.
> >
> > I think I might have some ugly hack that could work. Seems to be working
> > with detached-shell-command and detached-compile for me. Would be great

Re: Does not work with `direnv` 1 year, 4 months ago

From Maximin Liebkne to ~niklaseklund/detached.el

> Is this behavior reproduceable for you as well?

Yes, you are right, I can reproduce this.

On Tue, Sep 27, 2022 at 4:39 PM Niklas Eklund <niklas.eklund@posteo.net> wrote:
>
> Maximin Liebkne <ispinfx@gmail.com> writes:
>
> > Hi,
> >
> > I do use `envrc`
> >
> > (use-package envrc
> >   :diminish envrc-mode

Re: Does not work with `direnv` 1 year, 4 months ago

From Maximin Liebkne to ~niklaseklund/detached.el

Hi,

I do use `envrc`

(use-package envrc
  :diminish envrc-mode
  :hook (after-init . envrc-global-mode))

and it works smoothly. The following script

(let ((default-directory "/tmp/test"))
  (async-shell-command "echo $DETACHED"))

evaluates to TEST successfully. But `detached-rerun-session` gives me

Does not work with `direnv` 1 year, 4 months ago

From Maximin Liebkne to ~niklaseklund/detached.el

Hi,

Currently `detached.el` does not seem to work with `direnv`. For
example, rerunning a command run in a direnv fails since it can not
resolve the env successfully.

Reproduce steps:

1. Install direnv and setup bash config: https://direnv.net/docs/hook.html .
2. Running the following commands:
    2.1 mkdir test
    2.2 cd test
    2.3 echo "layout python" > .envrc
    2.4 direnv allow

Re: Feature request: Dired mode like session management 1 year, 5 months ago

From Maximin Liebkne to ~niklaseklund/detached.el

Hi,

Not sure why the line

-     (setq detached--buffer-session session)

is remove in commit
https://git.sr.ht/~niklaseklund/detached.el/commit/49e9252145aed4bf70c0f1c1aa5857ee7b80ad7f

But missing that line I can not detach a session in `shell-mode` by `C-c C-d`.