Giter Club home page Giter Club logo

Comments (16)

akermu avatar akermu commented on May 17, 2024

What's the output of ldd ~/.emacs.d/dist/emacs-libvterm/vterm-module.so?

from emacs-libvterm.

akermu avatar akermu commented on May 17, 2024

I also switched the build system to CMake. Could you update emacs-libvterm to master and rebuild the module?

from emacs-libvterm.

diamond-lizard avatar diamond-lizard commented on May 17, 2024

I updated emacs-livterm, rebuilt the module, but when I (require 'vterm) I get an error:
Loading file /usr/local/apps/emacs-26.0.90/share/emacs/26.0.90/lisp/term/xterm.elc failed to provide feature ‘vterm-module’

ldd vterm-module.so returns:

linux-vdso.so.1 (0x00007ffc3ff6d000)
libvterm.so.0 => /usr/lib64/libvterm.so.0 (0x00007f073913a000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007f0738f37000)
libc.so.6 => /lib64/libc.so.6 (0x00007f0738b7e000)
/lib64/ld-linux-x86-64.so.2 (0x00007f0739552000)

Also, during the build I noticed that it reported: Performing download step (git clone) for 'emacs'. I'm not sure which emacs version it cloned, but I'm using 26.0.90, whose source I already have in /home/me/compilation/editors/emacs/emacs/emacs-26.0.90. Would it be possible to just reuse that by doing a make EMACS-SRC=/home/me/compilation/editors/emacs/emacs/emacs-26.0.90 like I did with the previous make system?

from emacs-libvterm.

akermu avatar akermu commented on May 17, 2024

Would it be possible to just reuse that

I will add an option to the build system.

from emacs-libvterm.

akermu avatar akermu commented on May 17, 2024

What happens if you call make run?

from emacs-libvterm.

diamond-lizard avatar diamond-lizard commented on May 17, 2024

make run builds and runs a new emacs (compile log here). From there, a (require 'vterm) gives me this error:

Debugger entered--Lisp error: (error "Loading file /usr/local/apps/emacs-26.0.90/share/emacs/26.0.90/lisp/elec-pair.elc failed to provide feature ‘vterm-module’")
  require(vterm-module)
  eval-buffer(#<buffer  *load*> nil "/home/me/.emacs.d/dist/emacs-libvterm/vterm.el" nil t)  ; Reading at buffer position 218
  load-with-code-conversion("/home/me/.emacs.d/dist/emacs-libvterm/vterm.el" "/home/me/.emacs.d/dist/emacs-libvterm/vterm.el" nil t)
  require(vterm)
  eval((require 'vterm) nil)
  eval-expression((require 'vterm) nil nil 127)
  funcall-interactively(eval-expression (require 'vterm) nil nil 127)
  call-interactively(eval-expression nil nil)
  command-execute(eval-expression)

This time elec-pair.elc is reported to be the culprit, but previous to this make run session, other .el or .elc files were reported to be the culprit. I'm not sure why that is.

from emacs-libvterm.

akermu avatar akermu commented on May 17, 2024

If you pull the latest master, you can now provide your own emacs source during the build like this:

cmake -DEMACS_SOURCE=/home/me/compilation/editors/emacs/emacs/emacs-26.0.90 ..

from emacs-libvterm.

akermu avatar akermu commented on May 17, 2024

I don't know, why your emacs can't load the module and I can't reproduce the issue on my side. The error messages seem also really weird, why does your emacs try to load the feature from a random built-in elisp file?

Maybe try it with emacs 25.3?

from emacs-libvterm.

diamond-lizard avatar diamond-lizard commented on May 17, 2024

I just tried cmake -DEMACS_SOURCE=/home/me/compilation/editors/emacs/emacs/emacs-26.0.90 .. (log here).

Then I started a fresh emacs session using emacs -Q, and did:

(add-to-list 'load-path "~/.emacs.d/dist/emacs-libvterm")
(require 'vterm)

and got a "Required feature ‘vterm-module’ was not provided" error (debug output here).

Then doing a second (require 'vterm) got me a "Loading file /usr/local/apps/emacs-26.0.90/share/emacs/26.0.90/lisp/help-mode.elc failed to provide feature ‘vterm-module’" error (full log here).

I am not sure why this is happening either. It's strange. I will try with emacs 25.3.

from emacs-libvterm.

deadtrickster avatar deadtrickster commented on May 17, 2024

Hi. Same error on emacs master, can't even get to "Required feature ‘vterm-module’ was not provided". Just always "Not such file or directory".

from emacs-libvterm.

deadtrickster avatar deadtrickster commented on May 17, 2024

please ignore my prev comment, after recompiling with modules it works.

from emacs-libvterm.

diamond-lizard avatar diamond-lizard commented on May 17, 2024

This works for me now with the latest emacs-libvterm and emacs 26.0.90.

from emacs-libvterm.

sheikki avatar sheikki commented on May 17, 2024

Getting this same error on Ubuntu 16.04 (WSL). Works flawlessly with basically identical emacs dotfile on CentOS 7. Had to install cmake manually if that matters..

from emacs-libvterm.

akermu avatar akermu commented on May 17, 2024

@sheikki How do you install emacs? And has it module support?

from emacs-libvterm.

sheikki avatar sheikki commented on May 17, 2024

On all boxes Emacs 26.2.90 release compiled from sauce with module support. On WSL 16.04 Ubuntu the first time vterm-package.el fails to provide vterm. On subsequent restarts it's either xterm or undo-tree that complains about vterm

from emacs-libvterm.

akermu avatar akermu commented on May 17, 2024

Could you please open a fresh issue?

from emacs-libvterm.

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.