My doctor doesnt ask that many questions, but then maybe Mathematica is more complicated than I am. But Im happy to try to answer them and they are instructive to me.
Hello and v show up in blue. When I click on them, the panel displays Globalv and Global
hello. I turned on the computer this morning and running the test program was my first act in Mathematica. Oddly, there are a couple of other symbols listed that appear to be from some previous program. This is recurrent. One of them appears to be black, though it is hard to be sure.
I added the ` prefix to Private in Development.m, quit MMA, restarted and inserted two instances of $ContextPath in the following order:
$ContextPath
<< Development`
$ContextPath
The output was:
{"TemplatingLoader", "PacletManager
", "System", "Global
"}
{"TemplatingLoader", "PacletManager
", "System", "Global
"}
Other output was unchanged.
FindFile["Development`"] returns
/Users/username/Library/Mathematica/Applications/Development.m
Development.m was installed with File > Install
.
You wrote: Does the package work if you put the notebook and the package into the same directory, SetDirectory to that place, and then use Get["Development.m"]? (i.e. load it with its file name rather than the context)
I made a copy of Development.m from the above Applications folder and pasted it into my working folder with test_package.nb. I added a call to FileNames[]. The behavior in a clean kernel was exactly as before. A call to FileNames[] showed the files in this working folder.
I have had MMA 10.0.0.0 for several years, I think, and have not had occasion to reinstall that I can remember. I dont remember if I had the same problem with packages prior to MMA 10. It is installed on OS 10.9.5. I have never tried third party packages and I havent had occasion to load any built-in packages. Im definitely not what one would call a Mathematica expert.
You asked: why do you set your directory to the package directory?
Because I had tried appending the file path to $Path. The append was successful, but the result was the same. I wanted to be absolutely sure that the package was found. It seems the package is being found, but there is some problem in loading the contents.
You asked: Is there any chance that there's something weird in your
$UserBaseDirectory/Kernel/init.m file? Does $Path look okay?
$Path
{"/Applications/Mathematica.app/SystemFiles/Links", \
"/Users/username/Library/Mathematica/Kernel", \
"/Users/username/Library/Mathematica/Autoload", \
"/Users/username/Library/Mathematica/Applications", \
"/Library/Mathematica/Kernel", "/Library/Mathematica/Autoload", \
"/Library/Mathematica/Applications", ".", "/Users/username", \
"/Applications/Mathematica.app/AddOns/Packages", \
"/Applications/Mathematica.app/AddOns/LegacyPackages", \
"/Applications/Mathematica.app/SystemFiles/Autoload", \
"/Applications/Mathematica.app/AddOns/Autoload", \
"/Applications/Mathematica.app/AddOns/Applications", \
"/Applications/Mathematica.app/AddOns/ExtraPackages", \
"/Applications/Mathematica.app/SystemFiles/Kernel/Packages", \
"/Applications/Mathematica.app/Documentation/English/System", \
"/Applications/Mathematica.app/SystemFiles/Data/ICC"}
When I attempt to display init.m with more in the Terminal program, I see only:
(** User Mathematica initialization file **)
Thanks for the interest. Now on to the next reply from David.