Unable to save ensembled tf.keras.Model instance

Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Linux Ubuntu 18.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
NIL
TensorFlow installed from (source or binary):
Binary
TensorFlow version (use command below):
2.1.0
Python version:
3.6
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
10.1 /  7.6.4
GPU model and memory:
RTX 2070 Super/8GB

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with:

TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"

Describe the current behavior
I am unable to save an ensembled model after training it to completion.
My ensembled network is as follows:

inputs = tf.keras.layers.Input(shape=[224, 224, 3])

def Net(inputs):
    base_model = DenseNet121(include_top=False, weights='imagenet', input_tensor=inputs)
    output = base_model.get_layer("pool3_conv").output
    x = Conv2D(128, 3, activation='relu', padding='same')(output)
    x = BatchNormalization()(x)
    x = Conv2D(64, 3, activation='relu', padding='same')(x)
    x = BatchNormalization()(x)
    x = Flatten()(x)
    x = Dense(2, activation='softmax', name='clf_output')(x)

    model = tf.keras.models.Model(inputs=[base_model.input], outputs=[x])

    return model

def create_ensemble(models, inputs):
    for i in range(len(models)):
        # Each model is a Net object
        model = models[i]
        for layer in model.layers[1:]:
            layer.trainable = False
            layer._name = 'ensemble_' + str(i+1) + '_' + layer._name

    stack_outputs = [model(inputs) for model in models]
    merge = Concatenate()(stack_outputs)
    x = Dense(16, activation='relu')(merge)
    x = Dense(2, activation='softmax')(x)

    print(inputs)
    model = tf.keras.models.Model(inputs=inputs, outputs=x, name='ensemble')

    return model

Portion of training code:
 # Creating Ensemble
    print("Creating Ensemble")
    ensemble = create_ensemble(models, inputs)

    print("Ensemble architecture: ")
    print(ensemble.summary())

    ensemble.compile(loss="categorical_crossentropy",
                     optimizer=opt,
                     metrics=["accuracy"])

    ensemble_checkpoint = tf.keras.callbacks.ModelCheckpoint("ensemble_backup_weights.h5",
                                                             monitor='val_loss',
                                                             verbose=1,
                                                             save_weights_only=True,
                                                             save_best_only=True)
history = ensemble.fit(train_ds,
                           epochs=EPOCHS,
                           verbose=1,
                           steps_per_epoch=(len(imagePaths)-VAL_SPLIT) // BS,
                           validation_data=(val_ds),
                           validation_steps = VAL_SPLIT // BS,
                           callbacks=[ensemble_checkpoint, reducelr])

    print("Saving Ensemble")
    ensemble.save_weights("ensemble_weights.h5")
    ensemble.save("ensemble", include_optimizer=False)

Describe the expected behavior
ensemble.save should work normally. I am able to save the weights, but not the model as a whole.
Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab/Jupyter/any notebook.
Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.
Error encountered is as follows:
Epoch 00001: val_loss improved from inf to 0.45252, saving model to ensemble_backup_weights.h5
265/265 [==============================] - 52s 195ms/step - loss: 0.5693 - accuracy: 0.7101 - val_loss: 0.4525 - val_accuracy: 0.9116
Saving Ensemble
2020-05-15 11:42:31.230630: W tensorflow/python/util/util.cc:319] Sets are not currently considered sequences, but this may change in the future, so consider avoiding using them.
Traceback (most recent call last):
  File "train.py", line 146, in <module>
    main(ap.parse_args())
  File "train.py", line 140, in main
    ensemble.save("ensemble", include_optimizer=False)
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/network.py", line 1008, in save
    signatures, options)
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/saving/save.py", line 115, in save_model
    signatures, options)
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/saving/saved_model/save.py", line 78, in save
    save_lib.save(model, filepath, signatures, options)
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/tensorflow_core/python/saved_model/save.py", line 923, in save
    saveable_view, asset_info.asset_index)
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/tensorflow_core/python/saved_model/save.py", line 653, in _serialize_object_graph
    _write_object_proto(obj, obj_proto, asset_file_def_index)
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/tensorflow_core/python/saved_model/save.py", line 692, in _write_object_proto
    metadata=obj._tracking_metadata)
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/base_layer.py", line 2412, in _tracking_metadata
    return self._trackable_saved_model_saver.tracking_metadata
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/saving/saved_model/base_serialization.py", line 57, in tracking_metadata
    self.python_properties,
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/saving/saved_model/layer_serialization.py", line 40, in python_properties
    return self._python_properties_internal()
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/saving/saved_model/model_serialization.py", line 35, in _python_properties_internal
    metadata = super(ModelSavedModelSaver, self)._python_properties_internal()
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/saving/saved_model/network_serialization.py", line 32, in _python_properties_internal
    metadata = super(NetworkSavedModelSaver, self)._python_properties_internal()
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/saving/saved_model/layer_serialization.py", line 58, in _python_properties_internal
    metadata['config'] = self.obj.get_config()
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/network.py", line 918, in get_config
    return copy.deepcopy(get_network_config(self))
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/network.py", line 1993, in get_network_config
    layer_config = serialize_layer_fn(layer)
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/utils/generic_utils.py", line 198, in serialize_keras_object
    config = instance.get_config()
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/network.py", line 918, in get_config
    return copy.deepcopy(get_network_config(self))
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/network.py", line 2025, in get_network_config
    model_outputs = nest.pack_sequence_as(network._nested_outputs, model_outputs)
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/tensorflow_core/python/util/nest.py", line 504, in pack_sequence_as
    return _pack_sequence_as(structure, flat_sequence, expand_composites)
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/tensorflow_core/python/util/nest.py", line 453, in _pack_sequence_as
    len(flat_sequence), truncate(flat_sequence, 100)))
ValueError: The target structure is of type `<class 'tensorflow.python.framework.ops.Tensor'>`
  Tensor("clf_output/Identity:0", shape=(None, 2), dtype=float32)
However the input structure is a sequence (<class 'list'>) of length 0.
  []
nest cannot guarantee that it is safe to map one to the other.

@iobtl
can you please try "pip install -U tf-nightly" and see if it helps resolve your issue.
I ran the code shared there are too many indentation errors, could you please share code such that we could replicate the issue, if possible please share a colab gist so we could analyse the issue.
Please find the gist of error faced

Currently the use case is for a production environment so I am unable to perform that command. Have circumvented the issue by performing ensemble.save_weights instead and reloading the weights after reconstructing the network.

I've hit this error too, on a custom architecture that uses two MobileNetV2s as feature extractors.
I'm on v2.2.0-rc4-8-g2b96f3662b 2.2.0
Manually calling save_weights works

I don't understand why this is closed... I am on v2.3.0-rc2-23-gb36436b087 2.3.0 and have the same problems - I did not have this problem on TF1 few months ago. I changed to TF2 recently and all of a sudden I cannot save my models after training.
My model without 'Concatenate' layer is saving fine so I'm guessing the problem lies in the doing the concatenation after input goes through the nested models? Same problem trying to save model with ModelCheckpoint.
Saving the weight seems to work at least....

I have the same issue with v 2.1 saving a network with custom layers. I have tried both tf and h5 format to save.

I have the same issue in tf 2.3, tried both tf and h5 as well.  tf 2.4 nightly doesn't solve this either.  Much slower in production environment to load structure and add weights

@a3cel2 maybe this works for you:
https://github.com/tensorflow/tensorflow/issues/43954#issuecomment-709925095

the same issue

I ran into the same issue as described above. Dropping the lines to rename the base model layers in create_ensemble solved the issue for me, using TF 2.5.0

Thank you very much! Solved the issue!

I am facing the same issue, and need to change the layers' names, due to the same named layers in the base models that are being ensembled.
Did anyone find a solution for model.save working even after changing the names of the layers?

I have the same problem as udit01. Does anyone have a solution for this issue?


7.8.0 caused App BAD_ACCESS

See the crash stack here.
Can you help me to review your source code and then tell me what's the __NSDictionaryM?
Did I pass this object to Flurry? (I mean my usage fault)

Hey, any news?

Duplicate with https://github.com/flurry/flurry-ios-sdk/issues/65.


to view dataset when using local SAS (COM)

Now local SAS connection did not support to view the content of data sets. Such a function is available in Enterprise Guide. If this function can be implemented, it will make VSCode extension more usable.
thanks

This feature request was also raised here: https://github.com/sassoftware/vscode-sas-extension/issues/347. Please show your support for this ask there as well.

Hey @nathan-lindstedt. At the moment, this is the highest priority. I'm waiting for some resources around documentation, but as soon as those are available this work will begin. This should be released by 2.0, and will ideally be part of the 1.8 release.

This is a duplicate of https://github.com/sassoftware/vscode-sas-extension/issues/680


Error while installing FastAPI

Hi,
I am getting following error while installing the FastApi using command pip install fastapi[all]-

I am using Python 3.6.10 and os is windows 10.

The error mentions something about checking for conflicts. Could you try installing into a virtual environment?
python -m venv venv
venv\bin\activate (this might end with .bat or .ps1 depending on if you use cmd or PowerShell)
Then pip install fastapi[all]
Also I’ve never used anaconda, so I’m assuming standard cpython rules will still apply.

@dbanty I had used Python virtual end while installing.
Problem seems with Python 3.6.10 because I have tried with Python 3.7 and successfully able to install.
You can close the issue since it's not blocker for me.

Actually I cannot, but you can close it!

Thanks for the help here @dbanty ! :clap: :bow:
Thanks for reporting back and closing the issue @dsbyprateekg  :+1:


tvm_vendor: 0.8.0-1 in 'foxy/distribution.yaml' [bloom]

Increasing version of package(s) in repository tvm_vendor to 0.8.0-1:

upstream repository: https://github.com/autowarefoundation/tvm_vendor.git
release repository: https://github.com/ros2-gbp/tvm_vendor-release.git
distro file: foxy/distribution.yaml
bloom version: 0.10.7
previous version for package: 0.7.3-1

tvm_vendor
* Update TVM version (#7 <https://github.com/autowarefoundation/tvm_vendor/issues/7>)
  This patch is needed to properly run the packages that
  use ML models from the modelzoo.
  Issue-Id: SCM-3720
  Change-Id: I331efb40337ac15ec6b84ed9b9050fa42e49dc0f
* CI: Add Galactic CI
* Contributors: Joshua Whitley, Luca Foschiani

FYI @LucaFos @JWhitleyWork


stops run() purging JS code animations

This fixes an issue where createAnimation() events are purged and lost when AniJS.run() is executed.

+1 for this
im using jquery.append() and or dynamically adding .data('ani-js', "mycodehere") to elems on page load with jquery, after they are appended i have to do AniJS.run().

+1 Thank you very much for your kind collaboration.


PPF-337: add demo gif to README

Codecov Report
Patch coverage: 100.00% and no project coverage change.

Comparison is base (f29be6c) 100.00% compared to head (1a30268) 100.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff            @@
##            master      #338   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           18        18
  Lines          577       577
=========================================
  Hits           577       577

Impacted Files
Coverage Δ

PyPDFForm/__init__.py
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Could Kong just proxy request but not wait for response from proxied servers?

What I need just proxy request, but wait for response make QPS slow.
Looking forward your answer ! thank you !

how would that deal with an error?

One could write a plugin hat makes an asynchronous HTTP call upstream, ignores the response, and sends a synthetic response downstream. But I doubt any feature like this will ever make it into Kong core ;)

@Tieske It does't matter, because our business don't need response. haha...

@p0pr0ck5 If it could make into Kong core, that would be so great.

@ShinEDL No more plugin will make it into Kong core, sorry! In fact, the current plugins will actually be taken away from the core, and the later will stay lean.
We will bundle a set of default plugins instead :)

@thibaultcha Thank for your response.
What I think is if this feature could be implement by Kong? It is useful for some kind of business, such as time-limited sales on second.
sorry for my poor English...

This could possibly make into a plugins API. Outside of core it is just about requiring lua-resty-http and running it in timer. It already has the proxy function built-in.

@ShinEDL kong's core functionality is to use nginx's built-in proxying mechanism to proxy the request. as mentioned, short-circuiting this is certainly doable with a plugin, but it doesn't belong in a core proxying framework- indeed, this is what plugins are for! :) we provide a reference at https://getkong.org/docs/0.10.x/plugin-development/ for writing, testing, and deploying your own plugins, and we'd love to hear about your experience writing new plugins for your environment via Gitter, the mailing list, etc. Thanks!


Mast: Watch ghanatalksradio.com

Mast requests the watch of the watch_keyword ghanatalksradio\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

ghanatalksradio\.com has been seen in 3 true positives, 0 false positives, and 0 NAAs.

Approved by Daniil in Charcoal HQ


Header title rendered wrong

Version

react-native-router-flux 4.0.0-beta.21
react-native v0.48.4

Expected behaviour
Header title = Book List
Actual behaviour
Header title = Books
Steps to reproduce
<Router>
      <Scene key="root">
        <Scene key="books" headerMode="none" title="Books">
          <Scene key="BookList" component={BookList} title="Book List"  />
        </Scene>
        <Scene key="Home" component={Home} title="Home"/>
      </Scene>
</Router>

What are you navigating to? BookList or books?

it is just the begining and all I have in the router is above app fires up and displays BookList component but with wrong header title

I found soultion
<Router>
      <Stack key="root" hideNavBar>
        <Stack key="books" >
           <Scene key="BookList" component={BookList} title="Book List"  />
        </Stack>
        <Scene key="Home" component={Home} title="Home"/>
      </Stack>
</Router>

I will see how it goes when I use more  &  components


Update Composer dependencies (2024-07-23-00-18)

Visual regression test passed!
View the visual regression test report


No tf.keras.layers.layer class ?

I want to translate this python code to C#
class ReflectionPadding2D(tf.keras.layers.Layer):
    def __init__(self, padding=(1, 1), **kwargs):
        self.padding = tuple(padding)
        self.input_spec = [tf.keras.layers.InputSpec(ndim=4)]
        super(ReflectionPadding2D, self).__init__(**kwargs)

    def compute_output_shape(self, s):
        return (s[0], s[1] + 2 * self.padding[0], s[2] + 2 * self.padding[1], s[3])

    def call(self, x, mask=None):
        w_pad, h_pad = self.padding
        return tf.pad(x, [[0, 0], [h_pad, h_pad], [w_pad, w_pad], [0, 0]], 'REFLECT')

    def get_config(self):
        config = super().get_config().copy()
        return config

This class inherit from tf.heras.layers.layer but there is no such class in Tensorflow.NET. Any ideas ?

@minhduc66532 You can follow the implementation of other layers.

@Oceania2018 Well i'm really want to contribute to the project but i don't think i have enough skill to do it. So back to the problem so basically there currently no such class in tensorflow.NET ? If that so then is there any work around to rewrite the custom layer above in C# ? (I think i'm gonna ask this question in Keras.NET github page ?)

@minhduc66532 It's already been here.

You just need inherit Layer and do your ReflectionPadding2D layer.

I'm very sorry for the late reply, but thank you. I'm gonna close this problem now

I tried to use it but

For some reasons, i found no "Layer" class, only ILayer and the "Utils" namespace doesn't exist either (sorry for closing and reopen the problem like this without trying the solution first)

@minhduc66532 You have to install TensorFlow.Keras package.

It WORK !!! Thank you so much for all of your answer. I will close this problem (for real this time)


[BUG]  CC="ccache gcc" stopped working for C++ builds since setuptools-60.0.0

setuptools version
setuptools>=60.0.0
Python version
CPython 3.9
OS
Ubuntu 20.04 LTS
Additional environment information

Description
Running setup.py build_ext with CC set to "ccache gcc-11" causes this to happen when building a c++ extension module:
g++-11 gcc-11 -shared -Wl,-rpath=/opt/cpython-3.9-debug/lib -Wl,--disable-new-dtags -Wl,-rpath,/opt/sundials-5.7.0-noklu-nolapack-dbg/lib -L/opt/sundials-5.7.0-noklu-nolapack-dbg/lib -isystem /opt/sundials-5.7.0-noklu-nolapack-dbg/include build/temp.linux-x86_64-3.9-pydebug/pyodeint/_odeint.o -L/opt/cpython-3.9-debug/lib -o build/lib.linux-x86_64-3.9-pydebug/pyodeint/_odeint.cpython-39d-x86_64-linux-gnu.so
/usr/bin/ld: cannot find gcc-11: No such file or directory

Setting SETUPTOOLS_USE_DISTUTILS=stdlib yields the expected linkline:
g++-11 -pthread -shared -Wl,-rpath=/opt/cpython-3.9-debug/lib -Wl,--disable-new-dtags -Wl,-rpath,/opt/sundials-5.7.0-noklu-nolapack-dbg/lib -L/opt/sundials-5.7.0-noklu-nolapack-dbg/lib -isystem /opt/sundials-5.7
.0-noklu-nolapack-dbg/include build/temp.linux-x86_64-3.9-pydebug/pyodeint/_odeint.o -L/opt/cpython-3.9-debug/lib -o build/lib.linux-x86_64-3.9-pydebug/pyodeint/_odeint.cpython-39d-x86_64-linux-gnu.so
copying build/lib.linux-x86_64-3.9-pydebug/pyodeint/_odeint.cpython-39d-x86_64-linux-gnu.so -> pyodeint

The compile comands look alright though:
ccache gcc-11 -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -g -Og -Wall -Og -g3 -Og -g3 -isystem /opt/sundials-5.7.0-noklu-nolapack-dbg/include -fPIC -DANYODE_NO_LAPACK=1 -DNDEBUG -DBOOST_UB LAS_TYPE_CHECK=0 -Ipyodeint/include -I/opt/cpython-3.9-debug/lib/python3.9/site-packages/numpy/core/include -Iexternal/anyode/include -I/opt/cpython-3.9-debug/include/python3.9d -c pyodeint/_odeint.cpp -o build/ temp.linux-x86_64-3.9-pydebug/pyodeint/_odeint.o -std=c++20
Perhaps the space between ccache and g++ is unaccounted for in setuptools (own?) distutils?
Expected behavior

How to Reproduce

Output

Before #53, LDSHARED command was,
gcc -pthread -shared <rest>

and after #53, setting export CC="ccache gcc" would make LDSHARED to be,
ccache gcc -pthread -shared <rest>

When the link language was C++, distutils would look at the first word and replace it. So before #53,
it became,
g++ -pthread -shared <rest>

and after #53 it became
g++ gcc -pthread -shared <rest>

Does that make sense? I can describe in more detail if you want.

That clarifies. Thanks for connecting the dots.

The issue is this line:
https://github.com/pypa/distutils/blob/e28e150c036e8b2bd55a37df13e836e098b5f37d/distutils/sysconfig.py#L229
Which assumes CC and LDSHARED have the same number of arguments for the compiler. In reality, there's no way to safely override the compiler in LDSHARED when CC is set because we don't know what part of LDSHARED is the compiler, so the code is assuming CC and LDSHARED are coherent.
The good news is that here we are only dealing with the default values for CC and LDSHARED, the values from the Python interpreter Makefile, which are exposed in get_config_vars. So it shouldn't affect users, and the fix would be for the distributors to set LDSHARED in accordance to CC.
That said, given that the issue is the usage of ccache being registered as the compiler, when it is in fact just a compiler wrapper, and nothing we care or should register in the makefile data, I think the best fix would be to add way to specify compiler prefixes in the build system, so that it does not leak into CC.
I would recommend distributors who are building Python with ccache to manually edit the installed makefile data for sysconfig to remove ccache from CC.

In the meanwhile, we could maybe have a heuristic to try detecting this issue, particularly with ccache, and mitigate the situation for most users.

Fixed in https://github.com/pypa/distutils/pull/117


Creating a Startups Page

Issue #368
@Priyaaa1 Please review the changes and merge if applicable.
This is under GSSOC'24.

@avanimathur it's showing a blank page on clicking on investor management

@avanimathur are you working on it to fix this?

Yes, please allow me some more time.
I'll make the required changes.

I have submitted a new PR #571

@Priyaaa1 I have submitted a new PR #571 as this one had merge conflicts


Add direct link to the live demo

Added demo section to README. This section exists in most of the other app-extension repositories.

Thanks for finding this! :heart:


[platform-linux][shared_preferences] Exception throws in remove method: Unhandled Exception: type 'Null' is not a subtype of type 'Object' in type cast

Steps to Reproduce

Run

flutter create bug
cd bug
dart migrate --apply-changes
flutter pub add shared_preferences

Update the files as follows:

Edit lib/main.dart:

import 'package:shared_preferences/shared_preferences.dart';

void main() async {
  final prefs = await SharedPreferences.getInstance();
  await prefs.remove("test");
}

Expected results:
No exception throws.
Actual results:
[ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: type 'Null' is not a subtype of type
 'Object' in type cast
#0      CastMap.remove (dart:_internal/cast.dart:280:48)
#1      SharedPreferencesLinux.remove (package:shared_preferences_linux/shared_preferences_linux.dart:
92:17)
<asynchronous suspension>
#2      main (package:bug/main.dart:7:3)
<asynchronous suspension>

Logs

[  +61 ms] executing: [/home/nghialm/.asdf/installs/flutter/2.0.2-stable/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +28 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 8962f6dc68ec8e2206ac2fa874da4a453856c7d3
[        ] executing: [/home/nghialm/.asdf/installs/flutter/2.0.2-stable/] git tag --points-at 8962f6dc68ec8e2206ac2fa874da4a453856c7d3
[  +10 ms] Exit code 0 from: git tag --points-at 8962f6dc68ec8e2206ac2fa874da4a453856c7d3
[        ] 2.0.2
[  +31 ms] executing: [/home/nghialm/.asdf/installs/flutter/2.0.2-stable/] git rev-parse --abbrev-ref --symbolic @{u}
[   +4 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/home/nghialm/.asdf/installs/flutter/2.0.2-stable/] git ls-remote --get-url origin
[   +4 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +32 ms] executing: [/home/nghialm/.asdf/installs/flutter/2.0.2-stable/] git rev-parse --abbrev-ref HEAD
[   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +37 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +54 ms] executing: /opt/android-sdk/platform-tools/adb devices -l
[  +34 ms] List of devices attached
[   +2 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +70 ms] Skipping pub get: version match.
[  +23 ms] Found plugin path_provider_linux at /home/nghialm/.asdf/installs/flutter/2.0.2-stable/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.0.0/
[   +5 ms] Found plugin path_provider_windows at /home/nghialm/.asdf/installs/flutter/2.0.2-stable/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.0/
[   +4 ms] Found plugin shared_preferences at /home/nghialm/.asdf/installs/flutter/2.0.2-stable/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.5/
[   +2 ms] Found plugin shared_preferences_linux at /home/nghialm/.asdf/installs/flutter/2.0.2-stable/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-2.0.0/
[   +1 ms] Found plugin shared_preferences_macos at /home/nghialm/.asdf/installs/flutter/2.0.2-stable/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-2.0.0/
[   +2 ms] Found plugin shared_preferences_web at /home/nghialm/.asdf/installs/flutter/2.0.2-stable/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-2.0.0/
[   +1 ms] Found plugin shared_preferences_windows at /home/nghialm/.asdf/installs/flutter/2.0.2-stable/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-2.0.0/
[  +78 ms] Found plugin path_provider_linux at /home/nghialm/.asdf/installs/flutter/2.0.2-stable/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.0.0/
[   +1 ms] Found plugin path_provider_windows at /home/nghialm/.asdf/installs/flutter/2.0.2-stable/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.0/
[   +2 ms] Found plugin shared_preferences at /home/nghialm/.asdf/installs/flutter/2.0.2-stable/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.5/
[   +1 ms] Found plugin shared_preferences_linux at /home/nghialm/.asdf/installs/flutter/2.0.2-stable/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-2.0.0/
[        ] Found plugin shared_preferences_macos at /home/nghialm/.asdf/installs/flutter/2.0.2-stable/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-2.0.0/
[   +1 ms] Found plugin shared_preferences_web at /home/nghialm/.asdf/installs/flutter/2.0.2-stable/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-2.0.0/
[   +1 ms] Found plugin shared_preferences_windows at /home/nghialm/.asdf/installs/flutter/2.0.2-stable/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-2.0.0/
[  +14 ms] Generating /home/nghialm/learn/flutter/bug/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +63 ms] Initializing file store
[   +6 ms] Skipping target: gen_localizations
[   +3 ms] complete
[   +4 ms] Launching lib/main.dart on Linux in debug mode...
[   +4 ms] /home/nghialm/.asdf/installs/flutter/2.0.2-stable/bin/cache/dart-sdk/bin/dart --disable-dart-dev /home/nghialm/.asdf/installs/flutter/2.0.2-stable/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root /home/nghialm/.asdf/installs/flutter/2.0.2-stable/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata --output-dill /tmp/flutter_tools.XLCWMU/flutter_tool.ILDLVI/app.dill --packages /home/nghialm/learn/flutter/bug/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build/cache.dill.track.dill
[  +13 ms] Building Linux application...
[   +9 ms] <- compile package:bug/main.dart
[   +3 ms] executing: [build/linux/debug/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug /home/nghialm/learn/flutter/bug/linux
[ +165 ms] -- The CXX compiler identification is Clang 11.1.0
[   +5 ms] -- Detecting CXX compiler ABI info
[ +168 ms] -- Detecting CXX compiler ABI info - done
[   +7 ms] -- Check for working CXX compiler: /usr/bin/clang++ - skipped
[        ] -- Detecting CXX compile features
[        ] -- Detecting CXX compile features - done
[   +4 ms] -- Found PkgConfig: /usr/bin/pkg-config (found version "1.7.3")
[        ] -- Checking for module 'gtk+-3.0'
[  +11 ms] --   Found gtk+-3.0, version 3.24.27
[ +268 ms] -- Checking for module 'glib-2.0'
[   +7 ms] --   Found glib-2.0, version 2.66.7
[  +20 ms] -- Checking for module 'gio-2.0'
[   +9 ms] --   Found gio-2.0, version 2.66.7
[  +25 ms] -- Checking for module 'blkid'
[   +7 ms] --   Found blkid, version 2.36.2
[  +18 ms] -- Checking for module 'liblzma'
[   +8 ms] --   Found liblzma, version 5.2.5
[  +23 ms] -- Configuring done
[   +6 ms] -- Generating done
[   +4 ms] -- Build files have been written to: /home/nghialm/learn/flutter/bug/build/linux/debug
[   +5 ms] executing: ninja -C build/linux/debug install
[   +7 ms] ninja: Entering directory `build/linux/debug'
[+15253 ms] [1/6] Generating /home/nghialm/learn/flutter/bug/linux/flutter/ephemeral/libflutter_linux_gtk.so, /home/nghialm/learn/flutter/bug/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h, /home/nghialm/learn/flutter/bug/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h, /home/nghialm/learn/flutter/bug/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h, /home/nghialm/learn/flutter/bug/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h, /home/nghialm/learn/flutter/bug/linux/flutter/ephemeral/flutter_linux/fl_engine.h, /home/nghialm/learn/flutter/bug/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h, /home/nghialm/learn/flutter/bug/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h, /home/nghialm/learn/flutter/bug/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h, /home/nghialm/learn/flutter/bug/linux/flutter/ephemeral/flutter_linux/fl_method_call.h, /home/nghialm/learn/flutter/bug/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h, /home/nghialm/learn/flutter/bug/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h, /home/nghialm/learn/flutter/bug/linux/flutter/ephemeral/flutter_linux/fl_method_response.h, /home/nghialm/learn/flutter/bug/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h, /home/nghialm/learn/flutter/bug/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h, /home/nghialm/learn/flutter/bug/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h, /home/nghialm/learn/flutter/bug/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h, /home/nghialm/learn/flutter/bug/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h, /home/nghialm/learn/flutter/bug/linux/flutter/ephemeral/flutter_linux/fl_value.h, /home/nghialm/learn/flutter/bug/linux/flutter/ephemeral/flutter_linux/fl_view.h, /home/nghialm/learn/flutter/bug/linux/flutter/ephemeral/flutter_linux/flutter_linux.h, _phony_
[        ] [  +95 ms] executing: [/home/nghialm/.asdf/installs/flutter/2.0.2-stable/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [  +37 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] 8962f6dc68ec8e2206ac2fa874da4a453856c7d3
[        ] [        ] executing: [/home/nghialm/.asdf/installs/flutter/2.0.2-stable/] git tag --points-at 8962f6dc68ec8e2206ac2fa874da4a453856c7d3
[        ] [  +13 ms] Exit code 0 from: git tag --points-at 8962f6dc68ec8e2206ac2fa874da4a453856c7d3
[        ] [        ] 2.0.2
[        ] [  +44 ms] executing: [/home/nghialm/.asdf/installs/flutter/2.0.2-stable/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/stable
[        ] [        ] executing: [/home/nghialm/.asdf/installs/flutter/2.0.2-stable/] git ls-remote --get-url origin
[        ] [   +5 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +43 ms] executing: [/home/nghialm/.asdf/installs/flutter/2.0.2-stable/] git rev-parse --abbrev-ref HEAD
[        ] [   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[        ] [  +49 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [  +56 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[        ] [ +130 ms] Initializing file store
[        ] [  +17 ms] Skipping target: gen_localizations
[        ] [   +6 ms] unpack_linux: Starting due to {}
[        ] [ +108 ms] kernel_snapshot: Starting due to {}
[        ] [   +4 ms] unpack_linux: Complete
[   +2 ms] [+1954 ms] /home/nghialm/.asdf/installs/flutter/2.0.2-stable/bin/cache/dart-sdk/bin/dart --disable-dart-dev /home/nghialm/.asdf/installs/flutter/2.0.2-stable/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root /home/nghialm/.asdf/installs/flutter/2.0.2-stable/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --packages /home/nghialm/learn/flutter/bug/.dart_tool/package_config.json --output-dill /home/nghialm/learn/flutter/bug/.dart_tool/flutter_build/bf49fed71448292e8e50cf6c7160b3f9/app.dill --depfile /home/nghialm/learn/flutter/bug/.dart_tool/flutter_build/bf49fed71448292e8e50cf6c7160b3f9/kernel_snapshot.d package:bug/main.dart
[        ] [+10592 ms] kernel_snapshot: Complete
[        ] [ +493 ms] debug_bundle_linux_assets: Starting due to {}
[        ] [ +196 ms] debug_bundle_linux_assets: Complete
[        ] [ +720 ms] Persisting file store
[        ] [   +8 ms] Done persisting file store
[        ] [   +7 ms] build succeeded.
[        ] [   +9 ms] "flutter assemble" took 14,321ms.
[        ] [   +4 ms] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[ +657 ms] [2/6] Building CXX object CMakeFiles/bug.dir/main.cc.o
[  +84 ms] [3/6] Building CXX object CMakeFiles/bug.dir/flutter/generated_plugin_registrant.cc.o
[  +62 ms] [4/6] Building CXX object CMakeFiles/bug.dir/my_application.cc.o
[ +192 ms] [5/6] Linking CXX executable intermediates_do_not_run/bug
[        ] [5/6] Install the project...
[   +8 ms] -- Install configuration: "Debug"
[        ] -- Installing: /home/nghialm/learn/flutter/bug/build/linux/debug/bundle/bug
[        ] -- Set runtime path of "/home/nghialm/learn/flutter/bug/build/linux/debug/bundle/bug" to "$ORIGIN/lib"
[        ] -- Installing: /home/nghialm/learn/flutter/bug/build/linux/debug/bundle/data/icudtl.dat
[   +1 ms] -- Installing: /home/nghialm/learn/flutter/bug/build/linux/debug/bundle/lib/libflutter_linux_gtk.so
[ +101 ms] -- Installing: /home/nghialm/learn/flutter/bug/build/linux/debug/bundle/data/flutter_assets
[        ] -- Installing: /home/nghialm/learn/flutter/bug/build/linux/debug/bundle/data/flutter_assets/AssetManifest.json
[        ] -- Installing: /home/nghialm/learn/flutter/bug/build/linux/debug/bundle/data/flutter_assets/NOTICES
[        ] -- Installing: /home/nghialm/learn/flutter/bug/build/linux/debug/bundle/data/flutter_assets/version.json
[        ] -- Installing: /home/nghialm/learn/flutter/bug/build/linux/debug/bundle/data/flutter_assets/fonts
[        ] -- Installing: /home/nghialm/learn/flutter/bug/build/linux/debug/bundle/data/flutter_assets/fonts/MaterialIcons-Regular.otf
[   +1 ms] -- Installing: /home/nghialm/learn/flutter/bug/build/linux/debug/bundle/data/flutter_assets/packages
[        ] -- Installing: /home/nghialm/learn/flutter/bug/build/linux/debug/bundle/data/flutter_assets/packages/cupertino_icons
[        ] -- Installing: /home/nghialm/learn/flutter/bug/build/linux/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets
[        ] -- Installing: /home/nghialm/learn/flutter/bug/build/linux/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf
[        ] -- Installing: /home/nghialm/learn/flutter/bug/build/linux/debug/bundle/data/flutter_assets/FontManifest.json
[        ] -- Installing: /home/nghialm/learn/flutter/bug/build/linux/debug/bundle/data/flutter_assets/kernel_blob.bin
[  +45 ms] Building Linux application... (completed in 17.2s)
[ +213 ms] Observatory URL on device: http://<IP_ADDRESS>:41971/7YSBcaFBR1Y=/
[   +4 ms] Caching compiled dill
[  +77 ms] Connecting to service protocol: http://<IP_ADDRESS>:41971/7YSBcaFBR1Y=/
[  +60 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: type 'Null' is not a subtype of type 'Object' in type cast
[        ] #0      CastMap.remove (dart:_internal/cast.dart:280:48)
[        ] #1      SharedPreferencesLinux.remove (package:shared_preferences_linux/shared_preferences_linux.dart:92:17)
[        ] <asynchronous suspension>
[        ] #2      main (package:bug/main.dart:7:3)
[        ] <asynchronous suspension>
[  +99 ms] Launching a Dart Developer Service (DDS) instance at http://<IP_ADDRESS>:0, connecting to VM service at http://<IP_ADDRESS>:41971/7YSBcaFBR1Y=/.
[  +68 ms] DDS is listening at http://<IP_ADDRESS>:38075/kl2BUUcCz64=/.
[  +44 ms] Successfully connected to service protocol: http://<IP_ADDRESS>:41971/7YSBcaFBR1Y=/
[ +875 ms] DevFS: Creating new filesystem on the device (null)
[  +12 ms] DevFS: Created new filesystem on the device (file:///tmp/bugIHSZGY/bug/)
[   +3 ms] Updating assets
[  +74 ms] Syncing files to device Linux...
[   +1 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +2 ms] <- recompile package:bug/main.dart 5023e9ee-9037-4ef8-96a8-6280dce88a33
[        ] <- 5023e9ee-9037-4ef8-96a8-6280dce88a33
[ +127 ms] Updating files.
[        ] DevFS: Sync finished
[        ] Syncing files to device Linux... (completed in 132ms)
[        ] Synced 0.0MB.
[        ] <- accept
[   +4 ms] Connected to _flutterView/0x55639291eef0.
[   +1 ms] Flutter run key commands.
[   +1 ms] r Hot reload. 🔥🔥🔥
[        ] R Hot restart.
[        ] h Repeat this help message.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ] An Observatory debugger and profiler on Linux is available at: http://<IP_ADDRESS>:38075/kl2BUUcCz64=/
[        ]
           Flutter DevTools, a Flutter debugger and profiler, on Linux is available at: http://<IP_ADDRESS>:40871?uri=http%3A%2F%2F<IP_ADDRESS>%3A38075%2Fkl2BUUcCz64%3D%2F
[        ] 💪 Running with sound null safety 💪
[  +88 ms] ** (bug:114000): WARNING **: 15:53:09.844: Unable to retrieve framework response: Message is not valid JSON
[ +127 ms] Service protocol connection closed.
[        ] Lost connection to device.
[   +2 ms] DevFS: Deleting filesystem on the device (file:///tmp/bugIHSZGY/bug/)
[ +255 ms] Ignored error while cleaning up DevFS: TimeoutException after 0:00:00.250000: Future not completed
[   +6 ms] "flutter run" took 19,797ms.
[   +9 ms] Running shutdown hooks
[        ] Shutdown hook priority 4
[   +7 ms] Shutdown hooks complete
[        ] exiting with code 0

Analyzing bug...
No issues found! (ran in 1.3s)

[✓] Flutter (Channel stable, 2.0.2, on Linux, locale en_US.UTF-8)
    • Flutter version 2.0.2 at /home/nghialm/.asdf/installs/flutter/2.0.2-stable
    • Framework revision 8962f6dc68 (6 days ago), 2021-03-11 13:22:20 -0800
    • Engine revision 5d8bf811b3
    • Dart version 2.12.1

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /opt/android-sdk
    • Platform android-30, build-tools 29.0.3
    • ANDROID_HOME = /opt/android-sdk
    • ANDROID_SDK_ROOT = /opt/android-sdk
    • Java binary at: /usr/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_282-b08)
    • All Android licenses accepted.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Linux toolchain - develop for Linux desktop
    • clang version 11.1.0
    • cmake version 3.19.6
    • ninja version 1.10.2
    • pkg-config version 1.7.3

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

[✓] Connected device (1 available)
    • Linux (desktop) • linux • linux-x64 • Linux

! Doctor found issues in 2 categories.

Tagging @markusaksli-nc to verify this on Linux.

I have the same issue on Windows.  I have to do a containsKey('key') before attempting a remove operation.

Ran into some issues on linux but was able to reproduce this on Windows with
environment:
  sdk: ">=2.12.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  shared_preferences: ^2.0.5

on the latest master 2.1.0-13.0.pre.175.

flutter doctor -v
[√] Flutter (Channel master, 2.1.0-13.0.pre.175, on Microsoft Windows [Version 10.0.19041.867], locale et-EE)
    • Flutter version 2.1.0-13.0.pre.175 at C:\Development\flutter_master
    • Framework revision efbde443d2 (14 hours ago), 2021-03-18 13:40:08 -0700
    • Engine revision c4628b709c
    • Dart version 2.13.0 (build 2.13.0-149.0.dev)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\marku\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\201.7199119\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.7.7)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.7.30621.155
    • Windows 10 SDK version 10.0.18362.0

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\201.7199119
    • Flutter plugin version 54.0.1
    • Dart plugin version 201.9335
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] Connected device (4 available)
    • SM G950F (mobile) • ce12171c51cc001c03 • android-arm64  • Android 9 (API 28)
    • Windows (desktop) • windows            • windows-x64    • Microsoft Windows [Version 10.0.19041.867]
    • Chrome (web)      • chrome             • web-javascript • Google Chrome 89.0.4389.90
    • Edge (web)        • edge               • web-javascript • Microsoft Edge 89.0.774.54

• No issues found!

Is this being run with --no-sound-null-safety?
cc @stuartmorgan

Nope - null safety is on.

This is https://github.com/dart-lang/sdk/issues/45473
We can work around it in the plugin by adding a contains check, but we shouldn't need to, so I'd like to see how quickly a fix could be turned around on the Dart side, and if we could cherry-pick it.

The issue was fixed in 2.2.1.


fix(deps): removed unused deps #3

close #3

:tada: This PR is included in version 1.0.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Should Close All Browser when Robot closes

Originally submitted to Google Code by Andreas.EbbertKarroum on 11 Jun 2010

I'm not sure if robot offers an interface for that, but it would be nice, to trigger SeleniumLibrary to close all windows, when robot has executed all tests. something like a "Lib Teardown" :)
Often it happens that browser windows stay open, because robot quit with a failure or somebody forgot to teardown the test accordingly.

Originally submitted to Google Code by @pekkaklarck on 11 Jun 2010

There's no feature in RF that would allows this, but simply implementing del might work. Enhancing RF is obviously possible, and can be discussed on rf-users or on RF's issue tracker.
Regardless how this feature is implemented, it needs to be configurable. Automatically closing browsers would, for example, make it impossible to drive the system into certain state with an automated test and continuing exploratory testing there. Adding a new parameter to library import would probably be fine, especially now that RF 2.5 supports named arguments.

Originally submitted to Google Code by Andreas.EbbertKarroum on 11 Jun 2010

We could try it with the destructor. Configurable yes, I agree - but with the default to close all browsers. Otherwise people forget to set this setting to true, as they forget to close the browser properly.

Originally submitted to Google Code by @yanne on 15 Nov 2010

We decided not to do anything about this.
There are two quite simple ways of ensuring that all browsers are closed:

Use a high level suite teardown with Close All Browser
Ensure that selenium-server.jar process is stopped (this is a good practice anyway, and closes all the browser automatically)


Release sdk/resourcemanager/guestconfiguration/armguestconfiguration v0.1.0

[ ] The purpose of this PR is explained in this or a referenced issue.
[ ] The PR does not update generated files.

These files are managed by the codegen framework at Azure/autorest.go.

[ ] Tests are included and/or updated for code changes.
[ ] Updates to CHANGELOG.md are included.
[ ] MIT license headers are included in each file.

/azp run prepare-pipelines

/check-enforcer override


feat(service): Add [Microsoft Teams] service

Describe the missing service. Please provide useful links.

Describe the solution you'd like

Potential libraries to use

- ...

See comment.


Add (back) constructor for Errno

Title says it all, would you consider adding back a constructor similar to Error::from_raw_error used to be?
Required for getrandom crate: https://github.com/rust-random/getrandom/blob/157d6f23dc53ea995294646c4f6301116aaa2bfa/src/error.rs#L113-L115.

Relevant comment: https://github.com/bytecodealliance/wasi/pull/59#issuecomment-1018783846

This crate has now upgraded to WASI 0.2.0 which is much different from the previous wasi_snapshot_preview1 module. In that sense this issue is no longer applicable as this is for a historical version of the crate at this point. Because of that I'm going to close this.


Adding circleci jobs for testing test-kitchen

Hey @JJediny, what are your plans with this PR? Why do you want to use CircleCI instead of Travis? Is it better?

I'm closing this for now.  If you want to continue working on this, feel free to reopen the PR.


I2C.MASTER doesn't exist anymore

When importing this library I keep running into the following error:
>>> import i2c_lcd
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "i2c_lcd.py", line 10, in <module>
  File "i2c_lcd.py", line 14, in Display
AttributeError: type object 'I2C' has no attribute 'MASTER'

From what I understand from https://forum.micropython.org/viewtopic.php?t=2710 it's been deprecated, but I must admit that this lowlevel stuff isn't really something I'm used to. Does any of this make sense and would there be an easy way for me to patch this. Your library sounds exactly like what I need, since I want to control a Grove 16x2 display using an rpi pico.

Hi @bertvandepoel , I'll admit I haven't revisited this library for a while! I can imagine it's definitely out of date with mainline micropython now as it was previously targeted towards pycom devices (a fork of micropython). I'd happily accept a pull request to make the fix to work with standard micropython, as I believe pycom is defunct now anyways.
If you're not sure about making a pull request, I can try to get around to updating the library but it may take me a while to find the time to do it. Let me know if you fancy the challenge.

From a quick glance, I'd assume you need to update the I2C library calls to mainline micropython. The underlying driver should still be functional for LCD screens.

Hey there! So the screen I am interfacing with is the non-RGB variant. You don't literally mention it, but it's almost identical based on the specs. The only thing is the backlight code is not very compatible as you can imagine. To get basic stuff working, I just patched out the MASTER stuff and it just works. No other changes required. I'm currently looking at enabling features of the non-RGB screen. I could easily contribute back my changes, but I'm not sure if you want to add support for more screens, and I wouldn't be able to test my code with a regular RGB one. How would you like to continue?

Can you share the model of LCD screen you are using? It'd be great to support both non-RGB and RGB; should be possible!

Oh, I missed your comment somehow, weird! I'm using this grove screen https://wiki.seeedstudio.com/Grove-16x2_LCD_Series/ which is just a 16x2 screen but with a solid colour backlight instead of an RGB one. In my case it's red but the specs are identical for the red, blue and yellow versions.

I have a Seeed Studio Grove 16x2 (black on yellow) and I was wondering @bertvandepoel, did you find out how to turn the backlight on and off (or dim it)?


icons do not work, question mark appear

icons do not work theres a question mark. when i copy the example i get the same error how can i fix this

fixed. i had to add FontAwesome to the app


features copyable multi and horizontal extending when many...

1: multiselect2 - copyable [x option1]  [x option2] then pastable also like [x option1]  [x option2]
2: multiselect2 - current: when many, goes down to nextline. wish: horizontal extension(like a normal input when many are typed)

hello :)

Right now there is a bug with pasting that is preventing it from automatically converting the pasted text to tags. Note that Select2 does not support copying out of the selection area by default because this is not normally the expected behaviour of select boxes.

You can override this with the following CSS:
.select2-container .select2-selection--multiple {
  user-select: initial;
  -webkit-user-select: initial;
}

.select2-selection__choice__remove {
  user-select: none;
  -webkit-user-select: none;
}

This is something that has been asked a few times, but for some reason I can't find a duplicate to point this at. Basically look around for how to make Select2 display on a single line, or how to make it scroll horizontally, and you should find one of the many possible hacks.

thanks


Send compressed payload by gzip

As shown in the API docs, it is possible to send compressed payload on PutMetricData operation.
In order to do that I need to compress payload before it is being signed and need to add Content-Encoding: gzip.
I can only provide my request_dispatcher to client, and on dispatch phase it receives an already SignedRequest which doesn't help.
Can we add an option to compress payload with gzip without sending it?
I would be happy to implement that.

This would be good to have!
With https://github.com/rusoto/rusoto/issues/1323 in mind, this should use Cargo flags to only bring in the dependencies and code if the crate user wants the behavior. In other words, if someone does not want to compress the payload, they shouldn't have to download and compile the gzip crate. 😄

Done in https://github.com/rusoto/rusoto/pull/1615 . Thanks @plazma-prizma ! 🎉


About the pictures generated by the cub data set, there is white fog

Why do I train a vqgan and use your mode to produce text-to-image images with white fog?

l

thanks, I find the reason.


504 Act Link Broken

The "Section 504 of the Rehabilitation Act of 1973 (PDF)" link on the Web Accessibility page is broken (http://www.ucsb.edu/webguide/web-accessibility).

URL of the page in the GitHub-hosted repo:
http://ucsb-wsg.github.io/web-accessibility/


Inform user when she is blocked

Summary:
We can inform user with a snackbar displayed at the bottom of each activities as "You are blocked from editing commons".
This can be done at our AuthenticadedActivity class (since all authenticaded classes extends it) to prevent rewriting same code again and again for all acitivites.

But login fails for blocked users. Then how can this be done?

login fails for blocked users
@ShridharGoel Are you sure about this?
https://en.wikipedia.org/wiki/Wikipedia:Blocking_policy#Common_blocks_imposed seems to say that blocked users are only blocked from editing, not from logging in.

@neslihanturan I was just going through the AuthenticatedActivity class. Once we acquire the authCookie how do we check if the user is blocked? I went through some files but I wasn't able to find any suitable function.

@neslihanturan Do you know where the information regarding whether a user has access to edit content is stored? Is it within the type field of the Account class? Or do I maybe have to make an API call somewhere to access this data? I'm probably way off, but any help would be appreciated since this is my first time working on an open source project!

@nicolas-raoul I am just curious to know if anything decided on this? Can you confirm if user will be able to login successfully or not?  By the way, is somebody working on this?

It would be best to ask @neslihanturan about this (as she is the only person I know who has been blocked, lol), but AFAIK blocked users can login, except all their uploads will fail.

I was taking a look at it, but if this is important, then someone else may want to do it since this is my first time working on the project

@seannemann21 I wouldn't say this is necessarily urgent. Anyone who wants to can feel free to try and work on it. :) But it might be a bit tricky indeed. I am not so sure how to find out if the user is blocked, either.

There's a MediaWiki API that can be used to get information about the user.
https://www.mediawiki.org/wiki/API:Userinfo
In addition to blockinfo, the API can be used to get quite a few other user properties as well.

Just a little suggestion. It might also be better to indicate this by dimming/fading the user profile icon found in the sidebar of the app.

Ok yeah I found that API after I asked! I wasn't sure if I should make a call to it every time an authenticated activity is opened? Or store the blocked info in one of the objects? I'm not sure if this would lead to too many API calls, but someone could be blocked while they're using the app and then the block status would be outdated

Also, does anyone know how I can block myself for testing purposes? It seems like I should just be making the API call to check blockinfo like you guys said to check if the user is blocked, but no info concerning being blocked is present in the result (as you can see by following the link below). I am thinking this may be because I am not blocked. Regardless, I'll need to be able to block myself for testing purposes.
https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=xml&meta=userinfo&uiprop=blockinfo
Thanks for the help by the way!

Alternatively, I could check to see if the user has the "edit" right since that is why we are checking to see if the user is blocked in the first place by issuing the following API call found in the following link
https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=xml&meta=userinfo&uiprop=rights
Any input would be greatly appreciated!

@seannemann21 Please ask here: https://commons.wikimedia.org/wiki/Commons:Village_pump
Thanks! :-)

Thank you very much!

Thanks! just to double check, did you block the seannemann21 or the seannemann1234 user?

Looks like the seannemann 21 account! Thank you very much! Everything appears to be working, well as far as the api call to check for a block. Should be able to get the rest of the stuff finished for this issue in the next day or two. Sorry, I've been a little busy

@revi sorry, I am getting some unexpected behavior. Which account did you block?

OK I'm just kinda thinking out loud here. It appears seannemann1234 is the account that is blocked, but once I sign into the account the is blocked, if I sign out and then sign into an account that is not blocked, without closing the app, then this account will be blocked for the duration of this session as well. Also, if I am automatically logged in upon opening the app (i.e. I didn't log out before closing the app last time so I bypass the login screen this time) then the API call will not say that I am blocked, even if I am signed into a blocked account. Presumably because something was not set up correctly since logging in was bypassed

https://commons.wikimedia.beta.wmflabs.org/wiki/Special:Log/Revi would tell you what account is blocked.

Thanks! That seems to makes sense. Just confused me that when I sign into one account, then the rest show as blocked unless I close out of the app

The authcookie should be cleared upon logging out, correct?

@seannemann21 I can't guarantee everything is cleaned on logging out (but of course it should be).
When it comes to where to make API call, what about checking it on upload process? Since user won't be able to upload when they are blocked. Besides we can check it on notification fetch (in notification acitivty).

Logging in with blocked account set a cookie which you should honor T5233, and there’ll be a new cookie when anon IP is blocked T152462 and when the account is locked (prevented login)T158473.

Thanks! That would make sense to do it on the upload process! Seemed odd to have it pop up whenever you opened any authenticated activity

Also thanks for the cookie info! For the record, I misspoke before when I said if you close the app you'll be able to sign into an unblocked account and have full functionality. You have to reinstall it to regain full functionality if you signed into a blocked account before

I think I am just going check for the block when an authenticated activity is created, using a snackbar to inform the user since that was what was originally asked for

Also I noticed that if two snackbars are shown on screen, then the second will immediately replaced the first. I could create a queue to handle snackbars, but should a create a separate issue for this?

@revi can you block the seannemann21 account with a block at expires sometime tomorrow? Anytime works. I wanna see how expired blocks work (like if any information is returned from the api call)

@revi let me know if you are/arent able to unblock/block those accounts!

I'm going to go ahead and submit a pull request since the only thing I was afraid of was if when a block expired, the block information still remained when you queried the API for block info; however, I am now checking the actual expiration time of the block as opposed to just checking if an expiration time exists.
Thank you very much to everyone that helped me! Also, sorry it took so long! I was a bit busy, and this is my first ever pull request.

Sorry, was busy IRL. Done.

Thanks! Can you actually change that expiring block to an hour from now?

Actually don't worry about it. Thanks!

Actually unblocked. (Since it was over 1h)

Thanks!

Implemented at #1573

Relevant PR is merged but it appears to be not working.
I just got blocked (block for proxy apis because I tried to upload image using Flixbus WiFi), and attempts to upload image failed with "Failed" showing after image was uploaded and no feedback why it failed.
I noticed what is happening only because I tried to upload directly from Wikimedia Commons website

@matkoniecz as far as I understand, your account was unblocked but just the proxy you tried was blocked? We may need to create a new issue for this. I think the responses for account blocks and proxy permissions are different. User shouldn't be displayed "your account is blocked" message in this case, they should be shown something like  "you can not edit from this network"

"your account was unblocked but just the proxy you tried was blocked" - maybe. As I understand I was hit by global IP block ( https://meta.wikimedia.org/wiki/Global_blocks ) targeting range that included <IP_ADDRESS> - I see no blocks in https://commons.wikimedia.org/wiki/Special:BlockList?wpTarget=User%3AMateusz+Konieczny&blockType=&limit=50&wpFormIdentifier=blocklist
I was able to bypass block after contacting some special admins as explained (a bit murkily and not fitting mobile screen) in block message.

You could simply display the block message and people should be able to read and fix the problem (if the network is spooky, change network, if your account is gone, use web interface to submit an appeal). I am not sure if you have different api message for hard IP block (usually for OPs and worst of the worst user on the net) and the account block. Proxies also get blocked as if they're vandals.
At least, local blocks and global blocks have different block message, tho. And torblock also have different error iirc.

Hmm yes we can redirect user to web interface for ip block extemption thing too. I saw this kinds of messages at the time Wikipedia was blocked in Turkey and I had to use VPN, and it was different from "your account is blocked message".
a- If we have such a distinct answers about blocks, we should inform user about the reason. We should exclusively create an issue for this task.
b- If both has the same mechanism, this verifies "Relevant PR is merged but it appears to be not working." So we should fix relevant PR.


Event handler attributes with dashes in them generates invalid syntax

I'm using Shoelace together with Solid and noticed that Shoelace's custom events can't be used because it leads to invalid JavaScript syntax.
Example usage of such Shoelace component and custom event handler:
const TitleInput = () => {
  const [title, setTitle] = createSignal("");

  return (
    <sl-textarea
      value={title()}
      onSl-input={(e) => setTitle(e.target?.value)}
    />
  );
};

That yields the following syntax:
_el$4.__sl-input = e => setTitle(e.target?.value);

And error:
SyntaxError: invalid assignment left-hand side

Because of the non-quoted __sl-input property.

Is the naming and casing still fine? The reason I ask is the on___ does some very specific transformations (like lowercases everthing). So if it isn't you might be better off using the on binding (hopefully to be replaced with namespaces when landing in TS 4.2).
Like:

 alert(e.detail) }} />

I'm all for turning it into a quoted computed property since that will catch issues like this. I just want to double check it would be doing what you expect.

Is the naming and casing still fine? The reason I ask is the on___ does some very specific transformations (like lowercases everthing). So if it isn't you might be better off using the on binding (hopefully to be replaced with namespaces when landing in TS 4.2).
Like:

 alert(e.detail) }} />

I'm all for turning it into a quoted computed property since that will catch issues like this. I just want to double check it would be doing what you expect.

Yes, in this case the event name is "sl-input", so lower casing it and keeping the dash would be fine. And I guess this lib shouldn't generate invalid syntax anyway, as long as the attribute name contains valid characters.
With that said I think the on binding syntax looks better and is more flexible regarding event names, so I'll try that. I hadn't noticed that one in the documentation
Great job with Solid btw! I'm just getting started with it, but on the paper it is the best imo!

Yes, in this case the event name is "sl-input", so lower casing it and keeping the dash would be fine. And I guess this lib shouldn't generate invalid syntax anyway, as long as the attribute name contains valid characters.
With that said I think the on binding syntax looks better and is more flexible regarding event names, so I'll try that. I hadn't noticed that one in the documentation
Great job with Solid btw! I'm just getting started with it, but on the paper it is the best imo!


ensure: "All binaries are checked with antivirus before publishing."

Currently, i do AV checks with Avira and Kaspersky.
To make this AV check even more transparent, we want this (a) as a separate build step
and (b) with published scan reports on the website.

add build step
do a virus check on the whole releases folder, before the files are published
maybe automatical virus check and reports for all releases via the VirusTotalAPI

https://github.com/jayzeng/virustotal_apiwrapper

if everything is ok (or only known bogus messages / false positives), then release files
add the virus reports next to the downloads

In other words, ensure:

[ ] "All binaries are checked with antivirus before publishing."
[ ] "All reports are available."
[ ] Add Message: "Virus Status: Clean (Clean) by ClamAV & VirusTotal.

Will not implement, because the stack is no longer build on a local machine, but build transparently on Travis-Ci and deployed to Github.
Contributions with a focus on additional AV checks are welcome.
Closed for now.


Lightning resume integration

Hey Brittany! First of all, your resume rocks 🎸
I see many people are forking your resume in order to build their own, the issue is that it might take some time to adjust your template to each person exact needs, and then maintaining it while as well maintaining their LinkedIn profile.
Me and @chekuda came up with Lightning resume, a tool that would allow anyone to create a resume website like yours in about 20 seconds 😮
We wanted to know what you think, and if you would be okay for us to adapt and use your resume as a template in Lightning resume.
We would add a footer that would say something like Template from Brittany Chiang. Generated with ⚡ Resume.
Looking forward to hearing your thoughts, it would great if you could try it out. We currently have only one basic template called navy

Hey @oxmanroman, since I didn't originally intend for this site to be a template, I'm going to politely decline. Cool tool though! Best of luck with it.


how do you pass a dict as a parameter to <%namespace:def

Discussed in https://github.com/sqlalchemy/mako/discussions/396

Originally posted by jjgalvez May  5, 2024
How do I pass a dict to a def when it's called from <%namespace:def>.
I would expect that calling
<%namespace:def param="${ {'id':123} }"></namespace:def> to work, but when I do I get an error saying I am missing a closing }
for reference <%call expr="namespace.def(param={'id':123})"></%call> works as expected.

Jose has proposed a fix for this issue in the main branch:
Update parsetree.py removed "?" from for x in re.compile(r"(${.+})" … https://gerrit.sqlalchemy.org/c/sqlalchemy/mako/+/5296

bug remains open as we have to revert this, see #401

Hai Zhu has proposed a fix for this issue in the main branch:
Support the direct passing of dictionary literals. https://gerrit.sqlalchemy.org/c/sqlalchemy/mako/+/5558


[BUG] Index out of bounds for new dictionary distances

Describe the bug
Based on the latest nightly CI run, the new distances for SAX/SFA from #1622 have an index out of bounds error.
They should also probably be in a submodule i.e. distances/symbolic/ or distances/dictionary/ since after a quick look they don't seems to take regular series input.
@patrickzib
Steps/Code to reproduce the bug
See https://github.com/aeon-toolkit/aeon/actions/runs/9492367012/job/26159387219#step:7:750
Expected results
Tests for new distances pass.
Actual results
Tests fail due to IndexError
Versions
N/A, see CI run.

Fixed by #1690


Prepare for Micronaut 4

https://github.com/micronaut-projects/micronaut-core/issues/7720

we need to create a new mayor branch for the repo branching off master. For TOML it will be 2.0.x branch.
This PR should point to that branch not master

Add this PRs to 4.0.0 project

I will correct this and create a new PR.


Adding in storage provider docs

Pulling wallet list from nav (that does out tomorrow)
Closes #52
Closes #49

Signed-off-by: Mary Anthony<EMAIL_ADDRESS>

So looking forward to this!


Configure github pages for our homepage project.

Make our homepage work in web.

Homepage available with this link.


Logging

Should there be a logging system created and maintained for the "why" command?

Logging is not necessary at this point in time.


Improve KAT test reliability

Description
This PR aims to cut down on CI flakes.  The main way it does this is by turning backend service deployments in to proper KAT Nodes with readiness checks (requirements) so that the KAT harness can tell whether they're working.  Along the way, there are a few cleanups too.
Related Issues
I'm kinda surprised we don't seem to have a ticket about KAT reliability. Maybe it's in Notion?
Testing
That's all this is.
Checklist

[x] I made sure to update CHANGELOG.md. - no applicable changes
Remember, the CHANGELOG needs to mention:

Any new features
Any changes to our included version of Envoy
Any non-backward-compatible changes
Any deprecations

[x] This is unlikely to impact how Ambassador performs at scale. - not a runtime change
Remember, things that might have an impact at scale include:

Any significant changes in memory use that might require adjusting the memory limits
Any significant changes in CPU use that might require adjusting the CPU limits
Anything that might change how many replicas users should use
Changes that impact data-plane latency/scalability

[x] My change is adequately tested. - that's all this is
Remember when considering testing:

Your change needs to be specifically covered by tests.

Tests need to cover all the states where your change is relevant: for example, if you add a behavior that can be enabled or disabled, you'll need tests that cover the enabled case and tests that cover the disabled case. It's not sufficient just to test with the behavior enabled.

You also need to make sure that the entire area being changed has adequate test coverage.

If existing tests don't actually cover the entire area being changed, add tests.
This applies even for aspects of the area that you're not changing – check the test coverage, and improve it if needed!

We should lean on the bulk of code being covered by unit tests, but...
... an end-to-end test should cover the integration points

[x] I updated DEVELOPING.md with any any special dev tricks I had to use to work on this code efficiently. - no tricks

[ ] The changes in this PR have been reviewed for security concerns and adherence to security best practices.

@LanceEa @ddymko I've added a commit that upgrades to a golangci-lint with the depguard fix (references to golangci-lint and depgaurd ticket numbers in the commit message) and un-comments the line from .golangci.yml.

@LanceEa @ddymko I've added a commit that upgrades to a golangci-lint with the depguard fix (references to golangci-lint and depgaurd ticket numbers in the commit message) and un-comments the line from .golangci.yml.

Thanks appreciate it!

Resolved merge conflicts in builder.mk and t_tcpmapping.py.

Fixed a mistake in resolving the merge conflicts; just had to do a search/replace for self.name.k8s→self.path.k8s.


Updated README.md to match the repo rename

This should fix travis and coveralls badges.

Changes Unknown when pulling 62b50ea0bddf21b7f67e5c1bd9ebe7bbbd04c164 on update-readme into ** on master**.


Upgraded secondary replicas non-readable warning

Specifically added a warning to call out that upgraded secondary replicas will not be readable even when marked so if they are upgraded to a newer version. Added the hyperlink to the page describing this in more detail.

@SeanGallardy : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Note that publishing in this repository is suspended until Tuesday, May 19. Merging will resume at 7:00 AM PT Tuesday. Authors can still review and sign off on PRs during this time.
Locale (en-us) needs to be removed from docs.microsoft.com links before merge.
Thanks.

thanks Sean! change looks good #sign-off

This PR is ready to merge on Tuesday, 5/19. Thanks.


Images should free upon GC

best example is calling
  img := image.mk(screenData, th.Vf2{200, 200})
  img.draw(th.Transform{s: th.Vf2{1, 1}})

repeatedly, it drains the RAM very quickly. This is important for there's no way to free an image. Ideally this shouldn't be manual as umka is a GC language.

Freeing images using GC would require a rework of how opaque structures are stored.
For your specific usecase, the new Image.setData method could be useful.

The main question is: who owns the image? If it's the host application, you cannot deallocate it with Umka's GC.

Tophat owns all opaque data. Allocating them in umka would be possible if it's necessarily needed.

How lua handles this approach is it gives out a custom malloc function. However there's also another approach it provides, notifying when the item is about to be collected. In lua it's implemented via metatable. In umka in my opinion, this could be done by allowing to implement free method function, or use an existing keyword for like delete. Roughly how this would look like:
fn (i: ^Image) delete() { // or free, whatever
  imgfree(i.handle)
}

Done


Clundquist/dpkg install options

I have a custom .deb that is a little wonky and installs into / so we have /memcached.
We need to set --instdir so that it ends up in the place we expect, however, currently install_options has no effect for dpkg.
I want this to work as you expect:
$memcached_debian_path = "/path/to/memcached/${memcached_debian}"
package { 'memcached':
    ensure          => latest,
    provider        => dpkg,
    source          => $memcached_debian_path,
    install_options => ['--instdir=/path/to/memcached'],
    # ...

Currently, install_options is ignored.
Debug: Executing '/usr/bin/dpkg-query -W --showformat '${Status} ${Package} ${Version}\n' memcached'
Debug: Executing 'dpkg --set-selections'
Debug: Executing '/usr/bin/dpkg --force-confold -i /path/to/memcached/memcached_1.6.19b.deb'

This should honor install_options so that my resource works as intended.
This change is difficult for me to test as we are behind on puppet versions, so I'll need to rely on CI testing and additional testing from maintainers.

Can one of the admins verify this patch?

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Great catch @joshcooper !

Thanks! Sorry forgot to mention earlier could you squash your commits and add tests? I just merged a pacman provider change that is similar to this one.

Hi @clundquist-stripe could you squash your commits?

can do!
I haven't added tests just yet though :(

Thanks @clundquist-stripe! Could you add some unit tests to make sure install and uninstall options are getting passed through to the underying dpkg commands as expected? For example, see how this is done for yum:
https://github.com/puppetlabs/puppet/blob/47f7f3b507ce82d94569c74f5050954bbaded16c/spec/unit/provider/package/yum_spec.rb#L80
https://github.com/puppetlabs/puppet/blob/47f7f3b507ce82d94569c74f5050954bbaded16c/spec/unit/provider/package/yum_spec.rb#L110


RevEng: Generate Properties in same order as columns in DB

Fixes #4062.
Note: this uses a Scaffolding-only ColumnOrdinal annotation for now. If we decide to add column ordering in a more general way to the model as a whole (see discussion in #2272) then we should change this code to use that instead.

Can you add to the RelationalDatabaseModelFactoryTest unit test as well?

@natemcmaster Will do.

@natemcmaster Have force pushed with latest commit - including extra test - and renamed that file as agreed.

:shipit:  (merge conflicts? probably due to r# cleanup)


Clarify Text Styles

Looking at the output of --help, it is difficult to discern what the various text style values (text, text-primary, text-secondary, text-highlight, etc) refer to.
When I first launched fltrdr on a text file I found the behaviour of highlighting the character under the cursor to be distracting. I wanted to highlight the whole word. Through trial and error I discovered that the property I wanted was text-primary, but it would have been helpful if the documentation was more specific on this point.

Thanks for letting me know, I'll try and make the descriptions of each style more specific.

Some more specific descriptions have been added in the latest version. Could you let me know if they help clarify the commands purpose? If not, what could be changed?

Yes, these look much more helpful. Thanks!


variable view not in sync while debugging

What steps will reproduce the problem?

debug a function containing a matrix to be returned. During execution open the matrix view by double clicking it in variable explorer. Watch the variable by advancing in debug mode.
Idia is to watch what happends while clicking, next, next next and see how values are changing in matrix view. However the matrix view ramains unchanged and the only way to see the updated values is to close the view and double click to open the content of the matrix again and again.
It is  suboptimal and clumsy, especially when I am in a for loop and watch the changes in my matrix.
Expected behavior: when I click next in debug mode, whatever matrix I am currently watching is getting updated. That is: not only variable explorer to be refreshed but also its children produced by double clicking on the variable view.

Hey @mikhailo, thanks for reporting. This is a current limitation and it has been brought to our attention several times before.
Unfortunately, this is not an easy problem to solve so it could take us I think more than a year to address it because there are several other things we're working on at the moment too.

I'm going to close this as a duplicate of issue #6325.


Callbacks don't look perfect

It seems that there are still some problems with the use of callbacks, I hope to improve in the next version.

the callback has been complete in this version b87653f3d2a3f7e6ca2dc39b040f3824ff14056a


addListener is not a function

addListener is not a function
handleException @ ExceptionsManager.js:65
handleError @ InitializeCore.js:117
reportFatalError @ error-guard.js:44
__guard @ MessageQueue.js:233
callFunctionReturnFlushedQueue @ MessageQueue.js:102
(anonymous) @ debuggerWorker.js:72
ignite new appname --boilerplate native-base-boilerplate
react-native, react and native-base version
react-native  0.47.2
Expected behaviour
can use
Actual behaviour
can not use
Steps to reproduce (code snippet or screenshot)

emulator
ios

https://github.com/GeekyAnts/ignite-native-base-boilerplate/issues/19


Spurious warnings from automatically generated files

Environment data
dotnet --info output:
.NET Core SDK (reflecting any global.json):
Version:   2.1.403
Commit:    04e15494b6
Runtime Environment:
OS Name:     ubuntu
OS Version:  18.04
OS Platform: Linux
RID:         ubuntu.18.04-x64
Base Path:   /usr/share/dotnet/sdk/2.1.403/
Host (useful for support):
Version: 2.1.5
Commit:  290303f510
.NET Core SDKs installed:
2.1.403 [/usr/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.5 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.5 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.5 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
VS Code version: 1.27.2
C# Extension version: 1.16.1
Steps to reproduce
Turn "Suppress Hidden Diagnostics" off in the VSCode C# extension.
Use dotnet new to create the ASP.NET Core Empty project type.  Run the project and open it in VSCode.
Expected  behavior
Warnings about "unnecessary using directives" should only be displayed for source code which is intended to be edited by the programmer.
Actual behavior
Warnings are displayed for various automatically generated files.
I understand that some people dislike the warnings about unnecessary using directives, and that's why they are hidden by default.  Personally though I feel that unused imports represent untidy code and should be removed.  Obviously I don't hold automatically generated files to the same standard, but it's distracting if I get warnings about those files, given that I'm unable to fix the problem.
I would be happy if the C# extension worked the same way as the Typescript one, showing unnecessary imports in a darker colour, without any actual diagnostic.  As I understand it, though, this is not possible with C# at the moment.  You only have the option of a diagnostic message or nothing, and if there is no message at all, it's difficult to work out which directives are needed and which are not.
Thank you for all your work on VSCode and I hope this report is helpful.

A lot has changed with how O# determine diagnostics since this issue was opened. If you are still running into problems, please open a new issue.


Investigate ubi-micro for Ansible, Helm and SDK base images

Feature Request
We should investigate which (if any) of our images can use ubi-micro to replace ubi-8.
Why? Thinner base images mean less security exposure, and less frequent need to rebuild our images.

If we cannot switch to ubi-micro, please reopen https://github.com/operator-framework/operator-sdk/issues/5745


ImportError: No module named 'ExceptionNotSeen'

Maybe something is missing...
Traceback (most recent call last):
File "/Users/ZhangYuhao/Documents/Datamining/project/Q_number.py", line 3, in
from naiveBayesClassifier.trainer import Trainer
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/naiveBayesClassifier/trainer.py", line 1, in
from naiveBayesClassifier.trainedData import TrainedData
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/naiveBayesClassifier/trainedData.py", line 1, in
from ExceptionNotSeen import NotSeen
ImportError: No module named 'ExceptionNotSeen'
Could anyone help me out?

seems there is something wrong with the install import  or python path in system variable.
Solve it this way

Go to this folder /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/naiveBayesClassifier
Copy ExceptionNotSeen.py to your current project path(where you run your main python program

It solved that issue for me.

Thks!

Does not work in virtual environment (anaconda)
Still getting thrown the same error
Naive Bayes Classifier has the ExceptionNotFound in its folder
Tried storing the file locally in the project directory but it's not working

you need to import class NotSeen into all dependent class files.
Add **from ExceptionNotSeen import NotSeen in all relevent files under C:\Users\Username\AppData\Local\Programs\Python\Python36\Lib\site-packages\naiveBayesClassifier
I did that to

classifier.py
trainedData.py

It should solve your issue

Files all already make this import

whats the error message you are getting ? post it here

I am getting the following error:
Traceback (most recent call last):
  File "cat.py", line 6, in <module>
    from naiveBayesClassifier.trainer import Trainer
  File "C:\Users\username\AppData\Local\Continuum\Anaconda3\lib\site-packages\naiveBayesClassifier\trainer.py", line 1, in <module>
    from naiveBayesClassifier.trainedData import TrainedData
  File "C:\Users\username\AppData\Local\Continuum\Anaconda3\lib\site-packages\naiveBayesClassifier\trainedData.py", line 1, in <module>
    from ExceptionNotSeen import NotSeen
ModuleNotFoundError: No module named 'ExceptionNotSeen'

I use Anaconda.

ModuleNotFoundError                       Traceback (most recent call last)
 in ()
10 import textacy
11 import textacy.datasets
---> 12 from genderizer.genderizer import Genderizer
13 get_ipython().run_line_magic('matplotlib', 'inline')
~/anaconda3/envs/nlp/lib/python3.6/site-packages/genderizer/genderizer.py in ()
4
5 from naiveBayesClassifier import tokenizer
----> 6 from naiveBayesClassifier.trainer import Trainer
7 from naiveBayesClassifier.classifier import Classifier
8
~/anaconda3/envs/nlp/lib/python3.6/site-packages/naiveBayesClassifier/trainer.py in ()
----> 1 from naiveBayesClassifier.trainedData import TrainedData
2
3 class Trainer(object):
4
5     """docstring for Trainer"""
~/anaconda3/envs/nlp/lib/python3.6/site-packages/naiveBayesClassifier/trainedData.py in ()
----> 1 from ExceptionNotSeen import NotSeen
2
3 class TrainedData(object):
4     def init(self):
5         self.docCountOfClasses = {}
ModuleNotFoundError: No module named 'ExceptionNotSeen'

i got the same error.
C:\Users\user\Desktop\amazonscrapy-master\AmazonScrapy\spiders>python amazon_spider.py
Traceback (most recent call last):
File "amazon_spider.py", line 13, in
from AmazonScrapy.items import AmazonscrapyItem
ModuleNotFoundError: No module named 'AmazonScrapy'

Is the version of python that many of you are using is 3.x? If so, download 2to3, copy 2to3 file to dir of genderizer package, then open the terminal in genderizer package dir and run the following command:
2to3 -w .
which converts all the python files to the version 3. This should solve all the above problems and this has worked for me!

Is the version of python that many of you are using is 3.x? If so, download 2to3, copy 2to3 file to dir of genderizer package, then open the terminal in genderizer package dir and run the following command:
2to3 -w .
which converts all the python files to the version 3. This should solve all the above problems and this has worked for me!

You can try this "
from naiveBayesClassifier.ExceptionNotSeen import NotSeen " it worked for me in all required files


Image workflows broke

Trivy fails to properly handle image without creation timestamps when running under recent versions of Docker. https://github.com/actions/runner-images/commit/619f9fd372f7aed204a8e2c46f2d7ce10d4b868c updated Docker on the runners from 24 to 26. This broke the image publishing pipelines.
The solution to this is to pin trivy's time parsing to a fixed creation timestamp explicitly.

Upstream discussion at https://github.com/aquasecurity/trivy/discussions/6944


RFC: Sqlite

Description

I noticed your project is very strictly tied to Postgres, yet I'd like to try it somewhere with SQLite.
I would propose either moving to JSONField, which may be super annoying to existing users, or doing something like this to support SQLite.
Sadly I've completely forgotten how to do tox properly, so it won't necessarily run everything correctly,
though it passes the tests against SQLite.

Type of change

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

Checklist

[ ] My code is well-commented, linted and follows project conventions
[X] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] Any dependent changes have been merged and published in downstream modules
[ ] I have checked my code and corrected any misspellings
[ ] I have updated the changelog

Thank you for your replies! I'm not sure this is worth pursuing... After this experiment, I found dj-stripe, which "doesn't recommend" sqlite. The issue with it is more like "it can't be proven to work ever", which they should state up-front.
SQLite can sort of work by accident with the Django dev server if multi-threading is turned off, when a handful of webhook calls come in and they get serialized (hopefully in correct order!), but in real life one would not run this type of configuration. That means there will be cases where the db is just completely locked and the webhooks fail, and I couldn't see any retries.
It would be nice if SQLite worked more commonly, but I feel this is a laws-of-physics situation that's just not gonna happen so I took the smallest Postgres setup I could think of (and sadly went with dj-stripe).
Best of luck either way!

Thank you for your replies! I'm not sure this is worth pursuing... After this experiment, I found dj-stripe, which "doesn't recommend" sqlite. The issue with it is more like "it can't be proven to work ever", which they should state up-front.
SQLite can sort of work by accident with the Django dev server if multi-threading is turned off, when a handful of webhook calls come in and they get serialized (hopefully in correct order!), but in real life one would not run this type of configuration. That means there will be cases where the db is just completely locked and the webhooks fail, and I couldn't see any retries.
It would be nice if SQLite worked more commonly, but I feel this is a laws-of-physics situation that's just not gonna happen so I took the smallest Postgres setup I could think of (and sadly went with dj-stripe).
Best of luck either way!

Thanks for your feedbackk


Please support Samsung air conditioner.

The API is well structured. Let me know if you need help.
https://github.com/teodoradima/homebridge-samsung-air-conditioner-smart-things
My DEVICE NAME is "[floor a/c] Samsung".
I am using a custom plug-in, but I want to unify it into one plug-in.

I also successfully used this plugin for air conditioning until recently. Unfortunately, it hasn't been working for about a month now. https://github.com/teodoradima/homebridge-samsung-air-conditioner-smart-things/issues/19
Maybe the next update will fix it :)

I wish you will add Samsung WindFree Avant air conditioner as well. Thanks!


Remove branch specification in the scvi_colab.install() call in the scArches tutorial

@adamgayoso I consistently run out of RAM when running this in its entirety on colab (non Pro). How/Do you do that?


A Scan has a failure.. Please approve to proceed

Approval required for following Workflow to proceed.

WorkflowName
Workflow#
BranchName
TriggerEvent
LastCommitUser

build-test
70
refs/heads/main
push
Yog4Prog

Issue Details
Found an Issue while performing SCA Scan
:point_right: You are required to Approve (or) Reject the issue
Approve or Reject by commenting in the below section with any of the following keywords
:green_book:  Approved Keys: approved approve lgtm goahead proceed yes
:closed_book: Reject Keys: denied deny reject rejected no abort cancel exit
:point_right: Note: If left uncommented the issue will be closed after the timeout period and the workflow will be marked unsuccessful.

Approval waiting period elapsed. Approval request is automatically closed and workflow status is marked to Failed.


Broken get_detailed_user

There are 2 https so it raises an error.

https://github.com/iranathan/robloxapi/blob/8bad366773686925f91b107ae3adcda7b1c2389a/robloxapi/user.py#L117


Create tests for the new methods in simulation.py

New tests for the now freshly implemented pheromone trails need to be added.
Methods:
map_ant_coordinates_to_pheromone_index
find_pheromone_trace
get_pheromone_position

Maybe there could be a test for the create_statistic-method as well ? @Jonah-gr
Since @heyitsalina wanted to work on this problem before, I assigned her/you. 😄

A test for the create_statistic() method should be possible. It could be tested whether the json file is created correctly.
Note, however, that the method also calls build_pdf() in statistics.py.

alright, i'll get my hands onto this

from what i understand, there's no test for check_future_position() yet in our simulation test file so i would also just add that function while i'm at it