Comments (5)
But I don't understand why these paths are not included by default.
They are likely not standardized between the different Linuxes, BSDs and macOS ... (and 5.3 or 5.4).
Also it would make it even harder to debug other people's Textadept config problems i guess ... (Textadept ships with Lpeg for example but it could also be installed from Luarocks, you installed dkjson but it might also be part of a Textadept module ...)
from textadept.
Ok, I got it. Thank you very much!
from textadept.
It should work when you add the Luarocks path to Textadept's package.path
variable (and/or package.cpath
).
You could also define a separate rock path just for Textadept.
Only problem could be if there were relevant differences between Lua 5.3 and Lua 5.4 for your packages (as latest Textadept uses 5.4).
from textadept.
The current default definition is here, in init.lua
: https://github.com/orbitalquark/textadept/blob/3d69ae01c0f2421a89b862ec5fea635a40826896/init.lua
from textadept.
@rgieseke thank you! I just copy-pasted paths from interpreter to init.lua and now it seems works fine:
package.path = package.path .. ';/usr/local/share/lua/5.3/?.lua;/usr/local/share/lua/5.3/?/init.lua;/usr/local/lib/lua/5.3/?.lua;/usr/local/lib/lua/5.3/?/init.lua;/usr/share/lua/5.3/?.lua;/usr/share/lua/5.3/?/init.lua;./?.lua;./?/init.lua'
package.cpath = package.cpath .. ';/usr/local/lib/lua/5.3/?.so;/usr/lib/x86_64-linux-gnu/lua/5.3/?.so;/usr/lib/lua/5.3/?.so;/usr/local/lib/lua/5.3/loadall.so;./?.so'
But I don't understand why these paths are not included by default.
from textadept.
Related Issues (20)
- windows cmake build
- Version 12 changes indentation & tab settings when splitting views HOT 2
- Default buffer properties not applied after a reset. HOT 1
- Current nightly (2023-05-17) doesn't support column and multi-editing HOT 4
- Enhancement suggestion: Change default keyboard shortcut for Upper Case Selection HOT 2
- Can't compile if folder name (in the path) has parentheses HOT 7
- Add a TICK event for sockets HOT 3
- Version 12 doesn't show unsaved buffers when entering * in Switch to Buffer dialog HOT 1
- How to color or style text HOT 1
- No Flatpak for textadept HOT 2
- buffer.tab_label does not work HOT 1
- [nightly] "Insert Snippet..." fails with error if no snippets are defined HOT 1
- Add support for .etlua files
- Transforms in Textadept 12beta don't work as documented HOT 1
- V12 Beta - view.caret_line_layer = view.LAYER_UNDER_TEXT seems to overrides view.ELEMENT_SELECTION_BACK HOT 2
- V12 buffer.current_pos nil in block comments HOT 2
- List Dialog Default Button + button3 Qt support HOT 1
- Error "lexer.lua:117: bad argument #3 to 'set_styling' (number expected, got nil)" HOT 1
- 12.0 beta still does not highlight python-3.10 syntax HOT 2
- Feature Request: Emacs like TeX Input Method HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textadept.