orbitalquark / textadept

Textadept is a fast, minimalist, and remarkably extensible cross-platform text editor for programmers.
https://orbitalquark.github.io/textadept
MIT License
640 stars 38 forks source link

Initialization Error: C stack overflow #363

Closed GreedyTactician closed 1 year ago

GreedyTactician commented 1 year ago

I am using Ubuntu 22.10. I compiled textadept with gtk. It complained that it lacked lexers/lexer.lua so I just created lexers/lexer.lua using lexer.lua from core/. After that, 'Initialization Error C stack overflow'. I am not too sure how to troubleshoot this on my own.

It ran fine when I was using Ubuntu 20.04 a few days ago.

rgieseke commented 1 year ago

I did compile textadept-gtk successfully yesterday on Ubuntu 22.10 with the 'Nightly' option (-D NIGHTLY=1), to fetch all dependencies like Scintillua in their respective latest version.

cmake -S . -B build_dir -D CMAKE_INSTALL_PREFIX=build_dir/install -D NIGHTLY=1

Not sure whether you have to clear out cached dependencies before.

orbitalquark commented 1 year ago

And you ran cmake --install build_dir? That should install all of the lexers from Scintillua into the lexers/ directory. core/lexers.lua is something separate.

GreedyTactician commented 1 year ago

Yes. I had not run cmake --install build_dir. I did make it work without it last time somehow. I should have read the instruction more carefully. Thank you! These are amazingly quick replies.