fix(gs): Update scores when someone steals some of your tiles

Fixes #135
I've left a case when player is still moving (have trailVertices) as in this case player will either die or capture their block which will update their scores.

This runs the flood fill algorithm for every player, every time someone returns to their captured area. I'm worried this won't run very efficiently once there are a handful of players in game.
If I'm not mistaken, the old server didn't have this either for the same reason.
I think the fix would be to keep track of whose land was taken, and then only update the score of those players.
Another option would be to run a timer and only update the score every few minutes or so. But I'm not sure what the ideal frequency should be, and I reckon it would have to be pretty low for it to be meaningful.

For info: the old server recalculates your own score whenever you finish a trail or every one minute

I think you might be able to collect the player ids in the if (testFillNode(node)) { statement in updateCapturedArea.js
The signature of Arena.updateCapturedArea() would have to be changed a bit to return an object instead of just the new score.
Player.updateCapturedArea() can then use the object to both update its own score, and provide this.game with a list of players that need to be updated.

I think you might be able to collect the player ids in the if (testFillNode(node)) { statement in updateCapturedArea.js The signature of Arena.updateCapturedArea() would have to be changed a bit to return an object instead of just the new score. Player.updateCapturedArea() can then use the object to both update its own score, and provide this.game with a list of players that need to be updated.

I tried this logic, and the only issue I found was that it returned all nearby players whose boundary was adjacent to the current player. So, even if he captures blocks outside the window,. testnode() will return the player ID of those players

Code snippet
function testFillNode(coord) {
    if (coord.x < bounds.min.x || coord.y < bounds.min.y) return false;
    if (coord.x >= bounds.max.x || coord.y >= bounds.max.y) return false;

    const alreadyFilled = floodFillMask[coord.x][coord.y];
    // We've already seen this node, so we can skip it.
    if (alreadyFilled) return false;

    // append player Id's
    if (arenaValue !== playerId && arenaValue !== 0 && arenaValue !== -1) {
      capturedPlayers.add(arenaValue);
    }
    return arenaValue != playerId;
  }

Hmm that seems fine by me. Although I do wonder why that is the case because judging from the code snippet you sent I'm not really sure why that would happen.

Its happening because in the updateCapturedArea() method, you have created a padding mask of 1 block around the player's old bound area, and while iterating over the entire captured area, we'll check all nodes, which leads to the addition of this.
How can I check the only area that the player has currently captured?
UpdateCaptureArea-File

Ah I see, that makes sense.
I think the problem here lies in that testFillNode is fired for every tile within the bounds, but not necessarily on all the tiles that will be replaced.
I think what you'll want to do is to do is perform the check within the callback of compressTiles at the very end.


Support UTF-8

Currently, librxvm only handles ASCII input, one byte at a time. UTF-8 support would be nice. Need to research the best way to do this.

http://kunststube.net/encoding
http://utf8everywhere.org
https://www.cprogramming.com/tutorial/unicode.html
http://www.tldp.org/HOWTO/Unicode-HOWTO-6.html
http://www.cl.cam.ac.uk/~mgk25/unicode.html
http://unicodebook.readthedocs.io/programming_languages.html

https://lists.w3.org/Archives/Public/www-archive/2009Apr/0001.html


Added Vue commands #7

Added basic VueJs CLI commands to the site. (#7 )

@icy-r Can you make the user navigate to a page containing this data when the Vue.js icon is clicked?

Deleted unwanted files and codes as mentioned. #48

Shorter function added for code simplification. #48

Thanks for the comments. I've fixed those errors. If there anything else i should consider refactoring please let me know... @ThulinaWickramasinghe

Thanks for the comments. I've fixed those errors. If there anything else i should consider refactoring please let me know... @ThulinaWickramasinghe

Wonderful. Everything is perfect right now, but we need one small change.
Can you also rename the file AlphabeticalSort.js to alphabetical-sort.js so that the we can make sure we're following the same file naming guideline everywhere?
FYI, only when naming react components it's necessary to follow Pascal Case. Even the react components' file names can follow any other naming case(mostly pascal or kebab). We prefer kebab case, especially for functions.

sure.. i just made those changes. thanks!


Paper Download not Showing When Previewing Close Listing

An Admin user on Doorways Partner Portal was attempting to preview a closed listing and wasn't seeing the paper app download in the preview link.
Url: https://partners.staging.housingbayarea.mtc.ca.gov/sign-in
Close a listing that does not have a paper or digital app
Add a paper app while it's in closed status
Save & Preview
Also test other flows like closing a listing that already has a paper app and ensure it still shows in the preview!

@sarahlazarich to talk with design on this


Release version 0.1.3

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (aeb8080) 100.00% compared to head (0701229) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #169   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            6         6
  Lines          162       162
  Branches        34        34
=========================================
  Hits           162       162

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


dummy test on main

All Submissions:

[X] Have you signed our CLA?

not needed anymore, fixing with #1276 and testing forked PR with #1277


⚠ ClamAV has degraded performance

In 8b1fe47, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 48 ms

Resolved: ClamAV performance has improved in 9a1ad24.


support hdf5 serialization/unserialization of all the world data

Fix #91

I have not checked every single line, it's a bit too late for that (here). But I love it anyway.^^
What are the major advantages of this format, by the way?

Honestly is just that I want open worlds from Java and using protobuf I cannot do it right now. HDF5 seems a good format, with a great support for many languages and Bret suggested it for a while so I thought... why not?

tox was not aware of h5py. Let's try again

but sure, I have to install also the library... for both Travis and Appveyor. This is going to be a lot of fun, I am sure.

Yeah... new libraries are hell.

I think this looks good - although it might be possible to get rid of almost all element-by-element copy-processes that are being done, since all participants are numpy-arrays anyway. Maybe I am overlooking something there?
Other than looking at it I think that a field test is the easiest way to see if all data is properly written and read.

What's up with the future replacement of pickle and protobuf?^^

I don't see this replacing protobuf, since protobuf will eventually support java.  HDF5 is just a stop-gap.

Update status: the code is done and the round-trip works (serialization -> unserialization -> back to the original world). Then I started thinking about having to install another library on AppVeyor, having to explain to users how to installed. So I cried a little, opened a bottle of whiskey and not touched this PR for a while...
Now that I am sober again I am not sure... It is true that we could make hdf5 optional as GDAL is. What do you think guys?

As long as it isn't trivial to add another format, I would actually prefer seeing us focus on exactly one. Pickle is kind of worthless as long as Python 2 and 3 are supported since the change in Unicode-support breaks save-compatibility between the Python versions. Protobuf has been at the latest alpha for quite a while and I personally don't like relying on Googles code - they have scrapped or "reimagined" other software before, no matter how many people relied on it. (Of course, we could stick to the latest working version in that case. And even modify it ourselves: https://github.com/google/protobuf )
So while I don't know if we need a third way of saving data, we could really use one that is actually reliable and works for all purposes we can come up with. (And then hopefully get rid of the other formats.)

I think hdf5 should be optional like gdal, it is there and useful for when the right libs are in place. :)

rebased

In the meantime Travis complains:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-Lorf5r/pygdal
ERROR: could not install deps [coverage, numpy, pygdal==<IP_ADDRESS>, Pillow, PyPlatec, noise, nose, protobuf, six, h5py]; v = InvocationError('/home/travis/build/Mindwerks/worldengine/.tox/py27/bin/pip install coverage numpy pygdal==<IP_ADDRESS> Pillow PyPlatec noise nose protobuf six h5py (see /home/travis/build/Mindwerks/worldengine/.tox/py27/log/py27-1.log)', 1)

Numpy failed to compile... I'm going to assume that the wheel is not being installed here?

That could be the case but I do not understand why this patch is affecting numpy

It's not... likely a new release of numpy and we don't specify a specific version.

Should we specify a min and max release?

The latest version is about a month old.
Why would it cause problems if there was a new version of a module? Does it maybe have to be recompiled?

Perhaps it is trying to use a version for which there are no pre-compiled packages. Damn how much easier are these things on the JVM....

rebased after #187 has been merged

I cannot see wheel packages for Numpy 1.10.1 https://pypi.python.org/pypi/numpy

Appveyor is now happy but Travis keeps failing and I am out of ideas. Google did not help so far. I tried setting several numpy versions in tox.ini

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-yIncyD/pygdal

Ok, that it is fixed but tests are still failing

"AttributeError: 'Namespace' object has no attribute 'protobuf'"
time to rebase from master?

I wish was that but I have already rebased from master

Ok, this is solved now but still have 4 tests failing. 3 are failing because they refer to file in worldengine-data that were delete (e.g., biome_test.world which is referred by tests/biome_test.py).

That's due to the data for https://github.com/Mindwerks/worldengine/pull/192 having already been merged while the PR itself isn't merged yet.

Ok, it seems good to go from a tests point of view. Feel free to point out corrections and improvements!

Most comments addressed and all tests passing. Time to merge and move forward with the release?

Do you want to release immediately after this PR? I wouldn't mind adding the tests (although...not too important for a release, I guess) and maybe the frozen oceans (which are done here, I just need to update the data).
Also...you really didn't want to put the serialization-stuff into its own function?^^

about the serialization stuff, like this it is much easier to debug and to implement: when I support a new serialization method I start serializating the different elements one by one and as I figure things out I add another layer. So for me it is much simpler like this, until we introduce classes for the single layers and we reorder the World class.
About other features, I guess we will be always working on cool stuff we want but a certain point we need to release stuff so that users can benefit from it. I would suggest we do a release very soon and after that we start doing releases more and more often.

I think the frozen oceans are something that at least provides a visual benefit to users. And that's always good. ;P (Also: It is practically done, but nobody commented the latest version yet. I would have to adapt the HDF5-code a bit to make it work, though.)
The serialization-code should be put into its own function. I think it is very ugly that it appears twice in the same file (and we aren't talking about five lines of code) and even differs slightly due to personal preference of the person who wrote the respective lines of code.
Of course that's not a huge problem, especially since it's only tests we are talking about. I wouldn't object a merge at all, just wanted to put some more salt into the wound.^^

Well, there are other tasks to do before releasing the new version. Whatever it is merged before we tag release 0.19.0 can go in. Otherwise it could end up in 0.19.1.
This repository has ~700 commits. 200 commits have been added since we released version 0.18.0 (and we have not yet merged this PR). It is really time to share it with the world :)

I would really like to see the satellite-map as a standard output for the next release, since it is such great work by @pangal. Including polar caps. Of course it's not a necessity but it might leave a good impression to have some more eye-candy.

I definitely agree with that: I love the satellite view!

I suggest merging this PR and then https://github.com/Mindwerks/worldengine/pull/185 (which also fixes several bugs of the satellite-view - it's actually not just about tests). After that WorldEngine should be in a good state to release.
If there is another day we can wait, let's at least make the satellite-view a default. (Polar caps...well, I would prefer adding them now, since they also introduce a new variable that will be saved to the world-file. I don't know if that could cause any problems when done later.)

Let's start by merging this one then. At this point we should move to the next point of the schedule for releasing a new version which is getting the documentation ready. While we work on that we could merge more stuff but it is important to understand that it is not the end of the world if some feature ends up in the next release instead of this one.


Building the go binary with GOEXPERIMENT=boringcrypto shows security vulnerabilities on go 1.19+

What version of Go are you using (go version)?

$ go version
go 1.19+

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GOARCH="amd64"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.19.2/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.19.2/libexec/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.19.2"
GCCGO="gccgo"

What did you do?

Build the go binary with flag GOEXPERIMENT=boringcrypto flag
CGO_ENABLED=0 GOOS=linux GOEXPERIMENT=boringcrypto go build -a -o bin/xxx xxx.go

What did you expect to see?
There should not be High security vulnerabilities on the image with respect to version previous to go 1.19+
What did you see instead?
High Sev security vulnerabilities which were related to prior version of go  1.16.1x and 1.17.x , 1.18.x etc are showing up.
https://nvd.nist.gov/vuln/detail/CVE-2022-23806
https://nvd.nist.gov/vuln/detail/CVE-2021-41772
https://nvd.nist.gov/vuln/detail/CVE-2021-44716
https://nvd.nist.gov/vuln/detail/CVE-2022-1705
https://nvd.nist.gov/vuln/detail/CVE-2022-1962
https://nvd.nist.gov/vuln/detail/CVE-2022-23772
https://nvd.nist.gov/vuln/detail/CVE-2022-23773
https://nvd.nist.gov/vuln/detail/CVE-2022-23806
https://nvd.nist.gov/vuln/detail/CVE-2022-24675
https://nvd.nist.gov/vuln/detail/CVE-2022-24921
https://nvd.nist.gov/vuln/detail/CVE-2022-27664
https://nvd.nist.gov/vuln/detail/CVE-2022-28131
https://nvd.nist.gov/vuln/detail/CVE-2022-28327
https://nvd.nist.gov/vuln/detail/CVE-2022-2879
https://nvd.nist.gov/vuln/detail/CVE-2022-2880
https://nvd.nist.gov/vuln/detail/CVE-2022-30580
https://nvd.nist.gov/vuln/detail/CVE-2022-30630
https://nvd.nist.gov/vuln/detail/CVE-2022-30631
https://nvd.nist.gov/vuln/detail/CVE-2022-30632
https://nvd.nist.gov/vuln/detail/CVE-2022-30633
https://nvd.nist.gov/vuln/detail/CVE-2022-30635
https://nvd.nist.gov/vuln/detail/CVE-2022-32148
https://nvd.nist.gov/vuln/detail/CVE-2022-32189
https://nvd.nist.gov/vuln/detail/CVE-2022-41715

how are you determining that there are these vulnerabilities?

Seems to be issue with our scan. Closing it. Thanks.


ELB: Fix response templates

Summary
This PR fixes response template for SetRulePriorities operations. The template now correctly renders the list of Rule objects.
The list of valid Load Balancer attributes is also updated.

Codecov Report

Merging #5032 (36af29a) into master (794e940) will increase coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #5032      +/-   ##
==========================================
+ Coverage   95.73%   95.78%   +0.04%
==========================================
  Files         663      663
  Lines       66415    66415
==========================================
+ Hits        63585    63618      +33
+ Misses       2830     2797      -33

Flag
Coverage Δ

servertests
36.59% <ø> (?)

unittests
95.73% <ø> (-0.01%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

moto/elbv2/models.py
92.55% <ø> (ø)

moto/elbv2/responses.py
99.43% <ø> (ø)

moto/resourcegroupstaggingapi/models.py
83.18% <0.00%> (-0.59%)
:arrow_down:

moto/route53/responses.py
96.69% <0.00%> (-0.42%)
:arrow_down:

moto/sns/models.py
96.83% <0.00%> (-0.40%)
:arrow_down:

moto/sqs/models.py
96.76% <0.00%> (-0.18%)
:arrow_down:

moto/config/models.py
99.22% <0.00%> (-0.13%)
:arrow_down:

moto/ssm/models.py
94.42% <0.00%> (-0.11%)
:arrow_down:

moto/core/responses.py
93.78% <0.00%> (+0.45%)
:arrow_up:

moto/core/models.py
96.94% <0.00%> (+8.94%)
: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 794e940...36af29a. Read the comment docs.


laplace/gaussian floating-point-safe samplers

Ported, with modifications throughout, from SmartNoise.

introduces dependencies on openssl and gmp/mpfr
adds feature flags to disable gmp/mpfr
restructure meas submodule
reference new samplers from laplace and gaussian mechanisms

New samplers:

standard bernoulli
bernoulli
standard uniform
uniform
censored standard geometric (accumulates tail of probability < ~2^-52 into fully-saturated 1022)
censored geometric
laplace (mpfr and non-mpfr)
gaussian (mpfr and non-mpfr)

I also added a simple scheme to sample laplace noise at 53 bits of precision using mpfr. This sidesteps the obvious inverse transform issue, but it is not yet clear if this leaves other floating vulnerabilities.

Gulp, openssl is a big dependency with a lot of issues. Let's have a discussion about this (and dependencies in general).

For any randomized function, we could take an rng source as a generic-
fn myfunc<RNG>(rng: RNG, ...) -> ... where RNG: rand::CryptoRng + rand::RngCore
...and then move the openssl dependency out to the FFI crate. Obviously anyone could impl CryptoRng on a newtype for a non-crypto or static noise generator.


[bug] Wallet does not open in Telegram min app

Is there an existing issue for this?

[X] I have searched the existing issues

RainbowKit Version
2.2.0
wagmi Version
2.12.29
Current Behavior
Wallet does not open in Telegram min app (WebView) in Telegram (iOS/Android).
You need to change from window.location.href to window.open, but window.open does not work correctly because you are using await just before.
https://github.com/rainbow-me/rainbowkit/blob/main/packages/rainbowkit/src/components/ConnectOptions/MobileOptions.tsx#L111
Expected Behavior
The opening of the wallet application.
Steps To Reproduce

launch Telegram (iOS)
launch Telegram mini app with rainbowkit
open binance wallet, okx wallet, bitget wallet etc.
wallet does not open

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
No response

I am also facing the same issue

@nishina-y @skushagra9 Do you have a Mini App example or deployment we can test against? Will look into this!

https://t.me/rainbowkit_test_bot
@DanielSinclair Hi. You can open the https://www.rainbowkit.com/docs/introduction page through the Mini App in this bot with your mobile Telegram, and then try to connect wallet to reproduce the problem we encountered.

You can create a TG Bot by @BotFather, and set the page URL of Mini App, then open the Mini App, connect wallet. You can reproduce the problem we encountered.


Visual studio 2015, 3.6 enviornment cant import openssl

The interpreter works outside visual studio, when i do interactive python inside VS it will import.
I tried repairing and reinstalling, i downgraded python tools that did not solve. VS 2017 not option. Id post some type of log file but i dont know how. I tried clicking the link that says before posting/contributor and it mentions code of conduct, but i didnt see a quick, logging.
I have 2.7 working fine inside VS but the additional 3.6 not working, has worked in past.
Its able to import other libraries, example nltk.

You say "VS 2017 not option" - does that mean you're on an older version? Just to set expectations, we usually only fix bugs in the latest release.
If you can post a few screenshots of what you're typing and what you're seeing, that will help us get started.

I made a 90 second video: https://github.com/sb07/video-for-zooba/blob/master/outputFile.avi
Yes older version, thought maybe someone knows a quick fix. Id rather pay for 2017 license then get community edition, but i dont generate enough from my work.

It looks a bit like the break in the debugger is a false positive, and that you simply ought to continue running past it. Perhaps you have set the flag to always break on ImportError?

That was precisely the issue. continuing running runs the script.
Under Tools>>Options>>Python Tools>>Debugging
the last field 'Enable debugging of the standard python library' is by default not checked.
When it is checked this false positive is presented, if you import certain library like requests.

Glad you got it figured out!


Question about Local Control Strategy

A simple but practical segmentation tool! I've read your paper, and it says that local control strategy is used in S2M. However, I don't find the local control step in this code. Why don't you provide it in this tool? Will local control make significant difference to the performance?

It's in the GUI: https://github.com/hkchengrex/MiVOS


support for Jax-like custom forward pass definition?

Is there a way to define a custom forward pass, like in jax, where one can output a residual that may be used by the backward pass?
For example, is the following example (from the Jax docs) implementable in autograd?
from jax import custom_vjp

@custom_vjp
def f(x, y):
  return jnp.sin(x) * y

def f_fwd(x, y):
# Returns primal output and residuals to be used in backward pass by f_bwd.
  return f(x, y), (jnp.cos(x), jnp.sin(x), y)

def f_bwd(res, g):
  cos_x, sin_x, y = res # Gets residuals computed in f_fwd
  return (cos_x * g * y, sin_x * g)

f.defvjp(f_fwd, f_bwd)

In PyTorch, you can define a custom forward pass by subclassing torch.autograd.Function. This allows you to specify the forward pass, backward pass, and gradient computation of your custom function.
For example, you could implement the Jax f function as follows in PyTorch:
import torch

class f(torch.autograd.Function):
    @staticmethod
    def forward(ctx, x, y):
        ctx.save_for_backward(x, y)
        return torch.sin(x) * y

    @staticmethod
    def backward(ctx, grad_output):
        x, y = ctx.saved_tensors
        cos_x = torch.cos(x)
        sin_x = torch.sin(x)
        grad_x = grad_output * cos_x * y
        grad_y = grad_output * sin_x
        return grad_x, grad_y

x = torch.tensor(1.0, requires_grad=True)
y = torch.tensor(2.0, requires_grad=True)

output = f.apply(x, y)
output.backward()

print(x.grad) # tensor(-1.0806)
print(y.grad) # tensor(0.8415)

Here, ctx.save_for_backward is used to save the values of x and y for use in the backward pass. The backward method then computes the gradients with respect to x and y using the saved values and the chain rule. Finally, the apply method is used to apply the custom function to the inputs x and y.


Crashes When Switching Between Extension Tabs and Moving Minimized Window

When you switch between extensions installed and not installed then try to move your window Visual Studio Code quits the application, It happens when resizing and moving the non fullscreen window

Screen recording showing the crash
Screen Recording 2020-03-16 at 5.41.32 PM.zip

Not sure how to provide log but i found this in Console system.log after app crashes
Mar 16 18:11:44 Joshuas-MBP com.apple.xpc.launchd[1] (com.microsoft.VSCode.5908[10604]): Service exited due to SIGSEGV | sent by exc handler[10604]

@sternex thanks for the recording, this issue is same as https://github.com/microsoft/vscode/issues/92420 . Please follow that issue for udpates. Thanks!


refactor: move localplayer out of networkserver and into network world

BREAKING!
It just feels like the LocalPlayer should not be at the same layer as the NetworkServer as it could have multiple worlds running. Any one of (or multiple?) could have local players.
companion to #900

I like the idea, but I dont think this will work for host mode, because there are 2 "local" players, one server version, and one client version. Each sends message to the others dataHandler, if there was just one they wouldn't know where to send message

I like the idea, but I dont think this will work for host mode, because there are 2 "local" players, one server version, and one client version. Each sends message to the others dataHandler, if there was just one they wouldn't know where to send message

that probably explains the issues im running into. damn.


Memoized state creates flaky build issues

In ErrorProneAnalyzer, there is memoized state - https://github.com/google/error-prone/blob/de639a1ef4d962b984741ed346f0519c85eb6122/check_api/src/main/java/com/google/errorprone/ErrorProneAnalyzer.java#L67
This causes issues when custom checkers classes loaded onto the classpath via the jars on the processrpath are no longer present/renamed etc.
Ideally, the compiler should be stateless so that when invoked in memory/compiler daemons in build systems like buck/gradle/bazel, further invocations are also always idempotent.
Stacktrace:
BUILD FAILED: //tooling/error-prone/test-code-checkers:src_main failed with exit code 1:
javac_jar
stderr: An exception has occurred in the compiler (9-internal). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.util.ServiceConfigurationError: com.google.errorprone.bugpatterns.BugChecker: Provider com.example.CustomChecker not found
	at java.util.ServiceLoader.fail(ServiceLoader.java:239)
	at java.util.ServiceLoader.access$300(ServiceLoader.java:185)
	at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:372)
	at java.util.ServiceLoader$LazyIterator.access$700(ServiceLoader.java:323)
	at java.util.ServiceLoader$LazyIterator$2.run(ServiceLoader.java:407)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:409)
	at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
	at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:47)
	at com.google.errorprone.scanner.ScannerSupplier.fromBugCheckerClasses(ScannerSupplier.java:73)
	at com.google.errorprone.ErrorPronePlugins.loadPlugins(ErrorPronePlugins.java:53)
	at com.google.errorprone.ErrorProneAnalyzer.lambda$scansPlugins$0(ErrorProneAnalyzer.java:73)
	at com.google.common.base.Suppliers$NonSerializableMemoizingSupplier.get(Suppliers.java:160)
	at com.google.errorprone.ErrorProneAnalyzer.finished(ErrorProneAnalyzer.java:145)
	at com.sun.tools.javac.api.MultiTaskListener.finished(MultiTaskListener.java:120)
	at com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1277)
	at com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1226)
	at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:840)
	at com.sun.tools.javac.api.JavacTaskImpl$1.call(JavacTaskImpl.java:97)
	at com.sun.tools.javac.api.JavacTaskImpl$1.call(JavacTaskImpl.java:93)
	at com.sun.tools.javac.api.JavacTaskImpl.handleExceptions(JavacTaskImpl.java:128)
	at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:93)
	at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:87)
	at com.google.errorprone.BaseErrorProneJavaCompiler$1.call(BaseErrorProneJavaCompiler.java:99)
	at com.facebook.buck.jvm.java.Jsr199Javac.buildWithClasspath(Jsr199Javac.java:292)
	at com.facebook.buck.jvm.java.Jsr199Javac.buildWithClasspath(Jsr199Javac.java:155)
	at com.facebook.buck.jvm.java.JavacStep.performBuild(JavacStep.java:200)
	at com.facebook.buck.jvm.java.JavacStep.tryBuildWithFirstOrderDeps(JavacStep.java:190)
	at com.facebook.buck.jvm.java.JavacStep.execute(JavacStep.java:151)
	at com.facebook.buck.jvm.java.JavacDirectToJarStep.execute(JavacDirectToJarStep.java:95)
	at com.facebook.buck.step.DefaultStepRunner.runStepForBuildTarget(DefaultStepRunner.java:47)
	at com.facebook.buck.rules.CachingBuildEngine.executeCommandsNowThatDepsAreBuilt(CachingBuildEngine.java:1466)
	at com.facebook.buck.rules.CachingBuildEngine.lambda$15(CachingBuildEngine.java:339)
	at com.facebook.buck.util.concurrent.WeightedListeningExecutorService.lambda$0(WeightedListeningExecutorService.java:81)
	at com.google.common.util.concurrent.AbstractTransformFuture$AsyncTransformFuture.doTransform(AbstractTransformFuture.java:211)
	at com.google.common.util.concurrent.AbstractTransformFuture$AsyncTransformFuture.doTransform(AbstractTransformFuture.java:200)
	at com.google.common.util.concurrent.AbstractTransformFuture.run(AbstractTransformFuture.java:130)
	at com.google.common.util.concurrent.MoreExecutors$5$1.run(MoreExecutors.java:988)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

