Closed wasphin closed 7 years ago
Hey, can you add more info as described in Debugging please? In particular your system info. Also, please tell what are the values for smartparens-related variables in your dotspacemacs (search for variables with "paren" in their name).
Hi, @bmag, updated the previous post.
the problem exists if I set dotspacemacs-smartparens-strict-mode t
.
@was4444 Can you check what this gives: (memq 'autoskip (sp-get-pair "(" :actions))
? Since at least december 2016 (commit Fuco1/smartparens@a67785906656518ae5af3e39aac722030b59e1da) it should be impossible to add unbalancing delimiters in strict mode---but this is disabled for non-autoskip pairs. But all the basic pairs should have that property, so there's something odd going on.
@Fuco1 my smartparens is a little old -;
$ ls | grep smart
smartparens-20160614.1248
whatever, (memq 'autoskip (sp-get-pair "(" :actions))
gives me
(autoskip navigate)
Well then you should probably upgrade, this should be fixed on master.
@Fuco1 Cannot add unbalancing delimiters in strict mode with version:
$ ls | grep smart
smartparens-20170618.744
In the
cmake-mode
,{}
inside()
is very commonin this case, if I mistype a
)
just after theblabla
, like this:the mistyped
)
will keep there and cannot be removed!Reproduction guide
dotspacemacs-smartparens-strict-mode t
in dotspacemacs;CMakeLists.txt
or manually setcmake-mode
;()
;{}
inside()
->({})
;blabla
->({blabla})
;)
->({blabla)})
;)
just before}
cannot be deleted;System Info :computer:
Backtrace does not complain anything?