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

Debugger not working on standalone java files #1097

Closed
yalsabah opened this issue Dec 9, 2021 · 2 comments
Closed

Debugger not working on standalone java files #1097

yalsabah opened this issue Dec 9, 2021 · 2 comments

Comments

@yalsabah
Copy link

yalsabah commented Dec 9, 2021

We have written the n
Issue Type: Performance Issue

This issue started after I downloaded VScode on my PC. I made sure to install the jdk file and the java code package. I press the run button in the top right corner but nothing happens. I've looked everywhere for a solution but none are to be found. Please help me figure out the problem here!

Extension version: 0.37.0
VS Code version: Code 1.63.0 (7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e, 2021-12-07T06:26:56.179Z)
OS version: Windows_NT x64 10.0.22000
Restricted Mode: No

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-11700KF @ 3.60GHz (16 x 3600)
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.85GB (9.12GB free)
Process Argv --crash-reporter-id bd062453-1371-4975-8c2f-e7aeadf02842
Screen Reader no
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
    0	   108	 18060	code main
    0	   123	  3600	   gpu-process
    0	   123	  6332	   extensionHost
    0	    94	 13680	     "C:\Users\yousi\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node "c:\Users\yousi\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=6332
    0	   160	 21092	     "C:\Program Files\Java\jdk-17.0.1\bin\java" --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Djava.import.generatesMetadataFilesAtProjectRoot=false -Dfile.encoding=utf8 -DwatchParentProcess=false -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -jar c:\Users\yousi\.vscode\extensions\redhat.java-1.1.0\server\plugins\org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar -configuration c:\Users\yousi\AppData\Roaming\Code\User\globalStorage\redhat.java\1.1.0\config_ss_win -data C:\Users\yousi\AppData\Local\Temp\vscodesws_2d7a1\ss_ws
    0	    11	   180	       console-window-host (Windows internal process)
    0	    94	  6936	   shared-process
    0	    90	 12428	     ptyHost
    0	     8	  3612	       console-window-host (Windows internal process)
    0	     8	  8472	       console-window-host (Windows internal process)
    0	    66	 10864	       C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    0	    70	 17776	       C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command "Import-Module 'c:\Users\yousi\.vscode\extensions\ms-vscode.powershell-2021.10.2\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2021.10.2' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\yousi\.vscode\extensions\ms-vscode.powershell-2021.10.2\modules' -EnableConsoleRepl -StartupBanner '=====> PowerShell Integrated Console v2021.10.2 <=====
' -LogLevel 'Normal' -LogPath 'c:\Users\yousi\.vscode\extensions\ms-vscode.powershell-2021.10.2\logs\1638572252-e1c7537a-1822-4bd3-8492-49bb994a20981638572216999\EditorServices.log' -SessionDetailsPath 'c:\Users\yousi\.vscode\extensions\ms-vscode.powershell-2021.10.2\sessions\PSES-VSCode-5016-326979' -FeatureFlags @() "
    0	   193	  8612	   window (Assignment5.java - Visual Studio Code)
    0	    42	  9668	   utility-network-service
    0	    26	 16096	   crashpad-handler
    0	    89	 17704	   issue-reporter
Workspace Info
;
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vstes627cf:30244335
pythontb:30283811
pythonvspyt551cf:30345471
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30384385
pythondataviewer:30285071
vscod805cf:30301675
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
pythonrunftest32:30373476
pythonf5test824:30373475
javagetstartedt:30391933
pythonvspyt187:30373474
vsaa593:30376534
pythonvs932:30408636
vscop804cf:30404767
vs360cf:30404996
vsrem710:30405998
vscexrecpromp3c:30407761

eeded data into your clipboard because it was too large to send. Please paste.
@testforstephen
Copy link
Contributor

Duplicates with redhat-developer/vscode-java#2231, there is a regression about single file support (no folder opened in VS Code).

The CI build https://download.jboss.org/jbosstools/jdt.ls/staging/java-1.2.0-470.vsix has fixed it, you can install from vsix.

Another workaround is to open a folder containing your Java files on VS Code.

@testforstephen testforstephen self-assigned this Dec 14, 2021
@testforstephen testforstephen changed the title Debugger not working Debugger not working on standalone java files Dec 14, 2021
@testforstephen testforstephen pinned this issue Dec 14, 2021
@testforstephen
Copy link
Contributor

testforstephen commented Dec 20, 2021

Pls update the language support for Java extension to 1.2.0, which has fixed the issue.

@testforstephen testforstephen unpinned this issue Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants