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

jdk17 source code, src.zip which is invisible #1480

Open
kirkzhangtech opened this issue May 14, 2024 · 4 comments
Open

jdk17 source code, src.zip which is invisible #1480

kirkzhangtech opened this issue May 14, 2024 · 4 comments

Comments

@kirkzhangtech
Copy link

[provide a description of the issue]

Environment
  • Operating System:
            .-/+oossssoo+/-.               
        `:+ssssssssssssssssss+:`           ----------
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 20.04.6 LTS on Windows 10 x86_64
    .ossssssssssssssssssdMMMNysssso.       Kernel: 5.15.146.1-microsoft-standard-WSL2
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Uptime: 52 mins
  +ssssssssshmydMMMMMMMNddddyssssssss+     Packages: 1554 (dpkg)
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Shell: bash 5.0.17
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Terminal: Relay(9345)
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   CPU: 12th Gen Intel i5-12450H (12) @ 2.496GHz
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   GPU: 0010:00:00.0 Microsoft Corporation Device 008e
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   Memory: 2114MiB / 7799MiB
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   GPU Driver: Red Hat, Inc. Virtio console [1af4:1043] (rev 01)
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   CPU Usage: 6%
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Disk (/): 48G / 1007G (5%)
  +sssssssssdmydMMMMMMMMddddyssssssss+     Battery1: 99% [Unknown]
   /ssssssssssshdmNNNNmyNMMMMhssssss/      Local IP: 172.29.183.120
    .ossssssssssssssssssdMMMNysssso.       Public IP: 120.239.70.3
      -+sssssssssssssssssyyyssss+-         Users: kirk
        `:+ssssssssssssssssss+:`           Locale: C.UTF-8
            .-/+oossssoo+/-.

  • JDK version:
    openjdk version "17.0.10" 2024-01-16
    OpenJDK Runtime Environment (build 17.0.10+7-Ubuntu-120.04.1)
    OpenJDK 64-Bit Server VM (build 17.0.10+7-Ubuntu-120.04.1, mixed mode, sharing)

  • Visual Studio Code version:
    Version: 1.89.1 (user setup)
    Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685
    Date: 2024-05-07T05:13:33.891Z
    Electron: 28.2.8
    ElectronBuildId: 27744544
    Chromium: 120.0.6099.291
    Node.js: 18.18.2
    V8: 12.0.267.19-electron.0
    OS: Windows_NT x64 10.0.22631

  • Java extension version:
    Name: Extension Pack for Java
    Id: vscjava.vscode-java-pack
    Description: Popular extensions for Java development that provides Java IntelliSense, debugging, testing, Maven/Gradle support, project management and more
    Version: 0.26.0
    Publisher: Microsoft
    VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack

  • Java Debugger extension version:
    Name: Debugger for Java
    Id: vscjava.vscode-java-debug
    Description: A lightweight Java debugger for Visual Studio Code
    Version: 0.57.0
    Publisher: Microsoft
    VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-debug

Steps To Reproduce
  1. download openjdk17 source code
  2. configure src.zip as jre
  3. vscode could not select src.zip which is invisible

image

[attach a sample project reproducing the error]
attach logs

Current Result
Expected Result
Additional Informations
@kirkzhangtech
Copy link
Author

kirkzhangtech commented May 14, 2024

at the same time , go back function also not work
https://github.com/microsoft/vscode-java-debug/assets/46363359/b6deb63a-ff45-405c-8fa9-37cae50c5595

@testforstephen
Copy link
Contributor

Could you pls provide the specific steps to reproduce the issue?

@kirkzhangtech
Copy link
Author

  1. download src.zip by command sudo apt install openjdk-17-source
  2. unzip src.zip as jdk17se folder
  3. run code jdk17se
  4. config classpath on vscode at left java_project option

@kirkzhangtech
Copy link
Author

{
    "java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx2G -Xms100m -Xlog:disable",
    "java.configuration.runtimes": [
     
        {
          "name": "JavaSE-17",
          "path": "/usr/lib/jvm/java-17-openjdk-amd64",
          "sources" : "/usr/lib/jvm/openjdk-17/lib/src.zip",
          "default":  true
         }
      ]
}

i configured this env variables not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants