clink's installscript not supported fully correctly
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
Research direction
Start with the root-level test_path.lua and inspect how clink installscripts initializes files in the z.lua installation directory. Move the test/helper file into a subdirectory ignored by clink installscripts, then verify that launching cmd no longer reports the missing z module error.
Written by the indexing model from the issue text.
Description
Hello, if you use clink's new better way to install modules, so: clink installscripts C:\path\to\z.lua\, z.lua works mostly fine, except for one small issue. Every time you launch cmd you see this annoying error at the top:
...cations\Plugins\Windows\System\clink\z.lua\test_path.lua:1: module 'z' not found:
no field package.preload['z']
no file 'D:\Backups\Applications\Plugins\Windows\System\clink\clink-completions\modules/z.lua'
no file 'C:\Program Files (x86)\Lua\5.1\lua\z.luac'
no file 'C:\Windows\system32\z.dll'
no file 'C:\Windows\system32\loadall.dll'
no file '.\z.dll'
Basically what happens is that clink installscripts only accepts dirs not files, so you provide a path which also contains test_path.lua file and that file doesn't work well when it's initialized in clink.
The fix would be to move test_path.lua to a separate directory, e.g. modules or helpers or something, as clink installscripts ignores subdirectories. I'm not sure what the file does though (well, it tests the path, but I don't know under which circumstances, I can't see any references) and why it's in the root of the project.
EDIT: oh, from the commit history I see it's some kind of a test/helper. So moving it shouldn't be any sort of a problem.
- Dominant language
- Lua
- Stars
- 3.1k
- Forks
- 149
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from skywind3000/z.lua
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
skywind3000/z.lua#234 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
skywind3000/z.lua#232 · 1 comment ·
-
似乎不支持wsl路径?Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
skywind3000/z.lua#227 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
skywind3000/z.lua#226 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
skywind3000/z.lua#225 ·
All issues in skywind3000/z.lua
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 3 days
-
[Operation Enhancement]: .editorconfigと.gitattributesでdictionaryとLuaファイルの編集・改行設定を統一するPossibly taken @5kdn claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 80/100
5kdn/DCS-Translation-Japanese#163 ·
Maintainers usually reply within 1 day
-
[Bug Report]Openarea/Cubelet area/CubeNet bug needs-triage needs:compliance
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
TencentCloud/CubeSandbox#1917 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100