Tue 07 Jan 2014 03:40:42 PM UTC, original submission:
A typical error for Octave novices is to create a script with spaces in its name. It would be nice if the GUI could warn about such errors.
Let us consider a simple scenario.
1) Create a new script from the GUI (File > New > Script)
2) Put some stuff in it and save as "to to.m"
3) Run the script from the menu in the editor
After stage 2), nothing happens. A warning dialog would be useful here, indicating that spaces in script names should be avoided (and perhaps that this script can be run using run ("to to.m") anyway, if the user insists on having spaces in its filename).
After stage 3), the editor itself doesn't tell me anything, and I can see the following message in the command window:
error: 'to' undefined near line 1 column 1
It would clearer if, instead, an error dialog could pop up and tell me that the script cannot be run because it has a space in its filename. Alternatively, the editor could use run ("to to.m"), in which case there would be no error.
|