Closed nixmaniack closed 7 years ago
It comes from this commit: 467a5cc0ff0677698158f2e8079ad37f72e8d059, which is weird because all that commit does is moving code around without apparently leaving a related dependency behind... :confused:
I found it: lexical binding is activated in core-debug and not in the previous file, which causes replace-match
to fail because system-info
is not defined in the loop
special form anymore with lexical binding activated.
Or something along those lines, my understanding of lexical binding is still kinda blurry and I'm not sure how to go about this bug :thinking:
@syl20bnr any insights ?
@deb0ch When I edebugged I did think about lexical binding but I remember Spacemacs not using it[1]. Nice catch.
[1]. Based on this comment https://github.com/syl20bnr/spacemacs/pull/4491#r49259958
Nevermind, it is not about the loop
special form, it is actually about the symbol-value
function:
symbol-value is a built-in function in `C source code'.
(symbol-value SYMBOL)
Return SYMBOL's value. Error if that is void. Note that if `lexical-binding' is in effect, this returns the global value outside of any lexical scope.
[back]
@deb0ch be a good person and send a PR 😸
I would, I just don't know a) Spacemacs policy about lexical-binding, so if I should or not deactivate it in this file, and b) if keeping lexical binding what equivalent to symbol-value
would work in our situation.
Thank you for the investigation, I was able to fix it in commit https://github.com/syl20bnr/spacemacs/commit/105a0a1
Oh, it was that simple :open_mouth:
Anyways, I now see that we want to keep lexical bindings where it is (am I right ?).
Anyways, I now see that we want to keep lexical bindings where it is (am I right ?).
Yes, actually I'm not even sure to know one reason where we would like to not use it.
Description :octocat:
Reporting issue with
SPC h I
generates error. AlthoughSPC h d s
works fine.Reproduction guide :beetle:
SPC h I
to report issue.Observed behaviour: :eyes: :broken_heart: Got error:
Symbol’s value as variable is void: system-info
Expected behaviour: :heart: :smile: Open buffer to report issue with template pre-filled.
System Info :computer:
Backtrace :paw_prints: