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
Currently their is no run configuration for the profiler. Issue #1110 was opened to request it and indeed it would be nice. In the meanwhile, from what I can see the profiler uses the Run config associated with the file. Indeed if I add command line options in the run config and start the profiler, the options are used. But there seem to be a bug in this mechanism. To reproduce:
Create or open a file that parses the command line but accepts an empty one. For example:
Profile it without giving command line options to make sure it's fine.
Create or open another file that also parses the command line. Profile it with command line options that the first file would not accept.
Come back to the first file, and profile it with F10
Expected behaviour: The file should be profiled with the options used during the first profiling (i.e. no option) .
Actual behaviour: It is run with the command line options that were given to the second file. If using my example, the argument parser will tell you that it encountered an unknown argument.
To workaround it, I have to open the Run config, put some command line arguments (even if don't want any), run the file, re-open the config, remove the arguments, and that's only when the file will be run as expected.
The text was updated successfully, but these errors were encountered:
rthouvenin
added a commit
to rthouvenin/spyder
that referenced
this issue
Oct 3, 2015
Currently their is no run configuration for the profiler. Issue #1110 was opened to request it and indeed it would be nice. In the meanwhile, from what I can see the profiler uses the Run config associated with the file. Indeed if I add command line options in the run config and start the profiler, the options are used. But there seem to be a bug in this mechanism. To reproduce:
Create or open a file that parses the command line but accepts an empty one. For example:
Profile it without giving command line options to make sure it's fine.
Create or open another file that also parses the command line. Profile it with command line options that the first file would not accept.
Come back to the first file, and profile it with F10
Expected behaviour: The file should be profiled with the options used during the first profiling (i.e. no option) .
Actual behaviour: It is run with the command line options that were given to the second file. If using my example, the argument parser will tell you that it encountered an unknown argument.
To workaround it, I have to open the Run config, put some command line arguments (even if don't want any), run the file, re-open the config, remove the arguments, and that's only when the file will be run as expected.
The text was updated successfully, but these errors were encountered: