Skip to content

lf -remote "query $id maps" only works in shell spawned from lf #2145

@c4rlo

Description

@c4rlo

It seems that lf -remote "query $id maps" only works properly from within a shell spawned from lf. Whereas if you run a new lf instance, note its PID, and then run lf -remote "query $PID maps" in another window, you get an empty result. The same applies for querying cmds etc.

Looking at the code, this appears to be because gState.data, the map from which readExpr serves query requests, only gets populated/refreshed in app.runShell.

Admittedly, I don't have an actual use-case where I'm missing this functionality. However, it confused me for a bit while I was experimenting with things. And the documentation does not explain this limitation.

Therefore, I'd suggest either updating the docs to call this out, or changing the code to remove this limitation. I'd be happy to help with either approach.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions