Giter Club home page Giter Club logo

Comments (5)

lastquestion avatar lastquestion commented on June 3, 2024

Hi!! Thanks for the bug report. I'm 100% sure it's because I didn't read the documentation carefully enough for set-process-filter. Quote

set-process-filter process filter
This function gives process the filter function filter. If filter is nil, it gives the process the default filter, which inserts the process output into the process buffer.

Well, duh, filter is nil here, because treemacs wanted it to go into some buffer, it must have done something like this:

(set-process-filter my-process nil)

This would drop into https://github.com/lastquestion/explain-pause-mode/blob/master/explain-pause-mode.el#L1878 which drops into https://github.com/lastquestion/explain-pause-mode/blob/master/explain-pause-mode.el#L1838 which drops into https://github.com/lastquestion/explain-pause-mode/blob/master/explain-pause-mode.el#L1807, which tries to call apply nil.

I'll pull a repro case together. The fix needs to be around https://github.com/lastquestion/explain-pause-mode/blob/master/explain-pause-mode.el#L1874 and for set-process-sentinel, too.

I think this is an easy fix, it's possible to advise the code to fix it locally too but it's a bit of a pain. I'll just suggest waiting, I'll get this fixed today.

Thanks again for reporting!! I'm surprised no one else has hit this... kind of a glaring bug 🤣

from explain-pause-mode.

lastquestion avatar lastquestion commented on June 3, 2024

Repro case

(setq proc (make-process
            :name "test"
            :buffer "test"
            :command '("bash")))
(set-process-filter proc nil)
(process-send-string proc "ls -al\n")

from explain-pause-mode.

lastquestion avatar lastquestion commented on June 3, 2024

Hi!! Sorry this took longer to fix then I thought. This should fix the issue, please re-open if it doesn't!

from explain-pause-mode.

lastquestion avatar lastquestion commented on June 3, 2024

Hi @tomfitzhenry I was going through old PRs to add repro cases to a set of integration test - a little creepy but I saw your reference 😀

with-editor is in magit and is relatively complex, the other open issue #26 is also related to with-editor. I have (I think) finally quashed #26 in the open PR #42. The bug you hit is likely to be related to that, what happened is probably the filter intercept code failed with an error and so never returned the value back out to with-editor. When #42 is merged I give it more then even odds that the bug you found will be fixed, but if not, feel free to open a bug with just very basic info, it's super appreciated if you can debug into it but not necessary :_)

from explain-pause-mode.

tomfitzhenry avatar tomfitzhenry commented on June 3, 2024

Hi @tomfitzhenry I was going through old PRs to add repro cases to a set of integration test - a little creepy but I saw your reference grinning

Not creepy at all! That's one of the handy parts of Github.

When #42 is merged I give it more then even odds that the bug you found will be fixed, but if not, feel free to open a bug with just very basic info, it's super appreciated if you can debug into it but not necessary :_)

I've now raised a bug at #46 .

Thanks for your great work!

from explain-pause-mode.

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.