cannot sign in to github due to certificate signature failure

My isssue is similar to #182110
Once I messed up with my pc when dealing with WSL , so i ended up doing a complete reset to my pc, after reseting ( before also ) i started getting problem related to certificate either certificate signature failure or cannot verify self signed certificates, I searched the whole internet but could not find any solution.
I followed the comment from the discussion and i got this log -
2023-07-21 16:21:48.582 [error] FetchError: request to
https://vscode.dev/codeExchangeProxyEndpoints/github/login/oauth/access_token failed, reason: certificate signature failure
    at ClientRequest.<anonymous> (c:\Users\Shree\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\github-authentication\dist\extension.js:2:621400)
    at ClientRequest.emit (node:events:525:35)
    at TLSSocket.socketErrorListener (node:_http_client:481:9)
    at TLSSocket.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

This is not the whole log but the relavant portion as highlighted by someone this this comment.
Can someone please help me how to solve this problem which is happening because of certificates, i am getting problem in other things too due to that.

Could you install the Network Proxy Test extension (https://marketplace.visualstudio.com/items?itemName=chrmarti.network-proxy-test) and check the output of F1 > Network Proxy Test: Test Connection in VS Code? Enter https://vscode.dev/codeExchangeProxyEndpoints/github/login/oauth/access_token when prompted for the URL.
If you cannot install the extension through the Extensions viewlet in VS Code, you can use the Download Extension link on the above linked page and then install the downloaded VSIX with F1 > Extensions: Install VSIX....

Thanks for the response, here is the log:
Note: Make sure to replace all sensitive information with dummy values before sharing this output.

VS Code 1.80.1 (74f6148eb9ea00507ec113ec51c489d6ffb4b771)
Network Proxy Test 0.0.8
win32 10.0.22621 x64

Settings:
- http.proxy:
- http.proxyAuthorization: null
- http.proxyStrictSSL: true
- http.proxySupport: override
- http.systemCertificates: true

Environment variables:

Sending GET request to https://vscode.dev/codeExchangeProxyEndpoints/github/login/oauth/access_token...
vscode-proxy-agent: DIRECT
Received error: certificate signature failure (CERT_SIGNATURE_FAILURE)
Retrying while ignoring certificate issues to collect information on the certificate chain.

Sending GET request to https://vscode.dev/codeExchangeProxyEndpoints/github/login/oauth/access_token (allowing unauthorized)...
vscode-proxy-agent: DIRECT
Received response:
- Status: 200 OK
Certificate chain:
- Subject: vscode.dev (Microsoft Corporation)
  Subject alt: DNS:vscode.dev
  Validity: May 20 00:28:26 2023 GMT - Nov 16 00:28:26 2023 GMT
  Fingerprint: 5A:E3:B3:8B:DD:D1:2E:28:56:58:6E:FD:76:EF:B0:47:38:4D:58:24
- Subject: Sample CA 2
  Validity: Apr 20 03:01:35 2003 GMT - Apr  5 03:01:35 2063 GMT
  Fingerprint: EE:DF:F1:23:5F:4A:1D:10:43:58:DE:DE:33:8A:A2:0B:1E:4A:43:F7
  Self-signed
Local root certificates:
- Subject: C=EN CN=Sample CA 2
  Validity: May 23 07:47:36 2003 GMT - May  8 07:47:36 2063 GMT
  Fingerprint: F4:77:95:5A:62:4A:28:D0:48:F0:A5:B7:97:A3:15:BC:2E:9A:80:E7
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Apr 20 03:01:35 2003 GMT - Apr  5 03:01:35 2063 GMT
  Fingerprint: EE:DF:F1:23:5F:4A:1D:10:43:58:DE:DE:33:8A:A2:0B:1E:4A:43:F7
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 19 07:06:02 2003 GMT - Jul  4 07:06:02 2063 GMT
  Fingerprint: EB:3B:9D:46:E8:46:FB:14:2E:03:D7:82:31:89:F3:F0:8E:BC:D4:46
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 13 07:57:07 2003 GMT - Jun 28 07:57:07 2063 GMT
  Fingerprint: DE:41:2E:BD:AC:EF:CD:01:16:B7:64:33:66:77:51:0A:DA:E8:18:C0
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: May 17 12:37:27 2003 GMT - May  2 12:37:27 2063 GMT
  Fingerprint: DB:81:82:6B:EA:56:7A:3E:55:5F:77:34:AC:60:BD:2D:41:EC:61:41
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jun 19 13:05:39 2003 GMT - Jun  4 13:05:39 2063 GMT
  Fingerprint: DA:B3:54:72:73:37:10:FB:3A:39:DA:F1:9C:AD:09:A6:93:83:9A:D9
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Apr 21 13:41:22 2003 GMT - Apr  6 13:41:22 2063 GMT
  Fingerprint: D9:86:C4:F5:F8:4F:07:D5:A7:68:35:7D:98:9B:61:9A:C7:39:C7:03
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 18 15:02:59 2003 GMT - Jul  3 15:02:59 2063 GMT
  Fingerprint: D6:89:FC:F1:69:13:57:45:6C:4B:CA:48:CB:8B:28:55:0F:B8:C9:FE
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: May 19 06:47:13 2003 GMT - May  4 06:47:13 2063 GMT
  Fingerprint: CB:F2:CA:95:7A:C4:85:F9:1F:B5:DC:E7:2D:E8:9B:8A:FA:55:DB:AF
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 15 12:22:37 2003 GMT - Jun 30 12:22:37 2063 GMT
  Fingerprint: CA:BD:04:61:EE:18:90:81:8F:56:1F:0F:E0:77:04:B4:FA:B6:18:31
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 18 06:17:06 2003 GMT - Jul  3 06:17:06 2063 GMT
  Fingerprint: C8:E8:E2:53:0D:18:EB:4C:99:15:6C:B9:33:9E:B2:84:FE:E8:47:DE
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Apr 20 10:13:20 2003 GMT - Apr  5 10:13:20 2063 GMT
  Fingerprint: C0:2D:7A:6D:89:75:58:DB:9C:68:C6:A4:6D:22:E5:88:C4:9A:84:D2
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jun 20 03:09:32 2003 GMT - Jun  5 03:09:32 2063 GMT
  Fingerprint: BC:BA:26:A8:CD:CE:14:7B:76:21:91:0C:1C:54:F3:75:1D:73:5A:50
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Apr 20 13:44:58 2003 GMT - Apr  5 13:44:58 2063 GMT
  Fingerprint: BC:58:22:40:E4:7F:E0:EE:B5:FE:F2:29:9C:B6:81:EE:2C:A6:06:77
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 19 02:24:00 2003 GMT - Jul  4 02:24:00 2063 GMT
  Fingerprint: B4:DE:33:ED:6D:E7:87:70:6D:D5:BF:11:02:92:23:84:BF:19:56:58
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jun  4 04:33:17 2003 GMT - May 20 04:33:17 2063 GMT
  Fingerprint: B1:E6:F3:10:50:23:2E:59:5F:F2:98:51:BF:90:50:6F:4F:D1:58:1F
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 14 02:27:29 2003 GMT - Jun 29 02:27:29 2063 GMT
  Fingerprint: B0:39:55:DC:7D:7F:28:BF:41:BF:F6:0C:96:24:5E:24:24:F7:C0:D0
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jun 19 04:50:30 2003 GMT - Jun  4 04:50:30 2063 GMT
  Fingerprint: AF:81:19:B1:12:D4:52:06:D5:6D:C2:6A:F0:52:A6:E8:C3:63:5F:1B
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 13 06:30:49 2003 GMT - Jun 28 06:30:49 2063 GMT
  Fingerprint: AE:52:47:3F:04:8D:E5:CC:C6:C7:E6:C1:38:15:A7:49:29:ED:1C:E4
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Apr 19 08:23:56 2003 GMT - Apr  4 08:23:56 2063 GMT
  Fingerprint: AD:1A:8A:50:9D:44:3E:61:D7:3C:B1:B3:63:26:D1:0C:7F:5A:02:A1
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jun  3 12:01:00 2003 GMT - May 19 12:01:00 2063 GMT
  Fingerprint: A4:79:F6:95:4C:6E:2D:6F:F4:CA:F7:2F:8E:C2:F5:1A:9E:FF:76:13
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 17 07:40:18 2003 GMT - Jul  2 07:40:18 2063 GMT
  Fingerprint: 9C:22:F9:FB:24:8C:1B:0E:C1:3C:E3:DC:28:67:F7:16:CA:E5:20:F6
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 15 08:23:21 2003 GMT - Jun 30 08:23:21 2063 GMT
  Fingerprint: 9B:73:49:CE:75:F0:19:47:35:4C:3D:C1:36:4C:2E:E7:A9:73:53:43
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: May 23 11:33:20 2003 GMT - May  8 11:33:20 2063 GMT
  Fingerprint: 99:74:66:33:EE:A7:07:F6:6D:78:E7:94:35:D1:86:F2:21:22:1B:D0
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Apr 21 12:36:53 2003 GMT - Apr  6 12:36:53 2063 GMT
  Fingerprint: 91:8A:52:B2:BB:D5:BF:EE:67:C4:96:A0:F5:2F:10:0A:2C:EB:09:8E
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Apr 18 03:56:42 2003 GMT - Apr  3 03:56:42 2063 GMT
  Fingerprint: 8D:09:AB:44:2C:67:31:B6:C9:66:81:A1:9B:F7:1A:9C:BE:ED:C2:67
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 19 04:54:59 2003 GMT - Jul  4 04:54:59 2063 GMT
  Fingerprint: 8B:D7:D8:0D:C9:76:E6:65:57:29:0B:19:0E:25:56:28:B6:8C:8C:84
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: May  3 02:02:09 2003 GMT - Apr 18 02:02:09 2063 GMT
  Fingerprint: 8B:04:1E:34:E5:E1:B0:AF:50:3A:82:99:F7:05:99:5D:89:B3:9F:0B
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 15 10:41:53 2003 GMT - Jun 30 10:41:53 2063 GMT
  Fingerprint: 86:64:2C:E4:35:87:BE:D7:80:F7:8A:90:B3:EC:01:04:0C:C0:65:F5
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: May 27 05:43:15 2003 GMT - May 12 05:43:15 2063 GMT
  Fingerprint: 84:EB:EF:0D:82:E3:1B:02:DA:92:82:08:D9:1D:27:99:AA:A2:68:AF
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 15 07:56:32 2003 GMT - Jun 30 07:56:32 2063 GMT
  Fingerprint: 84:54:77:5A:10:28:52:18:11:39:D3:8E:BD:07:C7:38:C5:85:72:AA
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jun 19 10:02:25 2003 GMT - Jun  4 10:02:25 2063 GMT
  Fingerprint: 84:4B:5B:F9:F6:23:CE:57:0A:0E:25:01:50:89:AB:BA:2C:D0:81:25
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 17 10:20:04 2003 GMT - Jul  2 10:20:04 2063 GMT
  Fingerprint: 83:1B:32:F3:2A:78:01:E6:DC:C0:CD:EA:2F:3C:A1:AF:38:73:DF:2F
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Apr 18 04:00:44 2003 GMT - Apr  3 04:00:44 2063 GMT
  Fingerprint: 82:8E:F3:26:D3:32:39:EB:B5:A4:5E:53:C1:B5:C1:06:78:32:FF:69
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Apr 20 11:15:17 2003 GMT - Apr  5 11:15:17 2063 GMT
  Fingerprint: 73:86:53:BC:79:DA:7F:CA:0E:B5:2A:2C:9D:C5:FA:F7:43:FC:93:A7
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jun 19 12:05:48 2003 GMT - Jun  4 12:05:48 2063 GMT
  Fingerprint: 6C:0A:BA:29:37:95:5E:B3:18:FD:D8:60:0A:8C:52:BD:8B:4F:13:32
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jun 19 14:31:43 2003 GMT - Jun  4 14:31:43 2063 GMT
  Fingerprint: 65:C7:99:1D:FA:D6:B1:BE:80:A1:A5:E7:48:B0:89:D9:60:7E:35:CC
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: May 17 10:33:32 2003 GMT - May  2 10:33:32 2063 GMT
  Fingerprint: 58:12:F2:C5:2D:E7:FB:F0:77:23:62:06:EB:F1:88:20:3A:1C:61:B4
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: May  3 03:29:31 2003 GMT - Apr 18 03:29:31 2063 GMT
  Fingerprint: 4B:BA:8E:16:C4:91:97:6D:64:19:F9:BC:00:AC:03:1F:D0:B6:47:F6
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Apr 21 11:07:54 2003 GMT - Apr  6 11:07:54 2063 GMT
  Fingerprint: 41:3A:70:2D:A5:52:09:4E:BB:D5:4D:72:AD:E6:AB:0E:BD:E3:48:6A
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 18 09:39:48 2003 GMT - Jul  3 09:39:48 2063 GMT
  Fingerprint: 3D:0F:B4:2A:B0:4E:C2:85:4A:2F:45:6E:41:34:97:1D:4F:35:44:6A
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 13 06:57:44 2003 GMT - Jun 28 06:57:44 2063 GMT
  Fingerprint: 3C:AA:E4:93:E4:EE:BF:B7:46:B2:E6:3C:65:19:65:7B:DE:54:57:DF
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: May 27 04:03:47 2003 GMT - May 12 04:03:47 2063 GMT
  Fingerprint: 3B:08:A2:D7:4E:25:E5:47:12:36:B2:D7:6A:C7:93:37:F7:3D:FF:26
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 13 06:48:34 2003 GMT - Jun 28 06:48:34 2063 GMT
  Fingerprint: 34:81:05:23:FB:59:77:7F:1D:35:D0:74:1A:B7:7C:B9:73:DC:5B:AC
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 15 04:57:34 2003 GMT - Jun 30 04:57:34 2063 GMT
  Fingerprint: 31:39:BE:FF:50:AD:43:6B:50:F9:A1:E5:83:DC:3B:3A:C0:FF:A5:63
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jun 19 18:10:53 2003 GMT - Jun  4 18:10:53 2063 GMT
  Fingerprint: 28:0C:C3:86:D6:05:DF:70:B1:F8:02:B1:9D:7B:93:99:5A:C4:29:79
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 13 17:37:35 2003 GMT - Jun 28 17:37:35 2063 GMT
  Fingerprint: 21:ED:83:82:81:69:0B:42:B5:AB:2B:A6:57:9B:99:24:CD:46:44:76
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 15 09:24:01 2003 GMT - Jun 30 09:24:01 2063 GMT
  Fingerprint: 0D:B7:FD:35:D8:16:A6:32:BE:CE:EC:F1:24:61:C3:BF:CA:10:56:55
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: May 19 09:00:58 2003 GMT - May  4 09:00:58 2063 GMT
  Fingerprint: 0D:A4:30:51:D4:99:B4:1E:58:BB:F8:ED:A1:96:DF:63:05:CE:CC:B5
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Apr 20 08:14:20 2003 GMT - Apr  5 08:14:20 2063 GMT
  Fingerprint: 08:CF:F5:A3:5E:F4:07:0D:A7:75:74:F8:96:8B:CD:E8:2A:D1:7A:4D
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 13 15:57:14 2003 GMT - Jun 28 15:57:14 2063 GMT
  Fingerprint: 08:94:28:4B:59:39:DE:94:DA:FF:E0:C9:BE:80:C6:24:4E:2C:64:83
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Jul 13 17:41:22 2003 GMT - Jun 28 17:41:22 2063 GMT
  Fingerprint: 08:74:C8:C3:57:BC:1A:4E:44:EC:98:DB:86:64:78:67:83:E5:3A:FD
  Issuer: C=EN CN=Sample CA 2
- Subject: C=EN CN=Sample CA 2
  Validity: Apr 18 10:57:34 2003 GMT - Apr  3 10:57:34 2063 GMT
  Fingerprint: 03:30:1B:35:1B:C4:E5:5B:E1:B1:67:6F:F2:60:3E:44:67:C1:97:F5
  Issuer: C=EN CN=Sample CA 2

Actually i am getting the certificate problem everywhere.

I can't tell for sure, but the many "Sample CA 2" root certificates in your OS look suspicious.  (Sounds similar to: https://security.stackexchange.com/questions/253782/can-this-be-mitm-attack)

Thanks for the response @chrmarti,
Actually the problems started when i accidentally messed up with WSL. So many things broke and this problem was one of them. Then had to do complete reset of my pc, after that everything was fixed execept "certificate signature failure". I don't think it's because of some malware or virus, since i am aware of such things and also use a paid antivirus software, I think it is because of some misconfiguration or some missing piece?
Since I am a student and don't work with any team yet, I don't have access to IT admin. The problem occured because of my personal mistake in my personal PC.
Please guide me how can i fix this.

This definitely looks like a problem with the way your machine's certificates are set up. I guess there might be a proxy or VPN involved, but I can't offer guidance beyond VS Code. Thanks for your understanding.


More specific service id error

This gives a better error when the service id is missing from a
model. For example, if you called from the CLI you would currently
see an error like this:
$ aws secretsmanager help
'NoneType' object has no attribute 'replace'

Now you would see something like this:
$ aws secretsmanager help
The model being used for the service secretsmanager is missing the
serviceId metadata property, which is required. If you are part of
a private beta, please request a new model from the service team.

Codecov Report

Merging #1560 into develop will increase coverage by <.01%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #1560      +/-   ##
===========================================
+ Coverage    91.92%   91.92%   +<.01%
===========================================
  Files           50       50
  Lines         9035     9045      +10
===========================================
+ Hits          8305     8315      +10
  Misses         730      730

Impacted Files
Coverage Δ

botocore/handlers.py
97.15% <100%> (+0.02%)
:arrow_up:

botocore/exceptions.py
100% <100%> (ø)
:arrow_up:

botocore/model.py
97.68% <100%> (+0.02%)
:arrow_up:

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 3d2f4c9...53b03f8. Read the comment docs.

Codecov Report

Merging #1560 into develop will increase coverage by <.01%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #1560      +/-   ##
===========================================
+ Coverage    91.92%   91.92%   +<.01%
===========================================
  Files           50       50
  Lines         9035     9045      +10
===========================================
+ Hits          8305     8315      +10
  Misses         730      730

Impacted Files
Coverage Δ

botocore/handlers.py
97.15% <100%> (+0.02%)
:arrow_up:

botocore/exceptions.py
100% <100%> (ø)
:arrow_up:

botocore/model.py
97.68% <100%> (+0.02%)
:arrow_up:

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 fada5c6...17f9522. Read the comment docs.

Codecov Report

Merging #1560 into develop will increase coverage by 0.04%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #1560      +/-   ##
===========================================
+ Coverage    91.92%   91.96%   +0.04%
===========================================
  Files           50       50
  Lines         9035     9045      +10
===========================================
+ Hits          8305     8318      +13
+ Misses         730      727       -3

Impacted Files
Coverage Δ

botocore/handlers.py
97.15% <100%> (+0.02%)
:arrow_up:

botocore/exceptions.py
100% <100%> (ø)
:arrow_up:

botocore/model.py
97.68% <100%> (+0.02%)
:arrow_up:

botocore/credentials.py
98.8% <0%> (+0.39%)
:arrow_up:

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 fada5c6...17f9522. Read the comment docs.

Codecov Report

Merging #1560 into develop will increase coverage by 0.04%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #1560      +/-   ##
===========================================
+ Coverage    91.92%   91.96%   +0.04%
===========================================
  Files           50       50
  Lines         9035     9045      +10
===========================================
+ Hits          8305     8318      +13
+ Misses         730      727       -3

Impacted Files
Coverage Δ

botocore/handlers.py
97.15% <100%> (+0.02%)
:arrow_up:

botocore/exceptions.py
100% <100%> (ø)
:arrow_up:

botocore/model.py
97.68% <100%> (+0.02%)
:arrow_up:

botocore/credentials.py
98.8% <0%> (+0.39%)
:arrow_up:

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 fada5c6...17f9522. Read the comment docs.

Codecov Report

Merging #1560 into develop will increase coverage by 0.04%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #1560      +/-   ##
===========================================
+ Coverage    91.92%   91.96%   +0.04%
===========================================
  Files           50       50
  Lines         9035     9045      +10
===========================================
+ Hits          8305     8318      +13
+ Misses         730      727       -3

Impacted Files
Coverage Δ

botocore/handlers.py
97.15% <100%> (+0.02%)
:arrow_up:

botocore/exceptions.py
100% <100%> (ø)
:arrow_up:

botocore/model.py
97.68% <100%> (+0.02%)
:arrow_up:

botocore/credentials.py
98.8% <0%> (+0.39%)
:arrow_up:

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 fada5c6...17f9522. Read the comment docs.

Codecov Report

Merging #1560 into develop will increase coverage by 0.04%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #1560      +/-   ##
===========================================
+ Coverage    91.92%   91.96%   +0.04%
===========================================
  Files           50       50
  Lines         9035     9045      +10
===========================================
+ Hits          8305     8318      +13
+ Misses         730      727       -3

Impacted Files
Coverage Δ

botocore/handlers.py
97.15% <100%> (+0.02%)
:arrow_up:

botocore/exceptions.py
100% <100%> (ø)
:arrow_up:

botocore/model.py
97.68% <100%> (+0.02%)
:arrow_up:

botocore/credentials.py
98.8% <0%> (+0.39%)
:arrow_up:

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 fada5c6...17f9522. Read the comment docs.

Codecov Report

Merging #1560 into develop will increase coverage by 0.04%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #1560      +/-   ##
===========================================
+ Coverage    91.92%   91.96%   +0.04%
===========================================
  Files           50       50
  Lines         9035     9045      +10
===========================================
+ Hits          8305     8318      +13
+ Misses         730      727       -3

Impacted Files
Coverage Δ

botocore/handlers.py
97.15% <100%> (+0.02%)
:arrow_up:

botocore/exceptions.py
100% <100%> (ø)
:arrow_up:

botocore/model.py
97.68% <100%> (+0.02%)
:arrow_up:

botocore/credentials.py
98.8% <0%> (+0.39%)
:arrow_up:

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 fada5c6...17f9522. Read the comment docs.

Codecov Report

Merging #1560 into develop will increase coverage by 0.04%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #1560      +/-   ##
===========================================
+ Coverage    91.92%   91.96%   +0.04%
===========================================
  Files           50       50
  Lines         9035     9045      +10
===========================================
+ Hits          8305     8318      +13
+ Misses         730      727       -3

Impacted Files
Coverage Δ

botocore/handlers.py
97.15% <100%> (+0.02%)
:arrow_up:

botocore/exceptions.py
100% <100%> (ø)
:arrow_up:

botocore/model.py
97.68% <100%> (+0.02%)
:arrow_up:

botocore/credentials.py
98.8% <0%> (+0.39%)
:arrow_up:

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 fada5c6...17f9522. Read the comment docs.

man what is up with codecov


No xdg-open command on Mac

On MacOS, there is no xdg-open command.
There is a similar command, open.
Can you detect if the user is using MacOS, and run open instead?
Running open https://google.com results in the browser opening to google and doesn't output any text.
If you don't have time, I could try fixing this and submit a pr in a few days.

Hey yes that's a great idea I would like if you contribute...
I think we can use this method of finding out the uname, from reading the file handle output.
local os_name

local fh = io.popen("uname")
local uname = fh:read("*l")
fh:close()
if uname == "Darwin" then
	os_name = "MacOS"
else
	os_name = "Linux"
end

print(os_name)

or we can use the package.cpath method to detect the os, I saw it on stackoverflow.
Please go ahead and add macos support.

I have create #3

Yes It's great, Your PR has been merged. Thank you. And with this I am closing the issue


synchronize schema spec

What
APM agent json schema automatic sync
Why
Changeset

:broken_heart: Tests Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Build Cause: Pull request #1094 opened

Start Time: 2021-04-12T03:27:22.844+0000

Duration: 64 min 42 sec

Commit: d4cecc99b533aa3aa1f2df0a1fb596294028de35

Test stats :test_tube:

Test
Results

Failed
1

Passed
8996

Skipped
7593

Total
16590

Trends :test_tube:

Test errors
Expand to view the tests failures
Initializing / Test / Python-pypy-3-1 / test_ssl_verify_fails – tests.transports.test_urllib3

Expand to view the error details
 assert 'certificate verify failed' in '<ExceptionInfo TransportException("Unable to reach APM Server: HTTPSConnectionPool(host=\'<IP_ADDRESS>\', port=32849): M...or(SSLCertVerificationError(1, \'unable to get local issuer certificate\'))) (url: https://<IP_ADDRESS>:32849)") tblen=2>'
 +  where '<ExceptionInfo TransportException("Unable to reach APM Server: HTTPSConnectionPool(host=\'<IP_ADDRESS>\', port=32849): M...or(SSLCertVerificationError(1, \'unable to get local issuer certificate\'))) (url: https://<IP_ADDRESS>:32849)") tblen=2>' = str(<ExceptionInfo TransportException("Unable to reach APM Server: HTTPSConnectionPool(host='<IP_ADDRESS>', port=32849): Max ...Error(SSLCertVerificationError(1, 'unable to get local issuer certificate'))) (url: https://<IP_ADDRESS>:32849)") tblen=2>)

Expand to view the stacktrace
 waiting_httpsserver = <SecureContentServer(<class 'pytest_localserver.https.SecureContentServer'>, started<PHONE_NUMBER>26880)>
elasticapm_client = <tests.fixtures.TempStoreClient object at 0x00007f27fb9e98a0>

    @pytest.mark.flaky(reruns=3)  # test is flaky on Windows
    def test_ssl_verify_fails(waiting_httpsserver, elasticapm_client):
        waiting_httpsserver.serve_content(code=202, content="", headers={"Location": "http://example.com/foo"})
        transport = Transport(waiting_httpsserver.url, client=elasticapm_client)
        transport.start_thread()
        try:
            with pytest.raises(TransportException) as exc_info:
                url = transport.send(compat.b("x"))
>           assert "certificate verify failed" in str(exc_info)
E           assert 'certificate verify failed' in '<ExceptionInfo TransportException("Unable to reach APM Server: HTTPSConnectionPool(host=\'<IP_ADDRESS>\', port=32849): M...or(SSLCertVerificationError(1, \'unable to get local issuer certificate\'))) (url: https://<IP_ADDRESS>:32849)") tblen=2>'
E            +  where '<ExceptionInfo TransportException("Unable to reach APM Server: HTTPSConnectionPool(host=\'<IP_ADDRESS>\', port=32849): M...or(SSLCertVerificationError(1, \'unable to get local issuer certificate\'))) (url: https://<IP_ADDRESS>:32849)") tblen=2>' = str(<ExceptionInfo TransportException("Unable to reach APM Server: HTTPSConnectionPool(host='<IP_ADDRESS>', port=32849): Max ...Error(SSLCertVerificationError(1, 'unable to get local issuer certificate'))) (url: https://<IP_ADDRESS>:32849)") tblen=2>)

tests/transports/test_urllib3.py:171: AssertionError

Steps errors
Expand to view the steps failures

Show only the first 10 steps failures

Restore files previously stashed

Took 0 min 0 sec . View more details on here
Description: coverage-python-3.10-rc-mysql_connector-newest

Restore files previously stashed

Took 0 min 0 sec . View more details on here
Description: coverage-python-3.10-rc-tornado-newest

Restore files previously stashed

Took 0 min 0 sec . View more details on here
Description: coverage-python-3.10-rc-prometheus_client-newest

Restore files previously stashed

Took 0 min 0 sec . View more details on here
Description: coverage-pypy-3-flask-0.12

Restore files previously stashed

Took 0 min 0 sec . View more details on here
Description: coverage-pypy-3-celery-3-django-2.0

Restore files previously stashed

Took 0 min 0 sec . View more details on here
Description: coverage-pypy-3-pymongo-newest

Restore files previously stashed

Took 0 min 0 sec . View more details on here
Description: coverage-pypy-3-elasticsearch-2

Restore files previously stashed

Took 0 min 0 sec . View more details on here
Description: coverage-pypy-3-gevent-newest

Restore files previously stashed

Took 0 min 0 sec . View more details on here
Description: coverage-pypy-3-graphene-2

Error signal

Took 0 min 0 sec . View more details on here
Description: Python-pypy-3-none tests failed : hudson.AbortException: script returned exit code 2

Log output
Expand to view the last 100 lines of log output

[2021-04-12T04:30:31.015Z] ERROR: No such saved stash ‘coverage-python-3.10-rc-none’
[2021-04-12T04:30:31.952Z] ERROR: No such saved stash ‘coverage-python-3.10-rc-opentracing-newest’
[2021-04-12T04:30:32.668Z] ERROR: No such saved stash ‘coverage-python-3.10-rc-redis-newest’
[2021-04-12T04:30:33.358Z] ERROR: No such saved stash ‘coverage-python-3.10-rc-elasticsearch-2’
[2021-04-12T04:30:34.081Z] ERROR: No such saved stash ‘coverage-python-3.10-rc-mysql_connector-newest’
[2021-04-12T04:30:34.864Z] ERROR: No such saved stash ‘coverage-python-3.10-rc-tornado-newest’
[2021-04-12T04:30:35.609Z] ERROR: No such saved stash ‘coverage-python-3.10-rc-prometheus_client-newest’
[2021-04-12T04:30:37.212Z] ERROR: No such saved stash ‘coverage-pypy-3-flask-0.12’
[2021-04-12T04:30:38.069Z] ERROR: No such saved stash ‘coverage-pypy-3-celery-3-django-2.0’
[2021-04-12T04:30:38.831Z] ERROR: No such saved stash ‘coverage-pypy-3-pymongo-newest’
[2021-04-12T04:30:39.651Z] ERROR: No such saved stash ‘coverage-pypy-3-elasticsearch-2’
[2021-04-12T04:30:40.437Z] ERROR: No such saved stash ‘coverage-pypy-3-gevent-newest’
[2021-04-12T04:30:41.182Z] ERROR: No such saved stash ‘coverage-pypy-3-graphene-2’
[2021-04-12T04:30:43.010Z] + python3 -m coverage combine
[2021-04-12T04:31:01.175Z] Body did not finish within grace period; terminating with extreme prejudice
[2021-04-12T04:31:01.251Z] Error when executing always post condition:
[2021-04-12T04:31:01.258Z] org.jenkinsci.plugins.workflow.steps.FlowInterruptedException
[2021-04-12T04:31:01.258Z] 	at org.jenkinsci.plugins.workflow.steps.TimeoutStepExecution.cancel(TimeoutStepExecution.java:165)
[2021-04-12T04:31:01.258Z] 	at org.jenkinsci.plugins.workflow.steps.TimeoutStepExecution.access$100(TimeoutStepExecution.java:38)
[2021-04-12T04:31:01.258Z] 	at org.jenkinsci.plugins.workflow.steps.TimeoutStepExecution$1.run(TimeoutStepExecution.java:139)
[2021-04-12T04:31:01.258Z] 	at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:67)
[2021-04-12T04:31:01.258Z] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[2021-04-12T04:31:01.258Z] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2021-04-12T04:31:01.258Z] 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
[2021-04-12T04:31:01.258Z] 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
[2021-04-12T04:31:01.258Z] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2021-04-12T04:31:01.258Z] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2021-04-12T04:31:01.258Z] 	at java.lang.Thread.run(Thread.java:748)
[2021-04-12T04:31:01.258Z]
[2021-04-12T04:31:01.429Z] Stage "Building packages" skipped due to earlier failure(s)
[2021-04-12T04:31:01.536Z] Stage "Integration Tests" skipped due to earlier failure(s)
[2021-04-12T04:31:01.651Z] Stage "Benchmarks" skipped due to earlier failure(s)
[2021-04-12T04:31:01.898Z] Stage "Prepare Release" skipped due to earlier failure(s)
[2021-04-12T04:31:01.952Z] Stage "Prepare Release" skipped due to earlier failure(s)
[2021-04-12T04:31:02.065Z] Stage "Prepare Release" skipped due to earlier failure(s)
[2021-04-12T04:31:02.204Z] Stage "Prepare Release" skipped due to earlier failure(s)
[2021-04-12T04:31:03.587Z] Running on worker-1225339 in /var/lib/jenkins/workspace/hon_apm-agent-python-mbp_PR-1094
[2021-04-12T04:31:03.728Z] [INFO] getVaultSecret: Getting secrets
[2021-04-12T04:31:03.987Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-04-12T04:31:06.186Z] + chmod 755 generate-build-data.sh
[2021-04-12T04:31:06.186Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-python/apm-agent-python-mbp/PR-1094/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-python/apm-agent-python-mbp/PR-1094/runs/1 FAILURE 3821937
[2021-04-12T04:31:06.187Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-python/apm-agent-python-mbp/PR-1094/runs/1/steps/?limit=10000 -o steps-info.json
[2021-04-12T04:31:09.321Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-python/apm-agent-python-mbp/PR-1094/runs/1/tests/?status=FAILED -o tests-errors.json
[2021-04-12T04:31:10.019Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-python/apm-agent-python-mbp/PR-1094/runs/1/log/ -o pipeline-log.txt

:bug: Flaky test report
:grey_exclamation: There are test failures but not known flaky tests.

Expand to view the summary

Test stats :test_tube:

Test
Results

Failed
1

Passed
8996

Skipped
7593

Total
16590

Genuine test errors
:broken_heart: There are test failures but not known flaky tests, most likely a genuine test failure.

Name: Initializing / Test / Python-pypy-3-1 / test_ssl_verify_fails – tests.transports.test_urllib3

test failures are unrelated


mxnet.base.MXNetError

Hello author, I would like to ask a question, when I was running test_yolo. Py, there was such a mistake: "mxnet.base.mxneterror: [19:26:26] C:\Jenkins\workspace\mxnet\mxnet\3rdparty\dmlc-core\ SRC \ IO \local_filesys. Cc :209: Check failed: allow_null:LocalFileSystem::Open "darknet.params": No such file or directory", how should I solve?Looking forward to your reply!

Hi,
Obviously, you should download model from the driver link in readme.


Help with Ouster LIDAR OS1 and Cartographer

Hello i need help with this topic,
i have ouster os1 lidar.
I want to map an area to move to desired locations and i dont know anything about mapping with real robots.
I used gmapping on turtlebot simulation before.I have 3 questions.

Can i map with cartographer without a bag file?
If i have to record a bagfile then why it doesnt record and map at the sametime?
What should i do to map the area if i cant do it with cartographer?

This is a great place to start.
Ouster-cartographer


Failed to parse output. Returning None.  - SimpleEvolution - TestsetGenerator

I am getting an “Failed to parse output. Returning None” error. I I have tried llama3 and mistral8x7b. I believe both models should be able to generate json like outputs.
I need advice on how to solve this.
This could be related to https://github.com/explodinggradients/ragas/issues/859

    splitter = RecursiveJsonSplitter(max_chunk_size=2_000)
    docs = splitter.create_documents(texts=studies)

    generator = TestsetGenerator.from_langchain(generator_llm, critic_llm, embeddings)

      eval_ds = generator.generate_with_langchain_docs(
        docs,
        test_size=50,
        distributions={
            simple: 0.4,
            reasoning: 0.4,
            multi_context: 0.2,
        },
        raise_exceptions=True,
        is_async=True # as per https://github.com/explodinggradients/ragas/issues/709
    )
    eval_ds.to_pandas().to_csv(args.output)

Error:
Note: I had to trim the SimpleEvolution message as it was reporting the content of many documents and their embedding.
Failed to parse output. Returning None.
Failed to parse output. Returning None.
max retries exceeded for SimpleEvolution(generator_llm=LangchainLLMWrapper(run_config=RunConfig(timeout=60, max_retries=15, max_wait=90, max_workers=16, exception_types=<class 'Exception'>)), docstore=InMemoryDocumentStore(splitter=<langchain_text_splitters.base.TokenTextSplitter object at 0x2b813d22f410>, nodes=[Node(page_content="NCT00000173: protocolSection: identificationModule: nctId: NCT00000173, organization: fullName: National Institute on Aging (NIA), class: NIH, briefTitle: Memory Impairment Study (Mild Cognitive Impairment Study), officialTitle: A Randomized, Double-Blind, Placebo-Controlled Trial of Vitamin E and Donepezil HCL (Aricept) to Delay Clinical Progression From Mild Cognitive Impairment (MCI) to Alzheimer's Disease (AD), statusModule: overallStatus: COMPLETED, sponsorCollaboratorsModule: leadSponsor: name: National Institute on Aging (NIA), class: NIH, descriptionModule: briefSummary: The National Institute on Aging (NIA) is launching a nationwide treatment study targeting individuals with mild cognitive impairment (MCI), a condition characterized by a memory deficit, but not dementia. An NIA-funded study recently confirmed that MCI is different from both dementia and normal age-related changes in memory. Accurate and early evaluation and treatment of MCI individuals might prevent further cognitive decline, including development of Alzheimer's disease (AD). The Memory Impairment Study is the first such AD prevention clinical trial carried out by NIH, and will be conducted at 65-80 medical research institutions located in the United States and Canada. This study will test the usefulness of two drugs to slow or stop the conversion from MCI to AD. The trial will evaluate placebo, vitamin E, and donepezil, an investigational agent approved by the Food and Drug Administration for another use. Vitamin E (alpha-tocopherol) is thought to have antioxidant properties, and was shown in a 1997 study to delay important dementia milestones, such as patients' institutionalization or progression to severe dementia, by about seven months.", metadata={'filename': 'NCT00000173'}, doc_id='4a458ce7-7dd9-41c2-98f4-ddc032b683b7'), Node(page_content="NCT00000173: protocolSection: conditionsModule: conditions: Alzheimer Disease; keywords: Mild cognitive impairment, Alzheimer's disease, Memory, Donepezil, Vitamin E, Antioxidants, Cholinergic agents, Cholinesterase inhibitors; designModule: studyType: INTERVENTIONAL, phases: PHASE3; designInfo: allocation: RANDOMIZED, interventionModel: PARALLEL, primaryPurpose: TREATMENT, maskingInfo: , armsInterventionsModule: interventions: type: DRUG, name: Donepezil, type: DRUG, name: Vitamin E; eligibilityModule: eligibilityCriteria: Inclusion Criteria: * Memory complaints and memory difficulties which are verified by an informant. * Abnormal memory function documented by scoring below the education adjusted cutoff on the Logical Memory II subscale (Delayed Paragraph Recall) from the Wechsler Memory Scale - Revised (the maximum score is 25): a) less than or equal to 8 for 16 or more years of education, b) less than or equal to 4 for 8-15 years of education, c) less than or equal to 2 for 0-7 years of education. * Mini-Mental Exam score between 24 and 30 (inclusive) (Exceptions may be made for subjects with less than 8 years of education at the discretion of the project director.). * Clinical Dementia Rating = 0.5. Memory Box score must be at least 0.5. * General cognition and functional performance sufficiently preserved such that a diagnosis of Alzheimer's disease cannot be made by the site physician at the time of the screening visit. * No significant cerebrovascular disease: Modified Hachinski score of less than or equal to 4. * Age between 55 and 90 (inclusive). * Permitted medications stable for at least 1 month prior to screening. In particular: a) Subjects may take stable doses of antidepressants lacking significant anticholinergic side effects (if they are not currently depressed and do not have a history of major depression within the past 2 years). b) Estrogen replacement therapy is permissible. c) Ginkgo biloba is permissible, but discouraged. * Hamilton Depression rating scale score of less than or equal to 12 on the 17-item scale. * Informant is available who has frequent contact with the subject (e.g. an average of 10 hours per week or more), agrees to monitor administration of study drug, observe for adverse events, and accompany the subject to all clinic visits for the duration of the protocol. * CT or MRI scans within 12 months prior to screening without evidence of infection, infarction, or other focal lesions and without clinical symptoms suggestive of intervening neurological disease. A lacune in a non-critical brain area which is not believed to contribute to the subject's cognitive impairment is permissible. * Adequate visual and auditory acuity to allow neuropsychological testing. * Good general health with no additional diseases expected to interfere with the study. * Normal B12, RPR, and Thyroid Function Tests or without any clinically significant abnormalities that would be expected to interfere with the study. * ECG without clinically significant abnormalities that would be expected to interfere with the study. * Subject is not pregnant, lactating, or of childbearing potential (i.e. women must be two years post-menopausal or surgically sterile). * Agreement not to take other vitamin supplements (including Vitamin E), multivitamins, other than those provided by the study. Exclusion Criteria: * Any significant neurologic disease other than suspected incipient Alzheimer's disease, such as Parkinson's disease, multi-infarct dementia, Huntington's disease, normal pressure hydrocephalus, brain tumor, progressive supranuclear palsy, seizure disorder, subdural hematoma, multiple sclerosis, or history of significant head trauma followed by persistent neurologic defaults or known structural brain abnormalities. * Major depression or another major psychiatric disorder as described in DSM IV within the past 2 years. * Psychotic features, agitation or behavioral problems within the last 3 months which could lead to difficulty complying with the protocol. * History of alcohol or substance abuse or dependence within the past 2 years (DSM IV criteria). * History of schizophrenia (DSM IV criteria). * Any significant systemic illness or unstable medical condition which could lead to difficulty complying with the protocol including: a) History of systemic cancer within the last 5 years (non-metastatic skin cancers are acceptable). b) History of myocardial infarction within the past year or unstable or severe cardiovascular disease including angina or CHF with symptoms at rest. c) Clinically significant obstructive pulmonary disease or asthma. d) Clinically significant and unstable gastrointestinal disorder such as ulcer disease or a history of active or occult gastrointestinal bleeding within two years. e) Clinically significant laboratory test abnormalities on the battery of screening tests (hematology, prothrombin time, chemistry, urinalysis, ECG). f) Insulin", metadata={'filename': 'NCT00000173'}, doc_id='6de53b72-0e35-4864-8a27-f3524bbe6a90', wins=2), [ mode documents]..., metadata={'filename': 'NCT00000938'}, doc_id='fa58d93c-8e58-4898-93de-59402c15503e')], node_embeddings_list=[[-0.034423138946294785, , 0.01802566833794117]], node_map={'4a458ce7-7dd9-41c2-98f4-ddc032b683b7':

[...]

node_filter=NodeFilter(llm=LangchainLLMWrapper(run_config=RunConfig(timeout=60, max_retries=15, max_wait=90, max_workers=16, exception_types=<class 'Exception'>)), threshold=1.5, context_scoring_prompt=Prompt(name='score_context', instruction='\n    Given a context, perform the following task and output the answer in VALID JSON format: Assess the provided context and assign a numerical score of 1 (Low), 2 (Medium), or 3 (High) for each of the following criteria in your JSON response:\n\nclarity: Evaluate the precision and understandability of the information presented. High scores (3) are reserved for contexts that are both precise in their information and easy to understand. Low scores (1) are for contexts where the information is vague or hard to comprehend.\ndepth: Determine the level of detailed examination and the inclusion of innovative insights within the context. A high score indicates a comprehensive and insightful analysis, while a low score suggests a superficial treatment of the topic.\nstructure: Assess how well the content is organized and whether it flows logically. High scores are awarded to contexts that demonstrate coherent organization and logical progression, whereas low scores indicate a lack of structure or clarity in progression.\nrelevance: Judge the pertinence of the content to the main topic, awarding high scores to contexts tightly focused on the subject without unnecessary digressions, and low scores to those that are cluttered with irrelevant information.\nStructure your JSON output to reflect these criteria as keys with their corresponding scores as values\n    ', output_format_instruction='The output should be a well-formatted JSON instance that conforms to the JSON schema below.\n\nAs an example, for the schema {"properties": {"foo": {"title": "Foo", "description": "a list of strings", "type": "array", "items": {"type": "string"}}}, "required": ["foo"]}\nthe object {"foo": ["bar", "baz"]} is a well-formatted instance of the schema. The object {"properties": {"foo": ["bar", "baz"]}} is not well-formatted.\n\nHere is the output JSON schema:\n```\n{"type": "object", "properties": {"clarity": {"title": "Clarity", "type": "integer"}, "depth": {"title": "Depth", "type": "integer"}, "structure": {"title": "Structure", "type": "integer"}, "relevance": {"title": "Relevance", "type": "integer"}}, "required": ["clarity", "depth", "structure", "relevance"]}\n```\n\nDo not return any preamble or explanations, return only a pure JSON string surrounded by triple backticks (```).', examples=[{'context': 'The Pythagorean theorem is a fundamental principle in geometry. It states that in a right-angled triangle, the square of the length of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the lengths of the other two sides. This can be written as a^2 + b^2 = c^2 where c represents the length of the hypotenuse, and a and b represent the lengths of the other two sides.', 'output': {'clarity': 3, 'depth': 1, 'structure': 3, 'relevance': 3}}, {'context': 'Albert Einstein (14 March 1879 - 18 April 1955) was a German-born theoretical physicist who is widely held to be one of the greatest and most influential scientists of all time.', 'output': {'clarity': 3, 'depth': 2, 'structure': 3, 'relevance': 3}}, {'context': "I love chocolate. It's really tasty. Oh, and by the way, the earth orbits the sun, not the other way around. Also, my favorite color is blue.", 'output': {'clarity': 2, 'depth': 1, 'structure': 1, 'relevance': 1}}], input_keys=['context'], output_key='output', output_type='json', language='english')), question_filter=QuestionFilter(llm=LangchainLLMWrapper(run_config=RunConfig(timeout=60, max_retries=15, max_wait=90, max_workers=16, exception_types=<class 'Exception'>)), filter_question_prompt=Prompt(name='filter_question', instruction='\nAsses the given question for clarity and answerability given enough domain knowledge, consider the following criteria:\n1.Independence: Can the question be understood and answered without needing additional context or access to external references not provided within the question itself? Questions should be self-contained, meaning they do not rely on specific documents, tables, or prior knowledge not shared within the question.\n2.Clear Intent: Is it clear what type of answer or information the question seeks? The question should convey its purpose without ambiguity, allowing for a direct and relevant response.\nBased on these criteria, assign a verdict of "1" if a question is specific, independent, and has a clear intent, making it understandable and answerable based on the details provided. Assign "0" if it fails to meet one or more of these criteria due to vagueness, reliance on external references, or ambiguity in intent.\nProvide feedback and a verdict in JSON format, including suggestions for improvement if the question is deemed unclear. Highlight aspects of the question that contribute to its clarity or lack thereof, and offer advice on how it could be reframed or detailed for better understanding and answerability.\n', output_format_instruction='The output should be a well-formatted JSON instance that conforms to the JSON schema below.\n\nAs an example, for the schema {"properties": {"foo": {"title": "Foo", "description": "a list of strings", "type": "array", "items": {"type": "string"}}}, "required": ["foo"]}\nthe object {"foo": ["bar", "baz"]} is a well-formatted instance of the schema. The object {"properties": {"foo": ["bar", "baz"]}} is not well-formatted.\n\nHere is the output JSON schema:\n```\n{"type": "object", "properties": {"feedback": {"title": "Feedback", "type": "string"}, "verdict": {"title": "Verdict", "type": "integer"}}, "required": ["feedback", "verdict"]}\n```\n\nDo not return any preamble or explanations, return only a pure JSON string surrounded by triple backticks (```).', examples=[{'question': 'What is the discovery about space?', 'output': {'feedback': "The question is too vague and broad, asking for a 'discovery about space' without specifying any particular aspect, time frame, or context of interest. This could refer to a wide range of topics, from the discovery of new celestial bodies to advancements in space travel technology. To improve clarity and answerability, the question could specify the type of discovery (e.g., astronomical, technological), the time frame (e.g., recent, historical), or the context (e.g., within a specific research study or space mission).", 'verdict': 0}}, {'question': "How does ALMA-13B-R perform compared to other translation models in the WMT'23 study, based on the results in context1 and context2?", 'output': {'feedback': "This question asks for a comparison of the ALMA-13B-R model's performance against other translation models within the WMT'23 study, specifically referring to results in 'context1' and 'context2'. While it clearly specifies the model of interest (ALMA-13B-R) and the study (WMT'23), it assumes access to and understanding of 'context1' and 'context2' without explaining what these contexts entail. This makes the question unclear for those not familiar with the WMT'23 study or these specific contexts. To improve clarity and answerability for a broader audience, the question could benefit from defining or describing 'context1' and 'context2' or explaining the criteria used for comparison in these contexts.", 'verdict': 0}}, {'question': 'How do KIWI-XXL and XCOMET compare to the gold standard references in Table 1 in terms of evaluation scores, translation model performance, and success rate in surpassing the references?', 'output': {'feedback': "The question requests a comparison between KIWI-XXL and XCOMET models and gold standard references in 'Table 1', focusing on evaluation scores, translation model performance, and success rates in surpassing the references. It specifies the models and criteria for comparison, making the intent clear. However, the question assumes access to 'Table 1' without providing its content or context, making it unclear for those without direct access to the source material. To be clearer and more answerable for a general audience, the question could include a brief description of the content or key findings of 'Table 1', or alternatively, frame the question in a way that does not rely on specific, unpublished documents.", 'verdict': 0}}, {'question': 'What is the configuration of UL2 training objective in OpenMoE and why is it a better choice for pre-training?', 'output': {'feedback': 'The question asks for the configuration of the UL2 training objective within the OpenMoE framework and the rationale behind its suitability for pre-training. It is clear in specifying the topic of interest (UL2 training objective, OpenMoE) and seeks detailed information on both the configuration and the reasons for its effectiveness in pre-training. However, the question might be challenging for those unfamiliar with the specific terminology or the context of OpenMoE and UL2. For broader clarity and answerability, it would be helpful if the question included a brief explanation or context about OpenMoE and the UL2 training objective, or clarified the aspects of pre-training effectiveness it refers to (e.g., efficiency, accuracy, generalization).', 'verdict': 1}}, {'question': 'What is the detailed configuration of the UL2 training objective in OpenMoE, based on the provided context?', 'output': {'feedback': "The question seeks detailed information on the UL2 training objective's configuration within the OpenMoE framework, mentioning 'the provided context' without actually including or describing this context within the query. This makes the question unclear for those who do not have access to the unspecified context. For the question to be clear and answerable, it needs to either include the relevant context directly within the question or be framed in a way that does not require external information. Detailing the specific aspects of the configuration of interest (e.g., loss functions, data augmentation techniques) could also help clarify the query.", 'verdict': 0}}], input_keys=['question'], output_key='output', output_type='json', language='english')), question_answer_prompt=Prompt(name='answer_formulate', instruction="Answer the question using the information from the given context. Output verdict as '1' if answer is present '-1' if answer is not present in the context.", output_format_instruction='', examples=[{'context': 'Climate change is significantly influenced by human activities, notably the emission of greenhouse gases from burning fossil fuels. The increased greenhouse gas concentration in the atmosphere traps more heat, leading to global warming and changes in weather patterns.', 'question': 'How do human activities contribute to climate change?', 'answer': {'answer': 'Human activities contribute to climate change primarily through the emission of greenhouse gases from burning fossil fuels. These emissions increase the concentration of greenhouse gases in the atmosphere, which traps more heat and leads to global warming and altered weather patterns.', 'verdict': '1'}}, {'context': 'The concept of artificial intelligence (AI) has evolved over time, but it fundamentally refers to machines designed to mimic human cognitive functions. AI can learn, reason, perceive, and, in some instances, react like humans, making it pivotal in fields ranging from healthcare to autonomous vehicles.', 'question': 'What are the key capabilities of artificial intelligence?', 'answer': {'answer': 'Artificial intelligence is designed to mimic human cognitive functions, with key capabilities including learning, reasoning, perception, and reacting to the environment in a manner similar to humans. These capabilities make AI pivotal in various fields, including healthcare and autonomous driving.', 'verdict': '1'}}, {'context': 'The novel "Pride and Prejudice" by Jane Austen revolves around the character Elizabeth Bennet and her family. The story is set in the 19th century in rural England and deals with issues of marriage, morality, and misconceptions.', 'question': "What year was 'Pride and Prejudice' published?", 'answer': {'answer': 'The answer to given question is not present in context', 'verdict': '-1'}}], input_keys=['context', 'question'], output_key='answer', output_type='json', language='english'), find_relevant_context_prompt=Prompt(name='find_relevant_context', instruction='Given a question and set of contexts, find the most relevant contexts to answer the question.', output_format_instruction='', examples=[{'question': 'What is the capital of France?', 'contexts': ['1. France is a country in Western Europe. It has several cities, including Paris, Lyon, and Marseille. Paris is not only known for its cultural landmarks like the Eiffel Tower and the Louvre Museum but also as the administrative center.', '2. The capital of France is Paris. It is also the most populous city in France, with a population of over 2 million people. Paris is known for its cultural landmarks like the Eiffel Tower and the Louvre Museum.', '3. Paris is the capital of France. It is also the most populous city in France, with a population of over 2 million people. Paris is known for its cultural landmarks like the Eiffel Tower and the Louvre Museum.'], 'output': {'relevant_contexts': [1, 2]}}, {'question': 'How does caffeine affect the body and what are its common sources?', 'contexts': ['1. Caffeine is a central nervous system stimulant. It can temporarily ward off drowsiness and restore alertness. It primarily affects the brain, where it alters the function of neurotransmitters.', '2. Regular physical activity is essential for maintaining good health. It can help control weight, combat health conditions, boost energy, and promote better sleep.', '3. Common sources of caffeine include coffee, tea, cola, and energy drinks. These beverages are consumed worldwide and are known for providing a quick boost of energy.'], 'output': {'relevant_contexts': [1, 2]}}], input_keys=['question', 'contexts'], output_key='output', output_type='json', language='english'), rewrite_invalid_question_prompt=Prompt(name='rewrite_question', instruction='Given a context, question and feedback, rewrite the question to improve its clarity and answerability based on the feedback provided.', output_format_instruction='', examples=[{'context': "The Eiffel Tower was constructed using iron and was originally intended as a temporary exhibit for the 1889 World's Fair held in Paris. Despite its initial temporary purpose, the Eiffel Tower quickly became a symbol of Parisian ingenuity and an iconic landmark of the city, attracting millions of visitors each year. The tower's design, created by Gustave Eiffel, was initially met with criticism from some French artists and intellectuals, but it has since been celebrated as a masterpiece of structural engineering and architectural design.", 'question': 'Who created the design for the Tower?', 'feedback': "The question asks about the creator of the design for 'the Tower', but it does not specify which tower it refers to. There are many towers worldwide, and without specifying the exact tower, the question is unclear and unanswerable. To improve the question, it should include the name or a clear description of the specific tower in question.", 'output': 'Who created the design for the Eiffel Tower?'}, {'context': "'Exploring Zero-Shot Learning in Neural Networks' was published by Smith and Lee in 2021, focusing on the application of zero-shot learning techniques in artificial intelligence.", 'question': 'What datasets were used for the zero-shot evaluations in this study?', 'feedback': "The question asks about the datasets used for zero-shot evaluations in 'this study', without specifying or providing any details about the study in question. This makes the question unclear for those who do not have access to or knowledge of the specific study. To improve clarity and answerability, the question should specify the study it refers to, or provide enough context about the study for the question to be understood and answered independently.", 'output': 'What datasets were used for the zero-shot evaluations Exploring Zero-Shot Learning in Neural Networks paper?'}], input_keys=['context', 'question', 'feedback'], output_key='output', output_type='str', language='english'), max_tries=5, is_async=True, seed_question_prompt=Prompt(name='seed_question', instruction='Generate a question that can be fully answered from given context. The question should be formed using topic', output_format_instruction='', examples=[{'context': 'Photosynthesis in plants involves converting light energy into chemical energy, using chlorophyll and other pigments to absorb light. This process is crucial for plant growth and the production of oxygen.', 'keyphrase': 'Photosynthesis', 'question': 'What is the role of photosynthesis in plant growth?'}, {'context': 'The Industrial Revolution, starting in the 18th century, marked a major turning point in history as it led to the development of factories and urbanization.', 'keyphrase': 'Industrial Revolution', 'question': 'How did the Industrial Revolution mark a major turning point in history?'}, {'context': 'The process of evaporation plays a crucial role in the water cycle, converting water from liquid to vapor and allowing it to rise into the atmosphere.', 'keyphrase': 'Evaporation', 'question': 'Why is evaporation important in the water cycle?'}], input_keys=['context', 'keyphrase'], output_key='question', output_type='str', language='english'))

Could the problem lie with distributions ? As far as I know, the sum of all distributions must add up to 1.

@omkar-334, thanks for spotting that. This was a typo when copying the code into the ticket. I am passing them as an argument to my script. In my code it is correct and adding to 1. I corrected the info in the ticket description

same issue . i think if context_scoring_parser = RagasoutputParser(pydantic_object=ContextScoring) in output_parser.py  return None ,  means llm cannot gen result by right prompt , it will cause this exception.
also , if scoring is None .  (https://github.com/explodinggradients/ragas/blob/9bc6e6fd44180e658751e15da3a3829c957ee853/src/ragas/testset/filters.py#L60 ), it will cause ZeroDivisionError: division by zero
pls fix this.

same issue . i think if context_scoring_parser = RagasoutputParser(pydantic_object=ContextScoring) in output_parser.py  return None , means llm cannot gen result by right prompt , it will cause this exception.
also , if scoring is None .
https://github.com/explodinggradients/ragas/blob/9bc6e6fd44180e658751e15da3a3829c957ee853/src/ragas/testset/filters.py#L60
, it will cause ZeroDivisionError: division by zero
pls fix this.

Exactly, this is where it fails. Models like Llama 3 or Mixtral 8x7B are able to output JSON but sometimes fail to do so with the context_scoring_prompt.

I'm interested to get a solution for this.

On top of the above mentioned problem, the RagasoutputParser delegates the json parsing to the underlying json.py->parse_json_markdown from langchain which in my case is unable to parse the json markup section within the json_string. The problem is that the _json_mardown_re used matches multiple triple backticks and the json_str = match.group(2) does not return the required context_scoring json object representation as string.

@samiislam @ss7424Refar thank you so much for the suggestion for improvements. I will take this up next week and add these in to improve the JSONParser.
@LDelPinoNT @sroecker @JPonsa applogies for the delay but I'll keep you all in the loop about this. I might need a small help from your end though, to share some examples of model outputs the parser if failing at. I'll write some tests around it too

In my end the amount of "Failed to parse output" was reduced after upgrading to 0.1.11.  (Before I have this error for every row in my dataset).

@LDelPinoNT that is good to know, may I ask which models you are using?

I found the error related to large context size. With small context size, it works fine

this was fixing in v0.2 - are you see the same? @bdytx5 ?

yeah, with claude 3.5 sonnet

is it every row or just some rows - would it be possible to share the data?
I ran it locally with a dataset we have and it was working
the model I used
from langchain_anthropic import ChatAnthropic
sonnet35 = ChatAnthropic(
    model="claude-3-5-sonnet-20240620",
    temperature=0
)

yeah, using        metrics = [             LLMContextRecall(), FactualCorrectness(), Faithfulness(),             LLMContextPrecisionWithoutReference(), NoiseSensitivity(),             ResponseRelevancy(), ContextEntityRecall()         ]         results = evaluate(dataset=eval_dataset, metrics=metrics, llm=evaluator_llm, run_config=my_run_config)
with the LangchainLLMWrapper(ChatAnthropic(model=gen_model_name)) model gives the error on some datapoints, but not all.... Heres the data
results_claude-3-5-sonnet-20240620_cohere.csv

@bdytx5 so I checked the traces and so that there where a few retries that are happening due to max_token issue

a few are due to incorrect small mistakes in the JSON outputed.
I increased the max_token output and that fixed most of it actually
from langchain_anthropic import ChatAnthropic
sonnet35 = ChatAnthropic(
    model="claude-3-5-sonnet-20240620",
    temperature=0,
    max_tokens=4096
)

so I'll do the following next steps

throw the error when model exceeds the max_token limit so users understand the root cause
improve the Output parser - this is bit more vague but let me try a few straightforward experiments

nice! Yeah a max_token error would be very helpful!

the original issue is now much improved with #1541
closing this for now but do test the latest release and see if it solves the issues


iOS Navbar no longer respects dark mode background color selection in apptheming

I pulled this package into my project here:
https://github.com/edgiardina/IfpaMaui
I have the following styles for my NavBar:
<Style TargetType="TabBar">
        <!-- Nav Bar Properties (Top) -->
        <Setter Property="Shell.ForegroundColor" Value="{StaticResource IconAccentColor}" />
        <Setter Property="Shell.BackgroundColor" Value="{AppThemeBinding Light={StaticResource BarBackgroundColor}, Dark={StaticResource BarBackgroundColorDark}}" />
        <Setter Property="Shell.TitleColor" Value="{AppThemeBinding Light={StaticResource PrimaryTextColor}, Dark={StaticResource PrimaryTextColorDark}}" />

        <!-- Tab Bar Properties (Bottom) -->
        <Setter Property="Shell.TabBarBackgroundColor"
            Value="{AppThemeBinding Light={StaticResource BarBackgroundColor}, Dark={StaticResource BarBackgroundColorDark}}" />
        <Setter Property="Shell.TabBarTitleColor"
            Value="{StaticResource IconAccentColor}" />
        <Setter Property="Shell.TabBarUnselectedColor"
            Value="{StaticResource SecondaryTextColor}" />
    </Style>
    ```

    ```
        <Color x:Key="BarBackgroundColorDark">#191919</Color>
        <Color x:Key="BarBackgroundColor">#f6f6f6</Color>
     ```

However, the Shell.BackgroundColor is now appearing white while I'm in Dark Mode.

Guess it looks straightforward, do we have to declare white here?
https://github.com/PureWeen/ShanedlerSamples/blob/b1627bf34fd0ab312ce572641ac8cbdffd017a31/ShanedlerSamples/Library/Workarounds/ShellWorkarounds.iOS.cs#L269

I reverted the toolbartracker that was setup in there back to the default maui one

@PureWeen maybe the updated workaround provided by our friend @borrmann suggested right after my comment could work, I would suggest to set the BackgroundColor using a saved status, so stuff like AppThemeBinding should still work
public void SetAppearance(UINavigationController controller, ShellAppearance appearance)
    {
        var navBar = controller.NavigationBar;
        var col = navBar.BackgroundColor;
        var navigationBarAppearance = new UINavigationBarAppearance();
        navigationBarAppearance.ConfigureWithOpaqueBackground();
        navigationBarAppearance.ShadowColor = UIColor.Clear;
        navigationBarAppearance.BackgroundColor = col;
        navBar.ScrollEdgeAppearance = navBar.StandardAppearance = navigationBarAppearance;
    }

Just wanted to share my grain of salt.
Thank you all 😀

@PureWeen maybe the updated workaround provided by our friend @borrmann suggested right after my comment could work, I would suggest to set the BackgroundColor using a saved status, so stuff like AppThemeBinding should still work
public void SetAppearance(UINavigationController controller, ShellAppearance appearance)
    {
        var navBar = controller.NavigationBar;
        var col = navBar.BackgroundColor;
        var navigationBarAppearance = new UINavigationBarAppearance();
        navigationBarAppearance.ConfigureWithOpaqueBackground();
        navigationBarAppearance.ShadowColor = UIColor.Clear;
        navigationBarAppearance.BackgroundColor = col;
        navBar.ScrollEdgeAppearance = navBar.StandardAppearance = navigationBarAppearance;
    }

Just wanted to share my grain of salt.
Thank you all 😀

@vhugogarcia what's the intent of NoLineAppearanceTracker ? Does the titleView fix you have not quite work without it?

That is correct. I tried a few options without luck and this one worked. Honestly this was like try and catch thing. I found some people used the NoLineApparanceTracker and then I tried it and it worked.
I hardcoded the background to white, since the app was not required to be in dark mode. However, the solution our friend added to allow dark mode is better to support app theming 🙂

That is correct. I tried a few options without luck and this one worked. Honestly this was like try and catch thing. I found some people used the NoLineApparanceTracker and then I tried it and it worked.
I hardcoded the background to white, since the app was not required to be in dark mode. However, the solution our friend added to allow dark mode is better to support app theming 🙂

Interesting!
I'll need to play with it a bit to see what interferes.
I have a number of fixes in our main branch around the iOS titlebar I'm hoping to replicate here as well.
Maybe that'll unite all the worlds

@edgiardina closing this for now.
I pushed up a version with the mostly latest TitleView stuff from our main MAUI branch.
If you hit any issues please let me know.


Mouse LXTerminal

I'm using LXTerminal from LXQt to ssh into my box and run vtop.
The moment I move my mouse over the running vtop session (which otherwise works perfectly) it seems random keyboard presses are sent through somehow ... Suddenly and very quickly. The whole thing eventually crashes when I suppose pressing "u" is somehow simulated ...
Any ideas ?

Hmmm... that is odd. Maybe newer versions of Blessed work better
On Sat, 5 Dec 2015 at 14:13 kewp<EMAIL_ADDRESS>wrote:

I'm using LXTerminal from LXQt to ssh into my box and run vtop.
The moment I move my mouse over the running vtop session (which otherwise
works perfectly) it seems random keyboard presses are sent through somehow
... Suddenly and very quickly. The whole thing eventually crashes when I
suppose pressing "u" is somehow simulated ...
Any ideas ?
—
Reply to this email directly or view it on GitHub
https://github.com/MrRio/vtop/issues/61.

Wow, blessed looks great.
Let me fiddle with it (on it's own) and see if I get the same issues ...

This happens as well on Arch using the following terminal emulators.

Terminator 1.0 Alpha
Gnome Terminal 3.18.2
xfce4-terminal 0.6.3

A quick video of the problem occurring.

Another note,
I cloned the repo to start working on this issue, and it does not appear to be happening when running node ./bin/vtop. Currently checkout out ref: 55dd8398ffaa69474a106190d81fb564e36fb6c6
I also installed vtop from the local directory with: sudo npm i -g . and vtop behaved correctly. This may not need any changing. Could be different version of blessed?

Okay, a little more research: This was fixed with #57.
Fixed: https://github.com/MrRio/vtop/pull/58
Problem is for some reason when installed from npm, it does not seem to include this fix. Maybe the package needs a version bump.

+1
Terminator, ssh'd into a SLES machine.

+1 this seems to be the same as issue #66

+1 Arch Linux

Having the same problem. It either kills it or forces it to upgrade/update. iTerm 2.


Link DockerHub Page to Github Repo

Add a link on the docker hubs page referencing this github repo, so that its easier to find it.
The old repo did that:

This one is missing that:

I checked i can't find an option to add this "Source Repository" manually, maybe with "Automated Builds" but it requires a subscription, which we don't need because we build with Github actions.
Maybe add a link in the Readme to this respository?
I am open for any ideas.

Its some magic with automated builds and having the readme file in the container.

I think that only shows up if the repo is linked to github at time of creation.

Yeah, I think you're right.


Add audioplayers to Flutter Arsenal

audioplayers can be added to FlutterArsenal to help with reach, accessibility and ease-of-use. Flutter Arsenal is a directory that is being curated for Flutter libraries and tool. The best way to do is by creating an issue on github.

@luanpotter what do you think about this?

I think flutterarsenal is not actively maintained anymore.


start returned error: hcsshim::CreateComputeSystem %CONTAINER_ID%: The requested resource is in use.

PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!
Describe the issue
BC container mostly not starting up. After a couple of host reboots and docker desktop restarts it sometimes may start up the BC container.
When creating a new container with the script below it always comes up after creation. Problem only starts after docker restart.
Scripts used to create container and cause the issue
Got this script mostly from the wiz.
I've added the memory limit. My understanding was that 4G is the default (not sure if this is accurate).
$containerName = 'bcserver'
$password = 'P@ssw0rd'
$securePassword = ConvertTo-SecureString -String $password -AsPlainText -Force
$credential = New-Object pscredential 'admin', $securePassword
$auth = 'UserPassword'
$artifactUrl = Get-BcArtifactUrl -type 'Sandbox' -country 'nz' -select 'Latest'
New-BcContainer `
    -accept_eula `
    -containerName $containerName `
    -credential $credential `
    -auth $auth `
    -artifactUrl $artifactUrl `
    -isolation hyperv `
    -updateHosts `
	-memoryLimit 8G `
	-alwayspull

Full output of scripts
PS C:\WINDOWS\system32> docker logs bcserver
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.3.42673.43543/nz
Using installer from C:\Run\150-new
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
c:\dl\sandbox\20.3.42673.43543\platform\ServiceTier\Program Files
c:\dl\sandbox\20.3.42673.43543\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.3.42673.43543\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.3.42673.43543\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.3.42673.43543\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.3.42673.43543\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.3.42673.43543\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.3.42673.43543\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.3.42673.43543\platform
c:\dl\sandbox\20.3.42673.43543\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.3.42673.43543\nz\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.3.42673.43543\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.3.42673.43543\nz\Extensions
Copying Applications
C:\dl\sandbox\20.3.42673.43543\platform\Applications
Copying Applications.NZ
C:\dl\sandbox\20.3.42673.43543\nz\Applications.NZ
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Restoring CRONUS Demo Database
Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS
Exporting Application to CRONUS
Removing Application from tenant
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Starting Business Central Service Tier
Importing license file
Copying Database on localhost\SQLEXPRESS from tenant to default
Taking database tenant offline
Copying database files
Attaching files as new Database default
Putting database tenant back online
Mounting tenant database
Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
Sync'ing Tenant
Tenant is Operational
Stopping Business Central Service Tier
Installation took 234 seconds
Installation complete
Initializing...
Setting host.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting kubernetes.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting host.containerhelper.internal to <IP_ADDRESS> in container hosts file
Starting Container
Hostname is bcserver
PublicDnsName is bcserver
Using NavUserPassword Authentication
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 1AE1B9820501A961A05DA168F4F94FF5F1D05B11
DNS identity bcserver
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Using application pool name: BC
Using default container name: NavWebApplicationContainer
Copy files to WWW root C:\inetpub\wwwroot\BC
Create the application pool BC
Create website: NavWebApplicationContainer without SSL
Update configuration: navsettings.json
Done Configuring Web Client
Enabling Financials User Experience
Dismounting Tenant
Mounting Tenant
Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
Sync'ing Tenant
Tenant is Operational
Creating http download site
Setting SA Password and enabling SA
Creating admin as SQL User and add to sysadmin
Creating SUPER user
Container IP Address: <IP_ADDRESS>
Container Hostname  : bcserver
Container Dns Name  : bcserver
Web Client          : http://bcserver/BC/?tenant=default
Dev. Server         : http://bcserver
Dev. ServerInstance : BC
Dev. Server Tenant  : default
Setting bcserver to <IP_ADDRESS> in host hosts file
Setting bcserver-default to <IP_ADDRESS> in host hosts file
Setting bcserver-default to <IP_ADDRESS> in container hosts file

Files:
http://bcserver:8080/ALLanguage.vsix

WARNING: You are running a container which is 123 days old.
Microsoft recommends that you always run the latest version of our containers.

Container Total Physical Memory is 8.5Gb
Container Free Physical Memory is 5.9Gb

Initialization took 55 seconds
Ready for connections!
Initializing...
Setting host.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting kubernetes.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting host.containerhelper.internal to <IP_ADDRESS> in container hosts file
Restarting Container
PublicDnsName unchanged
Hostname is bcserver
PublicDnsName is bcserver
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Starting Service Tier
Container IP Address: <IP_ADDRESS>
Container Hostname  : bcserver
Container Dns Name  : bcserver
Web Client          : http://bcserver/BC/?tenant=default
Dev. Server         : http://bcserver
Dev. ServerInstance : BC
Dev. Server Tenant  : default
Setting bcserver to <IP_ADDRESS> in host hosts file
Setting bcserver-default to <IP_ADDRESS> in host hosts file
Setting bcserver-default to <IP_ADDRESS> in container hosts file

Files:
http://bcserver:8080/ALLanguage.vsix

Container Total Physical Memory is 8.5Gb
Container Free Physical Memory is 7.2Gb

Initialization took 18 seconds
Ready for connections!
Initializing...
Setting host.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting kubernetes.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting host.containerhelper.internal to <IP_ADDRESS> in container hosts file
Restarting Container
PublicDnsName unchanged
Hostname is bcserver
PublicDnsName is bcserver
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Starting Service Tier
Initializing...
Setting host.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting kubernetes.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting host.containerhelper.internal to <IP_ADDRESS> in container hosts file
Restarting Container
PublicDnsName unchanged
Restart count 1
Hostname is bcserver
PublicDnsName is bcserver
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Starting Service Tier
Container IP Address: <IP_ADDRESS>
Container Hostname  : bcserver
Container Dns Name  : bcserver
Web Client          : http://bcserver/BC/?tenant=default
Dev. Server         : http://bcserver
Dev. ServerInstance : BC
Dev. Server Tenant  : default
Setting bcserver to <IP_ADDRESS> in host hosts file
Setting bcserver-default to <IP_ADDRESS> in host hosts file
Setting bcserver-default to <IP_ADDRESS> in container hosts file

Files:
http://bcserver:8080/ALLanguage.vsix

Container Total Physical Memory is 8.5Gb
Container Free Physical Memory is 7.2Gb

Initialization took 15 seconds
Ready for connections!

Screenshots
Screensshots from the Windows Event Log

Additional context

does it happen all the time?
Yes as described happens most of the time.
did it use to work?
Yes used to work.

What I've tried so far

Changed the pagefile size as described in the other related issue (https://github.com/microsoft/navcontainerhelper/issues/1099)
Docker factory reset multiple times
Docker re-install multiple times
Changed memory option as said above

I'm really at the end of my ideas so hoping someone here has a helping idea.
Thanks

Additional information:
I had docker idling around for like half a day only using my other container (a sql dev version) to do some other work. It just started successfully without restarting pc or docker.
Event logs showing 2 more errors:

and

Which is interesting since I never had the whole username/ password issue. Maybe its related to this issue: https://github.com/microsoft/navcontainerhelper/issues/1321

8G is the default memory limit.
How much memory do you have on the host computer?

Did a quick test on my machine (which has 128G)
I created a hyperv container with 8G and had that running for a bit
Then I created a container with 32G (same name, which causes containerhelper to remove the old and create a new container)
That results in the following resource monitor output:

the container removal and creation happens in the 3rd quadrant.
As you can see - the physical memory used on the host doesn't change whether you use 8G or 32G
but the commit charge does.
Docker/ContainerD will allocate the 32G in the paging file and reserve that for the container - but you cannot just set the paging file to 10000G with a 16G machine. I am not sure about the details of this - but my understanding is that when containerD gives the resource in use error - it is because it is unable to allocate sufficient space in the paging file for the container.
Needless to say, I have never seen the resource in use with my 64Gb or my new 128Gb machine.

If your computer is low on memory, process isolation might be better (but sometimes that has other problems on desktop OS's)

Ok that makes sense. I've got only 16GB memory on my machine so maybe it will go away when I upgrade to more?
I've tried to just recreate the bc container with a higher memory limit:
Script
$containerName = 'bcserver'
$password = 'P@ssw0rd'
$securePassword = ConvertTo-SecureString -String $password -AsPlainText -Force
$credential = New-Object pscredential 'admin', $securePassword
$auth = 'UserPassword'
$artifactUrl = Get-BcArtifactUrl -type 'Sandbox' -country 'nz' -select 'Latest'
New-BcContainer `
    -accept_eula `
    -containerName $containerName `
    -credential $credential `
    -auth $auth `
    -artifactUrl $artifactUrl `
    -isolation hyperv `
    -updateHosts `
    -memoryLimit 12G `
    -alwayspull

Somehow that ended in the same error as just starting the image was:
Error Details

DockerDo : docker: Error response from daemon: hcsshim::CreateComputeSystem
aa6c578e851e887e3b957bf68b3a1e3c161135456e248f95e44118af09e532dd: The requested resource is in use.
ExitCode: 125

At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\3.0.11\ContainerHandling\New-NavContainer.ps1:1852
char:15
+ ...       if (!(DockerDo -accept_eula -accept_outdated:$accept_outdated - ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,DockerDo

Full log:
PS D:\bc-development> .\new-container-wiz.ps1
BcContainerHelper version 3.0.11
BcContainerHelper emits usage statistics telemetry to Microsoft
PS D:\bc-development> .\new-container-wiz.ps1
BcContainerHelper is version 3.0.11
BcContainerHelper is running as administrator
Hyper-V is Enabled
UsePsSession is True
Host is Microsoft Windows 10 Enterprise - 21H2
Docker Client Version is 20.10.17
Docker Server Version is 20.10.17
Removing entries from hosts
Removing bcserver from container hosts file
Removing bcserver-* from container hosts file
Removing Desktop shortcuts
Removing C:\ProgramData\BcContainerHelper\Extensions\bcserver
Downloading application artifact /sandbox/20.3.42673.44004/nz
Downloading C:\Users\Nils\AppData\Local\Temp\8338f773-836d-499a-935c-0d44389cb24d.zip
Unpacking application artifact to tmp folder using Expand-Archive
Downloading platform artifact /sandbox/20.3.42673.44004/platform
Downloading C:\Users\Nils\AppData\Local\Temp\c86f5621-ab29-4cab-aed4-03bdabbfd72c.zip
Unpacking platform artifact to tmp folder using Expand-Archive
Downloading Prerequisite Components
Downloading c:\bcartifacts.cache\sandbox\20.3.42673.44004\platform\Prerequisite Components\Open XML SDK 2.5 for Microsoft Office\OpenXMLSDKv25.msi
Downloading c:\bcartifacts.cache\sandbox\20.3.42673.44004\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
Downloading c:\bcartifacts.cache\sandbox\20.3.42673.44004\platform\Prerequisite Components\DotNetCore\DotNetCore.1.0.4_1.1.1-WindowsHosting.exe
Fetching all docker images
Fetching all docker volumes
INFO: Windows 10 21H1/21H2 images are not yet available, using 2004 as these are found to work better than 20H2 on 21H1/21H2
Pulling image mcr.microsoft.com/businesscentral:10.0.19041.1415
10.0.19041.1415: Pulling from businesscentral
Digest: sha256:aa9f9d0779654ab9dba736a43141591a70fa419c4a9a57fd8a517086841280ff
Status: Image is up to date for mcr.microsoft.com/businesscentral:10.0.19041.1415
mcr.microsoft.com/businesscentral:10.0.19041.1415
Using image mcr.microsoft.com/businesscentral:10.0.19041.1415
Creating Container bcserver
Style: sandbox
Multitenant: Yes
Version: 20.3.42673.44004
Platform: 20.0.42653.43979
Generic Tag: <IP_ADDRESS>
Container OS Version: 10.0.19041.1415 (2004)
Host OS Version: 10.0.19044.1826 (21H2)
Using hyperv isolation
Using locale en-NZ
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Files in C:\ProgramData\BcContainerHelper\Extensions\bcserver\my:
- AdditionalOutput.ps1
- MainLoop.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container bcserver from image mcr.microsoft.com/businesscentral:10.0.19041.1415
aa6c578e851e887e3b957bf68b3a1e3c161135456e248f95e44118af09e532dd
New-BcContainer Telemetry Correlation Id: 9ff685cb-ec15-4be8-96d2-6ddf5cf621c1
DockerDo : docker: Error response from daemon: hcsshim::CreateComputeSystem
aa6c578e851e887e3b957bf68b3a1e3c161135456e248f95e44118af09e532dd: The requested resource is in use.
ExitCode: 125
Commandline: docker run --volume "c:\bcartifacts.cache:c:\dl" --label nav= --env isBcSandbox=Y --label
version=20.3.42673.44004 --label platform=20.0.42653.43979 --label country=NZ --env
artifactUrl=https://bcartifacts.azureedge.net/sandbox/20.3.42673.44004/nz --env multitenant=Y --env licenseFile=""
--name bcserver --hostname bcserver --env auth=NavUserPassword --env username="admin" --env ExitOnError=N --env
locale=en-NZ --env databaseServer="" --env databaseInstance="" --volume
"C:\ProgramData\BcContainerHelper:C:\ProgramData\BcContainerHelper" --volume
"C:\ProgramData\BcContainerHelper\Extensions\bcserver\my:C:\Run\my" --isolation hyperv --restart unless-stopped --env
filesOnly=False --memory 12G --env enableApiServices=Y --env useSSL=N --volume
"c:\windows\system32\drivers\etc:C:\driversetc" --env securePassword=76492d1116743f0423413b16050a5345MgB8AEUAVQAzADcAdQ
AzADcAQQBCAHgAOQBLAEIAaQBlAE0AdgA5ADQATAA4AGcAPQA9AHwAZABlADEANwBjAGYANwA0ADQANwA5AGIAYwBiAGYAMQA0ADIAMAA5ADgAYgA4AGMAN
wA2AGEAZgA4ADMAOQA1AGIAOQBmADcAZgA5AGUAZgBjADUAMQA3ADgAZQA3ADEAMgBiADkAOAAxAGEANAAzAGUANgBlADYANQBjAGQAYQA= --env
passwordKeyFile="c:\run\my\aes.key" --env removePasswordKeyFile=Y --env accept_eula=Y --env accept_outdated=Y --detach
mcr.microsoft.com/businesscentral:10.0.19041.1415
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\3.0.11\ContainerHandling\New-NavContainer.ps1:1852
char:15
+ ...       if (!(DockerDo -accept_eula -accept_outdated:$accept_outdated - ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,DockerDo

I tried using process isolation before but that only gave me errors. I believe the windows version does not match with well with the image or something similar.
Here is the windows version:

And this is what I set my paging file to (maybe thats not correct either?):

Yeah - I would expect that.
16Gb is not a lot when running docker.
if you upgrade to 64gb I am pretty sure the problem will go away.

our latest dev machines have 64 Gb - and it is not gone. I do have some theory about this issue...it most likely circles around the usage of Docker Desktop and goes a little bit like this:
Windows: "oh lets start my services...oh well, Dockerd? ok, lets start"
DockerD: "oh boy, I have to work again? ok, let's see: there is a BC Container that wants to run automatic? fine...lets start"
BCContainer: "Woohoo! Lets start! SQL, Check, St, CHeck, IIS, CHeck ..." - BC Container is UP
(Fun Fact: if you now try to connect to https://Container/BC you can actually connect to it even without Docker Desktop started... so: )
Docker Dekstop: "Muuhahaha, lets get control over this DockerD - I am the once to rule it - nobody else.... wait... it is running already! How can you!!! DockerD - your master is here and tells you: Stop everything!"
DockerD: "oh crap, that bully again. I better do what he told me"
BCContainer: "What? stopping? boy that will take some time, but ok...."
DockerD: "oh boy that takes really long...too long, Master will be not happy about this..."
Docker Desktop: "How hard can it be...I mean  "Docker Desktop failed to Stop (while actually starting it)"
wait....wait...wait....wait (clumsy BCContainer finally manager to stop everything) ... Docker Desktop resurrects (aka. you hit restart 123 times) from the dead and tells again "DockerD - I am back! Go do your work!"
DockerD: "oh boy, I have to work again ....
BCContainer:" Wooohooo"
DockerD and Docker Desktop are both happy they managed the job....
Well, now comes HyperV ... and makes the whole topic of the container a story if it's own as it treats it more or less like a normal VM going up and down.... if now Docker Desktop or DockerD is too hard on this "timelimit of operations" it will collide with HyperV still in charge of doing things (starting/stopping) which might lead to the message: resource in use...
What I want to express:

if you can avoid HyperV do it use process isolation
if you can avoid Docker Desktop do it (and get used to Check-BcContainerHelperPermissions -fix you will need to use it quite often)
might not be just a RAM issue but also timing...Windows Containers are not Dockers best friend...too big, too heavy leading to those sideeffects...
sounds so 80s but stop the container(s) before you shut down your laptop (could also try to  influence the restart policy of containers)

does this comment help? maybe not - but I had the need to express myself :D

Thanks @KristofKlein - I had fun reading your "story".
Personally, I use Docker Engine and I don't have this problem (but I also have 128Gb)
The script I use for installing/updating docker engine is here:
https://github.com/microsoft/nav-arm-templates/blob/master/InstallOrUpdateDockerEngine.ps1
You could try to see whether it indeed is a Docker Desktop problem.

I have a similar issue to the described.
I have 4 nodes with 64 GiB RAM capacity each.
All uses same OS image.
Two of them start facing issue after re-imaging one year ago.
Third one just bring this problem recent.


[VISQRunner] Run/edit visq configuration file.

This commit allows to create or edit visq configuration file.
Basic usage is as follows:

Use Create VISQ data from context menu of circle file from EXPLORER (multiple selection .circle + .q8.circle + .h5 are also allowed)
Fill parameters like quantized model and 'h5 data`
Push Run button at the top of the screen.

https://user-images.githubusercontent.com/112689352/232785310-d3f1c780-e153-4c27-ba97-5074aa3f9d43.mp4
TODO README.md
Related to: #1506
ONE-vscode-DCO-1.0-Signed-off-by: s.malakhov<EMAIL_ADDRESS>

The flow looks good to me.

@seanshpark @dayo09 @jinevening
May be we can try to merge it after splitting?

the results are immediately presented to the user.

Looks better to me :)


About vimscript configuration issues

I am using the vimscript script configuration, and there is an error at runtime, what should I do?

Good morning and thank you for reporting the issue. This is caused by the fact that most likely your session directory does not exist on your computer: make sure to create one (still, I need to handle the error properly, I will fix this).
This is the default directory for sessions on your computer: does such folder exists?

Good morning and thank you for reporting the issue. This is caused by the fact that most likely your session directory does not exist on your computer: make sure to create one (still, I need to handle the error properly, I will fix this).
This is the default directory for sessions on your computer: does such folder exists?
Once we validate this is the root cause I will make a fix to better handle the error message.
I asked you another question in Google Mail, please take a look if you have time, thank you!

It seems you only cited the quoted text: could you edit the comment? :)

Is the folder the root cause of the issue? Namely would that fix it?

Is the folder the root cause of the issue? Namely would that fix it?

no it's another one
I want to use a set of shortcut keys to copy the currently selected content into the specified register or paste the content of the specified register under the cursor, although I can use "xy and "xp to do it.
But I feel that the operation is cumbersome. I want to use the shortcut keys of cx and vx to complete the above work. How should I do it? Thank you.
The letter x represents the designated register.

I believe there is some confusion here:

to address there error shown in your initial screenshot, does the session folder exist on your computer? By reproducing it I obtain the same exception if I specify a path that doesn't exist, so that should be it.

I want to use a set of shortcut keys to copy the currently selected content into the specified register or paste the content of the specified register under the cursor, although I can use "xy and "xp to do it.

what selected content are you referring to, here? Is this in the context of this issue where you see the error by invoking require("nvim-possession").list()? I have the impression this is a different topic, or am I wrong?

I believe there is some confusion here:

to address there error shown in your initial screenshot, does the session folder exist on your computer? By reproducing it I obtain the same exception only if I specify a path that doesn't exist, so that should be it.

I want to use a set of shortcut keys to copy the currently selected content into the specified register or paste the content of the specified register under the cursor, although I can use "xy and "xp to do it.

what selected content are you referring to, here? Is this in the context of this issue where you see the error by invoking require("nvim-possession").list()? I have the impression this is a different topic, or am I wrong?

Yes, not the same problem.

So let us please dedicate one issue per topic, otherwise it can generate confusion also for other users referring to this issue (looking for similar solutions).
For this particular issue, namely the error that you showed in your original screenshot, is that addressed by specifying a path to an existing folder (or creating a folder in the default path)? Let us check on this first (so that I can merge the fix in https://github.com/gennaro-tedesco/nvim-possession/pull/18) and then move on to the next one :)

After I installed it, I used it directly like this.

Does the above error need to configure anything?

You need to call the setup({}) function to expose those interfaces as specified in the README (and as you did in your first comment). So

install the plugin (with your plugin manager)
require("nvim-possession").setup({}) somewhere in your configuration
make sure the session path exists on your computer (create the folder if not)
invoking require("nvim-possession").list() (and other commands) will work

I tested it with vimscript configuration as well and it works. The original problem was that your session path didn't exist on your computer (see point 3. above), the problem you just showed now is because you didn't call setup({}) anywhere in your config.

I merged https://github.com/gennaro-tedesco/nvim-possession/pull/18, now the exception is handled with an error message. You should see the new behaviour upgrading the plugin directly.

I merged #18, now the exception is handled with an error message. You should see the new behaviour upgrading the plugin directly.

Good morning, according to the steps you said, I can already use the plugin, thank you.