cc @msridhar

After killing the compiler daemon jvm, the next compilation command worked without failures as intended

We dug a bit more into this issue today, and realized the description above is not quite correct; memoization does not seem to be the problem.  Here is what is going on.  We are using Error Prone with Buck and the Buck daemon, with java compilation run in-process.  We do one build successfully.  Then, we make a change that deletes a plug-in checker.  Now, when we try to do another build (with the same daemon process), we get a crash with the stack above, indicating that the deleted checker cannot be loaded.  Digging into to the code, this means that somehow, the ServiceLoader is seeing a stale version of the META-INF/services/com.google.errorprone.bugpatterns.BugChecker file, which still includes the name of the deleted checker.  But, it does see the up-to-date jar when doing the actual class loading, and hence cannot load the missing class and crashes.  When we disable the Buck daemon, we cannot reproduce the issue, which means it is likely due to some global state somewhere.
At this point, we are stumped as to where the bug might be, since we cannot track down the stale state.  (It could even be a JDK bug, who knows.)  Just wanted to write this down in case it helps someone recognize the problem.

Closing since since there isn't a good way to reproduce this and it's not clear if it's a bug in the JDK, or the daemon, or Error Prone itself. Feel free to re-open if you reencounter this.

Closing since since there isn't a good way to reproduce this and it's not clear if it's a bug in the JDK, or the daemon, or Error Prone itself. Feel free to re-open if you reencounter this.


