zed icon indicating copy to clipboard operation
zed copied to clipboard

"Failed to download HTML language server"

Open michealp-coder opened this issue 1 year ago • 2 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

Error: "Failed to download HTML language server. Click to see error."

When I click to see error, I get:

Language server error: HTML

failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"EPROTO\",\n    \"summary\": \"request to https://registry.npmjs.org/@tailwindcss%2flanguage-server failed, reason: write EPROTO 00A187F101000000:error:0A000152:SSL routines:final_renegotiate:unsafe legacy renegotiation disabled:../deps/openssl/openssl/ssl/statem/extensions.c:922:\\n\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "npm ERR! code EPROTO\nnpm ERR! syscall write\nnpm ERR! errno EPROTO\nnpm ERR! request to https://registry.npmjs.org/@tailwindcss%2flanguage-server failed, reason: write EPROTO 00A187F101000000:error:0A000152:SSL routines:final_renegotiate:unsafe legacy renegotiation disabled:../deps/openssl/openssl/ssl/statem/extensions.c:922:\nnpm ERR! \n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/USERNAME/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/cache/_logs/2024-01-25T01_30_26_147Z-debug-0.log\n"

Environment

Apple M1 macOS: 13.6.4 Zed: 0.120.0

If applicable, add mockups / screenshots to help explain present your vision of the feature

HTML file that is causing the error:

<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">

	<title>Unique page title - My Site</title>

	<link rel="stylesheet" href="/assets/css/styles.css">
	<link rel="stylesheet" href="/assets/css/print.css" media="print">

	<meta name="description" 		content="Page description">

	<meta property="og:title" 		content="Unique page title - My Site">
	<meta property="og:description" content="Page description">
	<meta property="og:image" 		content="https://www.mywebsite.com/image.jpg">
	<meta property="og:image:alt" 	content="Image description">
	<meta property="og:locale" 		content="en_US">
	<meta property="og:type" 		content="website">
	<meta property="og:url" 		content="https://www.mywebsite.com/page">

	<meta name="twitter:card" 		content="summary_large_image">

	<link rel="canonical" 			href="https://www.mywebsite.com/page">

	<link rel="icon" 				href="/favicon.ico">
	<link rel="icon" 				href="/favicon.svg" type="image/svg+xml">
	<link rel="apple-touch-icon" 	href="/apple-touch-icon.png">
	<link rel="manifest" 			href="/my.webmanifest">

	<meta name="theme-color" 		content="#FF00FF">
</head>

<body>

</body>
</html>

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

No response

michealp-coder avatar Jan 25 '24 01:01 michealp-coder

Thanks for the report @michealp-coder - this has been one of our most common issues, one that has been plaguing us. Hopefully, we can get to the bottom of it now that we have our open source deadline behind us.

JosephTLyons avatar Jan 25 '24 06:01 JosephTLyons

FYI, this is still an issue with Zed Preview 0.121.3

Error today:

Language server error: HTML

failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"EPROTO\",\n    \"summary\": \"request to https://registry.npmjs.org/@tailwindcss%2flanguage-server failed, reason: write EPROTO 405C78E401000000:error:0A000152:SSL routines:final_renegotiate:unsafe legacy renegotiation disabled:../deps/openssl/openssl/ssl/statem/extensions.c:922:\\n\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "npm ERR! code EPROTO\nnpm ERR! syscall write\nnpm ERR! errno EPROTO\nnpm ERR! request to https://registry.npmjs.org/@tailwindcss%2flanguage-server failed, reason: write EPROTO 405C78E401000000:error:0A000152:SSL routines:final_renegotiate:unsafe legacy renegotiation disabled:../deps/openssl/openssl/ssl/statem/extensions.c:922:\nnpm ERR! \n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/USERNAME/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/cache/_logs/2024-02-06T00_32_30_357Z-debug-0.log\n"

michealp-coder avatar Feb 06 '24 00:02 michealp-coder

Is there any connection between the bug I'm experiencing and https://github.com/zed-industries/zed/issues/7534 (which is now fixed)?

michealp-coder avatar Feb 09 '24 13:02 michealp-coder

Not really, that bug was caused by wrong approach to parsing of GitHub API responses, related to assets. In the error above, there's some npm and network error.

SomeoneToIgnore avatar Feb 09 '24 15:02 SomeoneToIgnore