User config template storage doesn't include ROOT Builder!
Brought to you by:
gordonwatts
When, at least on XP, one tries to save the configs to the disk, the path looks to be "C:\Documents and Settings\BELLENOT\Templates\2003\vc_project_template.cvproj
-> Why isn't ROOT Builder in that path?
-> What was it doing looking there for the file??
Logged In: YES
user_id=816712
Originator: YES
This was looking for a project template -- so I suspect this is the same bug as the failed "are we running in dev mode" bug from above. So I'll call this closed. I hope...
Logged In: YES
user_id=816712
Originator: YES
I'd made some dumb mistake, and updated that. But now things are still bad (but better):
Hi Gordon,
Thanks. Here are the results:
The main dialog was fine this time (with 'Release' as default template), but
when clicking 'Generate Project', the error message box shows-up again (see
attached capture) with the 'Details' text being:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IO.DirectoryNotFoundException: Could not find a part of the path
'C:\Documents and
Settings\BELLENOT\Templates\2003\vc_project_template.vcproj'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize,
FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean
bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean
detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path)
at SAInterfaceLibrary.ProjectCreator.Create()
at ROOTBuildProjectCreatorSA.BuildProjectOptions.GenerateIDEFiles()
at ROOTBuildProjectCreatorSA.BuildProjectOptions.button1_Click(Object
sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase:
file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ROOTBuildProjectCreatorSA
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase:
file:///C:/Program%20Files/ROOT%20Builder/Stand%20Along%20Build%20GUI/Build%
20ROOT%20Project.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase:
file:///C:/WINNT/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c56193
4e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase:
file:///C:/WINNT/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.d
ll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase:
file:///C:/WINNT/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/
System.Drawing.dll
----------------------------------------
RootBuilderConfigControls
Assembly Version: 1.0.2882.5691
Win32 Version: 1.0.0.0
CodeBase:
file:///C:/Program%20Files/ROOT%20Builder/Stand%20Along%20Build%20GUI/RootBu
ilderConfigControls.DLL
----------------------------------------
SAInterfaceLibrary
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase:
file:///C:/Program%20Files/ROOT%20Builder/Stand%20Along%20Build%20GUI/SAInte
rfaceLibrary.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase:
file:///C:/WINNT/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/Syst
em.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase:
file:///C:/WINNT/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d
50a3a/System.Configuration.dll
----------------------------------------
azbw5eif
Assembly Version: 1.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase:
file:///C:/WINNT/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.d
ll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Cheers,
Bertrand.
-----Original Message-----
From: Gordon Watts [mailto:gwatts@phys.washington.edu]
Sent: Thursday, November 22, 2007 2:12 PM
To: Bertrand Bellenot
Subject: RE: ROOT Builder (cont)
Try http://d0.phys.washington.edu/~gwatts/ROOTBuilder-v1.21.zip
Let me know if it works.
Cheers,
Gordon.
> -----Original Message-----
> From: Bertrand Bellenot [mailto:Bertrand.Bellenot@cern.ch]
> Sent: Thursday, November 22, 2007 8:40 AM
> To: Gordon Watts
> Subject: RE: ROOT Builder (cont)
>
> Hi Gordon,
>
> The attachment has been quarantined...
> Could you put it somewhere on the web, or afs, or anywher I can pick
> it?
>
> Cheers,
> Bertrand.
>
> -----Original Message-----
> From: Gordon Watts
> Sent: Thursday, November 22, 2007 3:24 AM
> To: Bertrand Bellenot; dennis neal
> Subject: RE: ROOT Builder (cont)
>
> Hi,
> Both of you had the same bug: my detection failed of a release setup
> vs a development setup - basically, where does the code go look for
> the templates. I can't reproduce this bug, but I was able to imagine
> one
or
> two
> ways it might happen. I've included here a new version - which I think
> fixes all the problems you two reported yesterday.
>
> Could you do me a favor and see if it works? Bertrand, you'll have
to
> delete those template files you copied over to make a real test (or
> rename the folder in case this fails).
>
> If this doesn't work I'll have to install XP on a virtual machine I
> guess, and hope I can reproduce this. Short of that, I'll have to add
> logging capabilities and then send this out to you again.
>
> Cheers,
> Gordon.
>
> > -----Original Message-----
> > From: Bertrand Bellenot [mailto:Bertrand.Bellenot@cern.ch]
> > Sent: Wednesday, November 21, 2007 11:58 AM
> > To: Gordon Watts; Axel Naumann
> > Subject: ROOT Builder (cont)
> >
> > Hi again,
> >
> > I also had to change line endings of 'setup_config_Debug Full.sh'
> > (my config script) from DOS(CR/LF) to unix(LF only)
> >
> > Cheers,
> > Bertrand.
Logged In: YES
user_id=816712
Originator: YES
Finally -- thanks for everyone's help. I think the bug is there is a "Templates" directory in C:\documents and settings\<username>, and that fools the programs detection logic (detecting if this is a development build or a production build). Changed to look for a specific file in that directory (a bat script). I'll close this once the final build is verified.