Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback on the package error issue in the operation of creating a new Java class. #352

Open
Kxiaoguai3 opened this issue Dec 18, 2024 · 1 comment
Labels
waiting for response Waiting for response on the queries or work around provided

Comments

@Kxiaoguai3
Copy link

Type: Bug

Steps:
1.Right-click on the folder in the project.
2.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.

Extension version: 23.0.1
VS Code version: Code 1.96.0 (138f619c86f1199955d53b4166bef66ef252935c, 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 (3.81GB free)
Process Argv --crash-reporter-id 8ab3bab7-1a2e-4bd6-81af-d29115d458e1
Screen Reader no
VM 57%
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

@shivam71
Copy link
Member

Thanks @Kxiaoguai3 for sharing this !
We are looking into this issue . Need some more info as we are currently unable to reproduce this .
Just check once if you are also using Language Support for Java(TM) by Red Hat or Extension Pack for Java because this Create a new Java class option is not contributed by our extension .

To create a new java class using our extension we recommend following the steps below :-

  1. Type Java: New File From Template in the Command Palette .
  2. Choose Java
  3. Template Java Class

Let us know if this way works for you .

@Achal1607 Achal1607 added the waiting for response Waiting for response on the queries or work around provided label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for response Waiting for response on the queries or work around provided
Projects
None yet
Development

No branches or pull requests

3 participants