Giter Club home page Giter Club logo

Comments (14)

noearc avatar noearc commented on August 28, 2024

试试luarocks install lua-utf8吧,暂时这样,之后会彻底解决,感谢反馈

from jieba-lua.

drunkenQCat avatar drunkenQCat commented on August 28, 2024

试试luarocks install lua-utf8吧,暂时这样,之后会彻底解决,感谢反馈

8太行,我折腾了一天,从windows到linux,最后就算编译出来了utf、lpeg这几个库,到实际用的时候也会提醒我lpeg有问题……

我之后有空查查nvim插件debug的方法,有新进展我会来来这个issue说。

from jieba-lua.

cxwx avatar cxwx commented on August 28, 2024
╰─ luarocks install --check-lua-versions lua-utf8
lua-utf8 not found for Lua 5.4.
Checking if available for other Lua versions...
Checking for Lua 5.1...
Checking for Lua 5.2...
Checking for Lua 5.3...

from jieba-lua.

noearc avatar noearc commented on August 28, 2024

sry大家,我回来了hh,我当时对neovim的脚本和luarocks的关系完全没搞懂hh,现在我知道怎么解决了,等我这两天更新一下

from jieba-lua.

drunkenQCat avatar drunkenQCat commented on August 28, 2024

sry大家,我回来了hh,我当时对neovim的脚本和luarocks的关系完全没搞懂hh,现在我知道怎么解决了,等我这两天更新一下

好耶!

from jieba-lua.

cxwx avatar cxwx commented on August 28, 2024

update 后新的 bug,缺少lpeg模块

E5108: Error executing lua ...nxu/.local/share/nvim/lazy/jieba-lua/lua/jieba/utils.lua:6: m
odule 'lpeg' not found:
        no field package.preload['lpeg']
        ```

from jieba-lua.

cxwx avatar cxwx commented on August 28, 2024

更新 luarock install lpeg 之后,新的BUG

E5108: Error executing lua ...enxu/.local/share/nvim/lazy/jieba-lua/lua/jieba/init.lua:30:
module 'jieba.dict' not found:
        no field package.preload['jieba.dict']
cache_loader: module jieba.dict not found
cache_loader_lib: module jieba.dict not found

from jieba-lua.

cxwx avatar cxwx commented on August 28, 2024

删除缺失的 require("jieba.dict") 部分,直接使用 gen_pfdict("dict/dict.txt")

E5108: Error executing lua ...enxu/.local/share/nvim/lazy/jieba-lua/lua/jieba/init.lua:36:
bad argument #1 to 'pairs' (table expected, got nil)
stack traceback:
        [C]: in function 'pairs'

from jieba-lua.

cxwx avatar cxwx commented on August 28, 2024

应该是 无法正常识别 ./dict/dict.txt 的路径,改绝对路径后可以使用。
mark 等修复

from jieba-lua.

noearc avatar noearc commented on August 28, 2024

上传了之前漏掉的dict.lua, 以及我发现lpeg在neovim里就有hh,所以现在应该是在nvim里会自动使用vim.lpeg,用luarocks安装会自动下载lpeg了,感谢反馈哈,看看现在能不能用?

from jieba-lua.

cxwx avatar cxwx commented on August 28, 2024

新的bug,
在中文上 w b 跳词的时候会触发

lua luarocks?
luarocks

并卡住,需要按下enter才能继续

from jieba-lua.

noearc avatar noearc commented on August 28, 2024

😂应该是插件那边的问题,我再去整理一下,等几天吧,彻底处理测试一下再用

from jieba-lua.

cxwx avatar cxwx commented on August 28, 2024

似乎在中英文切换时候,才会触发, 比如以下情况

  { "ZSaberLv0/ZFVimIM_japanese_base", enabled = false }, -- : 一些基本的日语单词

from jieba-lua.

cxwx avatar cxwx commented on August 28, 2024

似乎用最新的mac homebrew 环境 修复了。

from jieba-lua.

Related Issues (3)

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.