Giter Club home page Giter Club logo

Comments (4)

chrisbra avatar chrisbra commented on September 6, 2024

yes, so we should not be affected. So anything to do for us here?

from vim-appimage.

mralusw avatar mralusw commented on September 6, 2024

On the compromise, no, we should be more than OK (but I thought I'd check).

I'm trying to figure out what's going on with the embedded languages. We clearly ship some libraries as ldd shows (and unlike what the release notes state).

  • Python 3 apparently does not run out of the box (:python3 yields E319).
  • Python 2 also does not work (E887) but it seems like it might be fixable by using the target's runtime (?)
  • Lua seems to work and fixed at 5.3
  • Perl at 5.30

I think the release notes are also wrong about installing those interpreters on the system — if they work at all, they will work with the builtin appimage version.

from vim-appimage.

mralusw avatar mralusw commented on September 6, 2024

Findings: all interpreters are currently configured with --enable-*interp. This means right now:

  • all interpreters are "available" regardless of what's installed on the user's system
  • but unless the user has Ubuntu 20.04, no interpreter will find their default packages
  • in particular, Python 2 is enabled, but it can't actually run anything useful
  • the others work to varying degrees (e.g. Lua doesn't seem to need anything)

I've reconfigured my builds to include this in scripts/build_vim.sh

CFG_OPTS+=( "--disable-pythoninterp" )
CFG_OPTS+=( "--enable-python3interp=dynamic" )
CFG_OPTS+=( "--with-python3-stable-abi=3.8" )

Only Python3 seems to have stable-ABI capabilities. On any system, one can set pythonthreedll=libpython3.11.so or whatever, and appimage-vim will use it. To simplify things, I've written a vim script to auto-search for an the appropriate "dll" (link below); it seems to work on at least Debian derivatives.

For the other interpreters , vimhelp says this about */dyn configurations:

The version of the shared library must match the $INTERP version Vim was compiled with.

… so for those, maybe non-dynamic is the least bad option.

What do you think should be done? I could

  • turn on dynamic python3 and disable python2 with the CFG ops above
  • document the real state of affairs
  • add a PR for search-interpreter-dlls.vim to the main branch, and
    • (maybe?) add it to the appimage-vim's default startup sequence, though this seems too much

from vim-appimage.

chrisbra avatar chrisbra commented on September 6, 2024

fixed by #70

from vim-appimage.

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.