How to write a global fetcher function with variable args?

I'm using GraphQL and would like to write a global fetcher function.
Normally you could do: useSWR(['/api/user', id], (url, id) => query(url, { id })) or useSWR(['/api/user', id, key], (url, id, key) => query(url, { id, key }))
But how would the function look, if I would like to make it global? Something like useSWR(['/api/user', id], (url, ...args) => query(url, { ...args })) does not work.

...args supposed to be an array and you cannot spread an array into an object.
const array = [1,2,3]
const obj = { ...array } // this won't work

Currently it's impossible to do that. There're 2 work arounds but both are not perfect:
// correct but wastes resources to serialize/deserialize
const fetcher = (url, args) => query(url, { ...JSON.parse(args) })
useSWR(['/api/user', JSON.stringify({ id })], fetcher)

// useMemo is per-component, so SWR cache can't be shared across contexts
// would be better if you use a global memo, but GC will be an issue
const fetcher = (url, args) => query(url, { ...args })
useSWR(['/api/user', useMemo(() => ({ id }), [id])], fetcher)

Hope that helps!


False device placement when use with quantization_config

System Info
- `Accelerate` version: 0.31.0
- Platform: Linux-5.4.0-148-generic-x86_64-with-glibc2.31
- `accelerate` bash location: /remote-home/xhwang/anaconda3/envs/gloq/bin/accelerate
- Python version: 3.10.14
- Numpy version: 1.26.4
- PyTorch version (GPU?): 2.3.0+cu121 (True)
- PyTorch XPU available: False
- PyTorch NPU available: False
- PyTorch MLU available: False
- System RAM: 1007.54 GB
- GPU type: NVIDIA A800-SXM4-80GB
- `Accelerate` default config:
        - compute_environment: LOCAL_MACHINE
        - distributed_type: MULTI_GPU
        - mixed_precision: no
        - use_cpu: False
        - debug: False
        - num_processes: 2
        - machine_rank: 0
        - num_machines: 1
        - gpu_ids: all
        - rdzv_backend: static
        - same_network: True
        - main_training_function: main
        - enable_cpu_affinity: False
        - downcast_bf16: no
        - tpu_use_cluster: False
        - tpu_use_sudo: False
        - tpu_env: []

Information

[ ] The official example scripts
[X] My own modified scripts

Tasks

[ ] One of the scripts in the examples/ folder of Accelerate or an officially supported no_trainer script in the examples folder of the transformers repo (such as run_no_trainer_glue.py)
[X] My own task or dataset (give details below)

Reproduction
Hi! I want to load my model to cpu initially and use ddp for some sub modules with accelerator.prepare() later. Here is an simple reproduction:
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
from accelerate import Accelerator
import torch
model = AutoModelForCausalLM.from_pretrained(
        'models/Llama-2-7b-hf-2bit-64rank-5iter', # base model obtained by LoftQ, should be equivalent to 'LoftQ/Llama-2-7b-hf-2bit-64rank'
        torch_dtype=torch.bfloat16,
        device_map='cpu',
        quantization_config=BitsAndBytesConfig(
            load_in_4bit=True,
            bnb_4bit_compute_dtype=torch.bfloat16,
            bnb_4bit_use_double_quant=False,
            bnb_4bit_quant_type='nf4'
        ),
    )
sub_module = model.model.layers[10]
accelerator = Accelerator()
sub_module = accelerator.prepare(sub_module)
print(sub_module.device) # cuda:0
dummy_inputs = torch.randn(1, 2048, 4096).to(accelerator.device)
position_ids = torch.arange(2048).unsqueeze(0).to(accelerator.device)
output = sub_module(dummy_inputs, position_ids=position_ids)

Got RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!
I see that the tensors are sent to cpu by some device alignment hooks added by accelerate. Is this expected? Or any workaround? Thanks for any help!
Expected behavior
Model and tensors should both be on cuda.

Hi @xinghaow99, this should not be possible to load bnb model on cpu for now.
If you run the following, you will get the error. I will fix the missing check :
from transformers import AutoModelForCausalLM, BitsAndBytesConfig from accelerate import Accelerator import torch model = AutoModelForCausalLM.from_pretrained(         'models/Llama-2-7b-hf-2bit-64rank-5iter', # base model obtained by LoftQ, should be equivalent to 'LoftQ/Llama-2-7b-hf-2bit-64rank'         torch_dtype=torch.bfloat16,         device_map={"":"cpu"},         quantization_config=BitsAndBytesConfig(             load_in_4bit=True,             bnb_4bit_compute_dtype=torch.bfloat16,             bnb_4bit_use_double_quant=False,             bnb_4bit_quant_type='nf4'         ),     )
I recommend loading your model directly on gpu by setting device_map = {"":"cuda"}

@SunMarc Hi! Thank you for getting back to me.
I'm trying to load submodules to GPUs dynamically(only moving them to GPU when computing) to save GPU RAM since I'm training the model layer by layer. Guess this is not supported for now...


Shiny is installed but does not appear in library() completion

Looks like completion is looking at the top level folder rather than under versioned folder

Specific to R Client.

https://github.com/Microsoft/RTVS/commit/eb0e7a8b36a4bbd30734e999eec37cdcd6ce008c

Verified.


Fix 'testcafe -b returns the "The specified "true" browser provider was not found" error'

Todo

[ ] Close https://github.com/DevExpress/testcafe/issues/4294 after merge

https://github.com/DevExpress/testcafe/issues/4294
Changes

Revert to this state:
https://github.com/DevExpress/testcafe/commit/abadd4f3f9064bd65447c304baa6615f66b0b8a0#diff-4eae3bcd34f48b84571670fe6cc3a705L233

@testcafe-build-bot retest

@testcafe-build-bot retest


Frontend : HTML Tables

Description 📜
I would like to contribute about HTML table along with its example code and screenshots of the output in the form of documentation.
Batch 4
Kindly assign this to me.
/assign

Domain of Contribution 📊

[ ] Android Dev (Flutter, Java, Kotlin)
[ ] Backend Dev (Java, .NET, Python)
[ ] C/CPP
[ ] Competitive Programming
[ ] Cyber Security
[ ] DSA
[ ] Database
[ ] Datascience with Python
[ ] Datascience with R
[x] Frontend Dev (HTML, CSS, JS)
[ ] Frontend Dev (React, Angular, Vue)
[ ] Golang
[ ] Interview Prep
[ ] Java
[ ] JavaScript
[ ] MERN
[ ] Machine Learning
[ ] Open Source
[ ] Python
[ ] Rust
[ ] Statistics
[ ] UI/UX

/assign

kindly assign this issue to me
i would like to work on the documentation part
I am a beginner but I will try my best
batch 18 frontend
discord - STRAWHAT_LUFFY#8651

/assign

/assign

/assign

/assign this is to me


Generate validation warning when an expression inside a policy has type True or False for all request environments

Category
Cedar validation features
Describe the feature you'd like to request
The typechecker currently supports singleton boolean types True and False. When an expression has one of the types, it means the typechecker has shown that it will always evaluate to true or false for a particular request type environment. If an expression has the same singleton boolean type across all valid environments, then we can conclude that it always evaluates to the same value for every request.  It seems unlikely that this is intentional, as it is likely to lead to dead code inside policies.
Describe the solution you'd like
For example:
permit(principal, action, resource) when {
  if principal has attr1 then
    principal.attr1
  else
    principal.attr2
}

This policies is likely indented to apply some authorization logic if the optional attribute attr1 is present, and apply some fallback logic otherwise. If attr1 is not an optional attribute but is in fact never present, the condition will have type False. If it is not a possible attribute for any principal entity type, the condition will have type False across all query environments, so the then branch will never be executed. We could notice this and report an error or warning.
Describe alternatives you've considered
n/a
Additional context
No response
Is this something that you'd be interested in working on?

[ ] 👋 I may be able to implement this feature request
[ ] ⚠ This feature might incur a breaking change

Some thoughts on the implementation:
One problem we'll encounter implementing with this proposal is that we need to compare the type of expressions across different environments, but the typechecker applies some transformations as it type-annotates the AST. E.g., if true then e1 else e2 becomes a type-annotated expression e1_t. We don't annotate e2 because the final type of the expression doesn't depend on it, and we don't want to report any errors that may appear in it. We can work around this by creating a copy of e2 with all nodes annotated with None (the annotated AST already holds an Option to handle type errors) and build if true then e1_t else e2_none. This forces a deep copy of e2, which kind of sucks, but we're already rebuilding the rest of the AST a bunch of times for type annotation, so it doesn't actually matter. When looking for constant subexpression we'll then just ignore the None entries.
To actually find these constant subexpressions, the idea I've had floating around is that we change the input and output types of typecheck to be Expr<Vec<Type>> with the input type annotations at each expr copied into the output, plus the type in that environment. This way we can directly compare the type of an expression in all the environments without trying to figure out the mapping between nodes in different annotated ASTs.
The problem that tries to avoids is that we could see something like permit(principal is User, action, resource) when { principal is User};. The first principal is User may have type true of false, but the second only ever has type true.  We could distinguish these based on their source location, but (1) they may not have that if built from EST and (2) this approach gives us one annotated AST that records all possible types of an expression, which could be very nice for other analysis.
An alternative solution might be to typecheck the whole expression once under a compound environment where we consider all possible principal/resource/action types at the same time. This approach seems to fall apart if one principal has attribute foo at type Long while the other has it at type String. We would then need some sort of union type. Adding that to the type system without causing trouble for the SMT encoding seems tricky.

@mwhicks1 recently brought up a more concrete motivating example for this feature.
Given a schema and policy
entity User = {
  access_level?: Long,
  is_admin: Bool
};
action Access appliesTo { principal: [User] };

permit(principal, action, resource)
when {
  if principal has acces_level then
     principal.acces_level > 10
  else
     principal.is_admin
};

The policy author has made a typo, writing acces_level instead of access_level in the has guard. The attribute acces_level does not exist, but this is not an error in a has expression, it just evaluate to false, so we give the expression type False. This causes us to ignore the then branch of the if, so we never see the policy tries to access this attribute. Running the policy validator in fact does not return any errors or warnings despite this obvious mistake.
We can't report a warning here only observing that acces_level doesn't exist for the User entity type in one request environment. There could be other entity types where it does exist. We need to look at the type of this expression across all request environments and only then report a warning.


Error on install

Hi - I have  working Homebridge Pi Zero but when I install this package I get the following error (see screenshot).  I have installed other plugin's and they worked fine.   I'm sure it's my mistake but I can't work it out.
Thanks
Mike

Try this instead
sudo su -
sudo npm install -g homebridge-dht

This is a NPM/NODE-GYP issue and not really a plugin issue

Hi apologies if it's not the plugin's issue - I'm still getting the same issue though.  I will look it up and if I find a solution will post back here to help other people.

There is this on google
https://github.com/aws-amplify/amplify-cli/issues/2023

Worked a treat that.  Thanks.


Fix flaky tests

What should be done?
These tests are slow/flaky:

scripts::p2id::p2id_script_multiple_assets
scripts::p2idr::p2idr_script
scripts::p2id::prove_p2id_script

How should it be done?
The tests should be fixed so that they are no longer flaky/slow
When is this task done?
When the CI is reliable
Additional context
https://github.com/0xPolygonMiden/miden-base/pull/565

Should have been fixed by #570


Unclear exception when not starting server

If the server is not started, the client will throw the nettry exception, which is not expected. Because we should throw the Distkv exception for users.
Couldn't start server:
io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /<IP_ADDRESS>:8082

@sunYangGitHub  Could you address this issue? And @senyer  will help you.


shut down worker service gracefully whenever any parentchain dispatches System.CodeUpdated event

As a simple solution to the change in metadata and runtime spec_version and transaction_version, we could just shut down the service gracefully and have it restart automatically.
caveats:

TOP pool will be lost. Not dramatic, as no user got a confirmation. submission will just time out or abort
When the System.CodeUpdated event is dispatched, it is already too late to send extrinsics with the wrong AdditionalParams. If we want to prevent this transient risk, we need to shut down already at System.UpgradeAuthorized and await the upgrade

one solution could be to reject TOPs which cause extrinsiscs on parentchains to be rejected after UpgradeAuthorized. this would minimize downtime while maintaining consistency

What is a bit of a nuisance though, is that the worker registers every time upon restart. maybe the worker can check if it has been registered lately, and skip registering in order to cut down the restart time?


sheet.getStyleTags() Is Genarating Error

 sheet.getStyleTags() is generating error
See the following code
if (!options.disableSSR) {
      const sheet = new ServerStyleSheet();
      console.log(sheet.getStyleTags())
      html = renderToString(sheet.collectStyles(app));
      styledComponentCss = sheet.getStyleTags();
    } else if (options.loadingScreen) {
      html = options.loadingScreen;
    }

It is generating following error on the terminal:
url:  /
I20171024-16:23:57.074(5.5)? [Error: Can't collect styles once you've called getStyleTags!]
W20171024-16:23:57.126(5.5)? (STDERR) Tue Oct 24 2017 16:23:57 GMT+0530 (IST) 'error while server-rendering' 'Error: Can\'t collect styles once you\'ve called getStyleTags!\n    at ServerStyleSheet.collectStyles (/home/deligence/1.Projects/Streetail/node_modules/styled-components/lib/models/ServerStyleSheet.js:116:28)\n    at generateSSRData (packages/vulcan:routing/lib/server/router.jsx:58:35)\n    at sendSSRHtml (packages/vulcan:routing/lib/server/router.jsx:87:45)\n    at packages/vulcan:routing/lib/server/router.jsx:149:11\n    at /home/deligence/1.Projects/Streetail/node_modules/react-router/lib/match.js:67:5\n    at /home/deligence/1.Projects/Streetail/node_modules/react-router/lib/createTransitionManager.js:108:11\n    at done (/home/deligence/1.Projects/Streetail/node_modules/react-router/lib/AsyncUtils.js:79:19)\n    at /home/deligence/1.Projects/Streetail/node_modules/react-router/lib/AsyncUtils.js:85:7\n    at getComponentsForRoute (/home/deligence/1.Projects/Streetail/node_modules/react-router/lib/getComponents.js:11:5)\n    at /home/deligence/1.Projects/Streetail/node_modules/react-router/lib/getComponents.js:35:5'

Sorry, I haven't used styled components myself yet. Maybe you can ask in the slack chatroom?


typos in az batchai cluster autoscale example

az batchai auto-scale -g MyResourceGroup -w MyWorkspace -n MyCluster --min 0 --max 10
--> az batchai cluster auto-scale -g MyResourceGroup -w MyWorkspace -n MyCluster --min 0 --max 10

cluster is missed in the example

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: d5ad5bd9-6bc2-6489-0f95-226c8d017e3b
Version Independent ID: 7772f177-332f-db67-3dc6-72795aaf5583
Content: az batchai cluster
Content Source: src/command_modules/azure-cli-batchai/azure/cli/command_modules/batchai/_help.py
Service: batch-ai
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

Not fixed yet. Could you please re-open and fix the command?

@YoshiakiOi it has been fixed: https://github.com/Azure/azure-cli/blob/dev/src/command_modules/azure-cli-batchai/azure/cli/command_modules/batchai/_help.py#L107-L113
Our documentation will be updated with our next release, v2.0.45


Fixes run-ios when the PRODUCT_NAME differs from the scheme.

This uses the build config to get the EXECUTABLE_PATH_NAME to use, instead of doing (scheme + '.app'). This matters for cases where Debug and Release configs produce differently-named apps, and lets it work within iOS.
It defaults to looking up the Debug config, since I believe run-ios only ever produces Debug builds in its current setup anyway.
Test plan (required)
My project is configured like this for debug:
BUNDLE_ID_SUFFIX = .debug;
PRODUCT_BUNDLE_IDENTIFIER = "com.DanceDeets.ios$(BUNDLE_ID_SUFFIX)";
PRODUCT_NAME = "DanceDeets Debug";

and this for release:
BUNDLE_ID_SUFFIX = "";
PRODUCT_BUNDLE_IDENTIFIER = "com.DanceDeets.ios$(BUNDLE_ID_SUFFIX)";
PRODUCT_NAME = DanceDeets;

I ran react-native run-ios in my project, and it produced:
Launching com.DanceDeets.ios.debug
com.DanceDeets.ios.debug: 20299

(whereas it would previously fail, trying to install DanceDeets.app (from the inferredScheme) after building DanceDeets Debug.app)

Does this solve the same problem as https://github.com/facebook/react-native/pull/10156? Could you work with @StevePottter to build a single solution?

Your message had two broken links, but yes, this fixes the same issue as https://github.com/facebook/react-native/pull/10178 . @StevePotter, I believe my approach fixes this by being more intelligent, without the need of environment variable overrides. Steve, are you interested in trying my pull request to see if it fixes your use case too? Thanks.

I'm going to try it out later today.  Using xcodebuild -showBuildSettings is smarter than parsing build output.  I'm concerned about the "configuration Debug" setting, since our app file name is different between build types.  Can you pass the scheme to xcodebuild instead?

Hi @mikelambert!  Thanks for putting in the effort to solve this problem too.  My approach gets the app file name by parsing build output.  Not ideal, I know.
Your approach using xcodebuild -showBuildSettings is better.   Honestly I didn't even know about it.  But I've run multiple tests on your PR and can't get it to work.  We have 4 schemes and 3 build configuration.  The app name is either "Vydia Dev.app", "Vydia Beta.app", or "Vydia.app".  The scheme chooses the build configuration and since react-native has the --scheme arg, I'd prefer to stick with schemes.
Your getBuildConfig() hardcodes the configuration to be "Debug".  That's not going to work for me.  I figured I could just pass the scheme instead.  So I did: xcodebuild -showBuildSettings -scheme Dev.  Here is the result.
As you can see, FULL_PRODUCT_NAME resolved to "Vydia.app", although when I actually build with the Dev scheme, the FULL_PRODUCT_NAME shown in the output is "Vydia Dev.app".  If I run xcodebuild -showBuildSettings -configuration Debug, it works.
But again, we need to honor schemes.  As far as I can tell, xcodebuild -showBuildSettings will not tell you the build configuration used.  We could extract that information from the schemes, like in my case Vydia.xcodeproj/xcshareddata/xcschemes.  Then pass the -configuration parameter instead of schemes to get the app name.
So in conclusion, right now it doesn't work in all cases and IMO isn't ready.  Mine, which I consider an inferior approach, does work.  Mine's #10156.  Personally I'd like to see mine merged so it can get into the next release of RN.  Then you can I can work together, if you'd like, to come up with an ideal solution.

I was unsure on the -configuration Debug as well. So to summarize:

The UI uses schemes, and schemes determine configurations, and configurations determine app names.
The commandline doesn't really support schemes, leaving us to control configurations. And unfortunately we can't know which configuration to use without parsing xcschemes (or some yet TBD commandline tool). So therefore commandline is out for now.

Thus leaving your working-hack as the quickest means to get things working for the next RN.
That all makes sense to me. I'll leave it up to RN devs on how they want to proceed, and their balance of "more logically-correct but as-yet-incomplete" vs "fix this quickly, with some brittle output parsing".

Yes, you are right.  The root problem is "xcodebuild -showBuildSettings -scheme xxx" is broken.  The resolved app could be used by parsing the build configuration from the scheme file, which would be the workaround to keep your approach intact.  Or you could parse build output, which was my approach.  I have no idea where I can report this bug to Apple.  We still have to work around it, but I'd like them to know.

https://bugreport.apple.com is the correct place to report bugs to apple.

@StevePotter @mikelambert how do you want to proceed here? @StevePotter mentioned having a separate PR that addresses this but that comment linked to this same PR.

Yeah, the correct link to that PR was https://github.com/facebook/react-native/pull/10178 . It seems it got merged a few weeks ago, so I'll close this PR.


Add Flagger OAM integration example README

Add Flagger OAM integration example README
Add scale subresource to podSpecWorkload
Add flagger design doc

@ryanzhang-oss As a follow-up, could you write a rollout.cue ?


PYT-1728 add FastAPI routes that will be run in a threadpool

This PR adds routes that are defined without async. When this happens FastAPI runs them in an external thread pool.

Closing this in favor of adding a single route in another test application


Build failed - esp_err.h: No such file or directory

Hello, just got new Nuki 3 and wanted to use this nice implementation with ESPHome.
Unfortuantely the build with ESP Home within Home Assistant failed.
I tried to use ESPHome dev branch and also removing the arduino version as.
 Compiling the others work fine.
I'm running following version:
Home Assistant 2023.4.5
Supervisor 2023.04.0
Operating System 10.0
Frontend 20230411.1 - latest

ESPHome:
Current version: 2023.4.0

My ESPhome yaml looks like this:
esphome:
  name: nuki
  friendly_name: Nuki
  libraries:
  - Preferences
  - https://github.com/vinmenn/Crc16.git
  - https://github.com/uriyacovy/NukiBleEsp32

external_components:
  - source: github://uriyacovy/ESPHome_nuki_lock

esp32:
  board: esp32dev
  framework:
    type: arduino
    version: 2.0.3
    platform_version: 5.3.0

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "XXX"

ota:
  password: "XXX"

wifi:
  ssid: XXX
  password: XXX

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Nuki Fallback Hotspot"
    password: "XXX"

lock:
  # Required:
  - platform: nuki_lock
    name: Nuki Lock
    is_connected:
      name: "Nuki Connected"
    is_paired:
      name: "Nuki Paired"
  # Optional:
    battery_critical:
      name: "Nuki Battery Critical"
    battery_level:
      name: "Nuki Battery Level"
    door_sensor:
      name: "Nuki Door Sensor"
    door_sensor_state:
      name: "Nuki Door Sensor State"

captive_portal:

When compiling, I get following errors:
INFO Reading configuration /config/esphome/nuki.yaml...
WARNING The selected Arduino framework version is not the recommended one. If there are connectivity or build issues please remove the manual version.
WARNING The selected Arduino framework version is not the recommended one. If there are connectivity or build issues please remove the manual version.
INFO Generating C++ source...
INFO Compiling app...
Processing nuki (board: esp32dev; framework: arduino; platform: platformio/espressif32 @ 5.3.0)
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5

warning: Calling missing SConscript without error is deprecated.
Transition by adding must_exist=False to SConscript calls.
Missing SConscript<EMAIL_ADDRESS>File<EMAIL_ADDRESS>line 92, in <module>
Library Manager: Installing FS
Warning! Could not find the package with 'FS' requirements for your system 'linux_x86_64'
Library Manager: Installing Update
Warning! Could not find the package with 'Update' requirements for your system 'linux_x86_64'
Library Manager: Installing ESPmDNS
Warning! Could not find the package with 'ESPmDNS' requirements for your system 'linux_x86_64'
Dependency Graph
|-- AsyncTCP-esphome @ 1.2.2
|-- Preferences @ 2.1.0
|-- Crc16 @ 0.1.2+sha.719a7a1
|-- NukiBleEsp @ 2.0.0+sha.1de6290
|   |-- NimBLE-Arduino @ 1.4.1
|   |-- BleScanner @ 1.1.0+sha.575385f
|   |   |-- NimBLE-Arduino @ 1.4.1
|-- WiFi @ 1.2.7
|-- ESPAsyncWebServer-esphome @ 2.1.0
|   |-- AsyncTCP-esphome @ 1.2.2
|-- DNSServer @ 1.1.0
|-- noise-c @ 0.1.4
|   |-- libsodium @ 1.10018.1
Compiling /data/nuki/.pioenvs/nuki/src/esphome/components/api/api_connection.cpp.o
Compiling /data/nuki/.pioenvs/nuki/src/esphome/components/api/api_frame_helper.cpp.o
Compiling /data/nuki/.pioenvs/nuki/src/esphome/components/api/api_pb2.cpp.o
Compiling /data/nuki/.pioenvs/nuki/src/esphome/components/api/api_pb2_service.cpp.o
In file included from src/esphome/components/socket/socket.h:6,
                 from src/esphome/components/api/api_frame_helper.h:14,
                 from src/esphome/components/api/api_connection.h:3,
                 from src/esphome/components/api/api_connection.cpp:1:
src/esphome/components/socket/headers.h:127:10: fatal error: sys/ioctl.h: No such file or directory
 #include <sys/ioctl.h>
          ^~~~~~~~~~~~~
compilation terminated.
*** [/data/nuki/.pioenvs/nuki/src/esphome/components/api/api_connection.cpp.o] Error 1
In file included from src/esphome/components/api/proto.h:4,
                 from src/esphome/components/api/api_pb2.h:5,
                 from src/esphome/components/api/api_pb2.cpp:3:
src/esphome/core/log.h:14:10: fatal error: esp_err.h: No such file or directory

*****************************************************************
* Looking for esp_err.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:esp_err.h"
* Web  > https://registry.platformio.org/search?q=header:esp_err.h
*
*****************************************************************

 #include <esp_err.h>
          ^~~~~~~~~~~
compilation terminated.
In file included from src/esphome/components/socket/socket.h:6,
                 from src/esphome/components/api/api_frame_helper.h:14,
                 from src/esphome/components/api/api_frame_helper.cpp:1:
src/esphome/components/socket/headers.h:127:10: fatal error: sys/ioctl.h: No such file or directory
 #include <sys/ioctl.h>
          ^~~~~~~~~~~~~
compilation terminated.
*** [/data/nuki/.pioenvs/nuki/src/esphome/components/api/api_frame_helper.cpp.o] Error 1
*** [/data/nuki/.pioenvs/nuki/src/esphome/components/api/api_pb2.cpp.o] Error 1
In file included from src/esphome/components/api/proto.h:4,
                 from src/esphome/components/api/api_pb2.h:5,
                 from src/esphome/components/api/api_pb2_service.h:5,
                 from src/esphome/components/api/api_pb2_service.cpp:3:
src/esphome/core/log.h:14:10: fatal error: esp_err.h: No such file or directory

*****************************************************************
* Looking for esp_err.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:esp_err.h"
* Web  > https://registry.platformio.org/search?q=header:esp_err.h
*
*****************************************************************

 #include <esp_err.h>
          ^~~~~~~~~~~
compilation terminated.
*** [/data/nuki/.pioenvs/nuki/src/esphome/components/api/api_pb2_service.cpp.o] Error 1
========================== [FAILED] Took 2.56 seconds ==========================

I just tried now with HA 2023.4.6 and ESPHome 2023.4.2 and it builds without an issue. Can you try deleting your .esphome folder and build again?

Thanks for trying at yours!
Since there have been some updates of esphome these days, I was always trying to compile again, but no luck. I moved the folder .esphome, but it does not help :(
I also recreate new esphome device, but always getting the same issue.
WARNING The selected Arduino framework version is not the recommended one. If there are connectivity or build issues please remove the manual version.
WARNING The selected Arduino framework version is not the recommended one. If there are connectivity or build issues please remove the manual version.
INFO Generating C++ source...
INFO Compiling app...
Processing nuki (board: esp32dev; framework: arduino; platform: platformio/espressif32 @ 5.3.0)
--------------------------------------------------------------------------------
Library Manager: Installing esphome/AsyncTCP-esphome @ 1.2.2
INFO Installing esphome/AsyncTCP-esphome @ 1.2.2
Unpacking  [####################################]  100%
Library Manager<EMAIL_ADDRESS>has been installed!
INFO<EMAIL_ADDRESS>has been installed!
Library Manager: Installing git+https://github.com/vinmenn/Crc16.git
INFO Installing git+https://github.com/vinmenn/Crc16.git
git version 2.30.2
Cloning into '/data/cache/platformio/cache/tmp/pkg-installing-c74_2wlz'...
Library Manager<EMAIL_ADDRESS>has been installed!
INFO<EMAIL_ADDRESS>has been installed!
Library Manager: Installing git+https://github.com/uriyacovy/NukiBleEsp32
INFO Installing git+https://github.com/uriyacovy/NukiBleEsp32
git version 2.30.2
Cloning into '/data/cache/platformio/cache/tmp/pkg-installing-3b5sisq9'...
Library Manager<EMAIL_ADDRESS>has been installed!
INFO<EMAIL_ADDRESS>has been installed!
Library Manager: Resolving dependencies...
INFO Resolving dependencies...
Library Manager: Installing h2zero/NimBLE-Arduino @ ^1.4.0
INFO Installing h2zero/NimBLE-Arduino @ ^1.4.0
Unpacking  [####################################]  100%
Library Manager<EMAIL_ADDRESS>has been installed!
INFO<EMAIL_ADDRESS>has been installed!
Library Manager: Installing git+https://github.com/vinmenn/Crc16
INFO Installing git+https://github.com/vinmenn/Crc16
git version 2.30.2
Cloning into '/data/cache/platformio/cache/tmp/pkg-installing-x8zsm8m6'...
Library Manager<EMAIL_ADDRESS>has been installed!
INFO<EMAIL_ADDRESS>has been installed!
Library Manager: Installing git+https://github.com/I-Connect/BleScanner
INFO Installing git+https://github.com/I-Connect/BleScanner
git version 2.30.2
Cloning into '/data/cache/platformio/cache/tmp/pkg-installing-slb173xd'...
Library Manager<EMAIL_ADDRESS>has been installed!
INFO<EMAIL_ADDRESS>has been installed!
Library Manager: Resolving dependencies...
INFO Resolving dependencies...
Library Manager: Installing esphome/ESPAsyncWebServer-esphome @ 2.1.0
INFO Installing esphome/ESPAsyncWebServer-esphome @ 2.1.0
Unpacking  [####################################]  100%
Library Manager<EMAIL_ADDRESS>has been installed!
INFO<EMAIL_ADDRESS>has been installed!
Library Manager: Resolving dependencies...
INFO Resolving dependencies...
Library Manager: Installing esphome/noise-c @ 0.1.4
INFO Installing esphome/noise-c @ 0.1.4
Unpacking  [####################################]  100%
Library Manager<EMAIL_ADDRESS>has been installed!
INFO<EMAIL_ADDRESS>has been installed!
Library Manager: Resolving dependencies...
INFO Resolving dependencies...
Library Manager: Installing esphome/libsodium @ 1.10018.1
INFO Installing esphome/libsodium @ 1.10018.1
Unpacking  [####################################]  100%
Library Manager<EMAIL_ADDRESS>has been installed!
INFO<EMAIL_ADDRESS>has been installed!
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5

warning: Calling missing SConscript without error is deprecated.
Transition by adding must_exist=False to SConscript calls.

Library Manager: Installing WiFi
Library Manager: Warning! More than one package has been found by WiFi requirements:
Library Manager:  -<EMAIL_ADDRESS>Library Manager:  -<EMAIL_ADDRESS>Library Manager: Please specify detailed REQUIREMENTS using package owner and version (shown above) to avoid name conflicts

Unpacking  [------------------------------------]    0%
Unpacking  [#-----------------------------------]    3%
Unpacking  [##----------------------------------]    6%
Unpacking  [###---------------------------------]    9%
Unpacking  [####--------------------------------]   12%
Unpacking  [#####-------------------------------]   15%
Unpacking  [######------------------------------]   18%
Unpacking  [#######-----------------------------]   21%
Unpacking  [#########---------------------------]   25%
Unpacking  [##########--------------------------]   28%
Unpacking  [###########-------------------------]   31%
Unpacking  [############------------------------]   34%
Unpacking  [#############-----------------------]   37%
Unpacking  [##############----------------------]   40%
Unpacking  [###############---------------------]   43%
Unpacking  [################--------------------]   46%
Unpacking  [##################------------------]   50%
Unpacking  [###################-----------------]   53%
Unpacking  [####################----------------]   56%
Unpacking  [#####################---------------]   59%
Unpacking  [######################--------------]   62%
Unpacking  [#######################-------------]   65%
Unpacking  [########################------------]   68%
Unpacking  [#########################-----------]   71%
Unpacking  [###########################---------]   75%
Unpacking  [############################--------]   78%
Unpacking  [#############################-------]   81%
Unpacking  [##############################------]   84%
Unpacking  [###############################-----]   87%
Unpacking  [################################----]   90%
Unpacking  [#################################---]   93%
Unpacking  [##################################--]   96%
Unpacking  [####################################]  100%
Library Manager<EMAIL_ADDRESS>has been installed!
Library Manager: Installing FS
Warning! Could not find the package with 'FS' requirements for your system 'linux_x86_64'
Library Manager: Installing Update
Warning! Could not find the package with 'Update' requirements for your system 'linux_x86_64'
Library Manager: Installing DNSServer

Unpacking  [------------------------------------]    0%
Unpacking  [###---------------------------------]    8%
Unpacking  [######------------------------------]   16%
Unpacking  [#########---------------------------]   25%
Unpacking  [############------------------------]   33%
Unpacking  [###############---------------------]   41%
Unpacking  [##################------------------]   50%
Unpacking  [#####################---------------]   58%
Unpacking  [########################------------]   66%
Unpacking  [###########################---------]   75%
Unpacking  [##############################------]   83%
Unpacking  [#################################---]   91%
Unpacking  [####################################]  100%
Library Manager<EMAIL_ADDRESS>has been installed!
Library Manager: Installing ESPmDNS
Warning! Could not find the package with 'ESPmDNS' requirements for your system 'linux_x86_64'
Dependency Graph
|-- AsyncTCP-esphome @ 1.2.2
|-- Preferences @ 2.1.0
|-- Crc16 @ 0.1.2+sha.719a7a1
|-- NukiBleEsp @ 2.0.0+sha.1de6290
|   |-- NimBLE-Arduino @ 1.4.1
|   |-- BleScanner @ 1.1.0+sha.575385f
|   |   |-- NimBLE-Arduino @ 1.4.1
|-- WiFi @ 1.2.7
|-- ESPAsyncWebServer-esphome @ 2.1.0
|   |-- AsyncTCP-esphome @ 1.2.2
|-- DNSServer @ 1.1.0
|-- noise-c @ 0.1.4
|   |-- libsodium @ 1.10018.1
Compiling /data/nuki/.pioenvs/nuki/src/esphome/components/api/api_connection.cpp.o
Compiling /data/nuki/.pioenvs/nuki/src/esphome/components/api/api_frame_helper.cpp.o
Compiling /data/nuki/.pioenvs/nuki/src/esphome/components/api/api_pb2.cpp.o
Compiling /data/nuki/.pioenvs/nuki/src/esphome/components/api/api_pb2_service.cpp.o
In file included from src/esphome/components/socket/socket.h:6,
                 from src/esphome/components/api/api_frame_helper.h:14,
                 from src/esphome/components/api/api_connection.h:3,
                 from src/esphome/components/api/api_connection.cpp:1:
src/esphome/components/socket/headers.h:127:10: fatal error: sys/ioctl.h: No such file or directory
 #include <sys/ioctl.h>
          ^~~~~~~~~~~~~
compilation terminated.
*** [/data/nuki/.pioenvs/nuki/src/esphome/components/api/api_connection.cpp.o] Error 1
In file included from src/esphome/components/socket/socket.h:6,
                 from src/esphome/components/api/api_frame_helper.h:14,
                 from src/esphome/components/api/api_frame_helper.cpp:1:
src/esphome/components/socket/headers.h:127:10: fatal error: sys/ioctl.h: No such file or directory
 #include <sys/ioctl.h>
          ^~~~~~~~~~~~~
compilation terminated.
*** [/data/nuki/.pioenvs/nuki/src/esphome/components/api/api_frame_helper.cpp.o] Error 1
In file included from src/esphome/components/api/proto.h:4,
                 from src/esphome/components/api/api_pb2.h:5,
                 from src/esphome/components/api/api_pb2.cpp:3:
src/esphome/core/log.h:14:10: fatal error: esp_err.h: No such file or directory

*****************************************************************
* Looking for esp_err.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:esp_err.h"
* Web  > https://registry.platformio.org/search?q=header:esp_err.h
*
*****************************************************************

 #include <esp_err.h>
          ^~~~~~~~~~~
compilation terminated.
*** [/data/nuki/.pioenvs/nuki/src/esphome/components/api/api_pb2.cpp.o] Error 1
In file included from src/esphome/components/api/proto.h:4,
                 from src/esphome/components/api/api_pb2.h:5,
                 from src/esphome/components/api/api_pb2_service.h:5,
                 from src/esphome/components/api/api_pb2_service.cpp:3:
src/esphome/core/log.h:14:10: fatal error: esp_err.h: No such file or directory

*****************************************************************
* Looking for esp_err.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:esp_err.h"
* Web  > https://registry.platformio.org/search?q=header:esp_err.h
*
*****************************************************************

 #include <esp_err.h>
          ^~~~~~~~~~~
compilation terminated.
*** [/data/nuki/.pioenvs/nuki/src/esphome/components/api/api_pb2_service.cpp.o] Error 1```

The compilation error doesn't look related to any of the things I'm using. We're you able to build other esphome projects? What yaml did you use?

Just another esphome update today, but still build failed. Yes, I can build all the other esphome devices. The difference to the others is that I never include external components, not sure if it is related to that.
The YAML looks like this:
esphome:
  name: nuki
  friendly_name: Nuki
  libraries:
  - Preferences
  - https://github.com/vinmenn/Crc16.git
  - https://github.com/uriyacovy/NukiBleEsp32

external_components:
  - source: github://uriyacovy/ESPHome_nuki_lock

esp32:
  board: esp32dev
  framework:
    type: arduino
    version: 2.0.3
    platform_version: 5.3.0

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "..."

ota:
  password: "..."

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Test Fallback Hotspot"
    password: "..."

captive_portal:

lock:
  # Required:
  - platform: nuki_lock
    name: Nuki Lock
    is_connected:
      name: "Nuki Connected"
    is_paired:
      name: "Nuki Paired"
  # Optional:
    battery_critical:
      name: "Nuki Battery Critical"
    battery_level:
      name: "Nuki Battery Level"
    door_sensor:
      name: "Nuki Door Sensor"
    door_sensor_state:
      name: "Nuki Door Sensor State"```

@flosch-dev, on which operating system do you build the project?

I'm using Home Assistant Operating System on x86-64 platform.

I apologize, but I don't have this setup and can't reproduce the issue. Maybe someone else could.

so far I was using the add-on of ESPHome within HomeAssistant. However as it seems I'm the only one with that problem, I tried now to build with ESPHome Docker image (official) and indeed the build was successful.
Not sure what the problem with the HomeAssistant is.
I will keep posted if I find out what was wrong there.
Thanks


ThriftRW changes Timestamp date to String format. flow types for thriftrw?

I noticed that the thriftrw appears to parse the date into a string of keep it as a native javascript date.
My thrift defintions are as follows
typedef i64 (js.type = "Date") Timestamp

struct Something {
  1: required i32 id
  2: required types.Timestamp createdAt
}

Expected Output
  export type TimestampType = string;

export type SomethingType = {|
  id: number,
  createdAt: types.TimestampType,
|};

Actual Output
  export type TimestampType = Date;

export type SomethingType = {|
  id: number,
  createdAt: types.TimestampType,
|};

Should we add special types for thriftrw so a set of flow types is created to match thrift spec and a set of flow types is generated to create types returned by thriftrw.
  export type TimestampType = Date;
  export type TimestampTypeRW = string;

export type SomethingType = {|
  id: number,
  createdAt: types.TimestampType,
|};
export type SomethingTypeRW = {|
  id: number,
  createdAt: types.TimestampTypeRW,
|};

The end result is that my generators for test data is passing flow validation because it is creating a string instead of a date.

Hmm, we already check for js.type - see https://github.com/uber-node/thrift2flow/blob/f67a26a422dd35029c02cd8749fa5e47dd514808/src/main/types.js#L55 - any idea why this isn't working for you?

I think that thriftrw parses the timestamp and returns it as a string instead of returning a date.

Is this still an open issue? Seems you resolved this with #158 correct?

Although in https://github.com/thriftrw/thriftrw-node/issues/158 it mentions that the strings are coerced to a date, it seems like I am still seeing a value as a string and note a date in the backend.

So looking at the code happening here so that when you specify the (js.type = "Date") that's when we use "Date" in the conversion. I am however seeing in our own product's execution that even if js.type says Date, thrift doesn't actually turn it into a Date object, just a Date parsable string which are two very different things indeed.
Luckily for us, in javascript
new Date("2018-06-23 01:34:54 +0000 UTC")
new Date(new Date("2018-06-23 01:34:54 +0000 UTC"))

Both result in the same date so even if people are aware of the issue (knowing it's a string and needing to convert it manually) the fix changing Date to map to string should still be backwards compatible for most people.
I think this makes sense and the line number you want to change is https://github.com/uber/thrift2flow/blob/master/src/main/types.js#L45
Feel free to make a diff and try out the change first and I'll be happy to take the pull request.

I've created a pull request for this, feel free to review and once you approve I'll merge it
https://github.com/uber/thrift2flow/pull/20

This is out with 0.4.1. Though this does make the change quite heavily tied to thriftrw-node which could require future work. Technically it should actually be an i64, it's just that thriftrw-node converts it to a consumable string. Given that we may have to add a switch in the future which lets us know which you're using so we can generate out the right type.


[FLINK-4394] RMQSource: QueueName accessible for subclasses

Thanks for contributing to Apache Flink. Before you open your pull request, please take the following check list into consideration.
If your changes take all of the items into account, feel free to open your pull request. For more information and/or questions please refer to the How To Contribute guide.
In addition to going through the list, please provide a meaningful description of your changes.

[x] General

The pull request references the related JIRA issue ("[FLINK-XXX] Jira title text")
The pull request addresses only one issue
Each commit in the PR has a meaningful commit message (including the JIRA id)

[x] Documentation

Documentation has been added for new functionality
Old documentation affected by the pull request has been updated
JavaDoc for public methods has been added

[x] Tests & Build

Functionality added by the pull request is covered by tests
mvn clean verify has been executed successfully locally or a Travis build has passed

The queueName is needed if the subclasses override setupQueue.

I'm going to merge the change once travis gives green light.

Merging ...


Phaser untestable.

I am trying to unit test my code but not only is Phaser itself not unit tested but it also actively prevents testing. This is because Phaser makes the following mistakes:

Runs code when the library is loaded.
Assumes it is running inside a browser.

As an example, I get burned very quickly by statements like:
PIXI.Text.fontPropertiesCanvas = document.createElement('canvas');

This code runs when the library is loaded and assumes a global document object exists.
I do not believe any code should run until Phaser's entry point is invoked, i.e. new Phaser.Game. If the Phaser library could be loaded without running any code it would already be a lot easier to test even if it continued to assume browser objects are present. Therefore this ticket can be considered resolved when the library can be loaded without running its own code.

This ticket will never be resolved for as long as Phaser 2 remains sitting on-top of Pixi (which is basically 'forever'). This can only realistically be addressed in Phaser 3.

This feature request has been moved to the Phaser 3 feature list (so is being closed here)


improve version check

Motivation
The version check added in #1572  is too strict: we need to be able to add commits after the devnet branch is cut.
Proposal

Create method VersionInfo::is_probably_incompatible_with to specify when a warning is needed
nit: Embed the commit hash in the github URL.

Test Plan
CI + tested manually
Release Plan
To be cherry-picked in the current devnet release branch

The CI error seems unrelated


NullReferenceException in ResponseReader.CreateAnnotations

I'm using the latest NuGet package (<IP_ADDRESS>) and running into a null reference exception when trying to run a grouping query.
https://services.odata.org/TripPinRESTierService/(S(iebzmrfqw2dzcaunofkhg3uk))/People?$apply=groupby((LastName))
It is throwing the exception on this line:
https://github.com/simple-odata-client/Simple.OData.Client/blob/61dc9fd08e877a9e52812bce4c1d9b5e109f41ed/src/Simple.OData.Client.V4.Adapter/ResponseReader.cs#L218
The above query response contains @odata.ids with null values which is probably why odataEntry.Id is null.

me too, got the same issue

all the standard aggregated odata response will contain @odata.id as null.
this is failing for odata aggregated calls.
any workaround available or any tentative timeline for fix?


DropdownButton bad behaviour when tapped and keyboard is showing

Have view with a TextField and a DropdownButton.  If the user has the TextField active (keyboard is showing) and they tap the DropdownButton the behaviour is not as expected.
The DropdownButton will open for 1 frame and immediately close again making the user see a box flash up then disappear.  The keyboard closes as you would expect.
The user would expect either:

The keyboard closes with no visual flash from the DropdownButton and the DropdownButton doesn't open.
The keyboard closes and the DropdownButton opens.

This only happens when the keyboard is showing; if the TextField has a cursor but the keyboard is hidden then clicking on the DropdownButton will open it normally as expected.  To speculate, it suggests that when the keyboard is showing the tap on the DropdownButton is allowing it to open normally but is then immediately closed by the closing of the keyboard meaning its contents box shows for 1-frame.
Doctor:
[√] Flutter (Channel beta, v0.7.3, on Microsoft Windows [Version 10.0.17134.285], locale en-GB)
[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    X Android license status unknown.
[√] Android Studio (version 3.0)
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
[√] VS Code, 32-bit edition (version 1.26.1)
[√] Connected devices (1 available)

This problem can even be seen in the flutter gallery for pickers:
https://github.com/flutter/flutter/blob/master/examples/flutter_gallery/lib/demo/material/date_and_time_picker_demo.dart
If you start typing a name for the Event and then click the Activity dropdown at the bottom.
Problem 1: The first click just dismisses the keyboard when it should actually open the dropdown
The second click opens the dropdown.
The third click selects an entry in the dropdown.
Problem 2: The cursor is shown as blinking in the Event field at the top, but focus should not have returned to the Event field.
Problem 3: The keyboard is missing even though the cursor is blinking.
This makes the user experience very bad.
The same problem occurs on this same page if one of the date or time fields is selected (instead of the dropdown) when entering a name in the Event field.
Is there a workaround to keep the focus from returning to a previously focused field?

I have the same problem. :-( No Solution yet?

I have the same problem. :-( No Solution yet?

@NotThatBowser Allow me to add my experience with this issue.
I believe this is not related to the soft keyboard being up or down. I'm experiencing the same problem in an emulator with soft keyboard disabled.
1- Tap the TextField. The TextField is focused and becomes editable (via hard-keyboard or soft-keyboard if enabled)
2- Tap DropdownButton.  The TextField loses focus > The DropdownButton won't display > TextField regains focus. The TextField gets into this weird state where it's focused (with cursor blinking) but it's not in an editable state - Hard keyboard will not type and soft keyboard (if enabled) will not pop out.
3- (fork)
3- a) Re-tap DropdownButton. Now it pops-up. Possibly because TextField was not really editable despite being focused (speculation).
3- b) (instead of 3-a) Re-tap TextField. TextField keeps in the focused state but now it's editable. (it responds to keys and the Soft-keyboard shows if enabled). And are back to state 1.
It appears to be a problem in DropdownButton when opening with some TextField on focus and editable. It won't happen with a PopupMenuButton.
WRT the weird state where TextField gets into (focused, blinking but not editable), Im not sure this is the intended behavior or a new separate issue. This behavior is identical to dismissing/selecting an item in either PopupMenuButton and PopupMenuButton.
I've tested with flutter dev v1.5.8 and the current master 549b412656bb4db80920de56a09912e079fdd2a2
My test code:
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  final values = <String>["1","2","3","4"];
  FocusNode _focus = new FocusNode();

  @override
  void initState() {
    _focus.addListener(_onFocusChange);
    super.initState();
  }

  _onFocusChange(){
    debugPrint("TextField Focus: ${_focus.hasFocus}");
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'Flutter Demo',
        home: Scaffold(
          body: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[

              DropdownButton<String>(
                  value: values[0],
                  items: values.map<DropdownMenuItem<String>>(
                          (value) => DropdownMenuItem<String>( value: value, child: Text("DropdownMenuItem option:"+value) )
                  ).toList(),
                  onChanged: (_){},
              ),

              PopupMenuButton<String>(
                itemBuilder: (BuildContext context) {
                  return values.map<PopupMenuEntry<String>>(
                          (value)=>PopupMenuItem<String>( value: value, child: Text("PopupMenuItem option:"+value) )
                  ).toList();
                },
              ),

              TextField(
                focusNode: _focus,
              ),

            ],
          ),
        )
    );
  }
}

Some context: When the DropdownButton is opened it lists the options and upon a change to the screen size (orientation) it dismisses the list. The user will have to tap it again to open. I believe this would be the normal usage pattern.
To achieve this, DropdownButton internally subscribes to an observer that triggers this code below.
https://github.com/flutter/flutter/blob/64749826498123e795c77f9bec8cea804a40a051/packages/flutter/lib/src/material/dropdown.dart#L728-L733
It removes the route responsible for presenting the list of options.
Back to the case-study:
For some reason (that I don't know) when the TextField is focused and "editable", tapping on the DropdownButton triggers a didChangeMetrics and so the route is immediately removed, as if the user rotated the screen.
I don't know much about the connection between focus changing and the didChangeMetrics call.
A quick one line patch to workaround would be to ignore didChangeMetrics
void didChangeMetrics() {
    //print(WidgetsBinding.instance.focusManager.toString());
    //_removeDropdownRoute();
  }

But this disrupts DropdownButton's normal behavior with orientation.
Anyone knows how to test the event that triggers didChangeMetrics?
There's this code in EditableText to detect the presence of a soft-keyboard. This test would be fine in a scenario with a soft-keyboard. But as I mentioned in my previous comment the DropdownButton also fails in a device without soft-keyboard.

The behavior in a native Android app seems to be that opening a dropdown does not dismiss the keyboard, and therefore the application's dimensions would not change (didChangeMetrics would not be called). This can be observed in Contacts App on a Google Pixel (see screenshot). Would the correct solution be to keep the keyboard open when opening a dropdown?

Is there some news on that? It is an irritating issue, specially in forms that mix multiple text fields and dropdowns.

Is there any workaround for this issue?

Any news?

Having the same trouble here..

void didChangeMetrics() {
    //print(WidgetsBinding.instance.focusManager.toString());
    //_removeDropdownRoute();
  }

But this disrupts DropdownButton's normal behavior with orientation.

So far this seems the only workaround for me, I didn't find so far any disruption but had to do a better test.

@cdsaenz did you fork the dropdown for the solution above?

I forked the Dropdown button and removed the didChangeMetrics code. I noticed some awkward behavior when the keyboard disappears.
Expected behavior

Observed behavior

I think the soft keyboard affects the layout and when it disappears, causes this to happen. I am sure I can fix with my layout, but this is what I observed.

Honestly I am shocked that Google has not addressed this issue after a whole year...

I am afraid its some kind of flutter issue with keyboard. I have same problem with dropdowns and even problem with text input where keyboard instantiation change cursor position to begin.

(just clicking textfield and dropdown back and forth)

1.9.1 has 1,548 Pull Requests merged but nothing actually useful, like this one or #22075

after reading @rmarau analysis and do some experiments myself, i think the main issue is caused by the triggered didChangeMetrics method, which then trigger _removeDropdownRoute.
because it's actual implementation using Navigator.push(), so it'll remove the route _removeDropdownRoute triggered.
the other thing i noticed is, didChangeMetrics (which trigger _removeDropdownRoute) triggered not only when the device orientation changed (or rotated). based on the documentation,

Called when the application's dimensions change. For example, when a phone is rotated.
This method exposes notifications from [Window.onMetricsChanged].

and when soft-keyboard up or down, it actually did change the application's dimensions, which then trigger didChangeMetrics. but i can't confirm if it's triggered when a TextField gain focus with soft-keyboard disabled (like in emulator).
IMO, the _removeDropdownRoute should only executed when orientation changed (rotated), so the implementation should be changed a bit to detect the real orientation changed based on that Window.onMetricsChanged notifications (when didChangeMetrics triggered).

IMO, the _removeDropdownRoute should only executed when orientation changed (rotated), so the implementation should be changed a bit to detect the real orientation change based on that Window.onMetricsChanged notifications (when didChangeMetrics triggered).

i've done the change myself here: https://github.com/alyyasser/flutter/commit/c5470efc34672a1d81d923bfa2c62e3b93aad5e0
it seems good enough for me, feel free to check it out.
but, it doesn't fix the issue mentioned by @NotThatBowser
here is some test i've done, using test code from @rmarau

after the change i did in the commit above, it behave like PopupMenuButton now, but i doesn't feel quite right though.
the last idea i have is, to apply some kind of delay mechanism in _handleTap method if it triggered when soft-keyboard is open, wait until the soft-keyboard's closing animation to be done before executing the code to push the dropdownRoute.

Disabling _removeDropdownRoute works for me. I hope it wont affect other part of my UI. Thanks

Disabling _removeDropdownRoute works for me. I hope it wont affect other part of my UI. Thanks

it'll. you can try rotate your screen, and compare the behaviour between _removeDropdownRoute disabled and enabled.

Wow, over a year and still no solution or work around  👎

Wow, over a year and still no solution or work around 👎

very sad :-(

Just encountered this... spent 10 hours troubleshooting before finding this issue. Any concrete fix yet please?

I am afraid its some kind of flutter issue with keyboard. I have same problem with dropdowns and even problem with text input where keyboard instantiation change cursor position to begin.

(just clicking textfield and dropdown back and forth)

Your issue may be resolved by making sure your textEditingController is created outside of your build method and inside the initState so that it's not rebuilt  whenever the widget is. I've seen and fixed something like this before

Another issue that's related is that the focus returns to the previously used TextField even if the keyboard was dismissed.

Somehow, my code changed and now this is becoming an issue for me. Can't believe this is a problem. Do we have any preferred fix for this?

Disabling _removeDropdownRoute works for me. I hope it wont affect other part of my UI. Thanks

@stomachflu Can you guide how to do this?

@Purus What I did was copy in the source file to my project. Then comment out the body of the didChangeMetrics method (line 928).
You then have to import that file using a library prefix to differentiate it from the one in material library.
That works for our app because we are portrait only so no screen rotations. If you support screen rotations this could do weird things if you had the drop down open and rotated the screen.

Here is what worked for me.
It seems it happens only when there are text and dropdown fields together on one form and when I have a text field focused and I try to open a dropdown. Add following lines in your code and see if it works for me, it worked for me:
For all text fields, take a focus node each:
FocusNode textField = FocusNode();
FormBuilderTextField(
        focusNode: textField,
        onEditingComplete: textField.unfocus,

Now when you will open the dropdown, it will force it to unfocus the text field. I am using flutter_form_builder but it should work the same way for normal TextFormField.

@liteux's suggestion does not fix the underlying problem that the dropdown that is starting to display gets dismissed because the layout metrics are changing due to the keyboard being dismissed. It does let you actually open the drop down menu (which did not happen before for me), but it requires you to tap the drop down twice.

I'm with the same problem!
For now, I will to use an popup, but it's necessary to solve this problem.

Good news is that 3 days ago there was a PR merged that supposedly fixes this issue: https://github.com/flutter/flutter/pull/42482

I just upgrade to master and the problem sloved, but I noticed that checkbox's text is changed to unexpected Alignment. However, the main problem sloved.

Yes,  #42482 fixes this issue.  @Tokenyet, that sounds like a different problem.  Can you file a separate issue for that?

Strange I am in flutter version v1.9.1+hotfix.6  and still have this problem.

@andersonmendesdev that's because it hasn't landed in stable yet. When dee75839087fb9cdfab342dd26587caa51b31eaf is in stable, you will have the fix, or you can switch to the master channel until then.

@gspencergoog  Thanks yes, I will wait for the stable version then.

It's not perfect though..
As you can see:

The dropdown stays open, but the position of the popup changes as the keyboard closes... so the position of the dropdown is weird.

A workaround if you need the fix ASAP and cannot wait until it goes into a stable release:
Listener(
    onPointerDown: (_) => FocusScope.of(context).unfocus(),
    child: DropdownButton<...>(...),
)

@rserro
people starting out with flutter will find this confusing. i also got to this thread because of this issue. can you please explain where exactly this needs to be added?

@chitgoks sure.
If you are using a DropdownButton and facing the problem of this thread, your widget build method will probably look like:
@override
Widget build(BuildContext context) {
    ...
    child: DropdownButton<Type>(your args),
    ...
}

To "solve" the problem, just encapsulate your DropdownButton(your args) under the code I wrote like this:
@override
Widget build(BuildContext context) {
    ...
    child: Listener(
        onPointerDown: (_) => FocusScope.of(context).unfocus(),
        child: DropdownButton<Type>(your args),
    ),
    ...
}

@rserro  awesome! this works! thank you very much!

onPointerDown: (_) => FocusScope.of(context).unfocus(),

A workaround if you need the fix ASAP and cannot wait until it goes into a stable release:
Listener(
    onPointerDown: (_) => FocusScope.of(context).unfocus(),
    child: DropdownButton<...>(...),
)

thanks, it works for me

Here is what worked for me.
It seems it happens only when there are text and dropdown fields together on one form and when I have a text field focused and I try to open a dropdown. Add following lines in your code and see if it works for you, it worked for me:
For all text fields, take a focus node each:
FocusNode textField = FocusNode();
FormBuilderTextField(
        focusNode: textField,
        onEditingComplete: textField.unfocus,

Now when you will open the dropdown, it will force it to unfocus the text field. I am using flutter_form_builder but it should work the same way for normal TextFormField.

This fix, is correct!

@chitgoks sure.
If you are using a DropdownButton and facing the problem of this thread, your widget build method will probably look like:
@override
Widget build(BuildContext context) {
    ...
    child: DropdownButton<Type>(your args),
    ...
}

To "solve" the problem, just encapsulate your DropdownButton(your args) under the code I wrote like this:
@override
Widget build(BuildContext context) {
    ...
    child: Listener(
        onPointerDown: (_) => FocusScope.of(context).unfocus(),
        child: DropdownButton<Type>(your args),
    ),
    ...
}

This is also a good solution , but will suggest  :
      FocusScopeNode currentFocus = FocusScope.of(context);

      if (!currentFocus.hasPrimaryFocus) {
          currentFocus.unfocus();
      }
  }

A workaround if you need the fix ASAP and cannot wait until it goes into a stable release:
Listener(
    onPointerDown: (_) => FocusScope.of(context).unfocus(),
    child: DropdownButton<...>(...),
)

work for me really well thanks much

I have had no luck with any of the solutions above. No matter what I try, keyboard closes when I click the dropdown button.

Was this fixed in stable release cos I still observe very weird dropdown behaviour.

This didn't fix it for me it was still happening I did this instead which stoped the issue:
Listener(
onPointerDown: (_) => FocusScope.of(context).requestFocus(FocusNode(),
child: DropdownButton<...>(...),
)


xor logistic regression

Hey @msaroufim! Can you run the pre-commit run --all to fix pre-commit issues? Its probably black.

Thanks @msaroufim !


First assignment

Please upload the whole java code/project, you don't have to put it in .txt files

Is this ok ?

Yes, well done

Thank you :)


Not retrieving messages injected/append via RASA API

I've been trying to inject and appending message into the conversation, the RASA API is working correctly and I'm able to retrieve conversation history with both conversations from rasa-webchat UI and appended content via API using Postman @ Chrome.
However, the appended message is not shown in the rasa-webchat, it seems only displaying those saved in the session storage, but not the updated conversation.
How can I sync or retrieve the updated conversation into the session storage?
API used for appending messages/trigger intents:
https://rasa.com/docs/rasa/pages/http-api#operation/addConversationMessage
https://rasa.com/docs/rasa/pages/http-api#operation/triggerConversationIntent
Postman triggered intent:

Information from the rasa-webchat UI, the sender_Id is correct:

credential.yml:

Please help!

Realised I used the wrong print screen, just to clarify that I've been trying many sessions and I'm sure their session id are the same.


repeat.for bound to a map within an if.bind throws exception when re-binding

The repeat.for binds correctly the first time, but if you are re-binding, for example if you are selecting a different item from a list, the follow exception is thrown the second time the if.bind evaluates to true:
Uncaught TypeError: Cannot set property '$index' of null
updateBindingContext @ repeat.js:268
handleMapChangeRecords @ repeat.js:392
bind @ repeat.js:81
bind @ aurelia-templating.js:2706
bind @ aurelia-templating.js:802
bind @ aurelia-templating.js:2710
bind @ aurelia-templating.js:802
valueChanged @ if.js:55
BindableProperty.createObserver.selfSubscriber @ aurelia-templating.js:2937
call @ aurelia-templating.js:2809
flushMicroTaskQueue @ aurelia-task-queue.js:110
(anonymous function) @ aurelia-task-queue.js:60

@DarienFord can you confirm you have templating-resources 0.16.1?
https://github.com/aurelia/templating-resources/releases/tag/0.16.1
You should be able to execute jspm update and get all the bug fixes from today.  There's one more coming in binding, unrelated to this issue though

Confirmed, 0.16.1 does not fix this.

We are doing some big refactoring of the repeater to make it pluggable. Plan is to get that and fix for this in by the weekend.

Fixed in https://github.com/aurelia/templating-resources/commit/1d96e6eea42760fa78580fce4f6b26fa57ed8ba3


getIsAllRowsSelected returns unexpected result when using manual pagination

Describe the bug
When using manualPagination and supplying a pageCount, and then calling the function returned by getToggleAllPageRowsSelectedHandler - would expect getIsAllRowsSelected to be false, but this is not the case.
In fact, I would expect it to be impossible for getIsAllRowsSelected to be true whenever pageCount is greater than 1 when using manualPagination - is this the wrong mental model or a bug?
Your minimal, reproducible example
https://codesandbox.io/p/sandbox/busy-jones-p3qqnd?file=%2Fsrc%2Fmain.tsx&selection=[{"endColumn"%3A6%2C"endLineNumber"%3A97%2C"startColumn"%3A1%2C"startLineNumber"%3A86}]
Steps to reproduce

Click "Toggle all page rows selected"
Observe output

Expected behavior
As a user I would expect it to be impossible for getIsAllRowsSelected to be true whenever pageCount is greater than 1 when using manualPagination, as the table can't know the ids of those rows in order to "select" them
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
MacOS / Chrome
react-table version
8.7.9
TypeScript version
No response
Additional context
No response
Terms & Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

I suppose you can use getIsAllPageRowsSelected (returns whether or not all rows on the current page are selected.) instead of getIsAllRowsSelected.
If you are using manual pagination; and if the pagination info comes from the server, than, it is more appropriate to use getToggleAllPageRowsSelectedHandler, getIsAllPageRowsSelected, getIsSomePageRowsSelected, toggleAllPageRowsSelected APIs, which are all related with the current page.

I suppose you can use getIsAllPageRowsSelected (returns whether or not all rows on the current page are selected.) instead of getIsAllRowsSelected.

If you are using manual pagination; and if the pagination info comes from the server, than, it is more appropriate to use getToggleAllPageRowsSelectedHandler, getIsAllPageRowsSelected, getIsSomePageRowsSelected, toggleAllPageRowsSelected APIs, which are all related with the current page.

Yep, this all makes sense.
Isn't it weird though, that getIsAllRowsSelected would return true when the library knows that a) pagination is handled externally, and b) the page count is greater than 1? I would expect that getIsAllRowsSelected should always be false in this case. Maybe just me.

I suppose you can use getIsAllPageRowsSelected (returns whether or not all rows on the current page are selected.) instead of getIsAllRowsSelected.

If you are using manual pagination; and if the pagination info comes from the server, than, it is more appropriate to use getToggleAllPageRowsSelectedHandler, getIsAllPageRowsSelected, getIsSomePageRowsSelected, toggleAllPageRowsSelected APIs, which are all related with the current page.

Yep, this all makes sense.
Isn't it weird though, that getIsAllRowsSelected would return true when the library knows that a) pagination is handled externally, and b) the page count is greater than 1? I would expect that getIsAllRowsSelected should always be false in this case. Maybe just me.

Make sense to me


Possible extra quotes in Developer Guide - Scope $watch Depths

I can't see any diffrence between $watch by reference and $whatch by value in  https://docs.angularjs.org/guide/scope , secction Scope $watch Depths
I fieel that there are more quotes than required in this example.
https://docs.angularjs.org/img/guide/concepts-scope-watch-strategies.png
Later
MS

what is confusing?
It is saying:
With the third parameter of $watch() not set to true, then if the object has the same identity, it will not result in a change notification even if properties are changed (eg by pushing an array or changing a property of a nested object). If the third parameter is set to true, then it will recursively look at each property of an object, and alert you if any of them change.

I feel like the picture illustrates this nicely, but perhaps you could offer suggestions for improving it that we could look at, in a new issue.


bash build.sh  error (CMake Error at CMakeLists.txt:57 (include_directories))

Am getting the above error
Have installed all the required dependencies using conda install, in a virtual conda environment
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Using custom python path /home/vishweshk/.conda/envs/triads/lib/libpython2.7.so.1.0 and /home/vishweshk/.conda/envs/triads/include/python2.7
-- Found PythonLibs: /home/vishweshk/.conda/envs/triads/lib/libpython2.7.so.1.0 (found suitable version "2.7.13", minimum required is "2.7")
-- Found Boost 1.70.0 at /home/vishweshk/.conda/envs/triads/lib/cmake/Boost-1.70.0
--   Requested configuration: QUIET
-- Found boost_headers 1.70.0 at /home/vishweshk/.conda/envs/triads/lib/cmake/boost_headers-1.70.0
Boost 1.54.0 found.
CMake Error at CMakeLists.txt:57 (include_directories):
  include_directories given empty-string as include directory.

-- Found Boost 1.70.0 at /home/vishweshk/.conda/envs/triads/lib/cmake/Boost-1.70.0
--   Requested configuration: QUIET COMPONENTS python
-- Found boost_python 1.70.0 at /home/vishweshk/.conda/envs/triads/lib/cmake/boost_python-1.70.0
-- No suitable boost_python variant has been identified!
--   libboost_python27.so.1.70.0 (shared, BUILD_SHARED_LIBS not ON, set Boost_USE_STATIC_LIBS=OFF to override)
--   libboost_python27.a (static, Boost_USE_STATIC_LIBS=OFF)
Boost 1.54.0 found.
Found Boost components:
   python

Despite Boost being found , why is the BOOST_INCLUDE_DIR variable giving an empty string?

Switched to a dockerized container, and built from scratch in it. Got it working.

Switched to a dockerized container, and built from scratch in it. Got it working.
Hi,
Congratulations on successfully getting it to work, I'm still having a lot of problems with the build process.
So I would like to ask you if you can share the docker image.
If it is convenient, your sharing will benefit the public, thank you very much.


Group focus callback is not NULL by default

I mentioned this in #125 but it was not fixed.
Creating a group will cause crash/exception etc.
Simply add group->focus_cb = NULL; to lv_group_create.

Thank you, I fixed it in beta.


apple watch resolution is slightly off

framer device viewer's apple watch resolution is wrong at 320 x 400 pixels when it should be either 272 x 340 & 312 x 390
https://developer.apple.com/library/prerelease/ios/documentation/UserExperience/Conceptual/WatchHumanInterfaceGuidelines/Layout.html#//apple_ref/doc/uid/TP40014992-CH22-SW1

I'll fix this.


Error on Format request

Describe the bug
Hi,when i click on the button SPID i receive an error

I tried to generate the certificates but it seems that I'm doing something wrong

You cannot simply login into SPID with a self signed certificate. You should follow the on-boarding procedure with the authority.
You can start from here: https://www.spid.gov.it/cos-e-spid/diventa-fornitore-di-servizi/


Suggested additional Panache features

I've had a few users working with Barley Panache now. A request I have is an ability to highlight selected genes of interest, perhaps a tick box to show only genes being sorted by PAV so that it becomes easier to use a panel of genes in a single view for publication figures. Also an export/reporting feature of the selected gene regions to show PAV of that region, and the genes present with their percentage PAV. These would improve the functionality of Panache a lot. Thanks.

Hi @brettChapman ,
Thank you for the new dedicated GitHub issue. Please let me know if the following could cover your needs or is a correct understanding of what you would like to achieve:

Highlighting selected genes of interest:
At a specific region, you would like to be able to hide visually some genes from the annotation track while keeping on display only some selected by the user. We could imagine a list containing the names of the genes present in the current window, with an option to toggle their visibility individually. This would hide/show their glyphs on the annotation track accordingly. It is also possible to highlight them by adding color or some kind of shadow behind them instead of hiding them completely. Highlighting by displaying them with a special color would have my preference. We could even imagine enabling users to attribute a color for each gene of their liking, though that would be more difficult to implement. A possible middle ground would be to enable a choice of color between the default black, a highlight color, and background grey (which would be equivalent to hiding them).
When you say "being sorted by PAV", do you mean that the list of genes to highlight should be sorted with the most present gene on top for example? To make it easier to select the genes that should be highlighted?

Export features
You would like to extract a file crossing the information of PAV on a region with the gff information, something that could look like this:

# Panache PAV x GFF export
# PAV: pavFile.name
# Genes: GffFile.name
# Region: CHROMNAME from START to STOP
GeneID       |   %PAV   | StartPos | StopPos | Genome1 |  Genome2 ...
someGene     |   100%   |  25448   |  36547  |    1    |    1
anotherGene  |    97%   |    362   |  16695  |    0    |    1

... sorted with the most present gene on top.

Hi @brettChapman ,
I took some time to add an export function button that you can find in the latest versions of Panache, added with commits 7644990 (for the bananaGenomeHub branch) and commit d81a3d7 (for the main branch).
As long as both a pav file and a gff file are available, a download button is visible:

It enables users to export a file looking like the following:
'# Panache PAV x GFF export
'# PAV: NameOfYourPavFile.pav
'# Genes: NameOfYourGffFile.gff
'# Region: chr01 from 17597524 to 17832564

AnnotID
mean
start
stop
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O

Ma01_g20380
86.67
17685364
17688075
100
100
100
0
100
0
100
100
100
100
100
100
100
100
100

Ma01_g20410
86.67
17777074
17777936
100
100
100
100
100
0
100
100
100
0
100
100
100
100
100

Ma01_g20340
80
17620823
17621956
100
100
100
0
0
0
100
100
100
100
100
100
100
100
100

In Panache, when you click on the download button, it creates this 'coverage' matrix, where for each annotation ID it computes a 'coverage' score. This score per genome is based on the proportion of the annotation that is covered by at least one present panBlock. A mean score is calculated and all annotations are sorted, with the most covered/present on top. The downloaded file extracts only the annotation that are visible on screen when pressing the button, but the data for the whole chromosome are created anyway so we could download these if you prefer.
I have just noticed that the header is not writing properly, I will be working on it right away.

Done! I corrected the matrix so that it displays this header now:
annotID	meanCoverage	annotStart	annotStop	A	B	C	D	E

Thanks @SingingMeerkat
Sorry for the delay, I've been preoccupied with other projects. I'll test out the new updated and provide feedback when I can.
Where should the GFF and PAV files be located? At the moment I just have the corresponding JSON files uploaded to Panache

Hi @SingingMeerkat
I tried with the new commit 'https://github.com/SouthGreenPlatform/panache/commit/76449907eb5600a578748bd4a097632ab5f3d7cc` on the bananaGenomeHub branch.
git cloned the branch and then did a git checkout 7644990
I noticed while ediitng the LocalFilter.vue file that new entries are available:
this.updatePavFileName('OriginOfPavData.pav');
this.updateGffFileName('OriginOfGffData.gff');
Should these point to the PAV file and GFF file used to generate the JSON files, and should they be in the Public folder? and should they have the exact same naming convention as the JSON files?
I did all that, and found that the page doesn't load up.

Hi @brettChapman , sorry for the delay, I started a PostDoc a month ago and did not have much time to check that yet.
About this.updatePavFileName('OriginOfPavData.pav'); and this.updateGffFileName('OriginOfGffData.gff');
These two lines ask the app to store the file names of the .pav and .gff that had been used to create the .json file that is preloaded, so that when you are using the app you can see on which file/data you are working.
Normally, you could put whatever you want in it as it is supposed for display purpose only.
It should not prevent the page to load though, I'll look into it.
I had troubles with the package-lock.json file (a configuration file for managing the required packages) recently, that could be related.

Hi @SingingMeerkat
I managed to get it working somehow. I have found the excel spreadsheet doesn't match up to the coverage reported though for the genes. I'm looking at gene HORVU.MOREX.r3.2HG0208140. The excel spreadhsheet says either 100% or 0%. While the hover over feature for the search criteria within Panache shows some genomes only have like 80% coverage.


Parasite is now an item that fits on the mask slot rather than being an overlay sprite

About the PR
fixes #3255
Media
https://github.com/user-attachments/assets/4247ad12-2258-41e7-9824-04ace20e0cab

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

Changelog
none

conflicts fixed


Statement about using the OR clause does not work...

The article says "Microsoft Teams, Microsoft Kaizala, Microsoft Skype for Business and Microsoft Visio do not support the Require app protection policy grant. If you require these apps to work, please use the Require approved apps grant exclusively. The use of the or clause between the two grants will not work for these three applications."
2 Things:

This is more than three (3) applications
MS Teams seems to work just fine with an OR clause.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: bd934939-4dbb-3a92-f996-56b9557f49ac
Version Independent ID: 3cda6b81-26e8-c9ac-e768-d912636a461b
Content: Grant controls in Conditional Access policy - Azure Active Directory
Content Source: articles/active-directory/conditional-access/concept-conditional-access-grant.md
Service: active-directory
Sub-service: conditional-access
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

We are planning major updates to this article to make it clearer for customers. Taking these thoughts to my backlog to work with the product group on updates to docs and product function. #please-close


[FLINK-10000][streaming]Fix the example of CoGroupedStreams

What is the purpose of the change

Fix the example of CoGroupedStreams.java in comments

Brief change log

Fix the mistake by replace the param of equalTo, MyFirstKeySelector, with MySecondKeySelector

Verifying this change

n/a

Does this pull request potentially affect one of the following parts:

n/a

Documentation

n/a

It's just kind of misleading, I was tried to correlate the keyselector with the input stream, which didn't mean two selectors always be different. Never mind, it's not a big deal.


New features

at https://GitHub.com/MicrosoftDocs/visualstudio-docs/issues/1045

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: deb3386e-6b18-1cbd-9f1b-523b27b6521b
Version Independent ID: 5ddf5e28-86d1-28b6-80ef-332bf93e17ac
Content: Update Visual Studio 2017 - Visual Studio
Content Source: docs/install/update-visual-studio.md
Service: unspecified
Product: visual-studio-dev15
GitHub Login: @TerryGLee
Microsoft Alias: tglee

OK ... we'll close this one as a duplicate and place our reply in GitHub Issue 1044 instead.


Functions and Storage deprecated Error variables

Deprecate Error variables in advance of Swift-first implementations that do not support globals.
API review internally at go/storage-function-error-variable-deprecations

I was confused when I saw this after upgrading. So FunctionsErrorDetailsKey is deprecated, but what I am supposed to replace it with? There is no mention in the deprecation message, just that it will go away.

Thanks for the clarification @paulb777


Clean out articles not referenced in the developer documentation TOC

This is a plan for how to clean up the remaining files in our ReadTheDocs that aren't properly managedin the TOC.
We should probably just delete these:

/home/tabbott/zulip/docs/brief-install-vagrant-dev.md

We should just add these to the TOC:

/home/tabbott/zulip/docs/code-of-conduct.md: maybe move it to contributing/
/home/tabbott/zulip/docs/migration-renumbering.md: Move to subsystems/
/home/tabbott/zulip/docs/production/email.md: Just add to production TOC
/home/tabbott/zulip/docs/production/ssl-certificates.md: Just add to production TOC
/home/tabbott/zulip/docs/subsystems/conversion.md: Just add to subsystems TOC
/home/tabbott/zulip/docs/subsystems/input-pills.md: Just add to subsystems TOC
/home/tabbott/zulip/docs/subsystems/unread_messages.md: Just add to subsystems TOC
/home/tabbott/zulip/docs/users.md: Move to subsystems and add to subsystems TOC

These we probably actually just don't want in the TOC, and should figure out how to exclude from this warning:

/home/tabbott/zulip/docs/production/expensive-migrations.md:
/home/tabbott/zulip/docs/production/install-existing-server.md:
/home/tabbott/zulip/docs/production/multiple-organizations.md
/home/tabbott/zulip/docs/password-strength.md: Should move under production/ for better structure too.
/home/tabbott/zulip/docs/request-remote-dev.md: Move to development/request-remote.md first.  Make sure to update zulip-gci repo too.

@zulipbot  claim

Hey @Balaji2198, I can jump in and help with the few remaining files if you don't mind. I helped with the recent docs migration so I am already familiar with the clean up that needs to be done here.
Just to summarize, I think this is all that we have left to do:
Move files and update broken links accordingly

docs/code-of-conduct.md      -> docs/contributing/code-of-conduct.md (and add to TOC)
docs/password-strength.md   -> docs/production/password-strength.md
docs/request-remote-dev.md -> docs/development/request-remote.md

Exclude from warnings saying document's not included in TOC

docs/production/expensive-migrations.md
docs/production/install-existing-server.md
docs/production/multiple-organizations.md
docs/production/password-strength.md
docs/development/request-remote.md

Let's skip moving code-of-conduct for now.  I think it's possible we might want to leave it (and possibly some some things currently in "overview" out to the top level, so they're extra visible.

(Also, I think I moved request-remote)

Okay, got it. So does that also mean you want code-of-conduct.md added to the TOC? Do you want it above or below "Overview" on the nav bar?
docs/code-of-conduct.md

I'm not sure; I was sorta thinking this would go with exploding "overview" to all be top-level (or mostly be top-level), so wanted to procrasinate a bit on figuring that out.

Okay cool, yeah that would make sense. The red warning for code-of-conduct.md will remind us about it later :)
Getting rid of the warnings while having the files not show up in the TOC is not very well documented in sphinx though. So I went ahead and made a PR that should complete this cleanup.


Merge GEOS-gtFV3 interface into develop

Build and run gtFV3 on demand

Code to build the GEOS-gtFV3 interface is activated by the cmake option BUILD_GEOS_GTFV3_INTERFACE
BUILD_GEOS_GTFV3_INTERFACE also sets the macro RUN_GTFV3, used in FV_StateMod.F90
All of the interface related code resides in the directory geos-gtfv3

Also pinging @aoloso as I know he is looking at FV_StateMod at the moment. Just to keep him aware.


If useServerPrepStmts=true is used, the experiment does not take effect

jdbc:mysql://ip:3306/chaosblade?useSSL=false&useUnicode=true&characterEncoding=gbk&useServerPrepStmts=true

I have submit a pr for this issue, please take a look


Unpin numpy

Context
What is the purpose of this PR? Is it to

[ ] add a new feature
[ ] fix a bug
[ ] update tests and/or documentation
[x] other (modify dependencies)

Fixes #1344
Changelog
What are the changes made in this PR?

unpin numpy

Test plan
Please make sure to do each of the following if applicable to your PR. If you're unsure about any one of these just ask and we will happily help. We also have a contributing page for some guidance on contributing.

[ ] run pre-commit hooks and linters (make sure you've first installed via pre-commit install)
[ ] add unit tests for any new functionality
[ ] update docstrings for any new or updated methods or classes
[ ] run unit tests via pytest tests
[ ] run recipe tests via pytest tests -m integration_test
[ ] manually run any new or modified recipes with sufficient proof of correctness
[ ] include relevant commands and any other artifacts in this summary (pastes of loss curves, eval results, etc.)

UX
If your function changed a public API, please add a dummy example of what the user experience will look like when calling it.
Here is a docstring example
and a tutorial example

[ ] I did not change any public API
[ ] I have added an example to docs or docstrings

@joecummings

waiting for tests to pass, will merge after that. Thanks for the PR


Planet emojis

Most planets in our solar system have some characteristic visual properties: Mars is red, Saturn has rings, Jupiter a red spot etc. They have long been encoded by way of traditional arbitrary symbols from astrology. These could be combine with a planetary symbol, e.g. the Globe with Meridians, to form colorful circles.  Alas, of the classic symbols only Venus and Mars are officially emoji already, because they are used as female and male symbols in gender sequences.

:globe_with_meridians: + ZWJ + ☿ + VS-16 = Mercury
:globe_with_meridians: + ZWJ + ♀ + VS-16 = Venus
:globe_with_meridians: + ZWJ + ♁ + VS-16 = Earth (:earth_africa:, :earth_americas:, :earth_asia: )
:globe_with_meridians: + ZWJ + ♂ + VS-16 = Mars
:globe_with_meridians: + ZWJ + ♃ + VS-16 = Jupiter
:globe_with_meridians: + ZWJ + ♄ + VS-16 = Saturn
:globe_with_meridians: + ZWJ + ♅ + VS-16 = Uranus
:globe_with_meridians: + ZWJ + ♆ + VS-16 = Neptune
(:globe_with_meridians: + ZWJ + ♇+ VS-16 = Pluto)

Unicode 10 will be adding even more symbols for stellar object, mostly dwarf planets.

There seems to be a similar proposal soon: L2/17-100 Planet Emoji Sequences by Zachary Swetz, et al., 18 April 2017. (The PDF is missing from the repository as of 20 April.)


Richcomp (magic methods) does not correctly implement >= compared to 0.19

Bug Description
Is there a way to disable the behavior introduced in #3203? I had (knowingly) implemented the __richcomp__ function (as shown below) and now the new method in 0.20 does not seem to implement it in the same way.
Custom code for 0.19
// ...
#[cfg(feature = "python")]
    fn __richcmp__(&self, other: Self, op: CompareOp) -> bool {
        match op {
            CompareOp::Lt => *self < other,
            CompareOp::Le => *self <= other,
            CompareOp::Eq => *self == other,
            CompareOp::Ne => *self != other,
            CompareOp::Gt => *self > other,
            CompareOp::Ge => *self >= other,
        }
    }
// ...

Proof:
In [1]: from hifitime import *

In [2]: Unit.Second * 0.0 == Duration("0 ns")
Out[2]: True

In [3]: Duration("0 ns") <= Unit.Second * 1.0
Out[3]: True

In [4]: Duration("0 ns") < Unit.Second * 1.0
Out[4]: True

In [5]: Unit.Second * 1.0 > Duration("0 ns")
Out[5]: True

In [6]: Unit.Second * 1.0 >= Duration("0 ns")
Out[6]: True

In [7]: Unit.Second * 1.0 >= Duration("-10 ns")

Automatic code in 0.20
https://github.com/nyx-space/hifitime/actions/runs/6898765377/job/18769311402?pr=259
Steps to Reproduce

Update to pyo3 0.20.0 from 0.19.0
Remove the custom __richcomp__ method
Run tests: https://github.com/nyx-space/hifitime/actions/runs/6898765377/job/18769311402?pr=259

Backtrace
def test_duration_eq():
        """
        Checks that Duration comparisons work
        """

        assert Unit.Second * 0.0 == Duration("0 ns")
>       assert Unit.Second * 1.0 >= Duration("0 ns")
E       TypeError: '>=' not supported between instances of 'builtins.Duration' and 'builtins.Duration'

tests/python/test_epoch.py:54: TypeError
=========================== short test summary info ============================
FAILED tests/python/test_epoch.py::test_duration_eq - TypeError: '>=' not supported between instances of 'builtins.Duration' and 'builtins.Duration'
========================= 1 failed, 3 passed in 0.12s ==========================

Your operating system and version
Windows and macOS
Your Python version (python --version)
3.11
Your Rust version (rustc --version)
1.74
Your PyO3 version
0.20.0
How did you install python? Did you use a virtualenv?
Using the maturin action on Github
Additional Info
No response

Understood, thanks. I had misunderstood the issue as saying that all rich
comparisons had been implemented by default.
On Fri, Nov 17, 2023, 06:23 David Hewitt @.***> wrote:

@ChristopherRabotin https://github.com/ChristopherRabotin in your
linked PR you delete richcmp and so all that remains is eq. I
don't see implementations of ordering operators.
If you want ordering you should implement at least lt and le.
Because your types are symmetric you don't strictly need gt and ge,
the interpreter will fallback on le, and lt by reversing the
operands. For best performance you should implement all four of lt,
le, gt and ge.
—
Reply to this email directly, view it on GitHub
https://github.com/PyO3/pyo3/issues/3581#issuecomment-1816422512, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABEZV2D4OZHZ4XPIZXASNXTYE5QOJAVCNFSM6AAAAAA7PDJXVSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJWGQZDENJRGI
.
You are receiving this because you were mentioned.Message ID:
@.***>


docker.execute doesn't work, but the command output by python-on-whales does

I am using python-on-whales to run a mysql command in a mysql docker container.
I use docker.execute to call the command inside the container from a python script, and it returns an error:
import mysql.connector
import os
from mysql.connector.errors import DatabaseError
from python_on_whales import docker

envs={"MYSQL_ROOT_PASSWORD":"TempPassword",
              "MYSQL_USER":"root",
              "MYSQL_ROOT_PASSWORD":"TempPassword"
                }
#Start the mysql container
docker.run("mysql/mysql-server",name="test_mysql",
                    envs=envs,
                    publish=[(3306,3306)],
                    detach=True)
#copy scripts to container
docker.copy("./permissions.mysql","test_mysql:/etc/")
docker.copy("./permissions.sh","test_mysql:/etc/")
#try calling permissions.sh on the container
docker.execute("test_mysql", ["/etc/permissions.sh"])

This produces the following error:
    result = run(full_cmd, tty=tty)
  File "/usr/local/lib/python3.9/site-packages/python_on_whales/utils.py", line 150, in run
    raise DockerException(
python_on_whales.exceptions.DockerException: The docker command executed was `/usr/local/bin/docker exec test_mysql /etc/permissions.sh`.
It returned with code 1
The content of stdout is ''
The content of stderr is 'mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

In the error python-on-whales reports the command that it called:
/usr/local/bin/docker exec test_mysql /etc/permissions.sh
But if I issue this command reported back from python-on-whales directly in the bash shell, rather than using python-on-whales the command executes.
Can anyone see any obvious reason why this would be?

thank you for this great bug report! I'll look into it!

Would it be because the python script with python-on-whales execute does the commands so fast that the mysql server hasn't booted yet?
And so it's not listening through the socket yet.
And when you execute the command manually later on your terminal, the server had a few more seconds to boot and it works?

Exactly it - figured it out last night. Thanks!


Middleware goes beyond the Router

So this issue occurs, when in router_1 we using local for this router middleware, but this middleware also appears in router_2
codesandbox reproduse

Just checked, "original" express  shows the same behaviour

And it seems isolated routers are a long-standing and unsolved problem

Oh, i see, sorry for the distraction, my bad


Added Triangle Loader

Fixes Issue🛠

Closes #464
Description👨💻

Added a triangle loader under loaders component
Type of change📄

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

This has been tested✅

Checklist✅

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have added demonstration in the form of GIF/video file
[x] I am an Open Source Contributor

Screenshots/GIF📷
https://github.com/Rakesh9100/Beautiify/assets/133582773/37913187-40e7-45fe-bbfb-809118d5d054

Remove any other extra changes in loaers.html file and just keep your component addition @bhavya-anand19

Remove any other extra changes in loaders.html file and just keep your component addition @bhavya-anand19

Remove any other extra changes in loaders.html file and just keep your component addition @bhavya-anand19
And attach demo video properly in PR description!!

Done

No extra changes should come, fix it @bhavya-anand19

No extra changes should come, fix it @bhavya-anand19

done

Merged 🎉 @bhavya-anand19


Port forward in monitoring should log errors

/area test-and-release
Expected Behavior
The code that performs the port forwarding doesn't log any info. We need it in order to diagnose https://github.com/knative/eventing/issues/3570
Actual Behavior
Nothing is logged from kubectl port-forward process started in background
Additional Info
We might think to use directly the client-go to perform port forwarding https://godoc.org/k8s.io/client-go/tools/portforward#New

/assign

Example on how to perform port forwarding https://github.com/gianarb/kube-port-forward/blob/master/main.go