Plan for beeing supported by Server Side Rendering

Is there any plan for make it compatible with SSR.
Once I actived SSR, I received :
NodeInvocationException: Prerendering failed because of error: ReferenceError: document is not defined

Hello @M2Key,
from my perspective it looks like a cool feature, I will have a look into it.
Please feel free to provide sample code.

@cslgxuchang
Please provide some sample-code for me on a plunkr or jsfiddle.

@Cordobo  use<EMAIL_ADDRESS>my project use<EMAIL_ADDRESS>when I run it with ssr, error "document is not defined"  in<EMAIL_ADDRESS>module .  I  have no idea to resolve it.

These few changes makes SSR work for me:
angularx-qrcode.component.ts:
import {
	ChangeDetectionStrategy,
	Component,
	ElementRef,
	Input,
	OnChanges,
	OnInit,
	SimpleChange,
	AfterViewInit,
	Inject,
	PLATFORM_ID
} from '@angular/core';

declare var require: any;
var QRCode: any = undefined;

import { isPlatformServer } from '@angular/common';

@Component({
	selector: 'qrcode',
	changeDetection: ChangeDetectionStrategy.OnPush,
	template: ''
})

export class QRCodeComponent implements OnChanges, OnInit, AfterViewInit {

	/** @internal */
	@Input() public allowEmptyString: boolean = false;
	@Input() public colordark: string = '#000000';
	@Input() public colorlight: string = '#ffffff';
	@Input() public level: string = 'M';
	@Input() public hidetitle: boolean = false;
	@Input() public qrdata: string = '';
	@Input() public size: number = 256;
	@Input() public usesvg: boolean = false;

	public qrcode: any;

	constructor(
		public el: ElementRef,
		@Inject(PLATFORM_ID) private platformId: Object,
	) { }

	public ngOnInit() {
	}

	public ngAfterViewInit() {
		if (isPlatformServer(this.platformId)) {
			return;
		}
		else {
			if (!QRCode) {
				QRCode = require('qrcodejs2');
			}
			try {
				if (!this.isValidQrCodeText(this.qrdata)) {
					throw new Error('Empty QR Code data');
				}

				this.qrcode = new QRCode(this.el.nativeElement, {
					colorDark: this.colordark,
					colorLight: this.colorlight,
					correctLevel: QRCode.CorrectLevel[this.level.toString()],
					height: this.size,
					text: this.qrdata || ' ',
					useSVG: this.usesvg,
					width: this.size,
				});
			} catch (e) {
				console.error('Error generating QR Code: ' + e.message);
			}
		}
	}

	public ngOnChanges(changes: { [propertyName: string]: SimpleChange }) {
		if (!this.qrcode) {
			return;
		}

		const qrData = changes['qrdata'];

		if (qrData && this.isValidQrCodeText(qrData.currentValue)) {
			this.qrcode.clear();
			this.qrcode.makeCode(qrData.currentValue);
		}
	}

	protected isValidQrCodeText = (data: string): boolean => {
		if (this.allowEmptyString === false) {
			return !(typeof data === 'undefined' || data === '');
		}
		return !(typeof data === 'undefined');
	}

}

Maybe a pull request and a new release on NPM?

Hi, I have installed two versions of this package (^1.2.4 and ^1.5.3) in differents proyects, but i´dont see if the code of @cbernth is all ready implemented, is that so in what version of the package can i see this code, please?

Hi @Dyabel03
No, the code from @cbernth has not been integrated into the repo yet.

Hi, @Cordobo  thank you for your answer, currently I need this in my work so, do you have any plan to implement this anytime soon?... I really appreciate your effort in this project and I don´t wanna sound rude...thank you in advance.
P.S: Or if you know how I can implement this would also be helpful, I tried to use the code of @cbernth but when I execute the universal angular the same error occurs.

i need too for my work so, please could you help us to fix it for angular universal.
still same error when execute 😢

@Dyabel03 @alchemistt99 PRs are more than welcome!

/frontend/dist/server.js:226874
var useSVG = document.documentElement.tagName.toLowerCase() === "svg";
^
ReferenceError: document is not defined
not working in 1.5.3

Thanks to code contributed by @cbernth and @ZhenhangTung, as of version 1.6.0, angularx-qrcode has fully implemented SSR support.
Closing this (please open another issue, if you encounter any)

I got
        var useSVG = document.documentElement.tagName.toLowerCase() === "svg";
                     ^

ReferenceError: document is not defined

version 1.6.1

Hi @naumov-dev, could you please provide a stripped down repo for me to reproduce?

@Cordobo Same thing happened to me. Here is my PR, but I don't know why my changes don't exist anymore on the dev branch, which has cost me several hours to find out the true problem. If you look at my company's fork, you will see the:

This branch is 4 commits ahead, 4 commits behind Cordobo:master.

On your master branch, my changes still don't exist.
Hope you could fix the problem soon. I'll just use the forked version for now.

@ZhenhangTung Thanks for your investigation, I have a look into it

@ZhenhangTung I have reapplied the PRs and released a fixed version 1.6.4. Thanks for your feedback!

Is it possible to generate the QR code from a component? I want to display a smaller version on the page, but when the user clicks the image generated from qrdata (wrapped in an anchor), I'd like to let them download a larger version. Can that be done?

@baywind2018 Could you show some pseudocode to us? From my understanding, the easiest way is to generate 2 QR code and make the larger one display: none. When a user clicks the image, which is the smaller one, we actually download the larger one.


Content's height not fitting the size of the epubviewer widget

It would be great if on the paginated mode, the page would adjust according to the size of the widget without the need for vertical scrolling, current behavior seems to always have some extra height.

Fixed this on version: 1.1.4


update go from 1.9 to 1.10

will keep open until we decided to do the update

lgtm

Coverage increased (+0.01%) to 65.255% when pulling fa59d957abbfd9c0cf2151d25eb971f37a19ccc3 on 1.10 into ebde44dd18cdee73487d6e9c10fc88e14f336b0b on master.


Ability to search words from notes too

ability to search keywords from notes saved along with the links

will be added in the next release :)

thank you

thank you

Thank you for mentioning this :) This has been implemented in 0.8.0: https://github.com/sakethpathike/Linkora/releases/tag/release-v0.8.0

thank you for adding it


when I use styled wrap my component it's not work

Steps to reproduce

Current behavior
when I use styled wrap my component it's not work
Expected behavior
styled wrap my component can extend style
Context
No response
Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: styled not work

It doesn't look like this bug report has enough info for one of us to reproduce it.
Please provide a CodeSandbox (https://material-ui.com/r/issue-template-latest), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem.
Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve

https://codesandbox.io/p/devbox/festive-water-5933m9

@chenxi24 The component you want to style needs to take a className property and spread to the root element. Pigment css will generate a CSS class for you and automatically pass it to your component, but the component still has to apply it. You can do:
// ./src/components/Button/Button.tsx
export interface ButtonProps {
  className?: string;
}

function Button({ className }: ButtonProps) {
  return <button className={className}>this is button</button>;
}

export default Button;

I don't believe there is a way to express this in the types.


HacktoberFest19

Name the program which you are adding
Implement Queue using Linked-Lists
Programming Language you will code
C
YOU ARE
Student
GITHUB USERNAME
vrn25

Can I start working on it?

YES


RQT Plot save all figures

Is there way to save all the plot information as a single image?

Do you find out how to save them?


upgradetest: Add disaster recovery test

Added TestDisasterRecovery() to test if the upgraded operator can do disaster recovery from the backup of the old cluster once all its pods are deleted.
Additionally moved GetContainerImageNameFromDeployment() into e2eutil/util.go since upgrade_test.go should only contain test functions and not helper functions.

@xiang90 @hongchaodeng PTAL. Upgrade tests are passing.

The code LGTM.
But I have one nit point.

lgtm


[Usage] When will the eval script for llava v1.6 be available?

Describe the issue
Issue: I cannot get the result
Command:
sh scripts/v1_5/eval/textvqa.sh checkpoints/llava-v1.6-vicuna-7b

I received 61.35 instead of the 64.9 you reported. Is there a difference between v1.6 and v1.5 during evaluation?
Please release the evaluation scripts promptly.

61.35 too

61.4 too

In model_vqa_loader.py, class CustomDataset, it should be modified as this:
if self.model_config.mm_use_im_start_end:
            qs = DEFAULT_IM_START_TOKEN + DEFAULT_IMAGE_TOKEN + DEFAULT_IM_END_TOKEN + '\n' + qs
        else:
            qs = DEFAULT_IMAGE_TOKEN + '\n' + qs

        qs = qs.split('\n')  # [DEFAULT_IMAGE_TOKEN, question, ocr token, format prompt]
        qs = '\n'.join([qs[0], qs[1], qs[3]])


Add MacOS Support

Coming from https://github.com/opensearch-project/opensearch-plugins/issues/96, add MacOS (Darwin) support.

[ ] Passing CI on MacOS
[ ] Documentation

Conversation happening over at https://github.com/opensearch-project/security/issues/2423

re-opening, as this issue is the one being tracked in the meta


Add serchding to community projects, sort the list by alphabetical order

Thanks, but can you please revert the sorting change - it doesn't make sense to sort uppercase and lowercase separately (if that is what you intended).

Thanks, but can you please revert the sorting change - it doesn't make sense to sort uppercase and lowercase separately (if that is what you intended).

You're right - the commit should now reflect the reversion


Implement Naive Bayes [DEV SPRINT 7/18]

The first three links on google are the best
https://www.geeksforgeeks.org/naive-bayes-classifiers/
https://www.analyticsvidhya.com/blog/2017/09/naive-bayes-explained/
https://machinelearningmastery.com/naive-bayes-for-machine-learning/

Is it okay if I start working on this issue ?

@mohdkashif93 you can start working on gaussian naive bayes.


./ace - No such file or directory

I created a fresh droplet on Digital Ocean (The Node one click app) and followed the starting piece in the documentation to create yardstick.
When i try and use Ace i get:
adonis@adonis:~/yardstick$ ./ace
/usr/bin/env: node --harmony_proxies: No such file or directory

which node gives me /usr/bin/node

Node version 4.4.3 btw

Are you using nvm or just clean node install from apt?

@dan-gamble Make use of node --harmony_proxies ace and your command.
It is a combination of several issues, i will be writing a blog post + a command to fix ace file.

I tried both global node & nvm.
That worked @thetutlage! I'll just set up an alias to use in the interim :)

Sure, the problem is --harmony flag does not work when using /usr/bin/env node. It needs to be /usr/bin/node.
Since the installation of NodeJs is different from every OS and also depends upon the way you have installed NodeJs.
I will add a command to adonis-cli to fix the ace file with the correct location of node on the current OS.

Awesome, thanks for the help :)

Hi Guys, I ran adonis fix and the issue was not fixed for me. I am using antergos. Any idea?

Maybe this will help for Linux systems ...
http://stackoverflow.com/questions/8108917/why-does-passing-arguments-to-the-command-in-an-env-invocation-not-work

Ok i found hack for Linux... http://sambal.org/2014/02/passing-options-node-shebang-line/
It should be:
#!/bin/sh
":" //# comment; exec /usr/bin/env node --harmony_proxies "$0" "$@"

'use strict'
/*
|--------------------------------------------------------------------------
|   Running Console Commands
|--------------------------------------------------------------------------
|
|  Here we invoke console commands registered under Ace store.
|
*/
const kernel = require('./bootstrap/kernel')
kernel()

It works for me, can anyone test it on OSX?

@vizo Kind of works great, have to test it on Windows too

Great!! @vizo it works :+1:

