Home > Archive > Mathematica > August 2006 > change of default behavoir for workbench
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
change of default behavoir for workbench
|
|
| Chris Chiasson 2006-08-26, 4:02 am |
| Hi,
If an error is encountered in .MathematicaResources, Wolfram Workbench
executes all *.m files in the project. I think this is horrible
behavior. I didn't loose any data because of it (that's what version
control is for), but I think this is a bad default setting. Also,
could someone please explain the accepted syntax of
..MathematicaResources in detail?
--
http://chris.chiasson.name/
| |
| Bruce Miller 2006-08-29, 4:34 am |
| On Sat, Aug 26, 2006 at 02:03:55AM -0400, Chris Chiasson wrote:
> Hi,
>
> If an error is encountered in .MathematicaResources, Wolfram Workbench
> executes all *.m files in the project. I think this is horrible
> behavior. I didn't loose any data because of it (that's what version
> control is for), but I think this is a bad default setting. Also,
> could someone please explain the accepted syntax of
> .MathematicaResources in detail?
>
> --
> http://chris.chiasson.name/
Mr. Chiasson,
A developer suggests,
======================================
The .MathematicaResources file can (and should) be edited
from the project properties pane. Right click on the project
folder, then choose properties, then you can edit the values
in the Mathematica section of the pane.
I tried to reproduce the user's report by making an error in
that file, and nothing strange happened.
Something that may have tripped him here is that notebooks in a
project are set up to load all sources in the project when you
launch them in run or debug mode. This can be turned off by
right clicking the notebook then unchecking the box for loading
all files on startup.
The accepted syntax for .MathematicaResources is to use the
properties pane as I explained above.
======================================
Bruce Miller
Technical Support
Wolfram Research, Inc.
support@wolfram.com
http://support.wolfram.com/
| |
| Chris Chiasson 2006-08-30, 8:04 am |
| Thanks for getting back to me on this.
If, by "nothing strange" the developer means that Mathematica executed
all the .m files in the project - versus only producing an error and
doing nothing, then I am still pointing out that execuing all the .m
files is a bad default behavior. Mathematica code is capable of doing
all sorts of things involving the file system. I respectfully submit
that when code that manipulates the file system can run inadvertently
because of a syntax error in .MathematicaResources (and because the
code is somewhere inside the project), I think that is a bad design.
It'd be similar to BASH executing all the programs in /usr/bin because
the user typed the wrong command name.
On 8/29/06, Bruce Miller <brucem@wolfram.com> wrote:
> On Sat, Aug 26, 2006 at 02:03:55AM -0400, Chris Chiasson wrote:
>
>
> Mr. Chiasson,
>
> A developer suggests,
> ======================================
> The .MathematicaResources file can (and should) be edited
> from the project properties pane. Right click on the project
> folder, then choose properties, then you can edit the values
> in the Mathematica section of the pane.
>
> I tried to reproduce the user's report by making an error in
> that file, and nothing strange happened.
>
> Something that may have tripped him here is that notebooks in a
> project are set up to load all sources in the project when you
> launch them in run or debug mode. This can be turned off by
> right clicking the notebook then unchecking the box for loading
> all files on startup.
>
> The accepted syntax for .MathematicaResources is to use the
> properties pane as I explained above.
> ======================================
>
> Bruce Miller
> Technical Support
> Wolfram Research, Inc.
> support@wolfram.com
> http://support.wolfram.com/
>
>
>
>
--
http://chris.chiasson.name/
|
|
|
|
|