question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rename variables with let g:jedi#use_tabs_not_buffers = 1 causes the variable in current file to be left unchanged

See original GitHub issue

With let g:jedi#use_tabs_not_buffers = 1, I tried to do <leader>r on a variable name.

It replaces all the occurrences of the variable in all the files and then the file from which the original replace variable was invoked is reset to the last saved state. I mean the variable name is restored to the old variable name in the file from which the rename variable command was invoked.

This happens only with use_tabs_not_buffers set to 1

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
blueyedcommented, Dec 31, 2015

Can you reproduce this using a single file only, or does it involve changing in multiple files?

A step by step test case would be nice to have, then it could be transformed into a real test also.

0reactions
davidhaltercommented, Dec 25, 2019

This has been an issue for a long time in Jedi, the relevant issue is https://github.com/davidhalter/jedi/issues/1047.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PowerRename: Allow 'variables' in rename · Issue #591 - GitHub
Allow 'variables' to be used in renaming. ... I want to keep previous versions of one or more files, so I renamed them...
Read more >
Rename Variables - Stata Guide
will change the name of variable var17 to varx17. ... names (or entire variable names) that will be left unchanged in the renaming...
Read more >
How to rename columns in R - Sharp Sight
This blog post will show you the best way to rename columns in R. There are several different ways to do it, but...
Read more >
Refactor local variable name using Visual Studio Code
Rename is bound to F2 by default. Rename symbol will know to only touch the local roles references in your example. Visual Studio...
Read more >
Dropping, Keeping, and Renaming Variables
If the option is used on an input data set, the variable is dropped, kept, or renamed before it is read into the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found