mason.nvim
mason.nvim copied to clipboard
mason.log: No such file or directory (non-ASCII character in path?)
I've searched open issues for similar requests
Yes
I've recently downloaded the latest plugin version of mason.nvim
- [X] Yes
Problem description
On starting nvim I get the following error
[mason-lspconfig.nvim] installing sumneko_lua
Error detected while processing
C:\Users\User1\.config\nvim\init.vim[3]..C:\Users\User1\.config\nvim\vimrc:
line 42:
E5108: Error executing lua
...site\pack\packer\start\mason.nvim/lua/mason-core/log.lua:116:
C:\Users\User1\AppData\Local\nvim-data\mason.log: No such file or
directory
stack traceback:
[C]: in function 'assert'
...site\pack\packer\start\mason.nvim/lua/mason-core/log.lua:116: in
function 'error'
...\packer\start\mason.nvim/lua/mason-core/package/init.lua:121: in
function 'callback'
...ck\packer\start\mason.nvim/lua/mason-core/async/init.lua:91: in
function 'step'
...ck\packer\start\mason.nvim/lua/mason-core/async/init.lua:96: in
function 'run'
...\packer\start\mason.nvim/lua/mason-core/package/init.lua:112:
in function 'install'
...art\mason-lspconfig.nvim/lua/mason-lspconfig/install.lua:12:
in function 'install'
...-lspconfig.nvim/lua/mason-lspconfig/ensure_installed.lua:28:
in function 'fn'
...pack\packer\start\mason.nvim/lua/mason-core/optional.lua:91:
in function 'if_present'
...-lspconfig.nvim/lua/mason-lspconfig/ensure_installed.lua:24:
in function
<...-lspconfig.nvim/lua/mason-lspconfig/ensure_installed.lua:18>
...\start\mason-lspconfig.nvim/lua/mason-lspconfig/init.lua:23:
in function 'setup'
C:\Users\User1\.config\nvim/lua/packer-nvim.lua:427: in
function 'lsp_setup'
C:\Users\User1\.config\nvim/lua/packer-nvim.lua:457:
in main chunk
[C]: in function 'require'
[string ":lua"]:1: in main chunk
If I continue and start Mason, every package I tried install before, keeps in [0/0] Installing... state Uninstall doesn't work eihter.
Expected behavior
No error on start, and Mason install and uninstall packages as expected.
Steps to reproduce
- use https://raw.githubusercontent.com/nvim-lua/kickstart.nvim/master/init.lua
- start nvim
Neovim version (>= 0.7)
NVIM v0.8.3 Build type: RelWithDebInfo LuaJIT 2.1.0-beta3 Compiled by runneradmin@fv-az171-224
Features: -acl +iconv +tui See ":help feature-compile"
system vimrc file: "$VIM\sysinit.vim" fall-back for $VIM: "C:/Program Files (x86)/nvim/share/nvim"
Run :checkhealth for more info
Operating system/version
Windows 10 Pro Version 20H2 OS build 19042.1706
Healthcheck output
mason: require("mason.health").check()
========================================================================
## mason.nvim report
- OK: neovim version >= 0.7.0
- WARNING: **Go**: not available
- WARNING: **cargo**: not available
- WARNING: **luarocks**: not available
- WARNING: **Ruby**: not available
- WARNING: **RubyGem**: not available
- WARNING: **Composer**: not available
- WARNING: **PHP**: not available
- OK: **npm**: `9.4.0`
- OK: **node**: `v19.6.0
- OK: **python3**: `Python 3.11.1
- OK: **pip3**: `pip 22.3 from C:\home\mata\scoop\apps\python\current\Lib\site-packages\pip (python 3.11)
- WARNING: **javac**: not available
- WARNING: **java**: not available
- WARNING: **julia**: not available
- OK: **wget**: `GNU Wget 1.21.3 built on mingw32.
- OK: **curl**: `curl 7.79.1 (Windows) libcurl/7.79.1 Schannel
- WARNING: **gzip**: not available
- OK: **tar**: `bsdtar 3.5.2 - libarchive 3.5.2 zlib/1.2.5.f-ipp
- OK: **pwsh**: `7.3.2 Microsoft Windows 10.0.19042 Win32NT
- OK: **python**: `Python 3.11.1
- OK: **pip**: `pip 22.3 from C:\home\mata\scoop\apps\python\current\Lib\site-packages\pip (python 3.11)
- OK: **7z**: `7-Zip 22.01 (x64) : Copyright (c) 1999-2022 Igor Pavlov : 2022-07-15
- OK: GitHub API rate limit. Used: 0. Remaining: 60. Limit: 60. Reset: 2/9/2023 6:36:51 PM.
Screenshots

The same config works on other PC, with other username. The error may be, that the path of mason log has an 'Á' character. In the description I've changed my username to User1, but it has special characters.
The utf8 settings mentioned in this comment solves the issue.
Hello! Is this still an issue on nvim >= 0.9?
it's working flawlessly now