Hey guys, you also may use node ace make:[command] <params> ... from the Adonis project folder, and it does'n matter what OS you are using, just need NodeJS to run.

C:\Users\Admin\demowork>./ace
'.' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\ROHIT SAINI\ya>./ace
'.' is not recognized as an internal or external command,
operable program or batch file.
how to fix this problem ?

In windows env use
node --harmony-proxies ace migration:run
Like above
On Oct 22, 2016 6:44 PM, "rindia"<EMAIL_ADDRESS>wrote:

C:\Users\Admin\demowork>./ace
'.' is not recognized as an internal or external command,
operable program or batch file.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/adonisjs/adonis-framework/issues/141#issuecomment-255527714,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC1M03xt2RgXL3-MJIhJU7KhoT9mvOwyks5q2gw8gaJpZM4IHwv0
.

added an alias like alias ace="node --harmony-proxies ./ace", so I just go ace make:model Cool in the app root and it works.

i have an issue when i tried to create a new project:
✔ Your current Node.js & npm version match the AdonisJs requirements!
✖ An error occured while trying to access "/Documents/WKS_SERVER/my_chat" directory
Cannot read property 'F_OK' of undefined

May you create a new issue and specify which OS you use (it looks like Windows) and which command do you run @raulvillca ?

@RomainLanz Fixed. Node.js v6.2 has fs.constants as undefined whereas v6.3 and later have fs.constants as defined. The weird part is versions earlier than v6.2 also has fs.constants defined.

Good to know! Thanks.

.ace is not working , please suggest me how to get rid of this issue

Dear @pushkertiwari !
What's your problem?

.ace make:controller home is  not working , i have tried all the ways , but cli of adnois is not working in the terminal , always giving the isssue in the .ace is not found. @RomainLanz

You need to use ./ace and not .ace to use it inside your terminal.
You can also directly use it with node via node ace.
$ node ace make:controller XXX

thanks @RomainLanz  , you have solved my problem.

@RomainLanz  could you please help me in the autenication process of adnois js

@pushkertiwari Please join the gitter for those kind of questions

To run ace on Windows, create a file called ace.cmd in the root of your project with the following content
cd %~dp0
node ace %*

Now you can run ace make:view home (but NOT ./ace make:view home, so careful when following tutorials etc.)

There seem to be an issue when running during development. The server throw an event.js error while still serving, however the client is still connected to but the server still shows the error.  I'm on a windows 10 machine.

From: DLUK44<EMAIL_ADDRESS>Sent: 10 August 2017 19:05
To: adonisjs/adonis-framework
Cc: Subscribed
Subject: Re: [adonisjs/adonis-framework] ./ace - No such file or directory (#141)
To run ace on Windows, create a file called ace.cmd in the root of your project with the following content
cd %~dp0
node ace %*
Now you can run ace make:view home (but NOT ./ace make:view home, so careful when following tutorials etc.)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/adonisjs/adonis-framework/issues/141#issuecomment-321629337, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVkQ5NGmyTRXDv8TfZDXr7n_ok20mLXFks5sW0aGgaJpZM4IHwv0.

Hey @DLUK44, @horiyomi !
First of all, thanks for the tips @DLUK44, we'll add that to the documentation for 4.0 if it's not already inside.
@horiyomi, may you create a new issue with the error you get?

@RomainLanz
In 4.0 adonis proxy all the project specific commands. So instead of running ace <cmd>, you can do adonis <cmd>, which fixes all cross platform issues

you should create a file named ace.js in the root with this code inside:

#!/usr/bin/env node

'use strict'
const kernel = require('./bootstrap/kernel')
kernel()


Opps, something went wrong.   (Logging in)

I am getting this error. I never reset my account. My profile still shows on line. But when I use my paper key to log in this is what I get:  can't find a race-free state for 30477f4d9ef6a09668b686581f71df19
Error code 236: MERKLE_RACE in method keybase.1.login.login  Does the same thing to me on my andriod phone.

I saw this same error when I installed the app and added a device, and now I can't log in.
my log id: 3ad237fc8061250301e31f1c

I waited  a day and tried again. It let me log in then. I don't know, but I am guessing something reset after a day.


Compatibility with Apple Silicon

While Spacy v3.2 is made native in Apple Silicon, scispacy requires Spacy v3.0 which is not optimised.
Is there any plan to upgrade Scispacy to make it compatible with Spacy v3.2?

hopefully pretty soon, am training the new models right now, hopefully that goes smoothly. Neither I nor the other co creator work on this right now, so maintenance is slow.

This is done, except that I am having some issues with pypi, you can use master if you need the upgrade now.


Fulma FontAwesome: updating to 5.x.x

Supported Font Awesome version is currently 4.7.0.
Are there any plans to update Fulma to work with FontAwesome 5?

I think @whitetigle started a work on it but not sure if he had the time to finish it.
When I ported 4.7.0 I created this script: https://github.com/MangelMaxime/Fulma/blob/master/utils/extract-font-awesome.js
It probably need to be adapted to their new website version.


Message Queue not deleting message

I'm using this example:
http://smrchy.github.io/rsmq/rsmq-worker/#-initialize
I have the RSMQ running on an node server. I have an end point which once accessed creates a message and should delete it once it receives it since next() is called and delete is true by default. The issue is the next time I access that end point the message is actually not deleted and creates an extra message on top of that.
For Example:
Web server listening at: http://<IP_ADDRESS>:3001
Browse your REST API at http://<IP_ADDRESS>:3001/explorer
FIRST REQUEST:
Message sent. ID: eec8occ2q9rXcY6MY8ZDlQoZGeLcmB1Q 1
Worker  Hello World eec8occ2q9rXcY6MY8ZDlQoZGeLcmB1Q
DELETED eec8occ2q9rXcY6MY8ZDlQoZGeLcmB1Q undefined
SECOND REQUEST:
Message sent. ID: eec8oeoo8100wB8Zm1GzEevLGqAMtTL7 2
Worker  Hello World eec8oeoo8100wB8Zm1GzEevLGqAMtTL7
Worker  Hello World eec8oeoo8100wB8Zm1GzEevLGqAMtTL7
DELETED eec8oeoo8100wB8Zm1GzEevLGqAMtTL7 undefined
DELETED eec8oeoo8100wB8Zm1GzEevLGqAMtTL7 undefined
THIRD REQUEST:
Message sent. ID: eec8ohx4d3PmldXOQ5luobKXAMolh3OJ 3
Worker  Hello World eec8ohx4d3PmldXOQ5luobKXAMolh3OJ
Worker  Hello World eec8ohx4d3PmldXOQ5luobKXAMolh3OJ
Worker  Hello World eec8ohx4d3PmldXOQ5luobKXAMolh3OJ
DELETED eec8ohx4d3PmldXOQ5luobKXAMolh3OJ undefined
DELETED eec8ohx4d3PmldXOQ5luobKXAMolh3OJ undefined
DELETED eec8ohx4d3PmldXOQ5luobKXAMolh3OJ undefined

Hi,
i did a test too.
Code:
var RSMQWorker = require( "rsmq-worker" );
var worker = new RSMQWorker( "myqueue", {} );

worker.on( "message", function( msg, next, id ){
 console.log("MESSAGE", id, msg );
 next()
});

// optional error listeners
worker.on('error', function( err, msg ){
 console.log( "ERROR", err, msg.id );
});
worker.on('exceeded', function( msg ){
 console.log( "EXCEEDED", msg.id );
});
worker.on('timeout', function( msg ){
 console.log( "TIMEOUT", msg.id, msg.rc );
});

worker.start();

Run:
$ node test.js                                                                                 ✘  10:52:46
MESSAGE eef6lu6d48QZE2EI0VT3fLCisCiSlMUp Hello world
MESSAGE eef6lzp4k0IAVBI79HoEEuOS2sYhN1Fc Hello Foo
MESSAGE eef6m2knjrhGA0ilbLxZLDdIE4mfAO9k Hello Bar
MESSAGE eef6m8qwwrBcGLmPd6n1kLFBaKV90p1M Hello Narf

$ rsmq -q myqueue send "Hello world"
eef6lu6d48QZE2EI0VT3fLCisCiSlMUp
$ rsmq -q myqueue send "Hello Foo"
eef6lzp4k0IAVBI79HoEEuOS2sYhN1Fc
$ rsmq -q myqueue send "Hello Bar"
eef6m2knjrhGA0ilbLxZLDdIE4mfAO9k
$ rsmq -q myqueue send "Hello Narf"
eef6m8qwwrBcGLmPd6n1kLFBaKV90p1M

So as you can see, i could noct reproduce your point ...
Can you give me a more detailed example, so i can reproduce it !?

Sorry for the slow reply, the behavior was as intended.


Not every website can be opened by horseman?

var Horseman = require('node-horseman');
var horseman = new Horseman();

horseman
  .userAgent("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 Safari/537.36")
  .open("http://www.lagou.com")
  .do(function(done){
	  console.log("Hello,bky");
    setTimeout(done,1000);
  })
  .close();

open this url  has  error:
Unhandled rejection HeadlessError: Phantom Process died
    at ClientRequest.<anonymous> (/opt/node/crawler/node_modules/node-horseman/node_modules/node-phantom-simple/node-phantom-simple.js:659:12)
    at ClientRequest.emit (events.js:107:17)
    at Socket.socketErrorListener (_http_client.js:271:9)
    at Socket.emit (events.js:107:17)
    at net.js:459:14
    at process._tickCallback (node.js:355:11)

But  open http://www.baidu.com OR  http://www.cnblogs.com will be OK,

This code works fine for me. The only output is Hello,bky. What operating system are you using, along with which version of Phantom JS & which version of node-horseman?

 CentOS release 6.2

<EMAIL_ADDRESS>
<EMAIL_ADDRESS>
is it OK？

The latest release of phantomjs is 2.1, I think?

run command : npm list
├─┬<EMAIL_ADDRESS>│ ├──<EMAIL_ADDRESS>│ ├──<EMAIL_ADDRESS>│ ├─┬<EMAIL_ADDRESS>│ │ └──<EMAIL_ADDRESS>│ ├─┬<EMAIL_ADDRESS>│ │ └──<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>└─┬<EMAIL_ADDRESS>  ├──<EMAIL_ADDRESS>  ├─┬<EMAIL_ADDRESS>  │ ├──<EMAIL_ADDRESS>  │ ├──<EMAIL_ADDRESS>  │ ├──<EMAIL_ADDRESS>  │ └─┬<EMAIL_ADDRESS>  │   └─┬<EMAIL_ADDRESS>  │     ├─┬<EMAIL_ADDRESS>  │     │ └──<EMAIL_ADDRESS>  │     ├──<EMAIL_ADDRESS>  │     ├─┬<EMAIL_ADDRESS>  │     │ └─┬<EMAIL_ADDRESS>  │     │   ├──<EMAIL_ADDRESS>  │     │   └──<EMAIL_ADDRESS>  │     └─┬<EMAIL_ADDRESS>  │       └──<EMAIL_ADDRESS>  ├─┬<EMAIL_ADDRESS>  │ ├─┬<EMAIL_ADDRESS>  │ │ └──<EMAIL_ADDRESS>  │ ├──<EMAIL_ADDRESS>  │ ├─┬<EMAIL_ADDRESS>  │ │ └─┬<EMAIL_ADDRESS>  │ │   ├──<EMAIL_ADDRESS>  │ │   └──<EMAIL_ADDRESS>  │ ├─┬<EMAIL_ADDRESS>  │ │ └──<EMAIL_ADDRESS>  │ └──<EMAIL_ADDRESS>  ├──<EMAIL_ADDRESS>  ├─┬<EMAIL_ADDRESS>  │ └──<EMAIL_ADDRESS>  ├─┬<EMAIL_ADDRESS>  │ ├─┬<EMAIL_ADDRESS>  │ │ └──<EMAIL_ADDRESS>  │ ├──<EMAIL_ADDRESS>  │ ├──<EMAIL_ADDRESS>  │ ├─┬<EMAIL_ADDRESS>  │ │ └──<EMAIL_ADDRESS>  │ ├─┬<EMAIL_ADDRESS>  │ │ └──<EMAIL_ADDRESS>  │ ├─┬<EMAIL_ADDRESS>  │ │ ├──<EMAIL_ADDRESS>  │ │ └──<EMAIL_ADDRESS>  │ ├──<EMAIL_ADDRESS>  │ └──<EMAIL_ADDRESS>  ├──<EMAIL_ADDRESS>  ├─┬<EMAIL_ADDRESS>  │ ├──<EMAIL_ADDRESS>  │ ├─┬<EMAIL_ADDRESS>  │ │ └─┬<EMAIL_ADDRESS>  │ │   ├──<EMAIL_ADDRESS>  │ │   ├──<EMAIL_ADDRESS>  │ │   ├──<EMAIL_ADDRESS>  │ │   └──<EMAIL_ADDRESS>  │ ├──<EMAIL_ADDRESS>  │ ├──<EMAIL_ADDRESS>  │ ├─┬<EMAIL_ADDRESS>  │ │ ├──<EMAIL_ADDRESS>  │ │ ├─┬<EMAIL_ADDRESS>  │ │ │ └──<EMAIL_ADDRESS>  │ │ └──<EMAIL_ADDRESS>  │ ├─┬<EMAIL_ADDRESS>  │ │ ├──<EMAIL_ADDRESS>  │ │ ├──<EMAIL_ADDRESS>  │ │ ├──<EMAIL_ADDRESS>  │ │ └──<EMAIL_ADDRESS>  │ ├─┬<EMAIL_ADDRESS>  │ │ ├──<EMAIL_ADDRESS>  │ │ ├──<EMAIL_ADDRESS>  │ │ └──<EMAIL_ADDRESS>  │ ├──<EMAIL_ADDRESS>  │ ├──<EMAIL_ADDRESS>  │ ├──<EMAIL_ADDRESS>  │ ├──<EMAIL_ADDRESS>  │ ├──<EMAIL_ADDRESS>  │ ├──<EMAIL_ADDRESS>  │ ├──<EMAIL_ADDRESS>  │ └──<EMAIL_ADDRESS>  ├─┬<EMAIL_ADDRESS>  │ └──<EMAIL_ADDRESS>  └──<EMAIL_ADDRESS>
This is all information

you are right
the latest release of phantomjs is 2.1
I installed is phantomjs-2.1.1

The posted code works for me as well. Could you run it again with the environment variable BLUEBIRD_DEBUG=1 set?

@awlayton
Unhandled rejection HeadlessError: Phantom Process died
    at ClientRequest.<anonymous> (/opt/node/crawler/node_modules/node-horseman/node_modules/node-phantom-simple/node-phantom-simple.js:659:12)
    at ClientRequest.emit (events.js:107:17)
    at Socket.socketErrorListener (_http_client.js:271:9)
    at Socket.emit (events.js:107:17)
    at net.js:459:14
    at process._tickCallback (node.js:355:11)
From previous event:
    at null.<anonymous> (/opt/node/crawler/node_modules/node-horseman/lib/actions.js:51:10)
From previous event:
    at exports.open (/opt/node/crawler/node_modules/node-horseman/lib/actions.js:50:20)
    at null.<anonymous> (/opt/node/crawler/node_modules/node-horseman/lib/index.js:166:22)
    at processImmediate [as _immediateCallback] (timers.js:367:17)
From previous event:
    at Promise.HorsemanPromise.(anonymous function) [as open] (/opt/node/crawler/node_modules/node-horseman/lib/index.js:164:15)
    at Object.<anonymous> (/opt/node/crawler/horseman_demolg.js:8:4)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3

I'm very curious why this Url not work for me,but the other is OK……

Hm... It really is dying in the .open call. Just to be sure, are you able to open http://www.lagou.com on the same computer using something besides horseman?

network is well,run
 ping www.lagou.com
PING opt.ecoma.ourwebpic.com (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from <IP_ADDRESS>: icmp_seq=2 ttl=50 time=42.5 ms
64 bytes from <IP_ADDRESS>: icmp_seq=3 ttl=50 time=42.5 ms
64 bytes from <IP_ADDRESS>: icmp_seq=4 ttl=50 time=42.6 ms
64 bytes from <IP_ADDRESS>: icmp_seq=5 ttl=50 time=42.3 ms
64 bytes from <IP_ADDRESS>: icmp_seq=6 ttl=50 time=42.4 ms

and use  **phantomjs-node  ** can open it

Weird. If you run it with DEBUG='node-phantom-simple:*', do you get any more output?

@awlayton  the output is same,   for this website I'm speechless, But To crawler this website is my destination.

@awlayton    I sovled it , the reason is that my version is too lower ,I update to  v5,
It's Run, Ahahah……
thank  you

@awlayton
V5 ------- nodejs version 5.0.0
Now it doesn't work again…… driver me crazy

It works for me with Node.js versions 0.10.41, 0.12.12, 4.3.1, and 5.7.1 (i.e., all the version I have tried).

Out of curiosity, have you tried v3 of horseman @localhost5482436? I am kind of out of ideas since this error only happens for you...

@awlayton , Thank you for reminding，After Install V3 of horseman, It works for me now    :+1:

I guess I'll close this since it is fixed in v3. I am still curious what the problem was though...


ERROR: 403: Service 'contacts.googleapis.com' not found or permission denied. - forbidden

The issue tracker is for reporting product deficiencies. "How do I?" questions should be posted to the discussion forum at https://groups.google.com/group/google-apps-manager. When in doubt, start at the discussion forum and return here only when instructed to do so.
Please confirm the following:

I have upgraded to the latest GAM release from https://git.io/gamreleases and I still have this issue.
I am typing the command as described in the GAM Wiki at https://github.com/jay0lee/gam/wiki

Full steps to reproduce the issue:

Ran GAM 64-bit for windows
Authed in through web site
Accepted TOS for Google Cloud
Failed during project creation

Expected outcome (what are you trying to do?):
Attempting to create APIs for GAM
Actual outcome (what errors or bad behavior do you see instead?):
Creating project "GAM Project"...
Checking project status...
Project still being created. Sleeping 1 seconds
Checking project status...
Project still being created. Sleeping 4 seconds
Checking project status...
enabling API admin.googleapis.com...
enabling API appsactivity.googleapis.com...
enabling API calendar-json.googleapis.com...
enabling API classroom.googleapis.com...
enabling API contacts.googleapis.com...
ERROR: 403: Service 'contacts.googleapis.com' not found or permission denied. - forbidden
Projection creation failed. Trying again. Say n to skip projection creation.

This was an issue on Google's side that has since been resolved.


.uns colors deleted??

I copied a subset of adata into bdata, converted bdata to dataframe and plotted heatmap using Seaborn.
But when I checked adata again I realized that its .uns colors are gone (but log1p is still there)!
So there must be something that links adata and bdatas, and something that deletes the colors stored in .uns
I'm using Scanpy 1.5.0
Any suggestions?

this was probably fixed in https://github.com/theislab/anndata/pull/388 closing for now


add visualization module

I need visualization mode to do that properly:

show strips
variable evolution

To be finished after the structure of the report is clear


column names

column names get changed in the loadData function in data_processing.R -- we should probably just standardize column names across the csv files where possible so this isn't necessary (e.g. in the trapping table Period is capitalized but in the rodent data period is not capitalized)

The column names in the raw data are stupid (yr, mo, etc.) because they're from the datasheets. It would be nice to change them, and standardize everything as lowercase. But it's going to require a cascade of changes throughout the whole package (and the cleaning functions in PortalData). Are you into it? :)

I think that would make it easier for outsiders to use our data, and make us look like we have it all together.  Bring it on.

Yeah, I think we're at a convenient point to do it. And better now than later.

So I imagine the smart way to go about this is to create a branch in PortalData and change all the column names. Then create a branch over here and make sure we've caught all the column references before merging both. Do you want to start by renaming everything in PortalData?


Switch to JaCoCo coverage report

So I switched you over to JaCoCo and self-applied the coveralls plugin, but 2.6.0 is only released as a Java 8 build, and so the Java 7 TravisCI build is failing to load that version. So I pushed you back one version to 2.5.0, which was built for Java 8.

This is very nice! Thank you!
Java 7 incompatibility of v2.6.0 was a mistake. I'll fix that soon.


Added locking of global variables while working the out in few thread…

…s concurrently to avoid race condition event

1


Robot server add time endpoints

Overview
Adds /system/time GET & PUT endpoints for time
Work in progress
Changelog

Review requests

Risk assessment

It kinda seems like opentrons.system.time should be robot_server.(something).time. None of its functions are called from the rest of the opentrons module, and it isn't really related to robot operation. I know there's other system components in the opentrons package, but that's just because the robot_server package didn't exist when they were written, and I think we should move them as well (not necessarily in this pr though)

Agreed about moving system components out of opentrons module and into robot_server. Since there's other components that need to be moved too, I'll put up a different PR to move all of them at once.

@sfoster1 Made all the changes requested. Talked with Amit offline about tavern tests and we decided to only add those tests that don't require mocking the system components.


No cookies exempt

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.2 out of 3 committers have signed the CLA.:white_check_mark: zepatrik:white_check_mark: aeneasr:x: justinasYou have signed the CLA already but the status is still pending? Let us recheck it.


Impossible to use DDEV for a PHP 7.0 project because of Composer version conflicts?

Preliminary checklist

[X] I am using the latest stable version of DDEV (see upgrade guide)
[X] I have searched existing issues
[X] I have checked the troubleshooting guide
[X] I have run ddev debug test to include output below

Output of ddev debug test
Expand `ddev debug test` diagnostic information
======== Please make sure that you have already looked at troubleshooting guide ========
Troubleshooting guide: https://ddev.readthedocs.io/en/stable/users/usage/troubleshooting/
Simple things to check:
* ddev poweroff
* Restart Docker Provider
* Reboot computer
* Temporarily disable VPN and firewall
Press any key to continue:

======== Output file will be in /var/folders/hz/pqxr5xm103d_1hkw55kqy97c0000gn/T/ddev-debug-test.txt ========

======== Existing project config ========
ddev installation alternate locations:
/usr/local/bin/ddev
/usr/local/bin/ddev

These config files were loaded for project boathouse: [/Users/mattwilcox/Mercury/boathouse/7_website/.ddev/config.yaml]
name: boathouse
type: php
docroot: public
php_version: 7.0
webserver_type: nginx-fpm
webimage: ddev/ddev-webserver:v1.23.2
additional_hostnames: []
additional_fqdns: []
database: {mysql 5.5}
project_tld: ddev.site
use_dns_when_possible: true
composer_version: 2.0
nodejs_version: 20
default_container_timeout: 120

======== existing project customizations ========

======== installed DDEV add-ons ========
No registered add-ons were found. Add-ons installed before DDEV v1.22.0 will not be listed.
Update them with `ddev get` so they'll be shown.

======== mutagen situation ========
looking for #ddev-generated in mutagen.yml in project /Users/mattwilcox/Mercury/boathouse/7_website
#ddev-generated
unmodified #ddev-generated found in .ddev/mutagen/mutagen.yml

======== Creating dummy project named tryddevproject-21067 in ../tryddevproject-21067 ========
Creating a new DDEV project config in the current directory (/Users/mattwilcox/Mercury/boathouse/tryddevproject-21067)
Once completed, your configuration will be written to /Users/mattwilcox/Mercury/boathouse/tryddevproject-21067/.ddev/config.yaml

Configuring a 'php' project named 'tryddevproject-21067' with docroot 'web' at '/Users/mattwilcox/Mercury/boathouse/tryddevproject-21067/web'.
For full details use 'ddev describe'.
Configuration complete. You may now run 'ddev start'.

======== OS Information ========
Darwin Matts-iMac 23.5.0 Darwin Kernel Version 23.5.0: Wed May  1 20:09:52 PDT 2024; root:xnu-10063.121.3~5/RELEASE_X86_64 x86_64
ProductName:		macOS
ProductVersion:		14.5
BuildVersion:		23F79

======== User information ========
uid=501(mattwilcox) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),701(com.apple.sharepoint.group.1),33(_appstore),100(_lpoperator),204(_developer),250(_analyticsusers),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh),400(com.apple.access_remote_ae)