Investigate xUnit "non-serializable data" warnings

Kestrel tests have hundrends of this scary-looking warning from xunit:
[12:02:22] : [Step 4/7]   [xUnit.net 00:00:00.3409135] Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Tests: Non-serializable data
('System.Object[]') found for 'Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Tests.LibuvTransportTests.TransportCanBindUnbindAndStop';
falling back to single test case.

http://aspnetci/viewLog.html?buildId=451476&tab=buildLog&buildTypeId=Lite_KestrelHttpServer&logTab=tree&filter=all&_focus=847#_state=350
They started when xUnit diagnostics messages were enabled (https://github.com/aspnet/KestrelHttpServer/pull/2505).  We should investigate what's causing these warnings, what is their implication (does it mean less tests are run than expected), and how to fix them.

It's caused by non-serializable parameters in xunit tests. SignalR had the same thing - https://github.com/aspnet/SignalR/issues/1649
All tests are still run, you just don't see them as there own nodes in the VS test explorer.

Partial fix at https://github.com/aspnet/KestrelHttpServer/pull/2520.  Decided the fix was getting too complicated and it would be better to just disable xUnit diagnostic messages.


Add datetime from timestamp

Thank you @yordis! As discussed with you on Slack, I don't think this belongs in this library. This library is purely a collection of generated Protobuf Elixir files, so adding logic here increases the scope of the library and sets a precedent that I don't think we should set. Converting a timestamp to a DateTime doesn't add much complexity for users of this library after all.
I’m happy to add such a snippet to an "Examples" or "Things to Know" section in the README.
Thanks again! 💟

@whatyouhide would you change your mind over this one? Just because DateTime is part of the language, really frustrating to continue copy+pasting this between projects; built-in support to cast DateTime to timestamp seems reasonable.


Is matio capable of handle timeseries?

Hello, I'm trying to parse a file that contain timeseries. However, I'm not able to get that values. Is matio capable of handle this kind of data?
thanks in advance.

see https://github.com/tbeu/matio/issues/99
You can save timeserie as a struct as workaround.
struct(ts)


I have mosaics when the pdf is rolling,How can I deal with it?

when I move the pdf,the word at top and bottom comes illegible. We call it mosaics

.
when the pdf stop,the word comes clear. How can I deal with it please?

has the same problem


Handle errors during custom processor upload

Upload a custom processor after entering an empty JSON {} in the input and output schema. The upload wheel icon keeps spinning and nothing happens.
The HTTP status code is 400 and the response content is
Can not deserialize instance of java.util.ArrayList out of START_OBJECT token  at [Source: {"streamingEngine":"STORM","name":"test","description":"test","customProcessorImpl":"com.hortonworks.streamline.examples.processors.ConsoleCustomProcessor","inputSchema":{"fields":{}},"outputSchema":{"fields":{}},"topologyComponentUISpecification":{"fields":[{"fieldName":"a","uiName":"a","isOptional":false,"type":"string","defaultValue":"a","isUserInput":true,"tooltip":"a"}]},"jarFileName":"streamline-examples-processors-0.1.0-SNAPSHOT.jar"}; line: 1, column: 181] (through reference chain: com.hortonworks.streamline.streams.catalog.processor.CustomProcessorInfo["inputSchema"]->com.hortonworks.registries.common.Schema["fields"])
However UI seems to be parsing the response text as a JSON and failing. I see the below error in the developer console. Uncaught (in promise) SyntaxError: Unexpected token C in JSON at position 0
UI should also take the HTTP response code into account before trying to parse the response text as a JSON. You may also want to check/fix the other pages where we let user upload jars.

https://github.com/hortonworks/streamline/pull/814 PR has been raised to fix this issue

PR has been merged


stop dispatching and clear down inflight messages before moving a Destination on Fabric8MQ

Refer to this link for build results (access rights to CI server needed):
https://fabric8-ci.fusesource.com/job/fabric8-quickstarts-master-pullreq/544/
Test PASSed.

merged


Adding a multiline CSV extractor

The current CSV extractor seems to not work with files with entries which are not in only one line (multiline entries).
Need documentation update.

Not sure if it's necessary to do a new CSV extractor, it's just a small fix. We could do it for the basic CSV extractor

@AurelienRasselet OK!

Fix done and merged.


Demonstrator documentation

Instructions for running the demonstrator

Going to merge this documentation without the revocation workflow, and submit a separate PR later for that piece


ggplot.show() method?

I feel like the ggplot objects would be served by a .show() method. Currently you're supposed to display them by printing them, but that also prints the <ggplot: ...> thing. You can avoid that by calling repr() instead of print, but that's unintuitive.
.show() could also accept optional width/height parameters, like .save() does, which would be useful in jupyter notebooks.
If there's no objection, I might be able to make a PR for this sometime soonish.

agreed. i will add it

f658c1a6be8e6218d73f604c400d4552efb80d4c


Brew install pkgx errors with "please install unzip" (because of deno)

Problem description
I just noticed, that while on WSL (Ubuntu) and using linuxbrew, running brew install pkgx  yields the following error, so I figured I'd report it here:
❯ brew install pkgx
==> Auto-updating Homebrew...
Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Fetching pkgxdev/made/pkgx
==> Downloading https://github.com/pkgxdev/pkgx/releases/download/v1.1.6/pkgx-1.1.6.tar.xz
Already downloaded: /home/fredrik/.cache/Homebrew/downloads/c8b2441dfddcbd6b0ef34fb1621836e46340e44576acd184a9e0bca2a45121cd--pkgx-1.1.6.tar.xz
==> Installing pkgx from pkgxdev/made
==> deno task compile
Last 15 lines from /home/fredrik/.cache/Homebrew/Logs/pkgx/01.deno:
Download<EMAIL_ADDRESS>Download<EMAIL_ADDRESS>Download<EMAIL_ADDRESS>Download<EMAIL_ADDRESS>Download<EMAIL_ADDRESS>Download<EMAIL_ADDRESS>Download<EMAIL_ADDRESS>Download<EMAIL_ADDRESS>Check file:///tmp/pkgx-20240407-4211-1mb6el/pkgx-1.1.6/entrypoint.ts
Compile file:///tmp/pkgx-20240407-4211-1mb6el/pkgx-1.1.6/entrypoint.ts to /tmp/pkgx-20240407-4211-1mb6el/pkgx-1.1.6/pkgx
Download https://dl.deno.land/release/v1.42.1/denort-x86_64-unknown-linux-gnu.zip
error: Writing /tmp/pkgx-20240407-4211-1mb6el/pkgx-1.1.6/pkgx

Caused by:
    `unzip` was not found in your PATH, please install `unzip`

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/pkgxdev/homebrew-made/issues

However, I have unzip installed:
❯ which unzip
/home/linuxbrew/.linuxbrew/bin/unzip

❯ unzip
UnZip 6.00 of 20 April 2009, by Debian. Original by Info-ZIP.

Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
  Default action is to extract files in list, except those in xlist, to exdir;
  file[.zip] may be a wildcard.  -Z => ZipInfo mode ("unzip -Z" for usage).

  -p  extract files to pipe, no messages     -l  list files (short format)
  -f  freshen existing files, create none    -t  test compressed archive data
  -u  update files, create if necessary      -z  display archive comment only
  -v  list verbosely/show version info       -T  timestamp archive to latest
  -x  exclude files that follow (in xlist)   -d  extract files into exdir
modifiers:
  -n  never overwrite existing files         -q  quiet mode (-qq => quieter)
  -o  overwrite files WITHOUT prompting      -a  auto-convert any text files
  -j  junk paths (do not make directories)   -aa treat ALL files as text
  -U  use escapes for all non-ASCII Unicode  -UU ignore any Unicode fields
  -C  match filenames case-insensitively     -L  make (some) names lowercase
  -X  restore UID/GID info                   -V  retain VMS version numbers
  -K  keep setuid/setgid/tacky permissions   -M  pipe through "more" pager
  -O CHARSET  specify a character encoding for DOS, Windows and OS/2 archives
  -I CHARSET  specify a character encoding for UNIX and other archives

See "unzip -hh" or unzip.txt for more help.  Examples:
  unzip data1 -x joe   => extract all files except joe from zipfile data1.zip
  unzip -p foo | more  => send contents of foo.zip via pipe into program more
  unzip -fo foo ReadMe => quietly replace existing ReadMe if archive file newer

Solution / workaround
A sudo apt install unzip solved it, but I think maybe this should've worked since unzip was already on $PATH.
Feel free to close this issue anytime, as I just wanted to bring attention to this - along with the workaround.

@fredrikaverpil , I can confirm https://github.com/pkgxdev/homebrew-made/commit/1733eb9363f748d470752924ee0ed4e94c9d0bac lets me install in a clean debian:buster-slim docker image without unzip installed explicitly.
$ apt-get update && apt-get install -y curl git psutils
...
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
...
$ (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /root/.bashrc
$ eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
$ brew install pkgxdev/made/pkgx
...
==> Installing pkgxdev/made/pkgx
==> deno task compile
==> Caveats
try it out:

    pkgx node@18 --eval 'console.log("pkgx: run anything")'

shell integration:

    pkgx integrate --dry-run
    # ^^ https://docs.pkgx.sh/shell-integration
==> Summary
🍺  /home/linuxbrew/.linuxbrew/Cellar/pkgx/1.1.6: 5 files, 89.1MB, built in 9 seconds
==> Running `brew cleanup pkgx`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Caveats
==> pkgx
try it out:

    pkgx node@18 --eval 'console.log("pkgx: run anything")'

shell integration:

    pkgx integrate --dry-run
    # ^^ https://docs.pkgx.sh/shell-integration

are you able to confirm the install works (you might need to brew update, or brew untap pkgxdev/made/pkgx to get it to refresh), without unzip from the OS package manager?

Very nice, I can confirm that you fixed this. 🎉
❯ brew uninstall pkgx
Uninstalling /home/linuxbrew/.linuxbrew/Cellar/pkgx/1.1.6... (5 files, 89.1MB)

❯ brew untap pkgxdev/made
Untapping pkgxdev/made...
Untapped 1 formula (48 files, 256KB).

❯ sudo apt-get remove unzip
[sudo] password for fredrik:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  libntfs-3g89
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
  unzip
0 upgraded, 0 newly installed, 1 to remove and 33 not upgraded.
After this operation, 385 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 78723 files and directories currently installed.)
Removing unzip (6.0-26ubuntu3.1) ...
Processing triggers for man-db (2.10.2-1) ...

❯ brew tap pkgxdev/made
==> Auto-updating Homebrew...
Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Auto-updated Homebrew!
Updated 5 taps (go-task/tap, homebrew/bundle, homebrew/linux-fonts, homebrew/core and homebrew/cask).
==> New Formulae
liblc3                                     msieve                                     rage                                       rustcat
==> New Casks
ente-auth                                  outfox                                     toneprint                                  viable

You have 3 outdated formulae installed.

==> Tapping pkgxdev/made
Cloning into '/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/pkgxdev/homebrew-made'...
remote: Enumerating objects: 366, done.
remote: Counting objects: 100% (185/185), done.

remote: Compressing objects: 100% (81/81), done.
remote: Total 366 (delta 106), reused 169 (delta 93), pack-reused 181
Receiving objects: 100% (366/366), 61.82 KiB | 1.31 MiB/s, done.
Resolving deltas: 100% (207/207), done.
Tapped 1 formula (19 files, 179KB).

❯ brew install pkgx
==> Auto-updating Homebrew...
Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Fetching pkgxdev/made/pkgx
==> Downloading https://github.com/pkgxdev/pkgx/releases/download/v1.1.6/pkgx-1.1.6.tar.xz
Already downloaded: /home/fredrik/.cache/Homebrew/downloads/c8b2441dfddcbd6b0ef34fb1621836e46340e44576acd184a9e0bca2a45121cd--pkgx-1.1.6.tar.xz
==> Installing pkgx from pkgxdev/made
==> deno task compile
==> Caveats
try it out:

    pkgx node@18 --eval 'console.log("pkgx: run anything")'

shell integration:

    pkgx integrate --dry-run
    # ^^ https://docs.pkgx.sh/shell-integration
==> Summary
🍺  /home/linuxbrew/.linuxbrew/Cellar/pkgx/1.1.6: 5 files, 89.1MB, built in 14 seconds
==> Running `brew cleanup pkgx`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).


