Cannot follow the configuration example, please help

Versions:

zeromq-4.0.7 (also tried 4.1.2)
ffi-rzmq-2.0.4
ruby-2.0.0-p353
redis-2.8.4

The example: https://github.com/celluloid/dcell/wiki/Configuration
2.0.0-p353 :001 > require 'dcell'
 => true
2.0.0-p353 :002 > require 'dcell/registries/redis_adapter'
 => false
2.0.0-p353 :003 > registry = DCell::Registry::RedisAdapter.new :server => 'localhost'
 => #<DCell::Registry::RedisAdapter:0x00000001d88e60 @env="production", @namespace="dcell_production", @redis=#<Redis::Namespace:0x00000001d888e8 @namespace="dcell_production", @redis=#<Redis client v3.2.1 for redis://<IP_ADDRESS>:6379/0>, @warning=true, @deprecations=false>, @node_registry=#<DCell::Registry::RedisAdapter::NodeRegistry:0x00000001d88870 @redis=#<Redis::Namespace:0x00000001d888e8 @namespace="dcell_production", @redis=#<Redis client v3.2.1 for redis://<IP_ADDRESS>:6379/0>, @warning=true, @deprecations=false>>, @global_registry=#<DCell::Registry::RedisAdapter::GlobalRegistry:0x00000001d88848 @redis=#<Redis::Namespace:0x00000001d888e8 @namespace="dcell_production", @redis=#<Redis client v3.2.1 for redis://<IP_ADDRESS>:6379/0>, @warning=true, @deprecations=false>>>
2.0.0-p353 :004 > registry.set_global 'x', 12
 => false
2.0.0-p353 :005 > registry.get_global 'x' => 12
2.0.0-p353 :006 > registry.global_keys
 => ["x"]
2.0.0-p353 :007 > DCell.start :registry => registry
NoMethodError: undefined method `[]' for #<DCell::Registry::RedisAdapter:0x00000001d88e60>
        from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/dcell-0.16.1/lib/dcell.rb:55:in `block in setup'
        from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/dcell-0.16.1/lib/dcell.rb:46:in `synchronize'
        from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/dcell-0.16.1/lib/dcell.rb:46:in `setup'
        from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/dcell-0.16.1/lib/dcell.rb:114:in `start'
        from (irb):7
        from /usr/local/rvm/rubies/ruby-2.0.0-p353/bin/irb:12:in `<main>'

I cloned the repositore, checked out 0.16.1 git checkout tags/v0.16.1 and ran tests. They passed.
I also successfully ran ffi-rzmq tests, see in the end
~/sources/dcell > rake
/usr/local/rvm/rubies/ruby-2.0.0-p353/bin/ruby -S rspec ./spec/dcell/actor_proxy_spec.rb ./spec/dcell/celluloid_ext_spec.rb ./spec/dcell/directory_spec.rb ./spec/dcell/explorer_spec.rb ./spec/dcell/global_spec.rb ./spec/dcell/node_spec.rb ./spec/dcell/registries/mongodb_adapter_spec.rb ./spec/dcell/registries/redis_adapter_spec.rb ./spec/dcell/registries/zk_adapter_spec.rb
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's default settings.
Waiting for test node to start up.... done!

