Still lagging after async UI update introduced

I try using the plugin with big kubernetes json outputs (eg. kubectl get pods -A) about 30kb in size, which shouldn't lag, but it does.
I think the entire exec should probably be done in an async way, not just the UI update.
Maybe using a plenary job would make sense here?

Hey, thanks for opening this issue. I'll investigate. Could you share a bit more on your use case? For example how did you start jq-playground, with the input json file open in a buffer, or as argument of the :JqPlayground command?


Fix EditStudentCommand and its dependencies to be compilable.

No checks yet on whether the test cases can pass, but I did do a bit of backtracing to ensure the sequential method calls in its dependencies maintain correctness as much as possible (only in theory). No way for me to actually run it yet, since all files need to be compilable in order to run tests.

👍👍👍


[BrokenLinksH2] Fixed the link path

Fixed the link path

Docs Build status updates of commit 5a712ad:
:warning: Validation status: warnings

File
Status
Preview URL
Details

Articles/PartnerDocs/Kaizala_overview.md
:warning:Warning

Details

Articles/PartnerDocs/Kaizala_overview.md

Line 0, Column 0: [Warning: h1-missing - See documentation] H1 is required. Use a single hash (#) followed by a space to create your top-level heading.
Line 1, Column 1: [Warning: title-missing - See documentation] Missing required attribute: 'title'. Add a title string to show in search engine results.
Line 2, Column 1: [Warning: alt-text-missing - See documentation] Missing alternate text for image 'Images/Microsoft%20kaizala%20overview.png'. Alt text is required for accessibility.
Line 10, Column 83: [Warning: alt-text-missing - See documentation] Missing alternate text for image 'Images/Groups.png'. Alt text is required for accessibility.
Line 10, Column 185: [Warning: alt-text-missing - See documentation] Missing alternate text for image 'Images/Actioncards.png'. Alt text is required for accessibility.
Line 10, Column 271: [Warning: alt-text-missing - See documentation] Missing alternate text for image 'Images/ReportingAnalytics.png'. Alt text is required for accessibility.
Line 10, Column 12: [Warning: hard-coded-locale - See documentation] Link 'https://docs.microsoft.com/en-us/Office365/Kaizala/groups-in-kaizala' contains locale code 'en-us'. For localizability, remove 'en-us' from links to most Microsoft sites.
Line 13, Column 71: [Warning: alt-text-missing - See documentation] Missing alternate text for image 'Images/ExtensiblePlatform.png'. Alt text is required for accessibility.
Line 13, Column 206: [Warning: alt-text-missing - See documentation] Missing alternate text for image 'Images/ManagementPortal.png'. Alt text is required for accessibility.
Line 13, Column 337: [Warning: alt-text-missing - See documentation] Missing alternate text for image 'Images/Optimized.png'. Alt text is required for accessibility.
Line 13, Column 12: [Warning: hard-coded-locale - See documentation] Link 'https://docs.microsoft.com/en-us/kaizala/connectors/setup' contains locale code 'en-us'. For localizability, remove 'en-us' from links to most Microsoft sites.
Line 1, Column 1: [Suggestion: description-missing - See documentation] Missing required attribute: 'description'.
Line 10, Column 12: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/en-us/Office365/Kaizala/groups-in-kaizala' will be broken in isolated environments. Replace with a relative link.
Line 13, Column 12: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/en-us/kaizala/connectors/setup' will be broken in isolated environments. Replace with a relative link.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Global effort to fix broken links
@dstrome
The Content & Learning team is fixing broken links on docs.microsoft.com for the rest of H2. This effort will eliminate potential accessibility, security, and usability issues. This PR includes only link fixes and does not change other content. Please review within five business days and merge, or comment in the PR with any changes you'd like to see. Thanks!

Docs Build status updates of commit 2740e62:
:warning: Validation status: warnings

File
Status
Preview URL
Details

Articles/PartnerDocs/Kaizala_overview.md
:warning:Warning

Details

Articles/PartnerDocs/Kaizala_overview.md

Line 1, Column 1: [Warning: title-missing - See documentation] Missing required attribute: 'title'. Add a title string to show in search engine results.
Line 2, Column 1: [Warning: alt-text-missing - See documentation] Missing alternate text for image 'Images/Microsoft%20kaizala%20overview.png'. Alt text is required for accessibility.
Line 7, Column 1: [Warning: multiple-h1s - See documentation] Multiple H1s(H1 'Kaizala’s Unique Approach') are not allowed. You can only have one top-level heading.
Line 10, Column 51: [Warning: alt-text-missing - See documentation] Missing alternate text for image 'Images/Groups.png'. Alt text is required for accessibility.
Line 10, Column 153: [Warning: alt-text-missing - See documentation] Missing alternate text for image 'Images/Actioncards.png'. Alt text is required for accessibility.
Line 10, Column 239: [Warning: alt-text-missing - See documentation] Missing alternate text for image 'Images/ReportingAnalytics.png'. Alt text is required for accessibility.
Line 13, Column 39: [Warning: alt-text-missing - See documentation] Missing alternate text for image 'Images/ExtensiblePlatform.png'. Alt text is required for accessibility.
Line 13, Column 174: [Warning: alt-text-missing - See documentation] Missing alternate text for image 'Images/ManagementPortal.png'. Alt text is required for accessibility.
Line 13, Column 305: [Warning: alt-text-missing - See documentation] Missing alternate text for image 'Images/Optimized.png'. Alt text is required for accessibility.
Line 1, Column 1: [Suggestion: description-missing - See documentation] Missing required attribute: 'description'.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Password containing %  in SQL URL throws error: invalid URL escape "%xx"

I think we need to parse escape characters correctly, looks like we're missing this.
No metrics gathered, [from Gatherer #1] parse sqlserver://user:pass%word@host:3306: invalid URL escape "%bt"

Have you tried replacing the % in your URL with its escaped form? I.e. %25? As in, replace
sqlserver://user:pass%word@host:3306

with
sqlserver://user:pass%25word@host:3306

@free I had actually stupidly not realised that we were using postgresql not sqlserver, meaning the parser worked as expected for postgres.
I suspect this works for sqlserver per your suggestion. Going to be closing this. Thank you and sorry for the delay!


trident-csi 20.04 and 20.07 will not startup on openshift 4.11

We see the trident-csi not starting up with this error messages in the log:
Warning  Unhealthy  6m36s (x10 over 7m21s)  kubelet            Startup probe failed: Get "https://<IP_ADDRESS>:17546/liveness": remote error: tls: protocol version not supported

2022/08/09 09:35:21 http: TLS handshake error from <IP_ADDRESS>:48986: tls: client offered only unsupported versions: [303]

$ oc get csv  -n openshift-cnv
NAME                                       DISPLAY                    VERSION   REPLACES                                   PHASE
kubevirt-hyperconverged-operator.v4.11.0   OpenShift Virtualization   4.11.0    kubevirt-hyperconverged-operator.v4.10.2   Succeeded

I wonder if someone has seen this issue before?
How are the supported TLS versions configured for the trident client when contacting the liveness service?
Environment

Trident version: [22.04 and 20.07]
Trident installation flags used: [default]
Kubernetes version: [1.24.0]
Kubernetes orchestrator: [OpenShift v4.11]

FYI, using this on the master node does give an ok:
# curl -k https://localhost:17546/liveness  --tlsv1.3
ok```

Trident requires all inbound connections to use tls1.3 and will use a minimum of tls1.2 for outbound connections, as of 22.04.
https://github.com/NetApp/trident/blob/1db81b0c539f3b882aa74b310df60fd2db49b30b/config/config.go#L122-L123
You mention 22.04 and 20.04 and 20.07 in your message. Can you please confirm if you mean 22.04 and 22.07?
It sounds like your kubelet is not able to use tls 1.3 for some reason.

Sorry, this was my mistake. We tried version 22.07 and 22.04.

Hi @newkit,
We haven't seen this issue when testing against an RC for OpenShift 4.11 with Trident. That said, OpenShift 4.11 is not GA as of yet and is not currently supported by Trident.
You said that you checked your master node but given the error Startup probe failed: Get "https://<IP_ADDRESS>:17546/liveness": remote error: tls: protocol version not supported you also need to check your worker node. It appears that the error is indicating that the TLS client version on the worker node is not supported.

This is not new and have to my knowledge been part of 4.10 as well.
Useing OCP 4.10 and trident 22.01.1 I see the following when I debug the TLS negotiation via curl
sh-4.4# curl -v https://<IP_ADDRESS>:17546/readiness
*   Trying <IP_ADDRESS>...
* TCP_NODELAY set
* Connected to <IP_ADDRESS> (<IP_ADDRESS>) port 17546 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, [no content] (0):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, [no content] (0):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (OUT), TLS alert, unknown CA (560):
* SSL certificate problem: unable to get local issuer certificate
* Closing connection 0
curl: (60) SSL certificate problem: unable to get local issuer certificate

via openssl s_client I can see that certificate presented is
Server certificate
-----BEGIN CERTIFICATE-----
MIICpTCCAgagAwIBAgIHAvyVItyeqDAKBggqhkjOPQQDBDBOMQswCQYDVQQGEwJV
UzELMAkGA1UECBMCTkMxDDAKBgNVBAcTA1JUUDEPMA0GA1UEChMGTmV0QXBwMRMw
EQYDVQQDEwp0cmlkZW50LWNhMCAXDTcwMDEwMTAwMDAwMFoYDzIwNzAwMTAxMDAw
MDAwWjBPMQswCQYDVQQGEwJVUzELMAkGA1UECBMCTkMxDDAKBgNVBAcTA1JUUDEP
MA0GA1UEChMGTmV0QXBwMRQwEgYDVQQDEwt0cmlkZW50LWNzaTCBmzAQBgcqhkjO
PQIBBgUrgQQAIwOBhgAEAFa93F2IP5A4aS1rfMmrqKuv6U+W2dspQ15C3UgA4lWI
gl0s2pNhu3ft/W6byZ+nBkEXmnOlUyDrCpua+7heUGtuAOzh/Et79NP8COC9TYHS
LlJuTCAAzXV7nz+TTqTYPP7c9eDf12TZ9hISW8QbgeDQYCMhtICuYygqDCpkTn+v
XX3to4GIMIGFMBMGA1UdJQQMMAoGCCsGAQUFBwMBMCkGA1UdDgQiBCBzwXZKWKke
/dCKTap2VEvDkaAu+3GaMyZf43yXaVQvLTArBgNVHSMEJDAigCBW6ZVuHhhFWwAb
oWO1T7vHPAUmucqlCC1Qv/5E/7xTNTAWBgNVHREEDzANggt0cmlkZW50LWNzaTAK
BggqhkjOPQQDBAOBjAAwgYgCQgCrjix+OjvSAPVx5d1mg6xUVDzcGgkQLkQK78AY
WuABJAMVAOSTOqLQMxVyFwURvM2QE1qZnNzDtE9Dg4ihF07d+wJCATDzPGnzcbP/
uDcVHnOyii1EDmmOuqGZTqlN/5B19ZDdghJIqf89ZPp48u7smomUmElvglTX9tML
mRJMAmQtkDBF
-----END CERTIFICATE-----

Which forces me to guess that prior to the 22.04.0 release TLS was perhaps not enforced.

Hi @rsjonte,
Thanks for the detailed clarification and using OCP 4.10 as the example. This is the commit that introduced using TLS 1.3 as the minimum TLS version. This change was included with the Trident v22.04 release.
I can't say with certainty why your curl command is failing but the common reason is because curl isn't able to verify the certificate being provided by the server. You can see in the above commit that the tls.RequireAndVerifyClientCert option was not changed so enforcement behavior shouldn't have changed.
You can contact us on Discord if you'd like to have a further discussion.

Hi @gnarl,
Thank you for your reply. I'm sorry if my comment was unclear.
The point I was trying to make was that in 22.01.1 and before, even though the CA was not able to be verified, the readiness check succeeded. As of 22.04.0, and again in 22.07.0, they fail with the handshake error from @newkit issue report.
They could of course be unrelated, and what I tried to show was that in 22.01.1 we already use TLS 1.3 and what I can see from an openssl s_client -connect is that the cipher used likely will be
New, TLSv1.3, Cipher is TLS_AES_128_GCM_SHA256
I just need to add one bit of information which is that the cluster I've been testing on is installed in FIPS mode, as that might limit which cipher are available.

This is still an ongoing issue in trident-installer-22.10.0.tar.gz
2022/11/10 11:19:45 http: TLS handshake error from <IP_ADDRESS>:54640: tls: client offered only unsupported versions: [303]
2022/11/10 11:19:50 http: TLS handshake error from <IP_ADDRESS>:43054: tls: client offered only unsupported versions: [303]
2022/11/10 11:19:55 http: TLS handshake error from <IP_ADDRESS>:43070: tls: client offered only unsupported versions: [303]
2022/11/10 11:20:00 http: TLS handshake error from <IP_ADDRESS>:53866: tls: client offered only unsupported versions: [303]
2022/11/10 11:20:05 http: TLS handshake error from <IP_ADDRESS>:53870: tls: client offered only unsupported versions: [303]

@rsjonte, this
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (OUT), TLS alert, unknown CA (560):
* SSL certificate problem: unable to get local issuer certificate
* Closing connection 0
curl: (60) SSL certificate problem: unable to get local issuer certificate

Is indicative of an untrusted connection, if you used curl --insecure, it very well could have connected.
The list of certificates on the local machine (/etc/pki/tls/certs/ca-bundle.crt) does not contain the certificate used by the server (this is fundamentally the problem), and the server's root certificate needs to be added to this. The certificate above has an Issuer DN:  C=US,ST=NC,L=RTP,O=NetApp,CN=trident-ca which is different than the Subject DN (so it's not self-signed).
So either (1) the server needs to use a CA already trusted by the client, or (2) the client needs to add the trident-ca certificate to its trust store.

Hi @gnarl,
I do have support cases running(both with RH and with NetApp), but its an curve ball. We have been able to upgrade our none-FIPS compliant cluster without problems, but as for our FIPS compliant ones they all exhibit this issue.
It's not an critical issue, but it is an roadblock for k8s 1.25 which for us will arrive with Openshift 4.12.
I'm guessing that organizations that run FIPS compliant Openshift clusters probably don't use NetApp for storage since we seems to be alone with the issue. Or we might just be snowflakes for some unknown reason.
I'll let you know once engineering figure out the root cause.

@gnarl
We seem to have make an breakthrough, here is an workaround for now.
https://kb.netapp.com/Advice_and_Troubleshooting/Cloud_Services/Astra_Trident/Trident_doesn't_run_due_to_TLSv1.2_mismatch_on_Openshift_FIPS_setup%2C

Hi @rsjonte,
Thanks for the update and it is good to hear that you've found a work around.
At this time, Trident doesn't test for FIPS 140-2 compliance and uses Go's standard library crypto package. Obtaining a FIPS certification isn't currently on Trident's roadmap and we are not planning, at this time, to test OpenShift with FIPS enabled.


Python support + example

The fastest growing language in the world is probably Python. We should probably add support for it.
This requires a good bit of technical work, but it should be doable if we build on either python-wasi or pyodide.

also worth noting the team over at Fermyon wrote this great post - https://www.fermyon.com/blog/python-wagi


Add files relevant to Pacman game

Description
Added files relevant to Pacman game implemented in Vanilla Javascript
Resolves:  #410
Type of change

[x] New feature (non-breaking change which adds functionality)

https://deploy-preview-503--amazing-js-projects.netlify.app/pacmanjs/

@git-pi-e


current scikit_learn version throws warnings

whenever I try to load the model with (scikit_learn==0.22.1)

FutureWarning: The sklearn.svm.classes module is  deprecated in version 0.22 and will be removed in version 0.24. The corresponding classes / functions should instead be imported from sklearn.svm. Anything that cannot be imported from sklearn.svm is now part of the private API.
  warnings.warn(message, FutureWarning)
 UserWarning: Trying to unpickle estimator SVC from version 0.19.1 when using version 0.22.1. This might lead to breaking code or invalid results. Use at your own risk.
  UserWarning)

won't it be better to give scikit_learn==0.19.1 as the requirement ?

I would suggest re-train the svm models with the latest scikit-learn and then update the repo with the new models. This would solve the problem for the long run.

Closed as its resolved now 👍🏻


Warning: apt-key output should not be parsed

The action throws a warning on Ubuntu:
wget --quiet -O - postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
Warning: apt-key output should not be parsed (stdout is not a terminal)

The warning doesn't show up in the action summary of this repo for some reason, but it does elsewhere, see details.
More info on the warning.

Fixed in the commit above.


Drill to detail on month only returns records from the first day of month

Drill to detail on a month should return all records from that month.  It returns only records from the first day.
How to reproduce the bug

Create an aggregate table chart with a datetime variable as a dimension
Select Time Grain = Month
On dashboard, Drill to Detail by Month.

Expected results
See all results for that month (or month & other variables, if drilling by all).
Actual results
Only records matching the first day of the month are returned.  I ran a trace on my data warehouse and can see the SQL query is only asking for the first day of the month:
SELECT TOP 50000 COUNT(*) AS [COUNT(*)]
FROM dbo.[myDataTable]
WHERE date_completed >= CONVERT(DATE, '2023-01-01', 23)
  AND date_completed < CONVERT(DATE, '2023-04-27', 23)
  AND date_completed = N'2023-03-01T00:00:00.000Z'

(The first two date_completed lines come from a dashboard native filter time range).
Screenshots
How I'm drilling:

Chart setup:

Environment
(please complete the following information):

browser type and version: Firefox
superset version: 3.1.1 (first noticed this in 2.1.0)
Data warehouse: Microsoft SQL Server

Well, you know the "we don't support 2.x" party line I'm using ;) Is this still a thing in 3.x?

@rusackas Yep I just updated the original post to indicate I've validated it in 3.1.1.

I assume this one is still happening in 4.x, but it's getting a little stale. Seems not many people are running into this.

Yes, I confirmed that this is still happening in 4.0.2.  I updated the issue title to be more specific that this only affects table charts.
I tried to figure out where in the codebase changes would need to be made, I wonder if it's here since it only affects table charts and mine would have a pivot operation: https://github.com/apache/superset/blob/5bebcf61fefe2af7ed32f822ad1d86589ff4c9d2/superset/common/query_context_factory.py#L157
Also kind of wonder if it could be SQL Server-specific, maybe someone using a different data warehouse could try to validate.

I have the same problem, please let me know if you have any progress.


add gptq and awq int4 support in intel platform

What does this PR do?

Fixes # (issue)
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you read the contributor guideline,
Pull Request section?
[ ] Was this discussed/approved via a Github issue or the forum? Please add a link
to it if that's the case.
[ ] Did you make sure to update the documentation with your changes? Here are the
documentation guidelines, and
here are tips on formatting docstrings.
[ ] Did you write any new necessary tests?

Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@Narsil @danieldk please help review.

Hi @sywangyi 👋
Yes, let me run the tests in a separate branch so that we don't get the permission errors 👍 I should have time to do it today or tomorrow 👍

@ErikKaum @Narsil upload fix for ci, please rerun the ci

@sywangyi there seems still to be an error in the dockerfile:
Dockerfile_intel:154
--------------------
 152 |     RUN git clone https://github.com/intel/intel-extension-for-pytorch && cd intel-extension-for-pytorch && git checkout f86e93e4890dc2c989024d148d415c9aa8a1649f
 153 |     RUN git clone https://github.com/intel/torch-ccl.git && cd torch-ccl && git checkout v2.4.0+cpu+rc0
 154 | >>> RUN cd intel-extension-for-pytorch && git submodule sync && git submodule update --init --recursive && python setup.py install
 155 |     RUN cd torch-ccl && git submodule sync && git submodule update --init --recursive && pip install .
 156 |
--------------------
ERROR: failed to solve: process "/bin/sh -c cd intel-extension-for-pytorch && git submodule sync && git submodule update --init --recursive && python setup.py install" did not complete successfully: exit code: 1

Could you help to retrigger the CI build/for intel-cpu, since we did not see the build error in previous ci and I have not make any change to the Dockerfile_intel in the new commits

will rework it after https://github.com/huggingface/text-generation-inference/pull/2517 is merged. since python is upgraded from 3.10 to 2.11

@ErikKaum  rebase done, please retrigger the CI, review and merge it.

seems the failure is not related with the PR
ERROR integration-tests/models/test_flash_medusa.py::test_flash_medusa_simple - RuntimeError: Launcher crashed
ERROR integration-tests/models/test_flash_medusa.py::test_flash_medusa_all_params - RuntimeError: Launcher crashed
ERROR integration-tests/models/test_flash_medusa.py::test_flash_medusa_load - RuntimeError: Launcher crashed

@ErikKaum could you help retrigger it?

this PR is also needed to make mllama output correct in ipex-cpu. since it will upgrade ipex. could anyone help merge it?

@ErikKaum @Narsil ,please help. @yao-matrix

IT's merged from an updated PR I prepared for CI (https://github.com/huggingface/text-generation-inference/pull/2665)  (only minor fixes have been updated in the control flow and adding a few comments).


chore: addressing code issues highlighted by SonarCloud, code  cleanup

Description of the change

chore: addressing code issues highlighted by SonarCloud, code  cleanup

Type of change

[ ] Bug fix (non-breaking change that fixes an issue)
[ ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Related issues

n/a

Checklists
Development

[x] Lint rules pass locally
[ ] The code changed/added as part of this pull request has been covered with tests
[x] All tests related to the changed code pass in development

Code review

[ ]  This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
[ ] "Ready for review" label attached to the PR and reviewers mentioned in a comment
[ ] Changes have been reviewed by at least one other engineer
[ ] Issue from task tracker has a link to this pull request

@bishopb , thank you!


Ensure data chunks are properly released

An analysis of the webserver test logs shows that the warning about data chunks not being released is often present. It does not always happen on the same test, so some investigation is required to determine why release() is not called and why it appears to happen at different times during a run.

Location of warning message varies from run to run, not always related to the same test.

All these appear to be variations of unconsumed request body. The intermittency is caused by GC kicking in at different times, hence finalize() being called at very different moments in time.
One may argue this is the responsibility of the (SE) service to consume the request body in its entirety, but this cannot be expected for some of the cases (like, GET request with a body). Reproducer and a fix available.

After a discussion with @batsatt and some input from @olotenko, we have decided to keep the leak detection mechanism as is for now. Instead, we are going to explore the cost of this mechanism before deciding how to handle potential leaks differently. Incidentally, it is also possible to released unconsumed buffers by calling shutdown on a queue.


Quickfix for dependents with strict null checks

These changes will prevent downstream compiler errors in dependencies that use strict null checks, without having any effect on the current phosphor behavior.
Proposed as a quickfix since discussion in #150 suggests that full support for strict null checks are a bit away.

Not needed, as the issue can be work around with the compiler flag skipLibCheck.


Dock icons, not clear how to change them

Hi There,
Is it possible to explain that part in the readme file as well, like the other options ?
Thanks

You should be able to find a decent tutorial on how to update mac dock icons on the google :-)
https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=how+to+change+mac+dock+icons

Thanks @jamiewilson


Env backend support for keys with underscore

This patch allows underscores in paths, even when the "env" backend is used. See #531.
I attempted to add the key-value combinations for all the backend integration tests, but didn't actually run them yet myself besides for the "env" backend. The formats I saw didn't give me reason to suspect underscores aren't handled like other alphanumeric values in other backends, hope that's correct.

This is a better solution than this https://github.com/kelseyhightower/confd/pull/541
Nice work

So, there's still a "gotcha" with this solution when using prefix for loading a group of keys.
For example, this will fail:
basic.toml
[template]
mode = "0644"
src = "basic.conf.tmpl"
dest = "/tmp/confd-basic-test.conf"
keys = [
  "/database",
]

basic.conf.tmpl
host={{getv "/database/host"}}
port={{getv "/database/user_name"}}

Because everything after the prefix gets "cleaned", the result of GetValues will look like:
map[string]string{"/database/user/name":"something", "/database/host":"host"}

Maybe a minor problem, but worth pointing out.


Respect Snowflake Quoting

Problem
Quoting isn't respected when altering Snowflake tables with non-ansi-sql compliant names. This throws an error when syncing columns in incremental models. I didn't create a new issue since this already seems to recognize the problem
https://github.com/dbt-labs/dbt-core/issues/8080
I created a new PR since I messed up the commit history with an unverified Github Account. Original PR: https://github.com/dbt-labs/dbt-snowflake/pull/923
@VersusFacit

Solution
Instead of just using column.name for the alter statements I've added the adapter.quote to properly respect the quoting configuration in yaml-files
Tests
I haven't written any tests in this project before so any help would be appreciated. The below code would essentially be the test.
Configure project.yml to use quoting for identifiers
quoting:
  identifier: true

Create the table with CTAS
{{
    config(
        materialized="incremental",
        on_schema_change='sync_all_columns'
    )
}}
SELECT 'Hello world!' as original_column

Add new columns
{{
    config(
        materialized="incremental",
        on_schema_change='sync_all_columns'
    )
}}
SELECT 'Hello world!' as original_column
,'Greetings. I come from a non-ansi compliant planet' as "NoN AnSi CoMpLiAnT CoLuMn"
,'Greetings. I come from an ansi compliant planet' as ANSI_COMPLIANT_COLUMN

Checklist

[x] I have read the contributing guide and understand what's expected of me

[x] I have run this code in development and it appears to resolve the stated issue

[x] This PR includes tests, or tests are not required/relevant for this PR
It's a quite minor change.

[x] This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX
It does affect the adapter. I've had discussions with @ernestoongaro regarding the problem.

@ludwig-solita is there an open dbt-snowflake issue for this? If not can you please open one? thanks! I couldn't find one on #930 either

Quoting isn't respected when altering Snowflake tables with non-ansi-sql compliant names. This throws an error when syncing columns in incremental models. I didn't create a new issue since this already seems to recognize the problem

Found this one in the core repo. https://github.com/dbt-labs/dbt-core/issues/8080


Adds test for searching for a template and then opening the template from the recently used list

Why was this change made?
Fixes #2258.
Did not test the error when opening an invalid resource template. I think that should be a separate test. If agreed, I can make a ticket for that and work on it.
(Also added to this PR, I truncated the import statement on openAndCloseResource.test)

For testing the resource template tab and trying to open an invalid resource template and the error message, see #2421


[merlin] A syntax error occurred.

I get the following not-so-useful syntax errors:
[merlin] A syntax error occurred. Help to improve this message: https://github.com/facebook/reason/blob/master/src/README.md#add-a-menhir-error-message

Shouldn't this extension show the "improved message" ? Is there a setting I might have missed?

Thanks for the report. The generation of error messages about syntax are usually the responsibility of the command line tooling (parser/compiler).
Would you be willing to create an issue for this in the reason repository (along with a snippet of the code that is causing it)?

I will create, but just to clarify - this is what I am doing - for example putting an extra ; at the end of </div>;
let make = (_children) => {
  ...component,
  render: _self => <div> 5 </div>;
};

The generation of error messages about syntax are usually the responsibility of the command line tooling

Does this mean that the underlying reason for the syntax error can only be shown in the terminal?

Does this mean that the underlying reason for the syntax error can only be shown in the terminal?

It's not that the error messages can only be shown in the terminal but rather that the actual parser and the rest of the reason language tooling is not part of this extension. It's maintained as a separate project. What it's saying if you follow that link is that you can submit a patch to the reason repository to improve the error messages that the parser produces. If someone were to do that, the editor would show that improved message automatically.

Thanks, I opened a new issue in reason


vue-resize-sensor breaks Draggable for PDF

You use Vue Resize Sensor to watch for sizing. This is generated all the time, and there is no prop to disable it.
Issue on vue-resize-sensor: https://github.com/FranckFreiburger/vue-resize-sensor/issues/8
Fiddle: https://jsfiddle.net/FoomFries/typnxbv6/4/

Maybe I can use resize-observer-polyfill instead


Scrolling fast on Android makes DOM content disappear

Version
2.5.2
Reproduction link
https://bumpercommander.com/p/iron-cross-hd-front-bumper-push-bar/
Steps to reproduce
This only happens on Android devices and its intermittent. Ive also tested in Browserstack and I couldn't reproduce, it was only happening on actual android devices. Once you load that page, if you scroll up and down really fast sometime pieces of the DOM or images disappear. If you scroll back up and then back down to where you just were the content might be there now.
What is expected?
The DOM you see should be there constantly.
What is actually happening?
The DOM is there but android isn't rendering it for some reason.

We have isolated it to be an Android OS issue only (Not having the problems on iOS or Desktop devices). We also tried to upgrade to the latest version of Vue, and removed 3rd party dependencies. At this point I don't know if its a Vue problem or something else but I figured I would submit a ticket so see if anyone else has reported an issue like this before.

This is probably some delay in the rendering engine of the browser and definitely not related to Vue as it doesn't remove content from the page when you scroll down

@posva Thats what i figured too, just wanted to make sure I wasn't missing something. Thank you for the response


Cannot be multiplied

Let's say it's instagram images, and I want each image carries a single bottom-sheet for image-optional...
i ve tried with action-sheet for iOS device, and now im looking for Android-native-feeling but this module isnt working for duplicating.

@dellwatson It's quite simple just by changing the ref name.
Example:
`

<Button
title="OPEN BOTTOM SHEET"
onPress={() => {
this.RBSheet.open();
}}
/>
    <Button
      title="OPEN BOTTOM SHEET 2"
      onPress={() => {
        this.RBSheet2.open();
      }}
    />

    <RBSheet
      ref={ref => {
        this.RBSheet = ref;
      }}>
      <YourOwnComponent />
    </RBSheet>

    <RBSheet
      ref={ref => {
        this.RBSheet2 = ref;
      }}>
      <YourOwnComponent />
    </RBSheet>
  </View>

`

thanks but this is static, i want to it more dynamic.
let's say i have random amount of images, and each of them require this bottom sheet,
so I mnot sure how to call all of them
first I iterate the images,
//main_render
<View>
    images.map(item => this._renderItem(item, index))
<View>

//render_item
_renderItem= (item, index)=> {
...,
<Button title=`OPEN BOTTOM SHEET-${index}`  //renaming the title
          onPress={() => {   this.RBSheet.open()  }}  />   **//cant rename the func here**

        <RBSheet
          ref={ref => {
            this.RBSheet = ref;
          }}>
          <YourOwnComponent />
        </RBSheet>
}

I thought it would work, without renaming them, but turns out it doesnt, because well the ref is still the same and imnot sure how to make it more dynamic.

@dellwatson
  _renderItem = (item, index) => (
      <View>
        <Button title=`OPEN BOTTOM SHEET-${index}` onPress={() => this[RBSheet + index].open()} />
        <RBSheet
          ref={ref => {
            this[RBSheet + index] = ref;
          }}>
          <YourOwnComponent />
        </RBSheet>
      </View>
    );

Happy coding !

@nysamnang Thanks, did you know how to do this unsing a function component?


Self Update Functionality

CLI should have a self update feature to update the CLI to the newest version.

Hey @umutphp, I'd be happy to take this one on. Would you please assign it to me?

Hi @jesselang,
The task is yours now.


fix enterprise installation docs

install WGE CLI example use latest version

Thanks @juozasg, good find! I'm led to believe this should be covered by our automation but wasn't for some reason.


fix: prompt editor behavior is more predictable

Allow Shift+Enter for new lines in non-editor prompt
Switches from full-screen editor to default size after submission
Focuses on prompt field after completion

:tada: This PR is included in version 0.3.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


ReadFrom Feature

Feature Request
my redis have two far away computer room，and  topology is：
room1 ： master, slave1
room2:  slave2
how the room2  program exclude slave1(redis).  can RedisNodeDescription add the ping info message ，then i can use ping info
to exclude the slave nodes which The delay  is large .

I have trouble understanding what you are actually asking for. If you want to exclude particular nodes from a ReadFrom strategy, then implement such a feature yourself by subclassing ReadFrom and implementing select(…).

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.


How to set a default value for a property.

Discussed in https://github.com/spatie/laravel-data/discussions/416

Originally posted by jonothedev April 16, 2023
How can we set a default value for a property? For example, if i were to create a data object, but set a value for a property from two other properties..
public string $first_name
public string $last_name

Then set a default value for username
$this->username = $this->first_name . '_' . $this->last_name;
Is this possible?

This is not a bug, so I'm gonna close this. We'll continue in the discussion.


Exporting C# project via cmdline crashes

Godot version: 3.1.1.stable.mono.official
OS/device including version: Linux (Manjaro)
Issue description:
I have a project that exports/runs fine. When I export it via the cmdline, the export fails with a myriad of errors; these are reproducible with a "hello world" C#/Mono project. The resulting directory does not contain any of the .NET DLLs, so running the exported app crashes.
Steps to reproduce:

Create a new Mono/C# project
Create a scene with a .cs file
Create an export template and export it
Try to export it via the cmdline.

With my "Test" project (attached), I export it with this command: godot-mono --export Linux/X11 /tmp/Test/out
Export logs:
[nightblade@manjaro Test]$ godot-mono --export Linux/X11 /tmp/Test/out
OpenGL ES 3.0 Renderer: Mesa DRI Intel(R) Sandybridge Desktop
Mono: Logfile is: /home/nightblade/.local/share/godot/mono/mono_logs/2019_09_01 23.00.00 (8580).txt
ERROR: instance: Class 'EditorSettings' can only be instantiated by editor.
   At: core/class_db.cpp:523.
ERROR: poll: /home/nightblade/.config/godot/editor_settings-3.tres:3 - Parse Error: Can't create sub resource of type: EditorSettings
   At: scene/resources/resource_format_text.cpp:561.
ERROR: load: Condition ' err != OK ' is true. returned: RES()
   At: core/io/resource_loader.cpp:208.
ERROR: _load: Failed loading resource: /home/nightblade/.config/godot/editor_settings-3.tres
   At: core/io/resource_loader.cpp:285.
WARNING: create: Could not open config file.
   At: editor/editor_settings.cpp:871.
mono_copy_prebuilt_api_assembly: begin: Copying prebuilt GodotSharp assembly... steps: 1
	mono_copy_prebuilt_api_assembly: step 0: Copying GodotSharp assembly
mono_copy_prebuilt_api_assembly: end
mono_copy_prebuilt_api_assembly: begin: Copying prebuilt GodotSharpEditor assembly... steps: 1
	mono_copy_prebuilt_api_assembly: step 0: Copying GodotSharpEditor assembly
mono_copy_prebuilt_api_assembly: end
mono_project_debug_build: begin: Building project solution... steps: 1
	mono_project_debug_build: step 0: Building project solution
mono_project_debug_build: end
ERROR: copy: Failed to open /tmp/Test/out
   At: core/os/dir_access.cpp:309.
ERROR: _fs_changed: Project export failed with error code 12.
   At: editor/editor_node.cpp:495.
debugger-agent: Unable to listen on 11
WARNING: cleanup: ObjectDB Instances still exist!
   At: core/object.cpp:2095.
ERROR: cleanup: There are still MemoryPool allocs in use at exit!
   At: core/pool_vector.cpp:70.

Minimal reproduction project:
Test.zip
NB: on Linux, I have this in /tmp/Test and an empty /tmp/Test/out directory.

The export command expects a file path, not dir.

@akien-mga We could display an error message if a path to a directory is passed instead of a file (existing or not).

When I export a file-path (eg. /tmp/LolWut.x86_64), I get a different stack, including a core dump (it crashed?). Unlike the previously-reported error, I don't even get an executable output this time.
Stack from the command-line:
OpenGL ES 3.0 Renderer: Mesa DRI Intel(R) Sandybridge Desktop
Mono: Logfile is: /home/nightblade/.local/share/godot/mono/mono_logs/2019_09_02 10.58.41 (11204).txt
ERROR: instance: Class 'EditorSettings' can only be instantiated by editor.
   At: core/class_db.cpp:523.
ERROR: poll: /home/nightblade/.config/godot/editor_settings-3.tres:3 - Parse Error: Can't create sub resource of type: EditorSettings
   At: scene/resources/resource_format_text.cpp:561.
ERROR: load: Condition ' err != OK ' is true. returned: RES()
   At: core/io/resource_loader.cpp:208.
ERROR: _load: Failed loading resource: /home/nightblade/.config/godot/editor_settings-3.tres
   At: core/io/resource_loader.cpp:285.
WARNING: create: Could not open config file.
   At: editor/editor_settings.cpp:871.
ERROR: _fs_changed: Unknown export preset: Linux/X11
   At: editor/editor_node.cpp:474.
ERROR: mono_log_callback: Mono: FATAL ERROR, ABORTING! Logfile: /home/nightblade/.local/share/godot/mono/mono_logs/2019_09_02 10.58.41 (11204).txt

   At: modules/mono/mono_gd/gd_mono_log.cpp:74.
=================================================================
        Native Crash Reporting
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
/proc/self/maps:
00400000-042a0000 r-xp 00000000 08:06 5508956                            /opt/godot-mono-bin/godot/Godot_v3.1.1-stable_mono_x11.64
0449f000-0456e000 r--p 03e9f000 08:06 5508956                            /opt/godot-mono-bin/godot/Godot_v3.1.1-stable_mono_x11.64
0456e000-04588000 rw-p 03f6e000 08:06 5508956                            /opt/godot-mono-bin/godot/Godot_v3.1.1-stable_mono_x11.64
04588000-045ba000 rw-p 00000000 00:00 0
04bc1000-0ac0c000 rw-p 00000000 00:00 0                                  [heap]
40267000-40277000 rwxp 00000000 00:00 0
40359000-40369000 rwxp 00000000 00:00 0
406e6000-406f6000 rwxp 00000000 00:00 0
4078c000-4079c000 rwxp 00000000 00:00 0
7f301fc8b000-7f301fc8f000 rw-p 00000000 00:00 0
7f301fc8f000-7f301fc93000 rw-s 00000000 00:2c 4558                       /i915 (deleted)
7f301fc93000-7f301fc98000 rw-s 00000000 00:2c 4557                       /i915 (deleted)
7f301fc98000-7f301fca8000 rw-s 00000000 00:2c 4555                       /i915 (deleted)
7f301fca8000-7f301fcac000 rw-s 00000000 00:2c 4554                       /i915 (deleted)
7f301fcac000-7f301fcb1000 rw-s 00000000 00:2c 4553                       /i915 (deleted)
7f301fcb1000-7f301fcc1000 rw-s 00000000 00:2c 4549                       /i915 (deleted)
7f301fcc1000-7f301fcc5000 rw-s 00000000 00:2c 4548                       /i915 (deleted)
7f301fcc5000-7f301fcca000 rw-s 00000000 00:2c 4547                       /i915 (deleted)
7f301fcca000-7f301fcda000 rw-s 00000000 00:2c 4546                       /i915 (deleted)
7f301fcda000-7f301fcde000 rw-s 00000000 00:2c 4545                       /i915 (deleted)
7f301fcde000-7f301fce3000 rw-s 00000000 00:2c 4544                       /i915 (deleted)
7f301fce3000-7f301fcf3000 rw-s 00000000 00:2c 4543                       /i915 (deleted)
7f301fcf3000-7f301fcf7000 rw-s 00000000 00:2c 4542                       /i915 (deleted)
7f301fcf7000-7f301fcfc000 rw-s 00000000 00:2c 4541                       /i915 (deleted)
7f301fcfc000-7f301fd0c000 rw-s 00000000 00:2c 4540                       /i915 (deleted)

=================================================================
        Basic Fault Adddress Reporting
=================================================================
Memory around native instruction pointer (0x7f3061d80755):0x7f3061d80745  d2 4c 89 ce bf 02 00 00 00 b8 0e 00 00 00 0f 05  .L..............
0x7f3061d80755  48 8b 84 24 08 01 00 00 64 48 33 04 25 28 00 00  H..$....dH3.%(..
0x7f3061d80765  00 75 24 44 89 c0 48 81 c4 18 01 00 00 c3 0f 1f  .u$D..H.........
0x7f3061d80775  44 00 00 48 8b 15 f1 16 18 00 f7 d8 41 b8 ff ff  D..H........A...

=================================================================
        Native stacktrace:
=================================================================
        0xc2b075 - godot-mono : (null)
        0xc1ea09 - godot-mono : (null)
        0x7f3062072d00 - /usr/lib/libpthread.so.0 : (null)
        0x7f3061d80755 - /usr/lib/libc.so.6 : gsignal
        0x7f3061d6b851 - /usr/lib/libc.so.6 : abort
        0xe82914 - godot-mono : (null)
        0xe2d1ae - godot-mono : (null)
        0xe2d6b0 - godot-mono : monoeg_assertion_message
        0xc9d987 - godot-mono : (null)
        0xd58115 - godot-mono : (null)
        0xd90dff - godot-mono : (null)
        0xd97eb1 - godot-mono : mono_thread_attach
        0x11718e9 - godot-mono : _ZN32ResourceFormatLoaderCSharpScript4loadERK6StringS2_P5Error
        0x2d049fe - godot-mono : _ZN14ResourceLoader5_loadERK6StringS2_S2_bP5Error
        0x2d04ff2 - godot-mono : _ZN14ResourceLoader4loadERK6StringS2_bP5Error
        0x174277e - godot-mono : _ZNK30EditorResourcePreviewGenerator18generate_from_pathERK6String7Vector2
        0x1740747 - godot-mono : _ZN21EditorResourcePreview17_generate_previewER3RefI12ImageTextureES3_RKNS_9QueueItemERK6String
        0x174164e - godot-mono : _ZN21EditorResourcePreview7_threadEv
        0x14940c5 - godot-mono : _ZN11ThreadPosix15thread_callbackEPv
        0x7f306206857f - /usr/lib/libpthread.so.0 : (null)
        0x7f3061e420e3 - /usr/lib/libc.so.6 : clone

=================================================================
        Telemetry Dumper:
=================================================================
Pkilling 0x7f305d307700 from 0x7f30369e3700
Pkilling 0x7f305c3fe700 from 0x7f30369e3700
Pkilling 0x7f30603fd840 from 0x7f30369e3700
Entering thread summarizer pause from 0x7f30369e3700
Finished thread summarizer pause from 0x7f30369e3700.
debugger-agent: Unable to listen on 24

Waiting for dumping threads to resume

Debug info from gdb:

=================================================================
        External Debugger Dump:
=================================================================
[New LWP 11205]
[New LWP 11210]
[New LWP 11211]
[New LWP 11212]
[New LWP 11213]
[New LWP 11214]
[New LWP 11215]
[New LWP 11218]
[New LWP 11219]
[New LWP 11221]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
0x00007f3062072145 in nanosleep () from /usr/lib/libpthread.so.0
  Id   Target Id                                          Frame
* 1    Thread 0x7f30603fd840 (LWP 11204) "godot-mono"     0x00007f3062072145 in nanosleep () from /usr/lib/libpthread.so.0
  2    Thread 0x7f305fc1e700 (LWP 11205) "godot-mono"     0x00007f3062070d16 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
  3    Thread 0x7f305e3fc700 (LWP 11210) "godot-m:disk$0" 0x00007f306206e415 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
  4    Thread 0x7f305dae2700 (LWP 11211) "godot-mono"     0x00007f3062070d16 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
  5    Thread 0x7f305d75e700 (LWP 11212) "godot-mono"     0x00007f3062072145 in nanosleep () from /usr/lib/libpthread.so.0
  6    Thread 0x7f305d71d700 (LWP 11213) "godot-mono"     0x00007f3061e0f36d in nanosleep () from /usr/lib/libc.so.6
  7    Thread 0x7f305cbff700 (LWP 11214) "SGen worker"    0x00007f306206e415 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
  8    Thread 0x7f305d307700 (LWP 11215) "Finalizer"      0x00007f3062070d16 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
  9    Thread 0x7f305d106700 (LWP 11218) "godot-mono"     0x00007f3062072145 in nanosleep () from /usr/lib/libpthread.so.0
  10   Thread 0x7f3036a98700 (LWP 11219) "godot-mono"     0x00007f3062072145 in nanosleep () from /usr/lib/libpthread.so.0
  11   Thread 0x7f30369e3700 (LWP 11221) "godot-mono"     0x00007f3062072636 in waitpid () from /usr/lib/libpthread.so.0

Thread 11 (Thread 0x7f30369e3700 (LWP 11221)):
#0  0x00007f3062072636 in waitpid () from /usr/lib/libpthread.so.0
#1  0x0000000000c2b1da in ?? ()
#2  0x0000000000c1ea09 in ?? ()
#3  <signal handler called>
#4  0x00007f3061d80755 in raise () from /usr/lib/libc.so.6
#5  0x00007f3061d6b851 in abort () from /usr/lib/libc.so.6
#6  0x0000000000e82914 in ?? ()
#7  0x00007f30369e27e0 in ?? ()
#8  0x00007f3024008db0 in ?? ()
#9  0x00007f302400c2d0 in ?? ()
#10 0x00007f3024022b70 in ?? ()
#11 0x00007f302400bcd0 in ?? ()
#12 0x00000000058abe80 in ?? ()
#13 0x00007f305d5b74a0 in ?? ()
#14 0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f3036a98700 (LWP 11219)):
#0  0x00007f3062072145 in nanosleep () from /usr/lib/libpthread.so.0
#1  0x0000000002dff7db in ?? ()
#2  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f305d106700 (LWP 11218)):
#0  0x00007f3062072145 in nanosleep () from /usr/lib/libpthread.so.0
#1  0x0000000002dff7db in ?? ()
#2  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f305d307700 (LWP 11215)):
#0  0x00007f3062070d16 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
#1  0x00007f3062070e18 in __new_sem_wait_slow.constprop.0 () from /usr/lib/libpthread.so.0
#2  0x0000000000ce7ff4 in ?? ()
#3  0x0000000000d9b70b in ?? ()
#4  0x00007f306206857f in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007f3061e420e3 in clone () from /usr/lib/libc.so.6

Thread 7 (Thread 0x7f305cbff700 (LWP 11214)):
#0  0x00007f306206e415 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x0000000000e06cf3 in ?? ()
#2  0x00007f306206857f in start_thread () from /usr/lib/libpthread.so.0
#3  0x00007f3061e420e3 in clone () from /usr/lib/libc.so.6

Thread 6 (Thread 0x7f305d71d700 (LWP 11213)):
#0  0x00007f3061e0f36d in nanosleep () from /usr/lib/libc.so.6
#1  0x00007f3061e3a6e9 in usleep () from /usr/lib/libc.so.6
#2  0x00000000019e8872 in JoypadLinux::monitor_joypads() ()
#3  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f305d75e700 (LWP 11212)):
#0  0x00007f3062072145 in nanosleep () from /usr/lib/libpthread.so.0
#1  0x0000000002dff7db in ?? ()
#2  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f305dae2700 (LWP 11211)):
#0  0x00007f3062070d16 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
#1  0x00007f3062070e18 in __new_sem_wait_slow.constprop.0 () from /usr/lib/libpthread.so.0
#2  0x000000000141af3d in ?? ()
#3  0x00007f305dae3020 in ?? ()
#4  0x0000000002701eec in VisualServerScene::_gi_probe_bake_thread() ()
#5  0x0000000000000008 in ?? ()
#6  0x0000000004feead0 in ?? ()
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f305e3fc700 (LWP 11210)):
#0  0x00007f306206e415 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f305eb1ee9c in ?? () from /usr/lib/dri/i965_dri.so
#2  0x00007f305eb1ea98 in ?? () from /usr/lib/dri/i965_dri.so
#3  0x00007f306206857f in start_thread () from /usr/lib/libpthread.so.0
#4  0x00007f3061e420e3 in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7f305fc1e700 (LWP 11205)):
#0  0x00007f3062070d16 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
#1  0x00007f3062070e18 in __new_sem_wait_slow.constprop.0 () from /usr/lib/libpthread.so.0
#2  0x000000000141af3d in ?? ()
#3  0x0000000004c6a1d0 in ?? ()
#4  0x0000000002ba20f4 in _IP_ResolverPrivate::_thread_function(void*) ()
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f30603fd840 (LWP 11204)):
#0  0x00007f3062072145 in nanosleep () from /usr/lib/libpthread.so.0
#1  0x0000000002dff7db in ?? ()
#2  0x0000000000000000 in ?? ()
[Inferior 1 (process 11204) detached]

=================================================================
        Managed Stacktrace:
=================================================================
=================================================================
Aborted (core dumped)

The referenced mono log says:
Config attempting to parse: '/opt/godot-mono-bin/godot/GodotSharp/Mono/etc/mono/config'. (in domain Mono, info)
Config attempting to parse: '/home/nightblade/.mono/config'. (in domain Mono, info)
Image addref mscorlib[0x58ba480] (asmctx DEFAULT) -> /opt/godot-mono-bin/godot/GodotSharp/Mono/lib/mono/4.5/mscorlib.dll[0x58b8f40]: 2 (in domain Mono, info)
Prepared to set up assembly 'mscorlib' (/opt/godot-mono-bin/godot/GodotSharp/Mono/lib/mono/4.5/mscorlib.dll) (in domain Mono, info)
AOT: image '/opt/godot-mono-bin/godot/GodotSharp/Mono/lib/mono/4.5/mscorlib.dll.so' not found: /opt/godot-mono-bin/godot/GodotSharp/Mono/lib/mono/4.5/mscorlib.dll.so: cannot open shared object file: No such file or directory (in domain Mono, info)
AOT: image '/opt/godot-mono-bin/godot/GodotSharp/Mono/lib/mono/aot-cache/amd64/mscorlib.dll.so' not found: /opt/godot-mono-bin/godot/GodotSharp/Mono/lib/mono/aot-cache/amd64/mscorlib.dll.so: cannot open shared object file: No such file or directory (in domain Mono, info)
Assembly mscorlib[0x58ba480] added to domain GodotEngine.RootDomain, ref_count=1 (in domain Mono, info)
Assembly mscorlib[0x58ba480] added to domain GodotEngine.ToolsDomain, ref_count=2 (in domain Mono, info)
Image addref GodotSharpTools[0x5937ca0] (asmctx DEFAULT) -> /opt/godot-mono-bin/godot/GodotSharp/Tools/GodotSharpTools.dll[0x5939850]: 2 (in domain Mono, info)
Prepared to set up assembly 'GodotSharpTools' (/opt/godot-mono-bin/godot/GodotSharp/Tools/GodotSharpTools.dll) (in domain Mono, info)
Assembly GodotSharpTools[0x5937ca0] added to domain GodotEngine.ToolsDomain, ref_count=1 (in domain Mono, info)
Assembly mscorlib[0x58ba480] added to domain GodotEngine.ScriptsDomain, ref_count=3 (in domain Mono, info)
* Assertion at debugger-agent.c:3932, condition `!tls' not met
 (in domain , error)

I checked, and sure enough, /opt/godot-mono-bin/godot/GodotSharp/Mono/lib/mono/4.5/mscorlib.dll.so doesn't exist. I have an mscorlib.dll file, but no .so files.
Am I doing something wrong / did I somehow setup Godot incorrectly?

   At: core/object.cpp:2076.
ERROR: cleanup: There are still MemoryPool allocs in use at exit!
   At: core/pool_vector.cpp:69.

I can't confirm that this works on my distro - when I download 3.2 Beta 5, create a new project, and try to run it (with or without any scripts - C# or GDscript), I get an opaque "The build method threw an exception" error and clicking [View log] does nothing.
@akien-mga should I open a different/separate defect for this?

That's a different issue. Probably happens because you did not build any assembly so there's nothing for mono to export.

I am not sure I understand what you mean - I am not exporting. My workflow is:

Install 3.2 beta 5
Create a new project (in  /tmp)
Create a new scene with a Node2D as the root
Save everything and run
Run fails with Failed to build project solution

I can't build an empty project. You're right, it's probably a config issue. I am sure I have MSBuild and friends (I used this machine for .NET Core development for a few months).
Since the View Log button doesn't work, how can I figure out what the issue is?

This issue is called "Exporting C# project via cmdline crashes"... so this is fixed.
What you're describing is completely unrelated to the original issue.


Axis Error

What is wrong with my code?
I am using smooth windowing for autoencoder
test_img = cv2.imread("a.jpg")
test_img = cv2.resize(test_img, (768, 1024))
test_img = np.array(test_img)
test_img = test_img.astype('float32')
test_img /= 255
test_img.shape
(1024, 768, 3)
predictions_smooth = predict_img_with_smooth_windowing(
test_img,
window_size=64,
subdivisions=2,  # Minimal amount of overlap for windowing. Must be an even number.
nb_classes=3,
pred_func=(
lambda img_batch_subdiv: autoencoder.predict((img_batch_subdiv))
)
)
0%|          | 0/8 [00:00<?, ?it/s]

AxisError                                 Traceback (most recent call last)
 in ()
5     nb_classes=3,
6     pred_func=(
----> 7         lambda img_batch_subdiv: autoencoder.predict((img_batch_subdiv))
8     )
9 )
5 frames
/content/smooth_tiled_predictions.py in predict_img_with_smooth_windowing(input_img, window_size, subdivisions, nb_classes, pred_func)
251     # possible to fake a full-size window which would in fact just have a narrow
252     # non-zero dommain. This may require to augment the subdivisions argument
--> 253     # to 4 rather than 2.
254
255     res = []
/content/smooth_tiled_predictions.py in _windowed_subdivs(padded_img, window_size, subdivisions, nb_classes, pred_func)
163             nb_patches_along_Y,
164             patches_resolution_along_X,
--> 165             patches_resolution_along_Y,
166             nb_output_channels
167         )
/content/smooth_tiled_predictions.py in _window_2D(window_size, power)
57     """
58     Make a 1D window function, then infer and return a 2D window function.
---> 59     Done with an augmentation, and self multiplication with its transpose.
60     Could be generalized to more dimensions.
61     """
<array_function internals> in expand_dims(*args, **kwargs)
/usr/local/lib/python3.7/dist-packages/numpy/lib/shape_base.py in expand_dims(a, axis)
595
596     out_ndim = len(axis) + a.ndim
--> 597     axis = normalize_axis_tuple(axis, out_ndim)
598
599     shape_it = iter(a.shape)
/usr/local/lib/python3.7/dist-packages/numpy/core/numeric.py in normalize_axis_tuple(axis, ndim, argname, allow_duplicate)
1356             pass
1357     # Going via an iterator directly is slower than via list comprehension.
-> 1358     axis = tuple([normalize_axis_index(ax, ndim, argname) for ax in axis])
1359     if not allow_duplicate and len(set(axis)) != len(axis):
1360         if argname:
/usr/local/lib/python3.7/dist-packages/numpy/core/numeric.py in (.0)
1356             pass
1357     # Going via an iterator directly is slower than via list comprehension.
-> 1358     axis = tuple([normalize_axis_index(ax, ndim, argname) for ax in axis])
1359     if not allow_duplicate and len(set(axis)) != len(axis):
1360         if argname:
AxisError: axis 3 is out of bounds for array of dimension 2