2 HTTP Authentications in one scenario

Is there a way to use 2 http authentications in 1 test scenario?
Test scenario:

Open first page with http auth
Choosing options
Choosing a catalog (click) (which leads to the second http auth)

Actual result: Not able to use the second httpauth because it's being overwritten and this leads to unauthorized.
Is there any way to use 2 httpAuths in one test case or something like this. Or any workaround?
The project is internal and I am not able to share it.

TestCafe does not provide the capability to set multiple HTTP authentications in one test scenario. However, I think you can bypass this restriction using the Request Hooks  mechanism.
You can modify your request by adding required authorization headers.
I recommend you check this module which TestCafe uses internally to have an idea which headers should be added to your request.


Not able to deploy grafana using latest helm charts.

Describe the bug
A clear and concise description of what the bug is.
Version of Helm and Kubernetes: version.BuildInfo{Version:"v3.0.2",
Which chart:helm grafna
What happened: while deploying new helm charts, getting template error
coalesce.go:196: warning: cannot overwrite table with non table for image (map[repository:kiwigrid/k8s-sidecar tag:0.1.151])
Error: template: grafana/templates/deployment.yaml:43:10: executing "grafana/templates/deployment.yaml" at <include "grafana.pod" .>: error calling include: template: grafana/templates/_pod.tpl:99:22: executing "grafana.pod" at <.Values.sidecar.image.repository>: can't evaluate field repository in type interface {}
What you expected to happen:
should deploy successfully in k8s
How to reproduce it (as minimally and precisely as possible):
download latest helm charts from github and try to deploy to k8s using helm install
Anything else we need to know:

added custom values and started working

where did you add the custom values?

Please try to change sidecar container configuration as per template in your values file. or take values file and change as per req and deploy it.

Please try to change sidecar container configuration as per template in your values file. or take values file and change as per req and deploy it.

Hey, I' struggling to figure this out. Could you show me where exactly have you used the custom value. I'm currently using this deprecated chart (8.15.1) and keep getting this error


autocomplete not working for input if data is dynamically bind through webservice

I am implementing autocomplete for input text box.
my html is--->
    <mz-input-container class="input-field col s12">
      <i class="icon-vkv-icons-set-28 prefix"></i>
      <input mz-input mz-validation [formControl]='pinCodeCtrl' id="pinCode" type="text"
             [errorMessageResource]="errorMessageResources.pinCode" [autocomplete]="pincodes"
             [label]="'Enter your pincode'" />
    </mz-input-container>

Here if i bind pincode statically then auto complete works.
but if i try to fill pin code dynamically using web service then it dont work even if static and dynamic pincode collection are same .
My controller is -- >
ngOnInit() {
this.pincodeDataService.getPincodeList(pincodeInitials)
.subscribe((data) => {
this.pincodes1 = data;
this.pincodes1.forEach(s => {
if (this.pincodes["data"] == undefined)
this.pincodes["data"] = {};
this.pincodes["data"][s.pin_code] = s.pin_code_id;
})
}
is there any demo or way which will show dynamic autocomplete.

up

You have to manually fire the autocomplet method of ngx using view child

@prasadsawant12 have you an example ?


Update to swift 4.2

@kishikawakatsumi Could you pull this in? It's required to build in the latest version of Xcode (10.2 w/ Swift 5)

@kishikawakatsumi  can u please provide framework update to support swift 5 , Xcode 11.2. We r currently blocked by this
Appreciate your time
Thanks

Hi @kishikawakatsumi ,
I tried creating Spreadsheet FW supporting swift 5 for both and simulator support as per below.
/Desktop/SpreadsheetView.framework/SpreadsheetView are: i386 x86_64 armv7 arm64
But it still don't work for phones. i have to add specific FW to build on each. Any clue?
Please find FW in attachment:
SpreadsheetView.framework.zip

Done about up swift version to 5. I will release it. I close this PR. Thank you your contributions 👍
https://github.com/bannzai/SpreadsheetView/pull/256


fixed dependency to es6-promise-plugin

Here's the desired pull request for https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/issues/922. Could you please merge it :-)? Thanks in advance.

Sure, thanks! Closes #922.

Awesome, thanks!

Version 5.3.2 is now on npm.


Formula in NoteProperty  exported using Export-Excel is broken with #REF!

Hi Doug et al.
Thanks v much for Import-Excel. Class!
I've discovered an issue, described below;
Module version used
Version    Name                                Repository           Description
-------    ----                                ----------           -----------
7.8.6      ImportExcel                         PSGallery            PowerShell module to import/export Excel spreadsheets, w...

Before exporting PSCustomObject using Export-Excel I modify the object to add two NoteProperty members.

function "Add-ParameterToObject" implements "Add-Member" {
    ...
    foreach ($key in $Parameters.Keys) {
            $InputObject | Add-Member -NotePropertyName $key -NotePropertyValue $Parameters[$key] -Force
        }
    ...
}

$object = Add-ParameterToObject -InputObject $object -Parameters ([ordered]@{
    Developer = $DeveloperFormula
    Team = $TeamFormula
})

   TypeName: Selected.System.Management.Automation.PSCustomObject

Name         MemberType   Definition
----         ----------   ----------
Developer    NoteProperty string Developer==IF(OR([@status]="Closed",[@status]="Resolved"),[@LastResolutionUserEmailName],[@assignee])
Team         NoteProperty string Team==VLOOKUP([@Developer],ResourcesTable,2,0)

The content added are formula (known to work) that use column name references.
When I open and review the excel, the formula are broken #REF! as follows
=IF(OR(#REF!="Closed",#REF!="Resolved"),#REF!,#REF!)
=VLOOKUP(#REF!,ResourcesTable,2,0)
Checking the xml source of the xlsx document by decompressing the archive, I observe the xml representation of in the columns is matching the inserted strings.
\ExcelFile.xlsx\xl\worksheets\sheet1.xml
IF(OR([@status]="Closed",[@status]="Resolved"),[@LastResolutionUserEmailName],[@assignee])
VLOOKUP([@Developer],ResourcesTable,2,0)
The opening and closing tags    encapsulate the correct formula definition.
And with the file open in Excel, if I overtype/paste the same formula into the cells, that works.
Sample code
# Define XL formula used in two new columns.
$DeveloperFormula = [string]'=IF(OR([@status]="Closed",[@status]="Resolved"),[@LastResolutionUserEmailName],[@assignee])'
$TeamFormula = [string]'=VLOOKUP([@Developer],ResourcesTable,2,0)' # VLOOKUP

# Add two columns containing XL formula before exporting to Excel.
$Object = Add-ParameterToObject -InputObject $Jira -Parameters ([ordered]@{
    Developer = $DeveloperFormula
    Team = $TeamFormula
})

# Export the data
$ExcelPackage = $Object | Export-Excel -Path $excelPath -TableName CCdata -TableStyle Medium5 -FreezeTopRow -BoldTopRow -WorksheetName $excelName -PassThru

# Close and show ExcelPackage
Close-ExcelPackage $ExcelPackage -Show

This issue has stopped reproducing for me. Unfortunatly I am not able to offer a reason for this, as the issue just "went away" inexplicably.


Update webview docs

@zoherghadyali

Docs Build status updates of commit 2af3ec1:
:warning: Validation status: warnings

File
Status
Preview URL
Details

microsoft-edge/hosting/WebView2.md
:warning:Warning

Details

microsoft-edge/hosting/webview2/GettingStarted.md
:warning:Warning

Details

microsoft-edge/hosting/webview2/reference-webview2.md
:warning:Warning

Details

microsoft-edge/hosting/toc.md
:white_check_mark:Succeeded

microsoft-edge/hosting/WebView2.md

Line 25: [Warning] Invalid file link:(~/hosting/webview2/gettingstarted).
Line 25: [Warning] Invalid file link:(~/hosting/webview2/reference-webview2).

microsoft-edge/hosting/webview2/GettingStarted.md

Line 15: [Warning] Invalid file link:(~/hosting/webview2/reference-webview2).
Line 240: [Warning] Invalid file link:(~/hosting/webview2/webview2/reference-webview2).

microsoft-edge/hosting/webview2/reference-webview2.md

Line 15: [Warning] Invalid file link:(~/hosting/webview2/gettingstarted).

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.


copier always using tag, even locally with dirty changes

Describe the problem
When using copier with a local repository that contains tags, it always uses the latest tag instead of the current checkout.
Confusingly, it prints a warning that it does use dirty local changes - but does then proceed to not use them:
copier template-python-project test
/home/f.ludwig/.local/pipx/venvs/copier/lib64/python3.10/site-packages/copier/vcs.py:156: DirtyLocalWarning: Dirty template changes included automatically.

[...]

Copying from template version 0.0.3

Template

To Reproduce

git clone a template with tags
make local changes
run copier on local repo

Expected behavior
Use local changes (or have flag to choose)
Environment

OS: linux
Copier version: 6.2.0
Python version: 3.10.7
Installation method: pipx

https://copier.readthedocs.io/en/latest/generating/#templates-versions explains this expected behavior

In short: use copier -r HEAD to include unstaged/uncommitted modifications.


Route voicemail to volunteers, not just the coordinator

I'd like to be able to route voicemail to helpline volunteers not just the coordinator.
We have a particular Area which has a single volunteer on per shift and they are not keen on the voicemail to email solution.
Describe the solution you'd like
if a call comes through and there is only a single volunteer we would like to ability to route the voicemail to the volunteer or the coordinator (or both)
Describe alternatives you've considered
Just the shared mailbox but they are saying it's complicated for volunteers to set up. (I disagree but I'm just the messenger)
Additional context
This would empower volunteers if they accidentally miss a call.  They'd get the voicemail straight away.
Not sure how it would work with multiple volunteers... Maybe only enable this if you have a single volunteer on per shift.

you can currently add multiple voicemail notifications per service body, simply comma separate the values. this can be done with both numbers and emails.  so ex.<PHONE_NUMBER>,<PHONE_NUMBER>,<PHONE_NUMBER>   or<EMAIL_ADDRESS><EMAIL_ADDRESS>

https://yap.bmlt.app/docs/helpline/voicemail/

That's understood however that will send voicemail irrespective of the volunteer's shift whereas I'd like to limit it to when they are rostered on.
Regards
Bruce

From: pjaudiomv<EMAIL_ADDRESS>Sent: Thursday, November 29, 2018 10:31:13 PM
To: bmlt-enabled/yap
Cc: brustar64; Author
Subject: Re: [bmlt-enabled/yap] Route voicemail to volunteers, not just the coordinator (#211)
https://yap.bmlt.app/docs/helpline/voicemail/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/bmlt-enabled/yap/issues/211#issuecomment-442816831, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Abqjr4ruJO3WUFGhilERmcJgRi-T2Vz6ks5uz9ORgaJpZM4Y5Ys6.

true true. makes sense.

This is a reasonable feature request.

This is in master now and slated for yap 3.0.0-beta4

@brustar64 can you test this?

Will do later tonight
Regards
Bruce

From: Danny Gershman<EMAIL_ADDRESS>Sent: Monday, March 11, 2019 1:24:14 PM
To: bmlt-enabled/yap
Cc: brustar64; Mention
Subject: Re: [bmlt-enabled/yap] Route voicemail to volunteers, not just the coordinator (#211)
@brustar64https://github.com/brustar64 can you test this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/bmlt-enabled/yap/issues/211#issuecomment-471391968, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Abqjr6aTms9MIG5I4igp7EJvP-wjtDj_ks5vVcxegaJpZM4Y5Ys6.

@brustar64 reported this feature wasn't working.

patched in beta6.1

@brustar64 were you able re-test this?

Yes - this now works perfectly


Embedded Array is not passed to template?

Hi guys,
I am just trying this out and ran into a problem.
Within my template I can not access data of an embedded array:
I got an Collection with this kind of layout. Basically it has an embedded array.
{
  "_id": "D8S9xsivtqrBaibkC",
  "customerName": "Cool guy",
  "scoopItems": [
    {
      "amount": 2,
      "scoopId": "j2GW9giQrj57fm9og",
      "scoopInstance": {
        "name": "Vanilla",
        "price": 1
      }
    },
    {
      "amount": 1,
      "scoopId": "6Bn4DLpAkaQasexgB",
      "scoopInstance": {
        "name": "Chocolate",
        "price": 1
      }
    }
  ]
}

The problem is that the "scoopItems" do not show up in my template.
<template name="scoopOrderItemsTemplate">
  "{{theRow.customerName}}" bought an icecream:
  {{#each theRow.scoopItems}}
    {{scoopInstance.name}} ({{scoopInstance.price}} €)
  {{/each}}
</template>

TabularTables.AutoformScoopOrders = new Tabular.Table({
  name: 'AutoformScoopOrders',
  collection: AutoformScoopOrders,
  columns: [
    {data: 'customerName', title: 'Name'},
    {
      title: 'Bestellungen',
      tmpl: Meteor.isClient && Template.scoopOrderItemsTemplate,
      tmplContext: function (rowData) {
        // Context an Template übergeben
        console.log(rowData);
        return {
          theRow: rowData,
          column: 'title'
        };
      }
    },
    //...

Any ideas how to get this working?

I solved it by adding
      data: 'scoopItems',

into the configuration for the field.
Then the data is loaded and can be accessed within the template.
I guess it has to do with the auto pub/sub implementation.


fix: Exiting the goose shell throws exception

Currently goose shell throws exception while exiting.  This PR fixes it. In general? is recommended over unwrap() in production code for proper error handling so replacing it

Happy to switch to ? but this still throws an exception doesn't it.
How are you exiting? /? help says you should use '/exit' to exit although I'm opening to explicitly supporting Ctrl+C for exit if that is what you are doing.
Testing it out, using/exit does not throw exception but Ctrl+c does throw. So I think the correct fix is to detect Ctrl+c explicitly in input in prompt.rs.
When I test Ctrl+C in this PR I get a red operation cancelled message which is better than panic but can still be approved so I'll approve that but I think we can improve it even more.


Chargeable Scout Launcher

Your Discord Name
coderCleric
Mod uniqueName
Cleric.ChargeableScout
Mod name
Chargeable Scout Launcher
GitHub repository URL
https://github.com/coderCleric/chargeable-scout
Parent uniqueName
No response
Utility mod
No response
Alpha Mod
No response

You forgot to make your repo public


THREESCALE-8981 Remove saas mode

what
Jira: https://issues.redhat.com/browse/THREESCALE-8981

The CONFIG_SAAS env var was used to enable certain features that were only useful for 3scale SaaS. These features are no longer used and CONFIG_SAAS is not even set in 3scale SaaS deployments.
Removed event buckets as they were SaaS only feature comment
Remove double Gemfile management

Gemfile.on_prem promoted to Gemfile
Gemfile.on_prem.lock promoted to Gemfile.lock`

Remove env vars not used neither in on-prem nor SaaS:

CONFIG_CAN_CREATE_EVENT_BUCKETS
CONFIG_STATS_BUCKET_SIZE
CONFIG_KINESIS_STREAM_NAME
CONFIG_KINESIS_REGION
CONFIG_AWS_ACCESS_KEY_ID
CONFIG_AWS_SECRET_ACCESS_KEY
CONFIG_REDSHIFT_HOST
CONFIG_REDSHIFT_PORT
CONFIG_REDSHIFT_DBNAME
CONFIG_REDSHIFT_USER
CONFIG_REDSHIFT_PASSWORD

Fixes #196
Fixes https://github.com/3scale/apisonator/issues/215
TODO

[x] changelog
[x] clean up commits

bors r+


Allow consul's gossip encryption to be turned off

Add value for turning consul's encryption off(enabled by default). This helps if joining a wan that doesn't already have encryption.
https://www.consul.io/docs/agent/encryption.html

@lachie83 would you mind taking a look at this? I think you looked at my last consul PR.

/ok-to-test


GPU KV cache usage: 100.0%以后就卡住

GPU KV cache usage: 100.0%以后就卡住，GPU使用率也将为0，无法继续提供服务，请问有什么解决办法吗？

我也遇到了这个问题

Please provide the OS, CUDA version, CPU, CPU RAM, GPU(s), GPU VRAM sizes, command line you started the vLLM with, model used and the full vLLM log output for diagnosis.
Ps.: Writing in English allows more contributors to help you.

Does the problem happen on the first request or only after doing inference tasks for a while?
Is this the vLLM API server or the OpenAI compatible one?
(Both of them named api_server.py, but in different folders. Something to fix...)
Why do you need CUDA_VISIBLE_DEVICES=0 ?
Try changing these command line parameters:

--block-size
--swap-space

For example: --swap-space=8

Same thing for me after I use vLLM for awhile KV cache goes to 100% and the system freezes up.  When does cache get cleared?  I am using the OpenAI connection.
Ubuntu 20.04.6 LTS
Build cuda_11.8.r11.8/compiler.31833905_0
A10 NVIDIA
python -m vllm.entrypoints.openai.api_server --model TheBloke/Wizard-Vicuna-13B-Uncensored-AWQ --quantization awq --host <IP_ADDRESS> --gpu-memory-utilization 0.40
log.txt

GPU KV cache usage: 100.0%以后就卡住，GPU使用率也将为0，无法继续提供服务，请问有什么解决办法吗？

What about using early releases of vllm? v0.1.4 or earlier?

So is there any solution to this issue?

Does the problem happen on the first request or only after doing inference tasks for a while?
Is this the vLLM API server or the OpenAI compatible one? (Both of them named api_server.py, but in different folders. Something to fix...)
Why do you need CUDA_VISIBLE_DEVICES=0 ?
Try changing these command line parameters:

--block-size
--swap-space

For example: --swap-space=8

Whether it's the first request or has been running for a while, as long as the GPU cache reaches 100%, the service becomes unusable, which is usually due to the generated text being longer.
The api_server I started merges the vLLM and the  OpenAI compatible, but it doesn't matter which interface is used.
Specifying the first GPU is to not use too many resources.
The --block-size parameter seems to have a default value of 16, and the --swap-space parameter has a default value of 4, but the CPU cache usage is always 0%. I did not specify these two parameters, so the default values were used.

GPU KV cache usage: 100.0%以后就卡住，GPU使用率也将为0，无法继续提供服务，请问有什么解决办法吗？

What about using early releases of vllm? v0.1.4 or earlier? @wgx7054

It doesn't seem to work. Have you tried an older version? When the prompt is longer or the generated text is longer, can the service continue if the GPU cache usage rate rises to 100%?

GPU KV cache usage: 100.0%以后就卡住，GPU使用率也将为0，无法继续提供服务，请问有什么解决办法吗？

What about using early releases of vllm? v0.1.4 or earlier? @wgx7054

It doesn't seem to work. Have you tried an older version? When the prompt is longer or the generated text is longer, can the service continue if the GPU cache usage rate rises to 100%?

The old version also has the same problem.

Does the problem happen on the first request or only after doing inference tasks for a while?
Is this the vLLM API server or the OpenAI compatible one? (Both of them named api_server.py, but in different folders. Something to fix...)
Why do you need CUDA_VISIBLE_DEVICES=0 ?
Try changing these command line parameters:

--block-size
--swap-space

For example: --swap-space=8

Whether it's the first request or has been running for a while, as long as the GPU cache reaches 100%, the service becomes unusable, which is usually due to the generated text being longer.
The api_server I started merges the vLLM and the OpenAI compatible, but it doesn't matter which interface is used.
Specifying the first GPU is to not use too many resources.
The --block-size parameter seems to have a default value of 16, and the --swap-space parameter has a default value of 4, but the CPU cache usage is always 0%. I did not specify these two parameters, so the default values were used.

How to use CPU KV?
Simply tweaking --swap-space won't solve the problem

I guess the current solution is to carefully tune some parameters, like max_tokens or max_model_len. I guess the max_model_len should be set smaller than the one specified in the hf-config.
The  number of "vllm available gpu block" is related to max_num_batched_tokens and max_num_seqs, but these two variables only limit prompt, which is the prefill phase, but not the generation phase. If a prompt fits in the GPU memory in prefill phase, but run oom in generation phase, vllm will not truncate it automatically and just get stuck.
And you should really use more gpu memory for longer text generation tasks. I think cpu swap is a sequence level operation. If there is only one sequence running and it still can not finish generation due to gpu memory limits, cpu cache won't help.

Also encountered the same problem, how to solve this problem? @viktor-ferenczi @WoosukKwon

Try to set --max-num-seqs=1 and see whether it fixes the problem. If yes, then double this value for better total throughput until it fails again. Then go back to the highest working value. It worked for me at least with vLLM 0.2.4 and 0.2.5.

At present, we have found a workaround and set the swap space directly to 0. This way, we will not call the CPU swap space and will not report any errors. However, the CPU blocks will also become 0, which may slow down the speed a bit, but at least it will not hang and die.

Also encountered the same problem, how to solve this problem? @viktor-ferenczi @WoosukKwon

At present, we have found a workaround and set the swap space directly to 0. This way, we will not call the CPU swap space and will not report any errors. However, the CPU blocks will also become 0, which may slow down the speed a bit, but at least it will not hang and die.

Tried the workaround of --swap-space=0, but it did not help at all. The same periodic freeze happens at full GPU KV-cache.

I grabbed the flame chart, and the problem was gptq.py#apply_weights#ops.gptq_gemm。May be beyond the capacity of cuda computing。

Met the same issue in Offline Batched Inference. Wouldn't continue when stuck in the line LLM(). GPU memory usage was occupied, but GPU utilization was 0%.


Generate SAI for ACL tags

Per discussion w/ @prsunny , filing new Issue for @marian-pritsak to generate SAI for ACL tags please.

Per Kumaresh, this has been generated in the SAI Repo
Add TAG for ACL by Pterosaur

Removal of P4 for ACL Tag - create an Issue for this (KrisNey-MSFT)

Kristina needs to close


Throwing exception on simple use case

First time using node-inspector. Here's my setup:
$ nvm --version
0.31.4
$ nvm current
v6.4.0
$ node --version
v6.4.0
$ npm install -g node-inspector

My simple test file:
//test.js
var d = {asdf: 123}
debugger;
console.log(d)

Firing up the debugger throws exception:
$ node-debug test.js
Node Inspector v0.12.8
Visit http://<IP_ADDRESS>:8080/?port=5858 to start debugging.
Debugging `test.js`

Debugger listening on [::]:5858
/Users/wes/.nvm/versions/node/v6.4.0/lib/node_modules/node-inspector/lib/InjectorClient.js:111
      cb(error, NM[0].ref);
                     ^

TypeError: Cannot read property 'ref' of undefined
    at InjectorClient.<anonymous> (/Users/wes/.nvm/versions/node/v6.4.0/lib/node_modules/node-inspector/lib/InjectorClient.js:111:22)
    at /Users/wes/.nvm/versions/node/v6.4.0/lib/node_modules/node-inspector/lib/DebuggerClient.js:121:7
    at Object.create.processResponse.value (/Users/wes/.nvm/versions/node/v6.4.0/lib/node_modules/node-inspector/lib/callback.js:23:20)
    at Debugger._processResponse (/Users/wes/.nvm/versions/node/v6.4.0/lib/node_modules/node-inspector/lib/debugger.js:95:21)
    at Protocol.execute (_debugger.js:121:14)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:177:18)
    at Socket.Readable.push (_stream_readable.js:135:10)
    at TCP.onread (net.js:542:20)

same issue here, in my case happens when I run Jest:
node-debug node_modules/jest-cli/bin/jest.js -i
Node Inspector v0.12.8
Visit http://<IP_ADDRESS>:8080/?port=5858 to start debugging.
Debugging node_modules/jest-cli/bin/jest.js
Debugger listening on [::]:5858
/usr/local/lib/node_modules/node-inspector/lib/InjectorClient.js:112
cb(error, NM[0].ref);
^
TypeError: Cannot read property 'ref' of undefined
at InjectorClient. (/usr/local/lib/node_modules/node-inspector/lib/InjectorClient.js:112:22)
at /usr/local/lib/node_modules/node-inspector/lib/DebuggerClient.js:121:7
I've already checked, the NM object is an empty array

I've the same issue, exception are thrown when connecting browser to :8080 port.
I think problem is related to node version, all works with<EMAIL_ADDRESS>and start failing when updated to<EMAIL_ADDRESS>All start working again after rolling back node to 6.3.1

I landed here after spending several hours trying to make things working.
Windows, Node 6.4.0 - x64 version.
When, after running node-inspector (or node-debug, or node --debug-brk, etc) I tried to go to the given address (with the GUI debugger with those devtools), the node proccess (and node-inspector proccess, if it was run separately) was crashing. No matter what I tried to do to solve it.
In the cmd, the stack trace wasn't really helpful (some exceptions from events.js and something about TCP, sorry, didn't save them).
From the browser, I could only learn that it had something to do with closed websocket and the inspector didn't worked at all (it was empty and console didn't work as well).
After using lynx1983's fix, I also noticed:
"No NativeModule in target scope."
After all, I downgraded Node to 6.3.1 and it's working.

Same problem

I also have run into this issue.
code is looking for a property with name == "NativeModule" but on my machine it returns an array of the following properties for refs[result.object.ref].properties
[ { name: 'inspectorConsole', propertyType: 0, ref: 3 },
{ name: 'wrapConsoleCall', propertyType: 0, ref: 3 },
{ name: 'console', propertyType: 0, ref: 3 } ]
The error handling is not working in this area because NM[0] is an invalid reference based on the exclusion of NativeModule in the properties array...
if (!NM.length)
        error = new Error('No NativeModule in target scope');
cb(error, NM[0].ref);

Not necessarily a good long term fix, but I worked around the problem with the following change to node-inspector/lib/InjectorClient.js:
108       if (!NM.length) {
109         error = new Error('No NativeModule in target scope');
110         return cb(error);
111       }

The debugger loads successfully and I am able to debug my code.

:+1:
Downgrade to 6.3.1 helps. This is a regression,

For anyone using homebrew and trying to get back to node 6.3.1 after you've already done a cleanup you can re-install 6.3.1 with:
brew install https://github.com/Homebrew/homebrew-core/raw/cc180c23b583487101a1b6697da4126739948dc5/Formula/node.rb

and then switch with:
brew switch node 6.3.1

Node Inspector v0.12.8
Visit http://<IP_ADDRESS>:8080/?port=5858 to start debugging.
Debugging node
Debugger listening on [::]:5858
C:\Program Files\nodejs\node.exe:1
(function (exports, require, module, __filename, __dirname) { MZ�
^
SyntaxError: Unexpected token ILLEGAL
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:513:28)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Timeout.Module.runMain [as _onTimeout] (module.js:575:10)
at tryOnTimeout (timers.js:228:11)
at Timer.listOnTimeout (timers.js:202:5)

This is also happening for node 6.3.1.

Small addition to the above code - I had to unlink node first, then I could install and switch to 6.3.1.
brew unlink node

Strangely, I see this with Node v6.2.1?
Meanwhile, has anybody tried @lynx1983's patch referenced above?

Same problem in 6.5.0

I succeeded with this ticket.
Simply,
yum remove nodejs
yum install nodejs-6.3.1
worked for me. I use OEL 6.7 ( derivation of Redhat Enterprise Linux )

Also fails for me. Node 6.5.0 on OS X.

Maybe this issue should be split into two, as it addresses two separate bugs? One is the bad handling of the error case, the error being that NativeModule isn't found. PR #914 fixes the first one, so it would definitely help to have an issue dedicated to the second bug.

Those running 6.5.0 can use native node for the same purposes. It's an experimental feature, but it works fine for me.
node --inspect --debug-brk my-app.js.
Read more here.

Thanks @kmkr but --inspect appears broken if you use the cluster API to fork workers, beware...

@kmkr
No they can't. node --inspect doesn't work on Windows 64 yet

@wzup solution: stop using windows.

Same issue.
OS: Ubuntu 15.10
brandon@ubuntu:~$ uname -a
Linux ubuntu 4.2.0-35-generic #40-Ubuntu SMP Tue Mar 15 22:15:45 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
brandon@ubuntu:~$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=15.10
DISTRIB_CODENAME=wily
DISTRIB_DESCRIPTION="Ubuntu 15.10"
NAME="Ubuntu"
VERSION="15.10 (Wily Werewolf)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 15.10"
VERSION_ID="15.10"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

Also using node 6.5.0 & npm 3.10.3 with linux brew. My colleague is using Ubuntu as well but nvm with same node/npm releases as mine.  Same issue.
The hack @brannon suggested works for me for now.

Same problem with Node 6.5.0 on OSX El Capitan (Ver 10.11.6).
Downgrading to 6.3.1 did not solve the problem!!
Node Inspector v0.12.8
Visit http://<IP_ADDRESS>:8080/?port=5858 to start debugging.
/usr/local/lib/node_modules/node-inspector/lib/InjectorClient.js:111
      cb(error, NM[0].ref);
                     ^

TypeError: Cannot read property 'ref' of undefined
    at InjectorClient.<anonymous> (/usr/local/lib/node_modules/node-inspector/lib/InjectorClient.js:111:22)
    at /usr/local/lib/node_modules/node-inspector/lib/DebuggerClient.js:121:7
    at Object.create.processResponse.value (/usr/local/lib/node_modules/node-inspector/lib/callback.js:23:20)
    at Debugger._processResponse (/usr/local/lib/node_modules/node-inspector/lib/debugger.js:95:21)
    at Protocol.execute (_debugger.js:121:14)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:177:18)
    at Socket.Readable.push (_stream_readable.js:135:10)
    at TCP.onread (net.js:542:20)

same problem here with:
Environment Information
========================
npm:   		 3.10.7
node:  		 v6.5.0
electron:      	 v1.3.5

MongoDB shell version: 3.2.8
Date: Mo 12 Sep 2016 03:45:28 ICT

i run node via nvm, with version 4x and 5x its working:
ok        Node v4.5.0
ok        Node v5.12.0
crash   Node v6.5.0

but crashes on current 6x with
▶ node-debug oop.js
Node Inspector v0.12.8
Visit http://<IP_ADDRESS>:8080/?port=5858 to start debugging.
Debugging `oop.js`

Error: listen EADDRINUSE :::5858
    at Object.exports._errnoException (util.js:1026:11)
    at exports._exceptionWithHostPort (util.js:1049:20)
    at Agent.Server._listen2 (net.js:1253:14)
    at listen (net.js:1289:10)
    at net.js:1399:9
    at _combinedTickCallback (internal/process/next_tick.js:77:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

node-inspector is the most popular debug tool for Node. Based on statistic, more than 10k downloads in the last day.
This open critical issue prevents using node v6.5.0 for developers.
I really appreciate Your debug framework and all effort by node-inspector developers but more than 29 days delay to provide solution is not fair. I'm sorry!

Same issue here:
Node version: v6.5.0
Npm version: 3.10.6
Node Inspector v0.12.8
cb(error, NM[0].ref);
^
TypeError: Cannot read property 'ref' of undefined

This is blocking issue!!! but seems like the team doesn't notice it. @3y3

Same here Windows x64
Node : 6.6.0
Downgrade is not a solution for me! Hope it's gone be fixed soon...

same as win10
node v6.5.0

The lastest release was in April 8. I don't know the future about node-inspector, but I believe that will die. Because NodeJS incorporated the inspector. Try this using 6.6.0:
node --inspect index.js
It's the same, but integrated and faster, really faster!!!

@LeandroFavero The problem is that hype on Node.js is over, and a lot of temporary solutions became permanent due to the lack of professional developers. Unfortunately --inspect is unstable and doesn't work for most of the interested users. I would expect node-inspector to disappear the same time as node-gyp would get Unicode support and drop Python from dependencies.
For the future commenters: consider using emoji reactions if you have the same setup as previous reporters. There're 2 messages a day with the same content, and it's annoying.

@polkovnikov-ph why are you saying stuff like that? lack of professional developers? what is that based on? --inspect is new so they still need to patch it up. yes, it sucks that debugging isn't working out right now but they'll get it straightened out. it's unstable because the hype is real.

the hype is real and  is here to stay.
this fact is based on true ♥

im using windows 10 with node 6.6(before) ..
to solve this I uninstalled node and
downloaded node 4.5 from the official nodejs site
hope this helps someone

node 6.6.0
mocha 2.5.3
same error...

Same issue
win10
node v6.5.0

I also have the same issue on win10
node v6.6.0

@fignuts but what version of node.js are you using?

same issue here, running in OSX, node v6.5.0

Same issue on Debain,
Node.js: v6.4.0
NPM: 3.10.3
Node Inspector v0.12.8
/../.nvm/versions/node/v6.6.0/lib/node_modules/node-inspector/lib/InjectorClient.js:111
      cb(error, NM[0].ref);
                     ^

TypeError: Cannot read property 'ref' of undefined
    at InjectorClient.<anonymous> (/.../.nvm/versions/node/v6.6.0/lib/node_modules/node-inspector/lib/InjectorClient.js:111:22)

It works on node v6.3.1

Just in case someone misses it; #906 fixes this problem. You can patch your installed copy to get it working while waiting for the next release.

@hgwood, nope, it doesn't fix the real problem. It just fix the uncatch error to output it properly. If you apply the fix, node-inspector will throw another error(No NativeModule in target scope)

Well yes, it does throw that error, but only once it has started, in its console. I can still step through my code, which I could not do before.

In my case, with that error no more debugging. I don't know what's the problem though :(.

See hack/workaround solution https://github.com/node-inspector/node-inspector/issues/928#issuecomment-249343838

Comment out line 111, it works!

Same issue here -- node 6.7.0. Commenting out line 111 gets thinks working again as workaround. Thanks for suggesting!!

Tried upgrading to 6.7.0 in hopes this would be resolved. Still broken. 6.3.1 is the last working version for me on Win 10 Anniversary.

I don't understand why or how downgrading node version could solve the issue because this code is clearly bugged.
Of course if NM.length is 0 any access to its indexes like NM[0].ref would fail.
Accordingly, before even thinking about a possible PR, what should actually happen when NativeModule is not found? A warning? Another attempt? Would passing the error and just null be appropriate?

Instead of commenting out. Fixed the issue with using:
cb(error, NM[0] && NM[0].ref);

I've done the same but I don't know side effects, which is why I've asked
what should happen. Also a PR would be better
On Thursday, 6 October 2016, jeduden<EMAIL_ADDRESS>wrote:

Instead of commenting out. Fixed the issue with using:
cb(error, NM[0] && NM[0].ref);
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/node-inspector/node-inspector/issues/905#issuecomment-251864127,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAFO9dj1PcF2i5dZJiOE40vKKE9Aim0kks5qxHh9gaJpZM4Jl714
.

Yeah, it should probably callback with the error (and null), that looks like the intention.

Broken here too. Node 6.7.0 + MacOS Sierra.
Debugger listening on [::]:5858
/usr/local/lib/node_modules/node-inspector/lib/InjectorClient.js:111
cb(error, NM[0].ref);
^
TypeError: Cannot read property 'ref' of undefined

Here is a Pull Request to patch this ASAP
https://github.com/node-inspector/node-inspector/pull/938

I've done a PR too but apparently nobody is maintaining this repo.
On Wednesday, 19 October 2016, Master James<EMAIL_ADDRESS>wrote:

Here is a Pull Request to patch this ASAP
#938 https://github.com/node-inspector/node-inspector/pull/938
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/node-inspector/node-inspector/issues/905#issuecomment-254692227,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAFO9cDZ2ALnyMIv0xiOAuugaorqtwvqks5q1X25gaJpZM4Jl714
.

Note that some (all?) node-inspector features are now built into Node: https://github.com/nodejs/node/pull/6792. See the --inspect command-line option.

@WebReflection It's a bit strange to agree with you, but you're totally correct. It was at least 2 months without a word from a maintainer. The last commit was in April. Looks like native Node's support is anticipated for a long time.

Also - add the "--debug-brk" option to "--inspect" and the debugger will pause execution until after you connect:
node --inspect --debug-brk your.js
You can then start execution from inside the debugger (after setting any necessary breakpoints).

Using node --inspect is not really a solution for everyone, for instance I am trying to debug an already alive process sending it a USR1 signal to activate debug port
AFAIK this is not supported yet.

Beating the dead horse here but we had to go back to Node v.4.6.1 to get node-inspector working again. This is the setup:
Windows 10
Node v.4.6.1
Npm: 2.15.9
Node Inspector v.0.12.8
This setup works as of today and unless there is an explicit message in the Node or the Inspector changlog one day saying that they fixed this spcific issue we are sticking with this setup. Here's the download link for the old Node if anyone wants it: v.4.6.1.

@miroslawmajka FYI 6.3.1 should work too. It's the latest version of node 6 that wasn't instantly crashing.

I also have the same issue on win7
node v6.7.0

I got seem issue with macOS and Nodejs 6.9.1
/usr/local/lib/node_modules/node-inspector/lib/InjectorClient.js:111
      cb(error, NM[0].ref);
                     ^

TypeError: Cannot read property 'ref' of undefined
    at InjectorClient.<anonymous> (/usr/local/lib/node_modules/node-inspector/lib/InjectorClient.js:111:22)
    at /usr/local/lib/node_modules/node-inspector/lib/DebuggerClient.js:121:7
    at Object.create.processResponse.value (/usr/local/lib/node_modules/node-inspector/lib/callback.js:23:20)
    at Debugger._processResponse (/usr/local/lib/node_modules/node-inspector/lib/debugger.js:95:21)
    at Protocol.execute (_debugger.js:121:14)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:172:18)
    at Socket.Readable.push (_stream_readable.js:130:10)
    at TCP.onread (net.js:542:20)

me too.
我安装了node 6.3.1版本就好了。。。

Hi!
It's my first steps in Node.js. =j
I've the same issue:
node --debug server.js
node-inspector

Node 6.9.2
and
Node 7.2.1
On the page:

"Detached from the target by reason: websocket_closed"

In console:
/usr/local/lib/node_modules/node-inspector/lib/InjectorClient.js:111
      cb(error, NM[0].ref);
                     ^

TypeError: Cannot read property 'ref' of undefined
    at InjectorClient.<anonymous> (/usr/local/lib/node_modules/node-inspector/lib/InjectorClient.js:111:22)
    at /usr/local/lib/node_modules/node-inspector/lib/DebuggerClient.js:121:7
    at Object.create.processResponse.value (/usr/local/lib/node_modules/node-inspector/lib/callback.js:23:20)
    at Debugger._processResponse (/usr/local/lib/node_modules/node-inspector/lib/debugger.js:95:21)
    at Protocol.execute (_debugger.js:121:14)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:172:18)
    at Socket.Readable.push (_stream_readable.js:130:10)
    at TCP.onread (net.js:542:20)

PS:
node -inspect server.js  - success:
node --inspect echoserver.js
Debugger listening on port 9229.
Warning: This is an experimental feature and could change at any time.
To start debugging, open the following URL in Chrome:
    chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=<IP_ADDRESS>:9229/10f1f810-c0fb-4ca4-aa31-77b221d326e8

node: v6.9.1
osx: 10.12.2 sierra

It works for me 💯


Add Contribution Guidelines which replaces current wiki

@sayakpaul and @khanhlvg, I'm adding contribution guidelines as .md file. Let's replace the wiki which is not so visible (even I had a difficult time finding it myself even though I created it :) As more people from the community are getting interested in contributing, it's important they find the guidelines easily.
I also added additional guideline such as how to title the PR and also checking broken links. We have broken links right now:
A mobile application (preferably Android/iOS) demonstrating optical character recognition (refer to this Colab Notebook to see how this is done in Python). - link to the Colab Notebook is broken.
Please review this PR and provide your feedback.

This is great! Thanks @margaretmz 👍

We have broken links right now:
A mobile application (preferably Android/iOS) demonstrating optical character recognition (refer to this Colab Notebook to see how this is done in Python). - link to the Colab Notebook is broken.

@margaretmz I have fixed it up. Thanks for pointing out.


SimpleNearestNeighborSearcher should use correct cutoff factor

It was wrongly set to 0 in my initial patch yesterday, it should be instead set to 0.999f.

It's really odd... I went over to Travis CI and it shows green for this patch, but the information isn't being relayed back here for some reason...
Overriding and merging.


Pose and Attributes values are null

Please what am i possibly doing wrong, i'm writing a method channel on flutter however the values i receive are not helpful.
metadata.pose -> mostly returns only one value out of roll, pitch and yaw, and it's mostly -10
attributes -> is always null
Here's my implementation
  private func registerLiveliness(controller: FlutterViewController){
    let livelinessChannel = FlutterMethodChannel(name: LIVELINESS_CHANNEL,
                                                      binaryMessenger: controller.binaryMessenger)
    livelinessChannel.setMethodCallHandler({(call: FlutterMethodCall, reply: @escaping FlutterResult) -> Void in
        // Note: this method is invoked on the UI thread.
        // Handle battery messages.
        print("CALL METHOD ---->>>>>>>>>>>>> " + call.method)
        if call.method != "analyzeImage" {
            return reply("")
        }
        print("CALL INNNNNNN ---->>>>>>>>>>>>> " + call.method)

        guard let args = call.arguments else {
            return
        }

        let mainArgs = args as? [String: Any]

        let imagePath = mainArgs!["imagePath"] as? String
        print("IMAGE PATH ---->>>>>>>>>>>>> " + (imagePath ?? ""))

        print("IMAGE WRITINGGGGGGG ---->>>>>>>>>>>>> ")

        print("CAN OPEN URL" + String(self.verifyUrl(urlString: imagePath)))

        var mapResult: [String: Any] = [:]
        let imageUrl = URL.init(fileURLWithPath: imagePath ?? "");

        print(imageUrl)

        Amplify.Predictions.identify(type: .detectEntities, image: imageUrl) { event in
            switch event {
            case let .success(mResult):
                let identifyResult = mResult as! IdentifyEntitiesResult
                    if identifyResult.entities.isEmpty {
                        mapResult["facenotdetected"] = ["value" : true, "confidence" : 100.0]
                        print("NO ENTITY DETECTED")
                        return reply(mapResult)
                    }
                    mapResult["numberOfFaces"] = identifyResult.entities.count

                    identifyResult.entities.forEach({(Entity) in
                        print("IN THE LOOP with Attributes " + String(Entity.attributes?.count ?? -1))

                        let pose = Entity.metadata.pose

                        mapResult["pose"] = [
                            "yaw" : pose.yaw,
                            "roll" : pose.roll,
                            "pitch" : pose.pitch,
                        ]

                        Entity.attributes?.forEach({ (Attribute) in
                            print(Attribute.name + "<->" + String(Attribute.confidence) + "<->" + String(Attribute.value))
                            mapResult[Attribute.name.lowercased()] = [
                                "value": Attribute.value,
                                "confidence": Attribute.confidence
                            ]
                        })
                    })
                return reply(mapResult)
            case let .failure(error):
                print("We have an error here :: ")
                mapResult["error"] = ["message" : error.errorDescription]
                return reply(mapResult)
            }
        }
    })
  }

I've done this on Android and it works very fine, is there anything that differs on iOS.
PS: I'm not very conversant with swift or iOS i just converted what i had done(logic wise) on Android native to iOS.

I initialized  a fresh amplify project, although the attributes isn't nil anymore but the content are always
true with the zero confidence, while the pose values seems to be accurate.

My guess is that , Attributes: ["ALL"] is not specified if so, how do i specify this on the amplify predictions plugin?

hi @donpaul120, I'm not familiar about how Flutter integrates with native iOS but one thing that looks a bit off in your code is how you're returning a FlutterResult from different places.
Is reply some sort of callback that accepts a result as argument that will be sent back to the caller on the Flutter side? if so, you probably just need to invoke it and don't need to return its result.
Also Amplify.Predictions.identify is asynchronous, does the registered method call handler need to block the execution and "await" for Amplify.Predictions.identify to complete before returning the value?

@diegocstn Okay, yes the reply is like a callback, thanks for that, i'm guessing a return statement will stop the execution from getting to the next code block but will read more on swift as i have no choice.
The method call handler blocks, atleast from the flutter point of view, it awaits the result from invoking the method handler.
The method handler just receives method calls from flutter and executes , for every call i have to send back a "reply" it awaits for.
However, to achieve what i wanted i have moved to using the getEscapeHatch function and directly pass in the arguments and specify that i need "ALL" attributes.
Below is the new implementation, for anyone that might stumble upon this, but please note that my swift skills aren't that much good.

 private func registerLiveliness(controller: FlutterViewController){
    let livelinessChannel = FlutterMethodChannel(name: LIVELINESS_CHANNEL, binaryMessenger: controller.binaryMessenger)

    guard let predictionPlugin = try? Amplify.Predictions.getPlugin(for: "awsPredictionsPlugin") as? AWSPredictionsPlugin else{
        print("Unable to create AWS Prediction Plugin")
        return
    }

    guard let awsRekognition = predictionPlugin.getEscapeHatch(key: .rekognition) as? AWSRekognition else {
        print("Unable to create AWSRekognition Plugin")
        return
    }

    livelinessChannel.setMethodCallHandler({(call: FlutterMethodCall, reply: @escaping FlutterResult) -> Void in
        if call.method != "analyzeImage" {
            return reply("")
        }

        guard let args = call.arguments else {
            return
        }

        let mainArgs = args as? [String: Any]

        let imageData = mainArgs!["imageByte"] as? FlutterStandardTypedData

        var mapResult: [String: Any] = [:]

        let request: AWSRekognitionDetectFacesRequest = AWSRekognitionDetectFacesRequest()
        let rekognitionImage: AWSRekognitionImage = AWSRekognitionImage()

        rekognitionImage.bytes = imageData?.data
        request.image = rekognitionImage
        request.attributes = ["ALL"] //This is what i needed to get all attributes

        awsRekognition.detectFaces(request) { (response: AWSRekognitionDetectFacesResponse?, error: Error?) in
            guard error == nil else {
               //Do something
                return reply(mapResult)
            }

            guard response != nil else { return reply(nil) }

            guard let faces = response?.faceDetails else {
                //Do something
                return reply(mapResult)
            }

            let newFaces = IdentifyEntitiesResultTransformers.processFaces(faces)
            let entityResult = IdentifyEntitiesResult(entities: newFaces)

            if entityResult.entities.isEmpty {
                //Do something
                return reply(mapResult)
            }

            mapResult["numberOfFaces"] = entityResult.entities.count

            entityResult.entities.forEach({(Entity) in

                let pose = Entity.metadata.pose
                let attributes = Entity.attributes

                mapResult["pose"] = [
                    "yaw" : pose.yaw,
                    "roll" : pose.roll,
                    "pitch" : pose.pitch,
                ]

                attributes?.forEach({ (Attribute) in
                    mapResult[Attribute.name.lowercased()] = [
                        "value": Attribute.value,
                        "confidence": Attribute.confidence
                    ]
                })
            })

            reply(mapResult)
        }
    })
  }

IdentifyEntitiesResultTransformers seems like an internal class, couldn't import it, so i copied it.
Perhaps some of this things should be documented because it took me about 2days to figure it out, and the specific way on how to get the "escapeHatch" on the github readme didn't work for me.

Okay, yes the reply is like a callback, thanks for that, i'm guessing a return statement will stop the execution from getting to the next code block but will read more on swift as i have no choice.

You might want to call reply and return after
reply(mapResult)
return

Perhaps some of this things should be documented because it took me about 2days to figure it out, and the specific way on how to get the "escapeHatch" on the github readme didn't work for me.

Thanks for reporting that, we'll be updating our README to match our documentation https://docs.amplify.aws/lib/predictions/escapehatch/q/platform/ios.
After you've gained access to a AWSRekognition service instance and successfully constructed a AWSRekognitionDetectFacesRequest, I believe you should be able to access each detected face and its attributes as follow:
guard let detectFacesRequests = AWSRekognitionDetectFacesRequest() else {
        print("Error building a AWSRekognitionDetectFacesRequest")
        return
    }
var results: [String: [String:NSNumber?]] = [:]
detectFacesRequests.attributes = ["ALL"]
awsRekognition.detectFaces(detectFacesRequests) { response, error in
    guard let faceDetails = response?.faceDetails else {
        return
    }
    for face in faceDetails {
         guard let pose = face.pose else {
            continue
         }
         results["pose"] = [
              "yaw" : pose.yaw,
              "roll" : pose.roll,
              "pitch" : pose.pitch,
         ]
        // attributes will be available here with their value and confidence
        // face.beard,
        // face.sunglasses,
        // face.smile,
        // face.eyeglasses,
        // face.mustache,
        // face.mouthOpen,
        // face.eyesOpen
    }
}

Let us know if that helps!

@diegocstn Oh yes, this is perfect... Everything works fine. Thanks very much.

I'm glad it helped!

I'm closing this issue but feel free to re-open or comment if you have other questions.