Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running on Mac results freezes #1

Closed
vihanb opened this issue Jun 19, 2016 · 8 comments
Closed

Running on Mac results freezes #1

vihanb opened this issue Jun 19, 2016 · 8 comments
Labels

Comments

@vihanb
Copy link
Collaborator

vihanb commented Jun 19, 2016

System: OS X 10.11.1 (El Capitan)
**

I created an empty file named "test.V" and I ran it through the latest version of the interpreter:

$ python main.py test.V
^CTraceback (most recent call last):
  File "main.py", line 71, in <module>
    main()
  File "main.py", line 60, in main
    v_instance.clean_up()
  File "/Users/vihan/Downloads/V/v.py", line 109, in clean_up
    if self.get_mode() == "i":
  File "/Users/vihan/Downloads/V/v.py", line 77, in get_mode
    return self.nvim_instance.eval("mode(1)")
  File "/usr/local/lib/python2.7/site-packages/neovim/api/nvim.py", line 209, in eval
    return self.request('vim_eval', string, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/neovim/api/nvim.py", line 129, in request
    res = self._session.request(name, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/neovim/msgpack_rpc/session.py", line 91, in request
    v = self._blocking_request(method, args)
  File "/usr/local/lib/python2.7/site-packages/neovim/msgpack_rpc/session.py", line 165, in _blocking_request
    self._enqueue_notification)
  File "/usr/local/lib/python2.7/site-packages/neovim/msgpack_rpc/async_session.py", line 65, in run
    self._msgpack_stream.run(self._on_message)
  File "/usr/local/lib/python2.7/site-packages/neovim/msgpack_rpc/msgpack_stream.py", line 43, in run
    self._event_loop.run(self._on_data)
  File "/usr/local/lib/python2.7/site-packages/neovim/msgpack_rpc/event_loop/base.py", line 134, in run
    raise err
KeyboardInterrupt: Received SIGINT

nothing actually even happened until I send SIGINT (^C)

@vihanb
Copy link
Collaborator Author

vihanb commented Jun 20, 2016

pls fix qwik i wana maek V program.

@DJMcMayhem
Copy link
Owner

This is a different manifestation of a known nvim bug, although I've never seen it in this context before. This might be a big pain to fix since I can't repro on linux or windows, and I don't have a mac. =( What happens if you try it with a non-empty file? For example

iHello

If that does work, try commenting out lines 109-110 of V.py. That will slightly change V's behavior, but should generally work.

@vihanb
Copy link
Collaborator Author

vihanb commented Jun 20, 2016

Also question: are there docs yet? If no how to V

@DJMcMayhem
Copy link
Owner

No, there are not docs yet. That could be it's own issue.

Really, its the same as vim-golf except:

  1. Some vim idioms are shorter (recursive macros, conditionals)
  2. A few normal mode commands are added (Duplicate, single insert)
  3. Regexes are a lot shorter.
  4. I'm in the middle of adding a global stack with some mathy operations. It sorta works, but not fantastically well.

At least for now. Some more things might changed but those are the biggest differences right now.

@DJMcMayhem DJMcMayhem added the bug label Jun 20, 2016
@vihanb
Copy link
Collaborator Author

vihanb commented Jun 20, 2016

okay brb trying the given rpgroam

@vihanb
Copy link
Collaborator Author

vihanb commented Jun 20, 2016

still happens on a non-empty program

@vihanb vihanb changed the title Running empty program results in infinite loop Runninf on Mac results freezes Jun 30, 2016
@DJMcMayhem DJMcMayhem changed the title Runninf on Mac results freezes Running on Mac results freezes Jul 1, 2016
@DJMcMayhem
Copy link
Owner

Apparently, this problem magically fixed itself. \o/ I might revisit this later, but for now I'm closing it.

@vihanb
Copy link
Collaborator Author

vihanb commented Jul 2, 2016

you should have the emoji guy and then the period imo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants