Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot use paq at all #163

Open
TheRealKraytonian opened this issue Jan 12, 2024 · 3 comments
Open

cannot use paq at all #163

TheRealKraytonian opened this issue Jan 12, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@TheRealKraytonian
Copy link

similar to #91
solution did not work for me

Describe the bug
I am not able to use command :PaqInstall
Error detected while processing C:\Users\andrew\AppData\Local\nvim\init.lua:
E5113: Error while calling lua chunk: C:\Users\andrew\AppData\Local\nvim\init.lua:1: module 'paq' not found:
no field package.preload['paq']
no file '.\paq.lua'
no file 'C:\tools\neovim\nvim-win64\bin\lua\paq.lua'
no file 'C:\tools\neovim\nvim-win64\bin\lua\paq\init.lua'
no file '.\paq.dll'
no file 'C:\tools\neovim\nvim-win64\bin\paq.dll'
no file 'C:\tools\neovim\nvim-win64\bin\loadall.dll'
stack traceback:
[C]: in function 'require'
C:\Users\andrew\AppData\Local\nvim\init.lua:1: in main chunk

To Reproduce

this is my init lua file

require "paq" {
"savq/paq-nvim", -- Let Paq manage itself
"neovim/nvim-lspconfig",
{ "lervag/vimtex", opt = true }, -- Use braces when passing options
{ 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate' },
"OmniSharp/omnisharp-vim";
"preservim/nerdtree";
}

local wo = vim.wo
local g = vim.g
local opt = vim.opt

wo.number = true -- show line numbers
g.OminSharp_server_use_net8 = 1
opt.wrap = false -- no text wrap
opt.backup = false -- no annoying backup file
--everything in utf-8
opt.encoding = "utf-8"
opt.fileencoding = "utf-8"
opt. termencoding = "utf-8"

vim.cmd([[
set listchars=tab:> ,trail:~,extends:>,precedes:<,space:
set list
" 4 spacs indentation
set tabstop=4 softtabstop=0 expandtab shiftwidth=4

" Deal with unwanted white space (show them in read)
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
auctocmd BufWinEnter = match ExtraWhiteSpace /\s\+$/
auctocmd InsertEnter = match ExtraWhiteSpace /\s\+\%#\$<!$/
auctocmd InsertLeave = match ExtraWhiteSpace /\s\+$/
auctocmd BufWinLeave = call clearmatches()

]])

Expected behavior

I want to be able to use paq with no errors.

Environment:
NVIM v0.9.5
git version 2.40.0.windows.1
windows 10 os

@TheRealKraytonian TheRealKraytonian added the bug Something isn't working label Jan 12, 2024
@savq
Copy link
Owner

savq commented Jan 13, 2024

Did you get any errors when cloning Paq itself?

What directories do you have on your data stdpath? What's the output when running the following command in nvim:

:lua for dir in vim.fs.dir(vim.fn.stdpath('data'), {depth=5}) do print(dir) end

@TheRealKraytonian
Copy link
Author

I got this

log
shada
site
swap
shada/main.shada
site/pack
swap/C%%Users%andrew%Documents%CSharp%16BPPHTTPClient.swp
swap/C%%Users%andrew%Documents%Finnhub%frontend.swp
swap/C%%Users%andrew.swp

@saccarosium
Copy link
Collaborator

Try the 'nightly' branch and see if the error persist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants