Limitations

Currently the following macros are only available from within the context of a function:

[x] assert_eq_size (commit f3da7e4)

Relies on forget, transmute, and uninitialized as provided by core::mem. transmute and uninitialized are marked as unsafe, which makes it unlikely for them to become const.
Could provide an assertion built on const_assert if mem::size_of were a const fn. To resolve the limitation, const_assert would need to be resolved first.

[x] const_assert (commit b7ca44e)
[x] const_assert_eq (commit b7ca44e)

Dependent on const_assert, so resolving that macro would resolve this one.

Commits b7ca44e and f3da7e4 have somewhat resolved this.
The following macros now require labels (identifiers) unique to their namespace to be used in a non-function context:

[ ] assert_eq_size
[ ] assert_obj_safe
[ ] assert_impl
[ ] const_assert
[ ] const_assert_eq

This, along with having more assertions available (#2), would allow for a 1.0.0 release.

See https://github.com/rust-lang/rust/issues/54912 for the fix to this issue. With this, we can declare macros like const_assert! as such (run in playground):
#![feature(underscore_const_names)]

macro_rules! const_assert {
    ($($xs:expr),+ $(,)*) => {
        const _: [(); 0 - !($($xs)&&+) as usize] = [];
    };
}

Another limitation is that the size of a generic type cannot be determined.  For example, the following does not work:
#[test]
fn test_generic_types() {
    fn foo<T, U>(_t: T, _u: U) {
        assert_eq_size!(T, U);
    }
}

error[E0512]: transmute called with types of different sizes
   --> tests/eq_size.rs:113:9
    |
113 |         assert_eq_size!(T, U);
    |         ^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: source type: T (this type's size can vary)
    = note: target type: U (this type's size can vary)
    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

I don't know if it's possible to remove this limitation, but it would be extremely useful to do so.

@asomers Unfortunately, if we try taking the const_assert! approach to fix this, other errors show up. 😕
Say you have the following (test in playground):
use std::mem::size_of;

fn test<T, U>() {
    // Essentially const_assert!()'s internals
    const ASSERT: [
        ();
        0 - !(size_of::<T>() == size_of::<U>()) as usize
    ] = [];
}

This generates the following errors:
error[E0401]: can't use type parameters from outer function
 --> src/main.rs:7:25
  |
3 | fn test<T, U>() {
  |    ---- - type variable from outer function
  |    |
  |    try adding a local type parameter in this method instead
...
7 |         0 - !(size_of::<T>() == size_of::<U>()) as usize
  |                         ^ use of type variable from outer function

error[E0401]: can't use type parameters from outer function
 --> src/main.rs:7:43
  |
3 | fn test<T, U>() {
  |    ----    - type variable from outer function
  |    |
  |    try adding a local type parameter in this method instead
...
7 |         0 - !(size_of::<T>() == size_of::<U>()) as usize
  |                                           ^ use of type variable from outer function

I'm not sure if anyone's working to fix this issue. I agree that it would be quite nice to be able to have these assurances in monomorphized functions.

Interesting.  The reference to an "outer function" is what you would expect if [(); _] were a macro, but it isn't.  I'm of the opinion that this is a compiler bug.  It's an incorrect error message, if nothing else.
What you're doing looks basically like creating a variable-sized array, which of course isn't supported in Rust.  I don't have any better ideas about how to do it, though.  I suppose you could wrap the generic function in a macro, but that's ugly.

Even not in an array context, doing this won't work either:
const X: usize = size_of::<T>();

I'm of the opinion that this is a compiler bug.

It's not. A const, type, ... item may not refer to the parameters of the outer scope unless the immediate scope is an impl. This is by design. Rust does not support lexically scoped type variables.

Why is it still not possible to use this outside of a function even tho underscore_const_names has stabilized?

1.0 is now available! So yes @carbotaniuman now you can use everything outside of the context of a function.


Unable to run Docker in LXD due to iptables failure

Required information

Distribution: xenial
Distribution version: 16.04.3
The output of "lxc info" or if that fails:

config:
  images.auto_update_interval: "10"
api_extensions:
- storage_zfs_remove_snapshots
- container_host_shutdown_timeout
- container_stop_priority
- container_syscall_filtering
- auth_pki
- container_last_used_at
- etag
- patch
- usb_devices
- https_allowed_credentials
- image_compression_algorithm
- directory_manipulation
- container_cpu_time
- storage_zfs_use_refquota
- storage_lvm_mount_options
- network
- profile_usedby
- container_push
- container_exec_recording
- certificate_update
- container_exec_signal_handling
- gpu_devices
- container_image_properties
- migration_progress
- id_map
- network_firewall_filtering
- network_routes
- storage
- file_delete
- file_append
- network_dhcp_expiry
- storage_lvm_vg_rename
- storage_lvm_thinpool_rename
- network_vlan
- image_create_aliases
- container_stateless_copy
- container_only_migration
- storage_zfs_clone_copy
- unix_device_rename
- storage_lvm_use_thinpool
- storage_rsync_bwlimit
- network_vxlan_interface
- storage_btrfs_mount_options
- entity_description
- image_force_refresh
- storage_lvm_lv_resizing
- id_map_base
- file_symlinks
- container_push_target
- network_vlan_physical
- storage_images_delete
- container_edit_metadata
- container_snapshot_stateful_migration
- storage_driver_ceph
- storage_ceph_user_name
- resource_limits
- storage_volatile_initial_source
- storage_ceph_force_osd_reuse
- storage_block_filesystem_btrfs
- resources
- kernel_limits
- storage_api_volume_rename
- macaroon_authentication
- network_sriov
- console
- restrict_devlxd
- migration_pre_copy
- infiniband
- maas_network
api_status: stable
api_version: "1.0"
auth: trusted
public: false
auth_methods:
- tls
environment:
  addresses: []
  architectures:
  - x86_64
  - i686
  driver: lxc
  driver_version: 2.0.8
  kernel: Linux
  kernel_architecture: x86_64
  kernel_version: 4.13.0-37-generic
  server: lxd
  server_pid: 3645
  server_version: "2.21"
  storage: zfs
  storage_version: <IP_ADDRESS>-1ubuntu3

Issue description
Docker daemon fails to start in container. From the docker journal:
Mar 22 16:36:46 docker dockerd[3607]: time="2018-03-22T16:36:46.429271293Z" level=error msg="'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded."
Mar 22 16:36:46 docker dockerd[3607]: time="2018-03-22T16:36:46.431588635Z" level=error msg="'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded."
Mar 22 16:36:46 docker dockerd[3607]: time="2018-03-22T16:36:46.434852077Z" level=info msg="Graph migration to content-addressability took 0.00 seconds"
Mar 22 16:36:46 docker dockerd[3607]: time="2018-03-22T16:36:46.435086613Z" level=warning msg="Your kernel does not support swap memory limit"
Mar 22 16:36:46 docker dockerd[3607]: time="2018-03-22T16:36:46.435134686Z" level=warning msg="Your kernel does not support cgroup rt period"
Mar 22 16:36:46 docker dockerd[3607]: time="2018-03-22T16:36:46.435145702Z" level=warning msg="Your kernel does not support cgroup rt runtime"
Mar 22 16:36:46 docker dockerd[3607]: time="2018-03-22T16:36:46.436516855Z" level=info msg="Loading containers: start."
Mar 22 16:36:46 docker dockerd[3607]: time="2018-03-22T16:36:46.438098061Z" level=warning msg="Running modprobe bridge br_netfilter failed with message: modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open
Mar 22 16:36:46 docker dockerd[3607]: time="2018-03-22T16:36:46.440194392Z" level=warning msg="Running modprobe nf_nat failed with message: `modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file
Mar 22 16:36:46 docker dockerd[3607]: time="2018-03-22T16:36:46.441560014Z" level=warning msg="Running modprobe xt_conntrack failed with message: `modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep
# The following lines are unique to the failure
Mar 22 16:36:46 docker dockerd[3607]: Error starting daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain: iptables failed: iptables -t nat -N DOCKER: modprobe: ERROR: ../li
Mar 22 16:36:46 docker dockerd[3607]: modprobe: FATAL: Module ip_tables not found in directory /lib/modules/4.13.0-37-generic
Mar 22 16:36:46 docker dockerd[3607]: iptables v1.6.0: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Mar 22 16:36:46 docker dockerd[3607]: Perhaps iptables or your kernel needs to be upgraded.
Mar 22 16:36:46 docker dockerd[3607]:  (exit status 3)
Mar 22 16:36:46 docker systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE

Steps to reproduce
Using the following lxd preseed:
  profiles:
    - name: default
      config: {}
      description: Default profile
      devices:
        eth0:
          nictype: bridged
          parent: br0
          type: nic
        root:
          path: /
          pool: lxd
          type: disk

Where br0 is an interface configured as:
auto br0
iface br0 inet static
        ... static config ...
	bridge_ports eno2

auto eno2
iface eno2 inet manual

The intention here is to bridge the containers to the physical interface, which has been working well but may be interfering with docker bringup.
lxc launch ubuntu:16.04 docker -c security.nesting=true &&
lxc exec docker -- /bin/bash

apt-get update &&
apt-get install -y \
    apt-transport-https \
    ca-certificates \
    wget \
    software-properties-common &&
wget -O- https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - &&
apt-key fingerprint 0EBFCD88 &&
add-apt-repository -y \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable" &&
apt-get update &&
apt-get install -y docker-ce

lxc stop docker &&
lxc delete docker

Containers can't load kernel modules, any module that you need must be pre-loaded.

If you want LXD to preload some modules for you, you can put a comma separate list of them in the linux.kernel_modules config key.

Most people won't run into this particular failure because their host operating systems will have preloaded most of those iptables kernel modules due to existing NAT using bridges, it appears this isn't the case on your system.

well that's embarassing, thanks for the quick response


Support signature for Query Parameters

This feature can be useful in cases where temporary access is required to a given resource - for example an object in an S3 bucket.
Documentation: https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html
This is related to https://github.com/aws-beam/aws-elixir/issues/87

I've tried this using a different approach as in #5
I was able to get it to work in a use case like this:
  def signed_uri(reference, ttl) do
    %{
      remote_storage_bucket: remote_storage_bucket,
      access_key_id: access_key_id,
      secret_access_key: secret_access_key,
      remote_storage_region: remote_storage_region
    } = aws_config()

    uri =
      URI.parse(
        "https://#{remote_storage_bucket}.s3.#{remote_storage_region}.#{aws_client().endpoint}/#{AWS.Util.encode_uri(reference, true)}"
      )

    now = NaiveDateTime.truncate(NaiveDateTime.utc_now(), :second)
    long_date = NaiveDateTime.to_iso8601(now, :basic) <> "Z"
    short_date = Date.to_iso8601(now, :basic)

    query_params = [
      {"X-Amz-Expires", Integer.to_string(ttl)},
      {"X-Amz-Algorithm", "AWS4-HMAC-SHA256"},
      {"X-Amz-Credential",
       "#{access_key_id}/#{short_date}/#{remote_storage_region}/s3/aws4_request"},
      {"X-Amz-SignedHeaders", "host"},
      {"X-Amz-Date", long_date}
    ]

    url = URI.to_string(%{uri | query: URI.encode_query(query_params)})

    signature =
      :aws_signature.signature(
        access_key_id,
        secret_access_key,
        remote_storage_region,
        "s3",
        NaiveDateTime.to_erl(now),
        "GET",
        url,
        [{"Host", uri.host}],
        nil
      )

    URI.to_string(%{
      uri
      | query: URI.encode_query([{"X-Amz-Signature", signature} | query_params])
    })
  end

  defp aws_client do
    %{
      access_key_id: access_key_id,
      secret_access_key: secret_access_key,
      remote_storage_region: remote_storage_region
    } = aws_config()

    AWS.Client.create(access_key_id, secret_access_key, remote_storage_region)
  end

this signed_uri/2 returns a URI I can use to temporary have access and download from a s3 bucket
But I don't know how to write proper erlang


[app/models] Edita model user

Altera or e and para || e &&, e corrigi identação

Coverage remained the same at 69.333% when pulling 69b293fba4e8d25e601612ab1539bf2a22a67866 on henriquegeek:refactory-model-user into 0bdfd4c4e3056fec2abf7ee1e51b9b96fad380bd on gorails:master.


Add pricing links to footer, nav, and sample pages

(cherry-picked commit from staging)

So it's been a bunch of days. We're probably not using the partials or we might have noticed by now? We probably do want to update the sample pages though.


fix(insights): call init only if it has not been called before

Summary
FX-2272
If init has already been called outside on search-insights, calling init in the insights middleware would clear the previous options and we want to avoid that behavior.
Result
We make sure init is called only if it has not been called before in the sendEventToInsights method:

First, we try to send the event.
If it fails, we catch the error, meaning that search-insights is not initialized yet and we init before sending the event.
Then, if the search-insights queue length has changed in the meantime, it means that search-insights is not yet loaded.
If init has not already been added to the queue, we add it and make sure to put it in the first position in the queue.

let's make this pr to feat/automatic-insights maybe?

I just thought of a flaw on this approach. It means that we don't apply the userToken that gets created by useCookie/setUserToken before the first event

I'm not sure to understand how it can be an issue?

I'd like to see what happens when a customer has setUserToken (but not init), does that still get updated in the helper state? Essentially: see the tests that are breaking now


Uncaught Exception: No URL set! in TwitterAPIExchange.php:275

I wrote the following code and got this issue:
ini_set('display_errors', true);
ini_set('display_errors', 1);
require_once('TwitterAPIExchange.php');
/** Set access tokens here - see: https://dev.twitter.com/apps/ **/
$settings = array(
'consumer_key' => "",
'consumer_secret' => "",
'oauth_access_token' => "",
'oauth_access_token_secret' => ""
);
/** Perform a GET request and echo the response /
/ Note: Set the GET field BEFORE calling buildOauth(); **/
$url = 'https://api.twitter.com/1.1/followers/ids.json';
$getfield = '?screen_name=J7mbo';
$requestMethod = 'GET';
$twitter = new TwitterAPIExchange($settings);
echo $twitter->setGetfield($getfield)
->buildOauth($url, $requestMethod)
->performRequest(); ?>

I just copied and pasted the code just before you edit it, and ran it on my machine, with the tokens you had, and got a result. Can you elaborate on what your error is?

I displayed the errors by
ini_set('display_errors', true);
Before I did that I got the error:
Error Code 32: Could not authenticate you

This is the code:
require_once('TwitterAPIExchange.php');
/** Set access tokens here - see: https://dev.twitter.com/apps/ **/
$settings = array(
'consumer_key' => "noV7y6jDK9eG68iE217UwgwdA",
'consumer_secret' => "7cQp5E9JZguNZ2PBMq62l36tsxuKild5LOyKYQG4K6k5gXchaR",
'oauth_access_token' => "14597778-MyxcqNfnlBvNM9mGQzf6yxzxdnEkm3mBFmJQbhwpu",
'oauth_access_token_secret' => "7Kx9VLglBRJrVnAOkll4LFYU9hXnIspybDuRBMLH7T0Qg"
);
/** Perform a GET request and echo the response /
/ Note: Set the GET field BEFORE calling buildOauth(); **/
$url = 'https://api.twitter.com/1.1/followers/ids.json';
$getfield = '?screen_name=J7mbo';
$requestMethod = 'GET';
$twitter = new TwitterAPIExchange($settings);
echo $twitter->setGetfield($getfield)
->buildOauth($url, $requestMethod)
->performRequest(); ?>

Could that be authentication with my tokens ?

@J7mbo Could you help me ?

I just ran the code you pasted above and it works perfectly.

I run it on Xampp.
What could be the problem ?

@J7mbo Did you run the code with the same tokens as mine ?

Yes. I copied the code from this message, changed nothing, and I get a response back.
I would suggest clearing any cache, restarting your web server, and make a change at the top like echo "HELLO WORLD"; just to make sure that you are editing the correct file being served by your webserver.

Do you mrun it on your local host ?
Do you use Xampp ?

Nope, I just ran it on localhost by typing php script.php with your code in it and it worked perfectly. This is why I suggest that there is something else causing your problem.
You can disprove that your problem is a caching one by putting:
echo "hello world";
at the top of your php file and then refreshing your page and seeing if hello world is printed.
If it's not, then there's the problem you need to figure out. Have you done this?

I have.
It prints hello world.
In twitter developer app configuration
what should be the value of callback url ?


dart2js: o as FutureOr<int Function(String)> fails

This incorrectly reports a cast error:
import 'dart:async';

main() {
  print(foo as FutureOr<int Function(String)>);
}

int foo(Object x) {
  return 1;
}

Some care is required here.
In Dart 1, with 'call' methods, an object has two types - in interface type and a function type.
The choice of type to fetch is determined by the type being tested.
With FutureOr<int Function()> we may need to fetch both types so we need to defer fetching the type until we are in one side of the expansion:
x is FutureOr<T> -->  x is Future<T>  ||  x is T

In Dart 2 this is no longer true that user defined code can implement both an interface type and a function type. However it is true in our runtime since closures subclass class Closure and the runtime contains expressions like x is Closure.
This prevents us from having one place to extract the object's type - it is dependent on the form of the type being tested.

Verified fixed


Check that package.xml exists before trying to read it.

Very old packages/stacks may not have a package.xml, but ROS will report them as existing packages. This will cause flexbe_app to fail silently and any packages left to be parsed will be skipped.
This patch addresses the issue by checking that package.xml exists before reading this.
Just a note, I don't really know anything about javascript/Node.js so there may be a much better way of handling this, but it worked for my use case.

Thank you for spotting this and fixing it!


nbdev_prepare throws BrokenProcessPool error on MacOS

On NBDev 2.1.1, fastcore 1.5.14.
In (Arm) MacOS, running nbdev_prepare results in the following error:
objc[12084]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
objc[12084]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
Traceback (most recent call last):
  File "/Users/username/mambaforge/bin/nbdev_prepare", line 8, in <module>
    sys.exit(prepare())
  File "/Users/username/mambaforge/lib/python3.9/site-packages/nbdev/shortcuts.py", line 101, in prepare
    nbdev_test.__wrapped__()
  File "/Users/username/mambaforge/lib/python3.9/site-packages/nbdev/test.py", line 87, in nbdev_test
    results = parallel(test_nb, files, skip_flags=skip_flags, force_flags=force_flags, n_workers=n_workers, pause=pause, do_print=do_print)
  File "/Users/username/mambaforge/lib/python3.9/site-packages/fastcore/parallel.py", line 117, in parallel
    return L(r)
  File "/Users/username/mambaforge/lib/python3.9/site-packages/fastcore/foundation.py", line 98, in __call__
    return super().__call__(x, *args, **kwargs)
  File "/Users/username/mambaforge/lib/python3.9/site-packages/fastcore/foundation.py", line 106, in __init__
    items = listify(items, *rest, use_list=use_list, match=match)
  File "/Users/username/mambaforge/lib/python3.9/site-packages/fastcore/basics.py", line 66, in listify
    elif is_iter(o): res = list(o)
  File "/Users/username/mambaforge/lib/python3.9/concurrent/futures/process.py", line 559, in _chain_from_iterable_of_lists
    for element in iterable:
  File "/Users/username/mambaforge/lib/python3.9/concurrent/futures/_base.py", line 609, in result_iterator
    yield fs.pop().result()
  File "/Users/username/mambaforge/lib/python3.9/concurrent/futures/_base.py", line 446, in result
    return self.__get_result()
  File "/Users/username/mambaforge/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
    raise self._exception
concurrent.futures.process.BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or pending.

This first occurred using (I believe) nbdev 2.0.8 on a public repo ready for a commit. I replicated the error with an empty test public repo after upgrading to nbdev 2.1.1.
Steps to reproduce:

clone a new git repo
run nbdev_new
run nbdev_install_hooks
run nbdev_export
run nbdev_install
run nbdev_prepare

I was not able to replicate this issue on (arm64) Ubuntu 20.04 linux: nbdev_prepare runs successfully there. Note: in this linux test nbdev_new did not infer settings.ini, but did successfully take manual input.
I remember BrokenProcessPool errors in fastai years ago on MacOS, they were solved by setting the number of workers to 1 (or some other work around).

Update: Looks like the issue is in nbdev_test (nbdev_export and nbdev_clean work without issue). I don't have tests but there wasn't an issue on linux.

Can you please provide a link to a github repo where you get this error?

Here is the empty repo I'm using for reproducing errors: https://github.com/WNoxchi/testrepo
I'm migrating a project to nbdev2 and decided to start fresh. https://github.com/WNoxchi/alphazero locally contains code ported over from https://github.com/WNoxchi/alphazero_prev (though now that it seems like export + clean isn't an issue, I'm going to update it tomorrow -- 10-12 hours from now).

Message ID: @.***>Those don't seem to have anything in them. I need access to a repo where I can run the command that's giving you problems and see the error that you're seeing. Then I'll be able to fix it!

The example repo is up at: https://github.com/WNoxchi/alphazero_temp
I discovered a second issue while putting it together: when calling nbdev_export after copying one of my notebooks -- looks like having a dictionary that stores class objects causes an AttributeError. I commented out the code cell and exported so it's visible at: https://github.com/WNoxchi/alphazero_temp/blob/main/search.ipynb.
Export and clean work, nbdev_test (and nbdev_prepare) throw the same error as before. I wonder if the original issue is as simple as me not having any tests defined yet, or missing something from settings.ini. I tried putting in some sample tests: running nbdev_test(..) in a notebook returned a success, but no luck on the CLI. I did not export these.
The export error on a dictionary containing a class object:
Traceback (most recent call last):
  File "/Users/hakan/mambaforge/bin/nbdev_export", line 8, in <module>
    sys.exit(nbdev_export())
  File "/Users/hakan/mambaforge/lib/python3.9/site-packages/fastcore/script.py", line 116, in _f
    return tfunc(**merge(args, args_from_prog(func, xtra)))
  File "/Users/hakan/mambaforge/lib/python3.9/site-packages/nbdev/doclinks.py", line 147, in nbdev_export
    for f in files: nb_export(f)
  File "/Users/hakan/mambaforge/lib/python3.9/site-packages/nbdev/export.py", line 62, in nb_export
    create_modules(nbname, lib_path, procs=[black_format])
  File "/Users/hakan/mambaforge/lib/python3.9/site-packages/nbdev/export.py", line 57, in create_modules
    mm.make(cells, all_cells, lib_path=dest)
  File "/Users/hakan/mambaforge/lib/python3.9/site-packages/nbdev/maker.py", line 193, in make
    _all = self.make_all(all_cells)
  File "/Users/hakan/mambaforge/lib/python3.9/site-packages/nbdev/maker.py", line 109, in make_all
    return retr_exports(cells.map(NbCell.parsed_).concat())
  File "/Users/hakan/mambaforge/lib/python3.9/site-packages/nbdev/maker.py", line 95, in retr_exports
    all_assigns = assigns.filter(lambda o: getattr(o.targets[0],'id',None)=='_all_')
  File "/Users/hakan/mambaforge/lib/python3.9/site-packages/fastcore/foundation.py", line 160, in filter
    return self._new(filter_ex(self, f=f, negate=negate, gen=gen, **kwargs))
  File "/Users/hakan/mambaforge/lib/python3.9/site-packages/fastcore/basics.py", line 636, in filter_ex
    return list(res)
  File "/Users/hakan/mambaforge/lib/python3.9/site-packages/nbdev/maker.py", line 95, in <lambda>
    all_assigns = assigns.filter(lambda o: getattr(o.targets[0],'id',None)=='_all_')
AttributeError: 'AugAssign' object has no attribute 'targets'

Sorry @WNoxchi I might not be explaining very well what we need. In your issue you said "I replicated the error with an empty test public repo after upgrading to nbdev 2.1.1."
That's the repo we need a link to. The empty test public repo which you're seeing the error in. The link you provided is to a repo where you've got quite a bit of code and stuff, and we're not going to be able to wrap our heads around all that!

I discovered a second issue while putting it together: when calling nbdev_export after copying one of my notebooks -- looks like having a dictionary that stores class objects causes an AttributeError.

We'd love to help you fix that, but GitHub Issues isn't really the place. This is for filing reproducible bug reports. We need one issue were bug report. For help with your code, would you mind discussing it either on the forums on discord first? If it turns out it's due to a bug in nbdev, we can then create an issue here to track fixing the bug.
Sorry -- hope this isn't too inconvenient!

No problem, I'll put a post up on the forum later today.

This looks the same as 673, which seemed fixed for a time.
This error is re-ocurring for me now, even without upgrading from 2.0.4. After upgrading to 2.1.1, it is still occuring.
Example repo here. I did nothing but nbdev_new in this repo.
(ml9) michael.fishman@michael nbdev_prepare_broken_example % nbdev_prepare
objc[5744]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
objc[5744]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
Traceback (most recent call last):
  File "/Users/michael.fishman/miniconda3/envs/ml9/bin/nbdev_prepare", line 33, in <module>
    sys.exit(load_entry_point('nbdev', 'console_scripts', 'nbdev_prepare')())
  File "/Users/michael.fishman/repos/nbdev/nbdev/shortcuts.py", line 101, in prepare
    nbdev_test.__wrapped__()
  File "/Users/michael.fishman/repos/nbdev/nbdev/test.py", line 87, in nbdev_test
    results = parallel(test_nb, files, skip_flags=skip_flags, force_flags=force_flags, n_workers=n_workers, pause=pause, do_print=do_print)
  File "/Users/michael.fishman/miniconda3/envs/ml9/lib/python3.9/site-packages/fastcore/parallel.py", line 117, in parallel
    return L(r)
  File "/Users/michael.fishman/miniconda3/envs/ml9/lib/python3.9/site-packages/fastcore/foundation.py", line 98, in __call__
    return super().__call__(x, *args, **kwargs)
  File "/Users/michael.fishman/miniconda3/envs/ml9/lib/python3.9/site-packages/fastcore/foundation.py", line 106, in __init__
    items = listify(items, *rest, use_list=use_list, match=match)
  File "/Users/michael.fishman/miniconda3/envs/ml9/lib/python3.9/site-packages/fastcore/basics.py", line 66, in listify
    elif is_iter(o): res = list(o)
  File "/Users/michael.fishman/miniconda3/envs/ml9/lib/python3.9/concurrent/futures/process.py", line 559, in _chain_from_iterable_of_lists
    for element in iterable:
  File "/Users/michael.fishman/miniconda3/envs/ml9/lib/python3.9/concurrent/futures/_base.py", line 609, in result_iterator
    yield fs.pop().result()
  File "/Users/michael.fishman/miniconda3/envs/ml9/lib/python3.9/concurrent/futures/_base.py", line 446, in result
    return self.__get_result()
  File "/Users/michael.fishman/miniconda3/envs/ml9/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
    raise self._exception
concurrent.futures.process.BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or pending.

Environment:
Python: 3.8.13
nbdev: 2.0.1
OS: macOS Monterey 12.4
Processor: Apple M1

Thanks @MichaelJFishmanBA I'll take a look now.

@MichaelJFishmanBA I tried cloning your repo and ran nbdev_prepare and it worked! Not sure what's different in your env, since it looks nearly identical to mine.
Can you confirm running nbdev_export works OK in that repo for you? Then can you try nbdev_test --n_workers 0? That will disable parallel processing, which might give us a better stack trace. Please paste any error you get in a reply so I can see what's going on. (@WNoxchi same request for you if you're still able to repro this issue please!)

@jph00
nbdev_export ran without error. nbdev_test --n_workers 0 also ran without error.

Ouch OK that's going to be hard to debug!
How about if you first run export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES in the shell, then run nbdev_test -- does that resolve the problem?

Also, can you run python -c 'import fastcore; print(fastcore.__version__)' to confirm what fastcore version you're using?

export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
nbdev_test

runs without error.
python -c 'import fastcore; print(fastcore.__version__)'  gives 1.5.14

Thanks. Could you please try unsetting OBJC_DISABLE_INITIALIZE_FORK_SAFETY again (unset OBJC_DISABLE_INITIALIZE_FORK_SAFETY), and then try installing fastcore from git master (v 1.5.15), and see if that works?

@MichaelJFishmanBA I've updated execnb in master to avoid importing fastcore.xtras and fastcore.foundation. I wonder if that will fix it. Could you try installing execnb and nbdev from master and see if that resolve it (be sure to unset OBJC_DISABLE_INITIALIZE_FORK_SAFETY first).

@jph00
I

unset OBJC_DISABLE_INITIALIZE_FORK_SAFETY
uninstalled nbdev and execnb
pulled and installed the master branch of each
Ran nbdev_test

I still get this error:
(ml9) michael.fishman@michael nbdev_prepare_broken_example % nbdev_test
objc[19935]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
objc[19935]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
Traceback (most recent call last):
  File "/Users/michael.fishman/miniconda3/envs/ml9/bin/nbdev_test", line 33, in <module>
    sys.exit(load_entry_point('nbdev', 'console_scripts', 'nbdev_test')())
  File "/Users/michael.fishman/miniconda3/envs/ml9/lib/python3.9/site-packages/fastcore/script.py", line 116, in _f
    return tfunc(**merge(args, args_from_prog(func, xtra)))
  File "/Users/michael.fishman/repos/nbdev/nbdev/test.py", line 87, in nbdev_test
    results = parallel(test_nb, files, skip_flags=skip_flags, force_flags=force_flags, n_workers=n_workers, pause=pause, do_print=do_print)
  File "/Users/michael.fishman/miniconda3/envs/ml9/lib/python3.9/site-packages/fastcore/parallel.py", line 117, in parallel
    return L(r)
  File "/Users/michael.fishman/miniconda3/envs/ml9/lib/python3.9/site-packages/fastcore/foundation.py", line 98, in __call__
    return super().__call__(x, *args, **kwargs)
  File "/Users/michael.fishman/miniconda3/envs/ml9/lib/python3.9/site-packages/fastcore/foundation.py", line 106, in __init__
    items = listify(items, *rest, use_list=use_list, match=match)
  File "/Users/michael.fishman/miniconda3/envs/ml9/lib/python3.9/site-packages/fastcore/basics.py", line 66, in listify
    elif is_iter(o): res = list(o)
  File "/Users/michael.fishman/miniconda3/envs/ml9/lib/python3.9/concurrent/futures/process.py", line 559, in _chain_from_iterable_of_lists
    for element in iterable:
  File "/Users/michael.fishman/miniconda3/envs/ml9/lib/python3.9/concurrent/futures/_base.py", line 609, in result_iterator
    yield fs.pop().result()
  File "/Users/michael.fishman/miniconda3/envs/ml9/lib/python3.9/concurrent/futures/_base.py", line 446, in result
    return self.__get_result()
  File "/Users/michael.fishman/miniconda3/envs/ml9/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
    raise self._exception
concurrent.futures.process.BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or pending.

OK I'll leave this open until we have a more resilient approach to running NBs, but in the meantime, please just set OBJC_DISABLE_INITIALIZE_FORK_SAFETY in your .zshrc. (It's working on all our machines and on Mac in CI so I'm a bit lost as to what's different!)

Pretty sure the commit I just pushed would have to fix this -- lemme know if it doesn't. It's not forking the parent process at all any more.

@jph00
I still get the error after upgrading to
nbdev==2.1.3
fastcore==1.5.16
execnb==0.1.1

I'll use the OBJC_DISABLE_INITIALIZE_FORK_SAFETY workaround for now.

Someone else with this problem told us upgrading python solved it for them fyi

I am getting the same error in a similar environment, initially with Python 3.9.11 and still after upgrading to Python 3.10.3. I am installing my library with pip install '.[dev]' inside a pyenv-virtualenv environment.
execnb: 0.1.1
fastcore: 1.5.16
nbdev: 2.1.3
OS: macOS Monterey 12.1
Processor: Apple M1 Pro
Repo branch (under heavy construction): https://github.com/gsganden/model_inspector/tree/rewrite

The export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES workaround is working, although nbdev_test is still giving me some warnings:
(model_inspector) ➜  model_inspector git:(rewrite) ✗ nbdev_test
/Users/greg/.pyenv/versions/3.10.3/envs/model_inspector/lib/python3.10/site-packages/joblib/externals/loky/backend/resource_tracker.py:318: UserWarning: resource_tracker: There appear to be 2 leaked folder objects to clean up at shutdown
  warnings.warn('resource_tracker: There appear to be %d '
/Users/greg/.pyenv/versions/3.10.3/envs/model_inspector/lib/python3.10/site-packages/joblib/externals/loky/backend/resource_tracker.py:333: UserWarning: resource_tracker: /var/folders/3q/lv46h47d0hn5fpfhdfr83vm40000gp/T/joblib_memmapping_folder_37203_e3a629b629a5400295fefdc864c96b67_ba483fba37f1472a927a0a394f1e3d26: FileNotFoundError(2, 'No such file or directory')
  warnings.warn('resource_tracker: %s: %r' % (name, e))
/Users/greg/.pyenv/versions/3.10.3/envs/model_inspector/lib/python3.10/site-packages/joblib/externals/loky/backend/resource_tracker.py:333: UserWarning: resource_tracker: /var/folders/3q/lv46h47d0hn5fpfhdfr83vm40000gp/T/joblib_memmapping_folder_37203_e3a629b629a5400295fefdc864c96b67_93e2d48172ce4d8dbdfd2bb716bc0f4d: FileNotFoundError(2, 'No such file or directory')
  warnings.warn('resource_tracker: %s: %r' % (name, e))
/Users/greg/.pyenv/versions/3.10.3/envs/model_inspector/lib/python3.10/site-packages/joblib/externals/loky/backend/resource_tracker.py:318: UserWarning: resource_tracker: There appear to be 6 leaked folder objects to clean up at shutdown
  warnings.warn('resource_tracker: There appear to be %d '
/Users/greg/.pyenv/versions/3.10.3/envs/model_inspector/lib/python3.10/site-packages/joblib/externals/loky/backend/resource_tracker.py:333: UserWarning: resource_tracker: /var/folders/3q/lv46h47d0hn5fpfhdfr83vm40000gp/T/joblib_memmapping_folder_37204_299c733ddcee4c4ab3e9726d12ae1354_3b3b4dd165e84d13b3624e72ea6d9e80: FileNotFoundError(2, 'No such file or directory')
  warnings.warn('resource_tracker: %s: %r' % (name, e))
/Users/greg/.pyenv/versions/3.10.3/envs/model_inspector/lib/python3.10/site-packages/joblib/externals/loky/backend/resource_tracker.py:333: UserWarning: resource_tracker: /var/folders/3q/lv46h47d0hn5fpfhdfr83vm40000gp/T/joblib_memmapping_folder_37204_299c733ddcee4c4ab3e9726d12ae1354_683626eced384d748637878fdd1b9816: FileNotFoundError(2, 'No such file or directory')
  warnings.warn('resource_tracker: %s: %r' % (name, e))
/Users/greg/.pyenv/versions/3.10.3/envs/model_inspector/lib/python3.10/site-packages/joblib/externals/loky/backend/resource_tracker.py:333: UserWarning: resource_tracker: /var/folders/3q/lv46h47d0hn5fpfhdfr83vm40000gp/T/joblib_memmapping_folder_37204_1e530423617a4e9c8cd641b0199f92b0_3295daa093bb47b98b40919e8672bfd5: FileNotFoundError(2, 'No such file or directory')
  warnings.warn('resource_tracker: %s: %r' % (name, e))
/Users/greg/.pyenv/versions/3.10.3/envs/model_inspector/lib/python3.10/site-packages/joblib/externals/loky/backend/resource_tracker.py:333: UserWarning: resource_tracker: /var/folders/3q/lv46h47d0hn5fpfhdfr83vm40000gp/T/joblib_memmapping_folder_37204_299c733ddcee4c4ab3e9726d12ae1354_f7d26f3282c14860b3e979e38cb996c3: FileNotFoundError(2, 'No such file or directory')
  warnings.warn('resource_tracker: %s: %r' % (name, e))
/Users/greg/.pyenv/versions/3.10.3/envs/model_inspector/lib/python3.10/site-packages/joblib/externals/loky/backend/resource_tracker.py:333: UserWarning: resource_tracker: /var/folders/3q/lv46h47d0hn5fpfhdfr83vm40000gp/T/joblib_memmapping_folder_37204_2e48b385d620474b842c0f4ab25cd5b7_ae263ab756184f0793eb24082664a646: FileNotFoundError(2, 'No such file or directory')
  warnings.warn('resource_tracker: %s: %r' % (name, e))
/Users/greg/.pyenv/versions/3.10.3/envs/model_inspector/lib/python3.10/site-packages/joblib/externals/loky/backend/resource_tracker.py:333: UserWarning: resource_tracker: /var/folders/3q/lv46h47d0hn5fpfhdfr83vm40000gp/T/joblib_memmapping_folder_37204_299c733ddcee4c4ab3e9726d12ae1354_4745d863762d470a8f548a8e87e24bf8: FileNotFoundError(2, 'No such file or directory')
  warnings.warn('resource_tracker: %s: %r' % (name, e))
Success.


Every time I run Devin in a container one of the first actions it take is to install Nodejs is it possible to choose another setup configuration?

Describe your question
Whenever I run Devin in a container, one of the first actions is installing Nodejs. Can I choose another setup configuration?
Additional context
Like using different docker images.

what's your meaning? can you provide more context for your question?

When I give Devin instructions to add tests for a local typescript project, it will install NodeJS.
I wanted to know if there's a way to use Devin without the need to install NodeJS but it will already have it pre-configured.

See https://github.com/OpenDevin/OpenDevin/issues/1387 and https://github.com/OpenDevin/OpenDevin/issues/424
Deduping this with the issues above


Should the line listed below in the cmake reference the project name rather than PAMPLEJUCE_IPP ?

https://github.com/sudara/pamplejuce/blob/8824f49341223043fbccf2dc3953865abacf9659/CMakeLists.txt#L136

e.g PROJECT_NAME + _IPP

Ah, I see it referenced here:
https://github.com/sudara/pamplejuce/blob/8824f49341223043fbccf2dc3953865abacf9659/Tests/PluginBasics.cpp#L19
Perhaps a generic name rather than the PAMPLEJUCE prefix?

Hi there!
Thanks for the the suggestion and taking the time to share it.
I like the benefit of the name staying the same across multiple projects. JUCE has JUCE_IPP_AVAILABLE which is what lead me to name it something differentiated that spoke to its origins.
I guess it's pretty easy to rename for anyone kicking off a new project...

It was really just for some consistancy rather than being tied to the template really.  I dont think I got snagged my it as it would only really affect the test projects.   Im sort of inbetween migrating to your template but thanks for doing this its a big help!


cmd/gf: gf run how to exclude dir or file ?

What do you want to ask?
I have a project that use gin-swagger,  so it will generate docs/docs.go, and I use  command gf run  main.go ....   to implement hot compile.
I want to exclude docs/*, how can I do ?
not found, after reading manual:
gf run -h
USAGE
    gf run FILE [OPTION]

ARGUMENT
    FILE    building file path.

OPTION
    -p, --path         output directory path for built binary file. it's "manifest/output" in default
    -e, --extra        the same options as "go run"/"go build" except some options as follows defined
    -a, --args         custom arguments for your process
    -w, --watchPaths   watch additional paths for live reload, separated by ",". i.e. "manifest/config/*.yaml"
    -h, --help         more information about this command

EXAMPLE
    gf run main.go
    gf run main.go --args "server -p 8080"
    gf run main.go -mod=vendor
    gf run main.go -w "manifest/config/*.yaml"

DESCRIPTION
    The "run" command is used for running go codes with hot-compiled-like feature,
    which compiles and runs the go codes asynchronously when codes change.

目前只能使用指定目录的方式--watchPaths，暂时没有排除的方式


Should services in nixos-rebuild build-vm work?

I'm using home-manager release-19.03 as a nixos module.
But after nixos-rebuild build-vm --fast && ./result/bin/run-*-vm and logging in to my user, xmonad won't start.
I'm not yet 100% sure how to troubleshoot it, but before I continue my troubleshooting journey I thought I'd ask:
Is the xmonad module this is expected to work with build-vm?

I am uncertain because in news.nix, 2018-02-06, it says:

For example, it is currently not possible to use 'nixos-rebuild build-vm' when using the Home Manager NixOS module

But since then this have been added to the documentation:

Note By default packages will be installed to $HOME/.nix-profile but they can be installed to /etc/profiles if
home-manager.useUserPackages = true;

is added to the system configuration. This is necessary if, for example, you wish to use nixos-rebuild build-vm. This option may become the default value in the future.

Which I interpret as build-vm now is expected to work, but maybe I'm wrong? Or is it likely that there's something wrong with my setup?
Notes

Any tips on how I can troubleshoot this is appreciated

nixos-rebuild test and nixos-rebuild switch works as expected, but I can't remember if I have made manual changes outside of my configuration.nix.

sudo systemctl status display-manager shows active status.

Related xmonad home-manager options
{ config, pkgs, ... }:

{
  home = {
    packages = [
      pkgs.haskellPackages.xmobar
    ];
  };
  xsession.windowManager.xmonad = {
    config = ./xmonad.hs;
    enable = true;
    enableContribAndExtras = true;
    extraPackages = haskellPackages: [
      haskellPackages.taffybar
      haskellPackages.xmobar
      haskellPackages.xmonad
      haskellPackages.xmonad-contrib
      haskellPackages.xmonad-extras
    ];
  };
}

Related xmonad nixos options
{
  imports = [ "${home-manager}/nixos" ];
  home-manager = {
    useUserPackages = true;
    users.my-user = import ./home-manager-config;
  };
  services = {
    xserver = {
      autorun = true;
      enable = true;
      displayManager = {
        slim.enable = false;
        lightdm.enable = true;
      };
      windowManager = {
        default = "xmonad";
        xmonad.enable = true; # Each user uses home manager to configure xmonad
      };
    };
  };
  users.extraUsers.my-user = {
    description = "My user";
    isNormalUser = true;
    extraGroups = [ "wheel" ];
  }

  # I also do this in another `vm-config.nix` file used only by the vm. Could this affect somehow?
  users.extraUsers.my-user.initialPassword = "a-password";
}

Yeah, it should work. Did you also set xsession.enable = true;? Without this the xsession would not be generated.

Thank you, I did manage to get it up and running!
The suggested option did have an effect (things looked a bit better, a background image showed up) but still no xmonad
It was not a home-manager problem, so this issue can be closed, sorry for taking up time.
I'll pay it back by explaining how I did if somebody from the future has similar problems:)

systemctl status home-manager-michael told me that Home Manager Service failed to start with error messages such as collect2: ld terminated with signal 9 [Killed] and compilation terminated, which could indicate memory problems.
dmesg seemed to confirmed that with Out of memory: Kill process 1374 (ld) score 409 or sacrifice child.
free --mega showed me that the VM had very little memory.

This was my first Nixos VM build so I didn't know what the defaults were or how to change them. I then found options not very well documented in a chat: virtualisation.virtualisation and virtualisation.memorySize.
So I gave them a higher value, and then it simply worked, hooray


Reflux stores don't play nice with webpack Hot Module Replacement

If have simple application using Reflux and everything works properly. I'm using webpack to build and run everything with HMR support. The react components get hot swapped properly and also the Actions and Stores get hot swapped. The only problem is the 'old' Store is still active and still reacting to the Actions. So every compile that changes something in a Store, you end up with another version of the Store.
Is there something that can be done to fix this?

I've peeked into the webpack docs, but still haven't really gotten any insights on how to do it easily with reflux as I'm not using webpack in any project.
Any suggestions on how to proceed with this?

umm.... I love reflux except it can't support HMR....
I still need to refresh page to get the new action and store...
Maybe @spoike  could see how Redux do it, i think it will be helpful.
I hope reflux can get this great feature in the future.
My English is not well, sorry~, lol~

Um... I doubt if it is Reflux issue at all.  If you are using webpack-dev-server, will stop the process and start again help at all ?  What does the compile message say ?

We have been using reflux on a few projects and just started using webpack hot reloading.
In order to make reflux stores play nicely with hot module reloading the following needs to happen on module.hot

Merge old Store's state into new store's state
Unsubscribe old store from any listeners in order to prevent memory leaks

During a hot swap, you have the opportunity to handle these kinds of cases via code like:
if (module.hot) {
    module.hot.accept(function() {
        // transfer old store state to new store state
    });
    module.hot.dispose(function() {
        // unsubscribe Store from any listeners
    });
}

I need to do further research into the webpack hot reload api to understand the specific implementation of accept/dispose for these purposes. I'm also not sure if this is possible in a generic implementation with the current reflux API unless there is a specific way that Store state is stored. For example we use Store.data to store the state but this is not a requirement of reflux.
It should also be possible to provide a generic webpack loader which can be applied to stores which automatically adds this hot reloading code to copy old state and remove old subscriptions during a hot reload.
References

https://webpack.github.io/docs/hot-module-replacement.html

Any updates about this topic ? @benglass @spoike

If some simple boilerplate code or a reflux extension can achieve this, I would personally prefer that over baking it into refluxjs or reflux-core itself.

For my purposes I've added some code to a library I'm building. I'm not sure if it will be relevant to vanilla-reflux, but it's doing this -
accept module at the store itself -> listen to old store from the new modified store.
so actions wil call oldStore, new store listens to the triggers, and triggers her own actions.
you can take a look.
this functionality is wrapped in a function, and every store file should also call it, maybe babel transform would have been cleaner.

Btw if you just add storeKeys to your components, HMR works perfectly
This also happens to be a really good pattern to follow in my opinion


Add Debug3dRenderer with FrustumShapeBuilder and BoxShapeBuilder

Debug3dRenderer allows to visualize camera in 3d space.
This pull request follows the #3856 pull request.
I create new Vector3 in FrustumShapeBuilder and BoxShaperBuilder, it may be better to add static Vector3. I wait for your comments.
@xoppa

Thanks, looks good. Missing the gwt necessities though?

Thanks for reviewing. I will add GWT stuff and apply your changes. What about Vector3 creation in XXShapebuilder? It will be called each frame @xoppa

Updated @xoppa

Thanks!

@js78 perhaps we should rename the class? Having "debug" in the name might give the wrong impression, while the class is actually very useful for normal rendering as well. For example it is practically the same as I did in this tutorial to merge the cards. What do you think about calling it ShapeCache or something alike?

When I created this class, it was just to render my cameras in 3d space. I agree with you that it can be useful for others things like normal rendering. Indeed we should rename it. ShapeCache seems good to me !

Ok, I've renamed it.


Issue with unzipping .zip file while running the application

I am quite new to flutter, just started today and installed flutter zip and was coding with Visual studio code and made a Hello World app.
When I run hello world app, it shows me an error pasted below:
E:\Flutter Projects\flutter_one>flutter run
Launching lib/main.dart on Lenovo A6000 in debug mode...
Initializing gradle...                                          /
Oops; flutter has exited unexpectedly: "Exit code 1 from: E:\Flutter Projects\flutter_one\android\gradlew.bat -v:
Deleting directory C:\Users\Tanay Gupta.gradle\wrapper\dists\gradle-4.1-all\bzyivzo6n839fup2jbap0tjew\gradle-4.1
Unzipping C:\Users\Tanay Gupta.gradle\wrapper\dists\gradle-4.1-all\bzyivzo6n839fup2jbap0tjew\gradle-4.1-all.zip to C:\Users\Tanay Gupta.gradle\wrapper\dists\gradle-4.1-all\bzyivzo6n839fup2jbap0tjew
Exception in thread "main" java.io.FileNotFoundException: C:\Users\Tanay Gupta.gradle\wrapper\dists\gradle-4.1-all\bzyivzo6n839fup2jbap0tjew\gradle-4.1\lib\native-platform-windows-i386-0.14.jar (The process cannot access the file because it is being used by another process)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at java.io.FileOutputStream.(FileOutputStream.java:162)
at org.gradle.wrapper.Install.unzip(Install.java:227)
at org.gradle.wrapper.Install.access$600(Install.java:27)
at org.gradle.wrapper.Install$1.call(Install.java:74)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)".
Sending crash report to Google.
Crash report sent (report ID: 69b217f9f2ec266d)
Crash report written to E:\Flutter Projects\flutter_one\flutter_07.log;
please let us know at https://github.com/flutter/flutter/issues.
I have also tried to download another zip file and unzip it manually but same error is popping up.
Please help me, I have a deadline to complete the project in 2 days.

flutter doctor command:
E:\Flutter Projects\flutter_one>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 10.0.17134.112], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK 28.0.0)
[√] Android Studio (version 3.1)
[!] VS Code, 64-bit edition (version 1.25.0)
[√] Connected devices (1 available)
! Doctor found issues in 1 category.

flutter doctor -v command:
E:\Flutter Projects\flutter_one>flutter doctor -v
[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 10.0.17134.112], locale en-US)
• Flutter version 0.5.1 at C:\flutter\flutter
• Framework revision c7ea3ca377 (6 weeks ago), 2018-05-29 21:07:33 +0200
• Engine revision 1ed25ca7b7
• Dart version 2.0.0-dev.58.0.flutter-f981f09760
[√] Android toolchain - develop for Android devices (Android SDK 28.0.0)
• Android SDK at C:\Users\Tanay Gupta\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
• All Android licenses accepted.
[√] Android Studio (version 3.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 26.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
[!] VS Code, 64-bit edition (version 1.25.0)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected devices (1 available)
• Lenovo A6000 • 3a14488 • android-arm64 • Android 5.0.2 (API 21)
! Doctor found issues in 1 category.

Could be caused by the space in the user name Tanay Gupta.gradle

Hello new to Flutter too. i have been trying to solve this issuer to no resolve...tried all possible solutions but still getting this
$ flutter install (or run)
Initializing gradle...
Oops; flutter has exited unexpectedly: "Exit code 1 from: C:\code\tinology\android\gradlew.bat -v:
Unzipping C:\Users\Tynoe.gradle\wrapper\dists\gradle-4.1-all\bzyivzo6n839fup2jbap0tjew\gradle-4.1-all.zip
to C:\Users\Tynoe.gradle\wrapper\dists\gradle-4.1-all\bzyivzo6n839fup2jbap0tjew
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:219)
at java.util.zip.ZipFile.(ZipFile.java:149)
at java.util.zip.ZipFile.(ZipFile.java:163)
at org.gradle.wrapper.Install.unzip(Install.java:214)
at org.gradle.wrapper.Install.access$600(Install.java:27)
at org.gradle.wrapper.Install$1.call(Install.java:74)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)".
Sending crash report to Google.
$ flutter doctor -v
[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 10.0.16299.125], locale en-US)
• Flutter version 0.5.1 at C:\flutter
• Framework revision c7ea3ca377 (2 months ago), 2018-05-29 21:07:33 +0200
• Engine revision 1ed25ca7b7
• Dart version 2.0.0-dev.58.0.flutter-f981f09760
[√] Android toolchain - develop for Android devices (Android SDK 28.0.1)
• Android SDK at C:\Android\Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.1
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
• All Android licenses accepted.
[√] Android Studio (version 3.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 27.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
[!] VS Code, 64-bit edition (version 1.25.1)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected devices (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 4.2.2 (API 17) (emulator)
! Doctor found issues in 1 category.
has anyone one came across such?

Closing as dup of #15721
Please upvote and follow there.


Consider CLA?

As a commercial open source project can this repo consider should contributors be considered to sign a CLA ？
e.g.
https://github.com/cla-assistant/cla-assistant

@hezyin Please take a look

@yihong0618 Thanks for bringing up the CLA issue. This is under our radar but probably will not get implemented in the short term to reduce the friction to contribute to Dev Lake.

Hi @yihong0618 , due to the fact that this project have already been donated to Apache,  CLA is a kind of  a must.
So, yes, we are not only consider, but also accepted!
Thanks for your proposal, closing it now.

cool


Kotlin

add kotlin support

Thank you. I noticed that the curly brace around the when body are not included. However, they are in the hierarchy above the when_subject, so the when_subject would be highlighted one level below the body, even though optically they are on the same level and the subject comes before the body. That's just weird.
How about this pattern instead?
(when_expression
  subject: (when_subject
    "(" @delimiter
    ")" @delimiter)
  "{" @delimiter
  "}" @delimiter @sentinel) @container

This would highlight both sets of delimiters at the same level. Does this make sense in Kotlin, or are there other cases where this would look wrong?

I think that makes sense. You want me to open another PR?

I totally forgot about that one:
when {
    1 == 1 -> print("1")
    else -> print("not")
}

It's OK, I have done it myself. I just needed confirmation from someone who knows Kotlin better.


Static properties should be excluded when using the ConstructorInitializedMemberAssertion

Currently the naming convention used by the ConstructorInitializedMemberAssertion is also applied to static fields and properties.
Most of the time those are either initialized inline or initialized by a class constructor.
Therefore I think those should be excluded when selecting the properties and fields to be asserted.
I might have overlooked something, but I consulted the code base and have found no way to avoid the situation.
For value types it is not uncommon to provide a null value. For example think about string.Empty.
Doing that for custom value types causes the ConstructorInitializedMemberAssertion to assume the field or property is initialized by an instance constructor.
Probably the GetPublicPropertiesAndFields method within the ConstructorInitializedMemberAssertion class needs to ignore static fields and properties.

Having a second look I see the following:
        private static IEnumerable<MemberInfo> GetPublicPropertiesAndFields(Type t)
        {
            return t.GetMembers(BindingFlags.Instance | BindingFlags.Public)
                .Where(m => m.MemberType.HasFlag(MemberTypes.Field) || m.MemberType.HasFlag(MemberTypes.Property));
        }

Now I am really confused: It only looks for instance members, but somehow it still pukes on static fields and properties :astonished:

Sorry for having 3 comments in a row, but I think the problem is within the IsMemberThatRequiresConstructorInitialization method. It should ignore static properties and fields.
If there is interest, then I can come up with a repro PR.

@Martin-Bohring thanks for reporting this!

Here a simple repo
class AutoFixtureIdiomsProblem
    {
        public static readonly AutoFixtureIdiomsProblem TheProblem = new AutoFixtureIdiomsProblem(0);

        public AutoFixtureIdiomsProblem(int someValue)
        {
            SomeValue = someValue;
        }

        public int SomeValue { get; private set; }
    }

    public sealed class AutoFixtureIdiomsProblemTests
    {
        public void ShouldInitializeFieldsAndProperties()
        {
            var fixture = new Fixture();

            var intializeFieldsAndPropertiesAssertion = new ConstructorInitializedMemberAssertion(fixture);

            intializeFieldsAndPropertiesAssertion.Verify(typeof(AutoFixtureIdiomsProblem));

        }
    }

Don't be fooled by the lack of test attributes. I am using Fixie as test framework and the tests are picked up by convention.
The test fails with the following exception:
Result StackTrace:
No constructors with an argument that matches the read-only field 'TheProblem' were found
at Ploeh.AutoFixture.Idioms.ConstructorInitializedMemberAssertion.Verify(FieldInfo fieldInfo)
at Ploeh.AutoFixture.Idioms.IdiomaticAssertion.Verify(FieldInfo[] fieldInfos)
at Ploeh.AutoFixture.Idioms.IdiomaticAssertion.Verify(Type type)
at Media.Domain.Tests.AutoFixtureIdiomsProblemTests.ShouldInitializeFieldsAndProperties() in C:\Users\MBO\Documents\GitHub\fixieSpec\Samples\Media.Domain.Tests\AutoFixtureIdiomsProblem.cs:line 26
Result Message:	Ploeh.AutoFixture.Idioms.ConstructorInitializedMemberException
So it is clearly the TheProblem field when things go wrong. Remove the field an all is well

I see, this certainly looks like a bug, do you intend to submit a PR to fix?

@adamchester
I skimmed the code base and feel confident to sbmit a PR. By I think there are more places like that. I will start with the problem at hand,


Updating connection parameter properties for setting Host URL

Updating connection parameter properties for setting Host URL.
This update is tested

Hello @HamshavathiM,
Congratulations, your PR is approved and merged. Please update your submission in ISV Studio by using the latest commit ID.
Let us know if you have any questions.


Fix dynamic import issue with type import

Fix #103

Yes, great catch. I forgot to test more complex scenarios. Happy to merge, but could you please run npm run format first?

Thanks a lot, Navin! It's in v2.2.4


Remove an one-off script that was accidentally merged via eth2 interop work

What was wrong?
See: https://github.com/ethereum/trinity/issues/1218#issuecomment-545907237 and the containing issue.
How was it fixed?
Remove a script we don't really need
Cute Animal Picture

as far as i know, this is a known failure for CI -- going ahead w/ merge


split out "save_recording" method and remove  now unknown progress_bar argument

The progress_bar argument should remain False because it is visually cluttering. At the very least, it should default to False but be editable by the user by providing it as an argument to play()


Back to dev

What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Going back to the development version.
Which issue(s) this PR fixes:

Fixes https://github.com/kubernetes-sigs/security-profiles-operator/issues/1562
Does this PR have test?
None

Special notes for your reviewer:
None
Does this PR introduce a user-facing change?

None

@kubernetes-sigs/security-profiles-operator-maintainers PTAL

/lgtm


Add command to cmd/wsl/powershell

What's the Problem?
Likely explore also have a command to open a folder by command.
Solution/Idea
Likely explore also have a command to open a folder by command.
Alternatives
Likely explore also have a command to open a folder by command.
Priorities

Capability
Priority

This proposal will allow developers to accomplish W
Must

This proposal will allow end users to accomplish X
Should

This proposal will allow developers to accomplish Y
Could

This proposal will allow end users to accomplish Z
Won't

Files Version
<IP_ADDRESS>
Windows Version
W11 22000.348
Comments
No response

Do you mean starting Files from command line? If so you can > files.exe some_directory

Do you mean starting Files from command line? If so you can > files.exe some_directory

yes

@maytinhdibo this way of opening files from the command line seems to start the app in the foreground and occupies the terminal session until you exit files again. It would be nice if it would start detached from the terminal session, just like explorer ..


Smooth animation on drop item

I love this one and using on my project, but I hope you can add smooth animation when we drop item, like this one.
http://chenglou.github.io/react-motion/demos/demo8-draggable-list/
Regards!

I'm going to close this issue as I don't have any plans to work on this in the near future, as I think it would be quite challenging to implement given the current implementation. If you feel strongly about this, PRs are welcome!

aw, I just came here to make the same request. Sad panda.


unable to subscribe Azure-trial with E5 account

Hi team,
This is a question on how we can subscribe to Azure trial with E5 account (follow the pre-req https://github.com/SAP-samples/btp-bridge-framework/blob/main/documentation/manual-setup/prerequisites.md#signup-for-an-azure-free-trial-subscription).
Understood that when create sandbox for MS developer program E5, there is an admin:

This admin account (i.e<EMAIL_ADDRESS>will have the teams admim to upload app and access the application teams-app.
Suggest that we use this account to subscribe Azure-trial in order to create Bot Service. However, I cannot use this account to subscribe:

please help to look into and share hints for this step.
Thank you,
_Thien

It's a little hard to say what might be going wrong here.
I would first rule out the following options:

If it is still not working, it might be possible there is a current issue with E5 accounts and Azure subscriptions. If that is the case, another email should work for creating the Azure account, as long as you have Active Directory privileges.
Best,
Alex

Thanks Alex. I found no way to register.


[BUG] insertMarkdown() doesn't work correctly when editing in "source" mode

[x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
[x] I have read the documentation and cannot find an answer.

Describe the bug
insertMarkdown() doesn't work correctly when editing in "source" mode with the diffSourcePlugin - specifically, any edits made in "source" mode will be undone, and the text will be inserted based on the last state from "rich-text" mode.
Reproduction
See https://codesandbox.io/p/sandbox/mdx-editor-base-forked-tzrt6v
To Reproduce

Click the toggle into source mode
Add some markdown
Click the "Insert Markdown" button
See that your changes are lost

Expected behavior
I would expect insertMarkdown() to behave the same way in "rich-text" and "source" mode.
Screenshots
N/A
Desktop (please complete the following information):

OS: Windows 11
Browser: Chrome

Additional context
N/A

@zjullion this is not implemented indeed. Happy to accept a PR.


Cannot enable device

On plugin config page, after disable shelly devices it's not possible to enable it again. On server log the devices are correctly discover but it cannot see it on "shelly" plugin config page

+1

+1


Add default user mode

Basic user-mode mapping

Would you mind adding a blurb to the README about this and what the bindings are? If the user mode is there, it stands to reason that users should know about it. 🙂

All set:

added blurb on README, and also noted requirements (update wording as you wish)
keep dap-evaluate in history

I may want to change the wording of the user mode docs in the README, but otherwise this should do fine.
One question, though, before I merge: this project's development mainly happens on Codeberg, and this Github project is primarily a mirror for visibility purposes. Since Codeberg doesn't (yet) have a Contributors view, would you mind me putting you in a "Contributors" section in the README?

Yes, please update the text as you see fit. And yes -- you may add me to "Contributors", there are a few other fixes/changes I am looking to implement. I can run them by you later, to see if you are OK with these. I'll create a ticket.
I don't have a Codeburg account, and hopefully I can continue with github for now, if you don't mind.

You can continue contributing with Github - that's not a problem. I have both Github and Codeberg as remotes pocally, so syncing them up is as simple as pulling from one remote and pushing to the other.
I'm at work at the moment, so I can't merge this right now, but I will when I get home.

Absolutely no rush. Honestly I've only invested time on this due to my joy for hacking and interest in kakoune. I'm pretty much saturated with work/screen time myself.


Wiki Scraping

Domain: Encyclopedia (Wikia)/various (Fandom wiki's)
~10m pages
~10 languages
Partially Moderated, Has some hate speech/noise
Would need to scrape the pages as there isn't a dump. There should be a URL parameter that allows one to get the wikitext version. These wikis will probably also have "talk" pages, those should be included.
Marked "done" on the sheet, need to get the code/dump from Adam
Fandom wikis are wikis created by users for information about things videogames, etc.

[ ] Wikia
[ ] Fandom Wikis

[ ] Example
[ ] Example Talk Pages

[ ] Ballotpedia (Encyclopedia about American Politics)
[ ] localwiki (Encyclopedia about "local knowledge" in the US)
[ ] Proofwiki

Not sure if the best way to vet this kind of thing, but it does seem like there is some stuff in fandom-wiki's that aren't really CC Licensed. For example, The Elder Scrolls Wiki has the full text for dialogue trees in them (example.
As these are written by Bethesda, I'm sure they aren't actually cc/by-sa which the wiki page says they are

Hi @blester125 !

Not sure if the best way to vet this kind of thing, but it does seem like there is some stuff in fandom-wiki's that aren't really CC Licensed. For example, The Elder Scrolls Wiki has the full text for dialogue trees in them (example.
As these are written by Bethesda, I'm sure they aren't actually cc/by-sa which the wiki page says they are

is this still a pressing issue? I'd be happy to try to read through some of this collected data and vet it for similar wholesale-lifted content / consider how to filter it if it is. Can't seem to find code or data for this source in a branch anywhere though.
If it's not the most pressing thing or you've got it handled, I'll check out another issue instead!

Can take a look. Atleast wikis listed here that are based on mediawiki should be able to reuse code from #51 .
The ones based on fandom have downloadable dumps. The others would require manual scraping, it seems.

How many wiki's are there that don't use mediawiki (and would need html scraping)?

OTOH the only large source of non-mediawiki wikis is wikidot, which actually uses its own markup etc. so should be treated separately. Does your scraper work with all the wikis you mentioned in https://github.com/r-three/licensed-pile/issues/7#issue-1980372542 and https://github.com/r-three/licensed-pile/issues/7#issuecomment-1804209709?

The large source ones are either wikidot or Fandom like wowpedia and wokiepedia ( I don't know if this is actually just mediawiki since it seems similar https://community.fandom.com/wiki/Help:Database_download)
Few wikis already have dumps.

Appropedia
Encyclopedia of Mathematics

The Internet Archive has an aggregate collection called WikiTeam, which was created and populated by ArchiveTeam and includes over 600,000 wikis as well as entire Wikifarms, i.e. Wiki hosting platforms featuring many small wikis, some of which have already been offline for years. See the ArchiveTeam documentation here: https://wiki.archiveteam.org/index.php/WikiTeam.
To filter for permissively licensed queries, you can this IA search query: licenseurl:(*\/by\/* OR *\/by-sa\/* OR *publicdomain*). The same query works across all IA collections, but in some collections the metadata field isn't really populated. The query for WikiTeam returns 325,246 permissively licensed results.

Ah, this is amazing. We should double check that this covers the wikis we know of. I guess one issue is that these scrapes are out-of-date, but we can use it as an easy fallback.

The WikiTeam scrapes are not necessarily out-of-date, the WikiTeam project is active and the IA collection was updated as late as two weeks ago: https://archive.org/details/wikiteam?tab=collection&sort=-date. Also, we can always use WikiTeam's dumping tool to scrape wikis which we want a recent dump of or which are not yet included in the WikiTeam collection to make our dumps compatible with the WikiTeam dumps. The great benefit of the WikiTeam collection, however, is that it also contains historical data, i.e. defunct and offline wikis!
The cherry on top is WikiIndex.org which is mentioned in the ArchiveTeam Wiki page for WikiTeam. WikiIndex is a meta-wiki which lists more than 20K+ wikis including the description, the used engine and license (sic!) for each wiki. Of course WikiIndex is also machine-readable through an API and there is a fairly recent WikiIndex dump from Sep 2023 uploaded to archive.org: https://archive.org/details/wiki-wikiindex.org-20230919.

Subsumed into https://github.com/r-three/common-pile/issues/82


404 error for stable docs

I tried to access the stable docs via the link on README file. I got 404 error.

I have not yet released the stable docs. To have the old docs you can look at release 0.3.14. I am recoding the library to be Julia v0.6 compliant. The docs will be updated once everything is stabilised.
Kind regards
Ben


[V4] Feat: Plugin replace regexp

Plugin replace options for RegExp.
Suggestion:
export type IPluginReplaceRegexpItem = {
  regexp: RegExp,
  replace: (match: string, ...groups: string[]) => string
}

export declare type IPluginReplaceProps = {
    [key: string]: string | number | IPluginReplaceRegexpItem;
};

Usage:
pluginReplace({
  "$foo": "bar",
  "thing": {
      regexp: /th([ia])ng/,
      replace: (match, g1) => { return g1 === "a" ? "dat thang" : "this thing"; }
  }
})

Found this does do regexp.
https://github.com/fuse-box/fuse-box/blob/169169effb779bd29931fdb5ec0f951b72516539/src/plugins/core/plugin_replace.ts#L10-L14
I still think this feature would be nice for being able to supply a non-string version of regexp.  Mostly this is just a docs issue (https://github.com/fuse-box/fuse-box/blob/master/docs/plugins/pluginReplace.md)

@SephReed the problem is safeRegex thingy here, it escapes $

Hmm... well, I think it might be nice to be able to pass an object then.  But first, I need to figure out how to do replace normally.

@SephReed do you think you can add those improvements?

@nchanged May take me a bit, but given I'm the only one asking for them, that should be okay.

Closed due to inactivity.


Quotes in parameters for template-tags are not escaped

Description
Double quotes in parameters for template-tags aren't escaped. Therefore the whole json (an environment or an body) becomes invalid.
To Reproduce
Steps to reproduce the behavior (this is just an example ... the bug also concerns other plugins):

Install insomnia-plugin-chance
Add template-tag "chance" to an JSON-request-body
Edit template-tag: select Type Pick One; leave Custom function empty; set Options to ["a", "b"]
Click Done
See the invalid JSON "Param1" : "{% chance 'pickone', '', '["a", "b"]' %}"

Expected behavior
The double quotes should be escaped.
The above example should look like this:  "Param1" : "{% chance 'pickone', '', '[\"a\", \"b\"]' %}"
Screenshots

Desktop:

OS: Windows 10
Installation Method: Installer.exe
App Version:

Related issues:
https://github.com/bbbco/insomnia-plugin-faker/issues/4

For template tags that need to handle a wide variety of user inputs (eg. quotes), an encoding option was added to the parameter option, which can be set to base64. If this option is added, the resulting tag will be something like this: "Param1" : "{% chance 'pickone', '', 'WyJhIiwgImIiXQ==' %}"
https://github.com/Kong/insomnia/blob/0b4c1eacec8e8ac5e4bf92e31958336650df7f0b/plugins/insomnia-plugin-response/index.js#L48
Please submit a PR or issue on the chance plugin repo. Specifying encoding: base64 will gracefully handle non-encoded values as well, so adding it isn't a breaking change.

Great!
This solution is much better, then escaping. Well done!
Thanks for the hint!


[T4A4][W14-B4] Low Jun Chen Marx

Create new "Printable" interface

Some comments added. Please close the PR after reading comments.


MINOR: Fix deserialization of abortedTransactions and lastStableOffset in FetchResponse

Thanks to Dong Lin for finding the lastStableOffset issue.

Thanks for the quick fix! LGTM.

Thanks for the patch! Merging to trunk.


feat: remove hard requirement on imagick

Auto choose GD if imagick is not available
Throws exception if neither are available

https://github.com/spatie/image/blob/4f84e8618dddd017409110ac3ebd779c6645626c/src/Image.php#L53

Yep, I was just thinking if your environment has GD but not Imagick, it would be nice to auto-fallback to GD instead of an exception.

I'm going to hold off this one for now. I think this might be a bit confusing for people who think they have Imagick installed (but they don't) and are surprised GD is used (which has subtle differences compared to Imagick).
I might change my mind on this later.

Totally understand, thanks for considering!

@freekmurze Unfortunately the imagick is not compatible with PHP 8.3 yet and because of that we can't upgrade our project to PHP 8.3

This is a Spatie problem because?

Since spatie/image required both GD and Imagick extension to be installed the composer throw error since we can't install imagick with PHP 8.3

Yeah, but it's something they should fix upstream.
I don't understand why, but it seems to be fixed already, just needs a new release.
For now, you cannot upgrade to 8.3, unless you build the extension yourself.

I think hard require both imagick and gd is not a good approach. what if I just want to use GD and ignore imagick?
even in V2 this extensions are not in package requirement:
https://github.com/spatie/image/blob/v2/composer.json
Since we support multiple drivers its up to users to install the required driver extensions and set it in the config file.

A sorry, now I know what you want to do.
Yeah, they could move it to dev, so it's not required.
You can choose a driver already, see my previous comment.

Also, if you use GD(no plan to use imagick) add this to your composer.json on config
"config": {
        "platform":{
            "ext-imagick": "3.7.0"
        },

Reading config files feels a bit out of scope for this package, but if you whip up a PR I'll take a look.


Param object trans head not ok

What package is the bug related to?
typedoc-plugin-markdown
Describe the issue
This is the test.ts code:
/**
 * The application constructor.
 * @param param - The initial parameters.
 * @param param.container - The dom element to render scene.
 * @param param.background? - The background.
 */
class App {
  constructor(param: {
    container: HTMLElement;
    background?: number | string | Number[];
  }) {}
}

Now the param not ok:
# Class: App

The application constructor.

## Param

The initial parameters.

## Param

The dom element to render scene.

## Param

The background.

But trans to html is ok:

TypeDoc configuration
{
    "$schema": "https://typedoc.org/schema.json",
    "plugin": ["typedoc-plugin-markdown"],
    "entryPoints": ["./*.ts"],
    "out": "./docs"
}

Expected behavior
# Class: App

The application constructor.

## Param: param

The initial parameters.

## Param: param.container

The dom element to render scene.

## Param: param.background

The background.

The comments need to be on the constructor (not the class):

The comments need to be on the constructor (not the class):

Got it. Thanks.


Update whatsapp 2.2126.11

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

https://wabetainfo.com/whatsapp-web-2-2126-11-whats-new/
Microsoft Reviewers: Open in CodeFlow

@ItzLevvie Now, please check, maybe I had got the new version early. It is now reflecting 2.2126.11

I think EXE has not been updated yet and the update is directly delivered to users who have WhatsApp Desktop installed.

Version's still the same as of today:

Can you please send your modified PRTest.ps1 here.

This has nothing to do with PRTest.ps1. PRTest.ps1 runs SandboxTest.ps1 which runs winget install -m %PathToVersion% in Sandbox.
This PR have the InstallerUrl and SHA256 of WhatsApp 2.2126.10 so its incorrect in all the ways which means you failed to do
[X] Have you tested your manifest locally with winget install --manifest <path>? as expected.
If your URL redirects you to the <IP_ADDRESS> installer it would fail because the Hash does not match.

Oh! I want PRTest.ps1 of Levvie because she has some modifications.
and since I got an update on WhatsApp Desktop, I have opened this PR, but now I realized that this update has been delivered directly and the EXE on the website has not been updated with the new version.

Oh! I want PRTest.ps1 of Levvie because she has done some modifications.

What kind of Modification would help you start doing quality control?..

And since I got an update on WhatsApp Desktop, I have opened this PR, but now I realized that this update has been delivered directly and the EXE on the website has not been updated with the new version yet.

Then you can close the PR, if there is a update wingetbot will catch it

Can you please send your modified PRTest.ps1 here.

It's open-source at https://github.com/ItzLevvie/winget-pkgs-validate-and-install.


EnsureHttps event handler

FYI :
La funzione
"private void EnsureHttps(WebView2 sender, WebView2NavigationStartingEventArgs args)"
segnala  l'errore CS0246; la stesura corretta è:
"private void EnsureHttps(WebView2 sender, CoreWebView2NavigationStartingEventArgs args)"

Dettagli del documento
⚠ Non modificare questa sezione. È necessaria per i collegamenti relativi ai problemi tra docs.microsoft.com ➟ GitHub.

ID: 87f61c26-2c48-2ec7-6e18-4aa181702b17
Version Independent ID: ddd9e9ec-0143-b45b-6e72-225f73d89212
Content: Getting started with WebView2 for WinUI apps - Microsoft Edge Development
Content Source: microsoft-edge/webview2/gettingstarted/winui.md
Product: microsoft-edge
Technology: webview
GitHub Login: @MSEdgeTeam
Microsoft Alias: msedgedevrel

Thank you for the feedback, and apologies for the delayed reply.
Looking at the docs, it seems like this issue was already fixed. So I'm closing the issue now.


Do not bind accessors in toplevel thunks to their thunks' names

In https://github.com/roc-lang/roc/pull/3352 an optimization to transform ra = .field into
ra = \#rcd -[ra]-> #rcd.field

rather than
__ra1 = \#rcd -[__ra1] -> #rcd.field

ra = LambdaSet { __ra1 }

was introduced. However, this optimization is not correct when ra = .field is defined as a toplevel thunk, for in such situations we
indeed want the thunk ra to return the lambda set it resolves to,
rather than repointing at itself.
Besides reverting this change, another option would be to convert
accessors into closures before translation of Can to IR. However, this
complicates the translation algorithm more than it already is, and I'd
like to avoid additional special-cases.
Closes https://github.com/roc-lang/roc/issues/4606

Oops, there is conflict that needs to be resolved before we can merge @ayazhafiz.


Demo

@nhusher Basically run through this when you get a sec: https://github.com/faradayio/tilesplash/blob/683144f8a95892081d7f446798fe7594c10a58ea/demo/README.md

You also need wget -- brew install wget

Holy oversights, batman. Thanks!


Feature/cplat 2022 11 01

ARM API Information (Control Plane)
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Azure 1st Party Service can try out the Shift Left experience to initiate API design review from ADO code repo.  If you are interested, may request engineering support by filling in with the form https://aka.ms/ShiftLeftSupportForm.
Changelog
Add a changelog entry for this PR by answering the following questions:

What's the purpose of the update?

[ ] new service onboarding
[x] new API version
[ ] update existing version for new feature
[ ] update existing version to fix swagger quality issue in s360
[ ] Other, please clarify

When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month.
When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.
By default, Azure SDKs of all languages (.NET/Python/Java/JavaScript for both management-plane SDK and data-plane SDK, Go for management-plane SDK only ) MUST be refreshed with/after swagger of new version is published. If you prefer NOT to refresh any specific SDK language upon swagger updates in the current PR, please leave details with justification here.

Contribution checklist (MS Employees Only):

[x] I commit to follow the Breaking Change Policy of "no breaking changes"
[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

Applicability: :warning:
If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

Change to data plane APIs
Adding new properties
All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

[x] Check this box if any of the following apply to the PR so that the label "ARMReview" and "WaitForARMFeedback" will be added by bot to kick off ARM API Review.  Missing to check this box in the following scenario may result in delays to the ARM manifest review and deployment.

Adding a new service
Adding new API(s)
Adding a new API version
-[ ] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit and then push new changes, including version updates, in separate commits. You can use OpenAPIHub to initialize the PR for adding a new version. For more details refer to the wiki.

[x] Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

[x] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If you have any breaking changes as defined in the Breaking Change Policy, request approval from the Breaking Change Review Board.
Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Additional details on the process and office hours are on the Breaking Change Wiki.
NOTE: To update API(s) in public preview for over 1 year (refer to Retirement of Previews)
Please follow the link to find more details on PR review process.

Hi, @grizzlytheodore, For review efficiency consideration, when creating a new api version, it is required to place API specs of the base version in the first commit, and push new version updates into successive commits. You can use OpenAPIHub to initialize the PR for adding a new version. For more details refer to the wiki. Or you could onboard API spec pipeline

Please follow this guide for review to continue, thanks

@zizw123  I followed the steps. First commit: add 2022-11-01 folder
bfdbd39
update readme, update version reference

@zizw123 I followed the steps written above and also what was explained by @rkmanda Please let me know if/where I did it wrong.
First commit: add 2022-11-01 folder bfdbd39 Second commit: update readme, update version reference 41b36c3
and all the following commits are updates for this release

Thanks, not sure why this is being flagged in the PR, added some minor comments, rest looks good

thank you ! @zizw123

/azp run

we will pursue all the modelValidation fixes outside of this release.
Either Swagger objects (not examples), or API responses will need to be updated, so we need to work with backend teams on this one which will delay this release significantly if we are to wait until they are all resolved.

/azp run

Approve the model validation issues for now. Author will open new PR to resolve them.
The suppression is adding suppression to api-version pattern in common.json of this RP. This swagger file only contains models therefore it is fine.


"/home/robertinho/public_html/wiki/inc/template.php on line 1805 dokuwiki mode_ tpl_readthedokus loggedIn notFound"

Hello,
I started using the Read the Dokus template. I'm running PHP 8.1 with the latest stable release (DokuWiki "Igor") and I'm receiving the following error message at the top of the popup page when opening the Media Uploader while editing a page:
/home/robertinho/public_html/wiki/inc/template.php on line 1805
dokuwiki mode_ tpl_readthedokus loggedIn notFound ">

I confirmed the warning messages. Seems like some messages were trimmed on your screen. Actually, I got this message.
Warning: Undefined variable $fullscreen in /Users/masaki/Projects/bitsmist.com/public/lib/exe/mediamanager.php on line 124
/Users/masaki/Projects/bitsmist.com/public/inc/template.php on line 1805

There are two warnings and both of them come from Dokuwiki itself, not the template. So the author of Dokuwiki is responsible for these.
The quick fix below suppress the warnings, but I'm not sure if it's correct.
lib/exe/mediamanager.php line 13-17
global $INPUT;
global $lang;
global $conf;

global $fullscreen;
// handle passed message

int/template.php fix line 1805

   (isset($INFO) && $INFO['exists']) ? '' : 'notFound',

   (isset($INFO['exists']) && $INFO['exists']) ? '' : 'notFound',

Hello,
Not sure what happened, maybe was your lasts Master commits (as I applied them at my Read the Dokus template), but the error seems to be fixed without applying your patches at my DokuWiki instance (as they didn't seem to be applied at the last DokuWiki source code commit right now). I only applied the https://github.com/splitbrain/dokuwiki/pull/3739 fix at my DokuWiki, but it didn't seem to be related to this issue.


Add tests for register and course info screen, updates to existing tests

Updated some of the existing tests. Added tests for register screen and course info screen.
cc @rohan-dhamal-clarice @aleffert @nasthagiri @shahidtamboli

:+1:

@aleffert  - I have updated the code as per comments.
I have also added new testcases for enrollment in offline mode.
Please review - @aleffert @rohan-dhamal-clarice @nasthagiri @shahidtamboli

:+1:


wrong markup for block elements?

@jgm,
I tried to add a class to a complete blockquote, such as in the following sample:
_a_{.dz}

> {.a}
>
> a
>
> a
>
> a
>
> a

But this only grants the class an an exclusive attribute to the first paragraph.
Is this really a a feature, or is it a bug?
Many thanks for your help.

You need to put the attribute in front of the element
{.a}
> a
>
> a


Make Memory calculations use MemAvailable

Current memory calculation doesn't factor in SReclaimable which is throwing my monitoring way off.
See this Stack Exchange thread for more information: https://unix.stackexchange.com/questions/261247/how-can-i-get-the-amount-of-available-memory-portably-across-distributions
Here is a cat /prod/meminfo from one of my cells running a recent ubuntu stemcell:
# cat /proc/meminfo
MemTotal:       35008180 kB
MemFree:          487816 kB
MemAvailable:   20913400 kB
Buffers:          249244 kB
Cached:          5064684 kB
SwapCached:       158628 kB
Active:         10974348 kB
Inactive:        7441132 kB
Active(anon):    7921056 kB
Inactive(anon):  5192512 kB
Active(file):    3053292 kB
Inactive(file):  2248620 kB
Unevictable:           4 kB
Mlocked:               4 kB
SwapTotal:      35013660 kB
SwapFree:       33981728 kB
Dirty:               652 kB
Writeback:             0 kB
AnonPages:      12975584 kB
Mapped:           341188 kB
Shmem:             12280 kB
Slab:           15754916 kB
SReclaimable:   15534604 kB
SUnreclaim:       220312 kB
KernelStack:       42960 kB
PageTables:        52744 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    52517748 kB
Committed_AS:   22939984 kB
VmallocTotal:<PHONE_NUMBER>7 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
HardwareCorrupted:     0 kB
AnonHugePages:  11448320 kB
CmaTotal:              0 kB
CmaFree:               0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      667520 kB
DirectMap2M:    34983936 kB

This has been merged.  Closing.


Corrected temperature field name

Field name for temperature is temp, as defined in iot central for each device template. Original code included used "temperature" which meant value was not recognised by iot central

@steve-farr : Thanks for your contribution! The author, @dominicbetts, has been notified to review your proposed change.

Hi @steve-farr - many thanks for the contribution.
In this article we create a template with a field called "temperature" which we reference in code using a field called "temperature", however you say that the field is not recognized by IoT Central - can you explain further? How is IoT Central not recognizing the field? Are you not seeing temperature telemetry on the Measurements page?

Hi @steve-farr - I haven't heard back from you in response to my follow up questions. I'm now going to proceed to close this PR. Feel free to reopen it with a response if you still think the change is needed.
Thanks, Dominic

#please-close


feat(models): adds knex and bookshelf config and movie object model

What:

Add Knex and Bookshelf to the repo.
Add 'Movie` Bookshelf model.

Why: Sets up the base for creating the /movies endpoint to work with the database.
@elnaz

LGTM

LGTM


Docs: Example use case and related service configuration examples

Include example use case and related service configuration examples that implement the use case
(infrastructure configuration, authentication service, address space plan, and address plans)

PR 3445


Godot 4.2+ Error importing 'file.blend'. Blender 4+

Tested versions

System information
Windows 10
Issue description
Godot 4.2+ Error importing 'file.blend'. Blender 4+
Steps to reproduce

Minimal reproduction project (MRP)

Please provide more information, this is not enough to do anything with

Blender version 4.0.2

This gives zero info, please provide more, if unable there's nothing we can do to help, please turn to the other community channels to help with this, this is not a support desk 🙂

It does, generally, but you aren't providing any details for investigating this, others have used blender 4 without problems


Helm Chart

Problem
It would be nice that there is a helm chart for knative operator.  Lots of companies make use of charts to install software into their clusters and an official chart is needed for this project.
Persona:
Which persona is this feature for?
Anyone using knative serving and/or eventing
Exit Criteria
A measurable (binary) test that would indicate that the problem has been resolved.
A chart is implemented.
Time Estimate (optional):
How many developer-days do you think this may take to resolve?
N/A.
Additional context (optional)
Add any other context about the feature request here.

Is the chart used to install operator only, or install knative components, like serving or eventing?

and configure them as well
My full support to @owenthereal

/reopen
Or are there any other open threads on getting Helm support for Knative we can fold this one into?
I wanted to quickly try this stack out for running some autoscaling deployments, but ended up having to hack all sorts of values in the manifests to get it to run in our small cluster.
Istio has helm charts ref, but knative.dev hosts custom Istio and Knative Istio controller manifests ref.
It would be much more convenient and maintainable to install the whole stack via helm (e.g. by default no networking layer, can enable one in helm values), probably with separate charts for CRDs.


Added C,C++,Java & Python Code for Manacher's Algorithm

🛠 Issue (Number)

Issue no #833
👨💻 Changes proposed

✔ Check List (Check all the applicable boxes)

[ ✔] My code follows the code style of this project.
[ ✔] This PR does not contain plagiarized content.
[ ✔] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers

Added C,C++,Java & Python code for Manacher's Algorithm under string file. All files are checked and giving the correct
output as expected.Kindly review the PR and merge it.
📷 Screenshots

Hello,
My name is Harshit Mishra, and I am a student at IIIT Una. I possess a strong understanding of data structures and algorithms and have the ability to write optimized code with explanatory comments. I kindly request to be assigned this issue.


Feature/add global shortcut using jnative

Testing global shortcut using JNative Hooks

✅Testing done with the users. All feature are working as expected


Update DJ Norman Herandez and Rafawl Manuel pictures for blogs

Changes

Updated image for DJ Norman Hernandez: src/assets/images/Artist_LiquidDreams_Norman.Hernandez.jpg
Updated image for DJ Rafael Manuel: src/assets/images/Artist_LiquidDreams_Rafael.Manuel.jpg

Purpose
This PR updates the profile images for DJs Norman Hernandez and Rafael Manuel, which will be used in the blog posts for the Liquid Dreams event. As requested in issue #5.

LGTM

LGTM, appreciate it !


Main pre release merge

This PR will merge sepal_pre_release into main.

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 96.89%. Comparing base (27c8069) to head (832a930).
Report is 61 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #926      +/-   ##
==========================================
+ Coverage   96.61%   96.89%   +0.27%
==========================================
  Files          39       39
  Lines        3903     3960      +57
==========================================
+ Hits         3771     3837      +66
+ Misses        132      123       -9

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