Giter VIP home page Giter VIP logo

Comments (14)

purcell avatar purcell commented on May 27, 2024

Which Emacs version do you have?

from emacs.d.

purcell avatar purcell commented on May 27, 2024

Maybe the change in 7b174a5 helps?

from emacs.d.

kungelee avatar kungelee commented on May 27, 2024

Warning

■ Warning (initialization): An error occurred while loading ‘c:/HOME/.emacs.d/init.el’:

Symbol's value as variable is void: treesit-extra-load-path

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.

Emacs Version

GNU Emacs 29.1 (build 5, x86_64-w64-mingw32) of 2023-08-01

Sysmtem version

Microsoft Windows [Version 10.0.19045.3324]

Version Windows 10 Enterprise
Version number 22H2
Installation date 2023-03-28
Operating System Internal Version 19045.3324
Experience Windows Feature Experience Pack 1000.19041.1000.0

from emacs.d.

purcell avatar purcell commented on May 27, 2024

Okay, thanks, and is that with the latest commit? I would hope that it would have fixed the issue for you.

from emacs.d.

kungelee avatar kungelee commented on May 27, 2024

Maybe the change in 7b174a5 helps?

■ Warning (initialization): An error occurred while loading ‘c:/HOME/.emacs.d/init.el’:

End of file during parsing: c:/HOME/.emacs.d/init.el

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.

D:\emacs-29.1-src\bin\runemacs.exe --debug-init

from emacs.d.

kungelee avatar kungelee commented on May 27, 2024

01
02

from emacs.d.

kungelee avatar kungelee commented on May 27, 2024

for %i in (*) do ren "%i" "libtree-sitter-%i"

from emacs.d.

purcell avatar purcell commented on May 27, 2024

"End of file during parsing: ../init.el" is the problem you should investigate. You must have invalid lisp in there somewhere, as a result of local editing.

from emacs.d.

kungelee avatar kungelee commented on May 27, 2024

Compile again with: --with-tree-sitter

./autogen.sh
PKG_CONFIG_PATH=/mingw64/lib/pkgconfig ./configure --host=x86_64-w64-mingw32
--target=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --with-wide-int
--with-jpeg --with-xpm --with-png --with-tiff --with-rsvg --with-xml2
--with-gnutls --without-imagemagick --with-tree-sitter
make -j
make install prefix=/d/emacs-29.1

image

from emacs.d.

kungelee avatar kungelee commented on May 27, 2024

Thank you very much. I found the problem. I missed a parenthesis when copying the code, but the tree-sitter still does not work. In addition, the hard line on the right does not display properly

image

from emacs.d.

kungelee avatar kungelee commented on May 27, 2024

image

from emacs.d.

purcell avatar purcell commented on May 27, 2024

Okay, but that code in init.el isn't the same as the code in my repo.

Re. the line on the right, see init-editing-utils.el: display-fill-column-indicator-character is set to a unicode character that appears to be missing in your font. You can either change that code, or try a different font, but I can't offer advice for Emacs on Windows sorry.

from emacs.d.

gwijayas avatar gwijayas commented on May 27, 2024

@kungelee try download this instead. I think, your emacs build, not support tree-sitter (the message: cannot activate tree-sitter.....). After running emacs, try Ctrl + h and put treesit-extra-load-path. if is supported, the message buffer will like treesit-extra-load-path is a variable defined in ‘C source code’. (I tested from zip version and exe running on Windows 10)

As for me, I have succesfully build emacs 29.1 with tree-sitter supported, on windows using this recipe. But, unless you are curious about building emacs(master) on windows or want to use msys2 toolkit/environment on windows for building C/C++ application/learning, the one from GNU's repo is sufficient (I will choose zipped version).

from emacs.d.

purcell avatar purcell commented on May 27, 2024

Closing as the issue is resolved in this repo.

from emacs.d.

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.