Git Product home page Git Product logo

Comments (12)

hkupty avatar hkupty commented on May 17, 2024 1

I just found the bug.
master should be fixed by now.

Please test to see if it works for you.

Cheers

from iron.nvim.

hkupty avatar hkupty commented on May 17, 2024

Hi!
That should be fairly easy to implement.. I'll take a look at that later on today.

Cheers,

from iron.nvim.

hkupty avatar hkupty commented on May 17, 2024

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.

jduc avatar jduc commented on May 17, 2024

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.

hkupty avatar hkupty commented on May 17, 2024

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.

hkupty avatar hkupty commented on May 17, 2024

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.

jduc avatar jduc commented on May 17, 2024

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.

hkupty avatar hkupty commented on May 17, 2024

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.

jduc avatar jduc commented on May 17, 2024

:( 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.

jduc avatar jduc commented on May 17, 2024

Everything works like a charm, well done and thank you very much!

from iron.nvim.

hkupty avatar hkupty commented on May 17, 2024

No problem! I'm really glad it works now!

Please keep on opening issues in case you find anything!

from iron.nvim.

10b14224cc avatar 10b14224cc commented on May 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.