clojure-emacs / clojure-emacs/sayid

Pressing "g" cannot locate source file.

Open
#31 1 comment 0 reactions 0 assignees View on GitHub
Emacs
Dominant language
Clojure
Stars
419
Forks
24
PR merge metrics
No merged PRs in 30d

Description

Not sure what is broken, here. When I press in "g" during looking into function's trace it fails at the moment of finding proper file:
- Emacs version 25.1.1
- latest sayid from master branch

Here https://github.com/bpiel/sayid/blob/master/src/el/sayid.el#L777 I've got exception:
`File not found: antonov/api/availability.clj`

I tried to trace it in emacs `(sayid-find-existing-file file) => `("clojure" "/private/var/folders/ty/q1nfz8qn24x_8p27fx7z14yr0000gp/T" "cider" "mranderson047")`

Looks wrong because project root is not existing here. Please help me trace and fix this exception.

p.s. Sayid probably can go thru existing opened file-buffers, and if filepath will match file requested - write expression there. Or even better solution open `cider-scratch` and writedown form there.
If you're fine with using `cider-scratch` I can implement it. thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at src/el/sayid.el#L777 and inspect sayid-find-existing-file, reproducing the failure while tracing a function with Emacs 25.1.1. Compare the returned path with the project root and determine how an existing file buffer or cider-scratch should be handled; done means pressing "g" can locate or open the requested source file without the reported exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure, emacs
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.