Title: '%' in paths causes error · Issue #660 · sourcegraph/javascript-typescript-langserver · GitHub
Open Graph Title: '%' in paths causes error · Issue #660 · sourcegraph/javascript-typescript-langserver
X Title: '%' in paths causes error · Issue #660 · sourcegraph/javascript-typescript-langserver
Description: When #228 introduced for path normalization ( @ → @ ) this block of code was added: javascript-typescript-langserver/src/util.ts Line 46 in 1c9317e const pathParts = parts.pathname.split('/').map(segment => encodeURIComponent(decodeURI...
Open Graph Description: When #228 introduced for path normalization ( @ → @ ) this block of code was added: javascript-typescript-langserver/src/util.ts Line 46 in 1c9317e const pathParts = parts.pathname.split('/').map...
X Description: When #228 introduced for path normalization ( @ → @ ) this block of code was added: javascript-typescript-langserver/src/util.ts Line 46 in 1c9317e const pathParts = parts.pathname.split('/...
Opengraph URL: https://github.com/sourcegraph/javascript-typescript-langserver/issues/660
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"'%' in paths causes error","articleBody":"When #228 introduced for path normalization ( `@` → `%40` ) this block of code was added:\r\n\r\nhttps://github.com/sourcegraph/javascript-typescript-langserver/blob/1c9317e92aa02edb8ea3bc95556e9baee9505cea/src/util.ts#L46\r\n\r\nUnfortunately `decodeURIComponent` doesn't work if the path looks something like \r\n\r\n`.../node_modules/@expo/traveling-fastlane-darwin/traveling-fastlane-1.11.3-osx/lib/vendor/ruby/2.2.0/gems/fastlane-2.136.0/fastlane/lib/fastlane/plugins/template/%gem_name%.gemspec.erb`\r\n\r\nand causes following error:\r\n\r\n```\r\nURIError: URI malformed\r\n at decodeURIComponent (\u003canonymous>)\r\n at /Users/m/.vscode/extensions/sourcegraph.javascript-typescript-0.0.7/node_modules/javascript-typescript-langserver/lib/util.js:46:83\r\n at Array.map (\u003canonymous>)\r\n at Object.normalizeUri (/Users/m/.vscode/extensions/sourcegraph.javascript-typescript-0.0.7/node_modules/javascript-typescript-langserver/lib/util.js:46:49)\r\n at Glob.\u003canonymous> (/Users/m/.vscode/extensions/sourcegraph.javascript-typescript-0.0.7/node_modules/javascript-typescript-langserver/lib/fs.js:62:40)\r\n at Glob.emit (events.js:200:13)\r\n at Glob._emitMatch (/Users/m/.vscode/extensions/sourcegraph.javascript-typescript-0.0.7/node_modules/glob/glob.js:489:8)\r\n at Glob._processSimple2 (/Users/m/.vscode/extensions/sourcegraph.javascript-typescript-0.0.7/node_modules/glob/glob.js:705:8)\r\n at /Users/m/.vscode/extensions/sourcegraph.javascript-typescript-0.0.7/node_modules/glob/glob.js:676:10\r\n at Glob._stat2 (/Users/m/.vscode/extensions/sourcegraph.javascript-typescript-0.0.7/node_modules/glob/glob.js:789:10)\r\n```","author":{"url":"https://github.com/martinheidegger","@type":"Person","name":"martinheidegger"},"datePublished":"2020-01-09T23:33:35Z","url":"https://github.com/sourcegraph/javascript-typescript-langserver/issues/660"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f3072fa8-bee5-e05f-5053-fd6910de78e2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 84F2:11EACE:E179A1:12D9826:6B0105FB |
| html-safe-nonce | c4292d0c804a9393cbdb6b243e2ca06e7327f5372f02587faf7d27766235b6c4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEYyOjExRUFDRTpFMTc5QTE6MTJEOTgyNjo2QjAxMDVGQiIsInZpc2l0b3JfaWQiOiIzNjk2NzM3MDkxNDM1MTY5Mjc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6fb8dffdfcc4395b52a816cc187135d94d29ba58f52ac74a550e05f8c9c25ff8 |
| hovercard-subject-tag | issue:547782453 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sourcegraph/javascript-typescript-langserver/660/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fb00f06af5256972723eb598dc50664a663610e4749615ad9508a168b1ffc381/sourcegraph/javascript-typescript-langserver/issues/660 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fb00f06af5256972723eb598dc50664a663610e4749615ad9508a168b1ffc381/sourcegraph/javascript-typescript-langserver/issues/660 |
| og:image:alt | When #228 introduced for path normalization ( @ → @ ) this block of code was added: javascript-typescript-langserver/src/util.ts Line 46 in 1c9317e const pathParts = parts.pathname.split('/').map... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | martinheidegger |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/sourcegraph/javascript-typescript-langserver git https://github.com/sourcegraph/javascript-typescript-langserver.git |
| octolytics-dimension-user_id | 3979584 |
| octolytics-dimension-user_login | sourcegraph |
| octolytics-dimension-repository_id | 68805662 |
| octolytics-dimension-repository_nwo | sourcegraph/javascript-typescript-langserver |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 68805662 |
| octolytics-dimension-repository_network_root_nwo | sourcegraph/javascript-typescript-langserver |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width