You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Project explorer or File explorer, right click to pop up the context menu, and then select menu "New -> Module...".
The "New module" dialog shows up for the user to input the module file name, say "a.py". After clicking the Save button on the dialog, the module file "a.py" is not saved to the disk. Also, in the Editor, a new tab is opened for the new module with the default name "untitled0.py", rather than "a.py".
If you edit and try to save the new module, the "Save file" dialog pops up and requires to input the module name again.
What is the expected output? What do you see instead?
I would expect that the new module to be saved to the disk, and the Editor shows the new module with the correct name.
Please provide any additional information below
It seems this problem exists for other versions of Spyder as well.
Thanks for the reports.
Please note that the status of Projects in spyder is a bit chaotic, we planned to remake it for 3.0 but it looks like it won't be ready.
…-ide#3186
The original `@Slot()` decorator of `Editor.new(self, fname, ...)` ignores the
`fname` argument which is passed in when creating a new module with a given
name (e.g., through context menu "New -> Module..." in Project explorer).
The correct decorator should be `@Slot(str)`, which can also be ignored
completely since a Qt Signal can connect to a plain Python callable.
…-ide#3186
The original `@Slot()` decorator of `Editor.new(self, fname, ...)` ignores the
`fname` argument which is passed in when creating a new module with a given
name (e.g., through context menu "New -> Module..." in Project explorer).
The correct decorator should be `@Slot(str)`, which can also be ignored
completely since a Qt Signal can connect to a plain Python callable.
Description
What steps will reproduce the problem?
What is the expected output? What do you see instead?
I would expect that the new module to be saved to the disk, and the Editor shows the new module with the correct name.
Please provide any additional information below
It seems this problem exists for other versions of Spyder as well.
Version and main components
Dependencies
The text was updated successfully, but these errors were encountered: