joaotavora / sly-stepper

sly-slepper
27 stars 5 forks source link

On OpenBSD, M-. (sly-edit-definition) fails with a permissions issue #5

Closed samebchase closed 9 months ago

samebchase commented 9 months ago

When I try to M-. on a CL stdlib function/macro, I get:

find-file-noselect: Getting attributes: Permission denied, /usr/obj/ports/sbcl-2.3.8/sbcl-2.3.8/src/code/setf.lisp

On my machine, the ports directory does not exist, and does not exist by default FWIU.

Is there any way to customize this location? Then I could point it to a the 2.3.8 tag of sbcl checked out in a directory.

Or what's a better way?

Update: This is not a SLY issue, please ignore. It's an issue in the way in which SBCL is packaged.

https://koji-kojiro.github.io/sb-docs/build/html/sb-ext/function/SET-SBCL-SOURCE-LOCATION.html is what I needed to do.

CL-USER> (sb-ext:set-sbcl-source-location "/path/to/sbcl/repo/")

and it worked immediately.

https://xach.livejournal.com/300290.html?

https://www.reddit.com/r/lisp/comments/yt8lqy/comment/iw318zq/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button is what helped me.

samebchase commented 9 months ago

Apologies, I should have created this issue on the main SLY repo. Is there any way of moving it there?