Unhandled error when running docker image for the first time

Step to reproduce

git clone git@github.com:CityOfZion/neo-python.git
cd neo-python
docker build -t neoimg
docker run neoimg

Description
When you build and run the Docker file for the first time it should start and get you in the neo prompt as the last command in Dockerfile is:
CMD python3 prompt.py
However an error is raised:
$ docker run neodocker
[I 180219 07:56:02 LevelDBBlockchain:489] Could not get sys fee: 'NoneType' object is not subscriptable
[I 180219 07:56:02 NotificationDB:76] Created Notification DB At /neo-python/Chains/Test_Notif
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.5/dist-packages/twisted/_threads/_threadworker.py", line 46, in work
    task()
  File "/usr/local/lib/python3.5/dist-packages/twisted/_threads/_team.py", line 190, in doWork
    task()
--- <exception caught here> ---
  File "/usr/local/lib/python3.5/dist-packages/twisted/python/threadpool.py", line 250, in inContext
    result = inContext.theWork()
  File "/usr/local/lib/python3.5/dist-packages/twisted/python/threadpool.py", line 266, in <lambda>
    inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
  File "/usr/local/lib/python3.5/dist-packages/twisted/python/context.py", line 122, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/local/lib/python3.5/dist-packages/twisted/python/context.py", line 85, in callWithContext
    return func(*args,**kw)
  File "prompt.py", line 829, in run
    print_tokens(tokens, self.token_style)
  File "/usr/local/lib/python3.5/dist-packages/prompt_toolkit/shortcuts.py", line 698, in print_tokens
    output = create_output(true_color=true_color, stdout=file)
  File "/usr/local/lib/python3.5/dist-packages/prompt_toolkit/shortcuts.py", line 126, in create_output
    ansi_colors_only=ansi_colors_only, term=term)
  File "/usr/local/lib/python3.5/dist-packages/prompt_toolkit/terminal/vt100_output.py", line 424, in from_pty
    assert stdout.isatty()
builtins.AssertionError:

[I 180219 07:56:34 EventHub:89] [SmartContract.Execution.Success][2002] [54030ae64f0a6d24bfda562778e0f4c9f1e24ecc] [tx 1a328cdd53c7f1710b4006304e8c75236a9b18523f037cdf069a96f0d7f01379] [False]

Are you using Windows? What version?

I am using macOS High Sierra (v. 10.13.2)

Same error also on the development branch (if you change it in the Dockerfile)?

I've update Dockerfile to checkout to development branch after the repo has been cloned, but still the same error occurs.
FROM ubuntu:16.04

RUN apt-get update && apt-get -y install git python3-dev python3-pip libleveldb-dev libssl-dev man

RUN git clone --single-branch -b development https://github.com/CityOfZion/neo-python.git

WORKDIR neo-python

RUN pip3 install -r requirements.txt

CMD python3 prompt.py

Should be fine with the current Dockerfiles: https://github.com/CityOfZion/neo-python/tree/development/docker
If the issue persists, please reopen or create a new ticket.

Working Docker File:
# Dockerfile to create images running neo-python
# https://github.com/CityOfZion/neo-python/tree/master/docker
#
# Building an image of the current master branch (creates a Docker image called neopython):
#
#    $ docker build -f Dockerfile -t neopython .
#
# Building an image of the current development branch (creates a Docker image called neopython-dev):
#
#    $ docker build -t neopython-dev . --build-arg branch=development
#
# Build without caching:
#
#    $ docker build --no-cache -f Dockerfile -t neopython .
#
# Using with a private network
# -----------------------------
# If you want to run it connecting to a private network, make sure the privatenet container is already running.
# See also https://hub.docker.com/r/cityofzion/neo-privatenet
#
# Start a container interactively, opening a bash in `/neo-python`, and mounting the current directory as `/neo-python/sc`:
#
#    $ docker run --rm -it -v $(pwd):/neo-python/sc --net=host -h neopython --name neopython neopython /bin/bash
#
# Once you are inside the container, you can start neo-python with `np-prompt` (using -p to connect to a private net).
# To update neo-python, just run `git pull` and `pip install -e .`
FROM ubuntu:17.10

# Branch can be overwritten with --build-arg, eg: `--build-arg branch=development`
ARG branch=master

#change source location
RUN sed -i 's|archive.ubuntu|old-releases.ubuntu|g' /etc/apt/sources.list
#security repos can not be updated and cause errors, remove them
RUN sed -i '/security.ubuntu.com/d' /etc/apt/sources.list

#run a quite update
RUN apt-get -qq update >> /dev/null 2>&1

# Install dependencies
RUN apt-get install -y \
    wget \
    git-core \
    python3.6 \
    python3.6-dev \
    python3.6-venv \
    python3-pip \
    libleveldb-dev \
    libssl-dev \
    vim \
    man

# APT cleanup to reduce image size
RUN rm -rf /var/lib/apt/lists/*

# Clone and setup
RUN git clone https://github.com/CityOfZion/neo-python.git
WORKDIR neo-python
RUN git checkout $branch

# Install the dependencies
RUN pip3 install -e .

# Download the privnet wallet, to have it handy for easy experimenting
RUN wget https://s3.amazonaws.com/neo-experiments/neo-privnet.wallet

# Example run command
CMD /bin/bash


Pebblo Safe Retriever details in Local UI

Ref : Pebblo Safe Retriever details in Local UI
This includes:

Pebblo Server API changes for /app/discover
Added new API /prompt
Updated backend logic for Local UI
Added Local UI changes
Unit tests

Opened new one - https://github.com/daxa-ai/pebblo/pull/353


Minecraft disappeared

Not sure if this is a bug, but there is no Minecraft in launchers anymore. Please return 🙏 the latest Minecraft update pushes a java error and it is need to be reinstalled

@m00rch1k I was told to remove minecraft by the decky team unfortunately :( you may need to ask them


Add array slice method

Closes #4715 if pythonic syntactic sugar is decided to be not needed.

If you are adding the documentation, the deep argument should be documented too. Also delta should be wrapped in [code] block.

Would step be more appropriate than delta as the name of the third parameter?

@Calinou I've changed the name of the argument to step as delta is used in _process, and added an error print if zero is given as a step.
@KoBeWi I've explained the deep argument in the docs and wrapped the delta now step in a code block

Thanks!


Fix double read on enc_flash driver

Update flash_area_is_empty to use the new hal_flash_isempty_no_buf call
When enc_flash is testing for an empty flash, now it checks that the lower-level driver returned an empty flash already and avoids reading data that when it is known to be empty.

@mkiiskila @ccollins476ad This is a fix for the blocker I mentioned before in pvt. This works for me with mcuboot updating images over enc_flash without issues (with local changes for now!). I don't know if this change breaks something else.


Fix case when ipc stream has no record batches, only schema

Fixes #158. While the Julia implementation currently doesn't provide
way to avoid writing any record batches, the pyarrow implementation has
more fine-grained control over writing and allows closing an ipc stream
without writing any record batches. In that case, on the Julia side when
reading, we just need to check for this case specifically and if so,
populate some empty columns, since we're currently relying on them being
populated when record batches are read.

Thanks @quinnj . This now fixes my real-world case.


6.4.1: Foundation.MediaQuery.current empty when including foundation.util.mediaQuery separately

I'm importing foundation.core and foundation.util.mediaQuery separately. Subsequently using Foundation.MediaQuery.current returns an empty string.
If I import foundation (everything) rather than the components, using Foundation.MediaQuery.current returns the current breakpoint as expected.
So this;
import 'foundation-sites/dist/js/plugins/foundation.core'
import 'foundation-sites/dist/js/plugins/foundation.util.mediaQuery'

$(document).foundation()
console.log('Current: ' + Foundation.MediaQuery.current)

Returns an empty string.
Whereas this;
import 'foundation-sites/dist/js/foundation'

$(document).foundation()
console.log('Current: ' + Foundation.MediaQuery.current)

Returns the current breakpoint.
This appears to be an issue with 6.4.1 (everything works as expected in 6.3.1)

Hi @kitsimons
Good catch - the distfile for MediaQuery is not running init right now... it should, as the distfiles are intended to give "drop in" functionality. For now you should be able to workaround by adding Foundation.MediaQuery._init()

Awesome, thanks @kball

I just ran into this same issue using 6.4.3. I'm using webpack and am trying to import MediaQuery into one of my files, like this:
import { MediaQuery } from 'foundation-sites/js/foundation.util.mediaQuery';

Later in the file, MediaQuery.current will return an empty string unless I call MediaQuery._init(); first.
Should the call to _init actually be in the MediaQuery files so that it's already initiated when imported, or am I supposed to call that private _init method?

Yes @DanielRuf it still occurs because the _init method is not called in the foundation-sites/js/foundation.util.mediaQuery file, so you end up having go call _init yourself after importing it. Can't we just add some code to the file to call _init before it's exported? Maybe a variable to check if it's already been init'ed so it doesn't get called multiple times?

cc @ncoden should we reopen this?

@DanielRuf just to clarify, I am importing foundation-sites/js/foundation.util.mediaQuery.js, not foundation-sites/js/entries/plugins/foundation.util.mediaQuery.js. Maybe that's the problem? Are the entries/plugins files supposed to be used in order to import a specific plugin?

@flyingL123 The entries files are dedicated to a "ready-to-use" import, like in a browser environment. So yes, you may need to import the entry plugin instead if you do not want to call ._init() manually.

@kristiansp Did you imported the Foundation CSS or included the Sass mixin foundation-everything() or foundation-global-styles().

Yes, I do have the @include foundation-global-styles included. When I try to print out the Foundation.MediaQuery object with JSON.stringify, I get this back:
{
	"queries": [{
		"name": "ime",
		"value": "only screen and (min-width: null)"
	}, {
		"name": "ime",
		"value": "only screen and (min-width: null)"
	}, {
		"name": "ime",
		"value": "only screen and (min-width: null)"
	}]
        // Repeated a bunch of more times …
}

So I'm guessing that it's not able to read the breakpoints out of my settings.scss somehow? I am almost sure I had this working when I first set this up (I was struggling to get Webpack to work, as I was doing it for the first time), could it be I've updated some modules that could have caused this?
One more thing, and I'm a bit out of my depth here, but looking in the _init() function for foundation.util.mediaQuery, it seems to set the queries by looping through var extractedStyles = $('.foundation-mq').css('font-family');
I have no idea of the logic here, but I don't see how that would load my breakpoints?

Can you provide a codepen or some info so we can see where you load your JS (at the bottom of body or in the head)?

This is at the moment the very end of my HTML document (I moved the code below initialising Foundation from a custom.js file to here, to see if there was something with the order things were loaded). I've also tried initialising with and without $( document ).ready() (what is btw the recommended)?:
<script>$( document ).ready(function() {
  $(document).foundation();

  Foundation.MediaQuery._init();
  console.log('Type of Foundation.MediaQuery: ' + typeof(Foundation.MediaQuery));
  console.log('Foundation.MediaQuery: ' + JSON.stringify(Foundation.MediaQuery));
  console.log('Type of Foundation.atLeast: ' + typeof(Foundation.atLeast));
  console.log("Foundation.MediaQuery.atLeast('medium'): " + Foundation.MediaQuery.atLeast('medium'));
  console.log('Type of Foundation.MediaQuery.current: ' + typeof(Foundation.MediaQuery.current));
  console.log('Foundation.MediaQuery.current: ' + Foundation.MediaQuery.current);
  if (Foundation.MediaQuery.atLeast('medium')) {
  // Disabling accordion on footer info elements for big screens
  $( ".footer .accordion" ).foundation('_destroy');
  $( ".footer .accordion .accordion-content" ).css('display', 'block');
  $( ".footer .accordion-title" ).contents().unwrap();
  }
  });</script></body>
</html>

@kristiansp Also could you send the styles of the .foundation-mq meta element? It should be injected in head.

@ncoden What is the best way to extract the styles? I see the element with the inspector, it doesn't seem to have any styles at all.

$('.foundation-mq`).css('font-family');

When I print it in the console that gives me:
$('.foundation-mq').css('font-family'); : Times

So it might seem to be going for some Times New Roman here? ;-) (Btw, that's not my website's font :-D)

@kristiansp This means that the .foundation-mq styles are not applied. Please make sure that you indeed included the global styles mixin @include foundation-global-styles and imported in your HTML the CSS file generated with it. Then, check your SCSS breakpoint settings again. I don't see what else it could be.

@ncoden Turns out you were right. Adding @import 'node_modules/foundation-sites/scss/global'; in addition to […]/foundation at the top of my app.scss did the trick.
Btw, should I wrap $(document).foundation(); within $( document ).ready() at the end of my HTML document? I see conflicting advice.
Thanks for the help!

Btw, should I wrap $(document).foundation(); within $( document ).ready() at the end of my HTML document? I see conflicting advice.

@kristiansp It depends on when you know your page is ready and if you have dynamically created component. Just try to initialize Foundation as soon as possible, but not before all component are there (or manually initialize them later).


Added PHP 7.3 support - updated Travis CI configuration

Tests are failing because of CS issue, please see hotfix #42


Surround sound upmix - feature request

I am currently using a 5.1 to 5.1 configuration.
The destination computer supports "speaker fill" - however it needs a 2.1 input signal to engage.
But since the input signal for it is 5.1 - the 'upmixing' does not engage.
The work around is to fallback to a 2.1 to 5.1 configuration. Then upon restarting the audio stream - the 'upmixing' does engage as expected. But this requires switching between 2.1 and 5.1 from source depending on the media being played - which is very inconvenient.
It would be nice to have the upmix available in the virtual sound card driver itself.
I understand that this may be beyond the scope of what this project seeks to do.
Reference material: https://chunminchang.github.io/blog/post/audio-5-1

This is hard to fit into the way scream currently works (dumping Windows sound subsystem output straight to network or shared memory).
Also my instinct tells me that this is very much a client issue :)

Windows provides: "Audio Effects" interface for the audio driver. Looks like it will handle the required task on its own. We only need to engage it. https://docs.microsoft.com/en-us/windows-hardware/drivers/audio/audio-signal-processing-modes

True that - processing wise, this could be done on the client side. By detecting that the other channels are empty. However if this feature is provided by the OS to the driver itself - I think using it directly would be the way to go, should be easier.

You are right, it has "Speaker Fill" ... hmmm. I'll check if it is really that easy to register the driver for these APOs.

I just wanted to mention that you could use Voicemeeter for Windows. There you can upmix to 5.1, 7.1 and do "Channel Repeat". You have 2 to 8 output devices (depending on chosen Version).
I do not want to advert it here, but i thought it would fit here.


[SPARK-19618][SQL] Inconsistency wrt max. buckets allowed from Dataframe API vs SQL

What changes were proposed in this pull request?
Jira: https://issues.apache.org/jira/browse/SPARK-19618
Moved the check for validating number of buckets from DataFrameWriter to BucketSpec creation
How was this patch tested?

Added more unit tests

ok to test

Test build #72973 has started for PR 16948 at commit ec35f24.

Test build #72973 has finished for PR 16948 at commit ec35f24.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/72973/
Test PASSed.

@cloud-fan : this is as per our discussion in https://github.com/apache/spark/pull/16931#discussion_r101170361

thanks, merging to master!


Client fails to launch due to nonexistent channel type

See discord.js/src/client/ClientDataManager, line 81. channel is undefined due to there being no corresponding data type.
A temporary patch has been issued to the main bot.

Fixed in 0a97148


PR: Fix LSP status widget logic when it is None using early return

Description of Changes

[x] Wrote at least one-line docstrings (for any new functions)
[x] Added unit test(s) covering the changes (if testable)

[x] Included a screenshot or animation (if affecting the UI, see Licecap)

Issue(s) Resolved

Fixes #21127
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct:

It seems that the problem is with the Coverage API, is that right?

Yep, it's been very flaky lately. Since our tests pass, I'm going to merge it.


Update the version number in the README

The pubspec example in the README is badly out of date in its version number, which isn't good as people will tend to copy and paste that line as-is into their pubspecs.

good catch, thanks!


Translate bug

Microsoft PowerToys version
0.57.0
Utility with translation issue
Video Conference Mute
🌐 Language affected
Chinese
❌ Actual phrase(s)
boxed section

✔ Expected phrase(s)

red-boxed place should be "关闭相机并将麦克风静音"
green-boxed place should be "关闭相机"

ℹ Why is the current translation wrong
Grammar error

oof


CheckBox colors at runtime

I need to be able to change the colors of Switches (CheckBoxes) at runtime. Is there any way to do this via your library?
Thank you

You can use applyStyle(int) method to change style of CheckBox.

At that point would we just create a style that overloads the color value of the checkbox?

Yes, for now you can do that.

Awesome, got it working. Now I can't figure out the text color of a checkbox.

can‘t running！

Error:(17) A problem occurred evaluating project ':app'.

Could not find property 'MATERIAL_KEYSTORE_FILE' on SigningConfig_Decorated{name=release, storeFile=null, storePassword=null, keyAlias=null, keyPassword=null, storeType=null}.
大神


Detecting special characters

The model is not detecting characters like '-' (hyphen) and '.'(decimal). Can you please help.

@chetana02  you need to retrain model with another alphabet, because his alphabet now that doesn't have '-' and '.'.


Calling other commands from the current command

Command.call that you can call from another command. So something like self.call("bar", *args, **kwargs) would find the bar Command and create an instance (passing in self.parsed) and then call Bar.run(*args, **kwargs). This will making calling other commands easier

I thought about this interface using Command.__getattr__:
self.foo.bar(*args, **kwargs)

Or even making it be actual classnames:
self.Foo.Bar.call()

But I ultimately decided to go with the more straightforward self.call and pass in the subcommands string


Redesign dashboard

Think of how we can improve the way the dashboard looks.
Can we add some new features to the screen
suggest some ideas

Hey !
This is my very first time contributing to open source. How exactly should I contribute to this project ?
Where can I see the dashboard design and how should I implement ideas if any ?
I am new to Open Source , it would be great if you could help.

I've gone through the website...
Can I fix this??

Hey @codegoggins. First-time contributing can be tough and confusing. I'll help you out, but please do not comment the same thing on every issue and project. I suggest you go through the project, follow the steps mentioned in the readme file and then comment describing how you want to do it. Hope this helps!! 😀

Thanks for this
On Thu, Sep 29, 2022, 11:55 AM Soumyajit Datta @.***>
wrote:

Hey @codegoggins https://github.com/codegoggins. First-time
contributing can be tough and confusing. I'll help you out, but please do
not comment the same thing on every issue and project. I suggest you go
through the project, follow the steps mentioned in the readme file and then
comment describing how you want to do it. Hope this helps!! 😀
—
Reply to this email directly, view it on GitHub
https://github.com/Codehackerone/parkify/issues/26#issuecomment-1262111801,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUW6ZMM6NQRDJX427TRBSR3WAVYQ5ANCNFSM6AAAAAAQV7PPT4
.
You are receiving this because you commented.Message ID:
@.***>

Would like to work on this

Sure


FW-856: security_isConfigured() for DAGroot to enable EB

We assume the dagroot has the keys and is ready after the initialization.
Else, IEEE802154_security_isConfigured(void) always returns FALSE, and the Dagroot is never able to send an EB. As a consequence, no other device can join the network (no possibility to be synced).
I'm not a security expert, and I assume that the keys are correctly configured after the initialization of the DAGROOT (in the openapp cjoin.c)

OpenVisualizer is now a requirement to set the security keys when enabling a DAG root.


[question] any plans to train higher compression ratio?

Great thanks to the authors of this project!
Bytedance's  TiTok use 1d codebook achieves impressive 256x256 to 32 token super high compression ratio, this is very useful for long video multi modal understanding task
do you have any plan to train a higher compression ratio magvit2? eg. 256x256 -> 8x8  this might cause rFID to go up and not usable for image generation, but this tokenizer would be very use for for multi-modal LLMs
thanks!

Hi @eisneim ,
Thank you for the suggestion. Yes, as you said, while using more tokens can lead to better reconstruction, it also introduces additional challenges for Transformers to learn. There should be a balance between the number of tokens and the final results.
We will consider expanding the Open-MAGVIT2 tokenizer family with scaled-up training data, larger backbones, higher compression ratios, and so on. However, due to numerous tasks in progress (e.g., finalizing autoregressive training), training a tokenizer with higher compression ratios is not currently a high priority. In fact, the training can be initiated by simply modifying the config files. You are also welcome to contribute to our repository if you decide to try it in the future.

thank you @yxgeee  i'll try to train higher compression ratio on imagenet but with just 1 RTX 4090 it might take a long time

@yxgeee here is what i changed:

set ch_mult: [1,1,1,2,2,4]  this will change latent from 16x16 -> 8x8 using 4090 GPU batch size 10, memory usage 22GB, 2.92it/s
add a custom dataloader to load my own dataset(similar to ImageNet with some other video snapshots)

from typing import Optional, Union, Callable, Tuple, Any
import os
from pathlib import Path
from omegaconf import OmegaConf

import torch
from torchvision import transforms as T
from torch.utils.data import Dataset
from taming.data.base import ImagePaths

def parse_dir(root_dir):
    items = []
    for root, dirs, files in os.walk(root_dir):
        for file in files:
            if (file.lower().endswith('.jpg') or file.lower().endswith('.jpeg') or file.lower().endswith('.png')) and file[0] != ".":
                items.append(os.path.join(root, file))
    return items

class CustomdirBase(Dataset):
    def __init__(self):
        self.data = []

    def __len__(self):
        return len(self.data)

    def __getitem__(self, i):
        return self.data[i]

class CustomdirTrain(CustomdirBase):
    def __init__(self, root: str,
                 size: Union[Tuple[int, int], int] = 256) -> None:

        abspaths = parse_dir(root)
        print("----> train images", root, len(abspaths))
        self.data = ImagePaths(abspaths,
                               labels=None,
                               size=size,
                               random_crop=True)

class CustomdirValidation(CustomdirBase):
    def __init__(self, root: str,
                 size: Union[Tuple[int, int], int] = 256) -> None:

        abspaths = parse_dir(root)
        print("----> validate images", root, len(abspaths))
        self.data = ImagePaths(abspaths,
                               labels=None,
                               size=size,
                               random_crop=True)

class CustomdirTest(CustomdirBase):
    def __init__(self, root: str,
                 size: Union[Tuple[int, int], int] = 256) -> None:

        abspaths = parse_dir(root)
        print("----> test images", root, len(abspaths))
        self.data = ImagePaths(abspaths,
                               labels=None,
                               size=size,
                               random_crop=True)


App crashes when installed on iOS/non Huawei Android device

Hi! We integrated react-native-hms-push in our React Native app. It runs with no problems on Huawei phones, but the app crashes right when it starts if we run it on an iPhone or on other Android devices. There's no error and no logs in metro.
These are the versions of our dependencies (those that are relevant):
"@hmscore/react-native-hms-push": "^5.1.1-301",
"@react-native-agconnect/appmessaging": "1.2.0",
"@react-native-agconnect/core": "^1.2.0",
"@react-native-agconnect/crash": "1.2.0",
"react": "16.13.1",
"react-i18next": "^11.8.5",
"react-native": "0.63.4",

If I remove the react-native-hms-push dependency (and of course, the code that depends on it), the app starts. Anyone else running into this?

Hei, I fix this only for ios builds adding this code in App.tsx:
useEffect(() => {
    let HMS;

    if (Platform.OS !== 'ios') {
      console.log('Nu ios');
      HMS = require('@hmscore/react-native-hms-push');

      HMS.HmsPushInstanceId.getToken('')
        .then((result: any) => {
          console.log('getToken', result);
        })
        .catch((err: any) => {
          console.log('[getToken] Error/Exception: ' + JSON.stringify(err));
        });
    }

But android builds still crash :😔 😭

Android still crashes. This workaround prevents the iOS version from crashing, so it's a start. There is a library that allows you to check if the device has HMS, but even with this condition the app still crashes on Android (non-Huawei).

Hi @biancadragomir, thank you for your interest in our Huawei Push React Native Plugin,
Could you share with us more information about crash. Android Version, Error and is HMS Core installed?

We tested it on OnePlus 7 with Android 11, Pixel 3 with Android 10. There is no error in metro, the app opens and crashes instantly. What do you mean by HMS core being installed? We have
"@hmscore/react-native-hms-push": "^5.1.1-301",
 "@react-native-agconnect/core": "^1.2.0",

and the app works on 2 (tested) Huawei phones (P30 PRO and P10 lite).

Hi @biancadragomir,
You should install AppGallery then you can download the HMS Core app to your phone. HMS Core app have to be installed to use Huawei Mobile Services.
https://consumer.huawei.com/tr/mobileservices/appgallery/
Thank you for your interest.

Hi @ozcanozgur! Thanks for your response, but I do not want the library to be instantiated on Android devices that have google services capabilities. We only need the library on Huawei devices which no longer support Firebase Push notifications due to not having google services

hi, @ozcanozgur ! I run the app on an android device, without Huawei services, and in my logcat I see this errors " HMSSDK_HMSPackageManager: Failed to find HMS apk " abd " HMSSDK_AGCUtils: Get appId with AGConnectServicesConfig failed

"

@ozcanozgur I just downloaded Huawei mobile services app from Play Store on a Pixel 3 device. But then this app just keeps crashing, and our app still cannot be run. Also, it is not ok to need the HMS app on Android devices in order to run the app... on non-Huawei Android devices I just want the library to be ignore, just like @simona-iuliana pointed out above in the code snippet

@biancadragomir  did you have any solution? I'm facing the same issue. And you're right, we can't like ask our users to install HMS service on their non-Huawei Android phone.

Hi all,
Huawei mobile services app in the play store is not the right application for our services. You should install HMS Core Application from AppGallery or you can search the HMS Core apk from the internet.
Thank you.

@ozcanozgur but we cannot ask ALL Android users to install HMS Core apk... we want to release the app both to Play Store and AppGallery and right now we cannot run the project on Android due to this dependency. is there any way to fix this or should we keep 2 separate package.json files? This is not very practical, but it's the last resort

Hi @biancadragomir,
You can use Huawei Availability React Native Plugin to  HMS Core APK detection on android devices. If there is not, the plugin provides navigation to AppGallery for HMS Core installation.
https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Guides/about-0000001137975023

Hi @ozcanozgur we are using that already, but the issue is that simply adding the dependency to the project, without even importing the library anywhere or writing any code, the project crashes on android... please look at @simona-iuliana's screenshot from above to see the errors that we get. thanks!

Hi @biancadragomir,
Thank you for your clear explanation, we are working on it and trying to fix it in shortest time!

@ozcanozgur  @biancadragomir  where to import HMSAvailability? I check the doc from the link below , but it only show that how to use it.https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Guides/client-dev-0000001138591439

Hi @nolife08021,
You can use it before you import the push kit. It is related with where you are getting the error.

Hi @nolife08021,
You can use it before you import the push kit. It is related with where you are getting the error.
Do you have any sample ? so sorry i'm confusing with it.

Hi @nolife08021 ,
You can check our availability library demo project.
https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Library-V1/rn-sdk-download-0000001140104403-V1
Thank You.

Hi @all,
The new version of push kit plugin released.
https://www.npmjs.com/package/@hmscore/react-native-hms-push
https://github.com/HMS-Core/hms-react-native-plugin/tree/master/react-native-hms-push
Thank You.

site kit also having this issue, pls reopen it


Issue 7 - A11Y and ID for input tag

See issue #7 .

@mking-clari Any news on this issue?

Pretty sure this project is dead.


Show onyomi in katakana

Option for this would be great, or just enforce it, as most dictionaries do it this way. I've used WK Katakana madness script so long, seeing onyomi as hiragana feels so weird..

Makes sense! Added to the roadmap.


[FEATURE] Add NEAR Wallet Selector

User Story(s):
As a user i want to interact with near blcokahin
Description
Integrate NEAR Wallet selector
Acceptance Criteria

add all relevant wallets, Nightly, HERE Wallet, Mintbase Wallet, NEAR Snap, Coin98, Welldone, Mobile Wallet, Meteor, MyNEARWallet

Resources

https://github.com/near/wallet-selector/

@codingshot closing as I believe this is done, if there are follow-on issues let's create new ticket


NETOBSERV-108 Fix bundle issues

This PR includes several things:

Backporting changes from branch release-4.10 where the initial release was performed
Add a few missing fields: containerImage, createdAt, repository
Use SVG logo instead of PNG (https://issues.redhat.com/browse/NETOBSERV-197)
As in operator hub  we use the name 'netobserv-operator', there's several places where the renaming make sense (e.g. the CSV file name, etc.)

Unfortunately there's still a couple of issues when publishing on operatorhub, in particular we have to manually remove some scorecards stuff that we don't use and that makes the PRs rejected otherwise. I did not find how to make operator-sdk not generating these scorecards stuff. Another option is of course to implement the score cards (I haven't looked into that)

Thanks reviewers
/approve


fix: issues with new variant resolving and resolution

Thanks @borchero for testing the pre-release! :)
Can you check this one as well? I added a bunch of tests, too.

@wolfv the new version on main works 🚀 thanks a lot for your work 😁

Awesome!


Need to Remove ndk - abiFilters from the defaultConfig(build.gradle).

Description
Hi Team, We are using the sentry package in one of my projects, where I have submitted the application on the Play Store and am facing the below error under the stability section.

java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/system/framework/android.test.mock.jar", zip file "/data/app/androidx.test.tools.crawler-w5t15CaOamFGCJdQ6Qbx2Q==/base.apk", zip file "/data/app/xyz.timelesswallet.aa-_NjvaAs7bukIYKQ0ZeEcmw==/base.apk", zip file "/data/app/xyz.timelesswallet.aa-_NjvaAs7bukIYKQ0ZeEcmw==/split_config.pl.apk", zip file "/data/app/xyz.timelesswallet.aa-_NjvaAs7bukIYKQ0ZeEcmw==/split_config.x86.apk", zip file "/data/app/xyz.timelesswallet.aa-_NjvaAs7bukIYKQ0ZeEcmw==/split_config.xxhdpi.apk"],nativeLibraryDirectories=[/data/app/androidx.test.tools.crawler-w5t15CaOamFGCJdQ6Qbx2Q==/lib/x86, /data/app/xyz.timelesswallet.aa-_NjvaAs7bukIYKQ0ZeEcmw==/lib/x86, /data/app/androidx.test.tools.crawler-w5t15CaOamFGCJdQ6Qbx2Q==/base.apk!/lib/x86, /data/app/xyz.timelesswallet.aa-_NjvaAs7bukIYKQ0ZeEcmw==/base.apk!/lib/x86, /data/app/xyz.timelesswallet.aa-_NjvaAs7bukIYKQ0ZeEcmw==/split_config.pl.apk!/lib/x86, /data/app/xyz.timelesswallet.aa-_NjvaAs7bukIYKQ0ZeEcmw==/split_config.x86.apk!/lib/x86, /data/app/xyz.timelesswallet.aa-_NjvaAs7bukIYKQ0ZeEcmw==/split_config.xxhdpi.apk!/lib/x86, /system/lib]]] couldn't find "libflutter.so"

When I checked for the same issue with Flutter, I found there might be a chance it's happening because of the abiFilters setup in build.gradle. Also, while checking the comments in the issues, I found one of the comments: https://github.com/flutter/flutter/issues/83596#issuecomment-1455829874 which says if one of the dependencies applied the filter, there is a chance this error might come.
It will be really helpful if you guys can look into this on the priority.

@buenaflor but as mentioned in the https://github.com/flutter/flutter/issues/83596#issuecomment-1455829874, If you run flutter build appbundle and then unzip generated app-release.aab file. You will notice that it contains the following folders: base/lib/arm64-v8a, armeabi-v7a, x86, x86_64. So I guess we should remove the abiFilters from here as well if it's not making any issues now.

Makes sense, in that case it should be safe to remove it. I'll look into it more and get back to you very soon
https://docs.flutter.dev/deployment/android#what-are-the-supported-target-architectures

x86 still doesn't generate a libflutter.so, not sure if removing the abifilters will solve this

So I tried creating an app bundle in our Flutter exmaple app.
Build -> Flutter -> Build App Bundle
The example app has the same abiFilters as the defaultConfig of Sentry Flutter.
ndk {
    // Flutter does not currently support building for x86 Android (See Issue 9253).
    abiFilters("armeabi-v7a", "x86_64", "arm64-v8a")
}

As expected this would only produce folders "armeabi-v7a", "x86_64", "arm64-v8a", all of which contain libflutter.so

When removing abiFilter, there's also the "x86" folder, but without libflutter.so.

How would removing the filters resolve the issue where libflutter.so is missing on x86 devices?

Also, the abiFilter has to be present in the applications build.gradle. The x86 folder with missing libflutter.so will still be created when there is no abiFilter in the app, regardless of what sentry has defined in its defaultConfig.

Also tried creating an empty sample app with only sentry as dependency and removing the abiFilter from sentry. The x86 folder is still created.

So it seems users need to define abiFilters on the application level in oder to not have the x86 folder included in the app bundle.

[ ] Check behaviour with most recent flutter version.

As @denrase said, the best advice we can give here is to apply these abi filters on your application directly as well. I'll add it to our troubleshooting sentry-docs. After he checked if this problem remains for other flutter versions as well we will close this issue.

[ ] Add to sentry-docs troubleshooting

@buenaflor The behaviour is the same with the most recent Flutter version (3.16.9).


feature: Ask for users permission before removing or adding new plugins over lazyvim update

Did you check the docs?

[X] I have read all the LazyVim docs

Is your feature request related to a problem? Please describe.
In new versions of lazyvim often there are many breaking changes that impact heavily on the users workflow or cause breakage with custom plugin configurations.
Describe the solution you'd like
The user should be prompted to decide on the plugins they want to keep avoiding breakage in workflow. The user should be able to easily roll back automatic updates to lazyvim.
Describe alternatives you've considered
Im shure there is a way to specify version to lock lazyvim into a usable state I will revise documentation and do this.
Additional context
No response

What about users reading the actual changelog they see in lazy before updating??
No, I'm not going to do the effort to maintain different versions.
If there's a breaking change, then I typically mention that in the news file, which you see when you start LAzyVim.
It also contains the necessary steps to install/revert to a situation that was close to before the change.
LazyVim is an opensource project, not a company.
And you can indeed use Lazy's lockfile to restore if you don't like changes.


How can I specify latest preview version of a package in project.json?

Currently it is possible to specify '*' as a package's version in project.json, but it will only resolve to latest stable version; for prerelease version it seems I have to explicitly list it, is there a similar nation to indicate that I want to use latest prerelease version?
Thanks

2 questions:

What did you actually specify? Show an example of your project.json
How do you know it isn't the latest?

I am generating project.json to build a console application with dependencies on a few nuget packages:
{
  "dependencies": {
    "EntityFramework": "*",
    "Microsoft.Azure.Management.Resources": "3.4.0-preview"
  },
  "frameworks": { "net45": { } },
  "runtimes": { "win": { } }
}

In above example, EntityFramework will be resolved with latest stable version as I used * for the version; for the Microsoft.Azure.Management.Resources which only has pre-release versions, I cannot use * here, I have to specify the specific pre-release version.

{
  "dependencies": {
    "EntityFramework": "6.0.0-*",
    "Microsoft.Azure.Management.Resources": "3.4.0-preview"
  },
  "frameworks": { "net45": { } },
  "runtimes": { "win": { } }
}

That should work. In general though I would recommend not using a wildcard * unless you owned that dependency. Specifying a * on the pre-release tag is more sane :smile:

Yes I agree normally specifying a * on a pre-release package is not a good idea; but for temporarily generated project.json which was only used for building an assembly from other source (such as a LinqPad query), it is actually very handy. From your response I guess there is no support for that. I decided to use nuget.exe list package-id -pre to find out the latest pre-release version instead. Thanks

On 2016-02-24 15:42, David Fowler wrote:

{
"dependencies": {
"EntityFramework": "6.0.0-*",
"Microsoft.Azure.Management.Resources": "3.4.0-preview"
},
"frameworks": { "net45": { } },
"runtimes": { "win": { } }
}
That should work. In general though I would recommend not using a wildcard * unless you owned that dependency. Specifying a * on the pre-release tag is more sane
--
Reply to this email directly or view it on GitHub [1].

Thanks
Links:
[1] https://github.com/aspnet/Home/issues/1322#issuecomment-188175914

http://GloriaTech.com - In Christ, We Trust

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the system manager at<EMAIL_ADDRESS>Please note that any ideas, views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. Even though the company has put in place an effective security system to protect against viruses, the recipient should check this email and any attachments for the presence of viruses. The company will not accept any liability for damages caused by the contents of this email due to virus or any other means.


Key, Value collections can serialize bad object keys

It hasn't error when serialize a object keys like numbers or booleans. And Serialize is implemented for this types.

good catch!

fixed and tagged as 0.1.7 :+1: thanks for reporting this :)


no feedback about unconnected RPC

I would expect to see a little red dot or some kind of warning that the application isn't connected to a any client endpoint.

this one isnt super straight forward. @shanejonas and I tried a couple things, each having its own issue. We are wondering if this can wait for post v1. Thoughts @whilei ?

It seems kind of important to me... without a connected endpoint the wallet is missing a big part of it's raison d'etre and the user should know about that. Are the issues essentially differentiating no-response vs invalid responses, or what?

To break this issue down further (please help fill in blanks):

(already works) When starting the wallet, if geth is unavailable it will start geth itself, downloading it if necessary.

When starting the wallet, if any geth of the required rpc commands / features are not available in the currently running geth, notify the user of the missing features, and prompt them to....

When previously connected to a fully functioning geth, if geth becomes unreachable (timeout or status code ....??) we should....

anything else??

As another option, I would like to discuss re-working the network selector such that there are the following options:

Main net (will always download/boot correct version of geth for you, finding a port that is not in use and using a seperate data folder to avoid colliding with any currently running geth)
Custom RPC node (input an address to a node aka localhost:8545)
all the rest of the options stay the same

By taking the alternative approach, we can make the problem "prompt the user when their node is unreachable" + "prompt the user when a particular RPC command is unavailable, and report on the effects of such command being unnavail"

👍 for custom RPC feature
Heres the existing ticket for that for reference: https://github.com/ETCDEVTeam/emerald-wallet/issues/314

after talking with Isaac, We are gonna show a notification on any error when using geth rpc commands

upcoming release will have an error dialog and a submit issue to github button


Provide option in OpenZipkin/Cassandra StorageType to turn On/off Hostname verification

Please first, look at existing issues to see if the feature has been requested before. If you don't find anything tell us what problem you’re trying to solve. Often a solution already exists! Don’t send pull requests to implement new features without first getting our support. Sometimes we leave features out on purpose to keep the project small.
Feature
Currently, There is no option in Zipkin-Casandra Storage type to enable/disable Hostname Verification. By default , Host name verification defaults to True.
Rationale
Sometimes, in test levels the jks certifciate doesn't contain all the SAN entries and hence having default cassandra behavior of having host name verification true , Hence, we can't integrate Cassandra to Zipkin.
Example Scenario
Having this feature, We can work with different certificate (with/without) SAN entries in Test and production environment. Since Cassandra provides the support to turn on/off this behavior, Zipkin should not block any feature of underlying technology.
Prior Art
datastax driver defaults to hostname verification, true:
https://github.com/datastax/java-driver/blob/4.x/core/src/main/java/com/datastax/oss/driver/internal/core/ssl/DefaultSslEngineFactory.java#L83-L85

Configuration for the java driver is here:
https://docs.datastax.com/en/developer/java-driver/4.11/manual/core/ssl/

Hostname-validation parameter that needs to get exposed.
Zipkin would need to expose the parameter to configure it, but it currently doesn't. We need another parameter like we have to enable/disable ssl for hostname verification too.

https://github.com/openzipkin/zipkin/blob/master/zipkin-storage/cassandra/src/main/java/zipkin2/storage/cassandra/internal/SessionBuilder.java

ping jcchavezs

Would you open a PR for this?

Pull Request  -  https://github.com/openzipkin/zipkin/pull/3457
@jcchavezs


How to keep data consistent when using @RefreshScope in a execution?

I read this Dynamic Configuration Properties in Spring Boot and Spring Cloud as @spencergibb  suggested. And it said that

If your method execution is the one that triggers the initialization, then it all even happens in the same thread.

But in my code it doesn't work.
Here is my code:
A configuration bean:
package com.my.springdemo.chapter3.test;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@component
@DaTa
@refreshscope
public class TestConfig {
@value("${name}")
private String name;

@PostConstruct
private void print(){
    System.out.println("配置为=" + name);
}
}

A controller:

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.cloud.context.refresh.ContextRefresher;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@ConditionalOnClass(ContextRefresher.class)
@RestController
public class TestController {

    @Autowired
    private TestConfig config;

    @Autowired
    private  ContextRefresher contextRefresher;

    @RequestMapping("/config")
    public String config(){
        System.out.println("before config= " + config.getName() + ", hasCode=" + config.hashCode());
        try {
            Thread.sleep(10000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        contextRefresher.refresh();
        System.out.println("After config= " + config.getName() + ", hasCode=" + config.hashCode());
        return config.getName();
    }

}

Then get url: http://localhost:8080/config, and changed config "name" in my "application.properties" during the thread sleep time(which id 10 seconds as the code shows).
It turns out that the config "name" is changed before and after. Why?Does I take @RefreshScope the wrong way?

Could you put your code in a github repo or in a zip?

@ryanjbaxter I want give u my code but the RefreshScope not working again since I modified it  to find new ways to solve my problem.Don't know why.
Anyway my question is does RefreshScope can ensure a bean doesn't updated during the method execution.In my example the configuration 'name' changed after

contextRefresher.refresh()
I asked someone, and they say that RefreshScope can't do this.Because the target is changed and a  new bean is generated after refreshing and therefore when invoke config.getName(), which config is the bean annotated with RefreshScope, it invokes the target bean's method actually.Does I understand it correctly?
What I'm confusing now is if so, what's the difference between ConfigurationProperties and RefreshScope if I just want my configuration bean updated as soon as the refresh() is invoked?

I believe that the properties would not be refreshed in the middle of a method execution because as you said a new bean will get created when the context is refreshed.

What I'm confusing now is if so, what's the difference between ConfigurationProperties and RefreshScope if I just want my configuration bean updated as soon as the refresh() is invoked?

Not really sure what you are asking.  Your ConfigurationProperties would be updated when you refresh the context, assuming they have changed.

test-refresh
This is my test code.Just start the application, then get 'http://localhost:8080/config' and change the property 'name' in application.properties manually.It print different names before and after the refresh().
It means that if a bean is annotated by RefreshScope, it will be modified if the refres() method is invoked.
I want a config bean(like TestConfig in my code) doesn't change during the the same method execution to keep data consistent even if someone changes the configuration file and invokes the refresh().

I think you are expecting too much of the refresh scope. You can't expect a method execution in a singleton bean (your controller) to know that its method calls are tied to a refresh scope lifecycle. To do that you would need to do some manual synchronization (e.g. to make a deep copy of the config bean).

Thanks for the answer.I think I should find another way to solve my problem.


update to 0.7

I apparently have permissions to edit through the web UI but not by pushing (???), so this is #14 plus a re-render.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

I pulled your changes and by pushing back the old PR was updates. So I guess I'll continue there. Thanks again!


Mudslide in bash script with variables

          Hi there,

I'm trying to use Mudslide in a bash script (ubuntu 22.04) as follows:
#!/bin/bash
number="4312345678910"
content="hello world 111"
npx mudslide send $number "hello world 111"
npx mudslide send $number $content
The first mudslide commands sends:       hello world 111
The second mudslide command sends:   'hello
Could anyone tell me, what I#m doing wrong? Thanx and regards
Volkmar
Originally posted by @SproAdmin in https://github.com/robvanderleek/mudslide/issues/76#issuecomment-1893570992

Thank you, this was exactly the issue. Solved.
greez
Volkmar


Document set operations for In and NotIn

See https://github.com/kyverno/kyverno/issues/1367.

I'll get to it. Do each of the operators listed under the Operators section require a subsection or should I just document that In and NotIn operators now support set operations?

No they don't require their own subsection. Just try and capture it as best you can and we can play with as necessary.


Shorthand repetitions not working correctly with injections

If a method is called with injections as part of a shorthand repetition e.g.
*5H{++}

then the injection is not multiplied 5 times, and is only applied to the final call
Hence the repetition expands to
HHHHH{++}

not
H{++}H{++}H{++}H{++}H{++}

This can be temporarily fixed by wrapping the method call and injections in { } e.g.
*5{H{++}}

This could be fixed by checking for injection code when expnading repetitions

Fixed


Grammar mistake in documentation

Describe the bug
In the documentation: https://docs.kubestellar.io/unreleased-development/direct/pre-reqs/, in the sentence "In another example, a specific list of prerequisites could be asserted by an higher-level script, while providing some installation information, with the command below (note that the script will terminate upon finding a missing prerequisite). "AN" before higher should be an "a".
Steps To Reproduce

go to https://docs.kubestellar.io/unreleased-development/direct/pre-reqs/
ctrl+f "n another example, a specific list of prerequisites could be asserted by an higher-level script, while providing some installation information, with the command below (note that the script will terminate upon finding a missing prerequisite"

Expected Behavior
"AN" before higher should be an "a".
Additional Context
No response

Wrong place for issue


stages: add new zstd stage

This PR -

adds a new image compression stage to osbuild 'zstd'
Taking over https://github.com/osbuild/osbuild/pull/1277

Your commit message seems to be from a followup commit, and the test of the stage is still failing.

@bcl , Needed to add "zstd" package to fedora-34-build-v2.mpp.json manifest file , because of which test-data also had to be re-generated. Now that CI looks green , can I pls get a review on this PR :)

Thanks for review and approval 👍


Improve H264 streaming

IDR frames should be buffered, so that a new client receives one as the first frame it gets. Also, if frames for a client are being dropped, the latest IDR frame should be kept and sent as the next frame

Fixed: https://github.com/rospilot/rospilot/commit/5f5951a59794c1588b0143d7a8563894d16befac


Shift+Space Has Different Behavior with Roam42 Than Stock Roam

I have projects of the name "P: MyProject Name".  When Roam42 is not installed I can start typing page titles as follows in the search box...

SHIFT + P
SHIFT + :
SHIFT + " "
SHIFT + M
y

And the search will work fine.  With Roam42 installed the following keystroke does not behave as expected...

SHIFT + " "
At this point the first partial search term is picked and is opened.  Any ideas on why this is going on?  Shift + " " doesn't seem to be used by Roam42 itself anywhere.

That is a native Roam42 functionality. Just release the shift when typing space.

This can be disabled in the Roam42 menu, feature is called autocomplete. It autocompletes the selection of the first item in a drop down. If you get use to it, it can make selection fast. However, not all users like this flow.


IdentityServer4 and CSP problem

Hi everyone,
I have a problem with an application integrating with my IdentityServer4 based IdP. The problem is that when the user logs in to my IdP everything works, but then if I try the flow again and the user is already logged in and therefore the redirect on the application should take place directly without entering the email and password, the application crashes on the endpoint / authorize and in the browser I see this error:

On the old version of IdetityServer 3 there was this functionality:
https://identityserver.github.io/Documentation/docsv2/endpoints/csp.html
and then through the log I could have understood the problem, in version 4 how can I get the same result?
Please can you help me? Hope i was clear.
Thank you,

Same for me.
Error:
aspnetcore-browser-refresh.js:234 Refused to connect to 'ws://localhost:60519/identityserver/' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback.

Important update
This organization is not maintained anymore besides critical security bugfixes (if feasible). This organization will be archived when .NET Core 3.1 end of support is reached (3rd Dec 2022). All new development is happening in the new Duende Software organization.
The new Duende IdentityServer comes with a commercial license but is free for dev/testing/personal projects and companies or individuals making less than 1M USD gross annnual revenue. Please get in touch with us if you have any question.


🐛 [FIREBASE_MESSAGING] "Received an invalid notification content" error when clicking on notification (iOS)

Bug report
Describe the bug
I use FCM in my app for push notifications, and occasionally AwesomeNotifications for local notifications. On Android everything works great -- I can send, receive and handle all types of notifications. But in iOS, when I click on an FCM-generated notification, it freezes at the splash screen and eventually crashes. In debug mode, it continuously shows the error "Received an invalid notification content" and points to a line in SwiftAwesomeNotificationsPlugin.swift. I find that strange, since it was an FCM notification, being sent via https://fcm.googleapis.com/fcm/send, with this payload:
{
  "registration_ids": [
    {MY_FCM_TOKEN}
  ],
  "notification": {
  	"title": "This is a test notification",
    "body": "This is the body text"
  },
  "data": {
  	"click_action": "FLUTTER_NOTIFICATION_CLICK",
    "type": "CANCELED_SHOW"
  }
}

This is similar to FirebaseExtended/flutterfire/issues/7243, except I wasn't trying to use AwesomeNotifications in this use case at all.
I've tried;

Adding "content_available": true
Using APNS token instead of FCM token
Not initializing AwesomeNotifications at the beginning

Steps to reproduce

Initialize FirebaseMessaging and AwesomeNotifications at the beginning of the app
Put the app in the background
Send a push notification request using the link above (you can use the same payload too)
Watch it crash and burn

Expected behavior
Clicking on an FCM notification should trigger the onMessageOpenedApp event, where I handle all background notifications (e.g. go to a new screen).

Flutter doctor
Doctor Summary
[✓] Flutter (Channel stable, 2.5.3, on macOS 11.1 20C69 darwin-x64, locale en-CA)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Xcode - develop for iOS and macOS
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google
    Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[!] Android Studio (not installed)
[✓] VS Code (version 1.57.1)
[✓] Connected device (1 available)

Flutter dependencies
pubspec.yaml
environment:
  sdk: ">=2.12.0 <3.0.0"

dependencies:
  agora_rtc_engine: ^4.0.6
  agora_rtm: ^1.0.0
  audioplayers: ^0.19.1
  awesome_notifications: ^0.0.6+10
  cached_network_image: ^3.1.0
  cloud_firestore: ^2.3.0
  device_info_plus: ^2.1.0
  enum_to_string: ^2.0.1
  firebase_analytics: ^8.1.2
  firebase_auth: ^2.0.0
  firebase_core: ^1.3.0
  firebase_crashlytics: ^2.0.7
  firebase_dynamic_links: ^2.0.6
  firebase_messaging: ^10.0.4
  firebase_storage: ^10.0.1
  flutter:
    sdk: flutter
  flutter_launcher_icons: ^0.9.0
  flutter_libphonenumber: ^1.1.0
  flutter_native_splash: ^1.1.5+1
  get: ^4.3.4
  google_fonts: ^2.1.0
  http: ^0.13.3
  image_picker: ^0.8.3+2
  intl: ^0.17.0
  json_annotation: null
  package_info_plus: ^1.3.0
  page_transition: ^2.0.2
  permission_handler: ^8.1.2
  provider: ^5.0.0
  rainbow_color: ^2.0.1
  share: ^2.0.4
  shared_preferences: ^2.0.6
  sliding_up_panel: ^2.0.0+1
  url_launcher: ^6.0.12
  wakelock: ^0.5.2

flutter_icons:
  android: "launcher_icon"
  ios: true
  image_path: "assets/icon.png"

flutter_native_splash:
  color: "#40139b"
  image: "assets/logo.png"

dev_dependencies:
  build_runner: ^1.10.11
  flutter_test:
    sdk: flutter
  json_serializable: null
  dependency_validator: ^3.1.0

Device: iPhone 11, iOS 15
Flutter SDK: 2.5.3
Dart SDK: 2.14.4

Relevant Code
main()
Future<void> main() async {
  runZonedGuarded<Future<void>>(() async {
    WidgetsFlutterBinding.ensureInitialized();
    AwesomeNotifications().initialize(
      'resource://drawable/res_notification_app_icon',
      [
        NotificationChannel(
          channelKey: 'basic_channel',
          channelName: 'Basic Notifications',
          defaultColor: MyTheme.purple,
          importance: NotificationImportance.High,
          channelShowBadge: false,
          playSound: true,
        ),
        NotificationChannel(
          channelKey: 'scheduled_channel',
          channelName: 'Scheduled Notifications',
          defaultColor: MyTheme.purple,
          importance: NotificationImportance.High,
          channelShowBadge: false,
          playSound: true,
        ),
      ],
    ).then((value) {
      print("AwesomeNotifications initialized: $value");
      if (Platform.isIOS)
        AwesomeNotifications().getGlobalBadgeCounter().then((value) {
          if (value > 0) {
            AwesomeNotifications().setGlobalBadgeCounter(0);
          }
        });
    });

    await Firebase.initializeApp();

    await FirebaseMessaging.instance.requestPermission();

    FirebaseCrashlytics.instance.setUserIdentifier(deviceId);
    FlutterError.onError = FirebaseCrashlytics.instance.recordFlutterError;
    if (kDebugMode) {
      await FirebaseCrashlytics.instance.setCrashlyticsCollectionEnabled(true);
    }

    runApp(MyApp());
  }, (error, stack) => FirebaseCrashlytics.instance.recordError(error, stack));
}

Initialize FirebaseMessaging
Future _initFCM() async {
    PermissionStatus status = await Permission.notification.request();
    print("FCM Status: $status");
    if (status.isPermanentlyDenied) {
      openAppSettings();
    } else if (!status.isDenied) {
      print(
          "Initialize FCM. Listen to background messages. Get initial message");
      final _firebaseMessaging = FirebaseMessaging.instance;
      final PushNotificationService pushNotificationService =
          PushNotificationService();
      await pushNotificationService.initialize(_firebaseMessaging);

      FirebaseMessaging.onBackgroundMessage(notificationMessageHandler);

      // Try to get initial notification message if there's any
      RemoteMessage? initialMessage =
          await _firebaseMessaging.getInitialMessage();
      if (initialMessage != null) {
        final PushNotificationMessage notification = PushNotificationMessage(
          title: initialMessage.notification!.title,
          body: initialMessage.notification!.body,
          data: initialMessage.data,
        );
        print("Received initial message: $notification.");
        await pushNotificationService.handleNotification(notification);
      }
    }
  }

PushNotificationService.initialize()
Future initialize(FirebaseMessaging fcm) async {
    // Get FCM token
    String? token = await fcm.getToken();
    String? apnsToken = await fcm.getAPNSToken();

    // Listen for new FCM tokens
    fcm.onTokenRefresh.listen((String newToken) {
      print("New FirebaseMessaging token: $newToken");
    });

    // Receiving notification while app is open
    FirebaseMessaging.onMessage.listen((RemoteMessage message) {
      final PushNotificationMessage notification = PushNotificationMessage(
        title: message.notification!.title,
        body: message.notification!.body,
        data: message.data,
      );
      print("OnMessage (foreground notification): $notification.");
    });

    // When user clicks on a notification (when app is not terminated)
    FirebaseMessaging.onMessageOpenedApp.listen((RemoteMessage message) {
      final PushNotificationMessage notification = PushNotificationMessage(
        title: message.notification!.title,
        body: message.notification!.body,
        data: message.data,
      );
      print("OnMessageOpenedApp: $notification.");
      handleNotification(notification);
    });

    AwesomeNotifications().createdStream.listen((ReceivedNotification notification) {
      print("A ${notification.channelKey} notification was created.");
    });

    AwesomeNotifications().actionStream.listen((ReceivedAction action) async {
      if (action.channelKey == 'basic_channel' && Platform.isIOS) {
        AwesomeNotifications().getGlobalBadgeCounter().then((value) {
          AwesomeNotifications().setGlobalBadgeCounter(value - 1);
        });
      }
      print(
          "A ${action.channelKey} notification action was made: ${action.buttonKeyPressed}");

      if (action.payload != null) {
        final PushNotificationMessage notification = PushNotificationMessage(
            title: action.title, body: action.body, data: action.payload!);
        handleNotification(notification);
      }
    });

    AwesomeNotifications().dismissedStream.listen((ReceivedAction action) {
      if (action.channelKey == 'basic_channel' && Platform.isIOS) {
        AwesomeNotifications().getGlobalBadgeCounter().then((value) {
          AwesomeNotifications().setGlobalBadgeCounter(value - 1);
        });
      }
      print("A ${action.channelKey} notification action was dismissed");
    });
  }

Hi @darshankawar
One thing I forgot to mention, mainly because I hadn't investigated it at that point, was that the behavior wasn't there before. I used to be able to click on a notification and have it take me to the app (albeit still not fully functional, as the onMessageOpenedApp is still not triggered).
When I looked into my git history, I found that between the last working commit and the next non-working one, I had changed the pre-compiled Firebase iOS SDK version from 8.3.0 to 8.7.0 in my podfile file.
I wanted to see if reverting it back to 8.3.0 would help, but when I do and run pod update, it shows a CocoaPods error, telling me 8.7.0 is required:
[!] CocoaPods could not find compatible versions for pod "FirebaseCore":
      In Podfile:
        firebase_core (from `.symlinks/plugins/firebase_core/ios`) was resolved to 1.7.0, which depends on
          Firebase/CoreOnly (= 8.7.0) was resolved to 8.7.0, which depends on
            FirebaseCore (= 8.7.0)

        firebase_dynamic_links (from `.symlinks/plugins/firebase_dynamic_links/ios`) was resolved to 2.0.10, which depends on
          Firebase/DynamicLinks (= 8.7.0) was resolved to 8.7.0, which depends on
            FirebaseDynamicLinks (~> 8.7.0) was resolved to 8.7.0, which depends on
              FirebaseCore (~> 8.0)

    CocoaPods could not find compatible versions for pod "FirebaseFirestore":
      In Podfile:
        FirebaseFirestore (from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `8.3.0`)

        cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 2.5.3, which depends on
          Firebase/Firestore (= 8.7.0) was resolved to 8.7.0, which depends on
            FirebaseFirestore (~> 8.7.0)

That doesn't make sense to me, because between the 2 commits I didn't change the versions of any of the firebase packages in pubspec.yaml. But in one version (the working one), it requires Firebase SDK 8.3.0, whereas in the next one (the non-working one), it wants Firebase SDK 8.7.0 (See images below).

I tried doing a flutter clean and deleting the Podfile.lock, but it didn't help.
My Podfile

# Uncomment this line to define a global platform for your project
platform :ios, '10.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
  end

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT\=(.*)/)
    return matches[1].strip if matches
  end
  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
  pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '8.3.0'
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
    target.build_configurations.each do |config|
      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
        '$(inherited)',

        'PERMISSION_CAMERA=1',
        'PERMISSION_MICROPHONE=1',
        'PERMISSION_PHOTOS=1',
        'PERMISSION_NOTIFICATIONS=1',
      ]

    end
  end
end

Thanks Darshan for all your help!

Keeping it open for further insights from the team.
/cc @russellwheatley

@darshankawar
I managed to find the cause of the crash. Keeping everything the same, I changed the version of awesome_notifications from ^0.0.6+10 to 0.0.6+10. For some reason any version above 0.0.6+10 would make it crash.
Now there is another issue. When I send an FCM notification, the device receives a background notification (meaning onBackgroundMessage works). But when I click on it, it takes me to the app, but onMessageOpenedApp isn't triggered. On the other hand, if the app is in the foreground when the notification is received, onMessage is properly triggered.
So how come all the other callbacks work but not onMessageOpenedApp? (I use the same FCM payload and code as mentioned above).
I'll probably open a separate issue for this, but I thought I'd leave it here in case anyone has an answer.
Thanks!

Hi @benha0898
I had the same issue. Can you fix this please ?
Thanks

@Kuro-Tatsu I haven’t found a solution yet. In your case is onMessageOpenedApp the only thing not working as well?

@benha0898 I had a message 'Received an invalid notification content' to. And the app crash after.

@Kuro-Tatsu oh yeah that one I did find a solution. I just had to downgrade the awesome_notifications. For some reason any version above 0.0.6+10 crashes the app for me, so I just set the version to 0.0.6+10 (without the ^) in the yaml file, and it worked.

Hi @benha0898, we are on version 11.2.4 of firebase messaging at the moment although not sure it will solve your problem. I was testing the messaging package extensively the other day, there was no problem with the onMessageOpenedApp API firing on iOS. I wonder if there is some interference from the awesome notifications package.


error with ami id

What is your default region
aws configure

The classroom stuff works when region is us-west-2


map.HTML not opening

I have converted geemap to map.html but it's not opening in any browser. I have tried to open in explorer and google chrome.

This is an ipyleaflet issue. Try import geemap.foliumap as geemap


TypeError: Cannot read property 'query' of null

https://opencollective.com/create
apollo error:  TypeError: Cannot read property 'query' of null

I'm not getting this error when checking now.
But could it be because of:
  const router = useRouter();
  const slug = router.query.hostCollectiveSlug;
  const skipQuery = !LoggedInUser || !slug;
 ...

Maybe we should change it to router?.query?.hostCollectiveSlug?

@sbinlondon you should set DEBUG=true in your environment to see the message.

Instead of your proposed fix, I recommend to make sure that we can properly read the slug in SSR environment.

Ok, I will have a look with DEBUG=true and think about the fix.

On my side, I investigated https://github.com/opencollective/opencollective/issues/3555 and figured that router was not available in the first rendering triggered by getDataFromTree but was available later on.
Not sure the reason and what to do with it. Looks less critical than what I originally thought.

router was not available in the first rendering triggered by getDataFromTree but was available later on.

I had seen that too in the bit of investigating I had done. If it's not very critical, in that case I might set this aside for now.

This is only happening server side, and only logged when DEBUG is set. It should still be fixed.


Missing Mouse Cursor

I've been using Virtual Display Driver for Sunshine-Moonlight streaming from a headless computer with Windows 11 Insider Preview Build 26058, but lately the mouse cursor isn't rendering at all. Everything else is working perfectly and it was working great before, not sure what the problem might be. Guessing it's on Windows side of things?

Do you have a mouse plugged into the host computer ?

Yes, there's a mouse plugged in.

Not sure then, I'll ask around for you

It might be an issue with windows updates then

Same issue, Windows 11 Insider Preview Build 26058

Same issue, my windows is Windows 11 Insider Preview Build 26080

The new beta adds functionality to create a hardware cursor/software cursor.


fix : Home-image-cover position updated #4581

Home cover image now aligned
Fixes #
Screenshots of the changes (If any) -

fixes #4581

hey @ShubhradipSarkar pls dont raise pr without assigned my maintainer

hey @ShubhradipSarkar pls dont raise pr without assigned by maintainer

Sure

Issue is not verified and if once verify, will be assigned to issue creator as he has shown interest to work on.
Please check for other issues.


Support 'username' as an optional argument to FilesystemResolver

Including forwarding of username argument from calling sites of FilesystemResolver where it makes sense.

@selitvin - I am assuming that this is to enhance support for HDFS? S3 credentials should be set from the environment / ~/.aws/credentials, and I can't think of a case where the local filesystem would need a username.

Yep. This is for hdfs case, where the username can be specified, depends on the hdfs cluster configuration. This is not the most elegant solution since the argument is not applicable in some FilesystemResolver usage scenarios. Maybe we should issue a warning, if hdfs_driver or username is specified for non hdfs filesystems.

I think it's a very useful feature.  If I need to proxy user to access hdfs.

Reference PR #384


Add interface listing with ability to start/stop listening on each

Should still automatically start on all of them by default
I'm envisioning a control for each interface in the left bar, with a checkbox for listening.
Later, these controls will get buttons for ping sweep etc (see #14)

848da0203b63db5eefa751ac4731009bf7ab3bac


[core][core-http] createPipelineFromOptions needs a way to skip retry policies

Currently there is no good way to disable the built-in retry logic when using createPipelineFromOptions:
https://github.com/Azure/azure-sdk-for-js/blob/f2940c39d5053071059071f024bd728193219689/sdk/core/core-http/lib/serviceClient.ts#L687
This makes it tricky for Storage to apply its custom retry policies. For now we are relying on the fact that these policies are always the last three, but in the future it would be nice to have some way to identify these policies in the array (so they can be removed or inserted before/after)

We should solve this problem of libraries subclassing ServiceClient and needing custom pipelines before exposing this machinery to users.

This can be easily done with core-rest-pipeline, so new service clients built on top will be able to configure it


⚠ Bofrost.be has degraded performance

In 166f08b, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1564 ms

Resolved: Bofrost.be performance has improved in 7ac6995 after 8 minutes.


feval metric score ignored for early stopping with Python API

When using early_stopping_rounds, the feval function is ignored, and early stopping is determined by the default metric (binary logloss in this case). I included a reproducible example below.
I don't see any way of turning off the default metric (I tried manually setting it to 'metric': None in the params dict, but it still exhibited this behavior).
I created a trivial "custom metric" that's just an incrementing counter. I would expect the model to train indefinitely, but instead we see it trains only as long as binary logloss is improving.
[210]	training's binary_logloss: 0.00115081	training's feval_func: -210
[211] 	training's binary_logloss: 0.00113343	training's feval_func: -211
[212]	training's binary_logloss: 0.00112853	training's feval_func: -212
[213]	training's binary_logloss: 0.00104986	training's feval_func: -213
[214]	training's binary_logloss: 0.000965577	training's feval_func: -214
[215]	training's binary_logloss: 0.000960396	training's feval_func: -215
[216]	training's binary_logloss: 0.000971713	training's feval_func: -216
[217]	training's binary_logloss: 0.000941262	training's feval_func: -217
[218]	training's binary_logloss: 0.000849178	training's feval_func: -218
[219]	training's binary_logloss: 0.000841552	training's feval_func: -219
[220]	training's binary_logloss: 0.000803302	training's feval_func: -220
[221]	training's binary_logloss: 0.000685291	training's feval_func: -221
[222]	training's binary_logloss: 0.000689522	training's feval_func: -222
[223]	training's binary_logloss: 0.000736344	training's feval_func: -223
[224]	training's binary_logloss: 0.000816562	training's feval_func: -224
[225]	training's binary_logloss: 0.000829289	training's feval_func: -225
[226]	training's binary_logloss: 0.000799258	training's feval_func: -226
[227]	training's binary_logloss: 0.000837895	training's feval_func: -227
[228]	training's binary_logloss: 0.000844479	training's feval_func: -228
[229]	training's binary_logloss: 0.000862614	training's feval_func: -229
[230]	training's binary_logloss: 0.000855565	training's feval_func: -230
[231]	training's binary_logloss: 0.000778359	training's feval_func: -231
Early stopping, best iteration is:
[221]	training's binary_logloss: 0.000685291	training's feval_func: -221

Is feval supposed to only be used for logging, and not early_stopping_rounds? If so, should I look into custom callbacks to determine early_stopping?
Environment info
Operating System: Mac OSX High Sierra
CPU:
C++/Python/R version: python3.5.3
Reproducible example
# coding: utf-8
# pylint: disable = invalid-name, C0111
import json
import lightgbm as lgb
import pandas as pd
import numpy as np
from sklearn.metrics import mean_squared_error

try:
    import cPickle as pickle
except BaseException:
    import pickle

# load or create your dataset
print('Load data...')
df_train = pd.read_csv('../binary_classification/binary.train', header=None, sep='\t')
df_test = pd.read_csv('../binary_classification/binary.test', header=None, sep='\t')
W_train = pd.read_csv('../binary_classification/binary.train.weight', header=None)[0]
W_test = pd.read_csv('../binary_classification/binary.test.weight', header=None)[0]

y_train = df_train[0].values
y_test = df_test[0].values
X_train = df_train.drop(0, axis=1).values
X_test = df_test.drop(0, axis=1).values

num_train, num_feature = X_train.shape

# create dataset for lightgbm
# if you want to re-use data, remember to set free_raw_data=False
lgb_train = lgb.Dataset(X_train, y_train,
                        weight=W_train, free_raw_data=False)
lgb_eval = lgb.Dataset(X_test, y_test, reference=lgb_train,
                       weight=W_test, free_raw_data=False)

# specify your configurations as a dict
params = {
    'boosting_type': 'gbdt',
    'objective': 'binary',
    'metric': None,
    'num_leaves': 31,
    'learning_rate': 0.9,
    'feature_fraction': 0.9,
    'bagging_fraction': 0.8,
    'bagging_freq': 5,
    'verbose': 0
}

# generate a feature name
feature_name = ['feature_' + str(col) for col in range(num_feature)]

counter = 0

def feval_func(preds, train_data):
    global counter
    counter -= 1
    return ('feval_func', counter, False)

print('Start training...')
# feature_name and categorical_feature
gbm = lgb.train(params,
                lgb_train,
                feval=feval_func,
                early_stopping_rounds=10,
                num_boost_round=1000,
                valid_sets=lgb_train,  # eval training data
                feature_name=feature_name,
                categorical_feature=[21])

@ClimbsRocks When you use two metrics, the training will stop when one of them met early stopping.
In your case, the binary_logloss met early stopping.
To avoid this, you can use only one metric.

Thanks for sharing how to ignore the default metric. I just submitted a PR to add that to the docs.

As always, I'm impressed by how responsive you are


JS: Add a new "undefined" type (or proxy it as "void")?

Would supercede https://github.com/dart-lang/sdk/issues/24088.
In JavaScript some APIs have a distinction between undefined and null, i.e. they do:
function storeVar(name, value) {
  if (value == undefined) {
    value = _someDefault;
  }
}

This isn't terribly different from how we treat optional parameters today, i.e. the call site determines if it uses the default expression, if any, otherwise it is null. Unfortunately we lack the way to:

Access the undefined JS type (for JS-interop) - see #24088.
Use the undefined type ourselves as a type of (pun intended) sentinel value.

The second use case is extra interesting, because some JavaScript VM's can understand that null and undefined are sentinel-like values, but they can't tell that some arbitrary Dart object is (believing it is polymorphic) - but more importantly, because we'd like to retain type inference and types wherever possible.
final _notFoundSentinel = new Object();

abstract class DynamicInjector {
  dynamic get(Type token) {
    var result = _getImpl(token, _notFoundSentinel);
    if (identical(result, _notFoundSentinel)) {
      throw 'Not found';
    }
    return result;
  }

  dynamic _getImpl(Object token, Object defaultIfNotFound);
}

This works, OK (minus potential perf consequences of using an arbitrary object), but notice that I am forced to use a dynamic type for practically everything. In Dart 2, I might be able to "tighten" this up a bit:
final _notFoundSentinel = new Object();

abstract class DynamicInjector {
  T get<T>() {
    assert(T != dynamic, 'Type parameter T, which is the token, is required!');
    // Runtime error: _notFoundSentinel (Object) is not of type T (SomeClass)
    var result = _getImpl(token, _notFoundSentinel);
    if (identical(result, _notFoundSentinel)) {
      throw 'Not found';
    }
    return result;
  }

  Object _getImpl(Object token, Object defaultIfNotFound);
}

If I had an undefined type (or could use void for this purpose):
import 'package:js/js.dart' as js show undefined;

const _notFoundSentinel = js.undefined;

abstract class DynamicInjector {
  T get<T>() {
    assert(T != dynamic, 'Type parameter T, which is the token, is required!');
    // No runtime error, "undefined" is allowed for any type.
    var result = _getImpl(token, _notFoundSentinel);
    if (identical(result, _notFoundSentinel)) {
      throw 'Not found';
    }
    return result;
  }

  Object _getImpl(Object token, Object defaultIfNotFound);
}

It gets a little tricky with non-nullability, but again, when you're dealing with JS APIs you don't have the luxury of pretending everything is 100% Dart. This would be no less "bad" than writing the following code yourself:
final dynamic undefined = js.eval('void 0');

// Use undefined.
void someInteropFunction(JsChartLib chart, [String name]) {
  chart.name = name ?? undefined;
}

One of the reasons dart2js and DDC treat both JavaScript null and JavaScript undefined as Dart null is so that Lists (Arrays) do not have to be explicitly null-filled.  new List(10) can compile to new Array(10).
There are two values that are Dart null, just like there might be two Strings with value "a".
As a consequence, identical(js.null, js.undefined) --> true.
You would need another predicate to test for the value in Dart code.
If you want undefined to not be considered as Dart null, but be another null-like value that does not force you to use dynamic/Object, that would be a major change to the type system.

I mean we can be (clever?) here, most of the time (99%) you don't care.
I'd be fine if it "seemed" like null to Dart2JS/DDC, but there was a way of telling what it is:
library js;

external bool isUndefined(Null nullOrUndefined);

Example use:
import 'package:js/js.dart' as js;

void callWithArg(dynamic arg) {
  if (arg == null) {
    if (js.isUndefined(arg)) {
      // This is actually, at runtime, `undefined`, not `null`.
    } else {
      // This is actually, at runtime, `null`.
    }
  }
}

Would that be OK? I'd still need a way to assign undefined:
library js;

/// Returns the JS "undefined" type, i.e. equivalent to `void 0`.
external Null get undefined;

import 'package:js/js.dart' as js;

void useJsInterop(ChartJs chart) {
  chart.someApi(js.undefined);
}

Adding insult to the injury here regarding @rakudrama's comment, new Array(10) in JS creates an array that has 10 "holes" not "undefined".
let a = new Array(10);
a.forEach((x) => {
  console.log('foo');
});
for (let i = 0; i < a.length; i++) {
  console.log('bar');
}

The above code prints "bar" 10 times but no "foo". The forEach callback (and map and filter) are only called on concrete values in the array, but holes are not, so they are skipped.


Can't close dropdown on small height screen

Prerequisites

[x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate
[x] The issue still exists against the latest master branch of Select2
[x] This is not a usage question (Those should be directed to the community)
[x] I have attempted to find the simplest possible steos to reproduce the issue
[ ] I have included a failing test as a pull request (Optional)

Steps to reproduce the issue

open codepen link in fullscreen (need full height screen)
click on each select2 and outside it at the bottom or in sidebar to try to close dropdown

Expected behavior and actual behavior
When I follow those steps, I was expecting dropdown close
Environment
Browsers

[x] Google Chrome
[x] Mozilla Firefox
[x] Internet Explorer

Operating System

[x] Windows

Libraries

jQuery version: 1.11.3
Select2 version: 4.0.3

Isolating the problem

[x] The bug happens consistently across all tested browsers
[x] I can reproduce this bug in a codepen

I was only able to reproduce this one on the "With DropdownParent" one, which you'll notice definitely has issues. The problem here is actually that for the dropdownParent option, you're passing in multiple options. Select2 expects you to pass in a single option so it can consistently track down the parent.
As far as why you can't click on the very bottom and close the Select2, this is because technically that's outside of the body of the document. Select2 can't actually detect clicks down there (consistently, across all browsers) because it's outside of the range we can detect.
I was not able to reproduce the issue with having it close when clicking the right sidebar. I'm going to close off this ticket as not a bug, but if you're able to write up some steps for consistently reproducing the closing issue, then I can reopen this.

Hi, thanks for your answer, did you saw the codepen link ? http://codepen.io/anon/pen/PbgMGj
To reproduce the bug you need to move up the codepen window to the top or on a fullscreen view


Datadog RUM is not working in Flutter Web

Describe the bug
I followed the web part as written in the official documentation, but the data is not being collected in the RUM Dashboard.
Reproduction steps
index.html
<script type="text/javascript" src="https://www.datadoghq-browser-agent.com/us1/v5/datadog-logs.js"></script>
<script type="text/javascript" src="https://www.datadoghq-browser-agent.com/us1/v5/datadog-rum-slim.js"></script>

main.dart
final configuration = DatadogConfiguration(
  clientToken: datadogClientToken,
  env: Config.instance.env,
  site: DatadogSite.us1,
  nativeCrashReportEnabled: true,
  loggingConfiguration: DatadogLoggingConfiguration(),
  rumConfiguration: DatadogRumConfiguration(
    applicationId: datadogApplicationId,
    sessionSamplingRate: 100.0,
  ),
)..enableHttpTracking();

await DatadogSdk.runApp(configuration, TrackingConsent.granted, () async {
    runApp()
    }
   );

In Web Inspect, downloaded sdk.

But in RUM Dashboard, I can't see logs web traffic.
SDK logs
No response
Expected behavior
No response
Affected SDK versions
datadog_flutter_plugin: ^2.3.0
datadog_tracking_http_client: ^2.1.0
Latest working SDK version
No response
Did you confirm if the latest SDK version fixes the bug?
Yes
Flutter Version
3.19.3
Setup Type
No response
Device Information

Other relevant information
No response

Hi @ChanghyeonYoon
Did you start any RUM views in your application? Either by using the Navigation Observers or my manually calling startView?

Hi @ChanghyeonYoon
Did you start any RUM views in your application? Either by using the Navigation Observers or my manually calling startView?

HI @fuzzybinary, is that step mandatory? Is there any update docs with latest info to set up the SDK in flutter web?
Thanks

After add manullay calling startView, it was work!
But this step in Advanced Configutaion
I think it will move to mandatory step!!

After add manually calling startView, it was work! But this step in Advanced Configutaion. I think it need move to mandatory step!!

With navigators observers property at app level works as well. Thx @ChanghyeonYoon  and @fuzzybinary

Great you were able to get it working! I'll close this issue. If you have any other issues please let me know.

Is that step mandatory? Is there any updated docs with latest info to set up the SDK in flutter web?

Yes, having a view active is required, so right now this step is mandatory. That said we highly recommend using the RouterObserver over manual calls to startView and stopView.
For now, Flutter Web support is fairly limited (documentation on the limitations is here). If you need full support for Flutter Web, please reach out to your CSM to request it.


Unable to compile osgood-v8

This error occurs with the current version of rust (1.35.0) on an Ubuntu-based machine with a fresh checkout of Osgood.
Here is the error I receive:
   Compiling osgood-v8 v0.1.0 (/home/tlhunter/projects/osgood/osgood-v8)
error[E0277]: the trait bound `*mut binding::root::v8::Isolate: std::convert::From<wrapper::local::Local<binding::root::v8::Context>>` is not satisfied
   --> osgood-v8/src/wrapper/local.rs:178:65
    |
178 |             let maybe_bool = self.inner_mut().ToBoolean(context.into());
    |                                                                 ^^^^ the trait `std::convert::From<wrapper::local::Local<binding::root::v8::Context>>` is not implemented for `*mut binding::root::v8::Isolate`
    |
    = help: the following implementations were found:
              <*mut binding::root::v8::Isolate as std::convert::From<wrapper::isolate::Isolate>>
    = note: required because of the requirements on the impl of `std::convert::Into<*mut binding::root::v8::Isolate>` for `wrapper::local::Local<binding::root::v8::Context>`

error[E0599]: no method named `to_local_checked` found for type `binding::root::v8::Local<binding::root::v8::Boolean>` in the current scope
   --> osgood-v8/src/wrapper/local.rs:179:24
    |
179 |             maybe_bool.to_local_checked().unwrap().inner_mut().Value()
    |                        ^^^^^^^^^^^^^^^^
    |
   ::: /home/tlhunter/projects/osgood/target/debug/build/osgood-v8-4cd19fa596129b75/out/bindings.rs:268:81
    |
268 |  # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone , Hash , PartialEq , Eq ) ] pub struct Local < T > { pub val_ : * mut T , pub _phantom_0 : :: std :: marker :: PhantomData < :: std :: cell :: UnsafeCell < T > > , }
    |                                                                                ---------------------- method `to_local_checked` not found for this

error[E0560]: struct `binding::root::v8::ResourceConstraints` has no field named `max_semi_space_size_in_kb_`
  --> osgood-v8/src/wrapper/isolate.rs:21:21
   |
21 |                     max_semi_space_size_in_kb_: 0,
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^ `binding::root::v8::ResourceConstraints` does not have this field
   |
   = note: available fields are: `code_range_size_`, `max_old_generation_size_`, `max_young_generation_size_`, `max_zone_pool_size_`, `initial_old_generation_size_` ... and 2 others

error[E0560]: struct `binding::root::v8::ResourceConstraints` has no field named `max_old_space_size_`
  --> osgood-v8/src/wrapper/isolate.rs:22:21
   |
22 |                     max_old_space_size_: 0,
   |                     ^^^^^^^^^^^^^^^^^^^ `binding::root::v8::ResourceConstraints` does not have this field
   |
   = note: available fields are: `code_range_size_`, `max_old_generation_size_`, `max_young_generation_size_`, `max_zone_pool_size_`, `initial_old_generation_size_` ... and 2 others

error[E0277]: the trait bound `wrapper::local::Local<binding::root::v8::String>: std::convert::From<binding::root::v8::MaybeLocal<binding::root::v8::String>>` is not satisfied
  --> osgood-v8/src/wrapper/string.rs:13:77
   |
13 |         unsafe { V8::String_NewFromUtf8(Isolate::raw(), c_str!(val), 0, -1).into() }
   |                                                                             ^^^^ the trait `std::convert::From<binding::root::v8::MaybeLocal<binding::root::v8::String>>` is not implemented for `wrapper::local::Local<binding::root::v8::String>`
   |
   = help: the following implementations were found:
             <wrapper::local::Local<T> as std::convert::From<binding::root::v8::Local<T>>>
             <wrapper::local::Local<binding::root::v8::Array> as std::convert::From<&mut wrapper::local::Persistent<binding::root::v8::Array>>>
             <wrapper::local::Local<binding::root::v8::ArrayBuffer> as std::convert::From<&mut wrapper::local::Persistent<binding::root::v8::ArrayBuffer>>>
             <wrapper::local::Local<binding::root::v8::Integer> as std::convert::From<&mut wrapper::local::Persistent<binding::root::v8::Integer>>>
           and 15 others
   = note: required because of the requirements on the impl of `std::convert::Into<wrapper::local::Local<binding::root::v8::String>>` for `binding::root::v8::MaybeLocal<binding::root::v8::String>`

error: aborting due to 5 previous errors

Some errors occurred: E0277, E0560, E0599.
For more information about an error, try `rustc --explain E0277`.
error: Could not compile `osgood-v8`.

To learn more, run the command again with --verbose.

The v8-version.txt file had a newline hidden in it which was breaking the git checkout command.


Fix memory freeing in ponyint_pool_realloc

Previously, the index-based pool free function was always called, which was wrong for oversized pool allocations.

Does this need the changelog label?

I think it should have a FIXED label

It depends. The function is currently used in 2 places in the compiler: to resize the lexer buffer for individual tokens and to reallocate a tuple-related data structure in the code generator. Hitting the assertion failure on those cases would require a very big token or a deeply nested tuple, respectively (at least 2^20 characters/tuple levels), and both cases are unlikely in real-world programs.
I'd say that if the changelog should be exhaustive, this should have a changelog entry. If the changelog should only contain elements that can be realistically encountered by users, this shouldn't have a changelog entry.


Autocompletion of files' paths doesn't work

Discussed in https://github.com/microsoft/pylance-release/discussions/3699

Originally posted by RegreTTO December  1, 2022

Environment data

Language Server version: Pylance language server 2022.11.41 (pyright 621d886b)
OS and version: Arch Linux, Kernel: 6.0.10-zen2-1-zen
Python version (& distribution if applicable, e.g. Anaconda): 3.9.13 Anaconda

Code Snippet

Repro Steps

Create some data files
Type something like  open("<path>")

Expected behavior
I get path suggestion
(I switched to Jedi server to show you the expected behavior)

Actual behavior
Nothing shows
Logs

https://gist.github.com/RegreTTO/51d402c077f46173f51a88d3e18a2978
(Github doesn't allow such big amount of text, as I get in logs)

This is an enhancement for us. It's why it's a discussion at the moment. Feel free to upvote or ask questions on the discussion.