Code Monkey home page Code Monkey logo

Comments (5)

rgieseke avatar rgieseke commented on May 27, 2024 1

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.

lua-rocks avatar lua-rocks commented on May 27, 2024 1

Ok, I got it. Thank you very much!

from textadept.

rgieseke avatar rgieseke commented on May 27, 2024

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.

rgieseke avatar rgieseke commented on May 27, 2024

The current default definition is here, in init.lua: https://github.com/orbitalquark/textadept/blob/3d69ae01c0f2421a89b862ec5fea635a40826896/init.lua

from textadept.

lua-rocks avatar lua-rocks commented on May 27, 2024

@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)

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.