Project

General

Profile

Bug #874

#include in fhicl files does not handle full path

Added by Marc Paterno almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Infrastructure
Target version:
Start date:
01/28/2011
Due date:
% Done:

100%

Estimated time:
Occurs In:
Scope:
Internal
Experiment:
-
SSI Package:
Duration:

Description

Hi Guys

we have another bug with loading of the fhicl configuration files. Below a user put the entire path in the #include statement and got back a "Can't find file" error. I would have thought that would be a reasonable thing to do - ie really specify completely where to find a file.

On a related note, we are also seeing that the searching through the $FHICL_FILE_PATH isn't working correctly either. I have my $FHICL_FILE_PATH set to

some/path:some/other/path

where each of those directories contains a job directory that holds my fcl files. The first directory holds a subset of the files in the second. I would expect a #include statement set to

#include "job/somefile.fcl"

to search through first som/path and then through some/other/path looking for the requested file. It appears to only work however, if all the files are in the job directory in the directory from which I run the executable.

Is this maybe already one of the fixes in the new set of externals that Lynn made up for me today?

thanks

Brian

Begin forwarded message:

From: Patricia Vahle <>
Date: January 28, 2011 9:30:13 AM CST
To: Brian Rebel <>
Subject: fcl error

[novagpvm02] vahle:/nova/app/users/vahle/arttest>ART_DEBUG_CONFIG= nova -c job/runplaneclusters.fcl -s /nova/data/art/genie_gen.root
terminate called after throwing an instance of 'cet::exception'
 what():  ---- search_path BEGIN
Can't find file "/grid/fermiapp/nova/novaart/novasoft/releases/development/job/services.fcl" 
---- search_path END

but

ls /grid/fermiapp/nova/novaart/novasoft/releases/development/job/services.fcl
/grid/fermiapp/nova/novaart/novasoft/releases/development/job/services.fcl

finds the file


Related issues

Related to cetlib - Bug #876: Issue with include functionClosed01/28/2011

History

#1 Updated by Christopher Green almost 10 years ago

  • Status changed from New to Resolved
  • Assignee changed from Marc Paterno to Walter E Brown

Fixed.

#2 Updated by Marc Paterno almost 10 years ago

  • Status changed from Resolved to Assigned

#3 Updated by Christopher Green almost 10 years ago

  • Status changed from Assigned to Resolved

This bug was fixed first time, but a different misbehavior (#876) was categorized erroneously as being a recurrence of this bug.

#4 Updated by Christopher Green almost 10 years ago

  • Category set to Infrastructure
  • Target version set to 0.4.0
  • % Done changed from 0 to 100

#5 Updated by Christopher Green almost 10 years ago

  • Status changed from Resolved to Reviewed

#6 Updated by Christopher Green almost 10 years ago

  • Status changed from Reviewed to Closed

Also available in: Atom PDF