Once I got the hang of using Project Manager, I've found it really
helpful for, surprisingly enough, managing projects!

I've just started investigating Project Links and am having problems.
I'll try to explain my usage of Project Manager in full as I'm not sure
if that may be contributing to the problem. I apologize in advance for
the length of the post!!

I have my projects in sub-directories of the ~Projects directory e.g.
~Projects\myproject1
~Projects\myproject2

Up until now I've approached the problem of reusing the same code in
different projects by putting useful scripts in a separate utils
directory e.g.
~Projects\utils
I then link to that script from the individual projects. So the "Source"
tab for myproject1 might look like this:
proj1scripta
proj1scriptb
~Projects\utils\utilscripta
~addons\tables\tara\tara

i.e. two "local" scripts, a link to the utilscripta.ijs script in the
utils directory and a link to the Tara addon.

I decided that I wanted to try using the Project>Link Project...
command. I thought that it might let me get rid of the paths to the
scripts in the "Source" tab (replace them with "(l)" suffix according to
the Project Links help page).

My first problem was that Link Project needs to link to a project file
and the scripts in the ~Projects\utils directory weren't part of a
project. So I created the project file ~Projects\utils\utils.ijp , and
added all the scripts in that directory to the project.  Then I opened
myproject1.ijp and tried to link to utils.ijp by browsing to the
utils.ijp file, checking the "Enable Link" checkbox and pressing OK. 

Voila, all the scripts in utils.ijp were added to the Source tab of
myproject1 with the suffix "(l)". Unfortunately all the scripts that
were originally in the Source tab of myproject1 were now missing from
the tab! 

If I "Remove" an individual linked script from the myproject1 Source
tab, that script is also removed from the Source tab of the utils.ijp
project.  In order to pick and choose which utils I want to include in a
project, I take it that I need to create projects for each of my useful
scripts in ~Projects\utils ?

However, if I try to add an additional link to another project (e.g.
~Projects\myproject2\myproject2.ijp) then the scripts in that project
are added to the Source tab, but the scripts from the first link
disappear from the tab.

If I try to add a script from a different directory (e.g.
~addons\tables\tara\tara) I get an alert box pop up with the message
"New linked script must be in link directory". Now when I try and browse
to a new project file (from the Link Project dialog), I get an alert box
pop up titled "wdhandler" with the message:
"error in: link_bprojlink_button 
domain error:wd
r=. wd'mbopen "Select File..."
Even restarting J doesn't seem to cure this.

I suspect that a lot of the problem is that I'm just not understanding
the way in which this is meant to work. Can anyone shine some light on
the situation?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to