@Pranjal-Jadhav I am getting a similar error with the expand dims function, were you able to fix it?

Could be related to this:
https://github.com/Vooban/Smoothly-Blend-Image-Patches/pull/6/files

This solved my issue (I changed 'np.expand_dims' function input in the 'get_dummy_img' function, as well as the modifications highlighted by @guillaume-chevalier.
I've copied the full content of my modified 'smooth_tiled_predictions.py' here (it runs for me without any errors)
MIT License
Copyright (c) 2017 Vooban Inc.
Coded by: Guillaume Chevalier
Source to original code and license:
https://github.com/Vooban/Smoothly-Blend-Image-Patches
https://github.com/Vooban/Smoothly-Blend-Image-Patches/blob/master/LICENSE
"""Do smooth predictions on an image from tiled prediction patches."""
import numpy as np
import scipy.signal
from tqdm import tqdm
import gc
if name == 'main':
import matplotlib.pyplot as plt
PLOT_PROGRESS = True
# See end of file for the rest of the main.
else:
PLOT_PROGRESS = False
def _spline_window(window_size, power=2):
"""
Squared spline (power=2) window function:
https://www.wolframalpha.com/input/?i=y%3Dx**2,+y%3D-(x-2)**2+%2B2,+y%3D(x-4)**2,+from+y+%3D+0+to+2
"""
intersection = int(window_size/4)
wind_outer = (abs(2*(scipy.signal.triang(window_size))) ** power)/2
wind_outer[intersection:-intersection] = 0
wind_inner = 1 - (abs(2*(scipy.signal.triang(window_size) - 1)) ** power)/2
wind_inner[:intersection] = 0
wind_inner[-intersection:] = 0

wind = wind_inner + wind_outer
wind = wind / np.average(wind)
return wind

cached_2d_windows = dict()
def window_2D(window_size, power=2):
"""
Make a 1D window function, then infer and return a 2D window function.
Done with an augmentation, and self multiplication with its transpose.
Could be generalized to more dimensions.
"""
# Memoization
global cached_2d_windows
key = "{}{}".format(window_size, power)
if key in cached_2d_windows:
wind = cached_2d_windows[key]
else:
wind = _spline_window(window_size, power)
wind = np.expand_dims(np.expand_dims(wind, 1), 1)
wind = wind * wind.transpose(1, 0, 2)
if PLOT_PROGRESS:
# For demo purpose, let's look once at the window:
plt.imshow(wind[:, :, 0], cmap="viridis")
plt.title("2D Windowing Function for a Smooth Blending of "
"Overlapping Patches")
plt.show()
cached_2d_windows[key] = wind
return wind
def _pad_img(img, window_size, subdivisions):
"""
Add borders to img for a "valid" border pattern according to "window_size" and
"subdivisions".
Image is an np array of shape (x, y, nb_channels).
"""
aug = int(round(window_size * (1 - 1.0/subdivisions)))
more_borders = ((aug, aug), (aug, aug), (0, 0))
ret = np.pad(img, pad_width=more_borders, mode='reflect')
# gc.collect()
if PLOT_PROGRESS:
    # For demo purpose, let's look once at the window:
    plt.imshow(ret)
    plt.title("Padded Image for Using Tiled Prediction Patches\n"
              "(notice the reflection effect on the padded borders)")
    plt.show()
return ret

def _unpad_img(padded_img, window_size, subdivisions):
"""
Undo what's done in the _pad_img function.
Image is an np array of shape (x, y, nb_channels).
"""
aug = int(round(window_size * (1 - 1.0/subdivisions)))
ret = padded_img[
aug:-aug,
aug:-aug,
:
]
# gc.collect()
return ret
def _rotate_mirror_do(im):
"""
Duplicate an np array (image) of shape (x, y, nb_channels) 8 times, in order
to have all the possible rotations and mirrors of that image that fits the
possible 90 degrees rotations.
It is the D_4 (D4) Dihedral group:
https://en.wikipedia.org/wiki/Dihedral_group
"""
mirrs = []
mirrs.append(np.array(im))
mirrs.append(np.rot90(np.array(im), axes=(0, 1), k=1))
mirrs.append(np.rot90(np.array(im), axes=(0, 1), k=2))
mirrs.append(np.rot90(np.array(im), axes=(0, 1), k=3))
im = np.array(im)[:, ::-1]
mirrs.append(np.array(im))
mirrs.append(np.rot90(np.array(im), axes=(0, 1), k=1))
mirrs.append(np.rot90(np.array(im), axes=(0, 1), k=2))
mirrs.append(np.rot90(np.array(im), axes=(0, 1), k=3))
return mirrs

def _rotate_mirror_undo(im_mirrs):
"""
merges a list of 8 np arrays (images) of shape (x, y, nb_channels) generated
from the _rotate_mirror_do function. Each images might have changed and
merging them implies to rotated them back in order and average things out.
It is the D_4 (D4) Dihedral group:
https://en.wikipedia.org/wiki/Dihedral_group
"""
origs = []
origs.append(np.array(im_mirrs[0]))
origs.append(np.rot90(np.array(im_mirrs[1]), axes=(0, 1), k=3))
origs.append(np.rot90(np.array(im_mirrs[2]), axes=(0, 1), k=2))
origs.append(np.rot90(np.array(im_mirrs[3]), axes=(0, 1), k=1))
origs.append(np.array(im_mirrs[4])[:, ::-1])
origs.append(np.rot90(np.array(im_mirrs[5]), axes=(0, 1), k=3)[:, ::-1])
origs.append(np.rot90(np.array(im_mirrs[6]), axes=(0, 1), k=2)[:, ::-1])
origs.append(np.rot90(np.array(im_mirrs[7]), axes=(0, 1), k=1)[:, ::-1])
return np.mean(origs, axis=0)

def _windowed_subdivs(padded_img, window_size, subdivisions, nb_classes, pred_func):
"""
Create tiled overlapping patches.
Returns:
    5D numpy array of shape = (
        nb_patches_along_X,
        nb_patches_along_Y,
        patches_resolution_along_X,
        patches_resolution_along_Y,
        nb_output_channels
    )

Note:
    patches_resolution_along_X == patches_resolution_along_Y == window_size
"""
WINDOW_SPLINE_2D = _window_2D(window_size=window_size, power=2)

step = int(window_size/subdivisions)
padx_len = padded_img.shape[0]
pady_len = padded_img.shape[1]
subdivs = []

for i in range(0, padx_len-window_size+1, step):
    subdivs.append([])
    for j in range(0, pady_len-window_size+1, step):
        patch = padded_img[i:i+window_size, j:j+window_size, :]
        subdivs[-1].append(patch)

# Here, `gc.collect()` clears RAM between operations.
# It should run faster if they are removed, if enough memory is available.
gc.collect()
subdivs = np.array(subdivs)
gc.collect()
a, b, c, d, e = subdivs.shape
subdivs = subdivs.reshape(a * b, c, d, e)
gc.collect()

subdivs = pred_func(subdivs)
gc.collect()
subdivs = np.array([patch * WINDOW_SPLINE_2D for patch in subdivs])
gc.collect()

# Such 5D array:
subdivs = subdivs.reshape(a, b, c, d, nb_classes)
gc.collect()

return subdivs

def _recreate_from_subdivs(subdivs, window_size, subdivisions, padded_out_shape):
"""
Merge tiled overlapping patches smoothly.
"""
step = int(window_size/subdivisions)
padx_len = padded_out_shape[0]
pady_len = padded_out_shape[1]
y = np.zeros(padded_out_shape)

a = 0
for i in range(0, padx_len-window_size+1, step):
    b = 0
    for j in range(0, pady_len-window_size+1, step):
        windowed_patch = subdivs[a, b]
        y[i:i+window_size, j:j+window_size] = y[i:i+window_size, j:j+window_size] + windowed_patch
        b += 1
    a += 1
return y / (subdivisions ** 2)

def predict_img_with_smooth_windowing(input_img, window_size, subdivisions, nb_classes, pred_func):
"""
Apply the pred_func function to square patches of the image, and overlap
the predictions to merge them smoothly.
See 6th, 7th and 8th idea here:
http://blog.kaggle.com/2017/05/09/dstl-satellite-imagery-competition-3rd-place-winners-interview-vladimir-sergey/
"""
pad = _pad_img(input_img, window_size, subdivisions)
pads = _rotate_mirror_do(pad)

# Note that the implementation could be more memory-efficient by merging
# the behavior of `_windowed_subdivs` and `_recreate_from_subdivs` into
# one loop doing in-place assignments to the new image matrix, rather than
# using a temporary 5D array.

# It would also be possible to allow different (and impure) window functions
# that might not tile well. Adding their weighting to another matrix could
# be done to later normalize the predictions correctly by dividing the whole
# reconstructed thing by this matrix of weightings - to normalize things
# back from an impure windowing function that would have badly weighted
# windows.

# For example, since the U-net of Kaggle's DSTL satellite imagery feature
# prediction challenge's 3rd place winners use a different window size for
# the input and output of the neural net's patches predictions, it would be
# possible to fake a full-size window which would in fact just have a narrow
# non-zero dommain. This may require to augment the `subdivisions` argument
# to 4 rather than 2.

res = []
for pad in tqdm(pads):
    # For every rotation:
    sd = _windowed_subdivs(pad, window_size, subdivisions, nb_classes, pred_func)
    one_padded_result = _recreate_from_subdivs(
        sd, window_size, subdivisions,
        padded_out_shape=list(pad.shape[:-1])+[nb_classes])

    res.append(one_padded_result)

# Merge after rotations:
padded_results = _rotate_mirror_undo(res)

prd = _unpad_img(padded_results, window_size, subdivisions)

prd = prd[:input_img.shape[0], :input_img.shape[1], :]

if PLOT_PROGRESS:
    plt.imshow(prd)
    plt.title("Smoothly Merged Patches that were Tiled Tighter")
    plt.show()
return prd

def cheap_tiling_prediction(img, window_size, nb_classes, pred_func):
"""
Does predictions on an image without tiling.
"""
original_shape = img.shape
full_border = img.shape[0] + (window_size - (img.shape[0] % window_size))
prd = np.zeros((full_border, full_border, nb_classes))
tmp = np.zeros((full_border, full_border, original_shape[-1]))
tmp[:original_shape[0], :original_shape[1], :] = img
img = tmp
print(img.shape, tmp.shape, prd.shape)
for i in tqdm(range(0, prd.shape[0], window_size)):
for j in range(0, prd.shape[0], window_size):
im = img[i:i+window_size, j:j+window_size]
prd[i:i+window_size, j:j+window_size] = pred_func([im])
prd = prd[:original_shape[0], :original_shape[1]]
if PLOT_PROGRESS:
plt.imshow(prd)
plt.title("Cheaply Merged Patches")
plt.show()
return prd
def get_dummy_img(xy_size=128, nb_channels=3):
"""
Create a random image with different luminosity in the corners.
Returns an array of shape (xy_size, xy_size, nb_channels).
"""
x = np.random.random((xy_size, xy_size, nb_channels))
x = x + np.ones((xy_size, xy_size, 1))
lin = np.expand_dims(
    np.expand_dims(
        np.linspace(0, 1, xy_size),
        1),
    2)
x = x * lin
x = x * lin.transpose(1, 0, 2)
x = x + x[::-1, ::-1, :]
x = x - np.min(x)
x = x / np.max(x) / 2
gc.collect()
if PLOT_PROGRESS:
    plt.imshow(x)
    plt.title("Random image for a test")
    plt.show()
return x

def round_predictions(prd, nb_channels_out, thresholds):
"""
From a threshold list thresholds containing one threshold per output
channel for comparison, the predictions are converted to a binary mask.
"""
assert (nb_channels_out == len(thresholds))
prd = np.array(prd)
for i in range(nb_channels_out):
# Per-pixel and per-channel comparison on a threshold to
# binarize prediction masks:
prd[:, :, i] = prd[:, :, i] > thresholds[i]
return prd
if name == 'main':
###
# Image:
###
img_resolution = 600
# 3 such as RGB, but there could be more in other cases:
nb_channels_in = 3

# Get an image
input_img = get_dummy_img(img_resolution, nb_channels_in)
# Normally, preprocess the image for input in the neural net:
# input_img = to_neural_input(input_img)

###
# Neural Net predictions params:
###

# Number of output channels. E.g. a U-Net may output 10 classes, per pixel:
nb_channels_out = 3
# U-Net's receptive field border size, it does not absolutely
# need to be a divisor of "img_resolution":
window_size = 128

# This here would be the neural network's predict function, to used below:
def predict_for_patches(small_img_patches):
    """
    Apply prediction on images arranged in a 4D array as a batch.

    Here, we use a random color filter for each patch so as to see how it
    will blend.

    Note that the np array shape of "small_img_patches" is:
        (nb_images, x, y, nb_channels_in)
    The returned arra should be of the same shape, except for the last
    dimension which will go from nb_channels_in to nb_channels_out
    """
    small_img_patches = np.array(small_img_patches)
    rand_channel_color = np.random.random(size=(
        small_img_patches.shape[0],
        1,
        1,
        small_img_patches.shape[-1])
    )
    return small_img_patches * rand_channel_color * 2

###
# Doing cheap tiled prediction:
###

# Predictions, blending the patches:
cheaply_predicted_img = cheap_tiling_prediction(
    input_img, window_size, nb_channels_out, pred_func=predict_for_patches
)

###
# Doing smooth tiled prediction:
###

# The amount of overlap (extra tiling) between windows. A power of 2, and is >= 2:
subdivisions = 2

# Predictions, blending the patches:
smoothly_predicted_img = predict_img_with_smooth_windowing(
    input_img, window_size, subdivisions,
    nb_classes=nb_channels_out, pred_func=predict_for_patches
)

###
# Demonstrating that the reconstruction is correct:
###

# No more plots from now on
PLOT_PROGRESS = False

# useful stats to get a feel on how high will be the error relatively
print(
    "Image's min and max pixels' color values:",
    np.min(input_img),
    np.max(input_img))

# First, defining a prediction function that just returns the patch without
# any modification:
def predict_same(small_img_patches):
    """
    Apply NO prediction on images arranged in a 4D array as a batch.
    This implies that nb_channels_in == nb_channels_out: dimensions
    and contained values are unchanged.
    """
    return small_img_patches

same_image_reconstructed = predict_img_with_smooth_windowing(
    input_img, window_size, subdivisions,
    nb_classes=nb_channels_out, pred_func=predict_same
)

diff = np.mean(np.abs(same_image_reconstructed - input_img))
print(
    "Mean absolute reconstruction difference on pixels' color values:",
    diff)
print(
    "Relative absolute mean error on pixels' color values:",
    100*diff/(np.max(input_img)) - np.min(input_img),
    "%")
print(
    "A low error (e.g.: 0.28 %) confirms that the image is still "
    "the same before and after reconstruction if no changes are "
    "made by the passed prediction function.")


Generate partial getters for Ref and RefMut

At the moment partial getters are only generated for the top-level enum type. They should also be available on the Ref and RefMut types for completeness.

Hmm, just ran into this again. Think this will need to be the next superstruct feature.


On windows platform teardown steps fails to delete context because files are still in use

/kind bug

What versions of software are you using?

Running make test-cmd-devfile-watch on windows powershell terminal.
Actual behavior
> make test-cmd-devfile-watch
ginkgo  -randomizeAllSpecs -slowSpecThreshold=120 -timeout 7200s -nodes=1 -focus="odo devfile watch command tests" tests/integration/devfile/
Running Suite: Devfile Suite
============================
Random Seed:<PHONE_NUMBER> - Will randomize all specs
Will run 6 of 60 specs
SSSSSSSSSS+SSS+SSSSSSSSSSSSSSSSSSSSSSSS+SSSSS+SSSSSSSSRunning command:  [odo watch  --context C:\Users\Admin\AppData\Local\Temp\647821543]
Created dir: C:\Users\Admin\AppData\Local\Temp\647821543
Setting KUBECONFIG=C:\Users\Admin\AppData\Local\Temp\647821543\config
Creating a new project: dzqnphrivh
Running odo.exe with args [odo project create dzqnphrivh -w -v4]
[odo]  -  Waiting for project to come up  ...
[odo] I0617 10:06:37.483866    7540 occlient.go:543] Status of creation of project dzqnphrivh is Active
[...]
[odo]  V  Project 'dzqnphrivh' is ready for use
[odo]  V  New project created and now using project: dzqnphrivh
[odo] I0617 10:06:37.562831    7540 odo.go:72] Could not get the latest release information in time. Never mind, exiting gracefully :)
Current working dir: C:\Users\Admin\go\src\github.com\openshift\odo\tests\integration\devfile
Setting current dir to: C:\Users\Admin\AppData\Local\Temp\647821543
Running odo.exe with args [odo preference set Experimental true]
[odo] I0617 10:06:37.670415    2920 preference.go:188] The path for preference file is C:\Users\Admin\AppData\Local\Temp\647821543\config.yaml
[odo] Global preference was successfully updated
[...]
Running odo.exe with args [odo create nodejs --project dzqnphrivh lkvpwi]
[odo] I0617 10:06:37.838760   11028 preference.go:188] The path for preference file is C:\Users\Admin\AppData\Local\Temp\647821543\config.yaml
[odo] Experimental mode is enabled, use at your own risk
[odo]
[odo] I0617 10:06:37.880608   11028 util.go:399] path ./.odo/config.yaml doesn't exist, skipping it
[odo] I0617 10:06:37.880608   11028 preference.go:188] The path for preference file is C:\Users\Admin\AppData\Local\Temp\647821543\config.yaml
[odo] I0617 10:06:37.883330   11028 preference.go:188] The path for preference file is C:\Users\Admin\AppData\Local\Temp\647821543\config.yaml
[odo] I0617 10:06:39.471178   11028 util.go:399] path devfile.yaml doesn't exist, skipping it
[odo] I0617 10:06:39.471178   11028 preference.go:188] The path for preference file is C:\Users\Admin\AppData\Local\Temp\647821543\config.yaml
[odo] I0617 10:06:39.471178   11028 util.go:399] path devfile.yaml doesn't exist, skipping it
[odo] Validation
[odo]  -  Checking devfile compatibility  ...
[odo]  -  Creating a devfile component from registry: DefaultDevfileRegistry  ...
I0617 10:06:39.471178   11028 preference.go:188] The path for preference file is C:\Users\Admin\AppData\Local\Temp\647821543\config.yaml
 V  Checking devfile compatibility [0ns]
 V  Creating a devfile component from registry: DefaultDevfileRegistry [0ns]
