microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.13k stars 29.27k forks source link

MacOS 13.5.2 with Java #193035

Closed MachkrXXIV closed 1 year ago

MachkrXXIV commented 1 year ago

Type: Bug

I am getting the issue "The import {importName} cannot be resolved" for every single import and also this issue too, "The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project".

This error occured whenever I updated my MacOS system to version 13.5.2; I've tried doing the java clean solution, restarting vsCode and Macbook but none of that has worked

VS Code version: Code 1.82.1 (Universal) (6509174151d557a81c9d0b5f8a5a1e9274db5585, 2023-09-08T08:49:32.930Z) OS version: Darwin arm64 22.6.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (8 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|2, 2, 5| |Memory (System)|16.00GB (0.26GB free)| |Process Argv|--crash-reporter-id 4bdc99a4-0aa5-4114-bf7e-a60cd80ff63e| |Screen Reader|no| |VM|0%|
Extensions (43) Extension|Author (truncated)|Version ---|---|--- ng-template|Ang|16.1.8 bracket-pair-colorizer-2|Coe|0.2.4 doxdocgen|csc|1.4.0 vscode-eslint|dba|2.4.2 css-flexbox-cheatsheet|dzh|3.3.3 gitlens|eam|14.3.0 vscode-html-css|ecm|1.13.1 prettier-vscode|esb|10.1.0 auto-rename-tag|for|0.1.10 code-runner|for|0.12.0 live-sass|gle|6.1.1 Angular2|joh|16.0.1 git-graph|mhu|1.30.0 vscode-scss|mrm|0.10.0 vscode-docker|ms-|1.26.0 csharp|ms-|2.1.2 vscode-dotnet-runtime|ms-|1.7.2 isort|ms-|2023.10.1 python|ms-|2023.16.0 vscode-pylance|ms-|2023.9.10 jupyter|ms-|2023.8.1002501831 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 remote-containers|ms-|0.309.0 cmake-tools|ms-|1.15.31 cpptools|ms-|1.17.5 cpptools-extension-pack|ms-|1.3.0 material-icon-theme|PKi|4.30.1 java|red|1.22.0 LiveServer|rit|5.7.9 vsfire|tob|1.4.1 vscode-pets|ton|1.25.0 cmake|twx|0.0.17 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.2.30 vscode-java-debug|vsc|0.54.0 vscode-java-dependency|vsc|0.23.1 vscode-java-pack|vsc|0.25.14 vscode-java-test|vsc|0.39.1 vscode-maven|vsc|0.42.0 quokka-vscode|Wal|1.0.564 markdown-all-in-one|yzh|3.5.1 html-css-class-completion|Zig|1.20.0 (4 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931cf:30280410 vshan820:30294714 vstes263:30335439 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 py29gd2263:30792226 vsclangdc:30486549 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 vscccc:30803845 282f8724:30602487 f6dab269:30613381 vscrp:30673768 showlangstatbar:30737416 962ge761:30835153 a2ce3375:30757347 pythonfmttext:30731395 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 pythonnosmt12:30797651 pythonidxptcf:30805731 pythonnoceb:30805159 dsvsc013:30795093 dsvsc014:30804076 diffeditorv1:30821571 dsvsc015cf:30829746 ```
mjbvz commented 1 year ago

/extJava

vscodenpa commented 1 year ago

It looks like this is caused by the Java extension. Please file the issue to the Java extension repository. Make sure to check their troubleshooting instructions and provide relevant information such as the extension version you're using. See also our issue reporting guidelines for more information.

Happy Coding!

starball5 commented 1 year ago

See https://github.com/redhat-developer/vscode-java/issues/3287.

Related on Stack Overflow: Why is my build path suddenly incomplete for my java project in VS Code?, where I have written up an answer post.