Code Monkey home page Code Monkey logo

Comments (7)

timlod avatar timlod commented on August 15, 2024

Actually, you see this with ps x as well, although there it is OK since the definition is on one line, instead of systemctl status's multiline output. Would it be possible to wrap that module inside another script that is called instead to prevent this?

from anaconda-mode.

dakra avatar dakra commented on August 15, 2024

This is a duplicate of #393.

Putting it inside another script is certainly possible but you have to be careful that it still works over tramp.

from anaconda-mode.

timlod avatar timlod commented on August 15, 2024

I'm not very experienced with elisp that touches outside processes - could you give me a pointer on how I could have that module external? Then I could submit a PR for that.

Edit:
I have found how to wrap it in a script - I replaced

:args `("-c"
            ,anaconda-mode-server-command

with

:args `(,(concat (file-name-directory (locate-library "anaconda-mode")) "anaconda-mode.py")

where anaconda-mode.py wraps that script. But as expected, it won't work over TRAMP, as I suppose the filename is expanded with the current TRAMP prefix...

from anaconda-mode.

dakra avatar dakra commented on August 15, 2024

Maybe a simple solution is to check (pythonic-remote-p) and if that's true, send the content of anaconda-mode.py instead of passing the filename.

Other option would be to copy the file to the remote host first?!

from anaconda-mode.

timlod avatar timlod commented on August 15, 2024

I made a pull request fixing this - #407.
It's my first change of this kind, so it may not be exactly what you're looking for - let me know!

from anaconda-mode.

dakra avatar dakra commented on August 15, 2024

Thanks.
Had a quick look and lgtm.
I'm pretty busy atm, so in case @CeleritasCelery isn't faster than me it'll take some time
for a proper review.

from anaconda-mode.

dakra avatar dakra commented on August 15, 2024

Fixed in #407

from anaconda-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.