Open vendethiel opened 5 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!
Still broken on 0.2
Confirmed on 0.3 (develop
) as well.
The issue occurs when the *cljr-describe-refactoring*
buffer still is open the second time SPC m r ?
is pressed.
Because the cljr-describe-refactoring
command puts the buffer in view-mode
:
Toggle View mode, a minor mode for viewing text but not editing it.
When View mode is enabled, commands that do not change the buffer contents are available as usual. Kill commands save text but do not delete it from the buffer. Most other commands beep and tell the user that the buffer is read-only.
The function seems to have been implemented in 2015: [Fix #138] Add cljr-describe-refactoring https://github.com/clojure-emacs/clj-refactor.el/pull/166
Since it still is an issue, maybe everyone closes the description buffer before calling the command again.
clj-refactor
repository:https://github.com/clojure-emacs/clj-refactor.el
A possible fix might be to turn off view-mode
if it's enabled, before it tries to delete the buffers contents, here:
https://github.com/clojure-emacs/clj-refactor.el/blob/92d372393a031e5fa73ef926447afe72b574cb45/clj-refactor.el#L3644
A separate issue I noticed, is if the image is shown last in the buffer, like it does for the
cljr-add-missing-libspec
command. Then the describe refactoring buffer looks empty, because the cursor is positioned below the image, but the cursor is at the top of the window.
When the cursor is moved up once, then the image scrolls into view and scrolling to the top of the buffer shows the description above the image.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!
Bump
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!
Bump
@vendethiel Is it broken on develop branch?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!
Bump
Still there??? I am putting it on my list
Description :octocat:
When trying to use clj-refactor's explain feature twice, the second time breaks.
Reproduction guide :beetle:
("ar" and "ef" are two refactorings, but it doesn't actually matter which one is used)
SPC m r ? a r
SPC m r ? e f
Observed behaviour: :eyes: :broken_heart:
First time works fine. Second time gives:
Expected behaviour: :heart: :smile:
It should connect to github, fetch the content, and replace the buffer's content with the new one.
System Info :computer:
Thanks!