[odo]  -  Validating devfile component  ...
[odo] I0617 10:06:39.472269   11028 util.go:399] path .odo\env\env.yaml doesn't exist, skipping it
[odo] I0617 10:06:39.472269   11028 preference.go:188] The path for preference file is C:\Users\Admin\AppData\Local\Temp\647821543\config.yaml
 V  Validating devfile component [1ms]
[odo] I0617 10:06:39.472269   11028 preference.go:188] The path for preference file is C:\Users\Admin\AppData\Local\Temp\647821543\config.yaml
[odo] I0617 10:06:39.472269   11028 util.go:399] path devfile.yaml doesn't exist, skipping it
[odo]
[odo] Please use `odo push` command to create the component with source deployed
[odo] I0617 10:06:39.542637   11028 odo.go:72] Could not get the latest release information in time. Never mind, exiting gracefully :)
Running odo.exe with args [odo push --devfile devfile.yaml --project dzqnphrivh]
[odo] I0617 10:06:39.677232    5916 preference.go:188] The path for preference file is C:\Users\Admin\AppData\Local\Temp\647821543\config.yaml
[odo] I0617 10:06:39.720051    5916 preference.go:188] The path for preference file is C:\Users\Admin\AppData\Local\Temp\647821543\config.yaml
[...]
[odo]  V  Changes successfully pushed to component
[odo] I0617 10:06:50.421320    5916 odo.go:72] Could not get the latest release information in time.   Warning! Projects are deleted from the cluster asynchronously. Odo does its best to delete the project. Due to multi-tenant clusters, the project
may still exist on a different node.
[odo] I0617 10:07:12.231407    9372 odo.go:72] Could not get the latest release information in time. Never mind, exiting gracefully :)
[odo]  V  Deleted project : dzqnphrivh
Setting current dir to: C:\Users\Admin\go\src\github.com\openshift\odo\tests\integration\devfile
Deleting dir: C:\Users\Admin\AppData\Local\Temp\647821543
------------------------------
+ Failure in Spec Teardown (AfterEach) [36.450 seconds]
odo devfile watch command tests
C:/Users/Admin/go/src/github.com/openshift/odo/tests/integration/devfile/cmd_devfile_watch_test.go:15
  when executing odo watch after odo push [AfterEach]
  C:/Users/Admin/go/src/github.com/openshift/odo/tests/integration/devfile/cmd_devfile_watch_test.go:83
    should listen for file changes
    C:/Users/Admin/go/src/github.com/openshift/odo/tests/integration/devfile/cmd_devfile_watch_test.go:84
    Unexpected error:
        <*os.PathError | 0xc000405860>: {
            Op: "remove",
            Path: "C:\\Users\\Admin\\AppData\\Local\\Temp\\647821543\\a.txt",
            Err: 0x20,
        }
        remove C:\Users\Admin\AppData\Local\Temp\647821543\a.txt: The process cannot access the file because it is being used by another process.
    occurred
    C:/Users/Admin/go/src/github.com/openshift/odo/tests/helper/helper_filesystem.go:28

Expected behavior
Running devfile watch file on windows but teardown step throws error due to file is being used by another process .
Any logs, error output, etc?

Same failure occurrence seen with make test-cmd-docker-devfile-watch

Hey all, I will have a fix for this as part of https://github.com/openshift/odo/issues/3435

Hey all, I will have a fix for this as part of #3435

Ahh.. somehow we missed this comment and @anandrkskd was working on this. Anyway thanks for the change 👍


is managing passenger and standalone simultaneously possible with capistrano?

Can you clarify if managing, namely restarting, (regular) passenger and standalone possible with this module? If so, how?
I need two run the two due to using cable/websockets.
I can't claim I fully understand capistrano (or even much of it, my cap mojo is tiny), but it has worked very well for me for years now with passenger. Looking at the README, it appears that you guys address the issue of running passenger standalone, seemingly by itself.
Is it possible?
The reason I need to do this is that recently, I had to add support for ActionCable to one of my apps, and to support the websocket part, it appears that running a separate version of passenger (or other server, like puma) is the recommended approach and after trying them, passenger seems to work well.
I settled with passenger running bin/cable as a script like this:
#!/bin/bash
export RAILS_ENV=production
exec bundle exec passenger start -p 9999 --daemonize -R cable/config.ru --force-max-concurrent-requests-per-process 0

