SyntaxError: Octal literals are not allowed in strict mode.

So im trying the classic 'Cars' example using brunel un a jupyter notebook and i got this error:
Javascript error adding output! SyntaxError: Octal literals are not allowed in strict mode. See your browser Javascript console for more details.
SyntaxError: Octal literals are not allowed in strict mode.     at OutputArea.append_javascript (outputarea.js:727)     at OutputArea.append_mime_type (outputarea.js:671)     at OutputArea.append_execute_result (outputarea.js:472)     at OutputArea.append_output (outputarea.js:310)     at OutputArea.fromJSON (outputarea.js:990)     at CodeCell.fromJSON (codecell.js:533)     at Notebook.fromJSON (notebook.js:2573)     at Notebook.load_notebook_success (notebook.js:2951)     at i (jquery.min.js:4)     at <anonymous>
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
brunel (2.3)
Google Chrome Versión 60.0.3112.113 (Build oficial) (64 bits)
Any ideas of what could be happening? If more info in needed ask for it.

It sounds like some javascript is being written with bad numeric formatting; I'll consider this as a defect and see what's up -- if you are able to attach the cars data set as a CSV file, that'd be good just to check out if it's an issue specific to notebooks.

Can you add the CSV file -- I think i need that to resolve this issue.

I'm experiencing the same problem - I tried to run the Cars using Jupyter example as described on:
https://dataplatform.ibm.com/analytics/notebooks/e70491d8-6a7c-4fd3-beaa-86d89cf9d9e7/view?access_token=16e99f8679ebce970a18364bcd5c76702d49865ea7d801e96d081a44b80ed4bc
Then I run a my local dataset and the problem persists - anytime I try to use numeric variable I get error:
Javascript error adding output!
SyntaxError: Octal literals are not allowed in strict mode.
See your browser Javascript console for more details.


Add ability to generate new tests only

When right clicking a class symbol and selecting 'generate tests' it will complain if any tests exist and ask for regeneration to happen. It could be modified such that any new tests are added to the test class in a non-destructive way.
This could be the default behaviour for generate tests, or we could add a new command 'generate new tests only'.

Implemented in v0.77


https://wichniow.ski/ is a 404

Does anyone know the owner of this site? We don't have any contact info, and from what I can get tell via git blame, the person no longer has a GitHub account. The site has been down for a couple of weeks now.
I'll leave this up for a week, and if there is no response, I'll remove it from the ring.

I think if you've been observing that it's been down, just remove it. There always a chance to add it back and this somehow enforces some activity within the ring too.

It's @wichniowski


Non-matching scratch.

The following scratch does not assemble with masmpsx, because it is missing the nop at 0xB4 (gte_SetRotMatrix on line 41): https://decomp.me/scratch/ycPYA
Compilers Tested:

PsyQ 3.5 (GCC 2.6.0 without maspsx) -> Matches
GCC 2.6.0 (with maspsx) ->Does not Match
GCC 2.6.3 (with maspsx) ->Does not Match

The issue is that the macro is injected and maspsx doesn't handle the fact there are multiple commands on a single line:
	lw	$18,4($2)
	lw	$20,40($2)
	lw	$19,44($2)
	lw	$2,20($2)

 #APP
	lw	$12, 0( $2 );lw	$13, 4( $2 );ctc2	$12, $0;ctc2	$13, $1;lw	$12, 8( $2 );lw	$13, 12( $2 );lw	$14, 16( $2 );ctc2	$12, $2;ctc2	$13, $3;ctc2	$14, $4
 #NO_APP

  #nop
	move	$2,$18

A fix would be to properly parse multiple statements on a single line, as maspsx should know to insert a nop here:
	lw	$2,20($2)
	nop; we need this because the next instruction reads from $2 (aka $v0)
	lw	$12, 0( $2 )


Alien Cake Addict panics in spooky way when cake is spawned on player

Bevy version
b6be8a5314e027a0b0f3ee48d04c14b52fe74676
Operating system & version
macOS
What you did
I played a lot of alien cake addict, but here's a shortcut:
    game.bonus.i = game.player.i; //rand::thread_rng().gen_range(0..BOARD_SIZE_I);
    game.bonus.j = game.player.j; //rand::thread_rng().gen_range(0..BOARD_SIZE_J);

What actually happened
thread 'main' panicked at 'Entity does not exist', /Users/robparrett/src/bevy-fork/crates/bevy_ecs/src/world/mod.rs:214:37
stack backtrace:
   0: rust_begin_unwind
             at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/panicking.rs:493:5
   1: core::panicking::panic_fmt
             at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/core/src/panicking.rs:92:14
   2: core::option::expect_failed
             at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/core/src/option.rs:1260:5
   3: core::option::Option<T>::expect
             at /Users/robparrett/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:349:21
   4: bevy_ecs::world::World::entity_mut
             at ./crates/bevy_ecs/src/world/mod.rs:214:9
   5: <bevy_ecs::system::commands::Insert<T> as bevy_ecs::system::commands::Command>::write
             at ./crates/bevy_ecs/src/system/commands.rs:322:9
   6: bevy_ecs::system::commands::CommandQueue::apply
             at ./crates/bevy_ecs/src/system/commands.rs:24:13
   7: <bevy_ecs::system::commands::CommandQueue as bevy_ecs::system::system_param::SystemParamState>::apply
             at ./crates/bevy_ecs/src/system/system_param.rs:447:9
   8: <(P0,P1,P2,P3) as bevy_ecs::system::system_param::SystemParamState>::apply
             at ./crates/bevy_ecs/src/system/system_param.rs:977:19
   9: <bevy_ecs::system::into_system::FunctionSystem<In,Out,Param,Marker,F> as bevy_ecs::system::system::System>::apply_buffers
             at ./crates/bevy_ecs/src/system/into_system.rs:161:9
  10: <bevy_ecs::schedule::stage::SystemStage as bevy_ecs::schedule::stage::Stage>::run
             at ./crates/bevy_ecs/src/schedule/stage.rs:689:21
  11: bevy_ecs::schedule::Schedule::run_once
             at ./crates/bevy_ecs/src/schedule/mod.rs:201:13
  12: <bevy_ecs::schedule::Schedule as bevy_ecs::schedule::stage::Stage>::run
             at ./crates/bevy_ecs/src/schedule/mod.rs:219:21
  13: bevy_app::app::App::update
             at ./crates/bevy_app/src/app.rs:58:9
  14: bevy_winit::winit_runner_with::{{closure}}
             at ./crates/bevy_winit/src/lib.rs:485:17
  15: <alloc::boxed::Box<F,A> as core::ops::function::FnMut<Args>>::call_mut
             at /Users/robparrett/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/boxed.rs:1335:9
  16: <winit::platform_impl::platform::app_state::EventLoopHandler<T> as winit::platform_impl::platform::app_state::EventHandler>::handle_nonuser_event
             at /Users/robparrett/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.24.0/src/platform_impl/macos/app_state.rs:71:9
  17: winit::platform_impl::platform::app_state::Handler::handle_nonuser_event
             at /Users/robparrett/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.24.0/src/platform_impl/macos/app_state.rs:173:21
  18: winit::platform_impl::platform::app_state::AppState::cleared
             at /Users/robparrett/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.24.0/src/platform_impl/macos/app_state.rs:331:13
  19: winit::platform_impl::platform::observer::control_flow_end_handler
             at /Users/robparrett/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.24.0/src/platform_impl/macos/observer.rs:135:13

I think this is probably due to a system ordering issue between spawn_bonus and move_player.
If the cake is spawned on top of the player, move_player immediately attempts to despawn_recursive an entity that hasn't actually been added yet.


Missing touchy

Error when running Shake build system:
* utils/compare_sizes/stage1/build/tmp/compareSizes.exe
* libraries/time/stage1/build/HStime-1.6.o
* libraries/time/stage1/build/Data/Time/Format/Locale.o
* libraries/base/stage1/build/Prelude.hi
* libraries/base/stage1/build/Prelude.o
* libraries/base/stage1/build/System/IO.hi
* libraries/base/stage1/build/System/IO.o
* libraries/base/stage1/build/Control/Exception/Base.hi
* libraries/base/stage1/build/Control/Exception/Base.o
* libraries/base/stage1/build/GHC/Exception.hi
* libraries/base/stage1/build/GHC/Exception.o
* libraries/base/stage1/build/Data/Typeable.hi
* libraries/base/stage1/build/Data/Typeable.o
* libraries/base/stage1/build/Data/Typeable/Internal.hi
* libraries/base/stage1/build/Data/Typeable/Internal.o
* libraries/base/stage1/build/GHC/Word.hi
* libraries/base/stage1/build/GHC/Word.o
* libraries/base/stage1/build/GHC/Read.hi
* libraries/base/stage1/build/GHC/Read.o
* libraries/base/stage1/build/Text/ParserCombinators/ReadP.hi
* libraries/base/stage1/build/Text/ParserCombinators/ReadP.o
* libraries/base/stage1/build/Control/Monad/Fail.hi
* libraries/base/stage1/build/Control/Monad/Fail.o
* libraries/base/stage1/build/GHC/IO.hi-boot
* libraries/base/stage1/build/GHC/IO.o-boot
user error (Development.Shake.cmd, system command failed
Command: inplace/bin/ghc-stage1.exe -hisuf hi -osuf o -hcsuf hc -static -hide-all-packages -no-user-package-db -this-package-key base-<IP_ADDRESS> -package-id ghc-prim-<IP_ADDRESS> -package-id integer-gmp-<IP_ADDRESS> -package-id rts -i -ilibraries/base/stage1/build -ilibraries/base/stage1/build/autogen -ilibraries/base -Ilibraries/base/stage1/build -Ilibraries/base/stage1/build/autogen -Ilibraries/base/include -IC:\Neil\ghc\libraries\integer-gmp\include -IC:/Neil/ghc/rts/stage1/build -IC:/Neil/ghc/includes -IC:/Neil/ghc/includes/dist-derivedconstants/header -optP-include -optPlibraries/base/stage1/build/autogen/cabal_macros.h -this-package-key base -XHaskell2010 -optP-DOPTIMISE_INTEGER_GCD_LCM -odir libraries/base/stage1/build -hidir libraries/base/stage1/build -stubdir libraries/base/stage1/build -rtsopts -H32m -O2 -c libraries/base/GHC/IO.hs-boot -o libraries/base/stage1/build/GHC/IO.o-boot
Exit code: 1
Stderr:
ghc-stage1.exe: could not execute: C:\Neil\ghc\inplace\lib/bin/touchy.exe
)

Running $ ./build.bat -j1 -VV inplace/lib/bin/touchy.exe I get told there is no rule to build touchy.
I copied touchy.exe from a packaged GHC and continued.

Windows 32bit

Confirmed. I use the same workaround, thanks for documenting the issue here.
I'm a bit confused why we need to build a separate program for this: GHC is supposed to be built in MSYS2, which does provide a standard touch. Can we ask GHC to use it instead?

I suggest copying the hack to start with, and later deciding if we can get away without it. Note that GHC ships touchy in the installed version, so it may have further uses later on.

I decided to fix this now, because this will likely also be an issue on appveyor (#110).

@ndmitchell Please test if the fix works for you.

Ahh, touchy is naughty:
Error when running Shake build system:
* inplace/lib/bin/touchy
* utils/touchy/stage0/build/touchy.o
* OracleQ (DependenciesKey ("utils/touchy/stage0/build/.dependencies","utils/touchy/stage0/build/touchy.o"))
* utils/touchy/stage0/build/.dependencies
* utils/touchy/stage0/build/touchy.c.deps
user error (Development.Shake.cmd, system command failed
Command: /usr/bin/clang -E -MM -Iutils/touchy/stage0/build -Iutils/touchy/stage0/build/autogen -MF utils/touchy/stage0/build/touchy.c.deps -MT utils/touchy/stage0/build/touchy.o -x c utils/touchy/touchy.c
Exit code: 1
Stderr:
utils/touchy/touchy.c:6:2: error: "Win32-only, the platform you're using is supposed to have 'touch' already."
#error "Win32-only, the platform you're using is supposed to have 'touch' already."

I need to build it only on Windows. Easy to fix.

Now tested on Windows and Linux (successful Travis build: https://travis-ci.org/snowleopard/shaking-up-ghc/jobs/100820663)

Works for me too.


merge from template-browser-ava

.github/workflows/update_package_lock.yml

chore: (on.schedule)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 79.334%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1032

Relevant Lines:
1288

💛  - Coveralls


Fix 659 - disallow constructors as extension members

This fixes https://github.com/Microsoft/visualfsharp/issues/659.
Constructors should not be allowed as extension members.  Using them has always given a warning during code generation and they have not been actually callable.  So giving an error is appropriate.

Upgrading from warning to error this is a breaking change.  Want to do it in Update 2,  or wait to Dev 15, I'm okay with the break, since error is the right thing (tm).  Can you add a test case pls.

The code being generated was broken and caused a crash if you try to call them. So I'm ok with giving an error.

Great, thanks for merging!


On debian/ubuntu configure fail

Hello !
On debian/ubuntu the "configure" script can not detect existence of:
// Define to 1 if you have the <sys/stat.h> header file.
#undef HAVE_SYS_STAT_H
// Define to 1 if you have the <sys/types.h> header file.
#undef HAVE_SYS_TYPES_H
I need to manually set then.

So where are your sys/stat.h and sys/types.h? On a sane system they are in /usr/include/sys/stat.h and /usr/include/sys/types.h

On my ubuntu 14.04 they are at: /usr/include/linux

Those are the kernel include files. I need the ones from libc.

/usr/include$ find . -name stat.h
./asm-generic/stat.h
./linux/stat.h
./x86_64-linux-gnu/asm/stat.h
./x86_64-linux-gnu/bits/stat.h
./x86_64-linux-gnu/sys/stat.h
/usr/include$ find . -name types.h
./asm-generic/types.h
./pci/types.h
./cairomm-1.0/cairomm/types.h
./linux/types.h
./gwenhywfar4/gwenhywfar/types.h
./x86_64-linux-gnu/asm/types.h
./x86_64-linux-gnu/bits/types.h
./x86_64-linux-gnu/sys/types.h
./netlink/types.h
./c++/4.9/parallel/types.h
./rpc/types.h
./webp/types.h
./wx-3.0/wx/types.h
./wx-2.8/wx/types.h

It seems that because we can have multilib 32/63 bits they are in $ARCH folder.

Yes, this is a recurring problem with Debian-based distros. This directory arrangement violates the linux filesystem hierarchy standard, but Debian does not really care. I submitted a request to change it, but I doubt it will happen in our lifetime. For now, I'm resigned to hardcoding the arch subdir in the search path.


calico-kube-controllers pod stuck in not Ready for 13 min

In a Kubernetes cluster created with Kops, replacing the master node(s) puts the calico-kube-controllers pod in not Ready state.
It recovers on its own after about 13 min, which is quite slow.
Deleting the pod, creates a new one that becomes ready instantly.
Expected Behavior

calico-kube-controllers should recover much faster than 13 min.
Current Behavior

calico-kube-controllers waits 13 min to recover.
Possible Solution

Simplest generic fix would be to add a liveness probe that automatically restarts the pod.
Steps to Reproduce (for bugs)

Create a simple Kubernetes cluster using Kops v1.17.1, using --networking=calico.
This should provide the steps: https://kops.sigs.k8s.io/getting_started/aws/.
Build the cluster:

$ kops update cluster --yes

Validate the cluster:

kops validate cluster --wait 15m

Replace the master node:

kops rolling-update cluster --yes --cloudonly --instance-group master-a --force`

Wait for a new master to be created and check the status of the calico-kube-controllers pod.

kubectl logs -f -n kube-system calico-kube-controllers-76bd59c54c-57j6r
2020-07-06 04:38:41.397 [INFO][1] main.go 88: Loaded configuration from environment config=&config.Config{LogLevel:"info", ReconcilerPeriod:"5m", CompactionPeriod:"10m", EnabledControllers:"node", WorkloadEndpointWorkers:1, ProfileWorkers:1, PolicyWorkers:1, NodeWorkers:1, Kubeconfig:"", HealthEnabled:true, SyncNodeLabels:true, DatastoreType:"kubernetes"}
W0706 04:38:41.398065       1 client_config.go:541] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
2020-07-06 04:38:41.398 [INFO][1] main.go 109: Ensuring Calico datastore is initialized
2020-07-06 04:38:41.409 [INFO][1] watchersyncer.go 89: Start called
2020-07-06 04:38:41.409 [INFO][1] main.go 183: Starting status report routine
2020-07-06 04:38:41.409 [INFO][1] main.go 368: Starting controller ControllerType="Node"
2020-07-06 04:38:41.409 [INFO][1] node_controller.go 130: Starting Node controller
2020-07-06 04:38:41.409 [INFO][1] watchersyncer.go 127: Sending status update Status=wait-for-ready
2020-07-06 04:38:41.409 [INFO][1] node_syncer.go 39: Node controller syncer status updated: wait-for-ready
2020-07-06 04:38:41.409 [INFO][1] watchersyncer.go 147: Starting main event processing loop
2020-07-06 04:38:41.416 [INFO][1] watchercache.go 291: Sending synced update ListRoot="/calico/resources/v3/projectcalico.org/nodes"
2020-07-06 04:38:41.416 [INFO][1] watchersyncer.go 127: Sending status update Status=resync
2020-07-06 04:38:41.417 [INFO][1] node_syncer.go 39: Node controller syncer status updated: resync
2020-07-06 04:38:41.417 [INFO][1] watchersyncer.go 209: Received InSync event from one of the watcher caches
2020-07-06 04:38:41.417 [INFO][1] watchersyncer.go 221: All watchers have sync'd data - sending data and final sync
2020-07-06 04:38:41.417 [INFO][1] watchersyncer.go 127: Sending status update Status=in-sync
2020-07-06 04:38:41.417 [INFO][1] node_syncer.go 39: Node controller syncer status updated: in-sync
2020-07-06 04:38:41.509 [INFO][1] node_controller.go 143: Node controller is now running
2020-07-06 04:38:41.509 [INFO][1] ipam.go 45: Synchronizing IPAM data
2020-07-06 04:38:41.541 [INFO][1] ipam.go 190: Node and IPAM data is in sync
2020-07-06 04:39:31.537 [INFO][1] ipam.go 45: Synchronizing IPAM data
2020-07-06 04:39:31.580 [INFO][1] ipam.go 281: Calico Node referenced in IPAM data does not exist error=resource does not exist: Node(ip-10-4-56-126.eu-west-1.compute.internal) with error: nodes "ip-10-4-56-126.eu-west-1.compute.internal" not found
2020-07-06 04:39:31.581 [INFO][1] ipam.go 137: Checking node calicoNode="ip-10-4-56-126.eu-west-1.compute.internal" k8sNode=""
2020-07-06 04:39:31.586 [INFO][1] ipam.go 177: Cleaning up IPAM resources for deleted node calicoNode="ip-10-4-56-126.eu-west-1.compute.internal" k8sNode=""
2020-07-06 04:39:31.586 [INFO][1] ipam.go 1166: Releasing all IPs with handle 'k8s-pod-network.cbee49f2bf9d3ae7c4633561ccab65a8a2390d1e47b39b8b1dc572e47e6261ea'
2020-07-06 04:39:31.603 [INFO][1] ipam.go 1480: Node doesn't exist, no need to release affinity cidr=<IP_ADDRESS>/26 host="ip-10-4-56-126.eu-west-1.compute.internal"
2020-07-06 04:39:31.603 [INFO][1] ipam.go 1166: Releasing all IPs with handle 'k8s-pod-network.29600955ba32b51269bf6e9db403a3abb4d854e0f57e8958e038a82f7021a596'
2020-07-06 04:39:31.618 [INFO][1] ipam.go 1480: Node doesn't exist, no need to release affinity cidr=<IP_ADDRESS>/26 host="ip-10-4-56-126.eu-west-1.compute.internal"
2020-07-06 04:39:31.618 [INFO][1] ipam.go 1166: Releasing all IPs with handle 'k8s-pod-network.afe9203ddad2fecf4a883fb3a778f8ebd2a9174ba6c0bc291914435ec6c0054d'
2020-07-06 04:39:31.634 [INFO][1] ipam.go 1480: Node doesn't exist, no need to release affinity cidr=<IP_ADDRESS>/26 host="ip-10-4-56-126.eu-west-1.compute.internal"
2020-07-06 04:39:31.634 [INFO][1] ipam.go 1166: Releasing all IPs with handle 'ipip-tunnel-addr-ip-10-4-56-126.eu-west-1.compute.internal'
2020-07-06 04:39:31.649 [INFO][1] ipam.go 1480: Node doesn't exist, no need to release affinity cidr=<IP_ADDRESS>/26 host="ip-10-4-56-126.eu-west-1.compute.internal"
2020-07-06 04:39:31.649 [INFO][1] ipam.go 1166: Releasing all IPs with handle 'k8s-pod-network.6330af27335563bada4a42b904340abde31da0fdb8b619339e295e3102ef1ddc'
2020-07-06 04:39:31.665 [INFO][1] ipam.go 1480: Node doesn't exist, no need to release affinity cidr=<IP_ADDRESS>/26 host="ip-10-4-56-126.eu-west-1.compute.internal"
2020-07-06 04:39:31.665 [INFO][1] ipam.go 1166: Releasing all IPs with handle 'k8s-pod-network.b7d1145f4e32b7fac254f5a38b332ff1304addb7928240109f9473d4bac7e9e1'
2020-07-06 04:39:31.680 [INFO][1] ipam.go 1480: Node doesn't exist, no need to release affinity cidr=<IP_ADDRESS>/26 host="ip-10-4-56-126.eu-west-1.compute.internal"
2020-07-06 04:39:31.736 [INFO][1] ipam.go 190: Node and IPAM data is in sync
2020-07-06 09:28:18.489 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:28:18.489 [ERROR][1] main.go 203: Failed to verify datastore error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:28:50.489 [ERROR][1] main.go 234: Failed to reach apiserver error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:29:10.489 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:29:10.489 [ERROR][1] main.go 203: Failed to verify datastore error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:29:42.490 [ERROR][1] main.go 234: Failed to reach apiserver error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:30:02.490 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:30:02.490 [ERROR][1] main.go 203: Failed to verify datastore error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:30:34.490 [ERROR][1] main.go 234: Failed to reach apiserver error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:30:54.491 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:30:54.491 [ERROR][1] main.go 203: Failed to verify datastore error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:31:26.491 [ERROR][1] main.go 234: Failed to reach apiserver error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:31:46.491 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:31:46.492 [ERROR][1] main.go 203: Failed to verify datastore error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:32:18.492 [ERROR][1] main.go 234: Failed to reach apiserver error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:32:38.492 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:32:38.492 [ERROR][1] main.go 203: Failed to verify datastore error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:33:10.493 [ERROR][1] main.go 234: Failed to reach apiserver error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:33:30.493 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:33:30.493 [ERROR][1] main.go 203: Failed to verify datastore error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:34:02.493 [ERROR][1] main.go 234: Failed to reach apiserver error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:34:22.494 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:34:22.494 [ERROR][1] main.go 203: Failed to verify datastore error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:34:54.494 [ERROR][1] main.go 234: Failed to reach apiserver error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:35:14.494 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:35:14.494 [ERROR][1] main.go 203: Failed to verify datastore error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:35:46.495 [ERROR][1] main.go 234: Failed to reach apiserver error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:36:06.495 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:36:06.495 [ERROR][1] main.go 203: Failed to verify datastore error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:36:38.495 [ERROR][1] main.go 234: Failed to reach apiserver error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:36:58.496 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:36:58.496 [ERROR][1] main.go 203: Failed to verify datastore error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:37:30.496 [ERROR][1] main.go 234: Failed to reach apiserver error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:37:50.497 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:37:50.497 [ERROR][1] main.go 203: Failed to verify datastore error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:38:22.497 [ERROR][1] main.go 234: Failed to reach apiserver error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:38:42.497 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:38:42.497 [ERROR][1] main.go 203: Failed to verify datastore error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:39:14.497 [ERROR][1] main.go 234: Failed to reach apiserver error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:39:34.498 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:39:34.498 [ERROR][1] main.go 203: Failed to verify datastore error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:40:06.498 [ERROR][1] main.go 234: Failed to reach apiserver error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:40:26.499 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:40:26.499 [ERROR][1] main.go 203: Failed to verify datastore error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:40:58.499 [ERROR][1] main.go 234: Failed to reach apiserver error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:41:18.499 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:41:18.499 [ERROR][1] main.go 203: Failed to verify datastore error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:41:50.500 [ERROR][1] main.go 234: Failed to reach apiserver error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:42:10.500 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:42:10.500 [ERROR][1] main.go 203: Failed to verify datastore error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:42:42.501 [ERROR][1] main.go 234: Failed to reach apiserver error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:43:02.501 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:43:02.501 [ERROR][1] main.go 203: Failed to verify datastore error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:43:34.501 [ERROR][1] main.go 234: Failed to reach apiserver error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:43:54.502 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:43:54.502 [ERROR][1] main.go 203: Failed to verify datastore error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:44:26.502 [ERROR][1] main.go 234: Failed to reach apiserver error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:44:46.502 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:44:46.502 [ERROR][1] main.go 203: Failed to verify datastore error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
2020-07-06 09:45:18.503 [ERROR][1] main.go 234: Failed to reach apiserver error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
W0706 09:45:31.822278       1 reflector.go:299] pkg/mod/k8s.io/client-go@v0.0.0-20191114101535-6c5935290e33/tools/cache/reflector.go:96: watch of *v1.Node ended with: an error on the server ("unable to decode an event from the watch stream: read tcp <IP_ADDRESS>:53668-><IP_ADDRESS>:443: read: no route to host") has prevented the request from succeeding
2020-07-06 09:45:31.822 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: read tcp <IP_ADDRESS>:53668-><IP_ADDRESS>:443: read: no route to host
2020-07-06 09:45:31.822 [ERROR][1] main.go 203: Failed to verify datastore error=Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: read tcp <IP_ADDRESS>:53668-><IP_ADDRESS>:443: read: no route to host
2020-07-06 09:45:32.826 [INFO][1] ipam.go 45: Synchronizing IPAM data
2020-07-06 09:45:32.844 [INFO][1] ipam.go 281: Calico Node referenced in IPAM data does not exist error=resource does not exist: Node(ip-10-4-54-58.eu-west-1.compute.internal) with error: nodes "ip-10-4-54-58.eu-west-1.compute.internal" not found
2020-07-06 09:45:32.844 [INFO][1] ipam.go 137: Checking node calicoNode="ip-10-4-54-58.eu-west-1.compute.internal" k8sNode=""
2020-07-06 09:45:32.849 [INFO][1] ipam.go 177: Cleaning up IPAM resources for deleted node calicoNode="ip-10-4-54-58.eu-west-1.compute.internal" k8sNode=""
2020-07-06 09:45:32.849 [INFO][1] ipam.go 1166: Releasing all IPs with handle 'ipip-tunnel-addr-ip-10-4-54-58.eu-west-1.compute.internal'
2020-07-06 09:45:32.864 [INFO][1] ipam.go 1480: Node doesn't exist, no need to release affinity cidr=<IP_ADDRESS>/26 host="ip-10-4-54-58.eu-west-1.compute.internal"
2020-07-06 09:45:32.864 [INFO][1] ipam.go 1166: Releasing all IPs with handle 'k8s-pod-network.bf8da93299c06bedff227fc91f4ef3e6193776c90f49fdd67ff23c0cbc8b582b'
2020-07-06 09:45:32.879 [INFO][1] ipam.go 1480: Node doesn't exist, no need to release affinity cidr=<IP_ADDRESS>/26 host="ip-10-4-54-58.eu-west-1.compute.internal"
2020-07-06 09:45:32.879 [INFO][1] ipam.go 1166: Releasing all IPs with handle 'k8s-pod-network.c6e7449430362a2b07b5a86fcb65302610b647e5f74e8770d50108d60bc2aa33'
2020-07-06 09:45:32.897 [INFO][1] ipam.go 1480: Node doesn't exist, no need to release affinity cidr=<IP_ADDRESS>/26 host="ip-10-4-54-58.eu-west-1.compute.internal"
2020-07-06 09:45:32.897 [INFO][1] ipam.go 1166: Releasing all IPs with handle 'k8s-pod-network.dc2c3a527c56bdd6cdd40436d679faa72ed066c3ad2e2f0c1dc4fa712b88d4c9'
2020-07-06 09:45:32.912 [INFO][1] ipam.go 1480: Node doesn't exist, no need to release affinity cidr=<IP_ADDRESS>/26 host="ip-10-4-54-58.eu-west-1.compute.internal"
2020-07-06 09:45:32.944 [INFO][1] ipam.go 190: Node and IPAM data is in sync
^C

kubectl describe pod calico-kube-controllers-76bd59c54c-57j6r -n kube-system | grep Events: -A 10
Events:
  Type     Reason     Age                 From                                               Message
  ----     ------     ----                ----                                               -------
  Warning  Unhealthy  37m                 kubelet, ip-10-4-57-46.eu-west-1.compute.internal  Readiness probe failed: Error reaching apiserver: taking a long time to check apiserver; Error verifying datastore: Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded
  Warning  Unhealthy  30m (x24 over 41m)  kubelet, ip-10-4-57-46.eu-west-1.compute.internal  Readiness probe failed: Error verifying datastore: Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded; Error reaching apiserver: Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded with http status code: 0
  Warning  Unhealthy  25m (x48 over 41m)  kubelet, ip-10-4-57-46.eu-west-1.compute.internal  Readiness probe failed: Error verifying datastore: Get https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default: context deadline exceeded; Error reaching apiserver: taking a long time to check apiserver

Context

Kops validates the cluster based on the status of the kube-system pods. This issue prevents the cluster from being upgraded without manual intervention and also slows it down.
Your Environment

Calico version: 3.13.4
Orchestrator version (e.g. kubernetes, mesos, rkt): Kubernetes 1.17.8
Operating System and version: Ubuntu 20.04
Link to your project (optional): https://github.com/kubernetes/kops

CC: @lwr20

@hakman do you happen to use a sticky service for the API server?

This is how the service looks on that cluster @fasaxc:
% kubectl describe service kubernetes

Name:              kubernetes
Namespace:         default
Labels:            component=apiserver
                   provider=kubernetes
Annotations:       <none>
Selector:          <none>
Type:              ClusterIP
IP:                <IP_ADDRESS>
Port:              https  443/TCP
TargetPort:        443/TCP
Endpoints:         <IP_ADDRESS>:443
Session Affinity:  None
Events:            <none>

<IP_ADDRESS>:443

Only one endpoint?  Shouldn't it have one per control-plane node?

This is a cluster with a single master.
Happens similarly in a cluster with 3 masters. In that case, all 3 would be in the list.

I think another user has identified the root cause here: https://github.com/projectcalico/libcalico-go/issues/1267

Nice! Thanks for the update.

I'm going to close this since we're tracking the root cause in https://github.com/projectcalico/libcalico-go/issues/1267

This link does not work https://github.com/projectcalico/libcalico-go/issues/1267
How to go about fixing this @hakman
This happened to us whenever our master got replaced

I am also not able to see the link

I'm going to close this since we're tracking the root cause in https://github.com/projectcalico/libcalico-go/issues/1267
@caseydavenport since the move to monorepo, what's the new link to this issue?

FWIW, this PR claims to fix https://github.com/projectcalico/libcalico-go/issues/1267https://github.com/projectcalico/libcalico-go/pull/1356

Yep, the underlying issue was fixed in Calico v3.18 and should be fixed in subsequent releases as well.
I can't seem to find the original GH issue link since it was migrated, but that was the fix.

This is a cluster with a single master. Happens similarly in a cluster with 3 masters. In that case, all 3 would be in the list.
Yep, the underlying issue was fixed in Calico v3.18 and should be fixed in subsequent releases as well.
I can't seem to find the original GH issue link since it was migrated, but that was the fix.

I have searched in vain to find that issue link since https://github.com/projectcalico/libcalico-go/issues/1267 moved to https://github.com/projectcalico/calico/issues (no 1267) in desperation reaching out to see if you remember what the fix was ...

https://github.com/kubernetes/client-go/issues/374 was the actual root cause, fixed by https://github.com/kubernetes/kubernetes/pull/95981.
On the Calico side the fix was to update kubernetes/client-go to v1.20.0+.

kubernetes/client-go#374 was the actual root cause, fixed by kubernetes/kubernetes#95981. On the Calico side the fix was to update kubernetes/client-go to v1.20.0+.

Thank you for your reply.  I debated posting this.  Bit embarrassed since I am new to k8s, unsure if would waste your time.  I am experiencing the

ERROR][1] client.go 272: Error getting cluster information config ClusterInformation="default" error=Get "https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default": context deadline exceeded
2022-06-29 01:11:48.762 [FATAL][1] main.go 124: Failed to initialize Calico datastore error=Get "https://<IP_ADDRESS>:443/apis/crd.projectcalico.org/v1/clusterinformations/default": context deadline exceeded

1 master and one worker, Ubuntu-AWS via kubeadm
Client Version: v1.23.1
Server Version: v1.23.1
GoVersion:"go1.17.5"  -client & master
calico ver 3.23.1
calico-kube-controller is running on worker node
I upgraded from 1.22.1-00 to 1.23.1-00 and on right after experienced this (since I have stopped instances twice) and researching probable fix last few days..w/o any success.

kube-system       calico-kube-controllers-685b65ddf9-pnqwp   0/1     CrashLoopBackOff   13 (4m47s ago)   48m
I have tried to edit timeOut values to 60 from1 on readiness and liveprobe to no avail.

I am sure you won't have time, is there a forum you could guide me to research?
Thank you in advance.

@fasaxc Much appreciate it sir, indeed you are correct I will pursue it on the slack channel.  Just for doc purpose, on further search, the issue on calico-node logs was address already used could not bind for both on master and worker.
TY to all of you.  Appreciate your time and knowledge when you guide newbies

Any update on the issue?

Thanks @hakman there is an issue already for the issue experiencing https://github.com/Azure/AKS/issues/2745

@joeybdub The AKS issue seems unrelated. Your best guess is still Slack where there may be someone more familiar with AKS that can help. Good luck!


depositories: extract a struct for HTTP routes rather than large argument lists

These methods were large and so let's trim them down with a common struct

Codecov Report

Merging #225 into master will decrease coverage by 4.31%.
The diff coverage is 50.98%.

@@            Coverage Diff             @@
##           master     #225      +/-   ##
==========================================
- Coverage    58.2%   53.88%   -4.32%
==========================================
  Files          31       31
  Lines        4280     4289       +9
==========================================
- Hits         2491     2311     -180
- Misses       1292     1507     +215
+ Partials      497      471      -26

Impacted Files
Coverage Δ

main.go
7.4% <0%> (-0.44%)
:arrow_down:

depositories.go
58.11% <53.84%> (ø)
:arrow_up:

microDeposits.go
62.99% <60%> (ø)
:arrow_up:

accounts.go
10.95% <0%> (-69.87%)
:arrow_down:

internal/database/mysql.go
10.66% <0%> (-50.67%)
:arrow_down:

ofac.go
38.65% <0%> (-35.3%)
:arrow_down:

internal/filetransfer/sftp.go
44.44% <0%> (-26.12%)
:arrow_down:

internal/filetransfer/config.go
55.11% <0%> (-0.79%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d222e7...89b086b. Read the comment docs.


Server initialization failed.

[Error - 18:10:50] Server initialization failed.
  Message: Request initialize failed with message: Can't find typescript.js or tsserverlibrary.js in /Users/a/.vscode/extensions/ms-vscode.vscode-typescript-next-5.1.20230421/extensions/node_modules/typescript/lib
  Code: -32603
[Error - 18:10:50] Vue Semantic Server client: couldn't create connection to server.
  Message: Request initialize failed with message: Can't find typescript.js or tsserverlibrary.js in /Users/a/.vscode/extensions/ms-vscode.vscode-typescript-next-5.1.20230421/extensions/node_modules/typescript/lib
  Code: -32603

Duplicate of #2663

I also encountered this problem


Re-enable some failing cross-plat

[x] Handle_ChangedConfigurationOutputPath_StartsWithNewPath
[x] Handle_ChangedConfigurationExternalToInternal_StopsWithoutRestarting
[x] Handle_MultipleProjects_StartedAndStopped

Taylor fixed all of these, and they are no longer skipped.


Add Endpoint Folder to script

$Endpoints = Foreach ($endpoint in $EndpointFolder)
{
. $endpoint.FullName
}

Pull request done


support for llama3 in autoquant

... would need vocab_type bpe, see here for illustration
https://colab.research.google.com/drive/1q1hTxLZOCRf9n0KdxSSu3tD0EI5QufrV?usp=sharing
(i also made a few adaptions for faster running for my use case)
thank you and keep up the great work!!

in the meanwhile, there is also a fix for the pretokenizer. i have included it in this Kaggle notebook. of course you can adapt it if you wish.

Sorry for the slow response, thanks a lot for opening this issue. I saw a lot of comments about issues with the tokenization in GGUF, so I don't know if it's the right time to update AutoQuant.
I like your improvements in the first notebook. Do you think I should transfer them or should I wait until the situation is fixed?


azcopy sync : Last modified timestamp doesn't get synced

Which version of the AzCopy was used?
10.11.0
Note: The version is visible when running AzCopy without any argument
Which platform are you using? (ex: Windows, Mac, Linux)
Linux
What command did you run?
azcopy sync 'https://testaccount1.blob.core.windows.net/data?sv=' 'https://testaccount2.blob.core.windows.net/data?sv='  --recursive
Note: Please remove the SAS to avoid exposing your credentials. If you cannot remember the exact command, please retrieve it from the beginning of the log file.
What problem was encountered?
The last modified timestamp on the target storage account is different from the source storage account. The last modified is set to the time when azcopy was run.
How can we reproduce the problem in the simplest way?

Create two storage accounts
Add some files to account 1
Run azcopy sync
Observe the last modified time in the target account.

Have you found a mitigation/solution?
No.

Hi @sukumarpatel ! AzCopy performs a one-way sync so the last modified time on the target account would be the current time. Here's the wiki for AzCopy sync: https://docs.microsoft.com/en-us/azure/storage/common/storage-ref-azcopy-sync. Please let me know if you have any questions!


[web]: Unable to run/build application in release mode

I have successfully ported my Flutter application to the web. In debug mode I do not get any errors though if I run the application in profile or release mode (or build it) I get the following network error:
Error while fetching an original source: NetworkError when attempting to fetch resource.
Source URL: org-dartlang-sdk:///sdk/lib/async/future_impl.dart

Logged as:
Error: js_helper.dart:1342:36
    wrapException js_helper.dart:1342
    call$0 async_patch.dart:693
    _microtaskLoop schedule_microtask.dart:43
    _startMicrotaskLoop schedule_microtask.dart:52
    call$1 async_patch.dart:51
    invokeClosure js_helper.dart:2017
    function main.dart.js:4082

But still, in debug mode it runs as expected.
Steps to Reproduce
My application's source code is available here: https://gitlab.com/testapp-system/testapp-flutter

Run flutter run -d web. Will work properly
Run flutter run -d web --release. Won't work

Expected results: A friendly login screen
Actual results: An empty screen
This may be similar to #46912 .

Logs
Flutter output
 flutter run -d web --release -v
[  +15 ms] executing: [/opt/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +18 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] a1fa1a3d261f5cee1e8dd2e7a67132f465054d83
[        ] executing: [/opt/flutter/] git describe --match v*.*.* --first-parent --long --tags
[   +9 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] v1.14.3-28-ga1fa1a3d2
[   +4 ms] executing: [/opt/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +4 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/master
[        ] executing: [/opt/flutter/] git ls-remote --get-url origin
[   +4 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +27 ms] executing: [/opt/flutter/] git rev-parse --abbrev-ref HEAD
[   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] master
[  +18 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +15 ms] executing: /home/jami/Android/Sdk/platform-tools/adb devices -l
[   +4 ms] Exit code 0 from: /home/jami/Android/Sdk/platform-tools/adb devices -l
[        ] List of devices attached
[  +13 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +87 ms] Found plugin share at /home/jami/.pub-cache/hosted/pub.dartlang.org/share-0.6.3+5/
[   +5 ms] Found plugin shared_preferences at /home/jami/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.6/
[        ] Found plugin shared_preferences_macos at
/home/jami/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+2/
[   +4 ms] Found plugin shared_preferences_web at
/home/jami/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+2/
[   +7 ms] Found plugin url_launcher at /home/jami/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.4.1/
[        ] Found plugin url_launcher_macos at /home/jami/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+1/
[   +1 ms] Found plugin url_launcher_web at /home/jami/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.0+2/
[   +1 ms] Found plugin webview_flutter at /home/jami/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.19+5/
[  +38 ms] Found plugin share at /home/jami/.pub-cache/hosted/pub.dartlang.org/share-0.6.3+5/
[        ] Found plugin shared_preferences at /home/jami/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.6/
[        ] Found plugin shared_preferences_macos at
/home/jami/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+2/
[   +1 ms] Found plugin shared_preferences_web at
/home/jami/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+2/
[   +4 ms] Found plugin url_launcher at /home/jami/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.4.1/
[        ] Found plugin url_launcher_macos at /home/jami/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+1/
[        ] Found plugin url_launcher_web at /home/jami/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.0+2/
[        ] Found plugin webview_flutter at /home/jami/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.19+5/
[  +27 ms] Generating
/home/jami/StudioProjects/testapp-flutter/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +53 ms] Launching lib/main.dart on Web Server in release mode...
[   +1 ms] Building application for the web...
[ +132 ms] Found plugin share at /home/jami/.pub-cache/hosted/pub.dartlang.org/share-0.6.3+5/
[        ] Found plugin shared_preferences at /home/jami/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.6/
[        ] Found plugin shared_preferences_macos at
/home/jami/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+2/
[   +1 ms] Found plugin shared_preferences_web at
/home/jami/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+2/
[   +3 ms] Found plugin url_launcher at /home/jami/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.4.1/
[        ] Found plugin url_launcher_macos at /home/jami/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+1/
[        ] Found plugin url_launcher_web at /home/jami/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.0+2/
[        ] Found plugin webview_flutter at /home/jami/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.19+5/
[   +9 ms] Found plugin share at /home/jami/.pub-cache/hosted/pub.dartlang.org/share-0.6.3+5/
[        ] Found plugin shared_preferences at /home/jami/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.6/
[        ] Found plugin shared_preferences_macos at
/home/jami/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+2/
[   +1 ms] Found plugin shared_preferences_web at
/home/jami/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+2/
[   +2 ms] Found plugin url_launcher at /home/jami/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.4.1/
[        ] Found plugin url_launcher_macos at /home/jami/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+1/
[        ] Found plugin url_launcher_web at /home/jami/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.0+2/
[        ] Found plugin webview_flutter at /home/jami/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.19+5/
[   +2 ms] Generating
/home/jami/StudioProjects/testapp-flutter/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[   +4 ms] Compiling lib/main.dart for the Web...
[   +7 ms] Initializing file store
[  +12 ms] Done initializing file store
[  +52 ms] invalidated build due to missing files:
/home/jami/StudioProjects/testapp-flutter/packages/flutter_tools/lib/src/build_system/targets/web.dart
[   +2 ms] web_entrypoint: Starting due to {InvalidatedReason.inputMissing}
[   +1 ms] web_entrypoint: Complete
[+1434 ms] dart2js: Starting due to {InvalidatedReason.inputChanged}
[+17779 ms] dart2js: Complete
[ +189 ms] web_release_bundle: Starting due to {InvalidatedReason.inputChanged}
[  +61 ms] web_release_bundle: Complete
[ +122 ms] web_service_worker: Starting due to {InvalidatedReason.inputChanged}
[  +82 ms] web_service_worker: Complete
[   +1 ms] Persisting file store
[   +5 ms] Done persisting file store
[  +11 ms] Compiling lib/main.dart for the Web... (completed in 19.8s)
[  +11 ms] Building application for the web... (completed in 19.9s)
[        ] lib/main.dart is being served at http://[::1]:46081
[        ] Warning: Flutter's support for web development is not stable yet and hasn't
[        ] been thoroughly tested in production environments.
[        ] For more information see https://flutter.dev/web
[        ] 🔥  To hot restart changes while running, press "r". To hot restart (and refresh the browser), press "R".
[        ] For a more detailed help message, press "h". To quit, press "q".
[+43610 ms] Application finished.
[  +18 ms] "flutter run" took 63,870ms.

Flutter analyze
  flutter analyze
Analyzing testapp-flutter...

   info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its
          instance fields aren't final: ClassScore.classId • lib/classScore.dart:12:7 • must_be_immutable
   info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its
          instance fields aren't final: JoinTestScoreTile.name • lib/classScore.dart:211:7 • must_be_immutable
   info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its
          instance fields aren't final: ResponsiveDrawerScaffold.body, ResponsiveDrawerScaffold.title,
          ResponsiveDrawerScaffold.appBarLeading, ResponsiveDrawerScaffold.appBarActions,
          ResponsiveDrawerScaffold.appBarBottom, ResponsiveDrawerScaffold.floatingActionButtonLocation,
          ResponsiveDrawerScaffold.floatingActionButton • lib/drawer.dart:178:7 • must_be_immutable
   info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its
          instance fields aren't final: EditClass.classData • lib/editClass.dart:10:7 • must_be_immutable
   info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its
          instance fields aren't final: StudentList.itemBuilder • lib/editClass.dart:238:7 • must_be_immutable
   info • Avoid empty statements • lib/editExercise.dart:82:59 • empty_statements
   info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its
          instance fields aren't final: EditJoinTest.testData • lib/editJoinTest.dart:14:7 • must_be_immutable
   info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its
          instance fields aren't final: Exercises.selectedExercises • lib/exercises.dart:11:7 • must_be_immutable
   info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its
          instance fields aren't final: ExercisesTabBody.selectedExercises • lib/exercises.dart:131:7 •
          must_be_immutable
   info • This method overrides a method annotated as @mustCallSuper in 'AutomaticKeepAliveClientMixin', but doesn't
          invoke the overridden method • lib/exercises.dart:193:10 • must_call_super
   info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its
          instance fields aren't final: TopicExerciseTile.exercises, TopicExerciseTile.selectedExercises •
          lib/exercises.dart:210:7 • must_be_immutable
   info • The value of the field 'optionStyle' isn't used • lib/login.dart:39:26 • unused_field
   info • Avoid using unnecessary statements • lib/randomTest.dart:125:21 • unnecessary_statements
   info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its
          instance fields aren't final: RandomBear.type, RandomBear.offset, RandomBear.scale • lib/style.dart:67:7 •
          must_be_immutable
   info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its
          instance fields aren't final: CenterProgress.label • lib/style.dart:97:7 • must_be_immutable
   info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its
          instance fields aren't final: TestScoreDetailTile.testId, TestScoreDetailTile.timestamp •
          lib/userScore.dart:153:7 • must_be_immutable
   info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its
          instance fields aren't final: TestScoreDetail.score, TestScoreDetail.testId, TestScoreDetail.timestamp •
          lib/userScore.dart:211:7 • must_be_immutable
   info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its
          instance fields aren't final: JoinTestTimer.time, JoinTestTimer.color • lib/writeTest.dart:152:7 •
          must_be_immutable
   info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its
          instance fields aren't final: ExerciseBox.data, ExerciseBox.selectedAnswers • lib/writeTest.dart:214:7 •
          must_be_immutable
   info • The getter doesn't override an inherited getter • lib/writeTest.dart:425:12 •
          override_on_non_overriding_member

20 issues found. (ran in 7.6s)

Flutter doctor
 flutter doctor -v
[✓] Flutter (Channel master, v1.14.4-pre.28, on Linux, locale en_US.UTF-8)
    • Flutter version 1.14.4-pre.28 at /opt/flutter
    • Framework revision a1fa1a3d26 (3 days ago), 2020-01-22 14:58:46 -0800
    • Engine revision 83a64b7233
    • Dart version 2.8.0 (build 2.8.0-dev.3.0 ef0c7f16e6)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /my/path/toAndroid/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /opt/android-studio-beta/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /usr/bin/chromium

[✓] Linux toolchain - develop for Linux desktop
    • clang++ 9.0.1
    • GNU Make 4.2.1

[✓] Android Studio (version 3.6)
    • Android Studio at /opt/android-studio-beta
    • Flutter plugin version 42.2.2
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] Connected device (3 available)
    • Linux      • Linux      • linux-x64      • Linux
    • Chrome     • chrome     • web-javascript • unknown
    • Web Server • web-server • web-javascript • Flutter Tools

• No issues found!

I also get this issue when I run my release app in web. Exact Error in the Browser Console:
Error while fetching an original source: NetworkError when attempting to fetch resource.
Source URL: org-dartlang-sdk:///sdk/lib/_internal/js_runtime/lib/js_helper.dart

A build with flutter build web --profile does only output: Compiling lib/main.dart for the Web...                  25.1s
I do not get any outputs other then the error above from the browser console.
I think this might be a cors problem.

I just looked in the Browser log of the debug App. It normally just worked, so I ignored it. It said:
cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.googleapis.com/identityto...

though. The error occurs when my code to login with google is called. I think that did not happen in debug, because debug ran on localhost. I don't know if this is a problem with Flutter or Firebase hosting.

After some research - my current state
Problem
I wrote an application in Flutter Web. When I run it in the Browser (debug), I get this error:
cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.googleapis.com/identityto...

When I run it in release mode, I just get this:
Error while fetching an original source: NetworkError when attempting to fetch resource.
Source URL: org-dartlang-sdk:///sdk/lib/_internal/js_runtime/lib/js_helper.dart

Other info

The App is hosted in Firebase Hosting but the error also occurs on localhost without Firebase
I think the Problem is cors in both cases but the release mode just has less logs

What I tried
According to this Documentation or this Question I have to add something using Expressjs like:
const express = require('express');
const cors = require('cors');
const app = express();
app.use(cors({ origin: true }));

Is there anything like Expressjs in Dart/Flutter?
Or is there another way to set the headers?

What more Information do you need to resolve this Issue?

@SteinFluss I guess it was you who contacted me...
My workaround
It's a problem of flutter run only. Means flutter build web [--release|--profile] is working properly. Even if it is an ugly workflow, you can just create release builds instead to be tested by a local web server, a XAMPP or Web Server for Chrome.
Anyway I would really like to see a fix.

It was me, thanks for the Reponse @JasMich . For me the problem still remains when I first build it and then run it on another Web Server (I tested deploying to Firebase Hosting and Python SimpleHTTP Server). This issue should be fixed before Flutter Web gets stable.

@SteinFluss Are you using the universal_io package?

No, should I be doing that?

Only if you provide the app for both the desktop and the web. Are you on the master channel?
If not, try:
flutter channel master
flutter upgrade

I am on the master channel. I do not want to provide a desktop version currently.

I am also not performing http requests manually. I am using the GoogleSignIn, FIrebaseAuth and CloudFirestore packages. (All on Versions that support Web).

@yjbanov do you have any idea on how to resolve this?

I have not stripped down my project to the bare minimum. It still fails. Maybe someone can reproduce the error. The code is here

I had absolutely no problem building you project. Maybe you should clean the dart cache and the project?

I just did. My problem is not building the project, but the execution. I get errors in the browser log.

I just checked and found out that the problem also occurs with the default app (built with just flutter create.

I have tested on multiple computers (different flutter installations)
I have deleted flutter and reinstalled
I have cleaned cache (project build cache and pub and dart cache)
The App can be built and run - the error is just in the console

Can you please provide the master channel revision and log output for the profile run of a fresh new app created using flutter create?

Also, can you please copy index.html from here and try it in your app? They seem to be different.

Flutter Version is: 1.15.4-pre.220
The log output from a new project with --profile:
flutter run -d web --web-port 5000 --profile -v
[  +12 ms] executing: [/home/user/bin/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +16 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 1cc8cc299b0f2f1c40ac2ad6e3522d129a502a16
[   +1 ms] executing: [/home/user/bin/flutter/] git describe --match v*.*.* --first-parent --long --tags
[  +10 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] v1.15.3-220-g1cc8cc299
[   +3 ms] executing: [/home/user/bin/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +2 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/master
[        ] executing: [/home/user/bin/flutter/] git ls-remote --get-url origin
[   +2 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter
[  +27 ms] executing: [/home/user/bin/flutter/] git rev-parse --abbrev-ref HEAD
[   +3 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] master
[  +14 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +12 ms] executing: /home/user/Android/Sdk/platform-tools/adb devices -l
[   +4 ms] Exit code 0 from: /home/user/Android/Sdk/platform-tools/adb devices -l
[        ] List of devices attached
[   +8 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +116 ms] Generating /home/user/tmp/web_test/web_test/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +34 ms] Launching lib/main.dart on Web Server in profile mode...
[  +43 ms] Generating /home/user/tmp/web_test/web_test/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[   +2 ms] Compiling lib/main.dart for the Web...
[   +8 ms] Initializing file store
[   +7 ms] Done initializing file store
[  +37 ms] invalidated build due to missing files: /home/user/tmp/web_test/web_test/packages/flutter_tools/lib/src/build_system/targets/web.dart
[   +2 ms] web_entrypoint: Starting due to {InvalidatedReason.inputMissing}
[   +1 ms] web_entrypoint: Complete
[+1412 ms] Skipping target: dart2js
[  +56 ms] Skipping target: web_release_bundle
[  +46 ms] Skipping target: web_service_worker
[        ] Persisting file store
[   +5 ms] Done persisting file store
[  +10 ms] Compiling lib/main.dart for the Web... (completed in 1.6s)
[        ] lib/main.dart is being served at http://localhost:5000
[   +2 ms] Warning: Flutter's support for web development is not stable yet and hasn't
[        ] been thoroughly tested in production environments.
[        ] For more information see https://flutter.dev/web
[        ] 🔥  To hot restart changes while running, press "r". To hot restart (and refresh the browser), press "R".
[        ] For a more detailed help message, press "h". To quit, press "q".

Browser Log: Nothing in the console just the error in the screenshot above. The new app works fine except that error.

When I run my "real" app though, I get this:
  When I click on the async_patch.dart:694, I can the error from the first Screenshot.

After some more trial and error, I got to the point where it only happens when I use the GoogleSignIn library in version 4.1.4. This is the browser log:
e | @ | js_helper.dart:1342
-- | -- | --
  | $0 | @ | async_patch.dart:693
  | aW2 | @ | schedule_microtask.dart:43
  | aWm | @ | schedule_microtask.dart:52
  | $1 | @ | async_patch.dart:51
  | aXW | @ | js_helper.dart:2017
  | (anonymous) | @ | js_helper.dart:2049
  | childList (async) |   |
  | $1 | @ | async_patch.dart:64
  | aIx | @ | async_patch.dart:29
  | avH | @ | zone.dart:1187
  | lp | @ | zone.dart:1401
  | bv | @ | future_impl.dart:555
  | cE | @ | future_impl.dart:42
  | ix | @ | future_impl.dart:40
  | $1 | @ | google_sign_in_web.dart:107
  | aFF | @ | js_helper.dart:1062
  | a7k | @ | core_patch.dart:85
  | aV4 | @ | js_patch.dart:542
  | (anonymous) | @ | js_patch.dart:520
  | (anonymous) | @ | cb=gapi.loaded_0:305
  | e.Sr | @ | cb=gapi.loaded_0:175
  | kk | @ | cb=gapi.loaded_0:178
  | fk | @ | cb=gapi.loaded_0:178
  | _.Qj.CU | @ | cb=gapi.loaded_0:178
  | Nj | @ | cb=gapi.loaded_0:169
  | Promise.then (async) |   |
  | Ij | @ | cb=gapi.loaded_0:169
  | _.Mj | @ | cb=gapi.loaded_0:169
  | gk | @ | cb=gapi.loaded_0:177
  | _.Qj.wh | @ | cb=gapi.loaded_0:176
  | (anonymous) | @ | cb=gapi.loaded_0:171
  | Ax.Re | @ | cb=gapi.loaded_0:305
  | (anonymous) | @ | cb=gapi.loaded_0:304
  | d | @ | cb=gapi.loaded_0:278
  | Dw.select | @ | cb=gapi.loaded_0:276
  | (anonymous) | @ | cb=gapi.loaded_0:278
  | _.h.V_ | @ | cb=gapi.loaded_0:235
  | (anonymous) | @ | cb=gapi.loaded_0:237

and again as not as ugly image:

/cc @vsmenon @jonahwilliams According the last stack trace it seems we're being called back from JS, but it's unclear what's going on in Dart. Can we make the stack trace more readable?
/cc @ditman Can you please take a look? This is google_sign_in_web.

@SteinFluss wrote:
[...]
I have not stripped down my project to the bare minimum. It still fails. Maybe someone can reproduce the error. The code is here
[...]

Your web/index.html is missing the body tag. This works:
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">

<body>
  <script src="main.dart.js" type="application/javascript"></script>
</body>

</html>

After some more trial and error, I got to the point where it only happens when I use the GoogleSignIn library in version 4.1.4.

@SteinFluss can you provide a repro case for this? Have you followed the "Web Integration" instructions for the google_sign_in_web package?

I have followed the integration instructions.
My current state is that it works under some circumstances:

There has to be a google user already logged into the browser
Sometimes browsers work, sometimes they don't - if they don't it sometimes helps to delete all browser data (does not always work, very hard to reproduce why)

The error is the same, I posted above
Here is my auth code:
void googleSignIn() async {
    FirebaseUser user = await FirebaseAuth.instance.currentUser();
    log.d('Init login');
    if (user != null) {
      log.d('alreadyLoggedIn');
    } else {
      log.d("not signed in");
      final GoogleSignIn _googleSignIn = GoogleSignIn();
      final FirebaseAuth _auth = FirebaseAuth.instance;
      GoogleSignInAccount googleUser;
      try {
        log.d("try silent sign in"); //gets called when failing
        googleUser = await _googleSignIn.signInSilently();
      } catch (e) {
        log.d("sign in normally"); //also gets called when failing
        googleUser = await _googleSignIn.signIn();
      }
      //todo fix error if google user is null
      final GoogleSignInAuthentication googleAuth =
          await googleUser.authentication;
      final AuthCredential credential = GoogleAuthProvider.getCredential(
        accessToken: googleAuth.accessToken,
        idToken: googleAuth.idToken,
      );
      user = (await _auth.signInWithCredential(credential)).user;
    }
    log.d('Logged in: ${user.displayName}');
  }

Quick comment here:
      try {
        log.d("try silent sign in"); //gets called when failing
        googleUser = await _googleSignIn.signInSilently();
      } catch (e) {
        log.d("sign in normally"); //also gets called when failing
        googleUser = await _googleSignIn.signIn();
      }

_googleSignIn.signInSilently() may not throw, and return a null user, when you're not authenticated (Source).
In order for your code to do what you expect, can you please try to call signInSilently with suppressErrors set to false?
That way it'll rethrow whatever exception comes from the actual web/native implementations and your program flow will do what you expect.

I just tried, it still does not pop up.

One last question @SteinFluss; can you share your current web/index.html?

sure, here it is:
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta content="IE=Edge" http-equiv="X-UA-Compatible">
    <meta name="description" content="A new Flutter project.">

    <!-- iOS meta tags & icons -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-title" content="wishlist">
    <link rel="apple-touch-icon" href="/icons/Icon-192.png">
    <link rel="manifest" href="/manifest.json">
    <!--flutter run -d chrome --web-hostname localhost --web-port 7357 -v-->
    <meta name="google-signin-client_id"
          content="409355265733-v3vhlv3j8rumln6plfhtkc99hrktg1au.apps.googleusercontent.com"/>
    <title>Wishlist</title>
</head>
<body>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.8.2/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.8.2/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.8.2/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.8.2/firebase-analytics.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.8.2/firebase-messaging.js"></script>

<script>
    if ('serviceWorker' in navigator) {
        window.addEventListener('load', function () {
            navigator.serviceWorker.register('/flutter_service_worker.js');
        });
    }
</script>

<script>
    // Your web app's Firebase configuration
    var firebaseConfig = {
        apiKey: "AIzaSyDOFSmEBUr0MdoRZ_nYA87qlWJh5TCVvd4",
        authDomain: "wishlist-7ea58.firebaseapp.com",
        databaseURL: "https://wishlist-7ea58.firebaseio.com",
        projectId: "wishlist-7ea58",
        storageBucket: "wishlist-7ea58.appspot.com",
        messagingSenderId: "409355265733",
        appId: "1:409355265733:web:7fdea3033f52c4470e72ac",
        measurementId: "G-FQ3MGSGSYV"
    };
    // Initialize Firebase
    firebase.initializeApp(firebaseConfig);
    // firebase.analytics();
</script>
<script src="main.dart.js" type="application/javascript"></script>
</body>
</html>

I'll try to repro the issue and keep this thread posted!

@SteinFluss I've debugged your app real quick, and the Uncaught Exception comes from Firebase with the following:
"code": "auth/argument-error"
"message": "credential failed: First argument "idToken" must be a valid string or a valid object or null."

I can't see what's the idToken you're attempting to use to create the Firebase auth. Can you check that value and see if it makes sense?

So, I changed my code to this for more logging:
  void googleSignIn() async {
    FirebaseUser user = await FirebaseAuth.instance.currentUser();
    log.d('Init login');
    if (user != null) {
      log.d('alreadyLoggedIn');
    } else {
      log.d("not signed in");
      final GoogleSignIn _googleSignIn = GoogleSignIn();
      final FirebaseAuth _auth = FirebaseAuth.instance;
      GoogleSignInAccount googleUser;
      try {
        log.d("try silent sign in");
        googleUser = await _googleSignIn.signInSilently(suppressErrors: false);
      } catch (e) {
        log.d("sign in normally");
        googleUser = await _googleSignIn.signIn();
      }
      if (googleUser == null) {
        log.d("google user is null");
      }
      log.d("user: " + googleUser?.displayName);
      final GoogleSignInAuthentication googleAuth =
          await googleUser.authentication;
      log.d("idToken:" + googleAuth.idToken);
      log.d("before acces token");
      log.d("accessToken: " + googleAuth.accessToken);
      log.d("after access token");
      final AuthCredential credential = GoogleAuthProvider.getCredential(
        accessToken: googleAuth.accessToken,
        idToken: googleAuth.idToken,
      );
      log.d("Try sign in");
      user = (await _auth.signInWithCredential(credential)).user;
    }
    log.d('Logged in: ${user.displayName}');
  }

Debug mode

It does pop up
I get this log

Init login js_primitives.dart:32:41
not signed in js_primitives.dart:32:41
try silent sign in js_primitives.dart:32:41
Another exception was thrown: Assertion failed: org-dartlang-sdk:///flutter_web_sdk/lib/_engine/engine/surface/surface.dart:986:12 8 js_primitives.dart:32:41
Another exception was thrown: Assertion failed: org-dartlang-sdk:///flutter_web_sdk/lib/_engine/engine/surface/surface.dart:986:12 28 js_primitives.dart:32:41
Content Security Policy: Ignoring “'unsafe-inline'” within script-src: ‘strict-dynamic’ specified
Another exception was thrown: Assertion failed: org-dartlang-sdk:///flutter_web_sdk/lib/_engine/engine/surface/surface.dart:986:12 js_primitives.dart:32:41
Content Security Policy: Ignoring “https:” within script-src: ‘strict-dynamic’ specified
Content Security Policy: Ignoring “http:” within script-src: ‘strict-dynamic’ specified
Another exception was thrown: Assertion failed: org-dartlang-sdk:///flutter_web_sdk/lib/_engine/engine/surface/surface.dart:986:12 2 js_primitives.dart:32:41
Another exception was thrown: Assertion failed: org-dartlang-sdk:///flutter_web_sdk/lib/_engine/engine/surface/surface.dart:986:12 6 js_primitives.dart:32:41
Another exception was thrown: Assertion failed: org-dartlang-sdk:///flutter_web_sdk/lib/_engine/engine/surface/surface.dart:986:12 18 js_primitives.dart:32:41
Another exception was thrown: Assertion failed: org-dartlang-sdk:///flutter_web_sdk/lib/_engine/engine/surface/surface.dart:986:12 14 js_primitives.dart:32:41
user: My Name js_primitives.dart:32:41
idToken:eyJhbGciOiJSUzI1NiIsImtpZCI6IjE3ZDU1ZmY0ZTEwOTkxZDZiMGVmZDM5MmI5MWEzM2U1NGMwZTIxOGIiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwiYXpwIjoiNDA5MzU1MjY1NzMzLXYzdmhsdjNqOHJ1bWxuNnBsZmh0a2M5OWhya3RnMWF1LmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiYXVkIjoiNDA5MzU1MjY1NzMzLXYzdmhsdjNqOHJ1bWxuNnBsZmh0a2M5OWhya3RnMWF1LmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwic3ViIjoiMTA2NTg1ODQ2MTczMDUwODA0MzgwIiwiZW1haWwiOiJrMW5naGVhcnRwbGV4QGdtYWlsLmNvbSIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJhdF9oYXNoIjoiTGFTRFJFWGQyeXloYkZBQWpmeElwQSIsIm5hbWUiOiJNeSBOYW1lIiwicGljdHVyZSI6Imh0dHBzOi8vbGgzLmdvb2dsZXVzZXJjb250ZW50LmNvbS9hLS9BT2gxNEdqS0dPNk9MeGIwWWxlTVRraTBFZFUwTi1yS1RuQUMzRUVJNTlWQj1zOTYtYyIsImdpdmVuX25hbWUiOiJNeSIsImZhbWlseV9uYW1lIjoiTmFtZSIsImxvY2FsZSI6ImRlIiwiaWF0IjoxNTgzNTc4Nzk5LCJleHAiOjE1ODM1ODIzOTksImp0aSI6IjViZTFmMWNiN2E4ZmVkNTI2NDQ0OTU4OTNhZmNkODI2ZTRhOTk2YzIifQ.Ancf8BfHlkcf9JfUpCbGLec7UQloHBA5TBiqJEMaGdJvCUlm-AP4ZAP2ZxCFJlW010OqjtzANiC5o2he-fqbgVp-0H4NjIUb4THQUlC6eBXWa50Sxti4nK-m0FNU2aLjTew7sqfm-js_primitives.dart:32:41
before acces token js_primitives.dart:32:41
Another exception was thrown: Assertion failed: org-dartlang-sdk:///flutter_web_sdk/lib/_engine/engine/surface/surface.dart:986:12 2 js_primitives.dart:32:41
Error: dart_sdk.js:5322:7
Another exception was thrown: Assertion failed: org-dartlang-sdk:///flutter_web_sdk/lib/_engine/engine/surface/surface.dart:986:12 767 js_primitives.dart:32:41

Release mode

It does not pop up
I get this log

Another exception was thrown: Instance of 'minified:bI<void>' js_primitives.dart:49
Another exception was thrown: Instance of 'minified:bI<void>' js_primitives.dart:49
Another exception was thrown: Instance of 'minified:bI<void>' 94 js_primitives.dart:49
current user is null... loading js_primitives.dart:49
Init login js_primitives.dart:49
not signed in js_primitives.dart:49
try silent sign in js_primitives.dart:49
unreachable code after return statement
main.dart.js:3:43
unreachable code after return statement
main.dart.js:3:47
Content Security Policy: Ignoring “'unsafe-inline'” within script-src: ‘strict-dynamic’ specified
Content Security Policy: Ignoring “https:” within script-src: ‘strict-dynamic’ specified
Content Security Policy: Ignoring “http:” within script-src: ‘strict-dynamic’ specified
Error: js_helper.dart:1342:36
    d js_helper.dart:1342
    $0 async_patch.dart:693
    aOE schedule_microtask.dart:43
    aOX schedule_microtask.dart:52
    $1 async_patch.dart:51
    aQA js_helper.dart:2017
    t main.dart.js:2801

So it seems signInSilently is not throwing anything that gets caught on web. Odd, but thanks for the repro case, I'll get to this ASAP.
In the meantime have you tried:
      if (googleUser == null) {
        log.d("google user is null");
        googleUser = await _googleSignIn.signIn();
      }

I know it should be handled in the catch, but just in case that unblocks you?

Yes, I tried that. As expected, this did not work either.

@ditman anything new on this?

flutter mobile number auth also not working for mobile web

@motorahul do you mean this?

Let's track this one in https://github.com/flutter/flutter/issues/52338


Incorrect result for multiplication with out of range int

Description:
$title
Steps to reproduce:
const num1 = -2;
const  num2 = -9223372036854775807;
const int ans = num1 * num2; // ans = -2

The spec did not mentioned about giving compile-time error for memory overflow.
A module-const-decl declares a compile-time constant. Then, we have to give compile-time error to fix this issue.
https://ballerina.io/spec/lang/2022R1/#section_8.8
https://ballerina.io/spec/lang/master/#section_6.23
const num1 = -1;
const num2 = -9223372036854775808;
const int ans = num2 / num1; // -9223372036854775808

This should also give memory overflow but it gives wrong value. So, the fix has to be done for Multiplicative expression

We'll have to handle these as such. We already have todos in these functions.
eg: https://github.com/ballerina-platform/ballerina-lang/blob/5c98c383499abcca611cd2eda52606b9eb596c30/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/ConstantValueResolver.java#L425


added voting system

still need to do implement frontend
need to figure out if getting mac address from client is possible
sort songs by vote count, doesn't let users vote twice for the same song, but changing upvote to downvote and vice-versa is allowed

@danbachar Awesome! Though since we are in the middle of a repository/package structure change I would hold off on the review/merge for now.


add VideoCore as a submodule in my app

hi  james:
i am using VideoCore as a submodule in my project, i setup the search path just like  SampleBroadcaster sample.
but after the setup, xcode told me there are two errors,
one is  "/Users/xiang/Work/kaiboapp/kaibo/videocore/rtmp/RTMPSession.cpp:22:10: 'videocore/rtmp/RTMPSession.h' file not found"
another is  "/Users/xiang/Work/kaiboapp/kaibo/videocore/sources/iOS/CameraSource.mm:23:10: 'videocore/sources/iOS/CameraSource.h' file not found"
how i can setup videocore properly？

Hi James,
I am using videocore library but I am not able to run the code. I followed the these steps.
1- I downloaded the code via cocoa pods.
2- Then I import public,boost folder into my project.
But There is many errors says like  #include <videocore/sources/iOS/GLESUtil.h> file not found
What I do in this case.
And I see all the file included in that pattern.
Can you please let me know how I will this library in my existing project.
Regards
Ravi

You need to open the .xcworkspace file that Cocoapods creates.
On Fri, Jul 24, 2015 at 1:42 AM, ravigautam7786<EMAIL_ADDRESS>wrote:

Hi James,
I am using videocore library but I am not able to run the code. I followed
the these steps.
1- I downloaded the code via cocoa pods.
2- Then I import public,boost folder into my project.
But There is many errors says like #include file not found
What I do in this case.
And I see all the file included in that pattern.
Can you please let me know how I will this library in my existing project.
Regards
Ravi
—
Reply to this email directly or view it on GitHub
https://github.com/jgh-/VideoCore/issues/12#issuecomment-124444480.

But I want to integrate this feature in my existing project. Then how I will do that?
Thanks

Cocoapods creates a workspace with your existing project and a Cocoapods
project.  I recommend checking the cocoapods documentation on how to use it.
On Fri, Jul 24, 2015 at 9:02 AM, ravigautam7786<EMAIL_ADDRESS>wrote:

But I want to integrate this feature in my existing project. Then how I
will do that?
Thanks
—
Reply to this email directly or view it on GitHub
https://github.com/jgh-/VideoCore/issues/12#issuecomment-124567370.

https://guides.cocoapods.org/using/using-cocoapods.html
On Fri, Jul 24, 2015 at 12:04 PM, james h<EMAIL_ADDRESS>wrote:

Cocoapods creates a workspace with your existing project and a Cocoapods
project. I recommend checking the cocoapods documentation on how to use it.
On Fri, Jul 24, 2015 at 9:02 AM, ravigautam7786<EMAIL_ADDRESS>wrote:

But I want to integrate this feature in my existing project. Then how I
will do that?
Thanks
—
Reply to this email directly or view it on GitHub
https://github.com/jgh-/VideoCore/issues/12#issuecomment-124567370.

—
Reply to this email directly or view it on GitHub
https://github.com/jgh-/VideoCore/issues/12#issuecomment-124567881.

--
Josh Lieberman
iOS Engineer at Applico
Columbia University Class of 2014
(914) 564 9051

Ok, but if I want to use this without cocoa pods then its possible. I want to really use this amazing library.

Please let me know.
Thanks

Please let me know how I will use it in my existing project without cocoa pods.

I given the header search path to $(SRCROOT) now videocore errors removed but now I have boost file not found like "#include <boost/tokenizer.hpp>
"

Hi,
I want to change video size at runtime while streaming video but I am able to do that. Please let me know how I can change video size at run time.
Thanks
Ravi

On 24-Jul-2015, at 9:34 pm, Josh Lieberman<EMAIL_ADDRESS>wrote:
https://guides.cocoapods.org/using/using-cocoapods.html
On Fri, Jul 24, 2015 at 12:04 PM, james h<EMAIL_ADDRESS>wrote:

Cocoapods creates a workspace with your existing project and a Cocoapods
project. I recommend checking the cocoapods documentation on how to use it.
On Fri, Jul 24, 2015 at 9:02 AM, ravigautam7786<EMAIL_ADDRESS>wrote:

But I want to integrate this feature in my existing project. Then how I
will do that?
Thanks
—
Reply to this email directly or view it on GitHub
https://github.com/jgh-/VideoCore/issues/12#issuecomment-124567370.

—
Reply to this email directly or view it on GitHub
https://github.com/jgh-/VideoCore/issues/12#issuecomment-124567881.

--
Josh Lieberman
iOS Engineer at Applico
Columbia University Class of 2014
(914) 564 9051
—
Reply to this email directly or view it on GitHub https://github.com/jgh-/VideoCore/issues/12#issuecomment-124567986.

@ravigautam7786  have you found the way videocore use without cocoapods ? if yes please let me know


Typo in Step 5: View the Pub/sub outputs

URL of the docs page

https://docs.dapr.io/getting-started/quickstarts/pubsub-quickstart/
How is it currently worded?

Notice, as specified in the code above, the publisher pushes a random number to the Dapr sidecar while the subscriber receives it.
How should it be worded?
Notice, as specified in the code above, the publisher pushes an order to the Dapr sidecar while the subscriber receives it.
Screenshots

Additional context

The numbers are not random, but 1 to 10.

@jhberge I presume your are referring to this. https://docs.dapr.io/getting-started/quickstarts/pubsub-quickstart/#step-5-view-the-pubsub-outputs
We will get this correct, or better still, would you like to get the credit for pushing a small PR? It is very easy to be a docs contributor now, just follow this video https://docs.dapr.io/contributing/docs-contrib/contributing-docs/

Ok, I will try myself. Thank you.😊
Fra: Mark Fussell @.>
Sendt: tirsdag 23. januar 2024 07:29
Til: dapr/docs @.>
Kopi: jhberge @.>; Mention @.>
Emne: Re: [dapr/docs] Typo in Step 5: View the Pub/sub outputs (Issue #3956)
@jhbergehttps://github.com/jhberge I presume your are referring to this. https://docs.dapr.io/getting-started/quickstarts/pubsub-quickstart/#step-5-view-the-pubsub-outputs
We will get this correct, or better still, would you like to get the credit for pushing a small PR? It is very easy to be a docs contributor now, just follow this video https://docs.dapr.io/contributing/docs-contrib/contributing-docs/
—
Reply to this email directly, view it on GitHubhttps://github.com/dapr/docs/issues/3956#issuecomment-1905370797, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIWJ3ZQILUO6JCXHGMDM3OLYP5KERAVCNFSM6AAAAABB4Z3OSGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBVGM3TANZZG4.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>


Operations queue

Implementation status:

[x] create
[x] init
[x] submit
[x] plot
[x] move operations queue deeper into the System (and not in the "top" level functions)
[x] legacy --dry-run option removed
[x] Fix the tests

Hi @v1kko this looks really nice! I was just wondering if it would be clearer to pass the function to call along with any arguments / keyword arguments instead of lambdas?
op_queue.add(
    action=system.copy_from_template,
    args=(template_drc, run_drc),
    kwargs={'kwarg1': 123},
    description=f'Copying template to {run_drc}'
)

Instead of:
op_queue.add(action=lambda run_drc=run_drc: system.copy_from_template(
    template_drc, run_drc),
    description=f'Copying template to {run_drc}')

Definitely! Also gets rid of the lambda resolving issue

@stefsmeets , what do you think, is this a better way to implement dry-runs et al.?

Cool! Seems to work well, but it's not entirely clear to me how this works.
From my understanding, this only works for functions that do not return anything right? So if they make changes to the file system or submit jobs that is fine. But if a function returns something that is needed by the next function this will no longer work.

Yes that is one downside of this system, because functions are delayed and put into a queue until the end of the program, there is nothing to return to. It would still be possible (but ill-advised) to return values through references in the arguments, which then could be picked up by the following functions in the queue (if they have the same reference as argument). Or just using global variables of course, that would work

I just realized I am just reinventing dask delayed https://docs.dask.org/en/stable/delayed.html 😅


Uncertain behavior of RegistrationSet in 5.10.3

When registrations of different types are assigned to the same bucket, we have an issue iterating same bucket entries.
Because of --i construction, 'i' variable is assigned not to the 'entry.Next', but to 'entry.Next - 1', so next step 'entry' is wrong.
It seems to work with 'i - 1 = 0' against '--i'
'--i' is good only for first value of 'i' with is assigned to '_buckets[bucket]'
For all next registrations -1 is already accounted at

Can't provide the UT, issue happens only when bucket collision occurs.

Is this how the latest unity behaves too?

Probably this issue has been fixed at and I can create my own build of 5.10.3 with this fix
https://github.com/unitycontainer/container/commit/4547902c8fbb0a6582415b027d62db680df036c8#diff-74ae561ce90c6573d43d690d6a0bd8e1

You should probably just upgrade. 5.10 was not particularly stable.


[TextInput][Android] Return on multiline input dismisses the keyboard

Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment:
OS:  macOS Sierra 10.12.6
Node:  8.6.0
Yarn:  1.1.0
npm:  5.4.2
Watchman:  4.9.0
Xcode:  Xcode 9.0 Build version 9A235
Android Studio:  2.3 AI-162.4069837
Packages: (wanted => installed)
react: 16.0.0-alpha.12 => 16.0.0-alpha.12
react-native: 0.48.4 => 0.48.4
Target Platform: Android (6.0.1)
Device: Galaxy Note 7 (Model number SM-N930V)
Steps to Reproduce
<TextInput
  ...
  multiline={true}
  ...
/>

Expected Behavior
The return key should create a new line for the user to continue typing.
Actual Behavior
Instead, it closes the keyboard (and never creates the new line).
Reproducible Demo
See Steps to Reproduce.

Workaround here: https://github.com/facebook/react-native/issues/12717#issuecomment-327001997
Deferring to that thread.


Continuous fuzzing with OSS-Fuzz?

Have you considered integrating the wasmi fuzz targets with OSS-Fuzz(https://github.com/google/oss-fuzz) to enable continuous fuzzing?
Given that there are existing fuzz targets defined, it should be relatvely straight-forward to integrate. See https://google.github.io/oss-fuzz/getting-started/new-project-guide/rust-lang/ for more info.

For now I do not want to support multiple different fuzz testers. We are fine with the default Rust/Cargo fuzz testing infrastructure with support from BytecodeAlliance's wasm-smith. Maybe in the future we may consider to have more different fuzzers. In that case I might reopen this issue or open yet another concrete issue.