Tmux, Nvim or Windows Terminal puts some lines on the wrong pane - tmux

I've been using nVim and tmux for a while now, but recently I've been having some problems. I seem to be getting some weird artifacts across my IDE which usually involve misplaced or duplicated lines.
Below, you can see an example of the problem:
On the left is some code of mine, and on the right is a Jest testing console. The vertical split is made with tmux and as you can see, on lines 2, 4, 15, 20, 22, 27, 29, 37 and lower, the content from the right pane is displaying on the left pane.
This is one example, but I also have been having problems with duplication of code etc.
Note, none of this code actually exists and I cannot select it. Sometimes I can get it to go away by going into VISUAL BLOCK mode and selecting the messed up lines. This doesn't always work though.
Has anybody else had this issue? I can't tell if the problem lies with tmux, nvim or windows terminal.
tmux version: 3.0a
NVIM version: 0.7.0-dev
Windows Terminal version: 1.13.11431.0
Hope somebody can help me!
Please and thank you in advance ;)

I'm pretty sure this is tracked by
Rendering errors in tmux split panes:
microsoft/terminal#6987
Sorry I don't have a solution for that one yet 😕

Related

Jupyter Notebook doing funky stuff when opening

I've just opened Jupyter Notebook like I always do, and it began doing some strange stuff, it's impossible to use. I've put up a 40-second video showing what's going on: https://youtu.be/8yDMT82Cju8
Basically upon creating a new notebook, the first cell appears really big (like if someone just pressed enter many times), and then it begins jumping further down. Any action, like typing, clicking, just adds more "lines" to the cell. Some weird xxxxxxxxxx characters show up and disappear randomly. All in all, it's unusable. No, there's no key stuck anywhere in case you thought about that. I've restarted the PC many times as well, to no success.
Funny thing is that this was working just yesterday and no software/hardware was modified in between.
I´ve just finished re-installing Anaconda and the problem has gone.
I'm gonna leave this here in case someone comes across the same issue.

TMUX added one more window which I cannot close

I am new to TMUX and tried to ask Google correctly but didn't find the answer.
I've been wording on one of the panes which was separated into two windows. One day, I opened the tmux and found out that the third window suddenly appeared.
And I have no idea how to close it. I've tried ctrl+b + right arrow. But the cursor didn't move there. So I assume it's not a regular window
Could you advise, how should I close it?
Thanks

Rstudio does not stop at breakpoint

A few weeks ago I worked with breakpoints in Rstudio. It worked as I expected: stopping at breakpoints.
However, now I need to use it again, I can't get it to work; more specifically: when I set a breakpoint in Rstudio a red dot is appearing next to the code line (see screenshot), but when running the code, it does not stop at the break point.
I created a simple code example for this post to show what I want: run a for loop line for line.
Perhaps I am just not understanding something :) So, could anyone help me with getting these usefull debugging tools in Rstudio to work?
Thanks in advance.
Breakpoints also do not work for me on shiny app developed in RStudio, I am using browser() instead of breakpoints, and it works.
see this
M

Ctrl+P and Ctrl+N for navigation in jupyter notebooks

I'm used to Emacs navigation, in particular Ctrl+P, N, F, and B, but I'm also used to Jupyter notebooks by now. The general question is: how to enable those shortcuts in a notebook?
What tickles me is the fact that on Mac those keybindings are already in place in a standard Anaconda IPython. But it's perfectly understandable since most system and browser shortcuts are bound to Cmd instead of Ctrl.
Since I spend a lot of time in Ubuntu, I wanted to reproduce the same behaviour here. It soon became apparent that most browsers hold some of the keybindings very dearly, such as Ctrl+P for print or Ctrl+N for New window. Turning these off is a huge matter in itself, so I decided to use another browser solely for the Jupyter Notebook, and Vivaldi seems like a nice choice since all shortcuts are easily customizable there.
I believed that with browser shortcuts being turned off, the IPython syntax would kick in, but none such thing has happened. Next I tried one of many manuals on the Jupyter notebook shortcuts customization (such as this one http://jupyter-notebook.readthedocs.io/en/latest/examples/Notebook/Custom%20Keyboard%20Shortcuts.html) to bind the 4 shortcuts I need. It works only up to some extent and only in the Jupyter inline magic:
%%javascript
Jupyter.keyboard_manager.command_shortcuts.add_shortcut('ctrl-p', 'jupyter-notebook:move-cursor-up')
What it does is that occasionally now the cursor in command mode does indeed move up when I press ctrl-p, but this behaviour is unstable. Moreover, after it moves, it immediately enters the edit mode in the cell above, which isn't happening if I simply press 'Up' arrow. As for the same trick for the edit mode:
%%javascript
Jupyter.keyboard_manager.edit_shortcuts.add_shortcut('ctrl-p', 'jupyter-notebook:move-cursor-up')
alas, it doesn't work at all.
Forgive me for the prolonged intro. The questions I have now are:
What is wrong with the key bindings I use in inline mode? Is it a silly mistake I made or a Jupyter glitch?
When I try to use these byndings through my custom.js file, they do not work. However, the file itself is recognized, e.g. the alert() commands work perfectly fine.
I've stumbled a few times on a emacs-bindings for the CodeMirror, however, as far as I understood, they are mostly used for copy-paste related matters rather than navigation, is it true? Would it help to use this set of bindings instead of pursuing the path with custom.js?
Thank you.
UPD
Installing emacs.js from CodeMirror and adding this code actually solved my problem. Just had to make sure that all conflicting browser keybindings were turned off.
require(["codemirror/keymap/emacs", "notebook/js/cell", "base/js/namespace"],
function(emacs_keymap, cell, IPython) {
cell.Cell.options_default.cm_config.keyMap = 'emacs';
var cells = IPython.notebook.get_cells();
for(var c=0; c< cells.length ; c++){
cells[c].code_mirror.setOption('keyMap', 'emacs');
}
}
);

Xcode 4 project opens, then hides folders

I just upgraded to Xcode 4, and I'm trying to open a project I created with the previous Xcode, but when I open it, after about 1 second, it hides all the folders and inline projects in the project navigator, and only shows the "resources" folder. Strange behavior. I can compile and run, but I can't edit my files from xcode any more.
Anyone else see this?
#haider I had the same issue with XCode 4.3, tried the above recipe, but it did not work for me. Here is the correct answer to prevent this from happening and get it to work right:
There's a tiny row of icons to the left of the search box under the left hand nav. The first of these is a '+' (to add a file). The icons following the add-a-file icon are actually filters that can be toggled on and off. The first of these looks like a clock, and is a filter to show only-recently-modified files, the second to show files-with-source-control status and so on. I must have accidentally picked the first icon after the '+' (show only recently-modified files) and therefore had the problem. The XCode UI preserves that pick even when you close the project so closing and re-opening does not alleviate the situation.
Don't know why it fixed, but it did. After closing down xcode and restarting several times, it ended up working ok again. Strange

Resources