Comments (12)
I just found the bug.
master
should be fixed by now.
Please test to see if it works for you.
Cheers
from iron.nvim.
Hi!
That should be fairly easy to implement.. I'll take a look at that later on today.
Cheers,
from iron.nvim.
This commit (bb62179) actually implements ctr
on visual mode, so this should be closed by now.
Feel free to reopen the issue if something is not working.
Cheers!
from iron.nvim.
Thanks a lot. I gave it a try but I encountered a small bug with multilines ipython and ptipython repl: when sending lines through visual, it is sending them multiple times depending on the number of lines sent . Here is an example code:
print("Hello")
print("World")
Sending these two lines via ctr}
for instance prints
Hello
World
on two lines as expected. Now sending via v}ctr
prints:
Hello
World
Hello
World
Now adding print("!")
as a third line in the code and sending via visual mode prints out:
Hello
World
!
Hello
World
!
Hello
World
!
Are you getting the same behavior ? Thanks again for being so responsive, really appreciate it.
from iron.nvim.
Ugh.. I tested this commit from another branch I'm working, testing
and it did work fine. It seems that, since I've changed a bit how the logic works, backporting was not enough... I'll try to fix that.
Cheers
from iron.nvim.
I've merged the testing
branch, which enhanced REPL management in several ways. It seems to solve this problem as well..
If the problem persists, don't refrain from reopening this issue!
Cheers!
from iron.nvim.
Thanks ! Unfortunately, it seems I'm unable update to the newer merge. Seems to be related to the zen submodule. Here is the error I get after the UpdateRemotePlugins
command:
Encountered ModuleNotFoundError loading plugin at /home/user/.nvim/plugged/iron.nvim/rplugin/python3/iron: No module named 'zen'
Traceback (most recent call last):
File "/home/user/.local/lib/python3.6/site-packages/neovim/plugin/host.py", line 131, in _load
module = imp.load_module(name, file, pathname, descr)
File "/usr/lib/python3.6/imp.py", line 244, in load_module
return load_package(name, filename)
File "/usr/lib/python3.6/imp.py", line 216, in load_package
return _load(spec)
File "<frozen importlib._bootstrap>", line 675, in _load
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
ModuleNotFoundError: No module named 'zen'
from iron.nvim.
I'm sorry this has broken the update. It seems that it has not created the submodule.
Apparently, removing and installing again does the right thing (for me, using vim-plug
). If it still does not create the submodule, pleas run a git submodule init
and git submodule sync
on your iron.nvim
. It should suffice.
If it still does not create the submodule, we're in serious trouble.
Cheers
from iron.nvim.
:( outch, serious trouble it is... I'm also using vim-plug, I tried removing the iron.vim directory in the plugged
folder and then :PlugInstall
- still the same error. I also tried syncing the submodule as you suggested, still same error.
In the iron.vim directory, it seems the zen pluggin is there, pointing to ../../../deps/zen.nvim/src
which contains the ui.py . Am I missing something, like a python lib ? Or could this be related to python3.6 ? Any other ideas ? Thanks a lot.
from iron.nvim.
Everything works like a charm, well done and thank you very much!
from iron.nvim.
No problem! I'm really glad it works now!
Please keep on opening issues in case you find anything!
from iron.nvim.
For those coming from Google, the new way to send visual selection to the REPL is to use core.visual_send.
Here is an example mapping:
vim.keymap.set(
"v",
"<leader>il",
":lua require('iron.core').visual_send()<CR><Esc>"
)
from iron.nvim.
Related Issues (20)
- Unable to send a cell to repl HOT 5
- [Feature Request] Send a valid Treesitter node to REPL HOT 2
- Code not sent to R REPL if REPL doesn't already exist
- Send multiline code chunk HOT 4
- How to send a block of code? HOT 5
- bug(python): python REPL detection is broken HOT 5
- On start error, the REPL window closes immediately so one can't read the error
- config broken? HOT 2
- basic config leads to python unexpected indent HOT 7
- Allow 'cwd' option on repl_definition? Potential PR HOT 1
- repl on the bottom makes status window disappear HOT 1
- code is sent to the ipython console but not run HOT 16
- iron.core not found with LazyVim HOT 1
- Why am I not able to resize the REPL window/split? HOT 2
- How to detach from the IronFocus window HOT 4
- Connect to python kernel and virtual environment
- Abandoned? HOT 2
- Highlights randomly appears and disappears
- How to resize REPL window HOT 1
- Fix broken tests
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 iron.nvim.