Error while fetching extensions. Failed to fetch

Type: Feature Request
Hi, I going to install an  extensions , live server, but when i serch this text appears to me: Error while fetching extensions. Failed to fetch, what can i do ?
VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z)
OS version: Windows_NT x64 10.0.19045
Modes:

Can you please share following logs

F1 > Developer: Toggle Developer Tools
Output from console.log and also a screenshot of failed requests in network tab

webviewElement.ts:482 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ webviewElement.ts:482
log.ts:419  INFO Started local extension host with pid 9604.
marketplace.visualstudio.com/_apis/public/gallery/extensionquery:1
   Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID

log.ts:419  INFO [perf] Render performance baseline is 25ms
log.ts:429  WARN [csharp]: Couldn't find message for key configuration.razor.server.trace.
marketplace.visualstudio.com/_apis/public/gallery/extensionquery:1
   Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID

log.ts:439   ERR Failed: Failed to fetch
at ae.D (vscode-file://vscode-app/c:/Users/bbeng/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:815:39920)
at async ae.B (vscode-file://vscode-app/c:/Users/bbeng/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:815:36691)
at async ae.getExtensions (vscode-file://vscode-app/c:/Users/bbeng/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:815:33139)
at async ne.getExtensions (vscode-file://vscode-app/c:/Users/bbeng/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2724:15940)
at async De.Oc (vscode-file://vscode-app/c:/Users/bbeng/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2660:24242)
at async De.Xc (vscode-file://vscode-app/c:/Users/bbeng/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2660:27041)
at async De.uc (vscode-file://vscode-app/c:/Users/bbeng/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2660:13448)
at async vscode-file://vscode-app/c:/Users/bbeng/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2660:11707
marketplace.visualstudio.com/_apis/public/gallery/extensionquery:1
   Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID

log.ts:439   ERR Failed: Failed to fetch
at ae.D (vscode-file://vscode-app/c:/Users/bbeng/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:815:39920)
at async ae.B (vscode-file://vscode-app/c:/Users/bbeng/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:815:36691)
at async ie (vscode-file://vscode-app/c:/Users/bbeng/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:815:35617)
at async ae.query (vscode-file://vscode-app/c:/Users/bbeng/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:815:35915)
at async ne.queryGallery (vscode-file://vscode-app/c:/Users/bbeng/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2724:15511)
at async Le.Kc (vscode-file://vscode-app/c:/Users/bbeng/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2660:22038)
at async Le.uc (vscode-file://vscode-app/c:/Users/bbeng/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2660:13448)
at async vscode-file://vscode-app/c:/Users/bbeng/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2660:11707
webviewElement.ts:482 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ webviewElement.ts:482
webviewElement.ts:482 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ webviewElement.ts:482

@sandy081

Seems proxy related.

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 entering https://marketplace.visualstudio.com as 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....

@chrmarti
Note: Make sure to replace all sensitive information with dummy values before sharing this output.
VS Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9)
Network Proxy Test 0.0.12
win32 10.0.19045 x64
Settings:

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

Environment variables:
Sending GET request to https://marketplace.visualstudio.com...
vscode-proxy-agent: DIRECT
Received response:

Status: 200 OK
Certificate chain:
Subject: visualstudio.com (Microsoft Corporation)
Subject alt: DNS:visualstudio.com, DNS:.visualstudio.com, DNS:.vsmps.visualstudio.com, DNS:.vssps.visualstudio.com, DNS:.vssh.visualstudio.com, DNS:.vsclt.visualstudio.com, DNS:.vsrm.visualstudio.com, DNS:.codelens.visualstudio.com, DNS:.almsearch.visualstudio.com, DNS:.csstool.visualstudio.com, DNS:.artifacts.visualstudio.com, DNS:.vsblob.visualstudio.com, DNS:.vsblob.vsassets.io, DNS:.manage.visualstudio.com, DNS:.extmgmt.visualstudio.com, DNS:.marketplace.visualstudio.com, DNS:.gallery.vsassets.io, DNS:.pkgs.visualstudio.com, DNS:.zeus.visualstudio.com, DNS:.entreq.visualstudio.com, DNS:.feeds.visualstudio.com, DNS:.vstsusers.visualstudio.com, DNS:.portalext.visualstudio.com, DNS:.analytics.visualstudio.com, DNS:.my.visualstudio.com, DNS:.dataimport.visualstudio.com, DNS:.vstsmms.visualstudio.com, DNS:.vsaex.visualstudio.com, DNS:.vslicense.visualstudio.com, DNS:.vstskalypso.visualstudio.com, DNS:.vscommerce.visualstudio.com, DNS:.governance.visualstudio.com, DNS:.orgsearch.visualstudio.com, DNS:.portal.visualstudio.com, DNS:.vskeros.visualstudio.com, DNS:.vstoken.visualstudio.com, DNS:.vstmr.visualstudio.com, DNS:.vscatalog.visualstudio.com, DNS:.gdprdel.visualstudio.com, DNS:.userext.visualstudio.com, DNS:.vsdscops.visualstudio.com, DNS:.pipelines.visualstudio.com, DNS:.azboards.visualstudio.com, DNS:.azminicom.visualstudio.com, DNS:.commvtwo.visualstudio.com, DNS:.status.visualstudio.com, DNS:.vsdevprofile.visualstudio.com, DNS:.vsevidence.visualstudio.com, DNS:.vspolicy.visualstudio.com, DNS:.auditservice.visualstudio.com, DNS:.vsnotify.visualstudio.com, DNS:.azchatops.visualstudio.com, DNS:.azents.visualstudio.com, DNS:.runtimecatalog.visualstudio.com, DNS:.artifactcache.visualstudio.com, DNS:.azpipelines.visualstudio.com, DNS:.advsec.visualstudio.com, DNS:.sample.visualstudio.com, DNS:.vsallin.net, DNS:.almsearch.vsallin.net, DNS:.codelens.vsallin.net, DNS:.csstool.vsallin.net, DNS:.marketplace.vsallin.net, DNS:.vsaex.vsallin.net, DNS:.vscommerce.vsallin.net, DNS:.vsmps.vsallin.net, DNS:.vsrm.vsallin.net, DNS:.vssps.vsallin.net, DNS:.vsspsext.vsallin.net, DNS:.vstsusers.vsallin.net, DNS:.vskeros.vsallin.net, DNS:.vscatalog.vsallin.net, DNS:.vsdscops.vsallin.net, DNS:.vstoken.vsallin.net, DNS:.gdprdel.vsallin.net, DNS:.userext.vsallin.net, DNS:.vslicense.vsallin.net, DNS:.status.vsallin.net, DNS:.galleryppe.vsassets.io, DNS:.vstmrblob.vsassets.io, DNS:.vstmrblob.vsallin.net, DNS:.vsassets.io, DNS:.dpdbot.visualstudio.com
Validity: Jun 17 05:29:33 2024 GMT - Dec 14 05:29:33 2024 GMT
Fingerprint: A7:B3:EC:18:0A:43:1F:3C:19:83:AD:BA:41:E3:7B:51:0E:F6:8F:39
Subject: Microsoft Azure RSA TLS Issuing CA 03 (Microsoft Corporation)
Validity: Jun  8 00:00:00 2023 GMT - Aug 25 23:59:59 2026 GMT
Fingerprint: F9:38:8E:A2:C9:B7:D6:32:B6:6A:2B:0B:40:6D:F1:D3:7D:39:01:F6
Subject: DigiCert Global Root G2 (DigiCert Inc)
Validity: Aug  1 12:00:00 2013 GMT - Jan 15 12:00:00 2038 GMT
Fingerprint: DF:3C:24:F9:BF:D6:66:76:1B:26:80:73:FE:06:D1:CC:8D:4F:82:A4
Self-signed
Local root certificates:
Subject: C=US O=DigiCert Inc OU=www.digicert.com CN=DigiCert Global Root G2 (built-in and OS)
Validity: Aug  1 12:00:00 2013 GMT - Jan 15 12:00:00 2038 GMT
Fingerprint: DF:3C:24:F9:BF:D6:66:76:1B:26:80:73:FE:06:D1:CC:8D:4F:82:A4
Issuer: C=US O=DigiCert Inc OU=www.digicert.com CN=DigiCert Global Root G2

Sending GET request to https://marketplace.visualstudio.com using fetch API...
Received response:

Status: 200

Ah, okay, I think I understand now. It is about my network. My workplace network does not let me connect to http, whereas I can connect to https; that may be the reason.

For the other people with this issue, this is the required information on my workplace network:
Note: Make sure to replace all sensitive information with dummy values before sharing this output.
VS Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9)
Network Proxy Test 0.0.12
win32 10.0.19045 x64
Settings:

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

Environment variables:
Sending GET request to https://marketplace.visualstudio.com...
vscode-proxy-agent: DIRECT
Received error: self signed certificate (DEPTH_ZERO_SELF_SIGNED_CERT)
Retrying while ignoring certificate issues to collect information on the certificate chain.
Sending GET request to https://marketplace.visualstudio.com (allowing unauthorized)...
vscode-proxy-agent: DIRECT
Received response:

Status: 403 Forbidden
Certificate chain:
Subject: Fortiguard SDNS Blocked Page (Fortinet)
Validity: Aug 21 21:56:06 2024 GMT - Aug 19 21:56:06 2034 GMT
Fingerprint: B0:85:5C:96:71:3F:29:51:CF:14:C9:3A:06:6B:69:35:0E:64:FD:9F
Self-signed

Last certificate not verified by OS root certificates. This might indicate an issue with the root certificates registered in your OS:

Make sure that the root certificate for the certificate chain is registered as such in the OS. Use F1 > Network Proxy Test: Show OS Certificates to see the list loaded by VS Code.
Also make sure that your proxy and server return the complete certificate chain (except possibly for the root certificate).

Sending GET request to https://marketplace.visualstudio.com using fetch API...
Received error: net::ERR_CERT_AUTHORITY_INVALID
Sending GET request to https://marketplace.visualstudio.com using fetch API...
Received error: net::ERR_CERT_AUTHORITY_INVALID

VS Code by itself shouldn't use http. Is that something you configure?

I had the same problem on my workplace network.
Here's how I solved it: I disabled the workplace network, enabled internet through USB tethering using my personal phone, downloaded the extensions I needed, and then disabled auto-update for extensions and VS Code.
It's not really a good solution, but it solved my problem.

I had the same problem as @bbenginbestas, my workplace blocks the https://marketplace.visualstudio.com/ webpage, so I cannot access anything related to it.
Fixed it internally, thanks for your kind support.

I'm having the same issue.The Network Proxy Test extension output these.
Note: Make sure to replace all sensitive information with dummy values before sharing this output.
VS Code 1.93.1 (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40)
Network Proxy Test 0.0.12
win32 10.0.22631 x64
Settings:

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

Environment variables:
http_proxy=<IP_ADDRESS>:15732
Sending GET request to https://marketplace.visualstudio.com...
vscode-proxy-agent: PROXY <IP_ADDRESS>:15732
Received error: Failed to establish a socket connection to proxies: ["PROXY <IP_ADDRESS>:15732"]
Retrying while ignoring certificate issues to collect information on the certificate chain.
Sending GET request to https://marketplace.visualstudio.com (allowing unauthorized)...
vscode-proxy-agent: PROXY <IP_ADDRESS>:15732
Received error: Failed to establish a socket connection to proxies: ["PROXY <IP_ADDRESS>:15732"]
Sending GET request to https://marketplace.visualstudio.com using fetch API...
Received error: net::ERR_PROXY_CONNECTION_FAILED
Sending GET request to https://marketplace.visualstudio.com using fetch API...
Received error: net::ERR_PROXY_CONNECTION_FAILED

If you are using VPN or DNS, turn it off. If your VPN is turned off, turn it on and off to resolve the VS code error.

error while fetching extensions failed to fetch
This  error

the problem was with my anti-virus, McAfee. It was blocking the fetch. After opening incoming firewall traffic. Problem solved.

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 entering https://marketplace.visualstudio.com as 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....

Note: Make sure to replace all sensitive information with dummy values before sharing this output.

VS Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f)
Network Proxy Test 0.0.14
darwin 24.2.0 arm64

Environment variables:
all_proxy=socks5://<IP_ADDRESS>:7890
http_proxy=http://<IP_ADDRESS>:7890
https_proxy=http://<IP_ADDRESS>:7890
no_proxy=::1,localhost,<IP_ADDRESS>

DNS Lookup:
- ipv4: <IP_ADDRESS> (2 ms)
- ipv6: ::ffff:<IP_ADDRESS> (1 ms)

Proxy:
- URL: http://<IP_ADDRESS>:7890 (0 ms)
- Connection: 200 Connection established (1 ms)

Sending GET request to https://marketplace.visualstudio.com...
Received response:
- Status: 200 OK
Certificate chain:
- Subject: visualstudio.com (Microsoft Corporation)
  Subject alt: DNS:visualstudio.com, DNS:*.visualstudio.com, DNS:*.vsmps.visualstudio.com, DNS:*.vssps.visualstudio.com, DNS:*.vssh.visualstudio.com, DNS:*.vsclt.visualstudio.com, DNS:*.vsrm.visualstudio.com, DNS:*.codelens.visualstudio.com, DNS:*.almsearch.visualstudio.com, DNS:*.artifacts.visualstudio.com, DNS:*.vsblob.visualstudio.com, DNS:*.vsblob.vsassets.io, DNS:*.manage.visualstudio.com, DNS:*.extmgmt.visualstudio.com, DNS:*.marketplace.visualstudio.com, DNS:*.gallery.vsassets.io, DNS:*.pkgs.visualstudio.com, DNS:*.zeus.visualstudio.com, DNS:*.entreq.visualstudio.com, DNS:*.feeds.visualstudio.com, DNS:*.vstsusers.visualstudio.com, DNS:*.analytics.visualstudio.com, DNS:*.my.visualstudio.com, DNS:*.dataimport.visualstudio.com, DNS:*.vsaex.visualstudio.com, DNS:*.vslicense.visualstudio.com, DNS:*.vstskalypso.visualstudio.com, DNS:*.vscommerce.visualstudio.com, DNS:*.governance.visualstudio.com, DNS:*.vskeros.visualstudio.com, DNS:*.vstoken.visualstudio.com, DNS:*.vstmr.visualstudio.com, DNS:*.vscatalog.visualstudio.com, DNS:*.gdprdel.visualstudio.com, DNS:*.userext.visualstudio.com, DNS:*.vsdscops.visualstudio.com, DNS:*.pipelines.visualstudio.com, DNS:*.azboards.visualstudio.com, DNS:*.azminicom.visualstudio.com, DNS:*.commvtwo.visualstudio.com, DNS:*.status.visualstudio.com, DNS:*.vsdevprofile.visualstudio.com, DNS:*.vsevidence.visualstudio.com, DNS:*.vspolicy.visualstudio.com, DNS:*.auditservice.visualstudio.com, DNS:*.vsnotify.visualstudio.com, DNS:*.azchatops.visualstudio.com, DNS:*.azents.visualstudio.com, DNS:*.runtimecatalog.visualstudio.com, DNS:*.artifactcache.visualstudio.com, DNS:*.azpipelines.visualstudio.com, DNS:*.advsec.visualstudio.com, DNS:*.dpdbot.visualstudio.com, DNS:*.sample.visualstudio.com, DNS:*.vsallin.net, DNS:*.almsearch.vsallin.net, DNS:*.codelens.vsallin.net, DNS:*.marketplace.vsallin.net, DNS:*.vsaex.vsallin.net, DNS:*.vscommerce.vsallin.net, DNS:*.vsmps.vsallin.net, DNS:*.vsrm.vsallin.net, DNS:*.vssps.vsallin.net, DNS:*.vsspsext.vsallin.net, DNS:*.vstsusers.vsallin.net, DNS:*.vskeros.vsallin.net, DNS:*.vscatalog.vsallin.net, DNS:*.vsdscops.vsallin.net, DNS:*.vstoken.vsallin.net, DNS:*.gdprdel.vsallin.net, DNS:*.userext.vsallin.net, DNS:*.vslicense.vsallin.net, DNS:*.status.vsallin.net, DNS:*.galleryppe.vsassets.io, DNS:*.vstmrblob.vsassets.io, DNS:*.vstmrblob.vsallin.net, DNS:*.vsassets.io
  Validity: Sep 24 17:56:19 2024 GMT - Mar 23 17:56:19 2025 GMT
  Fingerprint: EF:F6:AB:94:2B:BA:E8:D5:0C:23:72:AE:97:9A:DB:75:50:34:F9:C9
- Subject: Microsoft Azure RSA TLS Issuing CA 03 (Microsoft Corporation)
  Validity: Jun  8 00:00:00 2023 GMT - Aug 25 23:59:59 2026 GMT
  Fingerprint: F9:38:8E:A2:C9:B7:D6:32:B6:6A:2B:0B:40:6D:F1:D3:7D:39:01:F6
- Subject: DigiCert Global Root G2 (DigiCert Inc)
  Validity: Aug  1 12:00:00 2013 GMT - Jan 15 12:00:00 2038 GMT
  Fingerprint: DF:3C:24:F9:BF:D6:66:76:1B:26:80:73:FE:06:D1:CC:8D:4F:82:A4
  Self-signed
Local root certificates:
- Subject: C=US O=DigiCert Inc OU=www.digicert.com CN=DigiCert Global Root G2 (built-in)
  Validity: Aug  1 12:00:00 2013 GMT - Jan 15 12:00:00 2038 GMT
  Fingerprint: DF:3C:24:F9:BF:D6:66:76:1B:26:80:73:FE:06:D1:CC:8D:4F:82:A4
  Issuer: C=US O=DigiCert Inc OU=www.digicert.com CN=DigiCert Global Root G2

Sending GET request to https://marketplace.visualstudio.com using fetch from Electron...
Received response:
- Status: 200

Sending GET request to https://marketplace.visualstudio.com using fetch from Node.js...
Received response:
- Status: 200 OK

Sending GET request to https://marketplace.visualstudio.com using fetch from Node.js (allow HTTP2)...
Received response:
- Status: 200

Could you start VS Code with --log-net-log=netlog.json, retry updating extensions and then post the created netlog.json here?

Same Issue for me :(

Note: Make sure to replace all sensitive information with dummy values before sharing this output.

VS Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f)
Network Proxy Test 0.0.14
darwin 24.2.0 arm64

Environment variables:
all_proxy=socks5://<IP_ADDRESS>:7890
http_proxy=http://<IP_ADDRESS>:7890
https_proxy=http://<IP_ADDRESS>:7890
no_proxy=::1,localhost,<IP_ADDRESS>

DNS Lookup:
- ipv4: <IP_ADDRESS> (2 ms)
- ipv6: ::ffff:<IP_ADDRESS> (1 ms)

Proxy:
- URL: http://<IP_ADDRESS>:7890 (0 ms)
- Connection: 200 Connection established (1 ms)

Sending GET request to https://marketplace.visualstudio.com...
Received response:
- Status: 200 OK
Certificate chain:
- Subject: visualstudio.com (Microsoft Corporation)
  Subject alt: DNS:visualstudio.com, DNS:*.visualstudio.com, DNS:*.vsmps.visualstudio.com, DNS:*.vssps.visualstudio.com, DNS:*.vssh.visualstudio.com, DNS:*.vsclt.visualstudio.com, DNS:*.vsrm.visualstudio.com, DNS:*.codelens.visualstudio.com, DNS:*.almsearch.visualstudio.com, DNS:*.artifacts.visualstudio.com, DNS:*.vsblob.visualstudio.com, DNS:*.vsblob.vsassets.io, DNS:*.manage.visualstudio.com, DNS:*.extmgmt.visualstudio.com, DNS:*.marketplace.visualstudio.com, DNS:*.gallery.vsassets.io, DNS:*.pkgs.visualstudio.com, DNS:*.zeus.visualstudio.com, DNS:*.entreq.visualstudio.com, DNS:*.feeds.visualstudio.com, DNS:*.vstsusers.visualstudio.com, DNS:*.analytics.visualstudio.com, DNS:*.my.visualstudio.com, DNS:*.dataimport.visualstudio.com, DNS:*.vsaex.visualstudio.com, DNS:*.vslicense.visualstudio.com, DNS:*.vstskalypso.visualstudio.com, DNS:*.vscommerce.visualstudio.com, DNS:*.governance.visualstudio.com, DNS:*.vskeros.visualstudio.com, DNS:*.vstoken.visualstudio.com, DNS:*.vstmr.visualstudio.com, DNS:*.vscatalog.visualstudio.com, DNS:*.gdprdel.visualstudio.com, DNS:*.userext.visualstudio.com, DNS:*.vsdscops.visualstudio.com, DNS:*.pipelines.visualstudio.com, DNS:*.azboards.visualstudio.com, DNS:*.azminicom.visualstudio.com, DNS:*.commvtwo.visualstudio.com, DNS:*.status.visualstudio.com, DNS:*.vsdevprofile.visualstudio.com, DNS:*.vsevidence.visualstudio.com, DNS:*.vspolicy.visualstudio.com, DNS:*.auditservice.visualstudio.com, DNS:*.vsnotify.visualstudio.com, DNS:*.azchatops.visualstudio.com, DNS:*.azents.visualstudio.com, DNS:*.runtimecatalog.visualstudio.com, DNS:*.artifactcache.visualstudio.com, DNS:*.azpipelines.visualstudio.com, DNS:*.advsec.visualstudio.com, DNS:*.dpdbot.visualstudio.com, DNS:*.sample.visualstudio.com, DNS:*.vsallin.net, DNS:*.almsearch.vsallin.net, DNS:*.codelens.vsallin.net, DNS:*.marketplace.vsallin.net, DNS:*.vsaex.vsallin.net, DNS:*.vscommerce.vsallin.net, DNS:*.vsmps.vsallin.net, DNS:*.vsrm.vsallin.net, DNS:*.vssps.vsallin.net, DNS:*.vsspsext.vsallin.net, DNS:*.vstsusers.vsallin.net, DNS:*.vskeros.vsallin.net, DNS:*.vscatalog.vsallin.net, DNS:*.vsdscops.vsallin.net, DNS:*.vstoken.vsallin.net, DNS:*.gdprdel.vsallin.net, DNS:*.userext.vsallin.net, DNS:*.vslicense.vsallin.net, DNS:*.status.vsallin.net, DNS:*.galleryppe.vsassets.io, DNS:*.vstmrblob.vsassets.io, DNS:*.vstmrblob.vsallin.net, DNS:*.vsassets.io
  Validity: Sep 24 17:56:19 2024 GMT - Mar 23 17:56:19 2025 GMT
  Fingerprint: EF:F6:AB:94:2B:BA:E8:D5:0C:23:72:AE:97:9A:DB:75:50:34:F9:C9
- Subject: Microsoft Azure RSA TLS Issuing CA 03 (Microsoft Corporation)
  Validity: Jun  8 00:00:00 2023 GMT - Aug 25 23:59:59 2026 GMT
  Fingerprint: F9:38:8E:A2:C9:B7:D6:32:B6:6A:2B:0B:40:6D:F1:D3:7D:39:01:F6
- Subject: DigiCert Global Root G2 (DigiCert Inc)
  Validity: Aug  1 12:00:00 2013 GMT - Jan 15 12:00:00 2038 GMT
  Fingerprint: DF:3C:24:F9:BF:D6:66:76:1B:26:80:73:FE:06:D1:CC:8D:4F:82:A4
  Self-signed
Local root certificates:
- Subject: C=US O=DigiCert Inc OU=www.digicert.com CN=DigiCert Global Root G2 (built-in)
  Validity: Aug  1 12:00:00 2013 GMT - Jan 15 12:00:00 2038 GMT
  Fingerprint: DF:3C:24:F9:BF:D6:66:76:1B:26:80:73:FE:06:D1:CC:8D:4F:82:A4
  Issuer: C=US O=DigiCert Inc OU=www.digicert.com CN=DigiCert Global Root G2

Sending GET request to https://marketplace.visualstudio.com using fetch from Electron...
Received response:
- Status: 200

Sending GET request to https://marketplace.visualstudio.com using fetch from Node.js...
Received response:
- Status: 200 OK

Sending GET request to https://marketplace.visualstudio.com using fetch from Node.js (allow HTTP2)...
Received response:
- Status: 200

Steps I took to fix it:

Go into Windows Settings Date and time and turn on set time zone automatically and set time automatically (location services need to be on)
Update certificates if above step didn't work on its own.

If you do not have a VPN or some type of antivirus you can try to lower the real-time protection and restart VSCode after that it will let you install the extensions


Fatal error compiling: invalid target release: 11

Hi,
My versions: java 11.0.4, maven 3.6.0
Steps to reproduse this issue:
git clone https://github.com/Anshelen/microservices-backend.git
cd microservices-backend
./mvnw package -DskipTests

Output
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  35.046 s
[INFO] Finished at: 2021-01-28T16:47:32+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project microservices-backend: Fatal error compiling: invalid target release: 11 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Hi!
I tried to reproduce your issue on pure Ubuntu in Docker:
docker run -it --rm ubuntu
apt update
apt install -y git
apt-get install -y openjdk-11-jdk
java -version
> openjdk version "<IP_ADDRESS>" 2020-11-04
git clone https://github.com/Anshelen/microservices-backend.git
cd microservices-backend
./mvnw package -DskipTests
> BUILD SUCCESS

Everything worked as expected. I also tested it with java 11.0.5. I suppose it is something with your java settings. Once I faced something like this, when working on computer with two java's installed (8 and 11 versions). Try to check your javac -version

Hi!
I tried to reproduce your issue on pure Ubuntu in Docker:
docker run -it --rm ubuntu
apt update
apt install -y git
apt-get install -y openjdk-11-jdk
java -version
> openjdk version "<IP_ADDRESS>" 2020-11-04
git clone https://github.com/Anshelen/microservices-backend.git
cd microservices-backend
./mvnw package -DskipTests
> BUILD SUCCESS

Everything worked as expected. I also tested it with java 11.0.5. I suppose it is something with your java settings. Once I faced something like this, when working on computer with two java's installed (8 and 11 versions). Try to check your javac -version

You're right. Here is my javac checking
javac -version
javac 1.8.0_275

You're right. Here is my javac checking
javac -version
javac 1.8.0_275

Unfortunately, I can't change javac version like java
update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1111      auto mode
  1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1111      manual mode
  2            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode

Press <enter> to keep the current choice[*], or type selection number: 0

update-alternatives --config javac
There is only one alternative in link group javac (providing /usr/bin/javac): /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
Nothing to configure.

Unfortunately, I can't change javac version like java
update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1111      auto mode
  1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1111      manual mode
  2            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode

Press <enter> to keep the current choice[*], or type selection number: 0

update-alternatives --config javac
There is only one alternative in link group javac (providing /usr/bin/javac): /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
Nothing to configure.

@iliusa77 make sure you have installed the JDK, you can do so by running:
sudo apt install openjdk-11-jdk

on Ubuntu and:
sudo dnf install java-11-openjdk-devel

on Fedora/CentOS/RHEL


dynamic_gather does not support properties on Windows

What happened?
I exported a model from JAX to MLIR using shape polymorphism in the batch index, but ran into the following issue when I tried to compile on a Windows machine:
PS C:\Users\ben.macadam> iree-compile.exe --iree-llvmcpu-target-triple=x86_64-pc-windows-msvc --iree-input-type=auto --iree-hal-target-backends=llvm-cpu --iree-llvmcpu-link-embedded=false --iree-llvmcpu-link-static --output-format=vm-bytecode --iree-llvmcpu-static-library-output-path="C:\Users\ben.macadam\Downloads\47cee9104002533701f7f0a6ed9f934d.o" -o "C:\Users\ben.macadam\Downloads\47cee9104002533701f7f0a6ed9f934d.vmfb" "C:\Users\ben.macadam\Downloads\dyn_guidance.mlir"
C:\Users\ben.macadam\Downloads\dyn_guidance.mlir:532:12: error: invalid properties {dimension_numbers = #stablehlo.gather<offset_dims = [0, 1], collapsed_slice_dims = [1], start_index_map = [1]>, indices_are_sorted = true} for op stablehlo.dynamic_gather: this operation does not support properties
    %182 = "stablehlo.dynamic_gather"(%178, %179, %181) <{dimension_numbers = #stablehlo.gather<offset_dims = [0, 1], collapsed_slice_dims = [1], start_index_map = [1]>, indices_are_sorted = true}> : (tensor<?x33x2xf32>, tensor<1xi32>, tensor<3xi32>) -> tensor<?x2xf32> loc(#loc148)
           ^

This worked on the original linux machine using the python API and basic compilation settings, so I'm a bit confused why it is failing in this case.
Steps to reproduce your issue

Go to '...'
Click on '....'
Scroll down to '....'
See error

What component(s) does this issue relate to?
No response
Version information
IREE compiler version 20240410.859 @ b4273a4bfc66ba6dd8f62f6483d74d42a7b936f1
Additional context
It does seem to work with default settings in python on my original linux machine, so perhaps it has to do with the build target.

This shouldn't be operating system specific. I suspect you have a different version of iree-compile or JAX on Linux.
(If we switch IREE and its deps to use VHLO instead of StableHLO this class of problems may go away)

Ok - I tried compiling everything on the same Windows machine and got a more useful error. I'll try to write a minimal reproduction in the morning.


Add ukrainian as a language option

Closes https://github.com/inventree/InvenTree/issues/7123
This adds ukrainain as a language option, although the translations are obviously missing.

@matmair I believe you also need to add a .d.ts file in the frontend locale directory

@SchrodingersGat file is added

Thanks @matmair


fix(ui): fix missing choice in approval voting votes results list

Summary
While merging the approval voting support PR (https://github.com/snapshot-labs/sx-monorepo/pull/178), a detail was missed: the votes list (both in modal and tab) are only showing the first choice, whereas a user can vote for multiple choices.
This PR fix this issue, and will show all the different choices chosen by the user
How to test

Go to an approval voting (e.g. http://localhost:8080/#/s:pistachiodao.eth/proposal/0x08c3bd2960700525770a1d634f8599ba967e55fcc05b6c1649d984d88253769d/votes)
It should list all the choices chosen by the voter
Open the votes modal
It should also list all the choices chosen by the user

All choices now have a tooltip, in case the original text is truncated

Closing, fixed in another PR


Suggestions should ignore letter case

Developers aren't suppose to remember if it is .Host or .host.

See Settings (Preferences) | Editor | General | Code Completion | Case sensitive completion. The default value is 'First letter'. You may change it to 'None'.

Thank you. Sorry for the noise.


Major refactor to use sqlite, symfony DI,

Pull Request
What changed?
Everything.  To summarize:

much internal refactoring was done (this is why this branch was called "gardening")
laminas components such as ServiceManager were replaced with symfony components.
postgres was replaced with sqlite.
metadata is downloaded directly into sqlite and not .json files.
downloads go directly to S3 if so configured, making the upload commands obsolete.

🚨 Things still broken, but merged regardless

Tests.  Many are still built on the previous architecture and need to be rewritten.
Stats.  Counts of errors and such are not recorded.  I'd prefer to rewrite how stats are gathered, by recording individual operations and their results in the DB as they're performed, then summarizing them with sql.

Despite these glaring flaws, I'm merging this anyway, because I want AC consuming the metadata the way it's generated now, and especially pointing at the s3 download location that's already been populated by my tests.   This is more a supplementary tool to AC than anything; as such, just loading the whole list of dumped plugins and themes into AC represents a functional test better than any other.
Why did it change?
This serves to make Sync a more standalone thing with no dependencies on AspireCloud.  It will be capable of creating mirror of the .org data on its own without requiring much in the way of local resources to stage files.
Did you fix any specific issues?
Closes: #9
CERTIFICATION
By opening this pull request, I do agree to abide by
the CODE OF CONDUCT and be bound by the terms
of the Contribution Guidelines in effect on the date and time
of my contribution as proven by the
revision information in GitHub. I also agree that any previous contributions shall be deemed subject to the terms of the
version in effect on the date and time of this pull request, or any future revisions for pull requests I may submit.
Further, I certify that this work is my own, is original, does not violate the intellectual property of any other person
or entity, and I am not violating any license agreements or contracts I have with any person or entity. Finally, I agree
that this code may be licensed under any license deemed appropraite by AspirePress, including but not
limited to open source, closed source, proprietary or custom licenses, and that such license terms neither violate my
rights or my copyright to this code.

Ramming this one through, warts and all.


default_timezone value is :utc by default in Rails

Reference: https://github.com/thoughtbot/suspenders/issues/499

Thanks, Merged as 605094e.


body.screen-- classes don't seem to work

Greetings,
I am using some CSS (Stylus) rules on some of my components that depend on body.screen-- classes. I do have Quasar's bodyClasses enabled in my quasar.conf.js.
It works in dev (serving as SPA) mode, but when I build it for SSG, these CSS rules don't even appear in the inline CSS source.
For instance, in the example below, I can find the background red rule in the view-source:// of the output, but not the color blue role.
.my-class
    background red
    body.screen--xs &
        color blue

Other notes:

I do see screen--xs on body in Chrome, but the rule doesn't show up at all.
Visibility media classes (e.g. sm) do work. So it shouldn't be a media query problem.
If I string-search for this rule, I find it in one of the .js output files, but not in any inline CSS values in HTML files, or any .css file. Is that where non-critical-CSS values should go?
FWIW, I am using Vue SFC + TS.
Finally, I tried replacing body.screen-xs & with @media(max-width: 300px) & and it does work!

.my-class
    @media(max-width: 400px)
        &
            color red

Hello,
I guess that the css rule named screen-xs is dropped when using the option inlineCriticalCss.
This is because the css rule is not present in the HTML string at server-side when beastcss is processing it.
These classes are injected dynamically into the document at client-side because they are based on Browser’s User Agent.
What you can do is to whitelist  this css rule:
// quasar.conf.js
{
  ssg: {
    inlineCriticalCss: {
      whitelist: [/screen-xs/]
    }
  }
}

Please, let me know if it works.

Hi @freddy38510,
I am back to this after a year and wanted to let you know that your solution (using whitelist) worked!
Thank you.


Add CSP Scanner

Adding https://cspscanner.com/

@apsdehal would much appreciate your review here.
Thank, Shai.


Suggest stock configs for ModuleDepthMask

So people aren't confused if they install DepthMask and don't see anything change.
Also mark Stock depth masks as incompatible with restock, since those patches won't work with it
Hope this is ok @kingnoob1377, I only just learned about your mod

This is completely fine♥

Thanks for the update. :+1:

(And in case anyone else is confused as to how resources.homepage is getting set to SpaceDock for the config, it's set in the repo, here:

https://github.com/kingnoob1377/Stock_DepthMask_Config)


Release proposal: v1.28.0

I'm aiming to cut a new release during the week of April 14-20. The commits that have landed thus far include semver-minor changes, so the release will be version 1.28.0. If there are any questions, comments, concerns, or objections, please raise them here.

CI: https://ci.nodejs.org/view/libuv/job/libuv-test-commit/1365/
Node integration CI: https://ci.nodejs.org/view/libuv/job/libuv-in-node/92/

Ran the integration CI again: https://ci.nodejs.org/view/libuv/job/libuv-in-node/94/
It looks like the only consistent failure across the runs is the copyfile known issue test, which is expected. I think it's OK to move forward with the release.

I know I'm getting annoying, but can I ask you what are the features that made it a minor release? Thanks a lot.

@skypjack you can always look at https://github.com/libuv/libuv/commits/v1.x. The list between releases isn't typically very long. To answer your question, for this release, the semver minor commits are https://github.com/libuv/libuv/commit/575d41481edd35b1e0515403ba3433c416370338 and https://github.com/libuv/libuv/commit/99440bb6734bc7edfea108f6eb6914982e9f8cf7.

Oh, I didn't get they were packed all together on v1.x, sorry. It's not immediately clear what makes a release a minor one tbh, but I can look into them and try to figure it out by myself next time. Thanks for pointing it out. :+1:


changed

hi i made changes so youre app works

do you have telegram for chatting

i want to work with you its a cool project


Make boruta_py suitable for GridSearches

When using boruta_py in a sklearn gridsearch, the error object has no attribute 'get_params' occurs. It would be interesting, if one could also optimize the parameter of the boruta feature selection

To solve this, one needs to implement a .get_params() method

If you submit a PR for this I'm more than happy to accept it, but I'll be very busy in the coming months unfortunately.. Cheers

okay lets have a deal, I will submit a pr for this and you upload it to pypi? ;)

Alright, deal :) (but only in the 2nd or 3rd week of Jan)

Sorry to interrupt, but this seem like a pretty bad idea. The point of Boruta is that it is an all relevant method, so it should be optimised for robust selection rather than for lowest post-selection error (what GridSearch does). I am afraid that adding such pursuit will simply degenerate the method into an incredibly inefficient random sampler.

Since Miron is the author of the Boruta algorithm, I'll trust him on this one. Unless you can convince him @MaxBenChrist  :)

First, merry Christmas to you all! :)
Hi @mbq, first, nice paper + algorithm. Regarding your doubts about using Boruta in a Grid Search:
Lets say we have a simple pipeline, first Boruta and then a classifier C. A Gridsearch over many different folds optimizes the parameters of Boruta for the best classifier performance C. Now you fear that the Boruta will result in a random sampler. I am not sure why.
How else should one determine the parameters (e.g. max_depth of random forest classifier, or number of estimators) of Boruta if not on the final classifier performance? On real world data sets, we don't know how which features are relevant and which not. This is a general problem, if I have pipeline with a feature selection algorithm, I have to optimize all the parameters including those of the feature selection algorithm at the same time.

Happy holidays!
The problem here is that you assume the classification error is minimal on the relevant set of features, which is false in general (because of redundant features, classifier characteristics, noise, overfitting, etc.). That's why there are two classes of FS methods, "minimal optimal" and "all relevant" (nice paper about this, with Bayesian net definitions).
This is obviously true that optimising an all relevant method is basically next to hopeless. Still, you may aim at robustness (like stability of the selection under perturbations to the input set; though it is only an upper bound, there may be a perfectly stable method which selects junk), use some domain knowledge or get some generally robust methods and hope for the best. The latter is what Boruta does; for RF classification max_depth is infinity by design (sic, otherwise this is just some random CART ensemble), default m is rarely significantly suboptimal, finally RF is expected to converge with the number of trees, so overshooting n only costs time.

@mbq The paper is great. I studied it in detail and learned a lot. Thank you for that!

The problem here is that you assume the classification error is minimal on the relevant set of features, which is false in general (because of redundant features, classifier characteristics, noise, overfitting, etc.).

Actually, I deploy complex machine learning pipelines that contain both "all relevant" and "minimal optimal" or heavy regularized classifiers together. I create a huge amount of features and then use multiple layers of filtering/regularization/feature selection.
When you say that

optimising an all relevant method is basically next to hopeless.

Are you referring to  Corollary 14 from the paper here? ( The all-relevant problem requires exhaustive subset search. )

Even then, I think your pipeline would benefit more from Boruta with some sane default params as a filter of irrelevant attributes than from Boruta with parameters tuned to yield best accuracy (because I think it would mostly degenerate Boruta into returning few most obvious features or even pure noise); but I may be wrong, with a such meta-meta approach anything is possible.

Are you referring to Corollary 14 from the Nilsson paper here? ( The all-relevant problem requires exhaustive subset search. )

Well, no, rather that all relevant does not optimise error, thus it is hard to assess how all relevant some selection really is. Also Nilsson et al. consider asymptotic perfect case when you have a near perfect conditional probability estimates -- the whole Boruta mess is motivated by the fact this is really hard to achieve in problems that need feature selection.

So what is your final position on the  .get_params() method? :) Will you merge a pr containing such a method (triggering a warning about the all-revelant issues when used).


Update dependencies

Just a small PR to update dependencies as I noticed it doesn't compile with latest fixed.
Changes

Update fixed to 1.24.0
Update typenum to 1.17.0
Update num-traits to 0.2.17
Remove is_zero() method (now supported by Fixed)

Ran the tests and benchmarks and all good.

Also, sorry, this message is going here because I don't see an issues page. It seems the link to your repo is broken on crates.io.


Tabnine consistently resets in the middle of a trouble shooting session.  Logs me out and I have to start all over--very frustrating.

please complete the following information:

OS version: [e.g. Win 10, Mac Catalina]
Editor version [e.g. 1.45.0-insider]:
Programming language: [e.g. js, ts, c++]
TabNine extension version:

If the issue is related to TabNine failure, please provide log files:
Type TabNine::config in your editor, the logs are located at the bottom of the page
Editor console logs:
Help -> Toggle Developer Tools
Issue Details:
gz#37021(related to Zendesk ticket #37021)

Hi, Can you please add a screen recording? Logs?

Hi TzufTabnine, can we open my ticket up again?

Hi, Can you please add a screen recording? Logs?

Check out this video from Gerald King https://king-commercial-capital.dubb.com/v/sZpnm8
This short clip is typical of what happens when I use Tabnine.  Also, going through the process of just logging in is troublesome.  It sometimes takes multiple attempts to log in, and then once I'm in and start communicating with Tabnine/Claude or troubleshooting, I get logged out.

We released a fix a few days ago. Can you please delete Tabnine entirely from your machine - https://support.tabnine.com/hc/en-us/articles/17823949049745-How-to-delete-Tabnine-completely-from-your-machine
Then reinstall and try again. If it is still not working, please send us the logs - https://support.tabnine.com/hc/en-us/articles/5283127765265-Getting-Logs-on-VSCode


Carla Simulator is not responding

Hi everyone,
I don't know why every time I try to execute this code on jupyter notebook it works but then Carla doesn't respond anymore
delta = 0.05
settings.fixed_delta_seconds = delta
settings.synchronous_mode = True
settings.no_rendering_mode = False  # You can set this based on your needs
world.apply_settings(settings)

That is normal because carla is in synchronous_mode
If you activate synchronous_mode, carla will wait until it gets a world.tick() from the Python API (for your example)
You can make a simple loop that makes carla run again
delta = 0.05
frequenz = 1 / delta  # the number of steps in one second
for _ in range(frequenz * 10):  # 10 simulation seconds
    world.tick()

If you set synchronous_mode to False, you don't have to use world.tick() because carla will do that for you, but it is less consistent with the time you get data from carla.

thanks a lot


HHH-12937 : Where clause for collections of basic, embeddable and "any" elements is ignored when mapped using hbm.xml

https://hibernate.atlassian.net/browse/HHH-12937

Merged.


[SMALLFIX] Allows add() to return boolean

Make add() return boolean like remove()

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/11480/
Test PASSed.


Rename Flexible to Expand and Fit

We've received feedback from new users that our Flex implementation is kinda-but-not-really the Flexbox they know and love from the web. This can cause a bit of friction as they learn how our Flex is and is not Flexbox.
We can consider renaming Flex to help avoid users drawing parallels and miss-set expectations. One idea was the rename to Linear.
Presumably this would be a breaking change and if we do this, we can email our users, etc.

cc @Hixie @abarth to make a call here...

sgtm

We'll need a new name for Flexible as well.

Yeah that's the main thing that's been blocking me from doing this.
See also https://github.com/flutter/flutter/issues/4189.

Linear would conflict with the linear Curve.

Was this the right issue to close, in response to https://github.com/flutter/flutter/commit/c621ec82a05361836b71f0245589f3f81a513d07 ?

Nope, sorry.

Yeah I don't think "Linear" is a good name either.
I'm not too worried about the name Flex. I think it's fine to keep that name; it's mostly buried anyway. It's Flexible that I think we should primarily rename.

Ideas from brainstorming: split it into two widgets, "Expand" and "Fit"?

cc @dvdwasibi

Expanded is a go.  Not sure about Fit...

Cleaning up clients now.

Thanks!


6.0: [MoveOnlyAddressChecker] Exclusivity handles DeadEnds.

Explanation: Handle incomplete access scopes when diagnosing exclusivity issues.
The move-only address checker diagnoses exclusivity violations by checking whether consuming uses occur within an access scope (marked by one begin_access instruction and some number of end_access instructions).  Specifically, it checks whether instructions that consume a value occur within the scope.  If they do not, it emits an error.
In dead-end regions of a function (those from which there are no function exiting paths), special care must be taken when determining whether an instruction is live when the value which defines the region does not have a "complete lifetime" (a consuming use on every path).  Access scopes do not always have complete lifetimes, so they need this special care.  To get this special care, an instance of DeadEndBlocks must be passed to PrunedLiveness.  (At the moment, it is also necessary to call areUsesWithinBoundary instead of isWithinBoundary, but that is only temporary.)
Here, the DeadEndBlocks instance is threaded a bit farther into the checker so that it can be passed along to PrunedLiveness.
The result is that consumes in dead-end blocks are correctly understood to be within the access scope when there is no end_access in that dead-end region.
Scope: Affects noncopyable code.
Issue: rdar://131960619
Original PR: https://github.com/swiftlang/swift/pull/75404
Risk: Low.  Amounts to passing an additional argument down in order to have an additional way to determine that an instruction is within a boundary.  Furthermore, only affects the diagnostic relating to exclusivity emitted by the checker.
Testing: Added test.
Reviewer: Kavon Farvardin ( @kavon ), Joe Groff ( @jckarter )

@swift-ci please test

@swift-ci please test

For tracking, this resolves https://github.com/swiftlang/swift/issues/75312


Fix NewApi lint warnings, and remove severity override

MA-2582
All the NewApi errors have been fixed (or suppressed), and the the severity is back to the default of error
Reviewers
If you've been tagged for review, please check your corresponding box once you've given the :+1:.

[ ] Code review: @BenjiLee
[ ] Code review: @mdinino

@@             master       #788   diff @@
==========================================
  Files           484        484
  Lines         19958      19960     +2
  Methods           0          0
  Messages          0          0
  Branches       2819       2819
==========================================
+ Hits           3680       3681     +1
- Misses        15863      15864     +1
  Partials        415        415

Review #788 on Codecov

Powered by Codecov. Last update 7754327...5b78575

👍

👍


direnv: fix missing BASH_PATH

Motivation for this change
Fix #89129
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Apologies if I broke it when I changed it to buildGoModule.

No problem, it happens


Problem with professional account

Is permission to create bucket necessary?
I would like to download 300000 of rows from a table in my company.
And get this
 res_bq <- bqs_table_download(
   x = "project_id.project_dataset.train_table",
   parent = 'project_id')
Streamed 3285894 rows in 17134 messages.

And never finished.
note:  Using the example, all works good,
rows <- bqs_table_download(
  x = "bigquery-public-data.usa_names.usa_1910_current",
  parent = project_id
  , selected_fields = c("name", "number", "state"),
  row_restriction = 'state = "WA"'

)

I close issue because it was an error in my code.


Added Searching problems

I have added searching problems which will close the issue #378.

@subhadipbhowmik would u please review and merge my pr?

@subhadipbhowmik Would u please review and merge my pr


HttpConversionUtil.toHttp2Headers converts uri to path header unproperly

Netty version: 4.1.0.Beta6
Context:
When we use HttpConversionUtil.toHttp2Headers, if uri has urlencoded values, they are decoded unproperly in :path header.
I could't find any spec but below in https://httpwg.github.io/specs/rfc7540.html#HttpHeaders

The :path pseudo-header field includes the path and query parts of the target URI (the path-absolute production and optionally a '?' character followed by the query production (see Sections 3.3 and 3.4 of [RFC3986]). A request in asterisk form includes the value '' for the :path pseudo-header field.
This pseudo-header field MUST NOT be empty for http or https URIs; http or https URIs that do not contain a path component MUST include a value of '/'. The exception to this rule is an OPTIONS request for an http or https URI that does not include a path component; these MUST include a :path pseudo-header field with a value of '' (see [RFC7230], Section 5.3.4).

Steps to reproduce:

Create HttpMessage:
String uri = "https://www.anydomain.com/path%2B1?q=query%2B1&q2=query%2B2#fragment%2B1";
FullHttpRequest request = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, uri);

convert using HttpConversionUtil.toHttp2Headers
Http2Headers http2Headers = HttpConversionUtil.toHttp2Headers(request);

get path by http2Headers.get(HttpNames.PATH)
assertThat(http2Headers.get(HttpNames.PATH), is("/path%2B1?q=query%2B1&q2=query%2B2#fragment%2B1");
//it fails, actual value is "/path+1?q=query+1&q2=query+2#fragment+1"

Opinion:
change HttpConversionUtil.toHttp2Path to use getRawXXX()
    private static AsciiString toHttp2Path(URI uri) {
        StringBuilder pathBuilder = new StringBuilder(length(uri.getRawPath()) +
                length(uri.getRawQuery()) + length(uri.getRawFragment()) + 2);
        if (!isNullOrEmpty(uri.getRawPath())) {
            pathBuilder.append(uri.getRawPath());
        }
        if (!isNullOrEmpty(uri.getRawQuery())) {
            pathBuilder.append('?');
            pathBuilder.append(uri.getRawQuery());
        }
        if (!isNullOrEmpty(uri.getRawFragment())) {
            pathBuilder.append('#');
            pathBuilder.append(uri.getRawFragment());
        }
        String path = pathBuilder.toString();
        return path.isEmpty() ? EMPTY_REQUEST_PATH : new AsciiString(path);
    }

@Scottmitch @nmittler can you check?

fixed by https://github.com/netty/netty/pull/4245


TAIKO_BROWSER_ARGS fails when command-line flags include embedded commas

Actual behavior
Chrome command-line flags (--window-position, --window-size) set in TAIKO_BROWSER_ARGS fail/are ignored due to embedded commas.
TAIKO_BROWSER_ARGS='--window-size=1024,768', '--window-position=2048,0' taiko myscript.js
TAIKO_BROWSER_ARGS=--window-size=1024,768, --window-position=2048,0 taiko myscript.js
I am trying to achieve feature parity between what I can accomplish in code and what I can accomplish from the command-line. This script works as expected:
const { openBrowser, closeBrowser } = require('taiko');
(async () => {
    try {
        await openBrowser({args:['--window-size=1024,768',
                                 '--window-position=2048,0']});
        screenshot()
    } catch (error) {
        console.error(error);
    } finally {
        await closeBrowser();
    }
})();

I'm not able to pass in command-line flags, even without embedded commas, so this may be a larger problem that just the commas.
TAIKO_BROWSER_ARGS=--incognito taiko myscript.js

Versions
Version: 1.0.9 (Chromium:83.0.4103.0)

Fixed via https://github.com/getgauge/taiko/pull/1252
Can you pull the latest version and check if this works?

Unless I'm getting the syntax wrong, this still appears to be an open issue with the latest version:
Version: 1.0.10 (Chromium:84.0.4128.0)
I can confirm that this works:
TAIKO_BROWSER_ARGS=--incognito taiko --observe simple.js
Chromium does, indeed, open in incognito mode.

This does not work. The size of the browser window does not match the screen dimensions requested. The browser size is identical to the above "incognito" request (where the screen dimensions are left to the default size).
TAIKO_BROWSER_ARGS=--window-size=1024,768 taiko --observe simple.js
Chromium opens with two tabs, one blank and the other with the IP address of <IP_ADDRESS>

This does not work, either. I would expect the Chromium window to open at a different screen location, which it does not.
TAIKO_BROWSER_ARGS=--window-position=2048,0 taiko --observe simple.js
Chromium opens with two tabs, one blank and the other with the IP address of <IP_ADDRESS>

My goal is to combine these two:
TAIKO_BROWSER_ARGS=--window-size=1024,768,--window-position=2048,0 taiko --observe simple.js

Can you pull the latest version (from master) and check if this works?

1.1.10 still had this problem. However, 1.1.11 (then on master) was supposed to have the fix
https://github.com/getgauge/taiko/pull/1252/files#diff-c626d926eeff4a14b1c1f5114bcc21c5R289-R293
but looks like it fixed something else. Thanks for pointing it out.
I can confirm that TAIKO_BROWSER_ARGS=--window-position=2048,0 taiko --observe simple.js does not work on 1.1.10

My bad, this is fixed in 1.0.11. Please make sure that package.json and node_module folders use the latest version before running the scripts.


Added content for FETCH FIRST and FETCH NEXT

Closes #1497
As discussed, added information about FETCH FIRST and FETCH NEXT in same row as LIMIT, so as not to call attention, yet inform that we do support the parameters now. Also added examples.

This change is

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/407cad4ea35e9524e91bbb37f084621bdb341391/

@justinj The rationale behind documenting this functionality is that if we are providing support for it, we need to let users know about it, but not necessarily call attention to it. Also, FETCH FIRST is part of the SQL Standard, while LIMIT is not. However, LIMIT is the more popular usage. Considering these factors, I vote that we document it.
@jseldess Thoughts?

@justinj So does the following query replace the OFFSET one (as described in the article):

SELECT id, name
+FROM accounts
+WHERE N>5
+ORDER BY n ASC
+FETCH NEXT 5 ROWS ONLY;

@justinj Is this a better way to paginate instead of OFFSET:

SELECT id, "name" FROM accounts WHERE id > 5 ORDER BY id ASC LIMIT 5;

Yeah, where the 5 is actually whatever the last observed row was before. This way the database can make use of its indexes. Makes sense I guess to document it, so someone coming across a query using it will understand!

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/bdba5d164e7dc63b77851be8fcc344349deb6cd8/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/a440cdb5e8edeea42c8cefe9cedd3364591cd115/


GPUImageMovieWriter never calling its delegate or completionBlock

I try to apply a filter to a previously recorded video and save it again. However, neither the completionBlock nor the delegate are called. Re-encoding will hang after a certain time and no error will be returned.
I have looked at the example and there is the same problem. In the example I have disabled [movieWriter startRecording]; and the delegate was executed, but the video with the filter is not saved.
I think there is an error or something similar while running "startRecording" of the "GPUImageMovieWriter". Does anyone have any idea how this problem can be solved?
My code:
-(void)applyFilterToVideoAtURL:(NSURL*)url withSize:(CGSize)size completion:(void(^)(void))completion {

    movieFile = [[GPUImageMovie alloc] initWithURL:url];
    movieFile.runBenchmark = YES;
    movieFile.playAtActualSpeed = NO;
    filter = [[GPUImagePixellateFilter alloc] init];
    [movieFile addTarget:filter];

    NSString *pathToMovie = [NSHomeDirectory<EMAIL_ADDRESS>    unlink([pathToMovie UTF8String]);
    NSURL *movieURL = [NSURL fileURLWithPath:pathToMovie];

    movieWriter = [[GPUImageMovieWriter alloc] initWithMovieURL:movieURL size:size];
    [filter addTarget:movieWriter];

    movieWriter.shouldPassthroughAudio = YES;
    movieFile.audioEncodingTarget = movieWriter;
    [movieFile enableSynchronizedEncodingUsingMovieWriter:movieWriter];

    [movieWriter startRecording];
    [movieFile startProcessing];

    [movieWriter setCompletionBlock:^{
        [filter removeTarget:movieWriter];
        [movieWriter finishRecording];

        dispatch_async(dispatch_get_main_queue(), ^{

            if(completion) {
                completion();
            }
        });
    }];
}

PS: I work with iOS 11.

me too ..

Any update about this issue, I have same issue one of my application

i have added timer to monitor finish state:
Timer.scheduledTimer(withTimeInterval: 1, repeats: true) { [weak self] timer in
    if movieFile.videoEncodingIsFinished, movieFile.audioEncodingIsFinished {
        timer.invalidate()
    }
}


Refine test for bun.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.00%. Comparing base (3eda202) to head (81b41df).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #352   +/-   ##
=======================================
  Coverage   92.00%   92.00%
=======================================
  Files          52       52
  Lines        3789     3789
  Branches      352      352
=======================================
  Hits         3486     3486
  Misses        302      302
  Partials        1        1

Flag
Coverage Δ

unittests
92.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Support log search functionality in Pinot

Pinot provides support to pick and choose to index for each column. Adding the support for log search indexing will help some of the use cases like error stack trace indexing etc.
Most of the finding the needle in the haystack use cases starts with a free text search and then drill down analysis. Adding support for the free text search can enable Pinot to address the extended use cases.

Can you add more details on the type of operations (exact match, prefix match and boolean operations) that can be performed on these columns?. Do you need everything that lucene provides?

Thank you @kishoreg. I think the scope of the search capability can be limited to the following, and I'm assuming the column error_logs is the full text indexed column/

prefix Query ( error_logs = "error*")
wildcard Query (error_logs = "apache*error")
regex Query ( error_logs = "error.*access")
Fuzzy Query (fuzzy_search(term="apache", fuzziness = 3))
Match Phrase Query ( error_logs = "error")
The proposal assumes that users may choose some column to be indexed as free text.

We do support regexp_like(). See https://pinot.readthedocs.io/en/latest/pql_examples.html

TIL: Let me run some performance comparison study on it.

@mayankshriv Yes, that is correct. Ideally, if Pinot can support multiple indexing formats, (log search and the columnar indexing) and the query engine intelligent enough to choose the indexes based on the query pattern.

@ananthdurai Agreed, that would be a good feature to have. @sunithabeeram was experimenting with it with @kishoreg, will let them comment on how that is panning out.

+1


Added Question Java Program to check if two arrays are Equal in array…

… equal or not.java

Hi,
I am really sorry. I can't this a valid PR as a problem which you have solved is very generic. Please go through below mentioned problems and solve one of them.
https://leetcode.com/problems/counting-bits/
https://leetcode.com/problems/same-tree

https://leetcode.com/problems/same-tree

/**

Definition for a binary tree node.

public class TreeNode {

int val;

TreeNode left;

TreeNode right;

TreeNode() {}

TreeNode(int val) { this.val = val; }

TreeNode(int val, TreeNode left, TreeNode right) {

    this.val = val;

    this.left = left;

    this.right = right;

}

}
*/
class Solution {
public boolean isSameTree(TreeNode p, TreeNode q) {
if (p == null && q == null) {
return true;
}
 if (p == null && q != null || q == null && p != null) {
     return false;
 }

 Stack<TreeNode> stackP = new Stack<>();
 Stack<TreeNode> stackQ = new Stack<>();
 TreeNode currentP = p;
 TreeNode currentQ = q;

 while((currentP != null && currentQ != null) || (!stackP.isEmpty() && !stackQ.isEmpty())){
     while(currentP != null && currentQ != null) {
         stackP.push(currentP);
         stackQ.push(currentQ);
         currentP = currentP.left;
         currentQ = currentQ.left;
         if ((currentP == null && currentQ != null) || (currentQ == null && currentP != null)){
             return false;
         }
     }
     currentP = stackP.pop();
     currentQ = stackQ.pop();
     if (currentP.val != currentQ.val) {
         return false;
     }
     currentP = currentP.right;
     currentQ = currentQ.right;
     if ((currentP == null && currentQ != null) || (currentQ == null && currentP != null)){
             return false;
     }
 }
 return true;

}
}

Hi, Can you create a file and add it there


Port and run tests in python/test/unit/tools

All cases pass except for tools/test_aot.py::test_compile_link_matmul_no_specialization SKIPPED (FIXME: AssertionError on XPU -> https://github.com/intel/intel-xpu-backend-for-triton/issues/2967

@whitneywhtsang are you OK with these changes?

can the two new files be moved to third_party/intel?

Done

can the two new files be moved to third_party/intel?

Done

Thanks, maybe cleaner to put them in a folder, like third_party/intel/tools?


[operator] Operator misses RBAC permissions to create RBAC setup for k8sevents receiver

Hello,
happy operator user here ❤, just noticed one small problem: It looks like the operator helm chart doesn't grant the operator all permissions it tries to grant to collector instances that use the k8sevents receiver when createRbacPermissions is enabled. The RBAC creation support for k8sevents was added recently in 0.113.0 / https://github.com/open-telemetry/opentelemetry-operator/issues/3420, but when I try to use it on an EKS 1.29 cluster, the operator fails to grant the necessary permissions as it doesn't have them itself:
{"level":"ERROR","timestamp":"2024-12-09T15:34:07Z","logger":"controllers.OpenTelemetryCollector","message":"failed to configure desired","opentelemetrycollector":{"name":"otel-standalone-k8sevents","namespace":"observability"},"object_name":"otel-standalone-k8sevents-observability-cluster-role","object_kind":"&TypeMeta{Kind:,APIVersion:,}","error":"clusterroles.rbac.authorization.k8s.io \"otel-standalone-k8sevents-observability-cluster-role\" is forbidden: user \"system:serviceaccount:observability:opentelemetry-operator\" (groups=[\"system:serviceaccounts\" \"system:serviceaccounts:observability\" \"system:authenticated\"]) is attempting to grant RBAC permissions not currently held:\n{APIGroups:[\"\"], Resources:[\"events\"], Verbs:[\"get\" \"list\" \"watch\"]}\n{APIGroups:[\"\"], Resources:[\"namespaces/status\"], Verbs:[\"get\" \"list\" \"watch\"]}\n{APIGroups:[\"\"], Resources:[\"nodes/spec\"], Verbs:[\"get\" \"list\" \"watch\"]}\n{APIGroups:[\"\"], Resources:[\"pods/status\"], Verbs:[\"get\" \"list\" \"watch\"]}\n{APIGroups:[\"\"], Resources:[\"replicationcontrollers\"], Verbs:[\"get\" \"list\" \"watch\"]}\n{APIGroups:[\"\"], Resources:[\"replicationcontrollers/status\"], Verbs:[\"get\" \"list\" \"watch\"]}\n{APIGroups:[\"\"], Resources:[\"resourcequotas\"], Verbs:[\"get\" \"list\" \"watch\"]}\n{APIGroups:[\"batch\"], Resources:[\"cronjobs\"], Verbs:[\"get\" \"list\" \"watch\"]}\n{APIGroups:[\"extensions\"], Resources:[\"daemonsets\"], Verbs:[\"get\" \"list\" \"watch\"]}\n{APIGroups:[\"extensions\"], Resources:[\"deployments\"], Verbs:[\"get\" \"list\" \"watch\"]}","stacktrace":"github.com/open-telemetry/opentelemetry-operator/controllers.reconcileDesiredObjects\n\t/home/runner/work/opentelemetry-operator/opentelemetry-operator/controllers/common.go:171\ngithub.com/open-telemetry/opentelemetry-operator/controllers.(*OpenTelemetryCollectorReconciler).Reconcile\n\t/home/runner/work/opentelemetry-operator/opentelemetry-operator/controllers/opentelemetrycollector_controller.go:307\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.2/pkg/internal/controller/controller.go:116\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.2/pkg/internal/controller/controller.go:303\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.2/pkg/internal/controller/controller.go:263\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.2/pkg/internal/controller/controller.go:224"}
{"level":"ERROR","timestamp":"2024-12-09T15:34:07Z","logger":"controllers.OpenTelemetryCollector","message":"failed to configure desired","opentelemetrycollector":{"name":"otel-standalone-k8sevents","namespace":"observability"},"object_name":"otel-standalone-k8sevents-observability-collector","object_kind":"&TypeMeta{Kind:,APIVersion:,}","error":"clusterroles.rbac.authorization.k8s.io \"otel-standalone-k8sevents-observability-cluster-role\" not found","stacktrace":"github.com/open-telemetry/opentelemetry-operator/controllers.reconcileDesiredObjects\n\t/home/runner/work/opentelemetry-operator/opentelemetry-operator/controllers/common.go:171\ngithub.com/open-telemetry/opentelemetry-operator/controllers.(*OpenTelemetryCollectorReconciler).Reconcile\n\t/home/runner/work/opentelemetry-operator/opentelemetry-operator/controllers/opentelemetrycollector_controller.go:307\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.2/pkg/internal/controller/controller.go:116\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.2/pkg/internal/controller/controller.go:303\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.2/pkg/internal/controller/controller.go:263\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.2/pkg/internal/controller/controller.go:224"}

In essence, these are read permissions for a lot of different k8s objects the receiver uses to enrich its logs (docs). I believe the solution would probably be to add them to the operator role in the createRbacPermissions section, like the very similar https://github.com/open-telemetry/opentelemetry-helm-charts/pull/1436 tries to? If someone confirms this, I can try to put up a PR adding all these permissions.

I ultimately just created a custom ClusterRole/ClusterRoleBinding that grants the escalate privilege.. as that feels like the right answer, instead of trying to keep updating the Operator privs based on what its controlled pods need.
# https://github.com/open-telemetry/opentelemetry-helm-charts/issues/1459
{{- with .Subcharts.operator }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: {{ template "opentelemetry-operator.fullname" . }}-escalate-fix
  labels:
    {{- include "opentelemetry-operator.labels" . | nindent 4 }}
    app.kubernetes.io/component: controller-manager
rules:
  - apiGroups:
    - rbac.authorization.k8s.io
    resources:
    - clusterroles
    - clusterrolebindings
    - rolebindings
    - roles
    verbs:
    - create
    - get
    - list
    - update
    - delete
    - watch
    - bind
    - escalate
---

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  labels:
    {{- include "opentelemetry-operator.labels" . | nindent 4 }}
    app.kubernetes.io/component: controller-manager
  name: {{ template "opentelemetry-operator.fullname" . }}-escalate-fix
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: {{ template "opentelemetry-operator.fullname" . }}-escalate-fix
subjects:
  - kind: ServiceAccount
    name: {{ template "opentelemetry-operator.serviceAccountName" . }}
    namespace: {{ .Release.Namespace }}
{{- end }}


Option to remove unused imports

The codeActionsOnSave.organizeImports setting in VSCode happens to remove unused imports. It would be great if this plugin had such an option.

Hmmmm, I wonder if this is taking things just a step too far for a "formatter".  This is a significant change to the AST, more than just moving things around.
I did come across https://www.npmjs.com/package/eslint-plugin-unused-imports though, which looks like it might do what you want?
@blutorange @fbartho what do you think?  Should this request be in-scope for this project?  Right now I'm leaning towards 👎.


About training time.

Hi, thanks for your wonderful work.  We wonder about the detailed training GPU device and training time. And we train the model on 6 GeForce 3090 for now, it will take about 2 hours per epoch.

Hi, thanks for your attention! I would like to know the detailed experimental dataset and the network pair, or run which py file. Is your experiment conducted on ImageNet?

Thanks for your reply.  We trained on ImageNet with ResNet34 aux teacher.  The python script that is run is train_teacher_imagenet.py.

Hi, the pre-training of ResNet34_aux on ImageNet is indeed time-consuming.  The training time is about ~2.5h/epoch on two Tesla V100 GPUs. We provide the pre-trained checkpoint of ResNet34_aux in the [README.md]. The KD process of ResNet18_aux with the supervision of the pre-trained ResNet34_aux is relatively quick. It consumes ~1.2h/epoch on three RTX 3090 GPUs according to our empirical study.

Great, we got it. Thanks for your detailed reply :).


fixed dev script issue on windows (used cross-env)

dev script had issues in windows so i used cross-env -which is already installed- to fix it

Awesome- thanks!


Androidtv RuntimeError: ERROR: 'FAIL' 0006closed

Problem/Motivation
Edit: I think I created this issue in the wrong place it should be under the component not the ADB addon, sorry about this, but I don't see where I can change this..
I have a problem with the androidtv component not wanting to load when Hass is (re)started
When it works it is awesome! But the androidtv component won't start most of the time.
The error from the log:
Log Details (ERROR)
Sun Mar 24 2019 22:59:14 GMT+0100 (Midden-Europese standaardtijd)
Error while setting up platform androidtv
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/androidtv/media_player.py", line 115, in setup_platform
    device_class=config[CONF_DEVICE_CLASS])
  File "/config/deps/lib/python3.7/site-packages/androidtv/__init__.py", line 34, in setup
    return AndroidTV(host, adbkey, adb_server_ip, adb_server_port)
  File "/config/deps/lib/python3.7/site-packages/androidtv/androidtv.py", line 59, in __init__
    self.device_properties = self.get_device_properties()
  File "/config/deps/lib/python3.7/site-packages/androidtv/androidtv.py", line 146, in get_device_properties
    properties = self.adb_shell('getprop')
  File "/config/deps/lib/python3.7/site-packages/androidtv/basetv.py", line 122, in _adb_shell_pure_python_adb
    return self._adb_device.shell(cmd)
  File "/config/deps/lib/python3.7/site-packages/adb_messenger/command/transport/__init__.py", line 23, in shell
    conn.send(cmd)
  File "/config/deps/lib/python3.7/site-packages/adb_messenger/connection.py", line 77, in send
    return self._check_status()
  File "/config/deps/lib/python3.7/site-packages/adb_messenger/connection.py", line 83, in _check_status
    raise RuntimeError("ERROR: {} {}".format(repr(recv), error))
RuntimeError: ERROR: 'FAIL' 0006closed

I am running  hassio 0.90.1 with the ADB addon (0.3.0)
The ADB is able to connect because the log is showing this a lot:
[22:51:29] INFO: Connecting to device: <IP_ADDRESS>...
already connected to <IP_ADDRESS>:5555
[22:51:29] INFO: Connecting to device: <IP_ADDRESS>...
already connected to <IP_ADDRESS>:5555

Expected behavior
I would like to control my sony bravia android tv
Actual behavior
Sometimes the component works, but then after I restart Hass it sometimes wont start the component and gives me an error in the log. I can continue to restart Hass until I get lucky after a few tries and the component will work. This is a bit annoying :p
Steps to reproduce
I have no idea actually..
Proposed changes
I have no idea..
I am also running a custom component Sony Bravia PSK (https://community.home-assistant.io/t/sony-bravia-tv-component-with-pre-shared-key/30698)
This let me control my tv with a pre shared key. Could this stand in the way of the androidtv component? When I comment out the sony custom component in my configuration.yaml there is no change in the androidtv issue
Hopefully someone can help me with this. :)
 Home Assistant CommunitySony Bravia TV component with Pre-Shared KeyUsing Home Assistant for some weeks now and it works great 😎  I have a Sony Bravia TV and I have used the braviatv platform, but that was not working very well for me.  After some days the state card wasn’t updating anymore and I got a lot of errors in the log. Only a restart of HASS would fix that problem.  I think this was caused by the PIN/cookie method which isn’t working fine (at least not in my setup).  That’s why I have made a custom component which is using a Pre-Shared Key to...

This indeed is a component thing.
Please report the issue with the component here:
https://github.com/home-assistant/home-assistant


Adding modules on the fly with patch.extend

Before it was only one way to add modules - only when you init snabbdom.
Now you can add modules on the fly, like this:
var patch = snabbdom.init([snabbdom_class, snabbdom_attrs]);
patch.extend([{
create: function () {},
update: function () {},
}, {
create: function () {},
update: function () {},
}]);
or
var patch = snabbdom.init([snabbdom_class, snabbdom_attrs]);
patch.extend({
create: function () {},
update: function () {},
});
It is very important if you want to make standalone bundle, which already includes all default modules, because in this case there is no way to add additional modules, except this patch.extend function.

How about making in non-mutating? Like extendedPatch = patch.extend(modules), where patch stays the same

Thank you for your contribution, @grimalschi.
Please correct me if I'm wrong. I see no benefit of this over discarding the existing patch function and making a new one with init again.

I don't remember what was the case, honestly. I think we can close this.

Thank you for the follow-up, @grimalschi.


tmpl: fix nil pointer error in Dockerfile.tmpl

Summary
Check that each stage is set in the plan before attempting to use its command. This fixes a nil pointer error that occurs when using an empty devbox.json in an unsupported language.
How was it tested?
Ran devbox plan in a Go project with an empty devbox.json.

I got this problem on the 0.0.4
$ devbox build
Error: template: Dockerfile.tmpl:44:26: executing "Dockerfile.tmpl" at <.StartStage.Image>: nil pointer evaluating *planner.Stage.Image
Usage:
  devbox build [<dir>] [flags]

Flags:
      --engine string   Engine used to build the container: 'docker', 'podman' (default "docker")
  -h, --help            help for build
      --no-cache        Do not use a cache

@ebauger We just released 0.0.5 and it includes this PR. Hopefully that fixes it!


Retrieve connectivty information from enterprise scale module

Versions

terraform: Terraform v1.0.11
azure provider: azurerm v2.86.0
module: Enterprise Scale
Description
I need to retrive the Id of the VNet that is created by the Enterprise_Scale Module.
the following Output is made alailable by the module
output "azurerm_virtual_network" {
  value = {
    connectivity = azurerm_virtual_network.connectivity
  }
  description = "Returns the configuration data for all Virtual Networks created by this module."
}

I am able to retreive to who variable but can't isolate the Id of the Vnet.

I made an output variable in the root folder
output "azurerm_virtual_network"{
  value = module.enterprise_scale.azurerm_virtual_network
}

This variable is working, but i can't isolate the Id of the Vnet.
here's the result of my Output:
azurerm_virtual_network = {
  "connectivity" = {
    "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-Canadaeast/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-Canadaeast" = {
      "address_space" = tolist([
        "10.XX.2XX.0/23",
      ])
      "bgp_community" = ""
      "ddos_protection_plan" = tolist([])
      "dns_servers" = tolist([
       "10.XX.24X.XX",
        "10.XX.24X.XX",
      ])
      "flow_timeout_in_minutes" = 0
      "guid" = "b2af80ea-aabe-4404-a85e-45078b8cd969"
      "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-Canadaeast/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-Canadaeast"
      "location" = "canadaeast"
      "name" = "[COMPANY_NAME]-hub-Canadaeast"
      "resource_group_name" = "[COMPANY_NAME]-connectivity-Canadaeast"
      "subnet" = toset([
        {
          "address_prefix" = "10.XX.2XX.0/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-Canadaeast/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-Canadaeast/subnets/GatewaySubnet"
          "name" = "GatewaySubnet"
          "security_group" = ""
        },
        {
          "address_prefix" = "10.XX.240.128/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-canadaeast/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-canadaeast/subnets/AzureBastionSubnet"
          "name" = "AzureBastionSubnet"
          "security_group" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/RG_AzureBastion-Canadaeast-lab/providers/Microsoft.Network/networkSecurityGroups/nsg-AzureBastion-Canadaeast-lab"
        },
        {
          "address_prefix" = "10.XX.240.160/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-Canadaeast/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-Canadaeast/subnets/snet-OCI"
          "name" = "snet-OCI"
          "security_group" = ""
        },
        {
          "address_prefix" = "10.XX.240.32/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-Canadaeast/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-Canadaeast/subnets/AzureFirewallSubnet"
          "name" = "AzureFirewallSubnet"
          "security_group" = ""
        },
        {
          "address_prefix" = "10.XX.240.64/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-canadaeast/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-canadaeast/subnets/snet-identity"
          "name" = "snet-identity"
          "security_group" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/RG_Identity-Canadaeast-lab/providers/Microsoft.Network/networkSecurityGroups/nsg-Identity-Canadaeast-lab"
        },
        {
          "address_prefix" = "10.XX.240.96/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-Canadaeast/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-Canadaeast/subnets/snet-Sauvegarde"
          "name" = "snet-Sauvegarde"
          "security_group" = ""
        },
        {
          "address_prefix" = "10.XX.241.0/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-Canadaeast/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-Canadaeast/subnets/snet-Fortinet-external"
          "name" = "snet-Fortinet-external"
          "security_group" = ""
        },
        {
          "address_prefix" = "10.XX.241.160/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-Canadaeast/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-Canadaeast/subnets/snet-consoles"
          "name" = "snet-consoles"
          "security_group" = ""
        },
        {
          "address_prefix" = "10.XX.241.32/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-Canadaeast/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-Canadaeast/subnets/snet-Fortinet-internal"
          "name" = "snet-Fortinet-internal"
          "security_group" = ""
        },
        {
          "address_prefix" = "10.XX.241.64/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-Canadaeast/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-Canadaeast/subnets/snet-Fortinet-ha-mgmt"
          "name" = "snet-Fortinet-ha-mgmt"
          "security_group" = ""
        },
        {
          "address_prefix" = "10.XX.241.96/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-Canadaeast/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-Canadaeast/subnets/snet-Fortinet-ha-sync"
          "name" = "snet-Fortinet-ha-sync"
          "security_group" = ""
        },
      ])
      "tags" = tomap({
        "Environnement" = "Laboratoire"
        "deployedBy" = "terraform/azure/caf-enterprise-scale/v1.1.0"
        "module" = "enterprise_scale"
      })
      "timeouts" = null /* object */
      "vm_protection_enabled" = false
    }
    "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-canadacentral/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-canadacentral" = {
      "address_space" = tolist([
        "XX.XX.240.0/23",
      ])
      "bgp_community" = ""
      "ddos_protection_plan" = tolist([])
      "dns_servers" = tolist([
        "10.XX.24X.XX",
        "10.XX.24X.XX",
      ])
      "flow_timeout_in_minutes" = 0
      "guid" = "8d5d9f21-4a21-4f03-be95-0e13eb37878c"
      "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-canadacentral/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-canadacentral"
      "location" = "canadacentral"
      "name" = "[COMPANY_NAME]-hub-canadacentral"
      "resource_group_name" = "[COMPANY_NAME]-connectivity-canadacentral"
      "subnet" = toset([
        {
          "address_prefix" = "XX.XX.240.0/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-canadacentral/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-canadacentral/subnets/GatewaySubnet"
          "name" = "GatewaySubnet"
          "security_group" = ""
        },
        {
          "address_prefix" = "XX.XX.240.128/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-canadacentral/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-canadacentral/subnets/AzureBastionSubnet"
          "name" = "AzureBastionSubnet"
          "security_group" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/RG_AzureBastion-Canadacentral-lab/providers/Microsoft.Network/networkSecurityGroups/nsg-AzureBastion-Canadacentral-lab"
        },
        {
          "address_prefix" = "XX.XX.240.160/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-canadacentral/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-canadacentral/subnets/snet-OCI"
          "name" = "snet-OCI"
          "security_group" = ""
        },
        {
          "address_prefix" = "XX.XX.240.32/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-canadacentral/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-canadacentral/subnets/AzureFirewallSubnet"
          "name" = "AzureFirewallSubnet"
          "security_group" = ""
        },
        {
          "address_prefix" = "XX.XX.240.64/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-canadacentral/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-canadacentral/subnets/snet-identity"
          "name" = "snet-identity"
          "security_group" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/RG_Identity-Canadacentral-lab/providers/Microsoft.Network/networkSecurityGroups/nsg-Identity-Canadacentral-lab"
        },
        {
          "address_prefix" = "XX.XX.240.96/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-canadacentral/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-canadacentral/subnets/snet-Sauvegarde"
          "name" = "snet-Sauvegarde"
          "security_group" = ""
        },
        {
          "address_prefix" = "XX.XX.241.0/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-canadacentral/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-canadacentral/subnets/snet-Fortinet-external"
          "name" = "snet-Fortinet-external"
          "security_group" = ""
        },
        {
          "address_prefix" = "XX.XX.241.128/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-canadacentral/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-canadacentral/subnets/snet-Fortinet-protected"
          "name" = "snet-Fortinet-protected"
          "security_group" = ""
        },
        {
          "address_prefix" = "XX.XX.241.160/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-canadacentral/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-canadacentral/subnets/snet-consoles"
          "name" = "snet-consoles"
          "security_group" = ""
        },
        {
          "address_prefix" = "XX.XX.241.32/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-canadacentral/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-canadacentral/subnets/snet-Fortinet-internal"
          "name" = "snet-Fortinet-internal"
          "security_group" = ""
        },
        {
          "address_prefix" = "XX.XX.241.64/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-canadacentral/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-canadacentral/subnets/snet-Fortinet-ha-mgmt"
          "name" = "snet-Fortinet-ha-mgmt"
          "security_group" = ""
        },
        {
          "address_prefix" = "XX.XX.241.96/27"
          "id" = "/subscriptions/69ebdf7b-XXXX-47f5-bdd3-XXXXXXXXXXX/resourceGroups/[COMPANY_NAME]-connectivity-canadacentral/providers/Microsoft.Network/virtualNetworks/[COMPANY_NAME]-hub-canadacentral/subnets/snet-Fortinet-ha-sync"
          "name" = "snet-Fortinet-ha-sync"
          "security_group" = ""
        },
      ])
      "tags" = tomap({
        "Environnement" = "Laboratoire"
        "deployedBy" = "terraform/azure/caf-enterprise-scale/v1.1.0"
        "module" = "enterprise_scale"
      })
      "timeouts" = null /* object */
      "vm_protection_enabled" = false
    }
  }
}

I am trying something like this:
output "test"{
  value = module.enterprise_scale.azurerm_virtual_network.connectivity["id"]
}

Result:
│ Error: Invalid index
│
│   on outputs.tf line 65, in output "test":
│   65:   value = module.enterprise_scale.azurerm_virtual_network.connectivity["id"]
│     ├────────────────
│     │ module.enterprise_scale.azurerm_virtual_network.connectivity is object with 2 attributes
│
│ The given key does not identify an element in this collection value.

ANY IDEA ?
thanks

HI @krowlandson,
thank you for the feedback
You wrote:
I appreciate this may not be ideal for what you are looking to achieve in this specific case, but there are ways you can dynamically generate the key from your module inputs, in the same way we do within the module.
can you give me an example ?
thank you


Can micrometer-tracing support  Skywalking in future?

I want the trace info export to Skywalking server

It's already supported https://skywalking.apache.org/docs/main/next/en/setup/backend/micrometer-observations/

It's already supported https://skywalking.apache.org/docs/main/next/en/setup/backend/micrometer-observations/

thanks


Ctrl+Alt+Delete Command not working

I am not sure why, but pyautogui.hotkey('ctrl','alt', 'delete') doesn't work!
I tried these and they work well:
pyautogui.hotkey('alt', 'f4')
pyautogui.hotkey('ctrl', 'shift', 'esc')
But pyautogui.hotkey('ctrl','alt', 'delete')  doesn't work as well.
But I had no success.

The Windows operating system doesn't let applications simulate pressing Ctrl+Alt+Del, so this is something that PyAutoGUI will never be able to do.


Unhandled pending operations with model

Good day, I have two django apps on nginx server with same class names. These two apps use the one PSA library. When I only create a database for the second app and apply all migrations loaded from remote repo, all is fine and migrations are applied. The next time when I run makemigrations or migrate, then get the next message:
unhandled pending operations for model: <model_name> (referred to by fields: default.UserSocialAuth.user)
And the problem is that I try to use makemigrations to second app, but app label in <model_name> is from the first one.
How can I handle this?
Thank you

I've the same error:
Here my traceback
Traceback (most recent call last):
  File "manage.py", line 23, in <module>
    execute_from_command_line(sys.argv)
  File "/opt/web/env/FOO/lib/python3.5/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
    utility.execute()
  File "/opt/web/env/FOO/lib/python3.5/site-packages/django/core/management/__init__.py", line 345, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/opt/web/env/FOO/lib/python3.5/site-packages/django/core/management/base.py", line 348, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/opt/web/env/FOO/lib/python3.5/site-packages/django/core/management/base.py", line 399, in execute
    output = self.handle(*args, **options)
  File "/opt/web/env/FOO/lib/python3.5/site-packages/django/core/management/commands/migrate.py", line 186, in handle
    changes = autodetector.changes(graph=executor.loader.graph)
  File "/opt/web/env/FOO/lib/python3.5/site-packages/django/db/migrations/autodetector.py", line 46, in changes
    changes = self._detect_changes(convert_apps, graph)
  File "/opt/web/env/FOO/lib/python3.5/site-packages/django/db/migrations/autodetector.py", line 131, in _detect_changes
    self.old_apps = self.from_state.concrete_apps
  File "/opt/web/env/FOO/lib/python3.5/site-packages/django/db/migrations/state.py", line 166, in concrete_apps
    self.apps = StateApps(self.real_apps, self.models, ignore_swappable=True)
  File "/opt/web/env/FOO/lib/python3.5/site-packages/django/db/migrations/state.py", line 235, in __init__
    raise ValueError(self._pending_models_error(pending_models))
ValueError: Unhandled pending operations for models:
  default.usersocialauth (referred to by fields: profiles.FacebookProfile.user_social_auth, profiles.GoogleProfile.user_social_auth)

Closing, please reopen in social-app-django if still relevant.


Has anyone tried to deploy this on OpenShift?

Just curious.....

I did!

@alberttwong I deployed the kube-monkey like you mention on my openshift, but it does not seems to be working. Its giving me
I0531 04:04:08.061773       1 schedule.go:57] Status Update: 0 terminations scheduled today
When I did kubectl get deployments i got No resources found.
Any idea?


Support for Cohere API

Please add support for Cohere API with all the built in RAG and tool use functionalities. Essentially, RAG and tool use in Cohere are just chat parameters definable by users. More information can be found at https://docs.cohere.com/reference/chat .

Cohere API have been added.
Specific code to be merged, the use of the method can be referred to as follows
https://github.com/geekan/MetaGPT/pull/1193
SimpleEngine.from_docs(
                input_files=[DOC_PATH],
                retriever_configs=[FAISSRetrieverConfig()],
                ranker_configs=[CohereRerankConfig()],
            )

Please add support for Cohere API with all the built in RAG and tool use functionalities. Essentially, RAG and tool use in Cohere are just chat parameters definable by users. More information can be found at https://docs.cohere.com/reference/chat .

Cohere API have been added.
Specific code to be merged, the use of the method can be referred to as follows
https://github.com/geekan/MetaGPT/pull/1193
SimpleEngine.from_docs(
                input_files=[DOC_PATH],
                retriever_configs=[FAISSRetrieverConfig()],
                ranker_configs=[CohereRerankConfig()],
            )