DCell::CellProxy
I, [2015-07-07T17:14:08.743196 #27131]  INFO -- : Connected to test_node
I, [2015-07-07T17:14:08.749647 #27153]  INFO -- : Connected to 706bccb4219d5b3c93f2e04e461fb63d44bd7987e40305da00ac20db47a09a9ebb038dc7b423c2f8137cc5dacb49ec7a7f96bc817a2c071e493c03180db4dfee
  makes synchronous calls to remote actors
  handles blocks
  makes future calls to remote actors
  linking
    links to remote actors
    unlinks from remote actors
E, [2015-07-07T17:14:08.964363 #27153] ERROR -- : Actor crashed!
RuntimeError: the spec purposely crashed me :(
        /home/user/sources/dcell/spec/test_node.rb:33:in `crash'
        /usr/local/rvm/gems/ruby-2.0.0-p353/bundler/gems/celluloid-21b8c5bd5e65/lib/celluloid/calls.rb:26:in `public_send'
        /usr/local/rvm/gems/ruby-2.0.0-p353/bundler/gems/celluloid-21b8c5bd5e65/lib/celluloid/calls.rb:26:in `dispatch'
        /usr/local/rvm/gems/ruby-2.0.0-p353/bundler/gems/celluloid-21b8c5bd5e65/lib/celluloid/calls.rb:63:in `dispatch'
        /usr/local/rvm/gems/ruby-2.0.0-p353/bundler/gems/celluloid-21b8c5bd5e65/lib/celluloid/cell.rb:60:in `block in invoke'
        /usr/local/rvm/gems/ruby-2.0.0-p353/bundler/gems/celluloid-21b8c5bd5e65/lib/celluloid/cell.rb:71:in `block in task'
        /usr/local/rvm/gems/ruby-2.0.0-p353/bundler/gems/celluloid-21b8c5bd5e65/lib/celluloid/actor.rb:357:in `block in task'
        /usr/local/rvm/gems/ruby-2.0.0-p353/bundler/gems/celluloid-21b8c5bd5e65/lib/celluloid/tasks.rb:57:in `block in initialize'
        /usr/local/rvm/gems/ruby-2.0.0-p353/bundler/gems/celluloid-21b8c5bd5e65/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
    traps exit messages from other actors

Celluloid extensions
  marshals Celluloid::CellProxy objects
  marshals Celluloid::Mailbox objects
  marshals Celluloid::Future objects

DCell::Directory
  stores node addresses
  presents all stored addresses
  clears node addresses

DCell::Explorer
I, [2015-07-07T17:14:09.140847 #27131]  INFO -- : Connected to 706bccb4219d5b3c93f2e04e461fb63d44bd7987e40305da00ac20db47a09a9ebb038dc7b423c2f8137cc5dacb49ec7a7f96bc817a2c071e493c03180db4dfee
I, [2015-07-07T17:14:09.169774 #27131]  INFO -- : 200 OK: /index.html
  reports the current node's status

DCell::Global
  can handle unexisting keys
  stores values
  stores the keys of all globals

DCell::Node
  finds all available nodes
  finds remote actors
  lists remote actors

DCell::Registry::MongodbAdapter
  behaves like a DCell registry
    node registry
      stores node addresses (PENDING: no mongodb)
      stores the IDs of all nodes (PENDING: no mongodb)
    global registry
      stores values (PENDING: no mongodb)
      stores the keys of all globals (PENDING: no mongodb)

DCell::Registry::RedisAdapter
  behaves like a DCell registry
    node registry
      stores node addresses
      stores the IDs of all nodes
    global registry
      stores values
      stores the keys of all globals

DCell::Registry::ZkAdapter
  behaves like a DCell registry
    node registry
      stores node addresses (PENDING: no zookeeper)
      stores the IDs of all nodes (PENDING: no zookeeper)
    global registry
      stores values (PENDING: no zookeeper)
      stores the keys of all globals (PENDING: no zookeeper)
    when one znode changes
      updates a node (PENDING: no zookeeper)
    when one znode is deleted
      deletes a node (PENDING: no zookeeper)

Pending:
  DCell::Registry::MongodbAdapter behaves like a DCell registry node registry stores node addresses
    # no mongodb
    # ./spec/support/registry_examples.rb:7
  DCell::Registry::MongodbAdapter behaves like a DCell registry node registry stores the IDs of all nodes
    # no mongodb
    # ./spec/support/registry_examples.rb:14
  DCell::Registry::MongodbAdapter behaves like a DCell registry global registry stores values
    # no mongodb
    # ./spec/support/registry_examples.rb:25
  DCell::Registry::MongodbAdapter behaves like a DCell registry global registry stores the keys of all globals
    # no mongodb
    # ./spec/support/registry_examples.rb:30
  DCell::Registry::ZkAdapter behaves like a DCell registry node registry stores node addresses
    # no zookeeper
    # ./spec/support/registry_examples.rb:7
  DCell::Registry::ZkAdapter behaves like a DCell registry node registry stores the IDs of all nodes
    # no zookeeper
    # ./spec/support/registry_examples.rb:14
  DCell::Registry::ZkAdapter behaves like a DCell registry global registry stores values
    # no zookeeper
    # ./spec/support/registry_examples.rb:25
  DCell::Registry::ZkAdapter behaves like a DCell registry global registry stores the keys of all globals
    # no zookeeper
    # ./spec/support/registry_examples.rb:30
  DCell::Registry::ZkAdapter behaves like a DCell registry when one znode changes updates a node
    # no zookeeper
    # ./spec/dcell/registries/zk_adapter_spec.rb:8
  DCell::Registry::ZkAdapter behaves like a DCell registry when one znode is deleted deletes a node
    # no zookeeper
    # ./spec/dcell/registries/zk_adapter_spec.rb:18

Finished in 1.71 seconds
33 examples, 0 failures, 10 pending
D, [2015-07-07T17:14:09.309500 #27131] DEBUG -- : Terminating 18 actors...
W, [2015-07-07T17:14:09.314736 #27131]  WARN -- : Terminating task: type=:call, meta={:method_name=>:run}, status=:zmqwait
        Celluloid::TaskFiber backtrace unavailable. Please try `Celluloid.task_class = Celluloid::TaskThread` if you need backtraces here.
W, [2015-07-07T17:14:09.315225 #27131]  WARN -- : Terminating task: type=:call, meta={:method_name=>:run}, status=:iowait
        Celluloid::TaskFiber backtrace unavailable. Please try `Celluloid.task_class = Celluloid::TaskThread` if you need backtraces here.
[Coveralls] Outside the CI environment, not sending data.
~/sources/dcell > irb
2.0.0-p353 :001 > require 'dcell'                                                => true
2.0.0-p353 :002 > require 'dcell/registries/redis_adapter'                       => false
2.0.0-p353 :003 > registry = DCell::Registry::RedisAdapter.new :server => 'localhost'
 => #<DCell::Registry::RedisAdapter:0x00000002f61240 @env="production", @namespace="dcell_production", @redis=#<Redis::Namespace:0x00000002f60c50 @namespace="dcell_production", @redis=#<Redis client v3.2.1 for redis://<IP_ADDRESS>:6379/0>, @warning=true, @deprecations=false>, @node_registry=#<DCell::Registry::RedisAdapter::NodeRegistry:0x00000002f60bd8 @redis=#<Redis::Namespace:0x00000002f60c50 @namespace="dcell_production", @redis=#<Redis client v3.2.1 for redis://<IP_ADDRESS>:6379/0>, @warning=true, @deprecations=false>>, @global_registry=#<DCell::Registry::RedisAdapter::GlobalRegistry:0x00000002f60bb0 @redis=#<Redis::Namespace:0x00000002f60c50 @namespace="dcell_production", @redis=#<Redis client v3.2.1 for redis://<IP_ADDRESS>:6379/0>, @warning=true, @deprecations=false>>>
2.0.0-p353 :004 > DCell.start :registry => registry                             NoMethodError: undefined method `[]' for #<DCell::Registry::RedisAdapter:0x00000002f61240>
        from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/dcell-0.16.1/lib/dcell.rb:55:in `block in setup'
        from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/dcell-0.16.1/lib/dcell.rb:46:in `synchronize'
        from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/dcell-0.16.1/lib/dcell.rb:46:in `setup'
        from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/dcell-0.16.1/lib/dcell.rb:114:in `start'
        from (irb):4
        from /usr/local/rvm/rubies/ruby-2.0.0-p353/bin/irb:12:in `<main>'
2.0.0-p353 :005 >

ffi-rzmq test log:
~/sources/ffi-rzmq > git checkout tags/release-2.0.4
Note: checking out 'tags/release-2.0.4'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at 33c1d0f... update to 2.0.3 and go into maintenance mode

~/sources/ffi-rzmq > bundle
Resolving dependencies...
Using rake (10.4.2)
Using diff-lcs (1.2.5)
Using ffi (1.9.10)
Using ffi-rzmq-core (1.0.3)
Using ffi-rzmq (2.1.0) from source at .
Using rspec-core (2.99.2)
Using rspec-expectations (2.99.2)
Using rspec-mocks (2.99.4)
Using rspec (2.99.0)
Using bundler (1.3.5)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
~/sources/ffi-rzmq > rake
/usr/local/rvm/rubies/ruby-2.0.0-p353/bin/ruby -S rspec ./spec/context_spec.rb .
/spec/device_spec.rb ./spec/message_spec.rb ./spec/multipart_spec.rb ./spec/nonb
locking_recv_spec.rb ./spec/poll_spec.rb ./spec/pushpull_spec.rb ./spec/reqrep_spec.rb ./spec/socket_spec.rb ./spec/util_spec.rb
...............create streamer device and running...
broke out of wait_for_device loop
device exited
.create streamer device and running...
broke out of wait_for_device loop
device exited
...........................................................................................................................................................................................................................................................................................................................................................................................................................................
Deprecation Warnings:

Continuing to use a test double after it has been reset (e.g. in a subsequent example) is deprecated. Called from /home/zhan/sources/ffi-rzmq/lib/ffi-rzmq/socket.rb:607:in `zmq_close'.

Using rspec-mocks doubles or partial doubles outside the per-test lifecycle (such as in a `before(:all)` hook) is deprecated. Called from /home/zhan/sources/ffi-rzmq/lib/ffi-rzmq/socket.rb:607:in `zmq_close'.

If you need more of the backtrace for any of these deprecations to
identify where to make the necessary changes, you can configure
`config.raise_errors_for_deprecations!`, and it will turn the
deprecation warnings into errors, giving you the full backtrace.

2 deprecation warnings total

Finished in 1.92 seconds
443 examples, 0 failures

Finally found the error in wiki, fixed it. https://github.com/celluloid/dcell/wiki/Configuration/_compare/3f36125f4738a57740a3ddf79af7168de78ce19e...f8b60d3570c174a27dd8f7455035595b07ad00a9

The example was for the master branch, so I'm reverting the wiki.


Consider adding a blessed basic environment to install with the Jupyter extension

As an alternative to ironing out all of the environment selection issues we could consider shipping some type of blessed basic environment with python + ipkernel + basic data science packages (numpy, pandas, matplotlib). This could be the default environment to use in general and then only advanced users would need to wade into the kernelspec / interpreter selection stuff. This might suit the usage of plenty of customers and help our initial run success rates.

We should discuss with Python, as they were considering doing something along these lines to help users out.

Closing for now as we have the option to create a new virtual environment and the plan is to drive users to use that option


pantheios 1.0.1 218 beta compile error

Hi,
With pantheios 1.0.1 218 beta, I always get the following error at the beginning of the build:
make build
Ensuring all STLSoft C source files are in UNIX format
Ensuring all Pantheios - and bundled library - C source files are in UNIX format
make: *** No rule to make target ../../include/pantheios/internal/generated/log_functions.inl', needed bycore.api.exitprocess.mt.debug.o'. Stop.
It looks the `../../include/pantheios/internal/generated/log_functions.inl' indeed is not there.
Is it pregenerated by some other build command?
Thanks

I got the same error trying to build using vc14.x64.
Worked around it by getting the file include/pantheios/internal/generated/log_functions.c from beta214 and copying it to include/pantheios/generated/log_functions.inl and adjusting the path names in the makefile and src/core/auto.cpp. This allows the library to build but some examples and tests still fail.

Don't really understand this one. There's just been a new release some moments ago and there'll be lots of activity over the coming months. Please let us know if this recurs (or any other issues). Closing this one now.


Add sslsnoop and ssllatency tools

Add sslsnoop and ssllatency tools for SSL/TLS handshake performance analysis.
Use case and background is described here: https://xutao323.github.io/2022/01/06/tls-acceleration-with-new-CPU.html

Thanks; I think these are useful tools, but I don't think they'll work for everyone without edits to library paths. They just error for me as the paths can't be found. These would be the only tools in bpftrace that failed to run for most users, and would create a lot of tickets for people asking why. For that reason I wouldn't include them as is, as it will just give a lot of people a bad experience.
I'm not sure what to do, but I've been thinking along a few of different lines:
A) Include them in an examples directory instead and not the tools directory, and make it clear that this isn't expected to work without edits. bcc has an examples directory. I'm not sure this will be enough, people will still try to run them and complain.
B) Rewrite these in bcc libbpf-tools, where you can include a lot of other logic to search for the correct library paths and have the tool make a best effort to automatically do ssl tracing for you.
C) Write this as a bash script that does the library and path checks, and finishes by invoking an embedded bpftrace program with the correct paths (or throws a better error message to say it can't find your ssl libraries). Programs that build programs are hard to debug and maintain, so my approach is to separate them as much as possible so it looks like this:
#!/bin/bash
...
bash logic
...
bpftrace -e '
...
bpftrace logic
...
'

So the tool source is in two halves, the top being bash and the bottom being bpftrace. A did this model years ago and maintaining it worked ok, for example: https://github.com/opendtrace/toolkit/blob/master/execsnoop

Thanks for the reiview and suggestions. I'll add patch checks for the new tools.
At first I found sslsniff in bcc-tools will trace system ssl library (libssl.so) and it can resolve the library path automatically, so I also added SSL_do_handshake() trace to show crypto overhead in sslsniff PR 3799. As bpftrace is simpler to write and modify, I added those extra crypto function traces in bpftrace here as sslsnoop.bt and ssllatency.bt.
I'll try the "C" approach to combine library patch check and bpftrace script.

Thanks; I think these are useful tools, but I don't think they'll work for everyone without edits to library paths. They just error for me as the paths can't be found. These would be the only tools in bpftrace that failed to run for most users, and would create a lot of tickets for people asking why. For that reason I wouldn't include them as is, as it will just give a lot of people a bad experience.

We don't have to specify the full path anymore so just doing 'u:libssl.so' should be enough :). We just haven't converted tools yet: #2075  it also has some caveats still: #2065

Thanks; I think these are useful tools, but I don't think they'll work for everyone without edits to library paths. They just error for me as the paths can't be found. These would be the only tools in bpftrace that failed to run for most users, and would create a lot of tickets for people asking why. For that reason I wouldn't include them as is, as it will just give a lot of people a bad experience.

We don't have to specify the full path anymore so just doing 'u:libssl.so' should be enough :). We just haven't converted tools yet: #2075 it also has some caveats still: #2065

Sounds great. Then system library path like libssl.so and libcrypto.so can be automatically resolved. And existing uprobe tracing tools with same problem can be converted too like gethostlatency and threadsnoop.
One question about non-default library or binary, if they don't exist yet on some system (some already have), like libcrypto_mb.so or qatengine.so in /lib64/engines-1.1/, can we just skip those uprobes and only trace remaining common funcitons in libssl.so or libcrypto.so ? Otherwise, I'll need to check path or remove non-default uprobes in the proposed new tools which is the main analysis target with TLS performance optimization.

The docker container we build might not have it. Can you try adding openssl to the packages to install? You can add it to docker/Dockerfile.focal and docker/Dockerfile.ubuntu-glibc

Embedded build test failed even after installed openssl-dev on alpine. I tried the docker build locally, and found it's a common ldconfig problem of alpine linux (ubuntu is fine). So lib name can't be resolved properly by ldconfig in alpine, it's suggested to apk add libc6-compat or gcompat. Shall we fix it here or open a new issue for it?
Test steps:

Build the docker alpine image according to the build log:

# docker build -t bpftrace-embedded-alpine -f docker/Dockerfile.alpine --build-arg bcc_ref= --build-arg BASE=alpine --build-arg LLVM_VERSION=9 --build-arg ALPINE_VERSION=3.11 docker/

Manually run test and it failed with no libs found:

# docker run --privileged -v $(pwd):$(pwd) -w $(pwd) --entrypoint /bin/bash bpftrace-embedded-alpine -c "/root/bpftrace/build-embedded/src/bpftrace /root/bpftrace/build-embedded/tools/ssllatency.bt"
/root/bpftrace/build-embedded/tools/ssllatency.bt:17-19: ERROR: uprobe target file 'libssl' does not exist or is not executable
...
/root/bpftrace/build-embedded/tools/ssllatency.bt:41-44: ERROR: uprobe target file 'libcrypto' does not exist or is not executable
...

Even the glibc example in manual failed due to same problem:

# docker run --privileged -v $(pwd):$(pwd) -w $(pwd) --entrypoint /bin/bash bpftrace-embedded-alpine -c "/root/bpftrace/build-embedded/src/bpftrace -e 'uprobe:libc:malloc { printf(\"Allocated %d bytes\n\", arg0); }'"
stdin:1:1-19: ERROR: uprobe target file 'libc' does not exist or is not executable
uprobe:libc:malloc { printf("Allocated %d bytes\n", arg0); }
~~~~~~~~~~~~~~~~~~
# docker run --privileged -v $(pwd):$(pwd) -w $(pwd) --entrypoint /bin/bash bpftrace-embedded-alpine -c "/root/bpftrace/build-embedded/src/bpftrace -e 'uprobe:/lib/libc.so.6:malloc { printf(\"Allocated %d bytes\n\", arg0); }'"
Attaching 1 probe...
Allocated 4 bytes
Allocated 8 bytes
Allocated 8 bytes
Allocated 48 bytes

Next:
Install the suggested libc6-compat or gcompat , so that ldconfig can work properly in alpine.

for the alpine one we should probably just skip it, alpine is always a pain.  I think we already have the code to skip it but I'd have to check

for the alpine one we should probably just skip it, alpine is always a pain. I think we already have the code to skip it but I'd have to check

Any update ? Thanks in advance.

#2156 is merged, so next step is to rerun the build tests ? if everything is ok, this new ssl/tls tool can be used like in bcc.

#2156 is merged, so next step is to rerun the build tests ? if everything is ok, this new ssl/tls tool can be used like in bcc.

You'll need to disable tests for the new tools on Alpine (similarly to #2181).

Could you please rebase onto master and remove all the unnecessary merge commits? Thanks!

Rebased onto most recent master and cleaned up the commits, please help to review, thanks.

any update? waiting for approval or any additional commennts need to be addressed? thanks.

@brendangregg the tools should now work for most of the systems, do you agree with merging this?

Sorry for the radio silence here. I think they're useful so lets just get them in. In the end they're only example tools we ship so we shouldn't make it too difficult, worst case we can delete them again.
Can you rabse to fix the few conflicts?


Fix/parse expression with expected types

WARNING:  This PR is still in progress and doesn't yet compile...
In this PR I want to try to change how arguments inside expressions are parsed. Before we first parse the arguments and then we try to search for a method that match the arguments. The problem of this approach is that in some cases we cannot parse the arguments without knowing what is the expected type.
For example in a case like:
list.Where(p => p.SomeMethod())

The paramenter p => p.SomeMethod() cannot be parsed without knowing the type of the list variable and the Where method signature.
The idea is that to instead check if each method is acceptable by parsing the arguments with the expected type, so for example in the above case parse the p => p.SomeMethod() knowin that we expect a Func<TSource,bool> predicate as a first argument ...
This change require to invert some logic and to pass within all the parse stack the expected return type (see expectedReturnType).
Also from now on I want to use typeof(Object) whenever we don't know the type instead of using typeof(void).
In particular I have changed these methods:  ParseLambdaInvocation, ParseDelegateInvocation and ParseMethodGroupInvocation.
PrepareDelegateInvoke has been deleted and replaced with FindInvokeMethod.
The goal is to also fix #185 .

I agree that the type inference for generic methods can be greatly improved! I like that you got rid of PrepareDelegateInvoke(Type type, ref Expression[] args): the fact that it changed the arguments list made it really difficult to test different candidates, which I encountered in ParseMethodGroupInvocation.
For reference, here's the C# specification on type inference : https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/expressions#type-inference
From what I read, I don't think it's necessary to pass the expected return type all the way down the stack, but instead try to infer the return type of the lambda expression (instead of forcing it from the method parameter type), and let the MethodHasPriority ensure that it's compatible with the caller.

@metoule  Thanks for your feedback.
Probably you are right. It is not necessary to pass the type in the whole stack ... but in that case I'm not sure how we can fix #185.
Probably for now it is better to abbandon this PR and just port the PrepareDelegateInvoke inside #186? And until we don't have a better solution use that one.
What do you think?

#186 should fix #185, even though it's not particularly elegant. I'll keep working on the type inference for a lambda expression return type because it's not really satisfying. In the meantime, porting PrepareDelegateInvoke is a good idea! I'll do that right away.


Improve selection behaviour on focus change

On windows, we persist the existing selection when focus
changes. On mac, the behaviour depends on whether or not there
was a click. If there was a click, we use the click to determine
the selection; otherwise we select the whole buffer.
In addition, on mac, we no longer draw the cursor if the selection
is not a caret.

fixes #1225 (again)

oops! note to self: I need a changelog for this.


Doesn't build on Debian Stretch

The README document doesn't contain any instructions for building so I assume running build.sh is the way to go.
Steps Taken
I used the microsoft/dotnet:2.0-sdk image for building. It has the .NET Core 2.0 SDK and so expected building to just work.

I cloned this repo to my local machine.
I switch the current directory (cd) to the working directory of the clone
I ran: docker run -t --rm -v $(pwd):/dotnet-script microsoft/dotnet:2.0-sdk /dotnet-script/build.sh

Expected Output
I expected the project to build successfully.
Actual Output
Instead, it fails for several reasons. The output from building in the container was:
/dotnet-script/build.sh: 3: /dotnet-script/build.sh: Bad substitution
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5065  100  5065    0     0   9418      0 --:--:-- --:--:-- --:--:--  9414
Downloading dotnet-script version 0.20.0...
/dotnet-script/build.sh: 8: /dotnet-script/build.sh: cannot create //build/dotnet-script.zip: Directory nonexistent
/dotnet-script/build.sh: 9: /dotnet-script/build.sh: unzip: not found
An error occured while downloading dotnet-script

Note that there is a bad substitution error on line 3 of build.sh:
https://github.com/filipw/dotnet-script/blob/4ab23d062edd150a76a953ff35da11fd5676eb96/build.sh#L3
Then it seems that unzip is required, which is not part of a basic distribution (which should be pointed out in build instructions) but never mind that. I installed it and tried to build using:
docker run -t --rm -v $(pwd):/dotnet-script microsoft/dotnet:2.0-sdk \
  bash -c "apt-get update && apt-get install unzip && /dotnet-script/build.sh"

The output was:
Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://security.debian.org stretch/updates InRelease [94.3 kB]
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:4 http://security.debian.org stretch/updates/main amd64 Packages [463 kB]
Get:5 http://deb.debian.org/debian stretch Release [118 kB]
Get:6 http://deb.debian.org/debian stretch-updates/main amd64 Packages [12.1 kB]
Get:7 http://deb.debian.org/debian stretch Release.gpg [2434 B]
Get:8 http://deb.debian.org/debian stretch/main amd64 Packages [9530 kB]
Fetched 10.3 MB in 8s (1163 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  zip
The following NEW packages will be installed:
  unzip
0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded.
Need to get 170 kB of archives.
After this operation, 547 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian stretch/main amd64 unzip amd64 6.0-21 [170 kB]
Fetched 170 kB in 0s (652 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package unzip.
(Reading database ... 12131 files and directories currently installed.)
Preparing to unpack .../unzip_6.0-21_amd64.deb ...
Unpacking unzip (6.0-21) ...
Processing triggers for mime-support (3.60) ...
Setting up unzip (6.0-21) ...
/dotnet-script/build.sh: 3: /dotnet-script/build.sh: Bad substitution
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5065  100  5065    0     0   9313      0 --:--:-- --:--:-- --:--:--  9310
Downloading dotnet-script version 0.20.0...
/dotnet-script/build.sh: 8: /dotnet-script/build.sh: cannot create //build/dotnet-script.zip: Directory nonexistent
unzip:  cannot find or open //build/dotnet-script.zip, //build/dotnet-script.zip.zip or //build/dotnet-script.zip.ZIP.
An error occured while downloading dotnet-script

So while unzip installed fine, the build script still failed with several errors as per the last three lines of the output. I noticed the strange double-slash in the download path for the zip (//build/dotnet-script.zip) and figured this was due to the substitution error in line 3. So retried by cd-ing into the project directory on the container before running the build, like this:
docker run -t --rm -v $(pwd):/dotnet-script microsoft/dotnet:2.0-sdk \
  bash -c "apt-get update && apt-get install unzip && (cd /dotnet-script; ./build.sh)"

This time, things progressed a bit further but build still failed due to compilation errors:
./build.sh: 3: ./build.sh: Bad substitution
/root/.nuget/packages/dotnet.build/0.2.9/contentFiles/csx/any/FileUtils.csx(20,9): error CS0103: The name 'ZipFile' does not exist in the current context
/root/.nuget/packages/dotnet.build/0.2.9/contentFiles/csx/any/Command.csx(12,17): error CS7069: Reference to type 'Component' claims it is defined in 'System.ComponentModel.Primitives', but it could not be found
/root/.nuget/packages/dotnet.build/0.2.9/contentFiles/csx/any/Command.csx(13,17): error CS7069: Reference to type 'Component' claims it is defined in 'System.ComponentModel.Primitives', but it could not be found
/root/.nuget/packages/dotnet.build/0.2.9/contentFiles/csx/any/BuildEnvironment.csx(33,37): error CS0103: The name 'RuntimeInformation' does not exist in the current context
/root/.nuget/packages/dotnet.build/0.2.9/contentFiles/csx/any/BuildEnvironment.csx(33,69): error CS0103: The name 'OSPlatform' does not exist in the current context
/root/.nuget/packages/dotnet.build/0.2.9/contentFiles/csx/any/Command.csx(39,17): error CS7069: Reference to type 'Component' claims it is defined in 'System.ComponentModel.Primitives', but it could not be found
/root/.nuget/packages/dotnet.build/0.2.9/contentFiles/csx/any/Command.csx(40,17): error CS7069: Reference to type 'Component' claims it is defined in 'System.ComponentModel.Primitives', but it could not be found
/root/.nuget/packages/dotnet.build/0.2.9/contentFiles/csx/any/Command.csx(41,17): error CS7069: Reference to type 'Component' claims it is defined in 'System.ComponentModel.Primitives', but it could not be found
/root/.nuget/packages/dotnet.build/0.2.9/contentFiles/csx/any/Command.csx(42,17): error CS7069: Reference to type 'Component' claims it is defined in 'System.ComponentModel.Primitives', but it could not be found
/root/.nuget/packages/dotnet.build/0.2.9/contentFiles/csx/any/BuildEnvironment.csx(39,35): error CS0103: The name 'RuntimeInformation' does not exist in the current context
/root/.nuget/packages/dotnet.build/0.2.9/contentFiles/csx/any/BuildEnvironment.csx(39,67): error CS0103: The name 'OSPlatform' does not exist in the current context
/root/.nuget/packages/dotnet.build/0.2.9/contentFiles/csx/any/BuildEnvironment.csx(45,33): error CS0103: The name 'RuntimeInformation' does not exist in the current context
/root/.nuget/packages/dotnet.build/0.2.9/contentFiles/csx/any/BuildEnvironment.csx(45,65): error CS0103: The name 'OSPlatform' does not exist in the current context
/root/.nuget/packages/dotnet.build/0.2.9/contentFiles/csx/any/Command.csx(65,17): error CS7069: Reference to type 'Component' claims it is defined in 'System.ComponentModel.Primitives', but it could not be found
/root/.nuget/packages/dotnet.build/0.2.9/contentFiles/csx/any/Command.csx(66,17): error CS7069: Reference to type 'Component' claims it is defined in 'System.ComponentModel.Primitives', but it could not be found

Additional Information
The result of running dotnet --info in the container using:
docker run -t --rm microsoft/dotnet:2.0-sdk dotnet --info

is the following:
.NET Command Line Tools (2.1.104)

Product Information:
 Version:            2.1.104
 Commit SHA-1 hash:  48ec687460

Runtime Environment:
 OS Name:     debian
 OS Version:  9
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /usr/share/dotnet/sdk/2.1.104/

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.6
  Build    : 74b1c703813c8910df5b96f304b0f2b78cdf194d

The output of running docker version is:
Client:
 Version:	17.12.0-ce
 API version:	1.35
 Go version:	go1.9.2
 Git commit:	c97c6d6
 Built:	Wed Dec 27 20:03:51 2017
 OS/Arch:	darwin/amd64

Server:
 Engine:
  Version:	17.12.0-ce
  API version:	1.35 (minimum version 1.12)
  Go version:	go1.9.2
  Git commit:	c97c6d6
  Built:	Wed Dec 27 20:12:29 2017
  OS/Arch:	linux/amd64
  Experimental:	true

The title of the issue should actually say Doesn't build on Debian Stretch not Doesn't build on Linux. We build on Ubuntu as part of the CI and release pipeline.
Also, building inside a docker container is not a supported scenario at the moment.

To recap:

I opened #253 to address the bash issue. this fixes the substitution, there is also no need to install unzip separately
I spun off #254 from this issue. dotnet-script uses dotnet-script to build itself and the underlying issue for your build failure is that there are missing runtime assemblies
For full building experience you will need Mono too


Entering "9" on TextFormField throws exception on Windows

Steps to Reproduce

Create a very basic TextFormField in a Sliverlist
Run it targeting Windows (desktop)
Type "9" (just the number 9) in the input field and an assertion gets thrown.  Type any other number and it is fine. It happens the number is typed, you don't have to press enter.  Happens regardless of the way you enter into the field, mouse or touch (touchscreen) into it.

Target Platform: Windows
Target OS version/browser: v1909
Devices: Running on SurfaceBook 2
Logs

[  +22 ms] executing: [C:\src\flutter\flutter\] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +53 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] e768c92fbc6cf8bf4e1814ef950a6092bbb6f658
[        ] executing: [C:\src\flutter\flutter\] git describe --match v*.*.* --first-parent --long --tags
[  +51 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] v1.13.5-44-ge768c92fb
[   +8 ms] executing: [C:\src\flutter\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[  +38 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/master
[        ] executing: [C:\src\flutter\flutter\] git ls-remote --get-url origin
[  +34 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +80 ms] executing: [C:\src\flutter\flutter\] git rev-parse --abbrev-ref HEAD
[  +37 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] master
[  +43 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.
[   +5 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.
[   +1 ms] 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.
[  +44 ms] executing: C:\Users\mandy\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[  +26 ms] Exit code 0 from: C:\Users\mandy\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[        ] List of devices attached
[  +15 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.
[   +8 ms] 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.
[  +62 ms] More than one device connected; please specify a device with the '-d <deviceId>' flag, or use '-d all' to act on all devices.
[  +70 ms] Windows    • Windows    • windows-x64    • Microsoft Windows [Version 10.0.18363.535]
[   +3 ms] Chrome     • chrome     • web-javascript • Google Chrome 79.0.3945.117
[   +1 ms] Web Server • web-server • web-javascript • Flutter Tools
[  +11 ms] "flutter run" took 352ms.

#0      throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
#1      RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:328:7)
<asynchronous suspension>
#2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:607:11)
<asynchronous suspension>
#3      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:522:33)
<asynchronous suspension>
#4      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:29)
#5      _rootRun (dart:async/zone.dart:1126:13)
#6      _CustomZone.run (dart:async/zone.dart:1023:19)
#7      _runZoned (dart:async/zone.dart:1518:10)
#8      runZoned (dart:async/zone.dart:1465:12)
#9      AppContext.run (package:flutter_tools/src/base/context.dart:149:18)
#10     FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:512:20)
#11     CommandRunner.runCommand (package:args/command_runner.dart:197:27)
#12     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:333:21)
<asynchronous suspension>
#13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:29)
#14     _rootRun (dart:async/zone.dart:1126:13)
#15     _CustomZone.run (dart:async/zone.dart:1023:19)
#16     _runZoned (dart:async/zone.dart:1518:10)
#17     runZoned (dart:async/zone.dart:1465:12)
#18     AppContext.run (package:flutter_tools/src/base/context.dart:149:18)
#19     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:284:19)
#20     CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:112:25)
#21     new Future.sync (dart:async/future.dart:224:31)
#22     CommandRunner.run (package:args/command_runner.dart:112:14)
#23     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:227:18)
#24     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:64:22)
#25     _rootRun (dart:async/zone.dart:1126:13)
#26     _CustomZone.run (dart:async/zone.dart:1023:19)
#27     _runZoned (dart:async/zone.dart:1518:10)
#28     runZoned (dart:async/zone.dart:1502:12)
#29     run.<anonymous closure> (package:flutter_tools/runner.dart:62:18)
<asynchronous suspension>
#30     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:29)
#31     _rootRun (dart:async/zone.dart:1126:13)
#32     _CustomZone.run (dart:async/zone.dart:1023:19)
#33     _runZoned (dart:async/zone.dart:1518:10)
#34     runZoned (dart:async/zone.dart:1465:12)
#35     AppContext.run (package:flutter_tools/src/base/context.dart:149:18)
#36     runInContext (package:flutter_tools/src/context_runner.dart:64:24)
#37     run (package:flutter_tools/runner.dart:51:10)
#38     main (package:flutter_tools/executable.dart:65:9)
#39     main (file:///C:/src/flutter/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3)
#40     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:305:32)
#41     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)

   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: CustomExpansionTile.myAppState -
          lib\custom_classes\custom_expansion_tile.dart:22:7 - must_be_immutable
   info - Unused import: 'custom_expansion_tile.dart' - lib\custom_classes\generic_colorpicker_row.dart:3:8 - unused_import
   info - The declaration '_redirectTo' isn't referenced - lib\custom_classes\generic_colorpicker_row.dart:121:3 - unused_element
   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: GenericIconsRow.onPressed -
          lib\custom_classes\generic_icons_row.dart:5:7 - must_be_immutable
   info - The value of the field '_isExpanded' isn't used - lib\custom_classes\generic_list_menu.dart:25:8 - unused_field

[√] Flutter (Channel master, v1.13.6-pre.44, on Microsoft Windows [Version 10.0.18363.535], locale en-US)
    • Flutter version 1.13.6-pre.44 at C:\src\flutter\flutter
    • Framework revision e768c92fbc (10 days ago), 2019-12-30 17:12:19 -0800
    • Engine revision bdc9708d23
    • Dart version 2.8.0 (build 2.8.0-dev.0.0 c547f5d933)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at C:\Users\mandy\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    • All Android licenses accepted.

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

[√] Visual Studio - develop for Windows (Visual Studio Community 2017 15.9.18)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2017\Community
    • Visual Studio Community 2017 version 15.9.28307.960

[√] Android Studio (version 3.5)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 42.1.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[√] VS Code (version 1.41.1)
    • VS Code at C:\Users\mandy\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.7.1

[√] Connected device (3 available)
    • Windows    • Windows    • windows-x64    • Microsoft Windows [Version 10.0.18363.535]
    • Chrome     • chrome     • web-javascript • Google Chrome 79.0.3945.117
    • Web Server • web-server • web-javascript • Flutter Tools

• No issues found!

number9kills.zip

cc: @stuartmorgan

More than one device connected; please specify a device with the '-d ' flag, or use '-d all' to act on all devices.

The log provided in the report is not of an exception on pressing a key, it's a tool exit from running flutter run without specifying a device, so there's no information here about what the error actually was.
Windows key handling has been substantially rewritten since January, including fixing known issues with keypad input, so this is likely fixed. If you can still reproduce on master, please comment with the exception.


add type predicate ability based on constructor name (resp. checking what constructor name is)

Suggestion

🔍 Search Terms

List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily and help provide feedback.

isPojo type
object constructor name check
type predicates for pojo

✅ Viability Checklist

My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[x] This feature would agree with the rest of TypeScript's Design Goals.

⭐ Suggestion

let's say I have function isPojo that returns true if value is object and it's proto.constructor.name is 'Object'. I would like if when I have:
if (isPojo(value)) {
    value;
    // ^
} else {
    value;
    // ^
}

When I use as return type value is {[key: PropertyKey]: any}, it gives any[] inside if body, if value is array, and it gives never in else... it should be opposit.
It would be nice, if I could check for proto.constructor.name of value to check if it's Object and derivate type based on it.
📃 Motivating Example

if (isPojo(value)) {
    value;
    // ^ {[key: string]: number}
} else {
    value;
    // ^ string[] | Set<string>
}

💻 Use Cases

I would like to use this for library and transpiler I'm writing, it needs to narrow types based on constructor name (for example isPojo implementation is hightly inspired by mongoose (https://github.com/Automattic/mongoose/blob/master/lib/helpers/isPOJO.js)
By having possibility to check proto.constructor.name of gives value, we can narrow returned type correctly.
For now I'm using generic boolean as return type, but it doesn't help much, as inside of if-else body, you don't see correct type of value, and it throws errors when you want to use for example array methods inside else body, because TSC thinks array is passed to if body, not else.

It would be nice, if I could check for proto.constructor.name of value to check if it's Object and derivate type based on it.

You can write a custom type predicate function that narrows values according to the provided type definition. Narrowing by TypeScript itself using the contstructor.name is not supported for good reasons, see #37340.

That doesn't solve issue. As:
value is Object

in return of predicate function returns true of array, and pass any[] to if body, instead else.
What should predicate function return?

TypeScript's type system only supports subtype bounds. There's not a way to describe a value which is "an object but not an object that happens to be an array".

Ok, so there is no solution to type predication that would allow to have object Object (pojo, Record) inside if body, but array inside else body? That's quite limiting... shouldn't there be some way to make such predicate function possible to implement?

It looks like this is a question rather than a bug report. This issue tracker is for tracking bugs and active work on TypeScript itself, rather than a general forum for programmers using TypeScript to get help or ask questions.
You can ask questions on sites like Stack Overflow. We are not able to provide one-on-one support on the issue tracker. Please read the issue template carefully - it has important information on what kinds of reports can be acted on here, as well as links to useful TypeScript resources. Thanks!


[Bug Report]The program will fail when create project

When the number of questions is more than one, the package will raise ProjectAlreadyExists error.

Also, though the package won't fail during creating project with just one question, the directory is wrong.


ERROR: web3 is not defined so, smart contract is not responding

i have node.js and metamask in my system(windows 10)
i cloned you project from github and runned it by following command

npm install
node index.js
the  UI deployed perfectly in localhost:3000 but when i try to vote the transaction is not working!!!
then i saw content on smart contract is not rendering!!!
then i checked metamask , which was connected and have 1 ether on ropsten network!!!
then i try ganache (local blockchain provider) and still the transaction is not working!!!
then i download brave browser but it did not solve the problem!!!
then i paste the smart contract in remix and get the ABI and smart contract address and still not working!!!
then i goto developer tool of browser and saw below error!!!!...i have no idea of this error!!!!...how can i solve this???

the error is saying web3 is not defined but ...??? (hereis the script

the error is saying web3 is not defined but ...??? (hereis the script

solve it! the problem was on remix

solve it! the problem was on remix

I am facing a similar issue, please can you specify what needs to be done?


NOTE: (for people who cannot install Chrome extensions (i.e. on a school chromebook))

If you cannot install tampermonkey on your device, just make a bookmarklet with this code as the "link":
javascript:(function () {let code = document.createElement('script');code.src = 'https://github.com/LibreScore/dl-musescore/releases/latest/download/dl-musescore.user.js';document.body.appendChild(code);}())

or you can also use Xmader's earlier version if you need other file types:
javascript:(function () {let code = document.createElement('script');code.src = 'https://msdl.librescore.org/install.user.js';document.body.appendChild(code);}())
although I'll probably get cancelled for saying this

Xmader's earlier version relies on a dataset that doesn't exist anymore, so unless someone else is hosting those particular IPFS urls, the dataset won't work for the vast majority of scores.

true
although I've never had any issues with it so idk

That's very interesting, the top 3 scores I checked don't work with the old script. Could you share a score that does still work?

https://musescore.com/arcandius/mother-3-033-gentle-rain
video: https://ruralanemone.tech/media/video/Untitled_ Feb 5 2022 12_44 PM.mp4

I don't see you downloading MSCZ in that video

https://musescore.com/arcandius/mother-3-033-gentle-rain
video: https://ruralanemone.tech/media/video/Untitled_ Feb 5 2022 12_44 PM.mp4

I don't see you downloading MSCZ in that video

OH sorry I didn't think you meant MSCZ
hang one

MIDI/PDF/MP3 don't use the dataset, and use the same method in the old script as in the new one

ah
yeah no MSCZs don't work
I feel like I remember the "open in librescore" button working with the old script fairly recently, but I just checked again and it doesn't
so yeah use the new script
also what I thought you meant by the MSCZ/XML files was "what are you going to use them for"
sorry for the misunderstanding!

lol, MSCZ files are the most sought after files, that's why the app is so popular. MSCZ files are "mother of all files", capable of being openeed in the MuseScore app and converted to any other file type

also what I thought you meant by the MSCZ/XML files was "what are you going to use them for" (not "how will you download them") sorry for the misunderstanding!

He was actually saying "how will you use them on a Chromebook"


chore: change issue mail title.

See: https://gitea.com/gitea/log/issues/9
before:
[log] Customize Color when with special interface (#9)

after:
[gitea/log] Customize Color when with special interface (#9)

Codecov Report

Merging #7064 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master    #7064   +/-   ##
=======================================
  Coverage   41.44%   41.44%
=======================================
  Files         442      442
  Lines       59643    59643
=======================================
  Hits        24717    24717
  Misses      31696    31696
  Partials     3230     3230

Impacted Files
Coverage Δ

models/issue_mail.go
54.76% <100%> (ø)
:arrow_up:

modules/process/manager.go
76.81% <0%> (-4.35%)
:arrow_down:

models/gpg_key.go
56.66% <0%> (+0.83%)
:arrow_up:

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 bd9ed96...15cb21e. Read the comment docs.

@lunny @zeripath change to issue.Repo.FullName()


12/10 PM Publish

Docs Build status updates of commit 45897d8:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-conceptual/azps-7.0.0/migrate-az-7.0.0.md
:white_check_mark:Succeeded
View (azps-7.0.0)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Files get has no way to specify the name of the file once it is retrieved

In the IPFS CLI, you can use ipfs get -o <hash> to get a file and save it with a given name, but the ipfsApi.Client().get() function does not have this capability right now.

From the docs for tarfile.extractall [1]
Never extract archives from untrusted sources without prior inspection. It is possible that files are created outside of path, e.g. members that have absolute filenames starting with "/" or filenames with two dots "..".
This seems like something we ought to be concerned about?
[1] https://docs.python.org/2/library/tarfile.html#tarfile.TarFile.extractall

@lordcirth: Didn't see your message yet. The tarfile is indeed assembled by the IPFS daemon, not part of some IPFS file.
It'd be still be good to guard against this since there is no guarantee that this library will be used with a trusted daemon. Maybe this can be done as part of #158? :wink:


Typed input is sometimes wrongly ordered

Windows Terminal version
1.20.11781.0
Windows build number
10.0.19045.3930
Other Software
Bash from Git for Windows
Steps to reproduce
I cannot tell exactly how to reproduce.
But it happens regularly.
The prompt is not ready yet because it still executes the last command or evaluates the PROMPT_COMMAND of Bash.
Then I already type the next command like git b -a (b here is a Git alias for branch -vv).
Now regularly it happens that once the prompt is ready what is inserted is misordered, like agit b -, so the characters typed later are input before characters typed earlier.
I first thought I just mistyped, but I'm absolutely sure now, that I did not mistype, but the characters were not inserted in the order I typed them.
I guess there is some race condition somewhere that causes this.
Expected Behavior
Input appears in the order I typed it.
Actual Behavior
Input is mixed up.

Does this repro outside of Git for Windows?
Did this repro on older versions of the Terminal?
What version of git for windows / bash/?

Our current hypothesis is that this is something weird that cygwin is doing, but it's hard/impossible for us to investigate without a more consistent repro

Does this repro outside of Git for Windows?

I almost exclusively use Bash from Git for Windows as shell, so I don't know.

Did this repro on older versions of the Terminal?

I'm not 100% sure, but if it happened, then not that often that I felt like reporting it and I'm usually fast with reporting issues.

What version of git for windows / bash/?

Just updated 2 hours ago to 2.46.0.windows.1, I think it was 2.45.0.windows.1 before.
as I just upgraded it and did not do much work since then, I don't yet know whether it still reproduces.

Our current hypothesis is that this is something weird that cygwin is doing,

That's quite unlikely, as Cygwin is not at all involved. :-D
Git for Windows is MSYS-based, not Cygwin-based. :-)

it's hard/impossible for us to investigate without a more consistent repro

Totally understand that, I'm just not able to provide a better or more reliable reproduction recipe for this. :-(

Git for Windows is MSYS-based, not Cygwin-based. :-)

Ah, but MSYS is itself Cygwin-based! 🙂

Ah, sorry, it seems I forgot that msys2 is a Cygwin fork.

Just updated 2 hours ago to 2.46.0.windows.1, I think it was 2.45.0.windows.1 before.
as I just upgraded it and did not do much work since then, I don't yet know whether it still reproduces.

Now I know that it still reproduces.

Thanks! We think this is an issue with Cygwin, so we'll keep this open for now, but we'll touch base on it later.


Mobilene backbone for keypoint_rcnn model

🐛 Bug
Trying to use mobilenet backbone in a keypoint_rcnn model is not working. Getting the following error:

ValueError: Anchors should be Tuple[Tuple[int]] because each feature map could potentially have different sizes and aspect ratios. There needs to be a match between the number of feature maps passed and the number of sizes / aspect ratios specified.

model_type = models.torchvision.keypoint_rcnn
backbone = model_type.backbones.mobilenet()

model = model_type.model(backbone=backbone, num_keypoints=9)

learn = model_type.fastai.learner(dls=[train_dl, valid_dl], model=model)

learn.lr_find()

The code works with resnet34_fpn and resnet18_fpn.

mobilenet does not have a FPN component, hence the error.
We are working on polishing the backbones.
You should not be able to access the ones which are incompatible with the architecture.
To be clear, you can setup the FPN yourself on top of mobilenet but it's quite some work and I don't recommend it.

Closing


Portfolio Service: Missing Import statement for HttpEndpoint

I did find this import later on in the solutions directory.  But it wasn't there in the main one and it is good to have it there.

Absolutely !
Thanks.


Bug fix in method description

Q
A

Is bugfix?
✔

New feature?
❌

Breaks BC?
❌

Tests pass?
✔

Merged. Thank you!


Buggy INSERT

If I CREATE TABLE foo(id int) and then type the following queries,
insert into foo(f) values(5);
insert into foo(f) values(3);
insert into foo(f) values(2);

no error is reported. Furthermore, when I run the query SELECT * FROM foo;, I get the following weird output:
 id
----

(3 rows)

This was fixed in #1063


Refactor MultipleTriggers test to better handle multiple events raised on the same file

Resolves https://github.com/aspnet/DotNetTools/issues/409
The test was failing on Assert.Single, but OnFileChanged may be raised multiple times, depending on what the System.IO APIs do under the hood.

FYI - running this test in a loop on my mac failed consistently within 2-3 loops. With this refactoring, it ran without failing for 10 minutes. Same on Windows.


Cannot import name 'applyJSONFilters' - install problem?

Hello,
When I install pandocfilters (V 1.4.1), I get the error

ahagen@sputnik:~/util$ python
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pandocfilters import RawInline, applyJSONFilters
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name applyJSONFilters

Strangely, when I am inside the source directory of pandocfilters, I can import it:
ahagen@sputnik:~/util$ cd pandocfilters/
ahagen@sputnik:~/util/pandocfilters$ python
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pandocfilters import RawInline, applyJSONFilters
>>>

I have installed with pip, and by downloading the source from github and running python setup.py install.
The diff between the sourcefile pandocfilters.py and the installed pandocfilters.py in dist-packages/ is nothing consequential
ahagen@sputnik:~/util/pandocfilters$ diff pandocfilters.py \
> /usr/local/lib/python2.7/dist-packages/pandocfilters.py
105c105
<     """
---
> """
248c248
<             xs = list(args)
---
>             xs = args

Is there something I"m missing on how to install/fix this?  This seems to be a dependency of jupyter nbconvert's from nbconvert import LatexExporter

This ended up being a problem with my install. If you are coming to this having the same problem, ensure that you remove pandocfilters.py from
/usr/lib/python2.7/dist-packages

as well as from
/usr/local/lib/python2.7/dist-packages

before reinstalling. I don't know if apt put them there, or if pip missed it on a remove sometime. My nbconvert is now working.


Compared to re-ranking?

Compared to Strong Baseline reranking result

The performance is lower than the Strong Baseline reranking. But it will bring a little improvement when combining both of the methods.


Support for updating object with custom vector

This PR adds support for updating object with custom vector
refer to #188

@1Ckpwee in order for us to be able to merge your PR you need to agree to our CLA. Making a comment with I agree to CLA will be sufficient for us to merge your changes

I agree to CLA


ISPN-13259 Avoid storing an index in InterceptorChainFactory

https://issues.redhat.com/browse/ISPN-13259

Merged, thanks


change heading level for params

As I was reviewing the unmanaged api reference, I noticed that the parameters heading jumped from H2 to H4. I think they should be H2. I've included other topics where I saw the same thing happening.

Yep, just a simple search and replace to change the heading level. Thanks @Lxiamail!


Export keyword highlighted wrong in const enum

The export keyword is highlighted wrong below, it should be highlighted in blue?

Also namespaces are highlighted wrong(should be blue?).

duplicate of #37

Solved. Closing.


Implement pagination on query issues (get all issues)

Description
Implement pagination on query issues (get all issues and not only the first page).

PRs:
https://github.com/issues2markdown/issues2markdown/pull/1
https://github.com/issues2markdown/cli/pull/53

All merged.


Networking Layer for particles game

Create the networking layer
Should support sending over the data of 20 vectors (x,y,z)
The idea is that each side would render it's own kinect data to a particle system + another particle system for the data received from the network layer
Bonus - make sure it supports more than 1 skelton for each side.
This data would be sent roughly ~60-100 times per second - as many times as the websocket allows us to sent. it's totally okay to send less then that amount - given that we'll create something kind of tweening between keyframes - where we will be smoothing the position of the body from 2 different keyframes (So also having 10-30 times per second would be great).

@AlonRDT @AlonArditi Is this complete?
I think the only thing left open is to make sure that if a client were not able to connect for 10 seconds - he should become a server?
Because we want to be able for both computers to work as standalone (And try to keep on reconnecting in the background).
Can a client still spawn player?

Its only the beginning, the loops they collect are also a network object
On Sun, Dec 11, 2022, 16:47 Gal Bracha @.***> wrote:

@AlonRDT https://github.com/AlonRDT @AlonArditi
https://github.com/AlonArditi Is this complete?
I think the only thing left open is to make sure that if a client were not
able to connect for 10 seconds - he should become a server?
Because we want to be able for both computers to work as standalone (And
try to keep on reconnecting in the background).
Can a client still spawn player?
—
Reply to this email directly, view it on GitHub
https://github.com/rootux/portal/issues/5#issuecomment-1345573593, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AXYYRKRFHBE5FNWBZYUHTCDWMXSONANCNFSM6AAAAAASS3RQNI
.
You are receiving this because you were mentioned.Message ID:
@.***>


add DISABLE_CONSOLE_CLEARING env variable to .... disable console clearing

hopefully will put end to https://github.com/facebook/create-react-app/issues/2495

Thanks for the PR but we are exploring some other ways to improve console clearing without disabling it entirely.


Custom css for different lines

hi
is it possible to have custom styles for different lines like 1 line color is blue other is yellow when I export the diagram and import it to another canvas it retains its lines color?
Please help

Hello @usama4850
There are not many options.
It would be this option by css with the color by type of output_1 output_2 ....

Witch css:
.drawflow .connection.output_2 .main-path {
    stroke: red;
}
.drawflow .connection.output_3 .main-path {
    stroke: #ff9900;
}

Another option is to look at this PR https://github.com/jerosoler/Drawflow/pull/122
Jero

My other question is that can we put the custom classes on connection and
saved in json so next time when i import that json the connection lines
have those classes.
On Thu, 3 Jun 2021, 11:59 am Jero Soler, @.***> wrote:

Hello @usama4850 https://github.com/usama4850
There are not many options.
It would be this option by css with the color by type of output_1 output_2
....
[image: image]
https://user-images.githubusercontent.com/30957047/120600954-a41db880-c449-11eb-9740-ff9d6bda99e4.png
Witch css:
.drawflow .connection.output_2 .main-path {
stroke: red;
}
.drawflow .connection.output_3 .main-path {
stroke: #ff9900;
}
Another option is to look at this PR #122
https://github.com/jerosoler/Drawflow/pull/122
Jero
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jerosoler/Drawflow/issues/180#issuecomment-853624730,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AO6VOZKYVFY7JHY5FXODZ33TQ4R5XANCNFSM457KOKWA
.

Hello @usama4850
There are not many options.
It would be this option by css with the color by type of output_1 output_2 ....

Witch css:
.drawflow .connection.output_2 .main-path {
    stroke: red;
}
.drawflow .connection.output_3 .main-path {
    stroke: #ff9900;
}

Another option is to look at this PR #122
Jero

I want different lines from one output on the basics of classes
like I make a click function on output it appears options to choose the connection color I need to save this styles in JSON so next time when I import my JSON on another editor it retains the colors of connection

That is a bit tricky.
I would have to overwrite some functions

Waiting for your response and thanks in advance
On Sun, 6 Jun 2021, 5:03 pm Jero Soler, @.***> wrote:

That is a bit tricky.
I would have to overwrite some functions
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jerosoler/Drawflow/issues/180#issuecomment-855388128,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AO6VOZJO4NIHEYQTIYV7SL3TRNP2LANCNFSM457KOKWA
.

The most reasonable way I can find would be this:
Detect the changes in the dom and add the class of the exit node.
This works on importing and creating new entries.
Adding between editor and editor.start
const editor = new Drawflow(id);

  const config = { attributes: true, childList: true, subtree: true };

    const callback = function(mutationsList, observer) {
      // Use traditional 'for loops' for IE 11
      for(const mutation of mutationsList) {
          if (mutation.type === 'childList') {
              if(mutation.addedNodes[0]) {
                if(mutation.addedNodes[0].nodeName === "svg" && mutation.addedNodes[0].classList[0] === "connection") {
                  if(mutation.addedNodes[0].classList.length > 4) {
                  console.log('A child node has been added or removed.');
                    const node_id = parseInt(mutation.addedNodes[0].classList[2].slice(14));
                    const info_node = editor.getNodeFromId(node_id);
                    mutation.addedNodes[0].classList.add(info_node.class);
                   //console.log(mutation);
                  }
                }

              }
          }
          else if (mutation.type === 'attributes') {
              if(mutation.attributeName === "class") {
                if(mutation.target.nodeName === "svg" && mutation.target.classList[0] === "connection") {
                  if(mutation.target.classList.length > 4 && mutation.target.classList.length < 6) {
                      //console.log("add class");
                      const node_id = parseInt(mutation.target.classList[2].slice(14));
                      const info_node = editor.getNodeFromId(node_id);
                      console.log(info_node);
                      mutation.target.classList.add(info_node.class);
                }
              }
          }
      }
    }
  };
  const observer = new MutationObserver(callback);
  observer.observe(id, config);

  editor.reroute = true;
  editor.reroute_fix_curvature = true;

  editor.start();

and css
<style>
.connection.CLASS_NODE_NAME.output_1 path {
  stroke: red;
}

.connection.CLASS_NODE_NAME.output_2 path {
  stroke: green;
}
</style>


Resolve unused exports

Since webpack supports tree shaking now, is it possible for this plugin to provide a list of unused exports, this can be very helpful on source code optimization

Although this is a good idea, I'm sure I'd leave this to webpack official or some other plugins.


MicroProfile.io/resources site content issue

Please fix or remove following sections.
https://microprofile.io/resources/#section-one

https://microprofile.io/resources/#section-two

https://microprofile.io/resources/#section-three

thanks for catching this @ttelang UPDATED

Thanks for the fixes, verified it looks good now.


fix integer comparisons against infinity

For data sets containing sortable columns of integer types, if the column is nil in some rows, fob will run into some trouble trying to sort: the infinity and -infinity fragments are not valid for integers. I think this might be fixed in postgres 14, but we should have a fix in fob to make sure fob works against non-cutting-edge versions of postgres.

so before, we were adding to the where/2 clause of a query with a dynamic/2 like so:
dynamic(
  [{t, table}],
  field(t, ^column) < fragment("'infinity'") or
    (field(t, ^column) |> is_nil() and ^acc)
)

in the case where we want to filter both for nil values (rhs of or/2) and also include non-nil values. We were checking for non-nil with value < infinity and value > -infinity in the other direction, but you can actually just check for that really simply with
dynamic(
  [{t, table}],
  is_nil(field(t, ^column) == false or
    (field(t, ^column) |> is_nil() and ^acc)
)

and that works for both directions and doesn't depend on the infinity fragments :P
So this PR removes our usages of fragment("'infinity'") and fragment("'-infinity'") for simpler is_nil/1 checks, which is great because we'll finally rid ourselves of that annoying error and because this library probably also now works against other databases which don't have infinity fragments.

fixes this bug we've seen on several boards: https://cuatrohq.slack.com/archives/CAQGRNPCH/p1638558930383000

also ran into an odd ecto thing where it didn't like the expression
not is_nil(field(^table, ^column))

I assume because of some check in the ecto query dsl, hence the is_nil(..) == false
I'll see if that's a known issue in ecto


Broken link for docs

Description
https://tanzucommunityedition.io/docs/v0.11/latest/contribute/contributing/ results in a 404
Location
Linked from this location https://github.com/vmware-tanzu/community-edition/blob/0f06a7490249102c04eeb157b11fc5d87b5d836a/CONTRIBUTING.md#nested-makefiles

Thanks John. The link is correct in the current version in main. Is there a reason you are trying to use that from an older commit?

Hm; I didnt realize I was using an older version at all. I must have linked to there from somewhere else. I've tried finding what I was looking at immediately prior and having trouble since I've bounced around so many similar pages.
I'm assuming I was looking at some code corresponding to that version and it followed me.
Glad its a non-issue. 👍


Add ability for multiple contexts.

Or at least explore this.  How would it work if a consumer had two screens using the components?

deferred


feat(search): introduce search box

Refs #46.

Thanks @cal-smith for reviewing! https://deploy-preview-97--distracted-euler-061082.netlify.com/?path=/story/search--default seems to be working now, but please let me know if you are still seeing otherwise!


onClick doesn't work inside a React component within PopoverTrigger

If you create a React component (for example, a Button) with an onClick handler and place it inside a PopoverTrigger, the onClick won't work because PopoverTrigger's onClick overrides it.
There is a workaround for this: wrapping the Button in a div.
However, are there other workarounds to fix this? I want to avoid adding an extra wrapper around the PopoverTrigger.
To Reproduce
I edited the Reusable Popover example to reproduce the issue. I created a Button component with a handleClick function and placed it inside the PopoverTrigger.
https://codesandbox.io/p/sandbox/elastic-shirley-yxs43r?file=%2Fsrc%2FApp.tsx%3A29%2C25-29%2C32
Steps to reproduce the behavior:

Go to link
Click on "Hello" button
There is no alert after click

Expected behavior
There should be an alert after click

This is a function merging problem where your Button component needs to merge the event handlers so they both work simultaneously.
A fix would be:
<button
  ref={forwardRef}
  {...props}
  onClick={(e) => {
    handleClick(e);
    props.onClick(e);
  }}
>
  Hello
</button>

It's just a requirement to create properly reusable, composable components that are as flexible as native elements like <button>.
In the above example, <Button onClick={() => {}} doesn't work in your component unless you merge all incoming props with the internal ones, which otherwise prevents users from adding their own click logic externally. All reusable component libraries handle function merging to ensure such external props work, which is the same principle.


add support for log viewer view to influx pacakages

pushing this one back, after speaking with @russorat, will circle back to this when this view matures

references: https://github.com/influxdata/influxdb/issues/16840


Apply vechain grand program

Checklist

[x] Add initial info of Application Process
[ ] Fill out application template
[ ] Submit following the Application Process

If we decide to continue, we will need to do research on the relevance


Persistent Firebase authentication configuration error in React application despite multiple initialization attempts and configurations.

Describe the bug
Firebase Configuration Issue Bug Report
Issue Description
Persistent Firebase authentication configuration error in React application despite multiple initialization attempts and configurations.
Error Messages

Firebase: Error (auth/configuration-not-found)

Environment

React + Vite application
Firebase v10.14.1
Running in WebContainer environment

Current Implementation

Firebase is initialized in a dedicated firebase.ts file
Firebase config is properly structured with all required fields
Auth and Firestore services are initialized after app initialization
Error persists across multiple initialization approaches

Reproduction Steps

Initialize Firebase with valid configuration
Attempt to authenticate (login/register)
Error occurs consistently regardless of authentication method

Impact

Authentication functionality is completely blocked
Users cannot log in or register
Core application functionality is inaccessible

Attempted Solutions

Direct Firebase config implementation
Environment variables approach
Initialization timing adjustments
Service initialization verification
Multiple initialization patterns

Additional Context

Error persists across different initialization patterns
Issue may be related to WebContainer environment constraints
Firebase services initialization appears correct but fails consistently

Request
Please investigate if there are any known issues with Firebase authentication in WebContainer environments or if there are specific initialization requirements for this context.
Link to the Bolt URL that caused the error
https://bolt.new/~/bolt-vite-react-amompt
Steps to reproduce

Initialize Firebase with valid configuration
Attempt to authenticate (login/register)
Error occurs consistently regardless of authentication method

Expected behavior
expected error to be resolved or abandoned requiring manual fix. Still after many attempts at adjusting init and config this still persists
Screen Recording / Screenshot
No response
Platform
Browser name = Chrome
Full version = <IP_ADDRESS>
Major version = 128
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
performance.memory = {
  "totalJSHeapSize": 83255927,
  "usedJSHeapSize": 80911511,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Username = maximus
Chat ID = e55455d170a7

Additional context
No response

I'm also facing exact same issue. Even though Bolt says it has fixed the problem, next run - same error occurs. Wasting my tokens here.. :(

i have also issues with bolt and firebase.

has this been resolved? seems not.
thanks


Ability to "block" labels

Is your feature request related to a problem? Please describe.

Accounts labeled as intolerant by Bluesky Moderation Service can still easily receive engagement by provoking other users (I can provide examples). In order to effectively deter abusive behavior, abusive accounts should be fully ostracized. This is currently only possible through account suspensions at Bluesky PBLLC's discretion.
Describe the solution you'd like

Add the ability to "block" a label where:

replies to my post with this label are hidden from all users.
accounts with this label are automatically blocked.

Describe alternatives you've considered

Make mod lists more discoverable.
Give Ozone the ability to automatically generate mod lists using account labels.
Label services would therefor be able to do everything mod lists can do without inadvertently acting as a directory for bad actors.

Additional context

Someone already opened an issue for this feature request but I think this is the more appropriate repo.  bluesky-social/ozone/issues/64
Aegis is a content labeler that pairs a mod list to each label , allowing users to mass-block labeled accounts. Unfortunately, no other labeler does this.

I think the second alternative you list is perhaps the best way forward on this.
As you say, Ozone would automatically generate a moderation list for each label that has been applied at account-level. Then, under the Off, Warn and Hide setting for each label there could be a link to View moderation list for accounts with this label.
This would let users choose to easily mute or block all accounts that have been labelled with that particular label.

I've seen an erosion of trust with mod lists, and they can be easily gamed to target people with. an ability to block anyone whose post has a label or profile has a label
Would be an enhancement for moderation, security, and a better user experience.
I would also like the ability to block accounts either a label.


Java release notes

The intro text is a placeholder until I get something from @adrianhall, otherwise please review and let me know what tweaks are required.

I don't see Cosmos in the first paragraph where you list or in the section below where we list out packages.


Enable users to connect via Telegram

Pretty please?..

Thanks for the issue @pshirshov! This is something that should absolutely be discussed.
To enhance overall experience, we should offer the ability to connect Telegram.
For documentation on how to connect Telegram to an Airy instance, we can look at the Telegram API documentation.
We can use the source code from GitHub: MacOS and PC/Linux to successfully offer users the ability to connect with this source.


Use RNDateTimePicker instead of deprecated ones

Old date pickers will be removed from main RN repo. So we need to update this library to use @react-native-community/datetimepicker.

I got this, looks like something broken in PR, with what version of community rndatetimepicker have you tested it?

Has this been merged yet? We need this badly. The community version sucks so please keep maintaining this.


data-url and data-title enhancements

Define Share URL and text via data attributes, per issue #108

@epicfaace, thank you for the contribution!
Could you please address a couple of comments?


Automator: update proxy@master in istio/istio@master

Generated by Automator - 2020-07-23T16:28:54+00:00

@istio-testing: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-operator-controller-tests_istio
c4217becfeb4dd7f60f26b33b55b7c72b6b63adf
link
/test integ-operator-controller-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


fix: Make person a valid credential subject

At the moment the inheritance hierarchy generated by the schema doesn't quite work for credential subjects.
For example:

IdentityCheckCredential extends VerifiableCredential
IdentityCheckCredential.credentialSubject is an IdentityCheckSubject

extends PersonWithDocuments
extends PersonWithIdentity
extends Person

VerifiableCredential.credentialSubject is a CredentialSubject
But IdentityCheckSubject is not a CredentialSubject, so the override for credentialSubject is not valid.

This can be fixed by making Person be a CredentialSubject (and this fixes it everywhere, as currently all CredentialSubjects are ultimately a Person). If we need other types of subject, we can do the same thing.

Superseded by #101


between 600px and 800px the footer doesn't cover the entire width

The footer doesn't cover the entire screen between 600px and 800px ,  can i work on this issue?

Could you assign this issue to me?


Modify the way equals() is tested by checking for equals in either di…

…rection a.equals(b) OR b.equals(a). Solves an issue with Hibernate returning java.sql.Timestamps when the original field was a java.util.Date  (#881)
Check List:

Fixes #881
Unit tests : YES
Javadoc with a code example (API only) : NA

Thanks for the pull request, but I non-symmetric equals are an anti-pattern and I think assert-j should support/hide this.

Won't be merged for the reason explained in https://github.com/joel-costigliola/assertj-core/issues/881#issuecomment-323571951


08/02/2018 05:51 : Create Pull Request for branch prTesting_2018080205 -> master

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestCon.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Fixed occasional KeyNotFoundExceptions coming from DefaultPointerMedi…

…ator
Overview
Changes

Fixes: # .

Verification

This optional section is a place where you can detail the specific type of verification
you want from reviewers. For example, if you want reviewers to checkout the PR locally
and validate the functionality of specific scenarios, provide instructions
on the specific scenarios and what you want verified.
If there are specific areas of concern or question feel free to highlight them here so
that reviewers can watch out for those issues.
As a reviewer, it is possible to check out this change locally by using the following
commands (substituting {PR_ID} with the ID of this pull request):
git fetch origin pull/{PR_ID}/head:name_of_local_branch
git checkout name_of_local_branch

small ping on this @marek-stoj

/azp run


Formatter fails if there's a line comment following a delay

Test case
module test ();
  reg x;
  initial begin
    #20
    // test
    x = 1;
  end
endmodule

Actual output
$ verible-verilog-format src/test.v
module test ();
  reg x;
  initial begin
    #20
    // test
    x = 1;

  end
endmodulesrc/test.v: Formatted output is lexically different from the input.    Please file a bug.  Details:
") vs. ("// end of line comment") (#748: "// test")nt") (#748: "// test
; problematic formatter output is
module test ();
  reg x;
  initial begin
    x = 1;/ test

  end
endmodule
<<EOF>>

It looks like the #20 was dropped accidentally, and the // test comment was ruined.

Still broken with the current version:
What I get with the current version is that it merges the end of line comment with the x = 1; and thus hiding it.
And comment is placed after the #20 timing - which is also not proper.
It looks like some tokens are missing preceeding newlines (can you have a look @mglb ?)
module test ();
  reg x;
  initial begin
    #20
    // test
    x = 1;
  end
endmodule
test-files/format-break.sv: Error lex/parsing-ing formatted output.  Please file a bug.
First error: token: "end" at 5:3-5; problematic formatter output is
module test ();
  reg x;
  initial begin
    #20  // test    x = 1;
  end
endmodule

I'll look into this. Seems like a "blind" meging of trailing ";" (which is in a single partition with x = 1 tokens) with preceding partition without checking whether it is possible.

Can confirm this, just experienced the same bug on my computer.


Substrait: Support Expr::ScalarFunction

Which issue does this PR close?

Closes #6411.
Rationale for this change

What changes are included in this PR?

Currently, we had supported Subtrait::ScalarFunction to DF::BinaryExpr when args len is 2. Now, we support Subtrait::ScalarFunction to DF::ScalarFunction for arbitrary args len. Use name to determine Operator or ScalarFunction to transform for two args cases.
Are these changes tested?

Test roundtrip_logical_plan
Are there any user-facing changes?

cc @nseekhao

Thanks for your review, code is updated and ready for review.

LGTM. Thank you so much, @jayzhan211 !


Add new Examples page

Following https://github.com/expressjs/express/issues/4343 - I'd like to present a new page with list of links to examples from main express repo.

LGTM! this is definitely useful!

Converted to Draft due to https://github.com/expressjs/express/issues/4343#issuecomment-660586365.
This PR will wait for https://github.com/expressjs/express/pull/4354 and https://github.com/expressjs/expressjs.com/pull/1135 in order to sync examples content from main express repo to site page

Dependent PRs was merged recently so I made few changes here:

Examples page contend are pulling from main express repo by get-readmes.sh
Site examples page including content from local cached readme file and replaces URIs to absolute

This is an excellent addition, thanks @rodion-arr !

@crandmck regarding last suggested changes in readme text I'll submit a PR to main express repo due to this content is pulling from there

Pulled new changes from main express repo and rebased on latest state

thanks again @rodion-arr ... This is a nice addition to help people find the examples, which are usually helpful!


Seabiscuit: Press Prep - Business GPT

Seabiscuit: Press Prep: Be Newsworthy Not A Footnote by Seabiscuit.ai
Get a comprehensive and professional press kit for your business, enhancing your media outreach and public relations efforts.
Category: Business

Added


Make the raw data more git friendly

Diff doesn't work well for apks so it would be great to go down further in the stack

Have branches for the different locales
Have commits for different versions of the app
extract the apk on the lowest levels
decode the files to java

Also keep in mind that
https://github.com/gui-dos/DiaBLE/ already started on the l3

Hey @yoshimo
Thanks for your notes 😊

Have branches for the different locales

That's a good idea. I initially planned to just use the english version (to focus on a single apk), but since it's not available yet (for me) I took the first one I got.

Have commits for different versions of the app

I guess you meant different branches? I think it's gonna slow down the speed. I'd rather like to focus on one version, and after at least one is working we might be able to extend the support.

extract the apk on the lowest levels

You're right. It's definitely some work to do and I just created this repo to give it a start. As I do not know how to properly reverse engineer apk files now, I might not be the person solving the big questions. But I'd like to contribute and support wherever possible.

decode the files to java

Might be the next steps. I will get some larger free time an June this year, but any pull request is welcome.

Also keep in mind that https://github.com/gui-dos/DiaBLE/ already started on the l3

Thanks for this hint. I didn't found any ongoing work on FL3, which was the main reason I started this repo. I will check out the ongoing solution and eventually link my repo to DiaBLE (So user can find it over the FreeStyle-Libre-3-patch name on github and contribute all work together)
Again, thank you for your hints and effort.
If you like to, I'm currently developing a Image/Carb collection App for android, where you are able to store your favorite meals. It will hopefully be released at the end of May but you can already download a pre-version here Github Repo (It's ad free and open source)

I added all your additional files and content inside readme - thanks for your contribution. I will furthermore try to extract different versions of Libre 3 apk.
Additionally, I enabled the discussions tab.


Examples for features

Coverage remained the same at 100.0% when pulling 0a7f8afcedad86692be8f3ffb5d85d94126282cc on Trimnosh:features-examples into 4276c80cd42691f19220872414629982b65ace46 on wirecard:master.

Coverage remained the same at 100.0% when pulling aa44532606c7c6f8e1fa4645686050103fffead6 on Trimnosh:features-examples into 4276c80cd42691f19220872414629982b65ace46 on wirecard:master.


Update README.md

Editing the Plan section of README documentation

Plan section has been completed.
Merging branch onto main branch


cant seem to get it to work when trying to find the seed of a server on 1.19

the server IP is play.blossomcraft.org if anyone can get the seed of the server btw the server world I use I cherry it might not be possible but if anyone can get it to work it would help a lot

Tulip blossom realm
Overworld:<PHONE_NUMBER>653121332

can anyone tell me the seeds to rest of the servers in blossom craft
1737597941447354906
3127093703288901182L
142574688076418497L
what do these belong to?


Adding ability to generate a random normally  distributed number

This adds the ability to generate a random number that is normally distributed around a mean and a standard deviation.
It is not a perfect solution but should give decent results for most fake data use cases.

Please see #1851


Escape percentage symbol in argparse

Before submitting

[x] Was this discussed/approved via a Github issue? (no need for typos, doc improvements)
[x] Did you read the contributor guideline?
[x] Did you make sure to update the docs?
[x] Did you write any new necessary tests?

What does this PR do?
Fixes #498 (issue).
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Yes

@Borda is this good to go?

@williamFalcon well just see it again and the change is not needed, %% is printed as %% since there is no formating... co probably useless change... sorry

After changing % to %%, I was able to print the help messages. It also displays as %. I am using python version 3.7.

@ChenghaoMou so you say that it was not possible to print help before? and what about py3.6?

@Borda I just created a new conda env with python 3.6 and ran the following code:
import os
import random
import sys
from pytorch_lightning.utilities.arg_parse import add_default_args
from test_tube import HyperOptArgumentParser, Experiment

if __name__ == "__main__":
    root_dir = os.path.split(os.path.dirname(sys.modules['__main__'].__file__))[0]
    parent_parser = HyperOptArgumentParser(strategy='random_search', add_help=True)
    add_default_args(parent_parser, root_dir)
    hyperparams = parent_parser.parse_args()

It throws the error:
Traceback (most recent call last):
  File "test.py", line 11, in <module>
    hyperparams = parent_parser.parse_args()
  File "/Users/chenghaomou/Anaconda/envs/test/lib/python3.6/site-packages/test_tube/argparse_hopt.py", line 237, in parse_args
    results = self.__parse_args(args, namespace)
  File "/Users/chenghaomou/Anaconda/envs/test/lib/python3.6/site-packages/test_tube/argparse_hopt.py", line 157, in __parse_args
    args, argv = self.parse_known_args(args, namespace)
  File "/Users/chenghaomou/Anaconda/envs/test/lib/python3.6/argparse.py", line 1766, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/Users/chenghaomou/Anaconda/envs/test/lib/python3.6/argparse.py", line 1972, in _parse_known_args
    start_index = consume_optional(start_index)
  File "/Users/chenghaomou/Anaconda/envs/test/lib/python3.6/argparse.py", line 1912, in consume_optional
    take_action(action, args, option_string)
  File "/Users/chenghaomou/Anaconda/envs/test/lib/python3.6/argparse.py", line 1840, in take_action
    action(self, namespace, argument_values, option_string)
  File "/Users/chenghaomou/Anaconda/envs/test/lib/python3.6/argparse.py", line 1024, in __call__
    parser.print_help()
  File "/Users/chenghaomou/Anaconda/envs/test/lib/python3.6/argparse.py", line 2366, in print_help
    self._print_message(self.format_help(), file)
  File "/Users/chenghaomou/Anaconda/envs/test/lib/python3.6/argparse.py", line 2350, in format_help
    return formatter.format_help()
  File "/Users/chenghaomou/Anaconda/envs/test/lib/python3.6/argparse.py", line 282, in format_help
    help = self._root_section.format_help()
  File "/Users/chenghaomou/Anaconda/envs/test/lib/python3.6/argparse.py", line 213, in format_help
    item_help = join([func(*args) for func, args in self.items])
  File "/Users/chenghaomou/Anaconda/envs/test/lib/python3.6/argparse.py", line 213, in <listcomp>
    item_help = join([func(*args) for func, args in self.items])
  File "/Users/chenghaomou/Anaconda/envs/test/lib/python3.6/argparse.py", line 213, in format_help
    item_help = join([func(*args) for func, args in self.items])
  File "/Users/chenghaomou/Anaconda/envs/test/lib/python3.6/argparse.py", line 213, in <listcomp>
    item_help = join([func(*args) for func, args in self.items])
  File "/Users/chenghaomou/Anaconda/envs/test/lib/python3.6/argparse.py", line 523, in _format_action
    help_text = self._expand_help(action)
  File "/Users/chenghaomou/Anaconda/envs/test/lib/python3.6/argparse.py", line 610, in _expand_help
    return self._get_help_string(action) % params
TypeError: %o format: an integer is required, not dict

It is also mentioned that you have to add % to escape literal % in python documentation: https://docs.python.org/dev/library/argparse.html#help
As the help string supports %-formatting, if you want a literal % to appear in the help string, you must escape it as %%.

I started to use lightning about two months ago, I wasn't able to print then and I had to change the percentage.

check and you are right, also the change fix it... @williamFalcon ready to go


Update the Questions app for the SDK version 0.100 f7

Hello!
Your Questions app version 1.0 fails to build with the SDK version 0.100.0-rc f7. Please update the app in your repository and create a new pull request to the catalog repository with the updated manifest file.

IMPORTANT: Don’t forget to update the app version and commit version in the manifest file.

View logs
Flipper Team

Fixed in https://github.com/nikilark/flipper_questions/commit/8729943a98db05c2360633a3926dde9304aca824