-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Error message when trying to save a file #1094
Comments
From ccordoba12 on 2012-07-04T07:38:58Z I haven't seen this error, but it seems quite serious. Several questions:
Summary: Error message when trying to save a file |
From ccordoba12 on 2012-07-04T07:39:22Z issue #1098 has been merged into this issue. |
From ageffe...@iris.cat on 2012-07-04T08:53:55Z Hi, first I have to tell that I protected the
Let me know if you need any more details, I will try to collect more information for the above questions. |
From ageffe...@iris.cat on 2012-07-04T09:11:29Z And also changed this line: editor.go_to_line(clines[index]) (Around line 2000) |
From ccordoba12 on 2012-07-06T08:27:34Z issue #1098 has been merged into this issue. |
From pierre.raybaut on 2012-07-28T00:35:07Z Handling the error by placing the code block in a try...except statement is not the right approach here as the signal is triggering actions to be performed when saving files. Try moving tabs in the Console plugin, you should have the same kind of error if I understand it correctly. Then using one of the attached patchs should work. Attachment: patch_for_v2.1.10.diff patch_for_v2.2.0dev.diff |
From pi...@synchrotron-soleil.fr on 2012-07-31T13:21:10Z Hello pierre, I try to apply the patch for v2.1.10.diff but I can not apply it cleanly with patch -p1 < blabla.diff is seems that the patch is for a windows machine and I am working on a unix one :) |
From pi...@synchrotron-soleil.fr on 2012-07-31T13:24:05Z picca@mordor:~/Debian/main/spyder/spyder$ file spyderlib/plugins/editor.py |
From pi...@synchrotron-soleil.fr on 2012-07-31T13:47:45Z ok, here a patch which works on top of 2.1.10 in Debian. Attachment: 0003-from-upstream-fix-1098.patch |
From pierre.raybaut on 2012-08-01T00:17:44Z Ok, so apart from the Windows/Linux compatibility issue, I assume that the patch is working? (it's actually fixing this bug?) Status: Started |
From ageffe...@iris.cat on 2012-08-01T01:25:41Z hi Pierre, so now I applied the patch. It wasn't easy, since I wasn't sure which version to patch against. And also wasn't sure which patch file to use. I think I was using the 2.2.0dev version, originally but downloaded the latest widgets/editor.py from mercurial. The 0003-from-upstream-fix-1098.patch worked on plugins/editor.py and on widgets/tabs.py, but not on widgets/editor.py. (not the 2.2.0dev and not the mercurial version) Then I tried the patch_for_v2.2.0dev.diff which worked on widgets/editor.py but not on the other two. I will try now and see how it works. But since my spyder is now getting to be a mess of many different versions, there is a pretty good chance that it won't. Regarding moving tabs: |
From ageffe...@iris.cat on 2012-08-01T02:42:45Z It seems something is really messed up with my installation. File "/usr/local/lib/python2.7/dist-packages/spyderlib/widgets/editor.py", line 475, in breakpoints_changed It seems I have to reinstall |
From pierre.raybaut on 2012-08-01T03:08:58Z The patches that I've attached earlier should be working with the latest mercurial revisions of bothe v21 and default branches. |
From pierre.raybaut on 2012-09-09T09:58:07Z This issue was updated by revision 6260313cb49b . Status: Fixed |
From ageffe...@iris.cat on 2012-06-18T08:59:47Z
Spyder Version: 2.2.0dev
Python Version: 2.7.3
Qt Version: 4.8.1, PyQt4 (API v1) 4.9.1 on Linux
What steps will reproduce the problem?
1, Saving a file in editor.
When I run spyder --reset, then it is ok to save about 2 or 3 files, but after that it produces the error every time I try to save a file. At least for most files. What is the expected output? What do you see instead? I expect the file to be saved without a problem.
Instead I see messages like this:
"Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/spyderlib/plugins/editor.py", line 1586, in save
return editorstack.save(index=index, force=force)
File "/usr/local/lib/python2.7/dist-packages/spyderlib/widgets/editor.py", line 1312, in save
self.emit(SIGNAL('file_saved(long,long)'), id(self), index)
TypeError: file_saved(long,long).emit(): argument 1 has unexpected type 'long'"
The file is, however, in most cases saved, but spyder does not recognize it is saved.
Please provide any additional information below
.
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1094
The text was updated successfully, but these errors were encountered: