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.

Error when renaming a directory with several opened files in it

See original GitHub issue

Problem Description

What steps will reproduce the problem?

renamed a directory with several opened files in it

Traceback

  File "D:\Programme\Anaconda3\lib\site-packages\spyder\plugins\editor.py", line 1364, in close_file_in_all_editorstacks
    index = editorstack.get_index_from_filename(filename)
  File "D:\Programme\Anaconda3\lib\site-packages\spyder\widgets\editor.py", line 1364, in get_index_from_filename
    return filenames.index(filename)
ValueError: 'D:\\Daten\\design\\python\\git\\pyfda\\pyfda\\hdl_generation\\hdl_df2.py' is not in list

Package Versions

  • Spyder version: 3.2.8
  • Python version: 3.5.2
  • Qt version: 5.6.2
  • PyQt5 version: 5.6
  • Operating system: Windows 7

Dependencies

pyflakes >=0.6.0 :  1.3.0 (OK)
pycodestyle >=2.3:  2.3.1 (OK)
pygments >=2.0   :  2.1.3 (OK)
pandas >=0.13.1  :  0.18.1 (OK)
numpy >=1.7      :  1.11.1 (OK)
sphinx >=0.6.6   :  1.3.1 (OK)
rope >=0.9.4     :  0.9.4-1 (OK)
jedi >=0.9.0     :  0.9.0 (OK)
nbconvert >=4.0  :  5.2.1 (OK)
sympy >=0.7.3    :  1.0 (OK)
cython >=0.21    :  0.24.1 (OK)
qtconsole >=4.2.0:  4.2.1 (OK)
IPython >=4.0    :  5.1.0 (OK)
pylint >=0.25    :  1.5.4 (OK)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ccordoba12commented, May 19, 2018

@dalthviz, please work on this one.

0reactions
dalthvizcommented, Jun 5, 2018

I could not reproduce this issue after all, @chipmuenk feel free to reopen it if you can give us more info about how to reproduce the error or you handle to experiment it again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solution to cannot rename file because the folder or a file in it ...
Solution to cannot rename file because the folder or a file in it is open in another program · Step 1: Go to...
Read more >
Unable to Rename a File in Windows 10? 8 Ways to Fix It
Unable to Rename a File in Windows 10? 8 Ways to Fix It ; Navigate to the folder containing the files you can't...
Read more >
Renaming a network folder fails - Windows Client
Close the file or folder and try again." Cause. The folder rename operation fails because thumbcache.dll still has an open handle to the...
Read more >
linux - Rename a directory containing many files - Server Fault
1: First rename /var/www/photos/2012/1007 to /var/www/photos/2012/temppath, then mv /var/www/photos/2012/temppath/1007 -> /var/www/photos/2012/, ...
Read more >
renaming multiple folders (works with errors!) - Stack Overflow
You're looping over all directory names, individually, yet you're trying to rename all items in each loop iteration, due to using just Get- ......
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