redhat-developer / redhat-developer/vscode-java

<file> s not on its project's build path

未关闭
#575 0 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

classpath ls-error/crash
主要语言
TypeScript
星标
2.3k
派生
546
平均合并
20 小时 1 分钟
30 天内合并 PR
11

描述

I get the following log output:

tomcat/work/Catalina/localhost/_/org/apache/jsp/tag/web/shared/googleTagManager/dataLayerInc [in platform] is not on its project's build path
Java Model Exception: Java Model Status [tomcat/work/Catalina/localhost/_/org/apache/jsp/tag/web/shared/googleTagManager/dataLayerInc [in platform] is not on its project's build path]
	at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:580)
	at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:253)
	at org.eclipse.jdt.internal.core.Openable.openAncestors(Openable.java:527)
	at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:247)

The tomcat folder should not be on the build path, so this error is not really an error!
Unfortunately the SAP Hybris Eclipse projects are pretty messed up (not fixable by me).

Environment
  • Operating System: macOS 10.12.6 (16G1314)
  • JDK version: java version "1.8.0_144"
  • Visual Studio Code version: 1.24.1 (1.24.1)
  • Java extension version: 0.27.0
Steps To Reproduce

Build the SAP Hybris platform project.

Current Result

Exception is thrown.

Expected Result

Don't throw an exception in that case, because it is not an exception, just ignore the file.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

在 Java 扩展中构建 SAP Hybris 平台项目以复现该问题。跟踪对位于项目构建路径之外的 tomcat/work 路径的 Java Model Exception 处理,然后验证构建完成时不会将此路径报告为异常。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, vscode
领域
developer-experience, tooling
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。