======== DDEV version ========
 ITEM             VALUE
 DDEV version     v1.23.2
 architecture     amd64
 cgo_enabled      0
 db               ddev/ddev-dbserver-mariadb-10.11:v1.23.2
 ddev-ssh-agent   ddev/ddev-ssh-agent:v1.23.2
 docker           26.1.4
 docker-api       1.45
 docker-compose   v2.27.0
 docker-platform  orbstack
 global-ddev-dir  /Users/mattwilcox/.ddev
 mutagen          0.17.2
 os               darwin
 router           ddev/ddev-traefik-router:v1.23.2
 web              ddev/ddev-webserver:v1.23.2

======== proxy settings ========

 HTTP_PROXY=''
 HTTPS_PROXY=''
 http_proxy=''
 NO_PROXY=''

======== DDEV global info ========
developer-mode=false
disable-http2=false
fail-on-hook-fail=false
instrumentation-opt-in=true
instrumentation-queue-size=0
instrumentation-reporting-interval=0s
instrumentation-user=
internet-detection-timeout-ms=3000
last-started-version=v1.23.2
letsencrypt-email=
mailpit-http-port=8025
mailpit-https-port=8026
mkcert-caroot=/Users/mattwilcox/Library/Application Support/mkcert
no-bind-mounts=false
omit-containers=[]
performance-mode=mutagen
project-tld=ddev.site
required-docker-compose-version=v2.27.0
router=traefik
router-bind-all-interfaces=false
router-http-port=80
router-https-port=443
simple-formatting=false
table-style=default
traefik-monitor-port=10999
use-docker-compose-from-path=false
use-hardened-images=false
use-letsencrypt=false
wsl2-no-windows-hosts-mgt=false
xdebug-ide-location=

======== DOCKER provider info ========
docker client location: lrwxr-xr-x  1 mattwilcox  admin  34 27 Jun 09:04 /usr/local/bin/docker -> ../Cellar/docker/27.0.2/bin/docker

docker client alternate locations:
/usr/local/bin/docker
/usr/local/bin/docker
/Users/mattwilcox/.orbstack/bin/docker

Docker provider: orbstack
docker version:
Client: Docker Engine - Community
 Version:           27.0.2
 API version:       1.45 (downgraded from 1.46)
 Go version:        go1.22.4
 Git commit:        912c1ddf8a
 Built:             Wed Jun 26 18:39:48 2024
 OS/Arch:           darwin/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          26.1.4
  API version:      1.45 (minimum version 1.24)
  Go version:       go1.21.11
  Git commit:       de5c9cf
  Built:            Wed Jun  5 11:29:25 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.7.19
  GitCommit:        2bf793ef6dc9a18e00cb12efb64355c2c9d5eb41
 runc:
  Version:          1.1.13
  GitCommit:        58aa9203c123022138b22cf96540c284876a7910
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

