Comments (6)
@jam1015 thanks for your quick response, it's ok now @jpalardy
from vim-slime.
cc @jam1015
from vim-slime.
I'm not able to reproduce this using a minimal config:
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup(
{
{
"jpalardy/vim-slime",
init = function()
vim.g.slime_target = "neovim"
vim.g.slime_no_mappings = true
vim.g.slime_input_pid = false
vim.g.slime_suggest_default = true
vim.g.slime_menu_config = false
end
},
}
)
I run nvim --clean -u ./minimal.lua test.coffee
and then :SlimeSendCurrentLine
with no terminal open and just get the Terminal not found.
warning message (I get it twice, this is a bug that will take some refactoring to fix, but that isn't relevant here). The text is successfully sent when I open a terminal.
Also tested on an example python file which also has an _EscapeText_python
function and had no problems.
Maybe try adding your personal config piece by piece to the minimal config to see what causes the errors.
from vim-slime.
Hi @jam1015, I think it's not able to reproduce due to the _EscapeText_{&filetype}
is loaded by a ftplugin
, and thefiletype
is not set if you run nvim --clean -u ./minimal.lua test.coffee
, so the reproduce steps with the minimal config is
nvim --clean -u ./minimal.lua test.coffee
:set ft=coffee
:SlimeSendCurrentLine
and the reason is if the _EscapeText_{&filetype}
return an array with more than one elememts, e.g. _EscapeText_coffee
, the s:SlimeDispatch
function will be executed multiple times. seems like the b:slime_config
is removed by first time and the second and following executation will raise error
from vim-slime.
addressed by #428
from vim-slime.
@jiz4oh let us know if that works for you
from vim-slime.
Related Issues (20)
- Cursor returns to the beginning of a selection when sending code from a script in one tmux pane to the terminal in the other terminal pane. HOT 8
- send to multiple panes HOT 2
- How to send <Ctrl-C> via tmux? HOT 2
- <C-c><Text object> HOT 2
- Option to change bracket paste delimiters HOT 4
- neovim tmux in msys2 in windows HOT 4
- Run vimscript commands interactively HOT 5
- Issue #23 returns HOT 1
- Can SlimeConfig apply to all vim buffers HOT 10
- slime_no_mappings works only if declaredbefore plugin is loaded HOT 1
- Naming convention inconsistency HOT 1
- kitty slime broken in kitty v0.32 HOT 5
- WezTerm Pane Direction ID has trailing whitespace
- Proposal for Changes to `autoload/slime.vim` HOT 6
- Additional 'return' required when sending indented, commented code to ipython HOT 3
- neovim target TermOpen autocmd interactions with other terminal buffers HOT 3
- working with ConqueTerm HOT 1
- Issue to send multiple lines with recent versions of vim-slime HOT 7
- "Undefined variable: g:slime_config_defaults" on opening Python files HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-slime.