Anyone know how to do this in a safe way with capistrano?
I tried to do it by hand with:
$ passenger-config list-instances
... (only shows one name of an app, and it seems to be the standalone) ...

$ passenger-config restart-app --instance xyz123

however, I get some interactive question about what app to restart (and does not work).
I am currently restarting it with:
export RAILS_ENV=production
bundle exec passenger stop -p 9999
sleep 2
exec bundle exec passenger start -p 9999 --daemonize -R cable/config.ru --force-max-concurrent-requests-per-process 0

Let's try to understand better why $ passenger-config list-instances only shows the standalone instance.  Do you need to pass another arg to specify the directory?  If so, can you do the same with restart-app?
Once we know the exact set of commands that you want to run, and can do it without user interaction, it will be pretty easy for capistrano-passenger to support your use case.

[Apologies for the belated reply. I had something written, however, some hardware issue occurred]
Anyway, I do not know why list-instances only shows the standalone instance.
At the moment, I found this to work without user interaction (run in the current dir):
#!/bin/sh
export RAILS_ENV=production
bundle exec passenger stop -p 9999
sleep 2
exec bundle exec passenger start -p 9999 --daemonize -R cable/config.ru --force-max-concurrent-requests-per-process 0

Closing due to inactivity.  Please re-open if you feel this is still relevant.


Create additional info blocks

You can make your resume less official by adding more entertaining info, like your hobbies and interest, or what do you like, some interactive content or joke, easter egg, etc

Reading books and discussing theories.
Watching movies and collecting memorabilia.
Exploring diverse book genres.
Participating in book clubs or sharing reviews.
Listening and exploring triggers.
Creating or enjoying ASMR content.
Watching diverse genres.
Analyzing and discussing film elements particularly focusing on the Harry Potter universe, science fiction, and horror genres.


goofspiel: fix current point card

When returning the current point card, the methods ObservationString and ObservationTensor look at the index of the current point card in a data structure that contains only the remaining cards, and increment it. The returned value does not always correspond to the actual value of the current point card however, especially after the first couple of moves.
One way to fix that is what I did: ObservationString and ObservationTensor now access the last element of the same vector that is also accessed by InformationStateString and InformationStateTensor, which contains the values of the point card sequence.
It is my first time contributing to a public repo. I'm sorry if I unknowingly breached some guidelines or rules.

Thanks for the contribution!
I think the new code is equivalent to the old code (but with a memory bug). Can you give an example where this change makes a difference? Either as a play-through or as a unit test.

@elkhrt f this is not a bug then I think there is one in InformationStateString (and maybe tensor) which currently assumes point_card_sequence contains the current one AFAICT but only took a quick look.(If so, my bad)

Definitely think it's better/cleaner if we do not make that assumption. I can fix it this week if you don't beat me to it. :)

Also I still think this is a legit bug for the random ordering. It should index into the point card deck.

@elkhrt Regarding what difference the new code makes: Here is an isolated example that demonstrates the issue:
Old behavior:
Number of opened cards = 0
Output of state.information_state_string(0):
P0 hand: 1 2 3 4 5 6 7 8 9 10 11 12 13
P1 hand: 1 2 3 4 5 6 7 8 9 10 11 12 13
Point card sequence:
Points: 0 0
Output of state.observation_string(0):
Current point card: 0
Points: 0 0
P0 hand: 1 2 3 4 5 6 7 8 9 10 11 12 13
P1 hand: 1 2 3 4 5 6 7 8 9 10 11 12 13
Number of opened cards = 1
Output of state.information_state_string(0):
P0 hand: 1 2 3 4 5 6 7 8 9 10 11 12 13
P1 hand: 1 2 3 4 5 6 7 8 9 10 11 12 13
Point card sequence: 5
Points: 0 0
Output of state.observation_string(0):
Current point card: 5
Points: 0 0
P0 hand: 1 2 3 4 5 6 7 8 9 10 11 12 13
P1 hand: 1 2 3 4 5 6 7 8 9 10 11 12 13
Number of opened cards = 2
Output of state.information_state_string(0):
P0 hand: 1 2 3 4 6 7 8 9 10 11 12 13
P1 hand: 1 3 4 5 6 7 8 9 10 11 12 13
Point card sequence: 5 13
Points: 5 0
Output of state.observation_string(0):
Current point card: 12(false!)
Points: 5 0
P0 hand: 1 2 3 4 6 7 8 9 10 11 12 13
P1 hand: 1 3 4 5 6 7 8 9 10 11 12 13
New behavior (achieved with the 2nd commit):
Number of opened cards = 0
Output of state.information_state_string(0):
P0 hand: 1 2 3 4 5 6 7 8 9 10 11 12 13
P1 hand: 1 2 3 4 5 6 7 8 9 10 11 12 13
Point card sequence:
Points: 0 0
Output of state.observation_string(0):
Current point card: 0
Points: 0 0
P0 hand: 1 2 3 4 5 6 7 8 9 10 11 12 13
P1 hand: 1 2 3 4 5 6 7 8 9 10 11 12 13
Number of opened cards = 1
Output of state.information_state_string(0):
P0 hand: 1 2 3 4 5 6 7 8 9 10 11 12 13
P1 hand: 1 2 3 4 5 6 7 8 9 10 11 12 13
Point card sequence: 5
Points: 0 0
Output of state.observation_string(0):
Current point card: 5
Points: 0 0
P0 hand: 1 2 3 4 5 6 7 8 9 10 11 12 13
P1 hand: 1 2 3 4 5 6 7 8 9 10 11 12 13
Number of opened cards = 2
Output of state.information_state_string(0):
P0 hand: 1 2 3 4 6 7 8 9 10 11 12 13
P1 hand: 1 3 4 5 6 7 8 9 10 11 12 13
Point card sequence: 5 13
Points: 5 0
Output of state.observation_string(0):
Current point card: 13(correct)
Points: 5 0
P0 hand: 1 2 3 4 6 7 8 9 10 11 12 13
P1 hand: 1 3 4 5 6 7 8 9 10 11 12 13


Refresh button or cache invalidation

Responses are cached on the client but invalidate as the browser sees fit. This is nice for the user experience in certain contexts but the main/recent pages tend to go stale too slowly so the user is forced to manually refresh.
I'm not sure the best way to do this from a UX perspective.

Fixed this by using cache-and-network by default in Apollo and changing the way caches are merged. Tricky part was browser popstate (i.e. back/forward) ... in these cases we only want to use the cache and not hit the network.
Feels natural in my usage so far - and doesn't require extra buttons or user interaction.


Align API with native-navigation

Some of the APIs differ between react-navigation and native-navigation. It would make sense from end user point of view to align them, e.g. allowing both strings and React.Elements for headerLeft.
This issue is a placeholder for work that has to be done in that area.

[ ] headerLeft and headerRight should accept a string

We can also provide function handlers for left and right button, like how native-navigation does

We don't render any
What'd headerLeft: 'Something' or headerRight: 'Something' render?
Regarding the handler, isn't headerLeft: <HeaderBackButton onPress={...} /> sufficient?

It would render a button, like it does in Airbnb's library

Hm, what would be the onPress behaviour of such?
On Wed, 26 Apr 2017 at 17:03 Eric Vicenti<EMAIL_ADDRESS>wrote:

It would render a button, like it does in Airbnb's library
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/react-community/react-navigation/issues/1215#issuecomment-297437345,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACWcxlM1cbAd-xrwbsjbB5hNeUU3F9jgks5rz1yhgaJpZM4NGfrL
.


Add column scheduled_actions to aws_ec2_autoscaling_group

Integration test logs

Logs
Add passing integration test logs here

Example query results

Results
SELECT
    jsonb_array_elements(policies)->>'Enabled' AS enabled
FROM
    aws_ec2_autoscaling_group
LIMIT 1

+---------+
| enabled |
+---------+
| true    |
+---------+

Thank you for the PR @keyolk, however, our plugin table architecture leans on creating new tables for API calls that have a paginated response.
In this case, the ideal solution would be to create a new table called aws_appautoscaling_scheduled_action as mentioned in https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/appautoscaling_scheduled_action.
Please let us know if you have questions, happy to provide input and discussions around creating the new table 👍.


Add pattern Interpreter

Hi @domnikl please check my PR

Hi @a1812 and first of all, thanks for your PR! There's also a Specification pattern in the repo and I know, Interpreter is a GoF pattern. They both seem very similar, maybe Specification is just the wrong name for it and we should rename it? Would be very interested in your opinion here, what do you think?

Hi, this diagram should clarify this pattern (GoF interpreter), perhaps better than auto-diagram earlier from PhpStorm.
I believe that binary logic is the best demonstration to apply visually the GoF interpreter

maybe I answered vaguely, but these are different patterns

ping @domnikl

Sorry @a1812 for letting you wait some time! Looks perfect, I'll merge it in. Thanks very much for your effort!


⚠ Fortnite has degraded performance

In f3c39b0, Fortnite (https://fortnite.com) experienced degraded performance:

HTTP code: 200
Response time: 1650 ms

Resolved: Fortnite performance has improved in 493b4ba.


Add Additional Korean translation

Requested in https://github.com/kulttuuri/DiscordNotifications/issues/45#issuecomment-555190137
Regards.

Thanks!


[joss][ux][minor] Catch KeyboardInterrupt in diart.stream

The diart.stream method seems to work well! when I exit with ctrl+c though it just crashes out - would be nice to add a try: ... except KeyboardInterrupt: here: https://github.com/juanmc2005/diart/blob/858cd1a6a8024d74aa91f70fd5352dc37128230d/src/diart/console/stream.py#L63
related to: https://github.com/openjournals/joss-reviews/issues/5266

Implemented in #183


Adding momentum scrolling for iOS on Main div in website

The documentation website is a pain to navigate on iOS otherwise

:+1:


A glitch or bug

Well everything was fine before the last reload and all the placeholders were. But today when i restarted my server and joined the server, i saw that every line of scoreboard was changed to RealScoreBoard text. I looked for errors in placeholders but everything was fine, then search for dependencies still couldn't find everything. Then deleted its config file and restarted the server still nothing. At the end i reinstalled it but still the same error please help me as i have to release it in 4 days.

All white?


Simplified and more efficient Binarize implementation

This implementation
class Binarize(torch.nn.Module):
    def forward(self, x):
        with torch.no_grad():
            bx = torch.where(torch.gt(x, 0), -1, 1)
            dy = bx - x
        return x + dy

would applies a straight through estimator without the need of using custom autograd functions.
This at least on my cpu, drastically improves inference speed during training. And it is shorter than the current version.
I suggest we replace the current implementation with the above.

after reconsideration... not sure how to clip gradients with this implementation.

@glencoe Why do we need to clip the gradients if we want to apply a STE? I thought that this just passes the gradients through without modifications.


Wheres checkerpeices

Right now checkerboard is handling all the pieces and where they can move.  Instead abstract the pieces out by making them their own class and simplify the board down to just hold them and who's turn it is.

F16 OK (200 pts)

To help guide you so that it is easier to add features in the future.  What is the difference between a chess board and a checkers board.

W18 OK (200 pts)


bug: Period in env var config JSON key results in key not being processed

Meltano Version
2.15.3
Python Version
NA
Bug scope
Configuration (settings parsing, validation, etc.)
Operating System
N/A
Description
Actual behaviour:
$ TAP_GOOGLE_ANALYTICS_CLIENT_SECRETS='{"abc.xyz": "value"}' meltano config tap-google-analytics
{
  "client_secrets": {}
}

Expected behaviour:
root@1f9f977520fe:/project/abc# TAP_GOOGLE_ANALYTICS_CLIENT_SECRETS='{"abc.xyz": "value"}' meltano config tap-google-analytics
{
  "client_secrets": {
    "abc": {
      "xyz": "value"
    }
  }
}

Code
No response

@WillDaSilva - Thanks for logging this.
As a workaround, if the plugin only needs the raw text, is it viable to declare this as a string type instead of as an object?

Still relevant


version 29.2.1 and 29.2.2 have new dependency on ejs which is flagged with critical CVE-2023-29827. Can this be remedied?

May I know which version of ejs was installed in your lock file?

Hi @ahnpnl!
This commit 26e31a7 (released in 29.2.1) moved the dep of ejs from devDep to dependencies. In the process the ejs version was changed from ^3.1.10 (3.1.10 is the patched version of ejs) to ^3.0.0, which leads to accept vulnerable version 3.1.9.

Npm installers install the 3.1.9 version in my projects


Investigate easier farmeworks for docker management/monitoring

Check out the following framework and investigate if it is useful in the context of ARTEMIS.
https://github.com/jesseduffield/lazydocker
Also check and compare with:
https://github.com/portainer/portainer
https://github.com/skanehira/docui

Closing, eventually everything will run on Kubernetes and use associated orchestration/monitoring tools.


clang-tidy-14 findings not shown in "files changed" tab of pull request

When adding cpp-linter to my repo I noticed that in the console output it finds all issues I added for testing, but these clang-tidy findings are not shown in the Github UI in the "files changed" tab at all. After I enabled thread-comments the findings are shown in the conversation of the pull request.
https://github.com/lurtz/sleep-proxy/pull/6
I guess the reason is using clang-tidy-14. I first used clang-tidy-12 but that had issues with finding system headers and thus provided many false positives.

The feature you're referring to is the option called file-annotations which defaults to true (enabled). Looking at your workflow's run log I see 1 problem:
The paths output in the workflow annotations (the notices added to the workflow's summary) are relative to the build folder (/build/../src/emulateHost.cpp) and they shouldn't be. I think this leads to github silently failing to include the annotation as part of the PR because the file's path is incorrect (must exactly match a path relative to the repo root).
FYI, the commands we use to produce the file annotations are the same commands that produce the workflow summary's annotations, so I think its just a matter of correcting the path. I suspect that this may be a side-effect of using clang-tidy v14 with a compilation database.

you were right, but I found no solution I would consider nice. Meson forces me to do an out of tree build- At the moment my solution is
sed -i 's/\/build//g' compile_commands.json # strip /build from paths
sed -i 's/\.\.\///g' compile_commands.json    # strip ../ from paths

to get it done. It is not pretty, but now I get the annotations.
For me the issue is solved, but I wonder if better out of tree build support would be nice in cpp-linter.