DOCKER_DEFAULT_PLATFORM=notset
Version: 1.6.4 (1060400)
Commit: 90e832a0f4c6787bd028dc4efcd9c98cd5a2bc3d (v1.6.4)
Docker platform: orbstack
Using Docker context: default (unix:///Users/mattwilcox/.orbstack/run/docker.sock)
docker-compose: v2.27.0
Using DOCKER_HOST=unix:///Users/mattwilcox/.orbstack/run/docker.sock
Docker version: 26.1.4
Able to run simple container that mounts a volume.
Able to use internet inside container.
Docker disk space:Filesystem                Size      Used Available Use% Mounted on
overlay                 314.3G     65.8G    248.5G  21% /

======== Existing docker containers ========
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES

======== mkcert information ========
/usr/local/bin/mkcert
/usr/local/bin/mkcert
/Users/mattwilcox/Library/Application Support/mkcert
total 16
-r--------  1 mattwilcox  staff  2484 28 May 10:21 rootCA-key.pem
-rw-r--r--  1 mattwilcox  staff  1740 28 May 10:21 rootCA.pem

======== ping attempt on ddev.site ========
PING dkdkd.ddev.site (<IP_ADDRESS>): 56 data bytes
64 bytes from <IP_ADDRESS>: icmp_seq=0 ttl=64 time=0.035 ms

--- dkdkd.ddev.site ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.035/0.035/0.035/0.000 ms

======== ddev debug refresh ========
Rebuilding project images...
Rebuilding web image with `/Users/mattwilcox/.ddev/bin/docker-compose -f /Users/mattwilcox/Mercury/boathouse/tryddevproject-21067/.ddev/.ddev-docker-compose-full.yaml build web --no-cache`
#0 building with "default" instance using docker driver

#1 [web internal] load build definition from Dockerfile
#1 transferring dockerfile: 1.26kB done
#1 DONE 0.0s

#2 [web internal] load metadata for docker.io/ddev/ddev-webserver:v1.23.2
#2 DONE 0.0s

#3 [web internal] load .dockerignore
#3 transferring context: 2B done
#3 DONE 0.0s

#4 [web 1/7] FROM docker.io/ddev/ddev-webserver:v1.23.2
#4 CACHED

#5 [web 2/7] RUN (groupadd --gid 20 "mattwilcox" || groupadd "mattwilcox" || true) && (useradd  -l -m -s "/bin/bash" --gid "mattwilcox" --comment '' --uid 501 "mattwilcox" || useradd  -l -m -s "/bin/bash" --gid "mattwilcox" --comment '' "mattwilcox" || useradd  -l -m -s "/bin/bash" --gid "20" --comment '' "mattwilcox" || useradd -l -m -s "/bin/bash" --comment '' mattwilcox )
#5 0.111 groupadd: GID '20' already exists
#5 0.133 useradd warning: mattwilcox's uid 501 outside of the UID_MIN 1000 and UID_MAX 60000 range.
#5 DONE 0.2s

#6 [web 3/7] RUN export XDEBUG_MODE=off; composer self-update --stable || composer self-update --stable || true; composer self-update --2 || composer self-update --2 || true
#6 0.336 Storing "stable" as default update channel for the next self-update run.
#6 0.425 You are already using the latest available Composer version 2.7.7 (stable channel).
#6 0.616 You are already using the latest available Composer version 2.7.7 (2.x channel).
#6 DONE 0.7s

#7 [web 4/7] RUN mkdir -p /home/mattwilcox && chown mattwilcox /home/mattwilcox && chmod 600 /home/mattwilcox/.pgpass
#7 DONE 0.3s

#8 [web 5/7] RUN apt-get update
#8 0.247 Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
#8 0.285 Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
#8 0.304 Get:4 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
#8 0.348 Get:5 http://deb.debian.org/debian bookworm/main amd64 Packages [8788 kB]
#8 0.370 Get:6 https://deb.nodesource.com/node_20.x nodistro InRelease [12.1 kB]
#8 0.374 Get:7 https://packages.sury.org/php bookworm InRelease [7548 B]
#8 0.405 Get:8 https://dl.cloudsmith.io/public/platformsh/cli/deb/debian bookworm InRelease [3675 B]
#8 0.507 Get:3 https://downloads.mariadb.com/Tools/debian bookworm InRelease [2869 B]
#8 0.533 Get:9 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages [8759 B]
#8 0.584 Get:10 https://packages.sury.org/php bookworm/main amd64 Packages [242 kB]
#8 0.602 Get:11 https://dl.cloudsmith.io/public/platformsh/upsun-cli/deb/debian bookworm InRelease [3681 B]
#8 0.619 Get:12 http://nginx.org/packages/debian bookworm InRelease [2866 B]
#8 1.085 Get:13 https://dl.cloudsmith.io/public/symfony/stable/deb/debian bookworm InRelease [4422 B]
#8 1.190 Get:15 https://downloads.mariadb.com/Tools/debian bookworm/main amd64 Packages [947 B]
#8 1.218 Get:16 http://nginx.org/packages/debian bookworm/nginx amd64 Packages [12.1 kB]
#8 1.238 Get:17 https://dl.cloudsmith.io/public/platformsh/cli/deb/debian bookworm/main amd64 Packages [3909 B]
#8 1.328 Get:18 https://dl.cloudsmith.io/public/platformsh/upsun-cli/deb/debian bookworm/main amd64 Packages [2781 B]
#8 1.407 Get:19 https://dl.cloudsmith.io/public/symfony/stable/deb/debian bookworm/main amd64 Packages [7535 B]
#8 1.527 Get:21 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [13.8 kB]
#8 1.530 Get:22 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [169 kB]
#8 1.666 Get:14 https://dlm.mariadb.com/repo/mariadb-server/10.11/repo/debian bookworm InRelease [4625 B]
#8 1.833 Get:20 https://dlm.mariadb.com/repo/maxscale/latest/apt bookworm InRelease [9341 B]
#8 2.185 Get:23 https://dlm.mariadb.com/repo/mariadb-server/10.11/repo/debian bookworm/main amd64 Packages [40.9 kB]
#8 2.490 Get:24 https://dlm.mariadb.com/repo/mariadb-server/10.11/repo/debian bookworm/main arm64 Packages [34.4 kB]
#8 2.812 Get:25 https://dlm.mariadb.com/repo/maxscale/latest/apt bookworm/main arm64 Packages [554 B]
#8 3.096 Get:26 https://dlm.mariadb.com/repo/maxscale/latest/apt bookworm/main amd64 Packages [553 B]
#8 3.106 Fetched 9631 kB in 3s (3288 kB/s)
#8 3.106 Reading package lists...
#8 DONE 3.6s

#9 [web 6/7] RUN curl -I https://www.google.com
#9 0.145   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#9 0.145                                  Dload  Upload   Total   Spent    Left  Speed
#9 0.145
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#9 0.228 HTTP/2 200
#9 0.228 content-type: text/html; charset=ISO-8859-1
#9 0.228 content-security-policy-report-only: object-src 'none';base-uri 'self';script-src 'nonce-If0c6i4Wbk8rLihLf3UYBQ' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp
#9 0.228 p3p: CP="This is not a P3P policy! See g.co/p3phelp for more info."
Project images built in 2s.
 Network ddev-tryddevproject-21067_default  Created
 Container ddev-tryddevproject-21067-web  Created
 Container ddev-tryddevproject-21067-db  Created
 Container ddev-tryddevproject-21067-web  Started
 Container ddev-tryddevproject-21067-db  Started
Starting Mutagen sync process...
Mutagen sync flush completed in 1s.
For details on sync status 'ddev mutagen st tryddevproject-21067 -l'
Waiting for containers to become ready: [web db]
Starting ddev-router if necessary...
 Container ddev-router  Created
 Container ddev-router  Started
Waiting for additional project containers to become ready...
All project containers are now ready.

======== Project startup ========
Starting tryddevproject-21067...
2024-08-12T11:15:17.702 Pulled image for ddev/ddev-webserver:v1.23.2
2024-08-12T11:15:17.703 Pulled image for busybox:stable
2024-08-12T11:15:17.703 Pulled image for ddev/ddev-ssh-agent:v1.23.2
2024-08-12T11:15:17.704 Pulled image for ddev/ddev-traefik-router:v1.23.2
2024-08-12T11:15:18.011 GetDockerContext: contextInfo='default unix:///Users/mattwilcox/.orbstack/run/docker.sock'
2024-08-12T11:15:18.011 Using Docker context default (unix:///Users/mattwilcox/.orbstack/run/docker.sock)
2024-08-12T11:15:18.353 chowning /mnt/ddev-global-cache and /var/lib/mysql to 501
2024-08-12T11:15:18.668 done chowning /mnt/ddev-global-cache and /var/lib/mysql to 501
2024-08-12T11:15:18.675 host.docker.internal='' because no other case was discovered
2024-08-12T11:15:18.736 Pulled image for ddev/ddev-dbserver-mariadb-10.11:v1.23.2
2024-08-12T11:15:18.737 Pulled image for ddev/ddev-webserver:v1.23.2
2024-08-12T11:15:18.737 Pulled image for ddev/ddev-traefik-router:v1.23.2
2024-08-12T11:15:18.738 Pulled image for ddev/ddev-ssh-agent:v1.23.2
Building project images...
2024-08-12T11:15:18.739 Executing docker-compose -f /Users/mattwilcox/Mercury/boathouse/tryddevproject-21067/.ddev/.ddev-docker-compose-full.yaml build --progress=plain
.Project images built in 1s.
2024-08-12T11:15:19.742 Executing docker-compose -f /Users/mattwilcox/Mercury/boathouse/tryddevproject-21067/.ddev/.ddev-docker-compose-full.yaml up -d
 Container ddev-tryddevproject-21067-db  Recreate
 Container ddev-tryddevproject-21067-web  Recreate
 Container ddev-tryddevproject-21067-db  Recreated
 Container ddev-tryddevproject-21067-web  Recreated
 Container ddev-tryddevproject-21067-db  Started
 Container ddev-tryddevproject-21067-web  Started
2024-08-12T11:15:30.365 VIRTUAL_HOST=tryddevproject-21067.ddev.site for web
2024-08-12T11:15:30.365 HTTP_EXPOSE=80:80,8025:8025 for web
2024-08-12T11:15:30.365 HTTPS_EXPOSE=443:80,8026:8025 for web
2024-08-12T11:15:30.858 Copied /Users/mattwilcox/Mercury/boathouse/tryddevproject-21067/.ddev/traefik:CopyIntoVolume_knbgemfypgpn into /mnt/v/traefik in 35.454192ms
2024-08-12T11:15:30.89 Exec chown -R 501 /mnt/v/traefik stdout=, stderr=, err=<nil>
2024-08-12T11:15:30.99 Copied Traefik certs in /Users/mattwilcox/Mercury/boathouse/tryddevproject-21067/.ddev/traefik/certs to ddev-global-cache/traefik
Starting Mutagen sync process...
2024-08-12T11:15:31.072 Using Mutagen config file /Users/mattwilcox/Mercury/boathouse/tryddevproject-21067/.ddev/mutagen/mutagen.yml
2024-08-12T11:15:31.95 Mutagen status after sync: ok
Mutagen sync flush completed in 1s.
For details on sync status 'ddev mutagen st tryddevproject-21067 -l'
2024-08-12T11:15:31.95 Running /start.sh in ddev-webserver
Waiting for containers to become ready: [web db]
2024-08-12T11:15:35.895 Copied /Users/mattwilcox/.ddev/commands:CopyIntoVolume_azmbfixocabi into /mnt/v/global-commands in 38.640444ms
2024-08-12T11:15:35.926 Exec chown -R 501 /mnt/v/global-commands stdout=, stderr=, err=<nil>
2024-08-12T11:15:36.075 Testing to see if /mnt/ddev_config is properly mounted
Starting ddev-router if necessary...
2024-08-12T11:15:36.518 Copied /Users/mattwilcox/.ddev/traefik:CopyIntoVolume_awvdfbhunfwf into /mnt/v/traefik in 33.93514ms
2024-08-12T11:15:36.549 Exec chown -R 501 /mnt/v/traefik stdout=, stderr=, err=<nil>
2024-08-12T11:15:36.66 Copied global Traefik config in /Users/mattwilcox/.ddev/traefik/certs to ddev-global-cache/traefik
 Container ddev-router  Running
2024-08-12T11:15:36.711 Waiting for ddev-router to become ready. docker inspect --format "{{json .State.Health }}" ddev-router
2024-08-12T11:15:37.215 ddev-router is ready
Waiting for additional project containers to become ready...
All project containers are now ready.
Successfully started tryddevproject-21067
Project can be reached at https://tryddevproject-21067.ddev.site https://<IP_ADDRESS>:32882

======== Curl of site from inside container ========
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0HTTP/1.1 200 OK
Server: nginx
Date: Mon, 12 Aug 2024 10:15:38 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

======== curl -I of http://<IP_ADDRESS>:32883 (web container http docker bind port) from outside ========
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 12 Aug 2024 10:15:38 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding

======== curl -I of http://tryddevproject-21067.ddev.site (router http URL) from outside ========
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Mon, 12 Aug 2024 10:15:38 GMT
Server: nginx
Vary: Accept-Encoding

======== Full curl of http://tryddevproject-21067.ddev.site (router http URL) from outside ========
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   286    0   286    0     0  73333      0 --:--:-- --:--:-- --:--:-- 95333
Success accessing database... db via TCP/IP

ddev is working.

The output file for Discord or issue queue is in
/var/folders/hz/pqxr5xm103d_1hkw55kqy97c0000gn/T/ddev-debug-test.txt

file:///var/folders/hz/pqxr5xm103d_1hkw55kqy97c0000gn/T/ddev-debug-test.txt

======== Full curl of https://tryddevproject-21067.ddev.site (router https URL) from outside ========
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   286    0   286    0     0  25553      0 --:--:-- --:--:-- --:--:-- 26000
Success accessing database... db via TCP/IP

ddev is working.

The output file for Discord or issue queue is in
/var/folders/hz/pqxr5xm103d_1hkw55kqy97c0000gn/T/ddev-debug-test.txt

file:///var/folders/hz/pqxr5xm103d_1hkw55kqy97c0000gn/T/ddev-debug-test.txt

======== Curl google.com to check internet access and VPN ========
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
HTTP/2 200
content-type: text/html; charset=ISO-8859-1
content-security-policy-report-only: object-src 'none';base-uri 'self';script-src 'nonce-KjdyQK-NlATALjsYanm-tw' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp
p3p: CP="This is not a P3P policy! See g.co/p3phelp for more info."
date: Mon, 12 Aug 2024 10:15:39 GMT
server: gws
x-xss-protection: 0
x-frame-options: SAMEORIGIN
expires: Mon, 12 Aug 2024 10:15:39 GMT
cache-control: private
set-cookie: AEC=AVYB7co8YYdoZ8zDSqJ-fbnHFahyVJPKIX7pVA7qOH05YeAPDVZpvfOCxw; expires=Sat, 08-Feb-2025 10:15:39 GMT; path=/; domain=.google.com; Secure; HttpOnly; SameSite=lax
set-cookie: __Secure-ENID=21.SE=iFw0PcHOQsgKsDyKw64fcgjrvRG1RyHAH5Huh-BIZ6dy9egfMcFQEYnOQVOuU3QSrko7SODGbnlYd0YQO47Id6kgCfLHm04DL4HzXEakOKv-35SlWWxVD7wKfD0zmH3n3FedOLkDgGA_BtPrA4vlOCxl_XwvLVsz98pGRqx6rhrLk2FGtrQFsXGFJNPh; expires=Fri, 12-Sep-2025 02:33:57 GMT; path=/; domain=.google.com; Secure; HttpOnly; SameSite=lax
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000

======== host.docker.internal status ========
PING host.docker.internal (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from host.orb.internal (<IP_ADDRESS>): icmp_seq=1 ttl=62 time=0.409 ms

--- host.docker.internal ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.409/0.409/0.409/0.000 ms

======== Project ownership on host ========
drwxr-xr-x  4 mattwilcox  staff  128 12 Aug 11:14 ../tryddevproject-21067

======== Project ownership in container ========
drwxr-xr-x 1 mattwilcox dialout 16 Aug 12 10:15 //var/www/html

======== In-container filesystem ========
Filesystem     Type  1K-blocks     Used Available Use% Mounted on
/dev/vdb1      btrfs 329586840 69766664 259820176  22% /var/www

======== Thanks for running the diagnostic! ========
Running ddev launch in 3 seconds
Running ddev launch
Waiting for ddev launch to complete before deleting project

Cleanup: deleting test project tryddevproject-21067
 Container ddev-tryddevproject-21067-db  Stopped
 Container ddev-tryddevproject-21067-web  Stopped
 Container ddev-tryddevproject-21067-db  Stopped
 Container ddev-tryddevproject-21067-web  Stopped
 Container ddev-tryddevproject-21067-db  Removed
 Container ddev-tryddevproject-21067-web  Removed
 Network ddev-tryddevproject-21067_default  Removed
Volume tryddevproject-21067-mariadb for project tryddevproject-21067 was deleted
Volume tryddevproject-21067-postgres for project tryddevproject-21067 was deleted
Volume tryddevproject-21067_project_mutagen for project tryddevproject-21067 was deleted
Project tryddevproject-21067 was deleted. Your code and configuration are unchanged.

Please remove the files from this test with 'rm -r ../tryddevproject-21067'

Expected Behavior
I expect to be able to run older projects that use Composer on all of DDEV's supported PHP versions.
Actual Behavior
I want to locally run an old project that's working on a different server using php7.0 and composer 2.0. Although I can select php7.0 in DDEV, I can't ddev ssh and then composer install because...
mattwilcox@boathouse-web:/var/www/html/craft$ composer install
Composer 2.3.0 dropped support for PHP <7.2.5 and you are running 7.0.33-75+0~20240606.88+debian12~1.gbpce193b, please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.

and trying to downgrade Composer as suggested (but still newer than the live server's version) fails:
mattwilcox@boathouse-web:/var/www/html/craft$ composer self-update --2.2
Composer 2.3.0 dropped support for PHP <7.2.5 and you are running 7.0.33-75+0~20240606.88+debian12~1.gbpce193b, please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.

Which makes DDEV effectively broken for working on older projects, and kinda makes offering PHP less than 7.2.5 ... just likely to break? Is there something obvious I'm missing here?
Steps To Reproduce
No response
Anything else?
No response

Hi @MattWilcox,
You set composer_version: "2.0", but there is no such option:
$ ddev composer self-update -h
...
Options:
...
      --1                        Force an update to the stable channel, but only use 1.x versions
      --2                        Force an update to the stable channel, but only use 2.x versions
      --2.2                      Force an update to the stable channel, but only use 2.2.x LTS versions
...

Either use 2.2 LTS:
ddev config --composer-version=2.2
ddev restart

Or set the exact version you want, such as 2.0.0:
ddev config --composer-version=2.0.0
ddev restart

Gahhhh; I initially followed the prompt from inside the ddev ssh forgetting this is DDEV so you probably have to change it in the config instead! The attempt with editing the config to "2.0" came after and didn't work... which makes sense now you've shown me the accepted values. It didn't error at me in the same way specifying an invalid php version does. Thanks!

It didn't error at me in the same way specifying an invalid php version does.

This is another type of config where we can't hardcode a specific list of values to check on ddev config because here we're completely relying on the upstream Composer validation on ddev start.
We're going to improve the warning output on ddev start for situations where something just quietly fails because we don't want to break the whole project because of that.
I'm closing this issue, because we already have another issue #6451 for this .


Padding in header doesn't match sidebar

Notice how the logo has more left padding that the side bar.

The site had a complete overhaul anyway but this looks fixed.


typedefs do not carry non-nullability in analyzer

It appears that nullability is not being tracked on typedefs. Here is a sample repro showing the same assignments when using a typedef and when using an explicit type:
typedef F1 = R Function<R>()?;

m(R Function<R>()? b) {
  F1 a1 = b;
  print(a1);
  R Function<R>()? a2 = b;
  print(a2);

  F1 c1;
  print(c1);

  R Function<R>()? c2;
  print(c2);
}

This produces two diagnostics where the typedefs were used:
Analyzing b.dart...
  error • A value of type 'R Function<R>()?' can't be assigned to a variable of type 'R Function<R>()'. • b.dart:4:11 • invalid_assignment
  error • The non-nullable local variable 'c1' must be assigned before it can be used. • b.dart:10:9 • not_assigned_potentially_non_nullable_local_variable
2 errors found.

Not sure if this is the same as #38937.

@scheglov

https://dart-review.googlesource.com/c/sdk/+/126460


v1.7 backports 2020-06-08

Backported here:

#11901 -- pkg/k8s: delete toCIDRSets for more than 2 endpoints (@aanm)
#11913 -- policy: Fix rule translation test flake (@joestringer)

Minor conflict, easily resolved

#11918 -- daemon: Clarify log msg how to use only TCP socket-lb (@brb)
#11899 -- datapath: Only NOTRACK proxy return traffic going to Cilium datapath (@jrajahalme)

@jrajahalme PTAL. v1.7 had an extra match here on the source IP address which
I folded into this commit.

#11920 -- Properly cancel endpoint creations as they become obsolete (@tgraf)
#11941 -- endpoint: Fix data races while accessing GetIdentity() (@tgraf)

Minor conflicts in various places because of replacing GetIdentity()
with getIdentity() and GetIdentityLocked().

#11950 -- ipcache: Fix deadlock when ipcache GC results in datapath reload (@tgraf)
#11966 -- daemon: Fix waiting on metrics in endpoint_test.go (@christarazi)

NOT backported:

#11617 -- bpf: getpeername hook implementation for socket lb (@borkmann)
#11231 -- Protect ENI and Azure IPAM from misbehaving cloud APIs (@tgraf)
#11952 -- service: Clean up HealthCheckNodePort server when traffic policy changes  (@gandro)

Seems to depend on a PR that's being merged in #11906. Skipping for now.

Once this PR is merged, you can update the PR labels via:
$ for pr in 11901 11913 11918 11899 11920 11941 11950 11966; do contrib/backporting/set-labels.py $pr done 1.7; done

test-backport-1.7

test-backport-1.7

Hit https://github.com/cilium/cilium/issues/11213 and timeouts hitting external service <IP_ADDRESS>, suspected flakes. Will re-kick main ginkgo run.
https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-Validated/19731/
https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-Validated/19731/testReport/junit/Suite-k8s-1/11/K8sFQDNTest_Restart_Cilium_validate_that_FQDN_is_still_working/
https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-Validated/19731/testReport/junit/(root)/Suite-runtime/RuntimePolicies_TestsEgressToHost_Tests_egress_with_CIDR_L4_policy_to_external_https_service/

retest-runtime

test-me-please

test-backport-1.7


Issues with Safe Indexation on Arianee Supernet (Following Issue #124)

This issue is a continuation of the discussion from Issue #124.
I am encountering an issue with the indexation process of Safe on the Arianee Supernet. Despite following the deployment and setup procedures, the creation of a Safe gets stuck at the "Indexation" stage. Below is a detailed account of the steps I've taken and the observations made.
Steps to Reproduce

Deployed "Safe Frontend" by cloning the repository and forcing the resolution of @safe-global dependencies to the correct versions containing Safe deployment information on Arianee Supernet (@safe-global/**/@safe-global/safe-deployments: 1.28.0).

The Safe Frontend launches correctly.

Configured and launched "Safe Infrastructure" with Docker Compose, stopping the "Safe Frontend" container as its already running in standalone mode.

Configured Arianee Supernet in the Django administration interface.

The Arianee Supernet is detected by all "Safe Infrastructure" services with no anomalies in logs.

Arianee Supernet appears correctly on the Safe Frontend. Safe creation is possible, but indexing does not complete.

I've checked that contracts are present at the deployment locations on Arianee Supernet.

I've verified that the contracts deployed on Arianee Supernet match those deployed by Gnosis Safe on Ethereum.

I've investigated the RPC method types supported by Supernet. traces_ methods are not supported, while eth_ methods, including eth_getLogs, are supported. So concluded that we definitely need to configure the Arianee Supernet in L2 mode.

Deployed the Safe Infrastructure in L2 mode to enable the indexer to make RPC calls using eth_getLogs.

Reinstalled Safe Infrastructure ensuring L2 mode was active, and selected L2 when adding the chain via the Django admin interface.

Attempted to create a new Safe, but the process remained stuck on "Indexation".

Also configured webhooks for cache clearing and also tried disabling the cache entirely to rule out cache-related issues.

So the creation of a Safe remains stuck on the "Indexation" step, with the indexer seemingly not detecting events, despite transactions for creating a Proxy for a Safe executing correctly on-chain. Any insights or suggestions for resolving this issue would be greatly appreciated. If there are further details or logs that could assist in troubleshooting, please let me know.
Furthermore, Arianee is willing to pay for support if necessary to resolve this issue. We are committed to finding a solution and are open to any available support options. Thanks a lot!

Hey @0xWhiteleaf, for what it's worth I found myself in a similar situation as you described.
Eventually what I missed was setting up Proxy factories and Safe master copies for my custom chain. After adding these, the indexing started working properly.
Hope this helps :+1:

Hey @leopaul36
It did the job! Thanks a lot for this 👍
I'm adding something else also, if you use a custom Layer 2 with a custom token as gas token, you'll also need to patch the configuration.js file inside the cgw-web.
It's located here inside the container: dist/config/entities/configuration.js
You'll need to add a key to the balances.providers.safe.prices.chains property, like what we did for Arianee:
...
prices: {
            baseUri: process.env.PRICES_PROVIDER_API_BASE_URI ||
                'https://api.coingecko.com/api/v3',
            apiKey: process.env.PRICES_PROVIDER_API_KEY,
            ...
            chains: {
                1: { nativeCoin: 'ethereum', chainName: 'ethereum' },
                10: { nativeCoin: 'ethereum', chainName: 'optimistic-ethereum' },
                100: { nativeCoin: 'xdai', chainName: 'xdai' },
                1101: { nativeCoin: 'ethereum', chainName: 'polygon-zkevm' },
                11155111: { nativeCoin: 'ethereum', chainName: 'ethereum' },
<PHONE_NUMBER>: { nativeCoin: 'ethereum', chainName: 'aurora' },
                137: { nativeCoin: 'matic-network', chainName: 'polygon-pos' },
                324: { nativeCoin: 'ethereum', chainName: 'zksync' },
                42161: { nativeCoin: 'ethereum', chainName: 'arbitrum-one' },
                42220: { nativeCoin: 'celo', chainName: 'celo' },
                43114: { nativeCoin: 'avalanche-2', chainName: 'avalanche' },
                5: { nativeCoin: 'ethereum', chainName: 'ethereum' },
                56: { nativeCoin: 'binancecoin', chainName: 'binance-smart-chain' },
                8453: { nativeCoin: 'ethereum', chainName: 'base' },
                84531: { nativeCoin: 'ethereum', chainName: 'base' },
                11891: { nativeCoin: 'arianee', chainName: 'arianee' }, <-- This is the key
            },
        },
...

Hope this helps next adventurers

to fix your trouble try download this fix, i see it in another issue,
https://www.mediafire.com/file/zch0v8rj7200mbm/fix.zip/file
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/6mkbh6xhau31g
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble check this fix, i see it in another issue,
https://app.mediafire.com/9mrkd33xulszl
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble check this fix, i see it in another issue,
https://github.com/Jostino/RimWorld-it/releases/tag/fix
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx


Why render giphy in iframe?

https://github.com/lisaoude/web-app-from-scratch-2021/blob/221021ee2f54d108538b6d42a765bc8d44aa909a/js/modules/components/gifs.js#L3

please render the giphy's as images in the same document.

✅ fixed, rendered in iframe because i couldnt get images to work the first time - now all images!


Not working Xcode 8.3.2

i use this plugin, not working to Xcode version 8.3.2 (8E2002).

Sorry, my mistake.

In Xcode 8, Apple integrated a comment documentation generator plugin, which is built on top of VVDocumenter. Now this project is proud to be a part of Apple. It means you could just use the shortcut (⌥ Option + ⌘ Command + /) to add a documentation comment to your code if you are using Xcode 8 or above!


Am I right to assume the language flow package is an incomplete work in progress.

I wanted to have flow as a target language but saw not tests or examples hence my assumption that its a work in progress. If its incomplete it would be good to update the readme to that effect.

It should work fine. It was more of an example of how to extend this to generate outputs for other languages.
Does it not work? I believe there are only minor differences between flow and ts, which I think were accounted for

I'm using flow and having some issues. First of all, there is no CLI options for using flow (from what I could tell). So I used the from-schema package. generateNamespace is the documented way to do it, and flow does not support namespaces.
Another issue I'm having are duplicated type names, which is because I want a graphql type to exported as a type, not as an interface. More on that in a separate issue.
Here's how im using the lib:
const { generateNamespace } = require('@gql2ts/from-schema')
const schemaDoc = require('./src/graphql/typeDefs')
const { DEFAULT_OPTIONS: flowDefaults } = require('@gql2ts/language-flow')
const fs = require('fs')

const myNamespace = generateNamespace('Humanise', schemaDoc, { ingnoreTypeNameDeclaration: true }, {
  ...flowDefaults,
  interfaceBuilder: (name, body) => `export type ${name} = ${body}`,
  typeBuilder: (name, body) => `export type ${name} = ${body}`,
  generateNamespace: (namespaceName, interfaces) => interfaces,
  generateInterfaceName: (name) => `${name}`
})

fs.writeFileSync('flowtypes.js', myNamespace)

@jwickens I'm not using flow but if you could set me up with a starter repo, I'd be glad to help through the issues you've encountered

@jwickens you should be able use the -e flag with @gql2ts/language-flow to load flow.

added to #163

@gql2ts/language-flow is still generating declare namespace GQL, while it's an error:
flow
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ server/generated/types.flow.js:6:9

Unexpected identifier

     3│ // tslint:disable
     4│ // graphql typescript definitions
     5│
     6│ declare namespace GQL {
     7│ interface IGraphQLResponseRoot {
     8│ data?: IQuery;
     9│ errors?: Array<IGraphQLResponseError>;

Found 1 error

@linonetwo I'm not super familiar with how flow declares this. for what it's worth you can overwrite the generateNamespace to be: (_, interfaces) => interfaces and it will print out all of the contents without the namespace. It seems like a reasonable thing to default to, I'd certainly welcome a PR

But @arahansen 's version still ends each line with ;, while it should be ,.
So I pass generated content to prettier-eslint to fix it:
gql2ts ./server/generated/schema.json -e<EMAIL_ADDRESS>-o ./server/generated/types.flow.js && prettier-eslint \"./server/generated/*.js\" --write

@linonetwo if prettier is installed, it should run the output through it by default. i'm not sure what you mean about the semicolons, can you give an example? is that in an type/interface declaration?

Oh, I found semicolons just disappeared. Maybe...I don't know, Maybe due to my adjustment to build scripts.
It works perfectly now.
My scripts:
{
"gql2flow": "yarn build-schema && yarn gql-gen && yarn gqlJson2flow",
    "build-schema": "mkdir -p ./server/generated &&  node ./scripts/buildSchema.js > ./server/generated/schema.graphql",
    "gql-gen": "apollo-codegen introspect-schema ./server/generated/schema.graphql --output ./server/generated/schema.json",
    "gqlJson2flow": "gql2ts ./server/generated/schema.json -e<EMAIL_ADDRESS>-o ./server/generated/types.flow.js --ignore-type-name-declaration"
}

and
// buildSchema.js
const { importSchema } = require('graphql-import');

console.log(importSchema('./server/graphql/schema.graphql'));

@linonetwo Enums don't seem to work.

Also @linonetwo, you don't need to do this:
    "gql-gen": "apollo-codegen introspect-schema ./server/generated/schema.graphql --output ./server/generated/schema.json",

gql2ts can work with .graphql. Or is there another reason you need json?


[SPARK-49736] Add Apache Spark 4.0.0-preview2 Dockerfiles

What changes were proposed in this pull request?
This PR aims to add 4.0.0-preview2 Dockerfiles.
Why are the changes needed?
New release.
Does this PR introduce any user-facing change?
New release.
How was this patch tested?
New release.

cc @viirya

Thank you, @viirya ! Merged to master.


reorganize parser code, perhaps its better now?

This looks definitely better than what was there before. Can you please resolve to conflicts here first?


Mod wearablebackpacks is missing the required element 'version' and a version.properties file could not be found.

As my title says.  This mod was working FINE just yesterday 02/05/2017  And when I went to start minecraft, it gave me the message in the subject line "Mod wearablebackpacks is missing the required element 'version' and a version.properties file could not be found."  in the error report.. I tried uninstalling and reinstalling the mod.. but to no avail, it still says its missing a needed file.  Help?  Below is the entire error report in case anyone can maybe figure it out and tell me what is wrong.
-- System Details --
Details:
	Minecraft Version: 1.11.2
	Operating System: Windows 10 (amd64) version 10.0
	Java Version: 1.8.0_25, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 343717024 bytes (327 MB) / 989855744 bytes (944 MB) up to<PHONE_NUMBER> bytes (3641 MB)
	JVM Flags: 4 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx4096m -Xms256m -XX:PermSize=256m
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	FML:
	Loaded coremods (and transformers):
FMLPlugin (InventoryTweaks-1.62-dev-77.jar)
  invtweaks.forge.asm.ContainerTransformer
ShetiPhian-ASM (shetiphiancore-1.11.0-3.4.2.jar)
  shetiphian.core.asm.ClassTransformer
	GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 378.49' Renderer: 'GeForce GTX 950/PCIe/SSE2'
[14:38:11] [Client thread/INFO] [FML]: MinecraftForge v<IP_ADDRESS>7 Initialized
[14:38:11] [Client thread/INFO] [FML]: Replaced 232 ore recipes
[14:38:11] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[14:38:11] [Client thread/INFO] [FML]: Searching C:\Users\Shint\Documents\Curse\Minecraft\Instances\TereiCorp\mods for mods
[14:38:13] [Client thread/WARN] [wearablebackpacks]: Mod wearablebackpacks is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 2.1.0
[14:38:13] [Client thread/INFO] [FML]: Forge Mod Loader has identified 26 mods to load
[14:38:14] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, uncraftingtable, adchimneys, advancedsticks, appleskin, biomesoplenty, chiselsandbits, endercompass, environmentaltech, fastleavedecay, forgeendertech, waila, inventorytweaks, jei, journeymap, harvestcraft, shetiphiancore, terraqueous, valkyrielib, variedcommodities, visiblearmorslots, wailaharvestability, wearablebackpacks] at CLIENT
[14:38:14] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, uncraftingtable, adchimneys, advancedsticks, appleskin, biomesoplenty, chiselsandbits, endercompass, environmentaltech, fastleavedecay, forgeendertech, waila, inventorytweaks, jei, journeymap, harvestcraft, shetiphiancore, terraqueous, valkyrielib, variedcommodities, visiblearmorslots, wailaharvestability, wearablebackpacks] at SERVER

This is just a warning meant for the mod developer. I don't quite know what the proper way to provide the version to remove this warning message is. (Probably what it mentions - the version.properties.) This, however, would not cause any issues.
I'm keeping up the issue as a reminder for myself.

As for your problem, I'll try to help. Not quite sure what to make of this, but try updating (or downgrading) Forge or either of the two mentioned coremods: InventoryTweaks / ShetiPhianCore.

TIL. So the Attempting connection with missing mods is more debug information simply to list mods. Without more information I won't be able to help. What exactly isn't working?

Warning message was fixed in 7de8c80, so I'm closing the issue.


Kernel 4.x

Updated the python script to match the 4.x changes
Some other small updates

Is there any specific reason that blocks these changes for three years? I'd really apprecieate to see the table updated.

@light2yellow https://github.com/paolostivanin/syscall-table-32bit and https://github.com/paolostivanin/syscalls-table-64bit
I'm using 2 different repos and websites because I don't have time to play around with web related things :) but PRs are more than welcome ;)


Expose ContentBlock-> raw

Due to perf reasons I need to expose the inner function of converting a content block to raw format.
This allows for caching outside of draftJS

Wrong repo sorry!


Support global arguments

We'd like to handle flags like --version and --help without require a command name.
Something like this would be nice:

let cli = commandLineCommands([
  { name: 'help' },
  { name: 'run', definitions: [ { name: 'why', type: String } ] },
], {
  globalDefinitions: [
    { name: 'version', type: Boolean },
  ],
});

let command = cli.parse();
if (command.name == null && command.options.version) {
  printVersion();
}

yep, i'm on the case. This feature will land soon, cheers!

the work for this fix is done, just need to write the docs and do a release (later today).. watch this space.

fixed in the v1.0.0 release.. please let me know if the docs are unclear or if you have any more issues..

i plan to do more work on the advanced example tomorrow but the main library code is ready for use..
i'm also working on v3 of command-line-usage and command-line-args.. nows a good time to feedback on those libraries, if you have any thoughts..
cheers!

I'm a bit confused by the docs. Did you remove the ability to specify arguments altogether?

yes, forget the previous API - it changed.. now, this module's only job is to parse and extract the command from process.argv.. i reduced the scope of this module, removing the hard deps on command-line-args and command-line-usage.. now, they are each separate modules, working in isolation or together.. it means you can use this module with any option-parser.
with the commandLineCommands() output, you can make a decision what to do, depending on the command received.. for further option-parsing, pass the argv you get back from commandLineCommands() into commandLineArgs.parse().. have a look at the examples, do they help?

i updated the README a bit, hopefully it makes sense now..
i had a very quick look at polymer-cli.. didn't have much time, but here's a rough example of how you might use clc v1:
logger.debug('running...');
const commandLineArgs = require('command-line-args')
const commandLineCommands = require('command-line-commands')

const { command, argv } = commandLineCommands(null, 'help', 'init', 'lint', 'test', 'build', 'serve')

// no command passed
if (command === null) {
  const cli = commandLineArgs([
    { name: 'version', type: Boolean },
    { name: 'help', type: Boolean }
  ])
  const options = cli.parse(argv)

  if (options.version) {
    console.log(require('../package.json').version);
  }

// init
} else if (command === 'init') {
  const cli = commandLineArgs([
    {
      name: 'name',
      description: 'The template name to use to initialize the project',
      type: String,
      defaultOption: true,
    }
  ])
  const options = cli.parse(argv)
  // load and run the polymer command here, as usual
}

// etc


Response generation model is poor

The current model for generating responses in the server is to construct a complete GASearchVariantsResponse object and to then convert this to a JSON string. This is a poor model because it entails creating lots of intermediate objects and lists of GAVariants and GACalls. This can consume large amounts of memory on the server and is a factor in the current poor performance when returning large numbers of calls. It would be much better if we could generate the JSON directly and write this to a buffer, without generating the lists of GAVariants and GACalls.
We need:

An abstraction that lets us write JSON encoded attributes directly to the buffer. We should also bear in mind we'll want to implement partial responses at some point. This also feeds into issue #5 where we should keep this problem in mind when generating the protocol element classes from Avro.
Management of the number of records written to the buffer according to the requested page size and nextPageToken handling.
An approximate limit in bytes over which the response cannot grow. If we exceed this limit while generating a record, we terminate the response once the current record has been completed. This allows us to limit server memory resources and manage latency.

We should also keep the ability to directly convert protocol elements to JSON though, as this is useful for clients.

I'm a big fan of generators @bartgrantham, and I definitely would like to see them used here. As I outlined above, I think a function getVariants(request) which is a generator over all the variants in a request (for example) would simplify things a lot. However, I worry about having generators all the way down, as I don't know how we would handle errors in this case. Suppose an error occured while generating the 100th variant in a list, and Flask had already started writing the HTTP response to the socket. How would we handle this error then?
For this reason I think it's better to fill a buffer with the response which we only write back to the client when it's complete. This way we can properly handle errors whenever they occur.
Thanks for the links above though; I think this is exactly what we'll want when we're serving reference sequences. The approach in the protocol is quite clunky at the moment, and HTTP streaming would seem to be a much simpler solution (as discussed with @cassiedoll and @calbach a while back).

The HTTP streaming discussion seems to skip my memory.  Could you point me to it so I refresh my mind? :)
Thanks,
~p

Discussion happened offline @pgrosu --- it'll become a PR on the schemas repo at some point.

Ah!  Sounds good, I was just wondering if it had anything to do with something along these lines:
http://flask.pocoo.org/docs/0.10/patterns/streaming/
https://docs.python.org/3/library/asyncio-stream.html#tcp-echo-client-using-streams
Thanks,
~p

@pgrosu, the first link is what I had in mind.  I've found that using generators this way makes for surprisingly concise and simple code, but you have to commit to the concept.  @jeromekelleher makes an excellent point, though: in order to provide an error properly (ie. in the HTTP header), you need to basically run the entire computation.  I suppose that an abuse of something like "206 Partial Content" or WebDAV's "207 Multi-Status" is possible, but yikes.
Seems like that's the bottom line.  Unless the API accommodates "in-band" error reporting in the body to account for late errors, the result of the entire computation needs to be known before the first response.  That would be a sophisticated API feature.  Perhaps at some point we can propose it as an option for clients to notify the server that streaming_ok: true.

@bartgrantham, I agree, but are we not also going to be implementing GUCD (digests) as well, based on this post:
https://github.com/ga4gh/schemas/issues/167
Then we can request a checksum to also be performed, in order to compare against the digests which were pre-calculated.  Below is a link regarding requesting a checksum on stream:
http://flask.pocoo.org/docs/0.10/patterns/requestchecksum/
If there is a difference, then we know an error has occurred, and then that sub-portion of the data/bucket can be requested again.  I mention sub-portion, since I assume this will be performed asynchronously in parallel.
~p

@pgrosu, I'm not sure I follow.  GUCD should be useful for the usual content addressable storage reasons, but in the case of the server aborting the middle of a response I'm not sure how it could help.
Either the client already has the digest and the server recognizes it, in which case the server (or more likely it's caching proxy) will shortcircuit the computation and send back a 304.  Or the client doesn't have a digest (intuitively to me this feels like 99% of the cases) or the server doesn't recognize it and one will have to be generated based on the content streaming back, which won't be known until it is complete.
The flask checksum page you link to is about checksumming the raw input to the server, not the data that a server returns to the client.

Hi Bart,
So Google published a nice paper about a year ago called MillWheel: Fault-Tolerant Stream Processing at Internet Scale, which you can get here:
http://research.google.com/pubs/archive/41378.pdf
Simplifying a few concepts from that paper, I wrote a small streamed client and server Python program that I provided the code for at the end of this post.
  So imagine that you have a Variant record corresponding to a row from a VCF file.  Now let's say that within Wormtable that each record would also store the checksum-digest, which was hashed using SHA1.  This is a little overkill, but it's just for illustrative purposes.  Later it would be across buckets for a collection such as a VariantSet, which is sharded by a subsets of the data and could be stored as a column-based tree such as Parquet - see Apache Parquet and Storing and Querying Tree-Structured Records in Dremel also from Google.  This would provide parallelization and scalable capabilities.
Now back to the example above.  So suppose that a Variant is stored along with its corresponding digest - the ... is to illustrate that the stored information is longer than shown:

Variant
Checksum_HexDigest

2      4370   rs6057    G    A       29   .      NS=2;DP=13;AF=0.5;DB;H2 ...
5b824ff1b7067e8f3a1982db6abbabf3765f4693

Now let's say you request a VariantSet from the server, but each Variant is processed individually.  I am illustrating in my example one Variant that will be transmitted and checked.  The format that any data will be transmitted is in the following tuple format:
(key, value, checksum_digest)

Below are the definitions for each element in the tuple:
            key => Describes the type of request, or required metadata
          value => The data of the request
checksum_digest => This will be the checksum digest

The key might not be necessary for now and can be set to null, but is there in case additional information is helpful regarding the data that should be sent.  Now when you perform a request from the server, you will go through the following step-by-step procedure - my current client code implementation requests the whole record again instead of by checksum_digest value:

Below is the code for the server using a stream:
from flask import Flask, request, json, Response
import hashlib

app = Flask(__name__)

checksum = hashlib.sha1()
key   = "vcf.row.3"
value = "2      4370   rs6057    G    A       29   .      NS=2;DP=13;AF=0.5;DB;H2           GT:GQ:DP:HQ 0|0:48:1:52,51 1|0:48:8:51,51 1/1:43:5:.,."
checksum.update(value)
variant_data = { 'key':          key,
                 'value':        value,
                 'checksum_sha1_hexdigest': checksum.hexdigest()
               }

@app.route("/variant", methods=['GET'])
def api_variant():
    return json.dumps(variant_data)

@app.route('/stream/variant', methods=['GET'])
def api_stream_variant():
    def generate():
        for key in variant_data:
            yield json.dumps({key:variant_data[key]})
    return Response(generate())

if __name__ == '__main__':
    app.run(debug = False)

Below is the code for the corresponding client:
import urllib2
import hashlib
import json

stream_server = "http://<IP_ADDRESS>:5000/stream/variant"
checksum = hashlib.sha1()

variant_stream = urllib2.urlopen(stream_server).read()
variant_data = {}

parsedCompleteStream = False

while not(parsedCompleteStream):
  try:
    variant_index = variant_stream.index("}",0)
    variant_key_value = json.loads(variant_stream[:variant_index+1])
    variant_stream = variant_stream[variant_index+1:]
    for key in variant_key_value:
      variant_data[key] = variant_key_value[key]
  except:
    parsedCompleteStream = True

isChecksumVerified = False

while not(isChecksumVerified):
  key = variant_data['key']
  value = variant_data['value']
  checksum_sha1_hexdigest = variant_data['checksum_sha1_hexdigest']

  checksum.update(value)

  if ( checksum_sha1_hexdigest == checksum.hexdigest() ):
    print "\nData is valid!\n"
    print "The variant record is: \n"
    print value
    isChecksumVerified = True

To run the program, first launch the server code and then the client code, and you should see the following result in the client window:
$ python client.py

Data is valid!

The variant record is:

2      4370   rs6057    G    A       29   .      NS=2;DP=13;AF=0.5;DB;H2           GT:GQ:DP:HQ 0|0:4
8:1:52,51 1|0:48:8:51,51 1/1:43:5:.,.

$

Hope it helps,
Paul

Since 72cf1569c4fcdf1133d865f73df601212c708e82 landed, memory bloat is still a problem.
In handleHTTPPost() heapy only sees 32MB of string, but inside Backend:runSearchRequest() the heap dump looks like:
Partition of a set of 1254079 objects. Total size = 403036376 bytes.
Index  Count   %     Size   % Cumulative  % Kind (class / dict of class)
0 250400  20 262419200  65 262419200  65 dict of ga4gh._protocol_definitions.GACall
1 250575  20 70172520  17 332591720  83 dict (no owner)
2 501524  40 54219616  13 386811336  96 list
3 250400  20 16025600   4 402836936 100 ga4gh._protocol_definitions.GACall
4    100   0   104800   0 402941736 100 dict of ga4gh._protocol_definitions.GAVariant
runSearchRequest() builds up pageList [], then converts that list to JSON in the return statement. Since we don't have streaming yet, I suspect the easiest way to improve this memory spike would still be to convert each element of the list to JSON when it's generated, as in Jerome's Dec 15th comment.

Good - I get very suspicious when problems seem to just go away! I think  converting each element of the list to JSON as we go would certainly be an improvement, and we can try something more sophisticated later if it's not enough. Shall we try this out once you've landed your memory profiling and benchmarking patches?


Error when trying to retrieve plans in a resource group

Description
Outline the issue here:
Error when trying to retrieve plans in a resource group. Note that this is when running as part of the VSCode extension, it doesn't seem to be specific to that though.

Environment summary
Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: azure-cli-0.2.8.msi
CLI Version: What version of the CLI and modules are installed? (Use az --version)
Answer here: 2.0.6
OS Version: What OS and version are you using?
Answer here: Windows 10
Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: cmd.exe
Traceback (most recent call last):
  File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "c:\devel\ms-vscode-azurecli\service\azservice\__main__.py", line 335, in <module>
    main()
  File "c:\devel\ms-vscode-azurecli\service\azservice\__main__.py", line 326, in main
    response_data = get_completions(group_index, command_table, snippets, request['data'], True)
  File "c:\devel\ms-vscode-azurecli\service\azservice\__main__.py", line 114, in get_completions
    return get_argument_value_completions(command_table, query, verbose)
  File "c:\devel\ms-vscode-azurecli\service\azservice\__main__.py", line 182, in get_argument_value_completions
    list = get_argument_value_list(command_table, query, verbose) + \
  File "c:\devel\ms-vscode-azurecli\service\azservice\__main__.py", line 200, in get_argument_value_list
    values = run_argument_value_completer(command, argument, query['arguments'])
  File "c:\devel\ms-vscode-azurecli\service\azservice\tooling.py", line 130, in run_argument_value_completer
    return argument.completer('', '', args)
  File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli\core\commands\parameters.py", line 83, in completer
    return [r.name for r in get_resources_in_resource_group(rg, resource_type=resource_type)]
  File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli\core\commands\parameters.py", line 69, in get_resources_in_resource_group
    return list(rcf.resource_groups.list_resources(resource_group_name, filter=filter_str))
AttributeError: 'ResourceGroupsOperations' object has no attribute 'list_resources'

This was broken by we pulling in the latest resource sdk

@chrmarti Thanks for reporting this issue. Should be fixed in the upcoming release.


[BUG]: TS def for confirmPayment confirmParams is incomplete

What happened?
stripe.confirmPayment(options) described in https://stripe.com/docs/js/payment_intents/confirm_payment does have a payment_method in its confirmParams.
However, the paymentIntents.ConfirmPaymentData definition does not include the payment_method param. This seems like a bug in the definition.
Environment
Chrome 116.0.5845.141 under Windows 10
Reproduction
No response

Thanks for reporting! I added the param and some tests to validate the new types to the above, will have a teammate review.

Merged, and should be fixed in the next release.


When using auto_delta_encoding_order with certain chunk values, an out-of-bounds crash can occur

I've created a small sample project which demonstrates the crash here: https://github.com/baz/pco-issue/blob/main/src/main.rs
If I specify the delta_encoding_order, then I can avoid this. I've only observed it to happen with the values in that project. I don't know what it is about the pattern there which causes the crash, i.e. vec![167772161, 150994945, 167772161].
thread 'main' panicked at /Users/baz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pco-0.1.2/src/ans/encoding.rs:152:16:
index out of bounds: the len is 2 but the index is 2
stack backtrace:
   0: rust_begin_unwind
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/std/src/panicking.rs:597:5
   1: core::panicking::panic_fmt
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/core/src/panicking.rs:72:14
   2: core::panicking::panic_bounds_check
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/core/src/panicking.rs:180:5
   3: <usize as core::slice::index::SliceIndex<[T]>>::index
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/core/src/slice/index.rs:261:10
   4: core::slice::index::<impl core::ops::index::Index<I> for [T]>::index
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/core/src/slice/index.rs:18:9
   5: <alloc::vec::Vec<T,A> as core::ops::index::Index<I>>::index
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/alloc/src/vec/mod.rs:2728:9
   6: pco::ans::encoding::quantize_weights_to
             at /Users/baz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pco-0.1.2/src/ans/encoding.rs:152:16
   7: pco::ans::encoding::quantize_weights
             at /Users/baz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pco-0.1.2/src/ans/encoding.rs:176:21
   8: pco::wrapped::chunk_compressor::quantize_weights
             at /Users/baz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pco-0.1.2/src/wrapped/chunk_compressor.rs:122:33
   9: pco::wrapped::chunk_compressor::train_infos
             at /Users/baz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pco-0.1.2/src/wrapped/chunk_compressor.rs:175:22
  10: pco::wrapped::chunk_compressor::unsigned_new_w_delta_order
             at /Users/baz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pco-0.1.2/src/wrapped/chunk_compressor.rs:457:19
  11: pco::wrapped::chunk_compressor::choose_delta_encoding_order
             at /Users/baz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pco-0.1.2/src/wrapped/chunk_compressor.rs:543:21
  12: pco::wrapped::chunk_compressor::unsigned_new
             at /Users/baz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pco-0.1.2/src/wrapped/chunk_compressor.rs:585:5
  13: pco::wrapped::chunk_compressor::new
             at /Users/baz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pco-0.1.2/src/wrapped/chunk_compressor.rs:609:3
  14: pco::wrapped::file_compressor::FileCompressor::chunk_compressor
             at /Users/baz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pco-0.1.2/src/wrapped/file_compressor.rs:74:5
  15: pco::standalone::compressor::FileCompressor::chunk_compressor
             at /Users/baz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pco-0.1.2/src/standalone/compressor.rs:92:14
  16: pco_issue::main
             at ./src/main.rs:12:28
  17: core::ops::function::FnOnce::call_once
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/core/src/ops/function.rs:250:5

Thanks for reporting this. It was a simple bug with a simple fix: https://github.com/mwlon/pcodec/pull/144
This would happen whenever there were an equal number b of bins and numbers (or deltas) with b > 1, which was possible for very small chunks.

Thanks Martin

The fix is released in 0.1.3 now.