microsoft / microsoft/vscode-java-pack
Lots of 'The import cannot be resolved' in Maven project
@testforstephen 已经在做这个了。
开始于 2021年7月20日。
- 主要语言
- TypeScript
- 星标
- 352
- 派生
- 166
- 平均合并
- 17 小时 47 分钟
- 30 天内合并 PR
- 32
描述
Issue Type: Bug
I have a Maven project with some dependencies. Sometimes VSC looses track of these dependencies and can no longer identify the packages in them. Either when opening the workspace or later on. When I open the class that have those imports, VSC is able to resolve all.
Some screenshots to show this behavior. I've just opened VSC with this workspace.



If I "Run" a main method in some class, some problems return or appear new ones. Again, if I open the class, the problems disappear. Below you can see this behavior:


Extension version: 0.17.0
VS Code version: Code 1.58.0 (2d23c42a936db1c7b3b06f918cde29561cc47cd6, 2021-07-08T06:54:55.083Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (8 x 3408) |
| GPU Status | 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on rasterization: enabled skia_renderer: enabled_on video_decode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
| Load (avg) | undefined |
| Memory (System) | 15.42GB (8.45GB free) |
| Process Argv | C:\Users\itamar.iac\Documents\GitHub\action-itemplate-ghpages --crash-reporter-id 48661a35-f878-413d-8254-eb4c3807d58b |
| Screen Reader | no |
| VM | 0% |
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551cf:30311713
vspre833:30321513
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscus158:30321503
pythonvsuse255:30335481
vscorehov:30309549
vscod805:30301674
pythonvspyt200:30331937
vscextlangct:30333562
binariesv615:30325510
vsccppwt:30329788
vstea450:30335276
bridge0708:30335490
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
评估
这个 Issue 还没有评估数据。