Syntax checker error: No such file or directory
I'm trying to syntax check a file:
Y:\AirG\Apps\Storefront\Storefront.pm
This file uses another file elsewhere in the source tree called content.pm
content.pm (indirectly) tries to open and read some text files (at the top-level). It opens them using a relative path from AirG. (e.g. "screenTemplate/customTemplate/orangech/strings/")
The syntax checker breaks in Storefront.pm giving the error
Error - loadMultiHash: Couldn't open dir:screenTemplate/customTemplate/orangech/strings/ [No such file or directory] at Y:/airlibs/AirFile.pm line 422.
So, it can't find the file. It seems the syntax checking is using the full path of Storefront.pm?
Is there a way to configure this so that I can have all scripts run relative to Y:\AirG (i.e. Y:\AirG> perl -c Apps\Storefront\Storefront.pm) <-- This works from the command line.
I tried to select Y:\AirG as my starting path, but that didn't seem to help.
Thanks!
Toron
Answer:
Probably you need to set the search path of optiperl. If you have this file in a project, open the project options from project menu, and from the settings menu enter the search paths in the @INC field, or try pressing the "parse" button.
See here for more information:
http://www.xarka.com/optiperl/help/howoptiperlfindsmodules.htm
19.07.2006. 23:43
This article hasn't been commented yet.
Write a comment