luk400 / vim-jukit

Jupyter-Notebook inspired Neovim/Vim Plugin
MIT License
603 stars 23 forks source link

Unable to open split window with correct conda environment #69

Closed MattNguyen closed 1 year ago

MattNguyen commented 1 year ago

Love the plugin, but I haven't been able to get working correctly with the right conda environment. When I'm in my selected environment and I run :JukitOut conda activate <env>, the split window opens with the base env initialized. If I open neovim with the base env and activate my preferred environment, the split window opens correctly, but the nvim buffer is littered with linting errors.

Here's a video attempting to activate the conda env when opening the split window: https://share.getcloudapp.com/yAuJ25YY

:checkhealth output

gitsigns: require("gitsigns.health").check() ======================================================================== - OK: git version 2.37.1 (Apple Git-137.1) lazy: require("lazy.health").check() ======================================================================== ## lazy.nvim - OK: Git installed - OK: no existing packages found by other package managers - OK: packer_compiled.lua not found man: require("man.health").check() ======================================================================== - OK: plugin/man.vim not in $VIMRUNTIME - OK: autoload/man.vim not in $VIMRUNTIME mason: require("mason.health").check() ======================================================================== ## mason.nvim report - OK: neovim version >= 0.7.0 - OK: **Go**: `go version go1.18.1 darwin/arm64` - OK: **cargo**: `cargo 1.65.0 (4bc8f24d3 2022-10-20)` - WARNING: **luarocks**: not available - OK: **Ruby**: `ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [arm64-darwin20]` - OK: **RubyGem**: `3.2.3` - WARNING: **Composer**: not available - WARNING: **PHP**: not available - OK: **npm**: `9.1.2` - OK: **node**: `v16.15.1` - OK: **python3**: `Python 3.9.12` - OK: **pip3**: `pip 23.0.1 from /opt/homebrew/Caskroom/miniconda/base/lib/python3.9/site-packages/pip (python 3.9)` - WARNING: **javac**: not available - WARNING: **java**: not available - WARNING: **julia**: not available - ERROR: **wget**: not available - OK: **curl**: `curl 7.86.0 (aarch64-apple-darwin22.1.0) libcurl/7.86.0 OpenSSL/3.0.7 zlib/1.2.13 brotli/1.0.9 zstd/1.5.2 libidn2/2.3.4 libpsl/0.21.1 (+libidn2/2.3.4) nghttp2/1.51.0` - OK: **gzip**: `Apple gzip 400` - OK: **tar**: `bsdtar 3.5.3 - libarchive 3.5.3 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.8 ` - WARNING: **pwsh**: not available - OK: **bash**: `GNU bash, version 3.2.57(1)-release (arm64-apple-darwin22)` - OK: **sh**: `Ok` - OK: **python3_host_prog**: `Python 3.9.12` - OK: **python3_host_prog pip**: `pip 23.0.1 from /opt/homebrew/Caskroom/miniconda/base/lib/python3.9/site-packages/pip (python 3.9)` - OK: GitHub API rate limit. Used: 0. Remaining: 60. Limit: 60. Reset: Wed Mar 15 21:47:00 2023. nvim: health#nvim#check ======================================================================== ## Configuration - OK: no issues found ## Performance - OK: Build type: Release ## Remote Plugins - OK: Up to date ## terminal - INFO: key_backspace (kbs) terminfo entry: key_backspace=^H - INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~ - INFO: $TERM_PROGRAM='iTerm.app' - INFO: $COLORTERM='truecolor' nvim-treesitter: require("nvim-treesitter.health").check() ======================================================================== ## Installation - OK: `tree-sitter` found 0.20.7 (parser generator, only needed for :TSInstallFromGrammar) - OK: `node` found v16.15.1 (only needed for :TSInstallFromGrammar) - OK: `git` executable found. - OK: `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" } Version: Apple clang version 14.0.0 (clang-1400.0.29.202) - OK: Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI. ## OS Info: { machine = "arm64", release = "22.1.0", sysname = "Darwin", version = "Darwin Kernel Version 22.1.0: Sun Oct 9 20:14:30 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T8103" } ## Parser/Features H L F I J - c ✓ ✓ ✓ ✓ ✓ - cpp ✓ ✓ ✓ ✓ ✓ - gitignore ✓ . . . . - go ✓ ✓ ✓ ✓ ✓ - help ✓ . . . ✓ - json ✓ ✓ ✓ ✓ . - lua ✓ ✓ ✓ ✓ ✓ - markdown ✓ . ✓ . ✓ - python ✓ ✓ ✓ ✓ ✓ - rust ✓ ✓ ✓ ✓ ✓ - tsx ✓ ✓ ✓ ✓ ✓ - typescript ✓ ✓ ✓ ✓ ✓ - vim ✓ ✓ ✓ . ✓ 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) - OK: Clipboard tool found: pbcopy ## Python 3 provider (optional) - INFO: pyenv: Path: /opt/homebrew/Cellar/pyenv/2.3.14/libexec/pyenv - INFO: pyenv: $PYENV_ROOT is not set. Infer from `pyenv root`. - INFO: pyenv: Root: /Users/matt/.pyenv - INFO: Using: g:python3_host_prog = "/opt/homebrew/Caskroom/miniconda/base/bin/python3" - INFO: Executable: /opt/homebrew/Caskroom/miniconda/base/bin/python3 - INFO: Python version: 3.9.12 - INFO: pynvim version: 0.4.3 - OK: Latest pynvim is installed. ## Python virtualenv - OK: no $VIRTUAL_ENV ## Ruby provider (optional) - INFO: Ruby: ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [arm64-darwin20] - WARNING: `neovim-ruby-host` not found. - ADVICE: - Run `gem install neovim` to ensure the neovim RubyGem is installed. - Run `gem environment` to ensure the gem bin directory is in $PATH. - If you are using rvm/rbenv/chruby, try "rehashing". - See :help |g:ruby_host_prog| for non-standard gem installations. - You may disable this provider (and warning) by adding `let g:loaded_ruby_provider = 0` to your init.vim ## Node.js provider (optional) - INFO: Node.js: v16.15.1 - WARNING: Missing "neovim" npm (or yarn, pnpm) package. - ADVICE: - Run in shell: npm install -g neovim - Run in shell (if you use yarn): yarn global add neovim - Run in shell (if you use pnpm): pnpm install -g neovim - You may disable this provider (and warning) by adding `let g:loaded_node_provider = 0` to your init.vim ## Perl provider (optional) - WARNING: "Neovim::Ext" cpan module is not installed - ADVICE: - See :help |provider-perl| for more information. - You may disable this provider (and warning) by adding `let g:loaded_perl_provider = 0` to your init.vim telescope: require("telescope.health").check() ======================================================================== ## Checking for required plugins - OK: plenary installed. - OK: nvim-treesitter installed. ## Checking external dependencies - OK: rg: found ripgrep 13.0.0 - WARNING: fd: not found. Install [sharkdp/fd](https://github.com/sharkdp/fd) for extended capabilities ## ===== Installed extensions ===== ## Telescope Extension: `fzf` - OK: lib working as expected - OK: file_sorter correctly configured - OK: generic_sorter correctly configured vim.lsp: require("vim.lsp.health").check() ======================================================================== - INFO: LSP log level : WARN - INFO: Log path: /Users/matt/.local/state/nvim/lsp.log - INFO: Log size: 2089 KB vim.treesitter: require("vim.treesitter.health").check() ======================================================================== - INFO: Runtime ABI version : 14 - OK: Loaded parser for c: ABI version 13 - OK: Loaded parser for cpp: ABI version 14 - OK: Loaded parser for gitignore: ABI version 13 - OK: Loaded parser for go: ABI version 14 - OK: Loaded parser for help: ABI version 14 - OK: Loaded parser for json: ABI version 13 - OK: Loaded parser for lua: ABI version 13 - OK: Loaded parser for markdown: ABI version 13 - OK: Loaded parser for python: ABI version 14 - OK: Loaded parser for rust: ABI version 14 - OK: Loaded parser for tsx: ABI version 14 - OK: Loaded parser for typescript: ABI version 14 - OK: Loaded parser for vim: ABI version 14 - OK: Loaded parser for c: ABI version 13 - OK: Loaded parser for help: ABI version 14 - OK: Loaded parser for lua: ABI version 13 - OK: Loaded parser for vim: ABI version 14 which_key: health#which_key#check ======================================================================== ## WhichKey: checking conflicting keymaps - WARNING: conflicting keymap exists for mode **"n"**, lhs: **"gc"** - INFO: rhs: `(comment_toggle_linewise)` - WARNING: conflicting keymap exists for mode **"n"**, lhs: **"gb"** - INFO: rhs: `(comment_toggle_blockwise)` - WARNING: conflicting keymap exists for mode **"n"**, lhs: **"ys"** - INFO: rhs: `Ysurround` - WARNING: conflicting keymap exists for mode **"n"**, lhs: **"yS"** - INFO: rhs: `YSurround`

MattNguyen commented 1 year ago

Discovered some funkiness with my $PATH. Works now!