Giter VIP home page Giter VIP logo

Comments (5)

runswithd6s avatar runswithd6s commented on July 17, 2024

If I "Instrument Function for Debugging" on magit-run-git-with-editor, then step through line 458 and line 459, it succeeds. If I exit emacs and re-open, the problem repeats. Somehow, I managed to get this stack trace...

* #[128 "\300\301�\"\210\300\302�\"\207" [apply debug--implement-debug-on-entry (closure (eshell-preoutput-filter-functions t) (envvar &rest body) "Use the Emacsclient as the editor while evaluating BODY.\nModify the `process-environment' for processes started in BODY,\ninstructing them to use the Emacsclient as editor.  ENVVAR is the\nenvironment variable that is exported to do so, it is evaluated\nat run-time.\n\n(fn [ENVVAR] BODY...)" (edebug-enter (quote with-editor*) (list envvar body) (function (lambda nil (edebug-after (edebug-before 0) 3 (cons ... ...)))))) ((depth . -100))] 4 nil](magit-with-editor-envvar (edebug-after (edebug-before 3) 5 (magit-run-git-async (edebug-after 0 4 args))))
  macroexpand((with-editor* magit-with-editor-envvar (edebug-after (edebug-before 3) 5 (magit-run-git-async (edebug-after 0 4 args)))) nil)
  macroexp-macroexpand((with-editor* magit-with-editor-envvar (edebug-after (edebug-before 3) 5 (magit-run-git-async (edebug-after 0 4 args)))) nil)
  macroexp--expand-all((with-editor* magit-with-editor-envvar (edebug-after (edebug-before 3) 5 (magit-run-git-async (edebug-after 0 4 args)))))
  macroexp--all-forms(((with-editor* magit-with-editor-envvar (edebug-after (edebug-before 3) 5 (magit-run-git-async (edebug-after 0 4 args))))))
  #[1028 "\300�\300\301�\302\"\303��!��\242A#��\242#\207" [macroexp--cons macroexp--all-clauses 1 macroexp--all-forms] 10 "\n\n(fn FORM BODY BINDINGS FUN)"](((let ((magit-process-popup-time -1) (shell-file-name (if (and (eq system-type (quote windows-nt)) (not magit-cygwin-mount-points)) "cmdproxy" shell-file-name))) (with-editor* magit-with-editor-envvar (edebug-after (edebug-before 3) 5 (magit-run-git-async (edebug-after 0 4 args)))))) ((with-editor* magit-with-editor-envvar (edebug-after (edebug-before 3) 5 (magit-run-git-async (edebug-after 0 4 args))))) ((magit-process-popup-time -1) (shell-file-name (if (and (eq system-type (quote windows-nt)) (not magit-cygwin-mount-points)) "cmdproxy" shell-file-name))) let)
  macroexp--expand-all((magit-with-editor (edebug-after (edebug-before 3) 5 (magit-run-git-async (edebug-after 0 4 args)))))
  macroexp--all-forms((edebug-after (edebug-before 2) 6 (magit-with-editor (edebug-after (edebug-before 3) 5 (magit-run-git-async (edebug-after 0 4 args))))) 1)
  #[514 "\300�\301\"\211\204�```

from with-editor.

tarsius avatar tarsius commented on July 17, 2024

Try re-compiling (e.g. by re-installing) with-editor and magit (in that order).

from with-editor.

tarsius avatar tarsius commented on July 17, 2024

The reason why it works when debugging but not otherwise might be that the uncompiled code is used when debugging but the corrupted compiled code is used otherwise. The corruption is probably due to you having updated magit before with-editor.

from with-editor.

tarsius avatar tarsius commented on July 17, 2024

Anyway, carefully recompiling almost certainly fixes this.

from with-editor.

runswithd6s avatar runswithd6s commented on July 17, 2024

Perfect! Removed the *.elc files from both directories and modified the init.el to have a :requires with-editor. Thank you!

from with-editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.