Closed mdedetrich closed 4 years ago
Is it a bug in ensime or just not working in spacemacs?
@songpeng Its hard to tell from just looking at it, is there an easy way to find out? I guess I can try out a base emacs install with just ensime-emacs and see if I can replicate
how about using ensime in the vanilia Emacs?
Sure thing, will try this on the weekend
I'm having the same issue with ensime 2.0.2 on vanilla emacs. The import reorg itself seemed to work fine.
I am having this issue on vanilla emacs as well.
I also tried it with vanilla emacs and had the same issue, will try and report upstream
Can you link to the report I would like to add info. I am only experiencing this on linux but not on mac
@mdedetrich Have you reported upstream?
@allenjohnashton Unfortunately I am really busy this week, I should be able to generate an issue by the end of the week
Upstream PR ensime/ensime-emacs#702
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!
Description :octocat:
When applying the
ensime-refactor-diff-organize-imports
command on a Scala source file (using the Scala layer), spacemacs gets into an infinite loop when dealing with hunk collisionReproduction guide :beetle:
ensime-refactor-diff-organize-imports
Observed behaviour: :eyes: :broken_heart: A prompt opens with the following text.
Please answer y or n. Hunk has already been applied; undo it? (y or n)
Answering
y
orn
then opens up the following promptHunk has already been applied; Undo it? (y or n)
You then go into an infinite loop between these prompts, the only way to get out of it is to process
esc
or by cancelling the command withC-g
. Pressingy
orn
doesn't actually seem to confirm the command.Expected behaviour: :heart: :smile: Typing in
y
orn
actually confirms the prompt and applies the change. Either that or there is no prompt at all and it just changes the imports automatically.System Info :computer:
Backtrace :paw_prints: