code tunnel not connecting

Does this issue occur when all extensions are disabled?: Yes (except Remote - Tunnel)

VS Code Version: 1.78.2 (b3e4e68a0bc097f0ae7907b217c1119af9e03435, x64)
OS Version: Debian GNU/Linux 11 (bullseye)

Steps to Reproduce:

install code tunnel on a remote host
run code tunnel --log debug --accept-server-license-terms --verbose
accept license terms, auth with microsoft account
open the URL (e.g. https://vscode.dev/tunnel/)

note: created a new VM and fresh install of code, still happens.
what happens

An unexpected error occurred that requires a reload of this page.
The workbench failed to connect to the server (Error: undefined)

code tunnel logs
all of this looks normal, but no connection to a client
$ code tunnel --log debug --accept-server-license-terms --verbose
*
* Visual Studio Code Server
*
* By using the software, you agree to
* the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
* the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
*
[2023-06-07 22:03:49] debug starting as new singleton
[2023-06-07 22:03:49] trace Found token in keyring
[2023-06-07 22:03:49] debug [reqwest::connect] starting new connection: https://api.github.com/
[2023-06-07 22:03:49] debug [reqwest::connect] starting new connection: https://use.rel.tunnels.api.visualstudio.com/
[2023-06-07 22:03:50] debug Starting tunnel to server...
[2023-06-07 22:03:50] trace Found token in keyring
[2023-06-07 22:03:50] debug [tungstenite::handshake::client] Client handshake done.
[2023-06-07 22:03:50] debug [russh::ssh_read] read_ssh_id: reading
[2023-06-07 22:03:50] debug [russh::ssh_read] read 39
[2023-06-07 22:03:50] debug [russh::ssh_read] Ok("SSH-2.0-Microsoft.DevTunnels.Ssh_3.11\r\n")
[2023-06-07 22:03:50] debug [russh::client] writing 352 bytes
[2023-06-07 22:03:50] debug [russh::ssh_read] id 39 39
[2023-06-07 22:03:50] debug [russh::client::kex] extending []
[2023-06-07 22:03:50] debug [russh::client::kex] algo = Names { kex: Name("none"), key: Name("none"), cipher: Name("none"), client_mac: Name("none"), server_mac: Name("none"), server_compression: None, client_compression: None, ignore_guessed: false }
[2023-06-07 22:03:50] debug [russh::client::kex] write = []
[2023-06-07 22:03:50] debug [russh::client::kex] i0 = 342
[2023-06-07 22:03:50] debug [russh::client::kex] moving to kexdhdone, exchange = Exchange { client_id: CryptoVec { p: 0x7f3eb007f2c0, size: 28, capacity: 32 }, server_id: CryptoVec { p: 0x7f3eb0015aa0, size: 37, capacity: 64 }, client_kex_init: CryptoVec { p: 0x7f3eb00cc9d0, size: 342, capacity: 512 }, server_kex_init: CryptoVec { p: 0x7f3eb00d1d70, size: 94, capacity: 128 }, client_ephemeral: CryptoVec { p: 0x1, size: 0, capacity: 0 }, server_ephemeral: CryptoVec { p: 0x1, size: 0, capacity: 0 } }
[2023-06-07 22:03:50] debug [tunnels::connections::relay_tunnel_host] established host relay primary session
[2023-06-07 22:03:50] debug Connected to tunnel endpoint: TunnelRelayTunnelEndpoint { base: TunnelEndpoint { connection_mode: TunnelRelay, host_id: "20ff42fb-54d1-4004-9448-a28b78820ed1", host_public_keys: [], port_uri_format: Some("https://tfn47fn8-{port}.use.devtunnels.ms/"), tunnel_uri: Some("https://tfn47fn8.use.devtunnels.ms/"), port_ssh_command_format: Some("ssh tfn47fn8-{port}@ssh.use.devtunnels.ms"), tunnel_ssh_command: Some("ssh tfn47fn8@ssh.use.devtunnels.ms"), ssh_gateway_public_key: None }, host_relay_uri: Some("wss://use-data.rel.tunnels.api.visualstudio.com/api/v1/Host/Connect/tfn47fn8"), client_relay_uri: Some("wss://use-data.rel.tunnels.api.visualstudio.com/api/v1/Client/Connect/tfn47fn8") }
[2023-06-07 22:03:50] debug Visual Studio Code Server is listening for incoming connections

Open this link in your browser https://vscode.dev/tunnel/notebook-20230607

[2023-06-07 22:03:50] trace Found token in keyring
[2023-06-07 22:04:50] debug [tunnels::connections::ws] sent liveness ping
[2023-06-07 22:04:50] debug [tunnels::connections::ws] received liveness pong
[2023-06-07 22:05:50] debug [tunnels::connections::ws] received liveness pong
[2023-06-07 22:06:50] debug [tunnels::connections::ws] sent liveness ping
[2023-06-07 22:06:50] debug [tunnels::connections::ws] received liveness pong
[2023-06-07 22:07:50] debug [tunnels::connections::ws] received liveness pong

devtools logs in browser (edge or chrome)
summary: looks like a websocket connection isn't made?
screenshot of first few lines:

all lines:

DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/b3e4e68a0bc097f0ae7907b217c1119af9e03435/core/vs/workbench/workbench.web.main.nls.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://main.vscode-cdn.net/stable/b3e4e68a0bc097f0ae7907b217c1119af9e03435/node_modules/vscode-textmate/release/main.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
log.ts:421  INFO Resolving connection token (tunnel)...
log.ts:421  INFO Resolved connection token (tunnel) after 4 ms
log.ts:421  INFO Creating a socket (renderer-Management-241b50c8-ed41-4216-9053-aa7e100c8c4b)...
10Refused to connect to '<URL>' because it violates the following Content Security Policy directive: "connect-src 'self' <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL>".

log.ts:421  INFO Creating a socket (renderer-Management-241b50c8-ed41-4216-9053-aa7e100c8c4b) returned an error after 2 ms.
log.ts:441   ERR [remote-connection][Management   ][241b5…][initial][tunnel+notebook-20230607:443] socketFactory.connect() failed or timed out. Error:
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:441   ERR [remote-connection][attempt 1] An error occurred in initial connection! Will retry... Error:
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:421  INFO Creating a socket (renderer-Management-0450f48f-a982-4c90-9335-c0b5893afab7)...
log.ts:421  INFO Creating a socket (renderer-Management-0450f48f-a982-4c90-9335-c0b5893afab7) returned an error after 1 ms.
log.ts:441   ERR [remote-connection][Management   ][0450f…][initial][tunnel+notebook-20230607:443] socketFactory.connect() failed or timed out. Error:
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:441   ERR [remote-connection][attempt 2] An error occurred in initial connection! Will retry... Error:
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:421  INFO Creating a socket (renderer-Management-e48a3f94-75af-47f3-9e1d-985ac9095386)...
log.ts:421  INFO Creating a socket (renderer-Management-e48a3f94-75af-47f3-9e1d-985ac9095386) returned an error after 1 ms.
log.ts:441   ERR [remote-connection][Management   ][e48a3…][initial][tunnel+notebook-20230607:443] socketFactory.connect() failed or timed out. Error:
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:441   ERR [remote-connection][attempt 3] An error occurred in initial connection! Will retry... Error:
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:421  INFO Creating a socket (renderer-Management-28e370e2-c64d-4e55-902a-6a87185bc69b)...
log.ts:421  INFO Creating a socket (renderer-Management-28e370e2-c64d-4e55-902a-6a87185bc69b) returned an error after 0 ms.
log.ts:441   ERR [remote-connection][Management   ][28e37…][initial][tunnel+notebook-20230607:443] socketFactory.connect() failed or timed out. Error:
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:441   ERR [remote-connection][attempt 4] An error occurred in initial connection! Will retry... Error:
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:421  INFO Creating a socket (renderer-Management-1f20cb5c-e790-4c7d-b973-9f83788fa5e0)...
log.ts:421  INFO Creating a socket (renderer-Management-1f20cb5c-e790-4c7d-b973-9f83788fa5e0) returned an error after 1 ms.
log.ts:441   ERR [remote-connection][Management   ][1f20c…][initial][tunnel+notebook-20230607:443] socketFactory.connect() failed or timed out. Error:
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:441   ERR [remote-connection][attempt 5]  An error occurred in initial connection! It will be treated as a permanent error. Error:
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:441   ERR Cannot register remote filesystem provider. Error while fetching remote environment. [object Event]
log.ts:431  WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-vscode.vscode-selfhost-test-provider' wants API proposal 'testContinuousRun' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:421  INFO Creating a socket (renderer-ExtensionHost-08e23625-8322-469a-a6da-3d6e650e0516)...
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:441   ERR An unknown error occurred. Please consult the log for more details.
log.ts:421  INFO Creating a socket (renderer-ExtensionHost-08e23625-8322-469a-a6da-3d6e650e0516) returned an error after 10 ms.
log.ts:441   ERR [remote-connection][ExtensionHost][08e23…][initial][tunnel+notebook-20230607:443] socketFactory.connect() failed or timed out. Error:
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:441   ERR [remote-connection][attempt 1] An error occurred in initial connection! Will retry... Error:
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:421  INFO Creating a socket (renderer-ExtensionHost-791be248-9bbf-470d-9af5-d06e07aea467)...
log.ts:421  INFO Creating a socket (renderer-ExtensionHost-791be248-9bbf-470d-9af5-d06e07aea467) returned an error after 3 ms.
log.ts:441   ERR [remote-connection][ExtensionHost][791be…][initial][tunnel+notebook-20230607:443] socketFactory.connect() failed or timed out. Error:
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:441   ERR [remote-connection][attempt 2] An error occurred in initial connection! Will retry... Error:
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:421  INFO Creating a socket (renderer-ExtensionHost-ac257e6d-1d3a-4145-83da-f66cbf0fa8ed)...
log.ts:421  INFO Creating a socket (renderer-ExtensionHost-ac257e6d-1d3a-4145-83da-f66cbf0fa8ed) returned an error after 2 ms.
log.ts:441   ERR [remote-connection][ExtensionHost][ac257…][initial][tunnel+notebook-20230607:443] socketFactory.connect() failed or timed out. Error:
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:441   ERR [remote-connection][attempt 3] An error occurred in initial connection! Will retry... Error:
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:421  INFO Creating a socket (renderer-ExtensionHost-ebe46f2c-a2aa-4b02-b002-768c6aa24e33)...
log.ts:421  INFO Creating a socket (renderer-ExtensionHost-ebe46f2c-a2aa-4b02-b002-768c6aa24e33) returned an error after 1 ms.
log.ts:441   ERR [remote-connection][ExtensionHost][ebe46…][initial][tunnel+notebook-20230607:443] socketFactory.connect() failed or timed out. Error:
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:441   ERR [remote-connection][attempt 4] An error occurred in initial connection! Will retry... Error:
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:421  INFO Creating a socket (renderer-ExtensionHost-d55b3886-dd80-4dbe-bb50-897d35f80766)...
log.ts:421  INFO Creating a socket (renderer-ExtensionHost-d55b3886-dd80-4dbe-bb50-897d35f80766) returned an error after 0 ms.
log.ts:441   ERR [remote-connection][ExtensionHost][d55b3…][initial][tunnel+notebook-20230607:443] socketFactory.connect() failed or timed out. Error:
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:441   ERR [remote-connection][attempt 5]  An error occurred in initial connection! It will be treated as a permanent error. Error:
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:441   ERR Error received from starting extension host (kind: Remote)
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:421  INFO Found additional builtin gallery extensions in env (4) [{…}, {…}, {…}, {…}]
log.ts:421  INFO Found additional builtin location extensions in env (2) ['https://ms-vscode.vscode-unpkg.net/ms-vscode/remote-server/1.2.0/extension', 'https://ms-vscode.vscode-unpkg.net/ms-vscode/remote-explorer/0.4.0/extension']
DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/b3e4e68a0bc097f0ae7907b217c1119af9e03435/core/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.darwin.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://main.vscode-cdn.net/stable/b3e4e68a0bc097f0ae7907b217c1119af9e03435/node_modules/tas-client-umd/lib/tas-client-umd.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
log.ts:431  WARN [ms-vscode.remote-server]: The viewsWelcome contribution in 'ms-vscode.remote-server' requires 'enabledApiProposals: ["contribViewsWelcome"]' in order to use the 'group' proposed property.
DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/b3e4e68a0bc097f0ae7907b217c1119af9e03435/extensions/github-authentication/dist/browser/extension.js.map: Fetch through target failed: Target not supported; Fallback: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/b3e4e68a0bc097f0ae7907b217c1119af9e03435/extensions/git-base/dist/browser/extension.js.map: Fetch through target failed: Target not supported; Fallback: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/b3e4e68a0bc097f0ae7907b217c1119af9e03435/extensions/microsoft-authentication/dist/browser/extension.js.map: Fetch through target failed: Target not supported; Fallback: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/b3e4e68a0bc097f0ae7907b217c1119af9e03435/extensions/merge-conflict/dist/browser/mergeConflictMain.js.map: Fetch through target failed: Target not supported; Fallback: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
log.ts:441   ERR An unknown error occurred. Please consult the log for more details.
DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/b3e4e68a0bc097f0ae7907b217c1119af9e03435/extensions/json-language-features/client/dist/browser/jsonClientMain.js.map: Fetch through target failed: Target not supported; Fallback: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/b3e4e68a0bc097f0ae7907b217c1119af9e03435/extensions/typescript-language-features/dist/browser/extension.js.map: Fetch through target failed: Target not supported; Fallback: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/b3e4e68a0bc097f0ae7907b217c1119af9e03435/extensions/emmet/dist/browser/emmetBrowserMain.js.map: Fetch through target failed: Target not supported; Fallback: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/b3e4e68a0bc097f0ae7907b217c1119af9e03435/extensions/json-language-features/server/dist/browser/jsonServerMain.js.map: Fetch through target failed: Target not supported; Fallback: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
sw.js:1 SW Preloading workbench: {quality: 'stable', version: 'b3e4e68a0bc097f0ae7907b217c1119af9e03435'}
sw.js:1 SW Garbage collecting 0 entries...
sw.js:1 SW Done garbage collecting
sw.js:1 SW Caching 0 entries...
sw.js:1 SW Done caching workbench
log.ts:441   ERR An unknown error occurred. Please consult the log for more details.
log.ts:421  INFO Updating additional builtin extensions cache
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:441   ERR Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 0, …}
log.ts:441   ERR An unknown error occurred. Please consult the log for more details.

similar issues
https://github.com/microsoft/vscode-remote-release/issues/8126

I get the same error too.

Same here, all my tunnel connections failed

issue fixed with switching to insiders version 1.79.0-insider / b380da4ef1ee00e224a15c1d4d9793e27c2b6302
maybe this is an issue with vscode, stable version?
related issues, posted today

https://github.com/microsoft/vscode/issues/184555
https://stackoverflow.com/questions/76427081/vs-server-cant-connect-to-tunnel-anymore

i have the same problem starting today as well, it was working perfectly fine yesterday:
i was running :
Version: 1.77.3
Commit: 704ed70d4fd1c6bd6342c436f1ede30d1cff4710
Date: 2023-04-12T09:16:52.732Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Linux x64 4.15.0-197-generic
Sandboxed: Yes
and this is the remote tunnel service console output, which looks fine:
2023-06-08 12:30:03.308 [info] Searching for existing authentication session with ID *****
2023-06-08 12:30:03.374 [info] Found existing authentication session with ID *****
2023-06-08 12:30:03.376 [info] Account updated: *****
2023-06-08 12:30:03.482 [info] Running tunnel CLI
2023-06-08 12:30:03.482 [info] login Spawning: /usr/share/code/bin/code-tunnel tunnel user login --provider github --access-token **** --log info
2023-06-08 12:30:03.632 [info] login exit(17569): + 0
2023-06-08 12:30:03.633 [info] Running tunnel CLI
2023-06-08 12:30:03.633 [info] tunnel Spawning: /usr/share/code/bin/code-tunnel tunnel --parent-process-id 17292 --accept-server-license-terms --log info --name *****
2023-06-08 12:30:03.648 [info] *

Visual Studio Code Server

By using the software, you agree to
the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).

2023-06-08 12:30:08.632 [info]
Open this link in your browser https://vscode.dev/tunnel/*****
but i am getting the same error as above when opening the link in browser (tried incognito as well)
and then i went ahead to update to latest stable version and then got this error:
$ code tunnel --log debug --accept-server-license-terms --verbose
/usr/share/code/bin/code-tunnel: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.29' not found (required by /usr/share/code/bin/code-tunnel) /usr/share/code/bin/code-tunnel: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28' not found (required by /usr/share/code/bin/code-tunnel)
also tried using code-insider with same result
i am on Ubuntu 18.04.4 LTS and vs code version:
Version: 1.78.2
Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435
Date: 2023-05-10T14:47:05.613Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: <IP_ADDRESS>-electron.0
OS: Linux x64 4.15.0-197-generic
Sandboxed: Yes

This is probably related to this issue: https://github.com/microsoft/vscode-remote-release/issues/8582 - a fix is coming.

I tried the suggested option downgrading the Remote - Tunnels extension to 1.1.0 and still with the same problem.

I am able to get it to work, but I need to run a local client version of vs code and install remote tunnel extension v1.1.0
on the server side i have roll backed to
Commit: 704ed70d4fd1c6bd6342c436f1ede30d1cff4710
Date: 2023-04-12T09:16:52.732Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Linux x64 4.15.0-197-generic
Sandboxed: Yes

(as I am getting another issue if I upgrade to 1.78.2)
and on client side (which has remote tunnel v.1.1.0 installed)
Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435
Date: 2023-05-10T14:39:26.248Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19045
Sandboxed: Yes

vscode.dev/tunnel/ still does not work, I suspect once a fix to the extension is released it will work again, as there is no way to change the extension version in vscode.dev

Tunnels extension 1.2.1 has the fix published for VS Code desktop. The fix for vscode.dev will go out in a few hours.

thanks @connor4312 ! confirmed, working with Version: 1.78.2 /  b3e4e68a0bc097f0ae7907b217c1119af9e03435 with Remote - Tunnels extension v1.2.1, last updated 6/8/2023, 10:29:43.

and then i went ahead to update to latest stable version and then got this error: $ code tunnel --log debug --accept-server-license-terms --verbose /usr/share/code/bin/code-tunnel: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.29' not found (required by /usr/share/code/bin/code-tunnel) /usr/share/code/bin/code-tunnel: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28' not found (required by /usr/share/code/bin/code-tunnel)
also tried using code-insider with same result
i am on Ubuntu 18.04.4 LTS and vs code version: Version: 1.78.2 Commit: b3e4e68 Date: 2023-05-10T14:47:05.613Z Electron: 22.5.2 Chromium: 108.0.5359.215 Node.js: 16.17.1 V8: <IP_ADDRESS>-electron.0 OS: Linux x64 4.15.0-197-generic Sandboxed: Yes

@isaacfpv, for your libc.so.6: version GLIBC_2.29' not found error, i recommend either upgrading your OS or downgrading VS code to 1.77. This error is happening because Ubuntu 18.04 uses an older version of glibc (and it's bad to attempt upgrading glibc on the machine as it will probably break many other things), and VS Code requires a more recent version. This might be resolved in the coming months, however. See https://github.com/microsoft/vscode/issues/181720

@connor4312 any idea when vscode.dev would get the update with the fix ?

Approximately 11AM PST (in 1hr)

Thanks a lot 👍

it just connected successfully (insider)


Google Analytics not working needs updating to be compatible with GA4

The Google Analytics event that we are sending in the DS (analytics.js) are no longer working. We need to update it to work with GA4 which is the latest version of GA.
Currently we attempt to send 3 attributes to GA (data-ga-category, data-ga-action and data-ga-label). These are set as custom html attributes on elements we want to track and are then picked up by the js in analytics.js and are sent to GA. But currently are not being picked up by GA due to the ga() function we use to send them being deprecated and now shut off by Google. We now need to use the gtag() function instead.
This new function gives us a bit more scope to make what we send more generic and not stick rigidly to the 3 attributes above. In this new function you can send the data in an object that contains key value pairs.
The proposed solution is to convert the js to use the new function but also remove the hardcoded attributes and instead introduce a new structure that will grab any attributes that start with data-ga- remove the data-ga- part of the name and add the name and value to the object to be sent to GA with that new name and its value. So for example data-ga-category will become just category. We do also have an attribute that is called just data-ga and this will now be added to the object as event-name.
The documentation on using the gtag() function is here
All this should also be documented and although we are giving users more of a generic way of setting these things we should outline a suggested structure so that services can all use the same one.

I have looked into this and it looks we currently use universal analytics in the DS. I have found this guide that explains how to enable universal analytics support in GA4 which is done through the GA dashboard that Ian Oliver manage :
https://www.vakulski-group.com/blog/post/analytics-js-ga4-its-possible/#:~:text=Yes%2C it's possible to migrate,Analytics events” feature in GA4.
I have had a chat with Ian and he has enabled this option in the Service Manual and he is going to enable it for the rest of the websites.
I have also shared a guid with him to confirm that this UA is now read by GA4 :
https://support.google.com/analytics/answer/13342757?hl=en&ref_topic=10737980&sjid=341287973298155195-EU

Now a priority - Precious to pick up

We have set up an environment on EQ using CDN to test this, Just waiting for Ian to run this on the dashboard
But he is currently on leave


cDOT 8.3.2

It seems that hostname is not working in version 8.3.2, I think that the hostname is not retreived correctly.
Debug: System info = {"version"=>"NetApp Release 8.3.2: Wed Feb 24 03:29:11 UTC 2016", "clustered"=>"true", "hostname"=>nil}

To support HA, the hostname field is populated with the "cluster name" of the cDOT system and not the individual hostnames of the nodes. Having said that, the hostname  field should not be nil.
Are you using the latest version of the module 1.1.0 ?
I would verify the cluster name specified in the device.conf is resolved to the cDOT cluster.
Some documentation about the module:
http://www.netapp.com/us/media/tr-4477.pdf

Hi,
I'm using the cluster hostname, and not the controllers hostnames.
This is my device.conf
[tv1-na03.mydomain.com]
type
netapp
url<EMAIL_ADDRESS>This is the output from a ssh console, excuting the hostname command. As you note there is a blank line in the output.
tv1-na03::> hostname
tv1-na03
tv1-na03::>
I'm using version 1.1.0, and also the hostname is resolving the an ip address.

Hello,
Did you get an error "No matching system found with the system name tv1-na03.mydomain.com" ?
Also I see that line 141  in
https://github.com/puppetlabs/puppetlabsnetapp/blob/master/lib/puppet/util/network_device/netapp/facts.rb should be patched. So that it checks if the hostname specified matches against the cluster name retrieved.(The if block only checks for node names)
I am linking my personal  facts.rb . Let me know if it works. If so, I will make a formal pull request and push it upstream
My attempt at patching facts.rb :
https://github.com/amit0701/DataONTAPDevice/blob/master/lib/puppet/util/network_device/netapp/facts.rb

@amit0701 I'm getting the error you mentioned ("No matching system found with the system name... "and haven't been able to figure anything out. My device.conf file is setup correctly. Unfortunately, it doesn't seem that your patch will fix the problem.
system_host is set to the cluster name if it matches the host name on line 100. So 141 is already set to the cluster name if it should be (this would need to happen before the if statement on line 122, as it does). Your patch shouldn't be necessary because this assignment was already done, and it removes the error handling that was supposed to occur if system_host was not set.
Any other suggestions?

A few pull requests were recently merged, did u try with the updated code from the repo?  let me know if you still encounter the issue with the latest code.
if it still doesn't solve your issue, please shoot me an<EMAIL_ADDRESS>we can schedule something and look at the device.conf and the debug output


Bug: If an overlay with the BackOnly layout was opened, then closing it by clicking the area around it caused it to be saved, although it should not have been

Fixed by 4274a7e commit


Support for retrying failed CORS requests

When using the retry() functionality on a bad connection, the browser can sometimes fail during a CORS OPTIONS request, which currently doesn't get retried. Superagent throws an error with crossDomain: true property in this case. We should retry instead, since the next attempt might succeed.

Fixed in acaf84d


Receiving [ERR_STREAM_PREMATURE_CLOSE] in the logs when intentionally closing the ResultSet stream before end

Describe the bug
I have a stream generated from a ResultSet of a query. When consuming the stream, I need to end it prematurely if a certain condition is met:
import {pipeline} from 'stream/promises';
import {createWriteStream} from 'fs';
import {createClient} from '@clickhouse/client';

async function* myAsyncGenerator() {
	const clickHouseClient = createClient({
		// ...
	});

	const resultSet = await clickHouseClient.query({
		query: `select * from my_table limit 10`,
		format: 'JSONCompactStringsEachRowWithNamesAndTypes',
	});

	const stream = resultSet.stream();

	let i = 0;

	for await (const rows of stream) {
		for (const row of rows) {
			i++;
			let jsonRow = await row.json();

			// If a condition is true, I want to stop consuming the stream prematurely
			if (i === 3) {
				return stream.destroy();
			}

			yield jsonRow.join(',') + '\n\n';
		}
	}
}

(async () => {
	const asyncGen = myAsyncGenerator();
	const outputStream = createWriteStream('output.txt');
	await pipeline(asyncGen, outputStream);
})();

This code terminates successfully (exit code 0) but it logs the following[ERR_STREAM_PREMATURE_CLOSE] error on the console:

Expected behaviour
I could be wrong, but this [ERR_STREAM_PREMATURE_CLOSE] error doesn't seem to originate on the stream object received from the call to the database, I suspect instead that this can orginate from another stream that is writing on this one (e.g. a stream from the socket who is writing the data?).
In this case I am voluntarily closing the stream before consuming all the data, so I don't want to see this [ERR_STREAM_PREMATURE_CLOSE] logged on the console. Also it doesn't seem to be an error, but just the log of an error, because the program terminates with success (exit code 0).
Is there any way to prevent this [ERR_STREAM_PREMATURE_CLOSE] error log to appear in the console?
Error log
Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
    at new NodeError (node:internal/errors:405:5)
    at Transform.onclose (node:internal/streams/end-of-stream:159:30)
    at Transform.emit (node:events:529:35)
    at Transform.emit (node:domain:489:12)
    at emitCloseNT (node:internal/streams/destroy:132:10)
    at processTicksAndRejections (node:internal/process/task_queues:81:21) {
  code: 'ERR_STREAM_PREMATURE_CLOSE'
}

Process finished with exit code 0

Configuration
Environment

Client version: 0.2.7
Language version: Node v18.18.0
OS: Darwin arm64

ClickHouse server

ClickHouse Server version: <IP_ADDRESS>00

If it is not possible to implement the desired logic via ClickHouse query, then you want to just use AbortController in this case.
import { pipeline } from 'stream/promises'
import { createWriteStream } from 'fs'
import { createClient } from '@clickhouse/client'

async function* myAsyncGenerator() {
  const clickHouseClient = createClient({
    // ...
  })

  const abortController = new AbortController()
  const resultSet = await clickHouseClient.query({
    query: `select * from system.numbers limit 10`,
    format: 'JSONCompactStringsEachRowWithNamesAndTypes',
    abort_signal: abortController.signal,
  })

  let i = 0
  for await (const rows of resultSet.stream()) {
    for (const row of rows) {
      i++

      // If a condition is true, I want to stop consuming the stream prematurely
      if (i === 5) {
        console.log('aborting')
        abortController.abort()
        break
      }

      const result = row.json<string[]>().join(',') + '\n\n'
      console.log('Yielding row', result)
      yield result
    }
  }
}
;(async () => {
  const asyncGen = myAsyncGenerator()
  const outputStream = createWriteStream('output.txt')
  await pipeline(asyncGen, outputStream)
})()

console output:
➜  examples git:(main) ✗ ts-node node/test.ts
Yielding row number

Yielding row UInt64

Yielding row 0

Yielding row 1

aborting

The output.txt file contents:

NB: You might want to add https://clickhouse.com/docs/en/operations/settings/settings#cancel-http-readonly-queries-on-client-close. Also, see the abort_request example.

Hi, thanks for the help!
I have tried your solution using the AbortController, but got this error instead:

Also I have noticed that you are breaking only the inner loop when aborting, but not the outer loop. Is any specific reason for not breaking also the outer loop?

And with just 1 socket and the second consecutive request, all seems OK, too.
import { createWriteStream } from 'fs'
import { createClient } from '@clickhouse/client'
import { ClickHouseLogLevel } from '@clickhouse/client-common'

;(async () => {
  process.on('unhandledRejection', (err) => {
    console.error('unhandledRejection:', err)
  })
  process.on('uncaughtException', (err) => {
    console.error('uncaughtException:', err)
  })

  const client = createClient({
    max_open_connections: 1,
    log: {
      level: ClickHouseLogLevel.TRACE,
    },
  })

  const abortController = new AbortController()
  const resultSet = await client.query({
    query: `select * from system.numbers limit 10`,
    format: 'JSONCompactStringsEachRowWithNamesAndTypes',
    abort_signal: abortController.signal,
  })

  let i = 0
  const stream = resultSet.stream<string[]>()
  const outputStream = createWriteStream('output.txt')

  await new Promise((resolve, reject) => {
    stream
      .on('data', (rows) => {
        for (const row of rows) {
          if (i++ === 5) {
            console.log('Reached the condition, ending stream...')
            abortController.abort()
            return
          }
          const result = row.json().join(',') + '\n\n'
          console.log('Yielding row', result)
          // important: need to add backpressure handling here
          outputStream.write(result)
        }
      })
      .on('error', (err) => {
        console.error('Error in stream', err)
        reject(err)
      })
      .on('end', () => {
        console.log('End of stream, resolve...')
        resolve(0)
      })
  })

  const rs = await client.query({
    query: 'SELECT 1 AS number',
    format: 'JSONEachRow',
  })
  console.log(
    'Verifying that we can query using the same socket one more time...',
    await rs.json(),
  )

  console.log('Closing client...')
  await client.close()
})()

Yielding row number

Yielding row UInt64

Yielding row 0

Yielding row 1

Yielding row 2

Reached the condition, ending stream...
[2024-05-08T14:47:24.767Z][TRACE][@clickhouse/client][Connection] Socket 1bbbdc08-9d1d-466e-8248-a2d2c62cffc3 was released
End of stream, resolve...
[2024-05-08T14:47:24.767Z][TRACE][@clickhouse/client][Connection] Reusing socket 1bbbdc08-9d1d-466e-8248-a2d2c62cffc3
...
[2024-05-08T14:47:24.774Z][TRACE][@clickhouse/client][Connection] Socket 1bbbdc08-9d1d-466e-8248-a2d2c62cffc3 was released
Verifying that we can query using the same socket one more time... [ { number: 1 } ]
Closing client...
[2024-05-08T14:47:24.774Z][TRACE][@clickhouse/client][Connection] Socket 1bbbdc08-9d1d-466e-8248-a2d2c62cffc3 was closed or ended, 'free' listener removed

I think I understand what is happening now.
Due to the query being in the async generator function body, an unfinished request goes out of scope, and so does the AbortController that is used internally to cancel the request on errors in the Node.js connection src.
That internal AbortController is used to prevent the underlying sockets from being stuck while dialing an unreachable host, which can happen even if the request was timed out (and that was the only sensible solution I could find to that issue).
There is a fun fact about the AbortController: it fires the abort signal when it goes out of scope.
Then, the error is printed here.
I will check if I can make it less annoying and more transparent to the user so that just the ResultSet.close method can be called, and that's it, with proper discard of the response stream while keeping the socket and without unnecessary error messages in the console, as the last part is very outdated and is basically a tech debt.

Should be fixed in 1.0.2.
import { pipeline } from 'stream/promises'
import { createWriteStream } from 'fs'
import { createClient } from '@clickhouse/client'

async function* myAsyncGenerator() {
  const clickHouseClient = createClient({
    // ...
  })

  const resultSet = await clickHouseClient.query({
    query: `SELECT * FROM system.numbers LIMIT 10`,
    format: 'JSONCompactStringsEachRowWithNamesAndTypes',
  })

  const stream = resultSet.stream()

  let i = 0

  for await (const rows of stream) {
    for (const row of rows) {
      // If a condition is true, I want to stop consuming the stream prematurely
      if (i++ === 5) {
        return stream.destroy()
      }

      yield row.json<string[]>().join(',') + '\n'
    }
  }
}

;(async () => {
  const asyncGen = myAsyncGenerator()
  const outputStream = createWriteStream('output.txt')
  await pipeline(asyncGen, outputStream)
})()

Yields the following file:
number
UInt64
0
1
2

Without unnecessary errors in the logs.
Please feel free to re-open or create a new one if there are still any issues.


Resolve qr hash forwarded from dropapp

@pylipp and @aerinsol:
What has changed?
Since we disabled the mobile part of dropapp, there is a bit of routing that moved to v2 for the case that a user scans a QR-code with an external QR-Reader.
In this case, the external QR-Reader requests the mobile.php url from dropapp which now just forwards the qr hash to v2. The business logic if BoxView should be shown or BoxCreate or an Error lies no in v2.
Test cases
Generally, I would like to ask you both to test most of the test cases of 3.4.8 of the FE functional tests of the test plan.
You can use the following hashes from the staging seed for the tests:

QR-Code without Box: '168df347206ed26cd2213c0e4767ccb'
QR-Code with Box in base 1: 'db7d22cebdc57632bfc0a23a504424b'
QR-Code with Box in base 2: '0a85f8d3bc751ce1469bd357e56e922'
QR-Code with Box in base 3: 'dc89000023e5fe7148bfd77bc9ddbfb'
QR-Code connected to soft-deleted Box in base 1: You have to delete a box first through dropapp or set the deleted value in stock for a box
legacy QR-Code connected to Box in base 1: I do not know yet how to recreate this, but I checked production and there are only 5 InStock Boxes left in Nea Kavala that are still relevant for this case.

How to test
@pylipp: If you don't wanna run dropapp in parallel, I'd suggest you always start with requesting /qrreader/<hash> and use a hash that is true for the test cases in 3.4.8.
@aerinsol: Once it is merged and deployed to master, I would like you to always start from dropapp and also check if the redirecting works properly. --> start your tests with requesting staging.boxtribute.org/mobile.php?barcode=<hash>
Of course, you can also just scan then qr-codes generated and used on staging.

I logged in as<EMAIL_ADDRESS>(base 3), and used the codes below with the /qrreader/<hash>

QR-Code without Box: '168df347206ed26cd2213c0e4767ccb'

I'm redirected to CreateBox page as expected.

QR-Code with Box in base 1: 'db7d22cebdc57632bfc0a23a504424b'

Staying on /qrreader with the error message about not being permitted to view the box as expected.

QR-Code with Box in base 2: '0a85f8d3bc751ce1469bd357e56e922'

Staying on /qrreader with the error message about not being permitted to view the box as expected.

QR-Code with Box in base 3: 'dc89000023e5fe7148bfd77bc9ddbfb'

Directed to BoxView as expected (http://localhost:3000/bases/3/boxes/4884878)

QR-Code connected to soft-deleted Box in base 1: You have to delete a box first through dropapp or set the deleted value in stock for a box

I set the deleted-value for the box with QR code dc89000023e5fe7148bfd77bc9ddbfb and I'm directed to BoxView. Not sure what's supposed to happen since nothing's written in the test plan either.

legacy QR-Code connected to Box in base 1: I do not know yet how to recreate this, but I checked production and there are only 5 InStock Boxes left in Nea Kavala that are still relevant for this case.

Did not test this.
I also tested "User scans QR code where hash is not found in db" and "User scans QR code and server returns unexpected error" and they work as expected.
Approved :+1:

 2.0 ResolveHash forwarded from dropapp (use case of scannning with external QR-Reader)

OK. I just tested this by generating a few new QR codes after creating a new base (Boxaid - Malta). When trying to scan those, I got an unspecified error message "error - something went wrong!". This is for God Admin.
I am going to guess the staging seed will reset soon so I will let you try and replicate it on your own in staging. @HaGuesto

@HaGuesto I'm a bit confused. When a box is deleted in Dropapp, I'll get a 403 on the desktop app: (Sentry #2d06c7f2ee0e49a6b6d9540287516c08). However, if I scan in on an external scanner it will load. Not sure if that is what you intended to do.


ng add not working in Angular Workspace project

Description
Trying to add angular material in an Angular workspace mono repo project, Getting Bootstrap call not found err after the npm packages got installed.
Reproduction
Steps to reproduce:

run ng add @angular/material in an angular workspace project.

Expected Behavior
Should add and update all the necessary files.
Actual Behavior
ng add @angular/material
Skipping installation: Package already installed
? Choose a prebuilt theme name, or "custom" for a custom theme: Purple/Green       [ Preview: https://material.angular.io?theme=purple-green ]
? Set up global Angular Material typography styles? Yes
? Set up browser animations for Angular Material? Yes
UPDATE package.json (1510 bytes)
✔ Packages installed successfully.
Bootstrap call not found
Environment

Angular: 12.1
CDK/Material:  12.2
Browser(s):  N/A
Operating System (e.g. Windows, macOS, Ubuntu): Windows

@lenonMax @jonesprabu It would be difficult to debug this without being able to reproduce it. Could either of you upload a demo angular application that fails when ng add is run?
Also, could you let us know what version of the angular CLI you are using? You can check by running ng version

Thanks for your attention.The version of angular CLI I used is 13.3.2,after running ng add it add<EMAIL_ADDRESS>to my project.json.

I've had the same issues, it seems that there is no plan to support monorepos as part of the schematic.
So, I suggest to do some manual work :/


1.19.3 Update

Plugin Version:
3.6.1
Describe The Bug:
On the new mc version 1.19.3 the plugin works but there are some errors reporting in console.
How To Reproduce:
Update your server to 1.19.3
Screenshots/Error Log:
[ERROR] [BetterRTP] The particle 'EXPLOSION_NORMAL' created a fatal error when loading particles! Your MC version isn't supported!

For now disable particles in effects.yml

This is due to particles changing names https://minecraft.fandom.com/wiki/Particles
Changing them on the file won't work as the code must be updated

Fixed in 3.6.2 :)


[PRCA][Technical] Refactor the ReportProcessor to a module

Try providing some language reference next time, to simplify reviewing. i.e. http://www.howtogeek.com/203778/how-scopes-affect-powershell-scripts
LGTM


FR: Replace any with unknown

API has tons of any type arguments.
While it is a valid TypeScript, it doesn't force the strictest TypeScript rules such as no-explicit-any.
I think replacing any with unknown makes typings more reliable.

I can look into it. I think some of them might be breaking changes (or at least cause builds to fail) for plugins so I would be hesitant to replace all of them. There's also quite a lot and we have to go through it in code since it's generated, so this might take a while.

But thanks for the request, it's good to know that unknown is a better alternative to any these days, I wasn't aware of the difference until I did some reading!

I agree it might be a breaking change, but, in my opinion,

It totally worth it as it improves the code quality
The fixes for the plugin developers required are relatively easy and we can document them in the migration guide.
You can totally involve me at any stage for testing and writing migration documentation, etc, if you see any use of my skills.

We'll be making some improvements for the next public release.


Add feature, map_get and map_put to LensExt

This feature is useful in cases where you only want to map the getter/setter individually.
For example, when you want to pass a String to a custom widget, except you want to format it before it's received.

I am not sure how useful it is:
Foo::foo.map(|x| x.clone(), |x, y| ...);
Foo::foo.map_put(|x, y| ...);

Foo::foo.map(|x| ..., |x, y| *x = y.clone());
Foo::foo.map_get(|x| ...);


Bugfix/maguire7/mili mysteries rc

Description
Getting changes from #4219 into RC.

Dev branch accepted. Force merging.


rTorrent: Improve session saving

This commit improves session saving support for rTorrent to prevent unnecessary loss of torrent files. It also increases the session saving interval from 20 minutes to 1 hour to reduce disk i/o usage with thousands of torrents. Session saving is a very intensive task. Torrents fail to save into session by default when added and can be lost if a crash occurs between saving intervals.

Sessions still aren't saving for me even though my pod runs for hours on end. Every time the pod gets remade (for reasons unrelated) I have to rescan every single Torrent in full.

Sessions still aren't saving for me even though my pod runs for hours on end. Every time the pod gets remade (for reasons unrelated) I have to rescan every single Torrent in full.

It's not related to this pull request. All it does is override the default session saving intervals. I would file a bug report elsewhere.

BTW the session saving issue on my end was addressed by switching from underlying storage from NAS connected via SMB, changing that to NFS (v3 in my case for both of those protocols). So just wanted to let you know @stickz for other humans that might get stuck too :)


Dev

First stable Windows version. Run win_setup.bat for setup. It does not have colored output or music, but at least it works. Since this moment, there will be three separate branches based on dev branch. One for each operating system.

It's looks like kluge. Can we make a single main file for both OS?

It's looks like kluge. Can we make a single main file for both OS?

No, it will be more difficult to maintain due to differences in versions. The further we go, the more significant they will be. If we plan to work with Windows cmd API, we will need toi separate main files.

Why do we keep data in home directory instead of a program files or application data?

It is one of the possible approaches. For example, JetBrains Fleet stores its settings and some files in home directory. I am planning to add customization, and, if there are diferent users, they might want to customize theie applications independently.

I still request merging


bugfix: 调用GSE接口未就绪时报错问题 (fixed #74)

Codecov Report

Merging #81 (2f7bef8) into V1.0.X (49e9337) will decrease coverage by 0.04%.
The diff coverage is 5.88%.

@@            Coverage Diff             @@
##           V1.0.X      #81      +/-   ##
==========================================
- Coverage   53.61%   53.56%   -0.05%
==========================================
  Files         177      177
  Lines        8619     8627       +8
==========================================
  Hits         4621     4621
- Misses       3998     4006       +8

Impacted Files
Coverage Δ

apps/gsekit/migrate/handlers.py
21.62% <0.00%> (-0.48%)
:arrow_down:

...kit/pipeline_plugins/components/collections/gse.py
39.21% <0.00%> (ø)

apps/gsekit/process/handlers/process.py
18.20% <0.00%> (-0.16%)
:arrow_down:

apps/gsekit/process/exceptions.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49e9337...2f7bef8. Read the comment docs.


Ignore subject line length error for mod update

Renovate commit may be longer due to long module name.
e.g. Update module github.com/pion/transport/v2 to v2.0.1 exceeds 50 chars
Reference issue
Fixes #57

Oh finally :-) Thanks a lot! The CI commit message linter was really bugging me a lot..


TypeError: Cannot read property 'prototype' of null

Describe the bug
Throw exception when react-query revalidate (window focus feature). Data of fetch API is good but has error from utils.js and query.js
To Reproduce
Steps to reproduce the behavior:

Get data when page loaded
Unfocus current window
Focus again tab
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

Desktop (please complete the following information):

OS: Window
Browser: Edge, Safari
Version: latest

Please provide a minimal reproducible example, preferably in codesandbox.

Please provide a minimal reproducible example, preferably in codesandbox.

Hi, I think I found the problem.
In utils.js file, we have "isPlainObject" function and this is detail of it
export function isPlainObject(o) {
  if (!hasObjectPrototype(o)) {
    return false;
  } // If has modified constructor

  var ctor = o.constructor;

  if (typeof ctor === 'undefined') {
    return true;
  } // If has modified prototype

  var prot = ctor.prototype;

  if (!hasObjectPrototype(prot)) {
    return false;
  } // If constructor does not have an Object-specific method
``

  if (!prot.hasOwnProperty('isPrototypeOf')) {
    return false;
  } // Most likely a plain Object

  return true;
}

When my response has a "constructor" property in object. example
response = {
code: 200,
data: {
   sample: {  constructor: null }
}
}

Then we have exception at "var ctor = o.constructor;" and "var prot = ctor.prototype;"
=> we don't have anything to check constructor is primary value?
Of course, I must change my response

Hi, I think I found the problem.
In utils.js file, we have "isPlainObject" function and this is detail of it
export function isPlainObject(o) {
  if (!hasObjectPrototype(o)) {
    return false;
  } // If has modified constructor

  var ctor = o.constructor;

  if (typeof ctor === 'undefined') {
    return true;
  } // If has modified prototype

  var prot = ctor.prototype;

  if (!hasObjectPrototype(prot)) {
    return false;
  } // If constructor does not have an Object-specific method
``

  if (!prot.hasOwnProperty('isPrototypeOf')) {
    return false;
  } // Most likely a plain Object

  return true;
}

When my response has a "constructor" property in object. example
response = {
code: 200,
data: {
   sample: {  constructor: null }
}
}

Then we have exception at "var ctor = o.constructor;" and "var prot = ctor.prototype;"
=> we don't have anything to check constructor is primary value?
Of course, I must change my response

We could improve this a bit, but it's very edge case I think. If you can find a workaround, then that's great, otherwise, I'd be open to reviewing a PR to make this better in the future.

We could improve this a bit, but it's very edge case I think. If you can find a workaround, then that's great, otherwise, I'd be open to reviewing a PR to make this better in the future.


Latexes in space

when they spawn in Beyond Earth dimensions, they quickly die and respawn again, causing lag

Would it make sense for the latex alien to be able to survive on the other planets? I was thinking about it while writing a fix for the spawning issue.

Would it make sense for the latex alien to be able to survive on the other planets? I was thinking about it while writing a fix for the spawning issue.

This was added as an optional feature with datapacks in 88ba8c03882196995ed313607e38628cd210bfdc


Add support of pyproject.toml for configuration

[x] I have searched the issues of this repository and believe that this is not a duplicate.
[x] I have searched the documentation and believe that my question is not covered.

Use pyproject.toml to load configuration variables as an alternative to env variables:

POETRY_DONT_LOAD_DOTENV
POETRY_DOTENV_LOCATION

[tool.poetry.dotenv]
ignore = true
location = "...."

Also, it makes sense to align config keys:

POETRY_DONT_LOAD_DOTENV -> POETRY_DOTENV_IGNORE
POETRY_DOTENV_LOCATION -> POETRY_DOTENV_LOCATION


Preview of removing most pre/mid generation changes

First commit is manual changes; the rest are from running the generator. (I've split it by API, but I regenerated everything.)
The options are available in the head commit of https://github.com/jskeet/googleapis/tree/generator-options
(The commit hash itself may change over time as I try to keep the branch just one ahead of the main head.)

Great :) Will leave this PR here for now as the first commit is handy... we can always close the PR but leave the branch if it looks like it'll get in the way.

This is now all completed.


Android/iOS deeplink not working due to URI fragment

I am super excited to see a dedicated flutter package for Supabase! Kudos for that 👏
Has anyone gotten deeplinks to work on Android and iOS @phamhieu ?
I report this, expecting it not to work. Should it somehow work for you, I will be glad to scrutinize a working example until I get mine to work.
I just can't deeplinks to work on Android (and iOS probably as well). I came across this bug in April, when I tried to enable the deeplink logins with Supabase.
There is a bug inside Flutter, where it ignores the URI fragment, which Supabase uses by design choice, e.g. my-url.com?queryParam=unrelatedToSupabase#accessToken=...
Everything after the URI fragment (#, also called anchor) gets cut from the deeplink URL.
Here is the related issue: https://github.com/flutter/flutter/issues/80666
and PR that hopefully fixes it: https://github.com/flutter/engine/pull/26185
On web everything should be working and I am using it for my project daily 💯
Steps to reproduce:

Configure Deeplinks
Set deeplink (might be required) in Android App Info
Correctly configure redirect URLs
Login with Gitlab or similar
App reopens via deeplink
Doesn't have accessToken

Debug log:
I/flutter ( 5229): onReceivedAuthDeeplink uri: https://studyu-designer.codemagic.app/#/%23access_token=...
I/flutter ( 5229): ***** onErrorAuthenticating: No access_token detected.

the example with GitHub login works fine, did you get a chance to check that code?

@himeshp That is awesome. I got the example working as well.
But something is wrong. I am using an http/https deeplink address to get it working. Does your deeplink trigger a different type of Flutter function, which does not remove the hashtag/URI fragment?
Working debug:
onReceivedAuthDeeplink uri: io.supabase.flutterdemo://login-callback#access_token=...

hey, I have not got a chance to check the code yet. I just checked the sample code for reference purposes.
I am waiting for the support of native pop-up support for apps, to start further using supabase as backend.
maybe @phamhieu can further guide here.

Conclusion
The supabase_flutter package is handling deeplinks using the uni_links package. This has its own platform specific code, to handle deeplinks, thus not relying on the Flutter engine code.
Therefore deeplinks work here without a Problem.
I thank @phamhieu for developing this awesome plugin. This will help me finally achieve deeplinks on Android and iOS and not having to wait for the flutter framework fix to be deployed.
Furthermore the Singleton approach to initializing Supabase is much better than my global variable I am currently using.
So thanks a lot.


PHP 7.2.0 Issue on NestableService.php

I upgrade to PHP 7.2.0 and facing this error
count(): Parameter must be an array or an object that implements Countable on vendor/atayahmet/laravel-nestable/src/Services/NestableService.php line 406
Then to fix this, I change this
if (count(func_num_args()) < 3) {
    $data = $this->data;
    $key = $this->parent;
    $value = current(func_get_args());
}

into this
if (func_num_args() < 3) {
    $data = $this->data;
    $key = $this->parent;
    $value = current(func_get_args());
}

Let me know if there is a better solution. Thanks.

Hi @wakamin
Fixed. Thank you for contribution. Update the package.


Search fails for char+combining_char when char is a [class]

Steps to reproduce
The following will find e̅ (U+0065,U+0305, i.e., a lowercase e plus combining overline):
/e[\u0305]
/\v(d|e|f)[\u0305]
whereas the following do not:
/[\u0065][\u0305]
/[def][\u0305]
This appears to be a specific issue for classes, i.e., where the char is not expressed as the literal character, of char+combining_char searches.  Further examples are provided in the .gif that follows, which shows that the same issue occurs for variation selectors, but the examples above sum it up: if there is a [class] for the first/main char it will not find char+combining_char. Note, not shown, \a, instead of [A-Za-z], similarly fails.

Expected behaviour
/[\u0065][\u0305] and /[def][\u0305] should find  e̅ just as /e[\u0305] and /\v(d|e|f)[\u0305] do.
Version of Vim
9.0.1488
Environment
Windows 10 gvim, though really the issue is not O/S related (noting the same results occur in WSL running Debian 11 and vim 8.2.5172).
Logs and stack traces
No response

Steps to reproduce
The following will find e̅ (U+0065,U+0305, i.e., a lowercase e plus
combining overline):
/e[\u0305]
/\v(d|e|f)[\u0305]
whereas the following do not:
/[\u0065][\u0305]
/[def][\u0305]
This appears to be a specific issue for classes, i.e., where the char
is not expressed as the literal character, of char+combining_char
searches.  Further examples are provided in the .gif that follows,
which shows that the same issue occurs for variation selectors, but
the examples above sum it up: if there is a [class] for the first/main
char it will not find char+combining_char. Note, not shown, \a,
instead of [A-Za-z], similarly fails.

Expected behaviour
/[\u0065][\u0305] and /[def][\u0305] should find  e̅ just as
/e[\u0305] and /\v(d|e|f)[\u0305] do.

Is that really expected?  I'm not sure what the behavior should be.
Searching for just "e" doesn't match the character either, which can
also be unexpected.
I doubt this can be changed without causing something else to work in an
unexpected way.  There is no universal specification of how patterns
match on combining characters, we can have a very long discussion about
how it should work.  And whatever changes we might decide to make, is
not going to be backwards compatible.  Therefore I tend to just leave it
alone.
--
When a fly lands on the ceiling, does it do a half roll or
a half loop?
/// Bram Moolenaar -- @.*** -- http://www.Moolenaar.net   \
///                                                                      \
\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Searching for just "e" doesn't match the character either, which can also be unexpected.

That's why we have the \Z and \%C modifiers for the pattern.
I would also think it's a bug, at least [e][\u0305] should work the same as e[\u305] I think.

Is that really expected? I'm not sure what the behavior should be. Searching for just "e" doesn't match the character either, which can also be unexpected. I doubt this can be changed without causing something else to work in an unexpected way. There is no universal specification of how patterns match on combining characters, we can have a very long discussion about how it should work. And whatever changes we might decide to make, is not going to be backwards compatible. Therefore I tend to just leave it alone.

Thanks, though yes, I think most people would expect it to work like that. To illustrate, the alphabetic examples can be worked around with something like this (ugly) substitution, turning those combined characters into to hexadecimal character references:
%s_\v(a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z)([\u0300-\u036F])_\=printf("&#x%04x;&#x%04x;", char2nr(submatch(1)), char2nr(submatch(2)))_gi

However, why should this substitution, which is synonymous, not work?
%s_\v([[:alpha:]])([\u0300-\u036F])_\=printf("&#x%04x;&#x%04x;", char2nr(submatch(1)), char2nr(submatch(2)))_g

As the help says (pattern.txt), "A character class expression is evaluated to the set of characters belonging to that character class", which objectively is not what is happening in the second substitution.
And, although it is an annoyance for alphabetic characters, at least the first one (a|b|c...) can be used, whereas for emoji (https://unicode.org/Public/emoji/15.0/emoji-test.txt) it gets more cumbersome and uglier ...
%s_\v(♨|☘|✈|🛩)([\uFE0F])_\=printf("&#x%04x;&#x%04x;", char2nr(submatch(1)), char2nr(submatch(2)))_g

This does work, and could be extended to work for 100+ emoji that may have a combining VARIATION SELECTOR-16. But including those literally in that first parenthetical grouping seems really inefficient and inconvenient. More importantly, it would be impossible to account for any character that has a variation selector because then you would need tens of thousands of literal characters in that first parenthetical group. The consequence of that is any global replace on characters where they have a variation selector of any form will "break" the combined character, e.g., %sm_\([\U10000-\U10ffff]\)_\=printf("\\U%08x", char2nr(submatch(0)))_g would be fine for substituting non-combined Unicode characters between U+10000 and U+10FFFF but would remove/delete any combining character altogether.
Ideally, where the combining character is in either the range U+0300 to U+036F (https://www.unicode.org/charts/PDF/U0300.pdf) or the range U+FE00 to U+FE0F (https://www.unicode.org/charts/PDF/UFE00.pdf), the first character in the combination should be searchable with a range/class too, not only with literals. However, if that would potentially break something and/or create backwards compatibility issues, I think help on the topic is worth adding, explaining the limitation/exception. That help could even show some workaround examples I have outlined here?

Searching for just "e" doesn't match the character either, which can
also be unexpected.

That's why we have the \Z and \%C modifiers for the pattern.
I would also think it's a bug, at least [e][\u0305] should work the
same as e[\u305] I think.

For this specific pattern, yes.  But what if the "[e]" part has a
combining character?  I suspect the implementation checks if there are
no following combining characters to avoid a false match when the
patterns ends after "[e]".  Also, having part of the pattern match after
a base character is going to be hard to get right.  We don't have a way
to specify part of the pattern must match on the base character and
another part must match a following combining character.
Perhaps it can be improved a little bit, but I doubt it can be made work
in general and without making it very hard to understand.
--
Anyone who is capable of getting themselves made President should on no
account be allowed to do the job.
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
/// Bram Moolenaar -- @.*** -- http://www.Moolenaar.net   \
///                                                                      \
\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Hi.  This issue has been quiet for a few months.  While I was working on something else, I found a fair workaround.  That is, preprocessing all combining characters in a buffer to another form (such as hexadecimal character references). That way, substitutions may then be run on classes for one or both the character and/or the combining character(s).
Documentation and plugin - vim-combining2.
Should the issue be closed?  There are aspects of it that I still thing are buggy - echoing @chrisbra's point, "I would also think it's a bug, at least [e][\u0305] should work the same as e[\u305]".
But, if it's going nowhere there's no point keeping it open.  Thoughts?

:set re=1, and use /[e]̅ (or /[e]\%u0305, /[e][\u0305], /[def][\u0305]; or /e\%C, /\Ze) to match e̅.
In summary, :set re=1, and:

match a base character 'b' with /[b]
match a combining character 'c' with just /c
match a base character 'b' followed by a combining character 'c' with /bc (or /[b]c if there may be more combining characters after 'c')
substitute a base character 'b' with :s/[b]/X/g
substitute a combining character 'c' with :s/[^c]\?\zs[c]/X/g. Not sure if there is a better or more concise way. And this does not work if c is a second or more combining character. So use an external tool instead (e.g. !sed 's/c/X/g')


typo

There is a typo in the last line of readme.

Is it the license line?

Yeah

Nice theme by the way


A task depends on a CustomExecution task does not stop when the CustomExecution task fails

Does this issue occur when all extensions are disabled?: n/a

Version: 1.67.1 (user setup)
Commit: da15b6fd3ef856477bf6f4fb29ba1b7af717770d
Date: 2022-05-06T12:37:03.389Z
Electron: 17.4.1
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19044

Steps to Reproduce:

task.json

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "test task 1",
            "dependsOn": [
                "teamsfx: ngrok start",
                "next task"
            ],
            "dependsOrder": "sequence"
        },
        {
            "label": "test task 2",
            "dependsOn": [
                "fail",
                "next task"
            ],
            "dependsOrder": "sequence"
        },
        {
            "label": "fail",
            "command": "exit 1",
            "type": "shell"
        },
        {
            "label": "next task",
            "command": "echo next task",
            "type": "shell"
        },
...

teamsfx: ngrok start implementation in my extension.
export class NgrokStartTaskTerminal implements vscode.Pseudoterminal {
  ...
  open(initialDimensions: vscode.TerminalDimensions | undefined): void {
    this.closeEmitter.fire(1); // exit 1 immediately
  }
}

  const execution = new vscode.CustomExecution(async (): Promise<vscode.Pseudoterminal> => {
    return new NgrokStartTaskTerminal();
  });

   // create the task
  const task = new vscode.Task(
    { type: "teamsfx" },
    workspaceFolder,
    "ngrok start",
    "teamsfx",
    execution,
    "custom problem matcher",
  );
  // The custom execution is a background task and uses problem matcher to finish.
  task.isBackground = true;

Run test task 2, it fails and next task is not executed. This is expected.

Run test task 1. teamsfx: ngrok start fails but next task is still executed.

I assume CustomExecution will behave the same as ShellExecution in terms of failure behavior. So I expect next task will not be executed in this case.

You are right @alexr00 when it's a background task, this is what's getting returned and always has an exit code of 0
https://github.com/microsoft/vscode/blob/4b7c904db174fbec85b2aaf5caa5fbe742b5d80d/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts#L594-L595

Just tried it out and I also can't reproduce it.
@a1exwang could you try this out in VS Code insiders and see if the issue still occurs there?

@a1exwang could also be something with your setup - I noticed that if a task is missing a property - like label - it doesn't run or report failure. You'd need to look in the Task output channel


Can still drag when dnd-disable-if = true in some cases

I'm having an issue with drag-able items still being dragged even if their dnd-disable-if= true.
Dragging the parent element itself is not possible, but say I have a span tag inside of a parent div.  I can highlight the span element content and then proceed to drag the div container as if nothing was disabled.
I then tried to add some css rules to the div: user-select:none.   Now I can't highlight that span tag content (which isn't a solution as my users need to highlight that content occasionally) but I can still highlight the whole parent div section (it looks like it's highlighting the background) and then move the div as if it wasn't disabled again.
Here's a JSFiddle example: https://jsfiddle.net/c16586nj/8/
The reds are not to be drag-able, greens can.  I've disabled user-select on the inner span tags, but if you highlight the a whole row, you can move any of the disabled items.

I should probably check for dnd-disabled-if in the dragstart handler again (or just check the draggable attribute)


Support systemd OSs

I'm running kubernetes on CoreOS, none of the paths in sources.kubernetes or sources.docker exist on my system. I've been told that there's a systemd plugin for fluent. How can this be folded into the current image? Should we create a new env var, should it try to be smart?

@flah00 : right now we only use the tail plugin.  Do the logs not exist on the file system at all? Perhaps they are in a different path, in which case, you would just need to update the configuration and mounts to the appropriate path.

@frankreno The logs exist, but systemd uses a binary log format, so the resulting files aren't readable by the tail.

The plugin, for systemd, depends on libsystemd. Alpine doesn't offer any support for systemd. It seems like the fluent folks have settled on building two images, one debian and one alpine, to work around this problem. How does this project feel about that route?

This is a problem for all new GKE users as google is deprecating their debian based node image and moving to COS which uses systemd. What is the status of your poc @flah00 ?

I've got a working poc, which the sumo folks need to review.

Yep seems to work, i've got it deployed and both systemd and file mode are going for me. Thanks for your work.

@nhoughto -- Do you have 2 daemonsets deployed to get both file logs and systemd logs?

Hmm nope just systemd since all my nodes are running a systems host OS (GKE COOS). Am I missing some logs by not doing both?
On 1 Aug 2017, 4:22 AM +1000, Philip Bjorge<EMAIL_ADDRESS>wrote:

@nhoughto -- Do you have 2 daemonsets deployed to get both file logs and systemd logs?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@nhoughto -- Not sure. It seems like on our kops nodes, the kubelet logs are going to journald, so was wondering if you had to handle something similar.


add docs on HW debugging CPX

Adds public documentation on how to HW debug CPX with GDB and edit .cpp

there's also this: https://github.com/microsoft/pxt-adafruit/blob/master/docs/gdb.md
I think it's mostly outdated, should be replaced with a link to your new document. It also says that you can have common GND through the USB, but this doesn't always work, so probably we shouldn't talk about it.
you can try pxt gdb -tui - this runs GDB text-mode UI.


Python 2 compatible

This pull request add input support for python2

int.from_bytes is  not supported by Python2 @sayem314

I see. Can't we use this method: https://stackoverflow.com/questions/30402743/python-2-7-equivalent-of-built-in-method-int-from-bytes @mukund26

yes we can @sayem314


Suppport whiteboards

Hey! @YU000jp
I love your plugin and I have really enjoyed using it!
Though, when adding an page to an whiteboard, it does not separate the hierarchy part!

Here is an example ^

Here is how I would do it ^
Sincerely,
jh-devv

I want to make that happen too.
Since I am not a user of the whiteboard function, I will first need to recreate it based on the screenshots you provided and figure out the layout.
I will be working on this in between my business trips so progress will be a little slow.

I want to make that happen too.
Since I am not a user of the whiteboard function, I will first need to recreate it based on the screenshots you provided and figure out the layout.

Thanks!

I will be working on this in between my business trips so progress will be a little slow.

No problem, take your time!

I want to make that happen too.
Since I am not a user of the whiteboard function, I will first need to recreate it based on the screenshots you provided and figure out the layout.

Thanks! @YU000jp

I will be working on this in between my business trips so progress will be a little slow.

No problem, take your time!

I made it like this.

I released a new version. Please update, and let me know if it works as expected.

Yup! Thanks


Update sql-quiz.ts

Checklist:

[ ] I have read freeCodeCamp's contribution guidelines.
[ ] My pull request has a descriptive title (not a vague title like Update index.md)

Closes #XXXXX

updated as requested @jdwilkin4

updated as requested

In the future, if changes are requested you can push up those changes to the same PR without having to create a new one 👍


Bracket of the autocomplete   is not summarized on VSCode

I import Rhino with python.
However, some of the autocompletions are not summarized.
For example, Rhino.Collections and Rhino.Geomatory are not represented.
The same is true for Grasshopper.
How can I solve this problem?
this is My setting.json
Setting>>Python › Auto Complete: Extra Paths setting.json
"python.autoComplete.extraPaths": [
        "/Users/user_name/.pyenv/versions/2.7.18/lib/python2.7/site-packages"
		],
"python.autoComplete.addBrackets": true

mac OS BigSur 11.6
Rhinoceros Ver7.7

Grasshopper Ver1.0.0007

VS Code Ver1.57.1
python 2.7.18(local )

env_name: ghremote

Rhino.Geometry is a namespace in RhinoCommon. This is similar to a module inside of a package in python. You would need to
import Rhino.Geometry as rg
in order to get completions

Thanks
Indeed,
from Rhino import Geometry as rg
will Importing
The same is true for the other modules.
But I  can't call it after Rhino.•••• like in README.md.
Is that correct?
Add setting
I read https://github.com/mcneel/pythonstubs/issues/7#issuecomment-847415451
I changed settig.json

python.analysis.extraPaths

Add paths to stub folders as additional modules

"python.analysis.extraPaths": [

"/Users/user_name/.pyenv/versions/2.7.18/lib/python2.7/site-packages"

],

changed folder name
Rhino-stub ---> Rhino


Different _settings.scss files available from Zurb

Hi,
Why is the _settings.scss file (most recent) downloaded from
https://raw.githubusercontent.com/zurb/foundation-sites/master/scss/settings/_settings.scss
see included file: _mostrecentsettings.scss
different from the _settings.scss created by Yeti Launch Version 1.0.1 (1.0.1)?
see included file: _yetilaunchadvancedsettings.scss
Compare, see included file: _settings compare.pdf
Thanks in advance,
Peter Touw
foundation - settings files.zip

There's a known issue with Yeti Launch not correctly downloading the latest settings file. We're working on it!


System.InvalidOperationException: Sequence contains no elements

Hi, Thank you in advance for your support, I downloaded the sample here and when I try to run the app on Android device I get this error:
01-30 17:43:32.906 I/MonoDroid(24977): System.InvalidOperationException: Sequence contains no elements
01-30 17:43:32.906 I/MonoDroid(24977):   at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00067] in /Users/builder/data/lanes/3511/77cb8568/source/mono/mcs/class/referencesource/System.Core/System/Linq/Enumerable.cs:956
01-30 17:43:32.906 I/MonoDroid(24977):   at SharpCaster.Simple.Android.MainActivity+<OnCreate>d__3.MoveNext () [0x00108] in D:\R&D\ChromeCast\SharpCaster-master\SharpCaster.Simple.Android\MainActivity.cs:27
01-30 17:43:32.906 I/MonoDroid(24977): --- End of stack trace from previous location where exception was thrown ---
01-30 17:43:32.906 I/MonoDroid(24977):   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/3511/77cb8568/source/mono/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143
01-30 17:43:32.906 I/MonoDroid(24977):   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>m__0 (System.Object state) [0x00000] in /Users/builder/data/lanes/3511/77cb8568/source/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1018
01-30 17:43:32.906 I/MonoDroid(24977):   at Android.App.SyncContext+<Post>c__AnonStorey0.<>m__0 () [0x00000] in /Users/builder/data/lanes/3511/ce955cc0/source/xamarin-android/src/Mono.Android/Android.App/SyncContext.cs:18
01-30 17:43:32.906 I/MonoDroid(24977):   at Java.Lang.Thread+RunnableImplementor.Run () [0x0000b] in /Users/builder/data/lanes/3511/ce955cc0/source/xamarin-android/src/Mono.Android/Java.Lang/Thread.cs:36
01-30 17:43:32.906 I/MonoDroid(24977):   at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in /Users/builder/data/lanes/3511/ce955cc0/source/monodroid/src/Mono.Android/platforms/android-24/src/generated/Java.Lang.IRunnable.cs:81
01-30 17:43:32.906 I/MonoDroid(24977):   at (wrapper dynamic-method) System.Object:929f411e-8fc2-491e-9019-1fb85cdf3b59 (intptr,intptr)
01-30 17:43:32.927 W/art     (24977): JNI RegisterNativeMethods: attempt to register 0 native methods for android.runtime.JavaProxyThrowable
01-30 17:43:32.931 D/Mono    (24977): DllImport searching in: '__Internal' ('(null)').
01-30 17:43:32.932 D/Mono    (24977): Searching for 'java_interop_jnienv_throw'.
01-30 17:43:32.932 D/Mono    (24977): Probing 'java_interop_jnienv_throw'.
01-30 17:43:32.932 D/Mono    (24977): Found as 'java_interop_jnienv_throw'.
An unhandled exception occured.

01-30 17:43:33.950 E/mono    (24977):
01-30 17:43:33.950 E/mono    (24977): Unhandled Exception:
01-30 17:43:33.950 E/mono    (24977): System.InvalidOperationException: Sequence contains no elements
01-30 17:43:33.950 E/mono-rt (24977): [ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Sequence contains no elements

What can I do?

Hey,
Did you run the sample on emulator or a phone? That error basically means that it didn't find any chromecasts from the network

Running from the phone.
I can see 2 chromecast devices we have in the office using other apps with chromecast support or even the Android Cast Screen feature.
Is there anything missing from me? I just pulled the project, opened it in VS2015, restored nuget packages (without updating them) and run on android. As soon as it opens, after 1 or 2 seconds it crashed, I debugged and got that error message.
Also, if that's because there are no devices detected in the network, shouldn't it handle that? what about a user with no cast devices? where can I handle this exception? the error doesn't point me to any file.
Thanks in advance for any help!

What do you mean by being connected to the cast device first?
You mean being connected to device before commanding it?


Fix for GEOMESA-3182

Fixed https://geomesa.atlassian.net/browse/GEOMESA-3182
Corrected the version check so the Jute jar is installed.

Thanks for fixing this! Before I merge, could you sign the eclipse contributor agreement to ensure that our apache license is maintained? thanks again! https://github.com/locationtech/geomesa/blob/main/CONTRIBUTING.md#eclipse-contributor-agreement

Signed.

thanks again!

Sure thing.. You've been so helpful, the least I could do is return the favour.I do have a couple of further questions I'm saving up too.. ;) On 8 Mar 2022 12:43 am, Emilio @.***> wrote:
Thanks for fixing this! Before I merge, could you sign the eclipse contributor agreement to ensure that our apache license is maintained? thanks again! https://github.com/locationtech/geomesa/blob/main/CONTRIBUTING.md#eclipse-contributor-agreement
—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.***>


feat: enhance shutdown process for demotion of the cluster

This patch enhances the shutdown process for demoting a primary cluster in CloudNativePG by:

Introducing the shutdownCheckpointToken in the Cluster status, containing information in JSON format retrieved from pg_controldata. This includes the database system identifier, latest checkpoint's TimeLineID, latest checkpoint's REDO location, latest checkpoint's REDO WAL file, and the time of the latest checkpoint.
Archiving the checkpoint REDO WAL file (which contains the shutdown checkpoint) as a .partial file. This facilitates the controlled promotion of a replica cluster by relying solely on the WAL archive.

Note that this implementation does not cover the hibernation case, which will be addressed in a separate patch.
Closes #3790
Closes #4586

/test limit=local

/test limit=local

/test limit=local

/test limit=local

E2e: https://github.com/EnterpriseDB/cloudnative-pg/actions/runs/9566577472

E2e tests are fine. I started another run here: https://github.com/EnterpriseDB/cloudnative-pg/actions/runs/9571998035

/ok-to-merge


Custom Toggle Suggestion Keyboard Shortcuts not work in Jupyter Notebook .ipynb file

Bug: Notebook Editor, Interactive Window, Editor cells
I'm trying to change the Toggle Suggestion Keyboard Shortcuts from ctrl + space to alt + right.
It's not effect in Jupyter Notebook .ipynb file, but works well in C# .cs file. I think it's a bug of Notebook Editor.
Steps to cause the bug to occur

Actual behavior
Not toggle suggestion.
Expected behavior
Toggle suggestion by custom shortcuts.
Your Jupyter and/or Python environment
Please provide as much info as you readily know

Jupyter server running: Local

Extension version: 20YY.MM.#####-xxx

VS Code version:

Setting python.jediEnabled: true | false

Python and/or Anaconda version:

OS: Windows | Mac | Linux (distro):

Virtual environment: conda 4.8.3

Developer Tools Console Output

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer

Unfortunately this is a side effect of the python extension implementing the notebook editor. We don't have all of the shortcuts from VS code being used.
This work item tracks us switching to an upcoming addition to VS code - native notebook support. This work item will support all the normal VS code shortcut keys:
#10496

Got it.

Thanks for your feedback. This issue will likely be addressed once VS Code adds native support for editing notebooks. Please see https://github.com/microsoft/vscode/issues/91987.


Add CoffeeScript

Repro steps:

npm init svelte@next
Edit svelte.config.cjs so sveltePreprocess looks like this:
preprocess: sveltePreprocess({ coffeescript: { bare: true } }),
npx svelte-add postcss
Inspect svelte.config.cjs:

Modifying sveltePreprocess() is a common, yet error-prone process. I think a robust method of adding/merging sveltePreprocess  into svelte.config.cjs is called for. Perhaps as a small NPM package?
Or perhaps instead of using sveltePreprocess() auto mode, the stand-alone mode should be used?

@Leftium are you prepared to transfer your coffeescript-adder repository to me so I can add it to the svelte-add organization (and rewrite it soon enough / eventually with the tools added in https://github.com/svelte-add/svelte-add/commit/82370e8d65c5deb5d1edd4a0e0a95b2ed0eeac95)?

Sure, just let me know what I need to do

Sure, just let me know what I need to do

Go to the repository's settings, select Transfer in the Danger Zone, enter my username babichjacob (not svelte-add because it doesn't let you transfer to an organization you don't belong to), and enter the repository name to confirm.

No more changes than that need to be made by you because references to Leftium/coffeescript-adder are automatically redirected to svelte-add/coffeescript by the transfer. (That means the adder should still work as it currently does until I rewrite it).

You've been sent an invitation to have Maintainer access to the repository. You don't need to do anything else, maybe ever again since it's such a simple adder, since the only thing left is for me to rewrite it.


Matrix multiplication code

Yes I removed the .DS_store file , you can merge it .

@abhay-lal
Congrarts🥳 your PR has been merged.


Can't authorize DNS challenge.

 Press continue to submit to CA. Pass "-v" for more info about
challenges.

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: subdomain.here
   Type:   unauthorized
   Detail: Incorrect TXT record
   "hash-hash-hash.auth.acme-dns.io." found at
   _acme-challenge.subdomain.here

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A/AAAA record(s) for that domain
   contain(s) the right IP address.

(i masked the sensitive data)
using command:
sudo certbot certonly --manual --manual-auth-hook /etc/letsencrypt/acme-dns-auth.py --preferred-challenges dns --debug-challenges -d subdomain.here

Whats wrong now?

I've also encountered this error, @NicoxDJ what do you use for setting the DNS? is it Route 53?

@NicoxDJ I've got it now, it just follow the instructions here https://www.digitalocean.com/community/tutorials/how-to-acquire-a-let-s-encrypt-certificate-using-dns-validation-with-acme-dns-certbot-on-ubuntu-18-04

With the given information no help can be provided.
In general the challenge domain is CNAME to the fulldomain of the acme-dns registration.
acme-dns must be the name server for its domain.
Check with other tools like nslookup or dig that your setup is correct and you retrieve an txt record for the challenge domain.
I wrote my own acme-dns-client that works with certbot and acme.sh.
Please have a look here: https://github.com/maddes-b/acme-dns-client-2
Feedback welcome.


Comment field for suppliers #843

In suppliers routes: added camp manager roles.
Company id verification and error handling added.
Supplier comments feature added.
After new supplier added, page now redirects to the new supplier's page.
Camp names are now sorted in supplier camp edit. - not sure if works, test on staging
The 'close' button after new supplier creation, now redirects to supplier page.
New supplier types added.

Cool!


DBConnection.OwnershipError bug in tests

I've been on a roll today.
Environment

Elixir version (elixir -v): 1.7.4
Database and version (PostgreSQL 9.4, MongoDB 3.2, etc.): PostgreSQL 10
Ecto version (mix deps): 3.0.0
Database adapter and version (mix deps): Postgrex 0.14.0
Operating system: MacOS Mojave

Current behavior
Include code samples, errors and stacktraces if appropriate.
I'm running tests that rely upon Ecto.Migrator to run migrations during tests. After upgrading Ecto to version 3.0 some of my tests now are failing with the following error message:
** (DBConnection.OwnershipError) cannot find ownership process for #PID<0.700.0>.

 When using ownership, you must manage connections in one
 of the four ways:

 * By explicitly checking out a connection
 * By explicitly allowing a spawned process
 * By running the pool in shared mode
 * By using :caller option with allowed process

 The first two options require every new process to explicitly
 check a connection out or be allowed by calling checkout or
 allow respectively.

 The third option requires a {:shared, pid} mode to be set.
 If using shared mode in tests, make sure your tests are not
 async.

 The fourth option requires [caller: pid] to be used when
 checking out a connection from the pool. The caller process
 should already be allowed on a connection.

 If you are reading this error, it means you have not done one
 of the steps above or that the owner process has crashed.

 stacktrace:
   (db_connection) lib/db_connection.ex:766: DBConnection.transaction/3
   (ecto_sql) lib/ecto/migrator.ex:185: Ecto.Migrator.do_run_maybe_in_transaction/3
   (elixir) lib/task/supervised.ex:89: Task.Supervised.do_apply/2
   (elixir) lib/task/supervised.ex:38: Task.Supervised.reply/5
   (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3

Expected behavior
The tests should not error out since my application is running the pool in shared mode. Here is the following setup macro for my application
setup tags do
  :ok = Ecto.Adapters.SQL.Sandbox.checkout(MyApp.Repo)

  unless tags[:async] do
    Ecto.Adapters.SQL.Sandbox.mode(MyApp.Repo, {:shared, self()})
  end

  {:ok, conn: Phoenix.ConnTest.build_conn()}
end

I've confirmed that the async tag is set to true when running the failing test. It looks like the do_run_maybe_in_transaction function includes a call to Task where it previously did not.

Can you please provide a sample application or a sample test that reproduces the error?

Actually, I was able to reproduce it easily. The new migration system now locks the cluster, which means you won't be able to run it concurrently in the tests, not in shared mode nor in manual mode, also because it needs two connections. I need to think what would be the best solution here.

The only option I can think of is to set the sandbox back to automatic mode, but this means your migrations will no longer run inside a transaction and permanently affect the state of your repository. If going in this direction, I would say the best approach is to likely create a new repository that you will use exclusively to test migrations. This may be the desired outcome after all because if you run migrations inside a sandbox, the behaviour cannot really be guaranteed. I will update the CHANGELOG as well, thanks!

So there was a bug in DBConnection that may have been the cause for this. Can you please run mix deps.update db_connection and let us know how it goes?

Based on my reading of the Changelog, what I was doing in my tests is now not possible due to the migrations locking. So I decided to add a task before mix test runs to create those records as fixtures in the db before running the test suite. This solved my problem.


[Hub Generated] Review request for Microsoft.VirtualMachineImages to add version stable/2022-02-14 and stable/2023-07-01

This is a PR generated at OpenAPI Hub. You can view your work branch via this link.
ARM (Control Plane) API Specification Update Pull Request
PR review workflow diagram
Please understand this diagram before proceeding. It explains how to get your PR approved & merged.

[1] ARM review queue (for merge queues, see [4])
The PRs are processed by time opened, ascending. Your PR may show up on 2nd or later page.
If you addressed Step 1 from the diagram and your PR is not showing up in the queue, ensure the label ARMChangesRequested
is removed from your PR. This should cause the label WaitForARMFeedback to be added.
[2] https://aka.ms/azsdk/support/specreview-channel
[3] List of SDK breaking changes approvers in pinned Teams announcement
[4] public repo merge queue, private repo merge queue (for ARM review queue, [1])
If you need further help with anything, see Getting help section below.
Purpose of this PR
What's the purpose of this PR? Check all that apply. This is mandatory!

[ ] New API version. (Such PR should have been generated with OpenAPI Hub).
[ ] Update existing version for a new feature. (This is applicable only when you are revising a private preview API version.)
[ ] Update existing version to fix swagger quality issues in S360.
[ ] Other, please clarify:

edit this with your clarification

Due diligence checklist
To merge this PR, you must go through the following checklist and confirm you understood
and followed the instructions by checking all the boxes:

[ ] I confirm this PR is modifying Azure Resource Manager (ARM) related specifications, and not data plane related specifications.
[ ] I have reviewed following Resource Provider guidelines, including
ARM resource provider contract and
REST guidelines (estimated time: 4 hours).
I understand this is required before I can proceed to Step 2, "ARM Review", for this PR.

Breaking changes review (Step 1)

If the automation determines you have breaking changes, i.e. Step 1 from the diagram applies to you,
you must follow the breaking changes process.
IMPORTANT This applies even if:

The tool fails while it shouldn't, e.g. due to runtime exception, or incorrect detection of breaking changes.
You believe there is no need for you to request breaking change approval, for any reason.
Such claims must be reviewed, and the process is the same.

ARM API changes review (Step 2)

If this PR is in purview of ARM review then automation will add the ARMReview label.
If you want to force ARM review, add the label yourself.
Proceed according to the diagram at the top of this comment.

Viewing API changes
For convenient view of the API changes made by this PR, refer to the URLs provided in the table
in the Generated ApiView comment added to this PR. You can use ApiView to show API versions diff.
Suppressing failures
If one or multiple validation error/warning suppression(s) is detected in your PR, please follow the
Swagger-Suppression-Process
to get approval.
Getting help

For general PR approval workflow, see the diagram at the top of this comment.
For guidance on fixing this PR CI check failures, see the hyperlinks provided in given failure
and https://aka.ms/ci-fix.
If the help provided by the previous points is not enough, post to https://aka.ms/azsdk/support/specreview-channel and link to this PR.

Hi @XiaofeiCao can we get exceptions for the last 3 LintDiff errors: LroErrorContent and DeleteResponseCodes? Our "Triggers_Delete" is setup exactly like "VirtualMachineImageTemplates_Deletes" and there are no lintdiff errors for that one so it's confusing what is actually wrong with it and why it failed.

Breaking changes previously reviewed and approved in https://github.com/Azure/azure-rest-api-specs-pr/pull/15085

it's unclear to me what is wrong with the "ConsistentPatchProperties" LintDiff error also. Help with this would be appreciated.

Hi @zdelacerda-microsoft, the new field "distribute" is only added to ImageTemplateUpdateParameters, it should be added to "ImageTemplate" as well.

it's unclear to me what is wrong with the "ConsistentPatchProperties" LintDiff error also. Help with this would be appreciated.

Hi @zdelacerda-microsoft, the new field "distribute" is only added to ImageTemplateUpdateParameters, it should be added to "ImageTemplate" as well.

This is fixed now. Are we good to merge?

Hi @zdelacerda-microsoft, there're other lint diff errors, I've highlighted them, please check and fix them.

/pr RequestMerge


Change name of dosomething_helpers_isset()

Related to conversation in #5896
Look into changing the name of the function from dosomething_helpers_isset() to dosomething_helpers_get_value() to avoid confusion with core PHP function isset()

@weerd see [ dosomething_user_get_field()] (https://github.com/DoSomething/phoenix/blob/dev/lib/modules/dosomething/dosomething_user/dosomething_user.module#L1023) as a comp/help for this type of function

@angaither I'll take a looksee, but overall aiming to not use entity_metadata_wrapper(). It's the :japanese_ogre:

oh wasn't suggesting that, more so this

Ah, ok! Will do :)

this is changing to use the new data_get() from the TightenCo Collect package which brings us Laravel-like collections.
So this issue just needs to now address going through and updating calls to dosomething_helpers_isset() with data_get().


Not clear how to use this with .graphql files

Please include an example on how to use this lib with schemas defined in .graphql files and not with javascript notation
Found a discussion on this topic here:
http://stackoverflow.com/questions/42353161/how-to-use-graphql-type-json-package-with-graphql

That's an Apollo concept, not a graphql-js one.

Right, but don't you think it's even worth a mention in the read.me?
Like "if you plan to use this with Apollo GraphQL, please refer to blah blah blah""
I just think that it's a question that will keep popping up due to Apollo's growing popularity

If you want to PR docs, go for it. Otherwise the answer is "just like any other custom scalar type in whatever system you're using".

@jay-jlm I too ran into this issue due to my interest in graphql-type-json -- here is a graphql-js solution: https://stackoverflow.com/questions/47824603/graphql-custom-scalar-definition-without-graphql-tools

The following works for me:
types.graphql:
scalar JSON

type User {
  id: String!
  roles: JSON
}

schema.graphql:
# import * from './types.graphql'

type Query {
  user(userId: String!): User
}

Creating the schema:
import GraphQLJSON from 'graphql-type-json';
import { importSchema } from 'graphql-import';
import resolvers from './resolvers';

const typeDefs = importSchema(path.join(__dirname, 'schema.graphql'));

const schema = makeExecutableSchema({
  typeDefs,
  resolvers,
});
schema.getTypeMap()['JSON'] = GraphQLJSON;


build: fix symlink creation

This adjusts the symlink creation so that it always occurs.  This also
allows us to ensure that we wire up the dependency for the swift module
to the symlink creation.  The CMake based build would fail without this
when trying to build dispatch for SourceKit on Linux.

CC: @das

CC @dgrove-oss so, the swift side of the change is ready to go after this change.  We are two commits away from all of the non-Darwin targets being ready to switch over to the CMake build!

Friendly ping @das (for a work day).  This is the last patch holding up the switch over to CMake for the integration with swift.

@das is on vacation ;)

@MadCoder oh, haha!  Thanks for the assist!


Repo Refresh

Repo Refresh
This pull request does the following:

Upgrades to the latest stable version of Ruby
Upgrades to the latest version of entitlements-app

.deploy

.deploy

.deploy

.deploy

.deploy

.deploy

.deploy

.deploy