Fork me on GitHub
#spacemacs
<
2018-06-07
>
callum02:06:36

I'd love a link to that improved jump-to-def... 😄

ag05:06:06

it's included in spacemacs's clojure layer

eggsyntax13:06:16

Oh, I should pull it out of my .spacemacs, then, I don't think I noticed that PR got merged.

Bravi09:06:59

this bug is so annoying! 😄 https://cl.ly/2c0E023f4230 and the funny thing is - sometimes it doesn’t happen at all

jeff.terrell12:06:49

@bravilogy are you on the master or develop branch of spacemacs? I'm on master, and I noticed that @spfeiffer is on develop, so maybe it's a bug that's been solved in the interim?

Bravi12:06:07

I tried develop as well

spfeiffer12:06:08

He wrote master in the ticket.

Bravi12:06:16

yeah, in the ticket I wrote master

spfeiffer12:06:54

But yes, i am on develop, windows 10, Emacs 26.1…all those differences.

Bravi12:06:57

@jeff.terrell how about you? were you on master when you could reproduce it?

jeff.terrell12:06:46

Yep, I was and am on master.

Bravi12:06:51

oh well.. it’s very difficult to determine what’s causing it as it’s difficult to determine when is it happening exactly 😄 it doesn’t happen always. for example, if i keep recording and then executing that macro over and over again, 90% of times it will happen but then there’s a little chance it doesn’t happen. fo and fi by themselves are nothing special but when using in words like format and find, it’s annoying to see foormat and fiind typed after running a macro 😄 temporary solution for this project at work is to run a macro and then run search and replace throughout the project

Bravi12:06:09

to replace those malformed words

jeff.terrell12:06:27

Whoa, are you telling me that it's not deterministic? Like in the exact same context it will sometimes be correct and sometimes wrong? Or could that be because there's something about where the expansion happens that is influencing whether it's correct or wrong?

Bravi12:06:23

yeah, it’s not deterministic. at first I thought there was something going on with vim registers, because in a few cases I recorded a macro, where I used o to start typing on a new line. and then, a few minutes later I recorded another macro (on the same key - q in this case), but instead of o I used i to start typing on the same line. and when I executed it, it inserted a new line instead

Bravi12:06:33

as if it had saved o from the last one

Bravi12:06:28

then I thought - maybe it’s because I’m using an external keyboard 😄 but it was the same behaviour on my macbook keyboard too. I will try to re-install everything - emacs and spacemacs and start from scratch I guess

jeff.terrell13:06:03

Yeah…that's kinda tedious, but a great way to narrow down the problem, bisecting the packages installed and whatnot. I'd be interested to hear if you narrow it down! That'd be a heck of a bug report. simple_smile

Bravi14:06:05

so.. deleted spacemacs, deleted emacs. removed all configs from my machine. installed emacs 26.1, cloned spacemacs to .emacs.d, hit f e d, typed

qq i fo ESC q @q
and the same issue 😄

Bravi14:06:24

I’ll switch to develop now and will report back. if it’s happening there as well, I just give up 😄

troglotit14:06:57

wait, I read it yesterday, reproduced it in my machine, but somehow didn’t thought of it as a bug. Today I read it again - reproduced it, and then I got that it is indeed a bug 😄

troglotit14:06:12

I’m on develop btw

Bravi14:06:33

ok so far so good - it’s not happening on develop at the moment, for me. now I’ll start adding packages in, the ones I had before. here’s the list

'(themes-megapack
     html
     yaml
     javascript
     react
     elm
     (clojure :variables
              clojure-enable-fancify-symbols t)
     ;; ----------------------------------------------------------------
     ;; Example of useful layers you may want to use right away.
     ;; Uncomment some layer names and press <SPC f e R> (Vim style) or
     ;; <M-m f e R> (Emacs style) to install them.
     ;; ----------------------------------------------------------------
     helm
     auto-completion
     ;; better-defaults
     emacs-lisp
     markdown
     org
     (shell :variables
            shell-default-shell 'multi-term
            shell-default-height 20
            shell-default-position 'bottom)
     version-control
     mc-column
     (git :variables
          git-gutter-use-fringe t)

     ;; syntax highlighting
     (syntax-checking :variables
                      syntax-checking-enable-tooltips nil)

Bravi14:06:22

@troglotit what version of emacs do you have?

Bravi14:06:31

is it 26.* as well?

troglotit14:06:14

I installed from brew the one with bug-fix for magit performance (maybe sth like emacsport) emacs-plus

Bravi14:06:29

I used brew cask install emacs and it installed 26.1 version

Bravi15:06:53

ok so as soon as I set dotspacemacs-editing-style to 'vim, the issue comes back

Bravi15:06:57

otherwise it works fine

Bravi15:06:16

dotspacemacs-editing-style 'nil
works fine

troglotit15:06:24

I think that’s because of fd - which is <escape> used to escape to normal mode

Bravi15:06:40

happens on hybrid as well. doesn’t happen on 'emacs

Bravi15:06:28

time to learn emacs I guess 😄

jeff.terrell15:06:02

@bravilogy - Like you have a fresh install and .spacemacs file, and that's literally the only change you make to the .spacemacs file for this behavior to start? If so, it might even be a bug in evil-mode, which would be kinda epic. I think you can move your ~/.emacs.d folder elsewhere before you start emacs to just run vanilla emacs. From there, I think M-x package-install will let you install packages like evil.

Bravi15:06:48

I’ll give it a shot now. and yes, that’s literally the only thing I’m doing

Bravi15:06:59

is it called evil?

jeff.terrell15:06:38

Yep. That's what gives vim-like editing behavior.

jeff.terrell15:06:45

If you can't reproduce the bug that way, then I'd start trying to figure out exactly which emacs packages spacemacs installs to support dotspacemacs-editing-style == 'vim.

Bravi15:06:18

it can’t find that package. I have a feeling I need to add this bit somewhere

(require 'package)
  (add-to-list 'package-archives '("melpa" . ""))
  (package-initialize)

jeff.terrell15:06:40

Hmm, maybe so. Or maybe just run M-x package-initialize before you run M-x package-install.

jeff.terrell15:06:52

(It's been a while since I used emacs without spacemacs.)

Bravi15:06:27

ok I tried evil mode in emacs and it works fine. so it has to be something within spacemacs editing style

jeff.terrell15:06:23

Interesting. Do you have any idea what all evil packages spacemacs installs? I'm pretty sure it's installing more than just evil itself.

Bravi15:06:10

not really but I’m happy to dig deeper 😄 I’ll have another play around later on and see if I can find anything

👍 4