redhat-developer / redhat-developer/vscode-java

non-project file, only JDK classes are added to its build path

未关闭
#3,693 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
TypeScript
星标
2.3k
派生
547
平均合并
20 小时 1 分钟
30 天内合并 PR
11

描述

[provide a description of the issue]

Environment
  • Operating System: window 11
  • JDK version: 17
  • Visual Studio Code version: 1.90
  • Java extension version: v0.27.0
Steps To Reproduce
  1. [step 1] clone project
  2. [step 2] set datasource (/redisChat/src/main/resources/application.yml)
    (I was using h2 in this project.)
  3. [step 3] run redisChatApplication.java

[Please attach a sample project reproducing the error]
https://github.com/0gon/hung_chit_chat
[Please attach logs]

Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
        SpringApplication cannot be resolved

        at com.redis.redisChat.demo.RedisChatApplication.main(RedisChatApplication.java:10)
Current Results

Added two modules to practice the msa method. kafkaChat, redischat.
It works fine on the pc that created the project, but I try to clone it and run it on another pc, so I can't get spring boot dependency.

Estimated results

Maybe when I clone it, I don't think I recognize the folder as a module or project, but as a simple folder.

I've looked in many directions. But I'm sorry I'm a beginner, and I don't know any more because I lack clues.

Additional Informations

sp20240707_222836_079

sp20240707_222952_816

贡献指南

打开贡献指南

从这里开始

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

调研方向

从链接的 hung_chit_chat 项目、其模块以及 redisChat/src/main/resources/application.yml 开始;然后在 VS Code 中使用报告的 JDK 和扩展版本运行 RedisChatApplication.java。将克隆项目的行为与报告的未解决 SpringApplication 错误进行比较。当缺失的 Spring Boot 依赖或项目识别问题的原因已记录,并且克隆的应用程序能够解析其依赖项时,即视为完成。

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

评估

技术栈
java, kafka, redis, spring-boot, vscode
领域
build-system, tooling
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
15/100

把新 issue 发到你的邮箱

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