【问题标题】:Perl EPIC on Eclipse: "\Perl\Directory is not a valid location for linked resources"Eclipse 上的 Perl EPIC:“\Perl\Directory 不是链接资源的有效位置”
【发布时间】:2012-05-27 23:58:17
【问题描述】:

我正在尝试在 Eclipse(在 Windows 7 上)的 EPIC 下调试 Perl 脚本。在调试器中单步执行时,当它到达由于子程序调用而必须跳转到另一个包(称为“Utilities.pm”)的地方时,它会给出以下一系列 Eclipse 错误:

'E:\Perl' is not a valid location for linked resources.
EPIC cannot access files located in folders on the path to the workspace folder, nor within the workspace folder itself.
An unexpected exception occurred while creating a link to E:/Perl/Utilities.pm

我知道这一点: eclipse: Not a valid location for linked resources 和这个: Eclipse gives error "... is not a valid location for linked resources." 但我无法从他们那里推断出如何解决我的案子。

以管理员身份运行没有帮助。

TIA

海伦

Eclipse 版本 3.7.1 构建 M20110909-1335,EPIC 版本 0.6.44,在 Windows 7 上运行的 Active Perl 5.14.2。

注意:交叉发布于:http://perlmonks.org/?node_id=972408

【问题讨论】:

  • 您的工作区和项目目录是什么样的?我的意思是他们的路径是什么。
  • Eclipse 工作区文件夹是:“E:\Perl\Eclipse 工作区”。项目文件夹是:“E:\Perl\Eclipse workspace\FBProject”。但是在“E:\Perl\Eclipse workspace\FBProject”下,我看到了另一个文件夹:E:\Perl\Eclipse workspace\FBproject\Eclipse 工作区。如何确保路径设置正确?
  • 我去的时候,在Eclipse菜单中:“FBProject -> Properties -> Linked Resources”,它显示:PARENT_LOC: "E:\Perl\Eclipse workspace"; PROJECT_LOC: "E:\Perl\Eclipse 工作区\FBProject"; WORKSPACE_LOC: "E:\Perl\Eclipse 工作区"; Perl 包含路径:E:"\Perl"

标签: eclipse perl debugging epic


【解决方案1】:

显然工作区 - 项目 - 链接资源文件结构存在一些不一致。我已经删除了整个项目,从头开始重新启动,然后这个错误就没有再出现了。

但是,程序因另一个 Eclispe/EPIC 错误而挂起,我将很快单独发布。

这里有以下问题:

Perl debuuger: on a run-time error, the debugger terminates with a cryptic message instead of "catching" the error

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-20
    • 1970-01-01
    相关资源
    最近更新 更多