I've just upgraded from Spyder 2.x to Spyder 3.x, and noticed it is no longer possible to drag-and-drop files to open them. Not sure if this is intentional functionality or not, but opening files on windows now has become a bit clunky.
Try the following steps to reproduce the problem:
Expected and given output:
Based on the previous version of Spyder, I expect dragging and dropping in a file to open that file in the editor, instead it's copying the file location.
@malliwi88, please work on this one.
Hi @ccordoba12,
It doesn't look like a bug, I try it on Windows 64 bits with the same spyder version (3.0.1) and all is working fine.
Could @Martijndr, create another conda environment and test it once time more?
@dalthviz, could you also test this one in your computer, please?
@Martijndr, how did you install Spyder?
Hi everyone. I tested the drag-and-drop function and everything seems fine (the file with .py extension opens in the editor). My specs are Windows 8 64 bits, Spyder 3.0.1 and python 3.5
Hi everyone. Thanks for picking this up - I can confirm it's happening to me and all my colleagues also using spyder.
I installed spyder (and python) using Anaconda.
My specs are: Windows 10 64-bits, Spyder 3.0.1 and python 3.5
I'll test on my virtual machine to do an extra verification.
@Martijndr, we can't fix this problem unless we can reproduce it :-)
I can't reproduce this issue either, sorry.
I think the problem is your files are not encoded in Unicode and have non-ascii characters on them. Only in that case drag-and-drop fails (although I couldn't reproduce that file names are copied to the Editor).
This is going to be fixed in Spyder 3.1 with PR #3640.
Hi, I think I've encountered the same problem: when I drag my .py
files into spyder, the pointer becomes a "No" symbol. My system is win10 x64, with Anaconda x64 and spyder 3.2.8.
Finally I solved it by right click -> property
-> compatibility
-> uncheck the option Run this program as an administrator
. This is checked by myself before instead of default. So, don't run spyder as an administrator, which may solve the drag-and-drop fails problem.
Check if pythonw.exe or python.exe is run in a privileged administrators security.
When I trun off that function, I Solved same problem.
Most helpful comment
Hi, I think I've encountered the same problem: when I drag my
.py
files into spyder, the pointer becomes a "No" symbol. My system is win10 x64, with Anaconda x64 and spyder 3.2.8.Finally I solved it by right click ->
property
->compatibility
-> uncheck the optionRun this program as an administrator
. This is checked by myself before instead of default. So, don't run spyder as an administrator, which may solve the drag-and-drop fails problem.