Closed eljost closed 1 year ago
This definitely a good thing for us to have and I've been avoiding adding this tooling 😅 I just added a push to nightly
that resolves this issue. Also good because this will set us further apart from all of the other neovim distributions as well 😄
Thanks for the quick fix. It works.
Checklist
:AstroUpdate
Operating system/version
Linux 5.10.177-1-MANJARO
Terminal/GUI
Gnome Terminal
AstroNvim Health
============================================================================== astronvim: require("astronvim.health").check()
AstroNvim ~
git
is installed: Used for core functionality such as updater and plugin managementxdg-open
is installed: Used forgx
mapping for opening files with system opener (Optional)lazygit
is not installed: Used for mappings to pull up git TUI (Optional)node
is installed: Used for mappings to pull up node REPL (Optional)gdu
is not installed: Used for mappings to pull up disk usage analyzer (Optional)btm
is not installed: Used for mappings to pull up system monitor (Optional)python
is installed: Used for mappings to pull up python REPL (Optional)============================================================================== gitsigns: require("gitsigns.health").check()
============================================================================== lazy: require("lazy.health").check()
lazy.nvim ~
============================================================================== mason: require("mason.health").check()
mason.nvim ~
mason.nvim [Registries] ~
github.com/mason-org/mason-registry version: 2023-04-26-sloppy-tapir
is installed.mason.nvim [Core utils] ~
UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler. Send
GNU Wget 1.21.3 übersetzt unter linux-gnu.
curl 8.0.1 (x86_64-pc-linux-gnu) libcurl/8.0.1 OpenSSL/3.0.8 zlib/1.2.13 brotli/1.0.9 zstd/1.5.4 libidn2/2.3.4 libpsl/0.21.2 (+libidn2/2.3.4) libssh2/1.10.0 nghttp2/1.52.0
gzip 1.12
tar (GNU tar) 1.34
GNU bash, Version 5.1.16(1)-release (x86_64-pc-linux-gnu)
Ok
mason.nvim [Languages] ~
Python 3.9.9
go version go1.20.3 linux/amd64
Python 3.10.10
v19.8.1
openjdk version "11.0.18" 2023-01-17
pip 22.3.1 from /home/johannes/.pyenv/versions/nvim/lib/python3.10/site-packages/pip (python 3.10)
8.19.2
pip 22.0.4 from /home/johannes/.pyenv/versions/pysis/lib/python3.9/site-packages/pip (python 3.9)
mason.nvim [GitHub] ~
============================================================================== null-ls: require("null-ls.health").check()
============================================================================== nvim: require("nvim.health").check()
Configuration ~
Runtime ~
Performance ~
Remote Plugins ~
terminal ~
key_backspace=\177
key_dc=\E[3~
tmux ~
focus-events
is not enabled. |'autoread'| may not work.focus-events
in ~/.tmux.conf: set-option -g focus-events on============================================================================== nvim-treesitter: require("nvim-treesitter.health").check()
Installation ~
tree-sitter
found 0.20.8 (parser generator, only needed for :TSInstallFromGrammar)node
found v19.8.1 (only needed for :TSInstallFromGrammar)git
executable found.cc
executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" } Version: cc (GCC) 12.2.1 20230201OS Info: { machine = "x86_64", release = "5.10.177-1-MANJARO", sysname = "Linux", version = "#1 SMP PREEMPT Wed Apr 5 09:56:50 UTC 2023" } ~
Parser/Features H L F I J
python ✓ ✓ ✓ ✓ ✓
Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections +) multiple parsers found, only one will be used x) errors found in the query, try to run :TSUpdate {lang} ~
============================================================================== provider: health#provider#check
Clipboard (optional) ~
Python 3 provider (optional) ~
Python virtualenv ~
WARNING $VIRTUAL_ENV is set to: /home/johannes/.pyenv/versions/3.9.9/envs/pysis And its /bin directory contains: python, python-argcomplete-check-easy-install-script, python3, python3.9, pythoni, pythoni1 But $PATH yields this python executable: /home/johannes/.pyenv/versions/pysis/bin/python And $PATH in subshells yields this python executable: /home/johannes/.pyenv/versions/pysis/bin/python And $PATH yields this python-argcomplete-check-easy-install-script executable: This script is part of the Python argcomplete package (https:/github.com/kislyuk/argcomplete). It is used to check if an EASY-INSTALL-SCRIPT wrapper redirects to a script that contains the string "PYTHON_ARGCOMPLETE_OK". If you have enabled global completion in argcomplete, the completion hook will run it every time you press in your shell.
Usage: python-argcomplete-check-easy-install-script
And $PATH in subshells yields this python-argcomplete-check-easy-install-script executable: This script is part of the Python argcomplete package (https:/github.com/kislyuk/argcomplete). It is used to check if an EASY-INSTALL-SCRIPT wrapper redirects to a script that contains the string "PYTHON_ARGCOMPLETE_OK". If you have enabled global completion in argcomplete, the completion hook will run it every time you press in your shell.
Usage: python-argcomplete-check-easy-install-script
And $PATH yields this python3 executable: /home/johannes/.pyenv/versions/pysis/bin/python3 And $PATH in subshells yields this python3 executable: /home/johannes/.pyenv/versions/pysis/bin/python3 And $PATH yields this python3.9 executable: /home/johannes/.pyenv/versions/pysis/bin/python3.9 And $PATH in subshells yields this python3.9 executable: /home/johannes/.pyenv/versions/pysis/bin/python3.9 And $PATH yields this pythoni executable: Traceback (most recent call last): File "/home/johannes/.pyenv/versions/pysis/bin/pythoni", line 30, in
from pyrepl.python_reader import main
File "/home/johannes/.pyenv/versions/3.9.9/envs/pysis/lib/python3.9/site-packages/pyrepl/python_reader.py", line 25, in
from pyrepl.completing_reader import CompletingReader
File "/home/johannes/.pyenv/versions/3.9.9/envs/pysis/lib/python3.9/site-packages/pyrepl/completing_reader.py", line 22, in
from pyrepl import commands, reader
File "/home/johannes/.pyenv/versions/3.9.9/envs/pysis/lib/python3.9/site-packages/pyrepl/commands.py", line 376, in
from pyrepl import input
File "/home/johannes/.pyenv/versions/3.9.9/envs/pysis/lib/python3.9/site-packages/pyrepl/input.py", line 39, in
from trace import trace
ImportError: cannot import name 'trace' from 'trace' (/home/johannes/.pyenv/versions/3.9.9/lib/python3.9/trace.py)
And $PATH in subshells yields this pythoni executable: Traceback (most recent call last): File "/home/johannes/.pyenv/versions/pysis/bin/pythoni", line 30, in
from pyrepl.python_reader import main
File "/home/johannes/.pyenv/versions/3.9.9/envs/pysis/lib/python3.9/site-packages/pyrepl/python_reader.py", line 25, in
from pyrepl.completing_reader import CompletingReader
File "/home/johannes/.pyenv/versions/3.9.9/envs/pysis/lib/python3.9/site-packages/pyrepl/completing_reader.py", line 22, in
from pyrepl import commands, reader
File "/home/johannes/.pyenv/versions/3.9.9/envs/pysis/lib/python3.9/site-packages/pyrepl/commands.py", line 376, in
from pyrepl import input
File "/home/johannes/.pyenv/versions/3.9.9/envs/pysis/lib/python3.9/site-packages/pyrepl/input.py", line 39, in
from trace import trace
ImportError: cannot import name 'trace' from 'trace' (/home/johannes/.pyenv/versions/3.9.9/lib/python3.9/trace.py)
And $PATH yields this pythoni1 executable: File "/home/johannes/.pyenv/versions/pysis/bin/pythoni1", line 16 print 'Python', sys.version ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Python', sys.version)?
And $PATH in subshells yields this pythoni1 executable: File "/home/johannes/.pyenv/versions/pysis/bin/pythoni1", line 16 print 'Python', sys.version ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Python', sys.version)?
So invoking Python may lead to unexpected results.
Ruby provider (optional) ~
ruby
andgem
must be in $PATH.ruby
andgem
commands work.Node.js provider (optional) ~
let g:loaded_node_provider = 0
to your init.vimPerl provider (optional) ~
let g:loaded_perl_provider = 0
to your init.vim============================================================================== vim.lsp: require("vim.lsp.health").check()
vim.lsp: Active Clients ~
============================================================================== vim.treesitter: require("vim.treesitter.health").check()
============================================================================== which-key: require("which-key.health").check()
WhichKey: checking conflicting keymaps ~
Describe the bug
Dear AstroNvim developers,
I'm developing a python project that contains quite some amount of generated python code that comprises very long/big functions. It seems like at some point
pyright
crashes/chokes on some files. After opening a file in my project the number of analyzed files grows over time but at some point a yellow error boy appears, telling me that some client crashed ("Client 1 quit with exit code 0 and signal 6") and the number of analyzed files does not grow anymore. Then the editor window is flooded with error messages, making AstroNvim unusable.Below you can see the output of
$HOME/.local/state/nvim/lsp.log
There is proably something to be done on my side to exclude the big files and to fiddle around with pyright, but a LS-crash should not render the editor unusable.
Steps to Reproduce
git@github.com:eljost/pysisyphus.git
and checkout the wigner branchExpected behavior
Don't flood the editor window with error messages, as this makes the editor fully unusable.
Screenshots
Additional Context
There is proably something to be done on my side to exclude the big files and to fiddle around with pyright, but a LS-crash should not render the editor unusable.