Feedback on the package error issue in the operation of creating a new Java class. #236467
Closed as not planned
Closed as not planned
Description
opened on Dec 18, 2024
Type: Bug
Steps:
- Right-click on the folder in the project.
- Create a new Java class.
Outcome:
An error will be reported in the package statement on the first line.Error message: "The package is incorrect (hints(1): 1:9-1:21)".
However, if you close the compiler and then restart it, the error will no longer be reported.
VS Code version: Code 1.96.0 (138f619, 2024-12-11T02:29:09.626Z)
OS version: Windows_NT x64 10.0.22631
Modes:
System Info
Item | Value |
---|---|
CPUs | 13th Gen Intel(R) Core(TM) i7-13650HX (20 x 2803) |
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 skia_graphite: disabled_off video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
Load (avg) | undefined |
Memory (System) | 15.71GB (5.83GB free) |
Process Argv | --crash-reporter-id 8ab3bab-1a2e-4bd6-81af-d29115d458e1 |
Screen Reader | no |
VM | 57% |
Extensions (19)
Extension | Author (truncated) | Version |
---|---|---|
vscode-mysql-client2 | cwe | 8.0.3 |
Fitten-Code | Fit | 0.10.112 |
vscode-language-pack-zh-hans | MS- | 1.96.2024121109 |
debugpy | ms- | 2024.14.0 |
python | ms- | 2024.22.0 |
vscode-pylance | ms- | 2024.12.1 |
cmake-tools | ms- | 1.19.52 |
cpptools | ms- | 1.23.2 |
cpptools-extension-pack | ms- | 1.3.0 |
oracle-java | Ora | 23.0.1 |
java | red | 1.37.0 |
intellicode-api-usage-examples | Vis | 0.2.9 |
vscodeintellicode | Vis | 1.3.2 |
vscode-gradle | vsc | 3.16.4 |
vscode-java-debug | vsc | 0.58.1 |
vscode-java-dependency | vsc | 0.24.1 |
vscode-java-pack | vsc | 0.29.0 |
vscode-java-test | vsc | 0.43.0 |
vscode-maven | vsc | 0.44.0 |
(1 theme extensions excluded)
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
bdiig495:31013172
a69g1124:31058053
dvdeprecation:31068756
dwnewjupyter:31046869
newcmakeconfigv2:31071590
impr_priority:31102340
nativerepl1:31139838
refactort:31108082
pythonrstrctxt:31112756
wkspc-onlycs-t:31132770
wkspc-ranged-t:31151552
cf971741:31144450
defaultse:31146405
notype1cf:31151524
5fd0e150:31155592
Activity