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

Installed JDK is not detecting #136848

Closed
rohitml28 opened this issue Nov 10, 2021 · 3 comments
Closed

Installed JDK is not detecting #136848

rohitml28 opened this issue Nov 10, 2021 · 3 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@rohitml28
Copy link

rohitml28 commented Nov 10, 2021

Issue Type: Performance Issue

The installed JDK on the local machine is not detected by the VS code.

image

VS Code version: Code 1.62.1 (f4af3cb, 2021-11-05T10:57:55.946Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No
Remote OS version: Linux x64 5.10.60.1-microsoft-standard-WSL2

System Info
Item Value
CPUs Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz (8 x 1800)
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.86GB (1.72GB free)
Process Argv --folder-uri=vscode-remote://attached-container+7b22636f6e7461696e65724e616d65223a222f61643466623064383862643533613534313232396364623030346635643037333233356237643631643934343737376338343831333765643865363230633666227d/com.docker.devenvironments.code --crash-reporter-id 452468cd-23ce-4a01-868d-2ee2738906d3
Screen Reader no
VM 0%
Item Value
Remote Container docker/dev-environments-default:stable-1 (zealous_cartwright)
OS Linux x64 5.10.60.1-microsoft-standard-WSL2
CPUs Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz (8 x 1800)
Memory (System) 12.37GB (8.00GB free)
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
    0	    94	 18932	code main
    0	    96	  4816	   shared-process
    0	    64	  6708	     ptyHost
    0	   145	  8512	   gpu-process
    0	   101	 10044	   window (undefined)
    0	    41	 10604	   utility
    0	   144	 12356	   window (Configure Java Runtime - com.docker.devenvironments.code [Container docker/dev-environments-default:stable-1 (zealous_cartwright)] - Visual Studio Code)
    0	   101	 19308	     extensionHost
    0	    29	  3768	       "C:\Program Files\Docker\Docker\resources\bin\docker.exe" exec -i -u 1000 -e "REMOTE_CONTAINERS_SOCKETS=[\"/tmp/vscode-ssh-auth-567b2162ddce07943688681a48f8b96af272ddcf.sock\"]" -e REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-567b2162ddce07943688681a48f8b96af272ddcf.sock ad4fb0d88bd53a541229cdb004f5d073235b7d61d944777c848137ed8e620c6f /home/vscode/.vscode-server/bin/f4af3cbf5a99787542e2a30fe1fd37cd644cc31f/node /tmp/vscode-remote-containers-server-567b2162ddce07943688681a48f8b96af272ddcf.js
    0	    11	 13864	         console-window-host (Windows internal process)
    0	    28	 15028	         "C:\Program Files\Docker\Docker\resources\bin\com.docker.cli.exe" exec -i -u 1000 -e REMOTE_CONTAINERS_SOCKETS=[\"/tmp/vscode-ssh-auth-567b2162ddce07943688681a48f8b96af272ddcf.sock\"] -e REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-567b2162ddce07943688681a48f8b96af272ddcf.sock ad4fb0d88bd53a541229cdb004f5d073235b7d61d944777c848137ed8e620c6f /home/vscode/.vscode-server/bin/f4af3cbf5a99787542e2a30fe1fd37cd644cc31f/node /tmp/vscode-remote-containers-server-567b2162ddce07943688681a48f8b96af272ddcf.js
    0	    29	  6804	       "C:\Program Files\Docker\Docker\resources\bin\docker.exe" exec -i -u 1000 -e VSCODE_REMOTE_CONTAINERS_SESSION=77d1b37a-587f-4af4-aecb-645d18adb8751636540873859 ad4fb0d88bd53a541229cdb004f5d073235b7d61d944777c848137ed8e620c6f /bin/sh
    0	    27	  6816	         "C:\Program Files\Docker\Docker\resources\bin\com.docker.cli.exe" exec -i -u 1000 -e VSCODE_REMOTE_CONTAINERS_SESSION=77d1b37a-587f-4af4-aecb-645d18adb8751636540873859 ad4fb0d88bd53a541229cdb004f5d073235b7d61d944777c848137ed8e620c6f /bin/sh
    0	    11	  8572	         console-window-host (Windows internal process)
    0	    29	  7668	       "C:\Program Files\Docker\Docker\resources\bin\docker.exe" exec -i -u 1000 -e VSCODE_REMOTE_CONTAINERS_SESSION=77d1b37a-587f-4af4-aecb-645d18adb8751636540873859 ad4fb0d88bd53a541229cdb004f5d073235b7d61d944777c848137ed8e620c6f /home/vscode/.vscode-server/bin/f4af3cbf5a99787542e2a30fe1fd37cd644cc31f/node -e "
				const net = require('net');
				process.stdin.pause();
				const client = net.createConnection({ port: 34625 }, () => {
					client.pipe(process.stdout);
					process.stdin.pipe(client);
				});
				client.on('close', function (hadError) {
					console.error(hadError ? 'Remote close with error' : 'Remote close');
					process.exit(hadError ? 1 : 0);
				});
				client.on('error', function (err) {
					process.stderr.write(err && (err.stack || err.message) || String(err));
				});
			"
    0	    11	 16712	         console-window-host (Windows internal process)
    0	    28	 17644	         "C:\Program Files\Docker\Docker\resources\bin\com.docker.cli.exe" exec -i -u 1000 -e VSCODE_REMOTE_CONTAINERS_SESSION=77d1b37a-587f-4af4-aecb-645d18adb8751636540873859 ad4fb0d88bd53a541229cdb004f5d073235b7d61d944777c848137ed8e620c6f /home/vscode/.vscode-server/bin/f4af3cbf5a99787542e2a30fe1fd37cd644cc31f/node -e "
				const net = require('net');
				process.stdin.pause();
				const client = net.createConnection({ port: 34625 }, () => {
					client.pipe(process.stdout);
					process.stdin.pipe(client);
				});
				client.on('close', function (hadError) {
					console.error(hadError ? 'Remote close with error' : 'Remote close');
					process.exit(hadError ? 1 : 0);
				});
				client.on('error', function (err) {
					process.stderr.write(err && (err.stack || err.message) || String(err));
				});
			"
    0	    30	  9816	       electron_node settings.js settings.js 
    0	    28	 19688	         electron_node settings.js settings.js 
    0	    11	 22216	         console-window-host (Windows internal process)
    0	    30	 11036	       "C:\Program Files\Docker\Docker\resources\bin\docker.exe" exec -i -u 1000 -w /home/vscode/.vscode-server/extensions ad4fb0d88bd53a541229cdb004f5d073235b7d61d944777c848137ed8e620c6f /bin/sh -c "# Watch installed extensions
			trap \"exit 0\" 16
			old=`ls -A --full-time`
			counter=0
			while [ $counter -lt 60 ]
			do
				sleep 1
				new=`ls -A --full-time`
				if [ \"$new\" != \"$old\" ]
				then
					exit 1
				fi
				counter=`expr $counter + 1`
			done
			exit 2
		"
    0	    11	 14388	         console-window-host (Windows internal process)
    0	    28	 18684	         "C:\Program Files\Docker\Docker\resources\bin\com.docker.cli.exe" exec -i -u 1000 -w /home/vscode/.vscode-server/extensions ad4fb0d88bd53a541229cdb004f5d073235b7d61d944777c848137ed8e620c6f /bin/sh -c "# Watch installed extensions
			trap \"exit 0\" 16
			old=`ls -A --full-time`
			counter=0
			while [ $counter -lt 60 ]
			do
				sleep 1
				new=`ls -A --full-time`
				if [ \"$new\" != \"$old\" ]
				then
					exit 1
				fi
				counter=`expr $counter + 1`
			done
			exit 2
		"
    0	    29	 14304	       "C:\Program Files\Docker\Docker\resources\bin\docker.exe" exec -i -u root ad4fb0d88bd53a541229cdb004f5d073235b7d61d944777c848137ed8e620c6f /bin/sh
    0	    27	  9128	         "C:\Program Files\Docker\Docker\resources\bin\com.docker.cli.exe" exec -i -u root ad4fb0d88bd53a541229cdb004f5d073235b7d61d944777c848137ed8e620c6f /bin/sh
    0	    11	 11024	         console-window-host (Windows internal process)
    0	    29	 20892	       "C:\Program Files\Docker\Docker\resources\bin\docker.exe" exec -i -u 1000 -e VSCODE_REMOTE_CONTAINERS_SESSION=77d1b37a-587f-4af4-aecb-645d18adb8751636540873859 ad4fb0d88bd53a541229cdb004f5d073235b7d61d944777c848137ed8e620c6f /home/vscode/.vscode-server/bin/f4af3cbf5a99787542e2a30fe1fd37cd644cc31f/node -e "
				const net = require('net');
				process.stdin.pause();
				const client = net.createConnection({ port: 34625 }, () => {
					client.pipe(process.stdout);
					process.stdin.pipe(client);
				});
				client.on('close', function (hadError) {
					console.error(hadError ? 'Remote close with error' : 'Remote close');
					process.exit(hadError ? 1 : 0);
				});
				client.on('error', function (err) {
					process.stderr.write(err && (err.stack || err.message) || String(err));
				});
			"
    0	    28	  4232	         "C:\Program Files\Docker\Docker\resources\bin\com.docker.cli.exe" exec -i -u 1000 -e VSCODE_REMOTE_CONTAINERS_SESSION=77d1b37a-587f-4af4-aecb-645d18adb8751636540873859 ad4fb0d88bd53a541229cdb004f5d073235b7d61d944777c848137ed8e620c6f /home/vscode/.vscode-server/bin/f4af3cbf5a99787542e2a30fe1fd37cd644cc31f/node -e "
				const net = require('net');
				process.stdin.pause();
				const client = net.createConnection({ port: 34625 }, () => {
					client.pipe(process.stdout);
					process.stdin.pipe(client);
				});
				client.on('close', function (hadError) {
					console.error(hadError ? 'Remote close with error' : 'Remote close');
					process.exit(hadError ? 1 : 0);
				});
				client.on('error', function (err) {
					process.stderr.write(err && (err.stack || err.message) || String(err));
				});
			"
    0	    11	  6456	         console-window-host (Windows internal process)
    0	    27	 13888	   crashpad-handler
    0	    85	 16896	   window (Issue Reporter)

Remote: Container docker/dev-environments-default:stable-1 (zealous_cartwright)
CPU %	Mem MB	   PID	Process
    3	     0	   110	remote agent
    0	     0	   144	   ptyHost
    0	     0	 21678	   watcherServiceChokidar
    0	     0	 21757	   extensionHost
    0	     0	 23039	   /bin/sh -c /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    0	     0	 23040	     /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
Workspace Info

|  Remote: Container docker/dev-environments-default:stable-1 (zealous_cartwright)|    Folder (com.docker.devenvironments.code): 2063 files|      File types: index(154) prefs(131) png(69) java(57) xml(55) class(53)
|                  html(48) launch(43) properties(25) sql(19)
|      Conf files:;
Extensions (8)
Extension Author (truncated) Version
remote-containers ms- 0.205.2
java red 1.0.0
vscodeintellicode Vis 1.2.14
vscode-java-debug vsc 0.36.0
vscode-java-dependency vsc 0.18.8
vscode-java-pack vsc 0.18.6
vscode-java-test vsc 0.32.0
vscode-maven vsc 0.34.1
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
vsccppwt:30382697
bridge0708:30335490
pygetstartedt3:30385195
dockerwalkthru:30377721
bridge0723:30353136
pythonrunftest32:30373476
pythonf5test824:30373475
javagetstartedt:30391933
pythonvspyt187:30373474
vsqsis400:30386382
vsaa593:30376534
vssld246cf:30386378

@manuelserradev
Copy link

manuelserradev commented Nov 10, 2021

Same here.

I can see this log on the remote server:

[2021-11-10 14:25:29.729] [remoteagent] [error] ptyHost was unable to resolve shell environment {}
[2021-11-10 14:25:29.729] [remoteagent] [error] ExtensionHostConnection#buildUserEnvironment resolving shell environment failed {}

But I dunno if is related or not. Maybe relates with #136791

@manuelserradev
Copy link

Confirmed that should be fixed in the insiders build.

@Tyriar Tyriar added the *duplicate Issue identified as a duplicate of another issue(s) label Nov 12, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Dec 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

4 participants
@Tyriar @manuelserradev @rohitml28 and others