Uncaught TypeError: history.getCurrentLocation is not a function at syncHistoryWithStore

I have spent a couple of days trying to work around all the various issues with Typings and versions for history, react-router, mobx-react-router trying to find a combination that works... without success.
I believe I have the Typescript issues sorted, but I have the following error message during execution:
Uncaught TypeError: history.getCurrentLocation is not a function
    at syncHistoryWithStore (main-client.js:8204)

Which occurs at the following, with this line and the imports copied and pasted from the example:
const history = syncHistoryWithStore(browserHistory, routingStore);
Everything else works fine if I comment out that line, and just use the same browserHistory in the Router.
I have tried just about every combination of versions. My current package.json is as follows:
{
  "name": "NetCoreReactMobX",
  "version": "0.0.0",
  "license": "MIT",
  "dependencies": {
    "@types/history": "^4.5.0",
    "@types/react": "^15.0.14",
    "@types/react-dom": "^0.14.14",
    "@types/webpack": "^2.2.0",
    "@types/webpack-env": "^1.13.0",
    "aspnet-prerendering": "^2.0.0",
    "aspnet-webpack": "^1.0.27",
    "aspnet-webpack-react": "^1.0.4",
    "awesome-typescript-loader": "^3.0.0",
    "babel-core": "^6.5.2",
    "babel-loader": "^6.2.3",
    "babel-plugin-mobx-deep-action": "^1.5.2",
    "babel-preset-es2015": "^6.5.0",
    "babel-preset-react": "^6.5.0",
    "bootstrap": "^3.3.6",
    "css-loader": "^0.26.2",
    "domain-task": "^3.0.0",
    "event-source-polyfill": "^0.0.9",
    "extract-text-webpack-plugin": "^2.0.0-rc",
    "file-loader": "^0.10.1",
    "history": "3.2",
    "jquery": "^2.2.1",
    "json-loader": "^0.5.4",
    "mobx": "^3.1.2",
    "mobx-react": "^4.1.1",
    "mobx-react-router": "^3.1.2",
    "node-noop": "^1.0.0",
    "react": "^15.3.2",
    "react-dom": "^15.3.2",
    "react-router": "^3.0.2",
    "style-loader": "^0.13.0",
    "typescript": "^2.2.1",
    "url-loader": "^0.5.7",
    "webpack": "^2.2.1",
    "webpack-hot-middleware": "^2.12.2",
    "webpack-merge": "^3.0.0"
  },
  "devDependencies": {
    "babel-plugin-transform-class-properties": "^6.23.0",
    "babel-plugin-transform-decorators-legacy": "^1.3.4",
    "babel-preset-stage-2": "^6.22.0"
  }
}

And my tsconfig.json is as follows (note I use TypeScript to ES6, then Babel to ES5)
{
  "compilerOptions": {
    "baseUrl": ".",
    "moduleResolution": "node",
    "target": "es6",
    "jsx": "preserve",
    "experimentalDecorators": true,
    "sourceMap": true,
    "allowJs": false,
    "skipDefaultLibCheck": true,
    "lib": ["es6", "dom"],
    "types": [ "webpack-env" ],
    "paths": {
      // Fix "Duplicate identifier" errors caused by multiple dependencies fetching their own copies of type definitions.
      // We tell TypeScript which type definitions module to treat as the canonical one (instead of combining all of them).
      "history": ["./node_modules/@types/history/index"],
      "react": ["./node_modules/@types/react/index"]
    }
  },
  "awesomeTypescriptLoaderOptions": {
    "silent": true,
    "useBabel": true,
    "useCache": false
  },
  "exclude": [
      "bin",
      "node_modules"
  ]
}

Any pointers would be really appreciated...
Also, is there a possibility of a sample project, that can be used as a reference point with compatible versions of mobx-react-router, history and react-router? It was a nightmare to get rid of TypeScript warnings.

Hey, firstly I would recommend not explicitly depending on history in your package.json, as react-router depends on this anyway. I've checked the source code of history and it looks like they've removed getCurrentLocation without incrementing a major version (not a good idea). I'll have to changed history.getCurrentLocation() to just history.location everywhere.
Feel free to submit a PR if you want, might not be able to get to this till next week.
Thanks for flagging this up though!

@alisd23
Yep, I originally did not have history in there  - I let that be handled as a dep. But there is such a mess of Typings etc out there, that I tried that in one of the many combinations... found it on a Stack Overflow solution for a very similar problem.
I'll have to see if I can find time to do a PR - I'm way behind schedule now because of this; don't want to rip on the history guys, but is there is a more stable and better managed alternative? It's caused no end of problems... especially for TypeScript users.
Thanks a lot for picking this up so quickly...

@alisd23 getCurrentLocation() method has been removed from history@4, in major update.
@mcquiggd You cannot use types/history@4 with mobx-react-router@3 since it uses react-router@3 and history@3. The module history has big breakages between version 3 and 4. (see history/CHANGES.md)
You can try:

remove types/history@4 from dev dependencies, since mobx-react-router already contains type definitions for history that compatible with history@2 and history@3
install types/history@2 or types/history@3
install types/react-router@3, since it has types/history@3 as its dependency

@rokoroku
Thanks for the pointers.
I removed types/history.
Now,  just using browserHistory (i.e. not using mobx-react-router) I get this:
	Uncaught Error: You have provided a history object created with history v4.x or v2.x and earlier. This version of React Router is only compatible with v3 history objects. Please change to history v3.x.
The package versions are as follows (taken directly from the node_modules folder to verify what is installed)
"name": "history",
"version": "3.3.0",
"name": "@types/react-router",
"version": "3.0.6",
"name": "react-router",
"version": "3.0.2",

Ok,
It turns out there is only one single call to history.getCurrentLocation() - sync.js, line 13.
When I change that to history.location, I get the following error:
Uncaught Error: You have provided a history object created with history v4.x or v2.x and earlier. This version of React Router is only compatible with v3 history objects. Please change to history v3.x.
At that point, history is not explicitly included in package,json, but the following version has been added due to the dependency from react-router:
"name": "history",
"version": "3.3.0",
I try adding it explicitly - same error. Later 4.x versions just throw Typing errors.
Now, this is strange, but out of desperation, trying different versions, I installed<EMAIL_ADDRESS>which added the following.
<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>└─<EMAIL_ADDRESS>And now... everything works.. No errors, no problems with TypeScript. I can navigate using the goBack and goForward commands on the router store using the console.

@mcquiggd If you want a clean solution using mobx-react-router without TypeScript errors, try my example: https://github.com/rokoroku/react-mobx-typescript-boilerplate .
react-router@4 is expected to be used as DOM objects, but mobx-react-router@4 will still be available through history synching.
Hope it helps.

Thanks for looking into this.
I agree the typescript ecosystem is really fragile at the moment, and types are always out of sync, due to the fact libraries like this have to try to keep the types up to date - with their own code, and libraries they depend on.
And thanks @rokoroku for the cool boilerplate. That'll help people with similar issues out 👍


Update delete-an-inactive-mailbox.md

Updates to wording because 183 day start time was unclear whether it was at inactive mailbox creation time or the inactive mailbox retire time when all holds are removed

@JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks

@markjjo Please merge this PR. Thanks

Closing. This change has been made in another PR.


m17n_lib: 1.7.0 -> 1.8.0

Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done:

built on NixOS
ran /nix/store/28baccpjkyg7rb0alf8j2hpnczz22jzq-m17n-lib-1.8.0/bin/m17n-conv -h got 0 exit code
ran /nix/store/28baccpjkyg7rb0alf8j2hpnczz22jzq-m17n-lib-1.8.0/bin/m17n-conv --help got 0 exit code
ran /nix/store/28baccpjkyg7rb0alf8j2hpnczz22jzq-m17n-lib-1.8.0/bin/m17n-conv help got 0 exit code
ran /nix/store/28baccpjkyg7rb0alf8j2hpnczz22jzq-m17n-lib-1.8.0/bin/m17n-conv --version and found version 1.8.0
ran /nix/store/28baccpjkyg7rb0alf8j2hpnczz22jzq-m17n-lib-1.8.0/bin/m17n-date -h got 0 exit code
ran /nix/store/28baccpjkyg7rb0alf8j2hpnczz22jzq-m17n-lib-1.8.0/bin/m17n-date --help got 0 exit code
ran /nix/store/28baccpjkyg7rb0alf8j2hpnczz22jzq-m17n-lib-1.8.0/bin/m17n-date --version and found version 1.8.0
ran /nix/store/28baccpjkyg7rb0alf8j2hpnczz22jzq-m17n-lib-1.8.0/bin/m17n-config --version and found version 1.8.0
found 1.8.0 with grep in /nix/store/28baccpjkyg7rb0alf8j2hpnczz22jzq-m17n-lib-1.8.0
directory tree listing: https://gist.github.com/3d3a5a6fc658c968ce3a1298c9f32c56

cc @astsmtl for review

No attempt on x86_64-darwin
The following builds were skipped because they don't evaluate on x86_64-darwin: m17n_lib
No partial log is available.

Success on aarch64-linux (full log)
Attempted: m17n_lib
Partial log (click to expand)
shrinking /nix/store/rm6d129bp4qa0hkv57b3vl0bxalfbs2k-m17n-lib-1.8.0/lib/libm17n-gui.so.0.4.2
shrinking /nix/store/rm6d129bp4qa0hkv57b3vl0bxalfbs2k-m17n-lib-1.8.0/lib/libm17n-flt.so.0.4.2
shrinking /nix/store/rm6d129bp4qa0hkv57b3vl0bxalfbs2k-m17n-lib-1.8.0/lib/libm17n.so.0.4.2
shrinking /nix/store/rm6d129bp4qa0hkv57b3vl0bxalfbs2k-m17n-lib-1.8.0/lib/libm17n-core.so.0.4.2
strip is /nix/store/3zq400fri5dv7d30lpxlqm2v9y1iis6j-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/rm6d129bp4qa0hkv57b3vl0bxalfbs2k-m17n-lib-1.8.0/lib  /nix/store/rm6d129bp4qa0hkv57b3vl0bxalfbs2k-m17n-lib-1.8.0/bin
patching script interpreter paths in /nix/store/rm6d129bp4qa0hkv57b3vl0bxalfbs2k-m17n-lib-1.8.0
/nix/store/rm6d129bp4qa0hkv57b3vl0bxalfbs2k-m17n-lib-1.8.0/bin/m17n-config: interpreter directive changed from "/bin/sh" to "/nix/store/3gg2p6n4kv2f0lsxd41f5iz1ivkbzyzr-bash-4.4-p19/bin/sh"
checking for references to /build in /nix/store/rm6d129bp4qa0hkv57b3vl0bxalfbs2k-m17n-lib-1.8.0...
/nix/store/rm6d129bp4qa0hkv57b3vl0bxalfbs2k-m17n-lib-1.8.0

Success on x86_64-linux (full log)
Attempted: m17n_lib
Partial log (click to expand)
shrinking /nix/store/28baccpjkyg7rb0alf8j2hpnczz22jzq-m17n-lib-1.8.0/lib/m17n/1.0/libm17n-gd.so
shrinking /nix/store/28baccpjkyg7rb0alf8j2hpnczz22jzq-m17n-lib-1.8.0/lib/m17n/1.0/libm17n-X.so
shrinking /nix/store/28baccpjkyg7rb0alf8j2hpnczz22jzq-m17n-lib-1.8.0/lib/m17n/1.0/libmimx-anthy.so
shrinking /nix/store/28baccpjkyg7rb0alf8j2hpnczz22jzq-m17n-lib-1.8.0/lib/m17n/1.0/libmimx-ispell.so
strip is /nix/store/fzcs0fn6bb04m82frhlb78nc03ny3w55-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/28baccpjkyg7rb0alf8j2hpnczz22jzq-m17n-lib-1.8.0/lib  /nix/store/28baccpjkyg7rb0alf8j2hpnczz22jzq-m17n-lib-1.8.0/bin
patching script interpreter paths in /nix/store/28baccpjkyg7rb0alf8j2hpnczz22jzq-m17n-lib-1.8.0
/nix/store/28baccpjkyg7rb0alf8j2hpnczz22jzq-m17n-lib-1.8.0/bin/m17n-config: interpreter directive changed from "/bin/sh" to "/nix/store/q1g0rl8zfmz7r371fp5p42p4acmv297d-bash-4.4-p19/bin/sh"
checking for references to /build in /nix/store/28baccpjkyg7rb0alf8j2hpnczz22jzq-m17n-lib-1.8.0...
/nix/store/28baccpjkyg7rb0alf8j2hpnczz22jzq-m17n-lib-1.8.0


scipy Rotation and Slerp

This PR implements scipy Rotation and Slerp classes.
Both classes were fairly compatible with jax already because they use an 4-array to represent a single rotation and an Nx4 array to represent multiple rotations.
Fixes #3192
Remaining issues:

doesn't implement Rotation.reduce, Rotation.random, Rotation.align_vectors, or Rotation.create_group yet
unsure how to properly implement Slerp constructor due to inheriting from typing.NamedTuple, used an init function for now
unsure how to make Rotation.quat a private variable due to inheriting from typing.NamedTuple, made it public for now
unsure how to make identity support the num argument, I tried wrapping the function using functools.partial(jax.jit, static_argnames=['num']) but it didn't work

Hi @jakevdp I was interested in submitting a PR, it looks like the workflow needs to be approved first?

@jakevdp Thanks for the review. Added a section in docs/jax.scipy.rst for the new classes. Think this is ready for another pass.

Also, it looks like some of the tests are failing in x64 mode. You can run them locally using e.g.
$ JAX_ENABLE_X64=1 pytest tests/scipy_spatial_test.py

It looks like the type errors are mostly due to poor scipy support for float32... The scipy.spatial.transform.Rotation constructor always converts the input to float64 (which I don't have much control over).
I'm seeing the following options here (maybe you see more):

Change check_dtypes back to False
Force numpy output to the expected type (32-bit)
Force jax output to match numpy (always 64-bit)
Add float32 support to scipy Rotations

I'm implementing #2 so you can see what that option looks like... but would be fine doing whatever.
Modified CHANGELOG.md.
For the squashing I guess I will create a new PR (scipy-rotation-v2) that is rebased onto the latest master, does this sound good? I don't think it is possible to squash the current PR using rebase but am not super familiar with this process.

For what it's worth, it's possible to squash commits without opening a new PR – you just have to force-push to the same branch.


Error on example

Not working
# serializers.py
class UserSerializer(HyperChannelsApiModelSerializer):
    class Meta:
        model = User
        fields = [
            "@id",
            "username",
        ]

# consumers.py
class UserConsumer(ListModelMixin, GenericAsyncAPIConsumer):
    queryset = User.objects.all()
    serializer_class = UserSerializer

class DemultiplexerAsyncJson(AsyncJsonWebsocketDemultiplexer):
    applications = {
        "users":UserConsumer,
    }

# routing.py
websocket_urlpatterns = [
    path('ws/', consumers.DemultiplexerAsyncJson.as_asgi())
]

Backlog
WebSocket HANDSHAKING /ws/ [<IP_ADDRESS>:57486]
Exception inside application: object.__init__() takes exactly one argument (the instance to initialize)
Traceback (most recent call last):
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/staticfiles.py", line 44, in __call__
    return await self.application(scope, receive, send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/routing.py", line 71, in __call__
    return await application(scope, receive, send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/sessions.py", line 47, in __call__
    return await self.inner(dict(scope, cookies=cookies), receive, send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/sessions.py", line 254, in __call__
    return await self.inner(wrapper.scope, receive, wrapper.send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/auth.py", line 181, in __call__
    return await super().__call__(scope, receive, send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/middleware.py", line 26, in __call__
    return await self.inner(scope, receive, send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/routing.py", line 150, in __call__
    return await application(
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/consumer.py", line 94, in app
    return await consumer(scope, receive, send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channelsmultiplexer/demultiplexer.py", line 61, in __call__
    await future
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/asgiref/compatibility.py", line 33, in new_application
    instance = application(scope)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/djangochannelsrestframework/consumers.py", line 61, in __init__
    super().__init__(*args, **kwargs)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/generic/websocket.py", line 159, in __init__
    super().__init__(*args, **kwargs)
TypeError: object.__init__() takes exactly one argument (the instance to initialize)

I change the consumers file as follow:
class UserConsumer(ListModelMixin, GenericAsyncAPIConsumer):
    queryset = User.objects.all()
    serializer_class = UserSerializer

class DemultiplexerAsyncJson(AsyncJsonWebsocketDemultiplexer):
    applications = {
        "users":UserConsumer.as_asgi(), # <--- here
    }
```
But it throws the following error.
```
WebSocket HANDSHAKING /ws/ [<IP_ADDRESS>:57556]
WebSocket CONNECT /ws/ [<IP_ADDRESS>:57556]
Exception inside application: 'function' object has no attribute 'queryset'
Traceback (most recent call last):
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/staticfiles.py", line 44, in __call__
    return await self.application(scope, receive, send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/routing.py", line 71, in __call__
    return await application(scope, receive, send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/sessions.py", line 47, in __call__
    return await self.inner(dict(scope, cookies=cookies), receive, send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/sessions.py", line 254, in __call__
    return await self.inner(wrapper.scope, receive, wrapper.send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/auth.py", line 181, in __call__
    return await super().__call__(scope, receive, send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/middleware.py", line 26, in __call__
    return await self.inner(scope, receive, send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/routing.py", line 150, in __call__
    return await application(
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/consumer.py", line 94, in app
    return await consumer(scope, receive, send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channelsmultiplexer/demultiplexer.py", line 61, in __call__
    await future
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/consumer.py", line 94, in app
    return await consumer(scope, receive, send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/consumer.py", line 58, in __call__
    await await_many_dispatch(
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/utils.py", line 51, in await_many_dispatch
    await dispatch(result)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/consumer.py", line 73, in dispatch
    await handler(message)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/generic/websocket.py", line 196, in websocket_receive
    await self.receive(text_data=message["text"])
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/generic/websocket.py", line 259, in receive
    await self.receive_json(await self.decode_json(text_data), **kwargs)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/djangochannelsrestframework/consumers.py", line 160, in receive_json
    await self.handle_action(action, request_id=request_id, **content)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/djangochannelsrestframework/consumers.py", line 151, in handle_action
    await self.handle_exception(exc, action=action, request_id=request_id)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/djangochannelsrestframework/consumers.py", line 117, in handle_exception
    raise exc
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/djangochannelsrestframework/consumers.py", line 144, in handle_action
    response = await method(request_id=request_id, action=action, **kwargs)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/djangochannelsrestframework/decorators.py", line 64, in async_f
    result, status = await database_sync_to_async(func)(self, *args, **_kwargs)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/asgiref/sync.py", line 304, in __call__
    ret = await asyncio.wait_for(future, timeout=None)
  File "/usr/lib/python3.8/asyncio/tasks.py", line 455, in wait_for
    return await fut
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/db.py", line 13, in thread_handler
    return super().thread_handler(loop, *args, **kwargs)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/asgiref/sync.py", line 343, in thread_handler
    return func(*args, **kwargs)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/djangochannelsrestframework/mixins.py", line 25, in list
    return serializer.data, status.HTTP_200_OK
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/rest_framework/serializers.py", line 745, in data
    ret = super().data
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/rest_framework/serializers.py", line 246, in data
    self._data = self.to_representation(self.instance)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/hypermediachannels/serializers.py", line 35, in to_representation
    return [
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/hypermediachannels/serializers.py", line 37, in <listcomp>
    super(HyperChannelsApiListSerializer, self).to_representation(item)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/hypermediachannels/fields.py", line 111, in to_representation
    stream_name, consumer = self.resolve(type(instance))
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/hypermediachannels/fields.py", line 69, in resolve
    stream_name, consumer = self._get_resolve(model)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/hypermediachannels/fields.py", line 80, in _get_resolve
    if consumer.queryset is None:
AttributeError: 'function' object has no attribute 'queryset'
WebSocket DISCONNECT /ws/ [<IP_ADDRESS>:57556]
```

I change the consumers file as follow:
class UserConsumer(ListModelMixin, GenericAsyncAPIConsumer):
    queryset = User.objects.all()
    serializer_class = UserSerializer

class DemultiplexerAsyncJson(AsyncJsonWebsocketDemultiplexer):
    applications = {
        "users":UserConsumer.as_asgi(), # <--- here
    }
```
But it throws the following error.
```
WebSocket HANDSHAKING /ws/ [<IP_ADDRESS>:57556]
WebSocket CONNECT /ws/ [<IP_ADDRESS>:57556]
Exception inside application: 'function' object has no attribute 'queryset'
Traceback (most recent call last):
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/staticfiles.py", line 44, in __call__
    return await self.application(scope, receive, send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/routing.py", line 71, in __call__
    return await application(scope, receive, send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/sessions.py", line 47, in __call__
    return await self.inner(dict(scope, cookies=cookies), receive, send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/sessions.py", line 254, in __call__
    return await self.inner(wrapper.scope, receive, wrapper.send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/auth.py", line 181, in __call__
    return await super().__call__(scope, receive, send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/middleware.py", line 26, in __call__
    return await self.inner(scope, receive, send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/routing.py", line 150, in __call__
    return await application(
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/consumer.py", line 94, in app
    return await consumer(scope, receive, send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channelsmultiplexer/demultiplexer.py", line 61, in __call__
    await future
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/consumer.py", line 94, in app
    return await consumer(scope, receive, send)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/consumer.py", line 58, in __call__
    await await_many_dispatch(
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/utils.py", line 51, in await_many_dispatch
    await dispatch(result)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/consumer.py", line 73, in dispatch
    await handler(message)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/generic/websocket.py", line 196, in websocket_receive
    await self.receive(text_data=message["text"])
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/generic/websocket.py", line 259, in receive
    await self.receive_json(await self.decode_json(text_data), **kwargs)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/djangochannelsrestframework/consumers.py", line 160, in receive_json
    await self.handle_action(action, request_id=request_id, **content)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/djangochannelsrestframework/consumers.py", line 151, in handle_action
    await self.handle_exception(exc, action=action, request_id=request_id)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/djangochannelsrestframework/consumers.py", line 117, in handle_exception
    raise exc
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/djangochannelsrestframework/consumers.py", line 144, in handle_action
    response = await method(request_id=request_id, action=action, **kwargs)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/djangochannelsrestframework/decorators.py", line 64, in async_f
    result, status = await database_sync_to_async(func)(self, *args, **_kwargs)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/asgiref/sync.py", line 304, in __call__
    ret = await asyncio.wait_for(future, timeout=None)
  File "/usr/lib/python3.8/asyncio/tasks.py", line 455, in wait_for
    return await fut
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/channels/db.py", line 13, in thread_handler
    return super().thread_handler(loop, *args, **kwargs)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/asgiref/sync.py", line 343, in thread_handler
    return func(*args, **kwargs)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/djangochannelsrestframework/mixins.py", line 25, in list
    return serializer.data, status.HTTP_200_OK
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/rest_framework/serializers.py", line 745, in data
    ret = super().data
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/rest_framework/serializers.py", line 246, in data
    self._data = self.to_representation(self.instance)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/hypermediachannels/serializers.py", line 35, in to_representation
    return [
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/hypermediachannels/serializers.py", line 37, in <listcomp>
    super(HyperChannelsApiListSerializer, self).to_representation(item)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/hypermediachannels/fields.py", line 111, in to_representation
    stream_name, consumer = self.resolve(type(instance))
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/hypermediachannels/fields.py", line 69, in resolve
    stream_name, consumer = self._get_resolve(model)
  File "/home/lautaro/Documentos/channels_test/venv/lib/python3.8/site-packages/hypermediachannels/fields.py", line 80, in _get_resolve
    if consumer.queryset is None:
AttributeError: 'function' object has no attribute 'queryset'
WebSocket DISCONNECT /ws/ [<IP_ADDRESS>:57556]
```

#3

#3


Page.EnableViewStateMac

How would the payload work for the ViewState plugin where the MAC is not enabled and the values are not signed?

So the issue i'm getting back from the target is:
SerializationException: Unable to find assembly 'Microsoft.PowerShell.Editor, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Does you tool support any other binarys to execute command?


feature/sdk-query → main: Add steps for using the Gen3 SDK to query Metadata/Guppy

User Story
As a Research Analyst, I want to know how to query Metadata from a Gen3 endpoint — what options are available in terms of SDK and scripting support?
Analysis
No current step-by-step guides on how to:

Authenticate with the Gen3 SDK
Run queries against Guppy (i.e. what language does Guppy speak — what examples are available?)

Design
Design considerations:

Include examples!
Should we create a SwaggerHub (or similar alternative) page for this?

Example: https://petstore.swagger.io/#/pet/uploadFile

Additional Resources 📚

sdk docs / sdk repo (API to access Elastic through Guppy)
guppy syntax docs
Jay's specified queries (bottom of this doc)
config to identify field names as they're stored in Elastic (differs from UI) / dev frontend branch

(Skeleton) Query Page — https://deploy-preview-27--luminous-boba-a6e270.netlify.app/workflows/query


Trouble with cleaning remote folder via FTP

2017-04-26T15:37:17.3216030Z ##[section]Starting: FTP Upload: $(System.DefaultWorkingDirectory)/Joiny-CI/drop
2017-04-26T15:37:17.3316027Z ==============================================================================
2017-04-26T15:37:17.3316027Z Task         : FTP Upload
2017-04-26T15:37:17.3316027Z Description  : FTP Upload
2017-04-26T15:37:17.3316027Z Version      : 1.114.1
2017-04-26T15:37:17.3316027Z Author       : Microsoft Corporation
2017-04-26T15:37:17.3316027Z Help         : Upload files to a remote machine using the File Transfer Protocol (FTP), or securely with FTPS.  [More Information](http://go.microsoft.com/fwlink/?LinkId=809084).
2017-04-26T15:37:17.3316027Z ==============================================================================
2017-04-26T15:37:18.7466600Z connecting to: w07.hoster.by:21
2017-04-26T15:37:19.2884185Z connected: Microsoft FTP Service
2017-04-26T15:37:19.4317137Z cleaning remote directory: beta.joiny.io/wwwroot
2017-04-26T15:37:19.9576855Z FTP upload failed: Unable to clean remote folder: beta.joiny.io/wwwroot error: Error: Access is denied.
2017-04-26T15:37:19.9626856Z ##[error]Unable to clean remote folder: beta.joiny.io/wwwroot error: Error: Access is denied.
2017-04-26T15:37:19.9646867Z disconnecting from: w07.hoster.by
2017-04-26T15:37:19.9926899Z disconnected
2017-04-26T15:37:20.0016976Z ##[section]Finishing: FTP Upload: $(System.DefaultWorkingDirectory)/Joiny-CI/drop

Note: this issue isn't reproduced everytime

Hi @artgrabovski.  Thank you for reporting this problem.  Is your FTP server being provided by an Azure Web App, or is it a Windows/IIS server running elsewhere?

@DavidStaheli It is IIS server

Hi @artgrabovski, with regard to this particular ftp resource, what are the chances that there could be two builds contending for the same location?  That's my guess for the most likely cause for an intermittent issue like this.
If you don't think that's the problem, could you provide some more details?  Are you building using a Hosted Build Agent or are you using your own Build Agent?  Also, you mentioned that it's not 'reproduced everytime'.  Could you please provide more details?  (Such as what percentage of the time?  Any correlation to a time, a build or a particular Build Agent for instance?)
Thanks!

Hi @lkillgore ! I still do some experiments to localize my issue. Notes:

There aren't no chances that there could be two builds contending for the same location.
I am building using Hosted VS 2017
I think that issue is localized on IIS server due to locked resources in remote directory
I try to disable option "Clean remote directory" and enable "Overwrite" option and get more specific error "upload failed: beta.joiny.io/wwwroot/Joiny.App.Domain.dll due to error: Error: The process cannot access the file because it is being used by another process." I think this errors has same reason
Everything is ok when i pause web-site and start manual deploying

@artgrabovski : Based on the information you have provided, there might be something in IIS holding on to the files causing FTP upload to fail. To reliably automate the upload, you might have to pause the website, do the FTP upload and restart the website.
There are a couple of solutions targetted to deploying to IIS:

Using deployment groups
Using WinRM

If you want to continue using FTP upload, you can try creating powershell scripts for pausing the website and starting the website and use the PowerShell on Target Machine task to run them on the IIS server.
Thanks,
Madhuri


K_Means_Clustering.pdf

Can you tell me how this is spam , elaborate.
And in ai ml section there is not more notes about it , so that's why I added this notes.


feat: enforce redirect from base URL to dashboard if login is detected

In this way, users can simply type parachute.fyi to access their dashboard by default. We might need to add a /home route to allow logged-in users to view landing page if they wish.

Solved.


add back binding for new_chat and delete chat

the 2 key bindings seems to have been left out. Since it is trivial to add them in, here it is.

Let me think a bit about this. I removed most of the bindings to avoid colliding with the bindings of certain widgets (I guess mostly the TextArea-based ones).  I am not sure I want to have exceptions, but I do see the point for these two. Could you check if there are any collisions with the default bindings in textual's docs?

from https://textual.textualize.io/widgets/text_area/#bindings

Key(s)
Description

up
Move the cursor up.

down
Move the cursor down.

left
Move the cursor left.

ctrl+left
Move the cursor to the start of the word.

ctrl+shift+left
Move the cursor to the start of the word and select.

right
Move the cursor right.

ctrl+right
Move the cursor to the end of the word.

ctrl+shift+right
Move the cursor to the end of the word and select.

home,ctrl+a
Move the cursor to the start of the line.

end,ctrl+e
Move the cursor to the end of the line.

shift+home
Move the cursor to the start of the line and select.

shift+end
Move the cursor to the end of the line and select.

pageup
Move the cursor one page up.

pagedown
Move the cursor one page down.

shift+up
Select while moving the cursor up.

shift+down
Select while moving the cursor down.

shift+left
Select while moving the cursor left.

shift+right
Select while moving the cursor right.

backspace
Delete character to the left of cursor.

ctrl+w
Delete from cursor to start of the word.

delete ,ctrl+d
Delete character to the right of cursor.

ctrl+f
Delete from cursor to end of the word.

ctrl+shift+k
Delete the current line.

ctrl+u
Delete from cursor to the start of the line.

ctrl+k
Delete from cursor to the end of the line.

f6
Select the current line.

f7
Select all text in the document.

ctrl+z
Undo.

ctrl+y
Redo.

ctrl+x
Cut selection or line if no selection.

ctrl+c
Copy selection to clipboard.

ctrl+v
Paste from clipboard.

it seems that the only conflict is ctrl+x
The more common binding for this is usually ctrl-w, but that is taken as well.
I propose ctrl+backspace as the binding for closing the window.

Thanks, and sorry for the delay, holidays and all :)
Would you be so kind and update the README and add an entry to the changeling as well?

I've update the files. Please review if I'm doing it correctly.

Thank you so much @pekcheey , happy holidays to you too!


Getting "Wide character in print" in 9.2

According to the Changelog this was supposedly addressed prior to version 4.1, but we're getting it in pgBadger 9.2
"Wide character in print at /usr/bin/pgbadger line 11110."

Sorry for the response delay, please use latest development code and reopen the issue to report the new error if it still occurs.

Still getting this issue in 10.1 (installed from the official PG APT repository.)
If you want some data from me, let me know; we keep all of our PG .CSV log files for quite a while.

Please send me a log file to be able to reproduce the issue.

The compressed CSV log file is 174Mb... The error message from
pgbadger says "Wide character in print at /usr/bin/pgbadger line
11311." Is that line 11311 in the code? How can I identify the lines
in the log file? I can make the whole file available to you if you
want -- I can put it somewhere for you to download. What's your
private email address?
On Thu, 20 Dec 2018 at 14:30, Gilles Darold<EMAIL_ADDRESS>wrote:

Please send me a log file to be able to reproduce the issue.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Thanks, send a link to download the log at < gilles AT darold DOT net >

Before I send you the whole file, can I use eg verbose mode to get
information about which line(s) or query/queries in the CSV file are
causing the problem?
On Thu, 20 Dec 2018 at 15:18, Gilles Darold<EMAIL_ADDRESS>wrote:

Thanks, send a link to download the log at < gilles AT darold DOT net >
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/darold/pgbadger/issues/410#issuecomment-449013789,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABJ3_Y8xaP5_LuiNTqEKCcYW6y7j9trQks5u65xHgaJpZM4UNiqf
.

No there's no such debug information, but what you can do is splitting the uncompressed log file using:
split --lines=`wc -l postgresql-11.0.log | awk '{print $1/10}'` postgresql-11.0.log

and find which of the ten 10 file parts is generating the error. This will reduce the size of the file to send.

Thanks!
Do you expect a new release soon? We install from the Postgres APT repository so if a new release is coming soon I won’t install and test separately.
Thanks again,
/Colin
Sent from my iPhone

On 21 Dec 2018, at 09:28, Gilles Darold<EMAIL_ADDRESS>wrote:
Many thanks, commit 683d26f might solve this issue. Let me know if there is still other errors.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Yes, I will try to get it out this weekend.


Debug failed 0.7.0 release

The release for 0.7.0 failed repeatedly for an invalid POM file: https://github.com/scala-exercises/sbt-exercise/actions/runs/1791462712
I'm opening this issue as a place to dump debugging info

The problem that CI reports is that developers are missing from the POM file. There are two possibilities for how that might happen. The first is that we don't have any developer metadata.
I ran developers from sbt locally after running the github task, and saw plenty of developers. Since the github task is part of the ci-publish action, this metadata should be available at publication time.
The second possibility is that while this information is available, it's not getting packaged into the pom file for reasons. I don't believe this is the case either -- I ran a publishLocal after github (not identical to ci-release, but I don't know that I can mimic ci-release locally). I got a pom file that looks like this:
<?xml version='1.0' encoding='UTF-8'?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.scala-exercises</groupId>
    <artifactId>definitions_2.12</artifactId>
    <packaging>jar</packaging>
    <description>Exercises Compiler Plugin</description>
    <url>https://github.com/scala-exercises/sbt-exercise</url>
    <version>0.6.7+142-792921bb-SNAPSHOT</version>
    <licenses>
        <license>
            <name>Apache-2.0</name>
            <url>https://api.github.com/licenses/apache-2.0</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
    <name>definitions</name>
    <inceptionYear>2020</inceptionYear>
    <organization>
        <name>47 Degrees Open Source</name>
        <url>https://www.47deg.com</url>
    </organization>
    <scm>
        <url>https://github.com/scala-exercises/sbt-exercise</url>
        <connection>scm:git:https://github.com/scala-exercises/sbt-exercise.git</connection>
        <developerConnection>scm:git:git@github.com:scala-exercises/sbt-exercise.git</developerConnection>
    </scm>
    <developers>
        <developer>
            <id>47erbot</id>
            <name>47erbot</name>
            <url>https://github.com/47erbot</url>
<EMAIL_ADDRESS>        </developer>
        <developer>
            <id>fedefernandez</id>
            <name>Fede Fernández</name>
            <url>https://github.com/fedefernandez</url>
        </developer>
        <developer>
            <id>jisantuc</id>
            <name>James Santucci</name>
            <url>https://github.com/jisantuc</url>
<EMAIL_ADDRESS>        </developer>
        <developer>
            <id>juanpedromoreno</id>
            <name>Juan Pedro Moreno</name>
            <url>https://github.com/juanpedromoreno</url>
        </developer>
    </developers>
    <dependencies>
        <dependency>
            <groupId>org.scala-lang</groupId>
            <artifactId>scala-library</artifactId>
            <version>2.12.15</version>
        </dependency>
        <dependency>
            <groupId>org.typelevel</groupId>
            <artifactId>cats-core_2.12</artifactId>
            <version>2.7.0</version>
        </dependency>
        <dependency>
            <groupId>org.scalatest</groupId>
            <artifactId>scalatest_2.12</artifactId>
            <version>3.2.10</version>
        </dependency>
        <dependency>
            <groupId>org.scalacheck</groupId>
            <artifactId>scalacheck_2.12</artifactId>
            <version>1.15.4</version>
        </dependency>
        <dependency>
            <groupId>com.github.alexarchambault</groupId>
            <artifactId>scalacheck-shapeless_1.15_2.12</artifactId>
            <version>1.3.0</version>
        </dependency>
    </dependencies>
</project>

I downloaded the xsd file mentioned in the schema to schema.xsd and ran xmllint --schema schema.xsd definitions_2.12.pom --noout to verify that the pom file conforms to the schema, and got
$ xmllint --schema schema.xsd definitions_2.12.pom --noout
definitions_2.12.pom validates

So I think the note about a bad pom file is a red herring maybe?

Yup, developers has minOccurs=0:
<xs:element minOccurs="0" name="developers">

Contrast the pom above with the pom from evaluator-client in scala-exercises-runtime, which does have developers:
<?xml version='1.0' encoding='UTF-8'?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.scala-exercises</groupId>
    <artifactId>evaluator-client_2.12</artifactId>
    <packaging>jar</packaging>
    <description>Runtime library for Scala-Exercises Server</description>
    <url>https://github.com/scala-exercises/scala-exercises-runtime</url>
    <version>0.6.4+132-ab7d5c40-SNAPSHOT</version>
    <licenses>
        <license>
            <name>Apache-2.0</name>
            <url>https://api.github.com/licenses/apache-2.0</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
    <name>evaluator-client</name>
    <inceptionYear>2020</inceptionYear>
    <organization>
        <name>47 Degrees Open Source</name>
        <url>https://www.47deg.com</url>
    </organization>
    <scm>
        <url>https://github.com/scala-exercises/scala-exercises-runtime</url>
        <connection>scm:git:https://github.com/scala-exercises/scala-exercises-runtime.git</connection>
        <developerConnection>scm:git:git@github.com:scala-exercises/scala-exercises-runtime.git</developerConnection>
    </scm>
    <developers>
        <developer>
            <id>alejandrohdezma</id>
            <name>Alejandro Hernández</name>
            <url>https://github.com/alejandrohdezma</url>
<EMAIL_ADDRESS>        </developer>
        <developer>
            <id>rafaparadela</id>
            <name>Rafa Paradela</name>
            <url>https://github.com/rafaparadela</url>
<EMAIL_ADDRESS>        </developer>
        <developer>
            <id>raulraja</id>
            <name>Raúl Raja Martínez</name>
            <url>https://github.com/raulraja</url>
<EMAIL_ADDRESS>        </developer>
    </developers>
    <dependencies>
        <dependency>
            <groupId>org.scala-lang</groupId>
            <artifactId>scala-library</artifactId>
            <version>2.12.15</version>
        </dependency>
        <dependency>
            <groupId>org.http4s</groupId>
            <artifactId>http4s-blaze-client_2.12</artifactId>
            <version>0.23.8</version>
        </dependency>
        <dependency>
            <groupId>org.http4s</groupId>
            <artifactId>http4s-circe_2.12</artifactId>
            <version>0.23.8</version>
        </dependency>
        <dependency>
            <groupId>io.circe</groupId>
            <artifactId>circe-core_2.12</artifactId>
            <version>0.14.1</version>
        </dependency>
        <dependency>
            <groupId>io.circe</groupId>
            <artifactId>circe-generic_2.12</artifactId>
            <version>0.14.1</version>
        </dependency>
    </dependencies>
</project>

I think for whatever reason, while everything looks like it should be working, we're actually not writing the developers to the pom, and the error is not a red herring after all.

Oh, cool, developers isn't getting set in CI for some reason:
Right before running ci-release, developers is still an empty list for all the projects:
[info] set current project to default-878[39](https://github.com/scala-exercises/sbt-exercise/runs/5071847454?check_suite_focus=true#step:9:39)e (in build file:/home/runner/work/sbt-exercise/sbt-exercise/)
[info] definitions / developers
[info] 	List()
[info] compiler / developers
[info] 	List()
[info] sbt-exercise / developers
[info] 	List()
[info] documentation / developers
[info] 	List()
[info] developers
[info] 	List()
[info] Defining ThisBuild / githubEnabled
[info] The new value will be used by ThisBuild / collaborators, ThisBuild / contributors and 2 others.
[info] 	Run `last` for details.
[info] Reapplying settings...
[info] Retrieving `scala-exercises/sbt-exercise` information from Github API
[info] Retrieving `scala-exercises/sbt-exercise` contributors from Github API
[info] Retrieving `[47](https://github.com/scala-exercises/sbt-exercise/runs/5071847454?check_suite_focus=true#step:9:47)degrees` organization from Github API
[info] Retrieving `scala-exercises/sbt-exercise` releases from Github API
[info] Retrieving `scala-exercises/sbt-exercise` collaborators from Github API
[info] set current project to default-87839e (in build file:/home/runner/work/sbt-exercise/sbt-exercise/)
[info] definitions / developers
[info] 	List()
[info] compiler / developers
[info] 	List()
[info] sbt-exercise / developers
[info] 	List()
[info] documentation / developers
[info] 	List()
[info] developers
[info] 	List()
Running ci-release.
  branch=refs/heads/test/js/release-on-this-branch

Contrast with local, where everything is fine :tm:
$ sbt 'show developers;github;show developers'                                                                                sbt-exercise
[info] welcome to sbt 1.6.1 (Azul Systems, Inc. Java 1.8.0_292)
[info] loading global plugins from /Users/james/.sbt/1.0/plugins
[info] loading settings for project sbt-exercise-build-build-build from metals.sbt ...
[info] loading project definition from /Users/james/gitdirs/sbt-exercise/project/project/project
[info] loading settings for project sbt-exercise-build-build from metals.sbt ...
[info] loading project definition from /Users/james/gitdirs/sbt-exercise/project/project
[success] Generated .bloop/sbt-exercise-build-build.json
[success] Total time: 1 s, completed Feb 4, 2022 12:58:05 PM
[info] loading settings for project sbt-exercise-build from metals.sbt,plugins.sbt ...
[info] loading project definition from /Users/james/gitdirs/sbt-exercise/project
[success] Generated .bloop/sbt-exercise-build.json
[success] Total time: 1 s, completed Feb 4, 2022 12:58:07 PM
[info] loading settings for project sbt-exercise from build.sbt ...
[info] loading settings for project default-c10130 from build.sbt ...
[info] set current project to default-c10130 (in build file:/Users/james/gitdirs/sbt-exercise/)
[info] definitions / developers
[info]  List()
[info] compiler / developers
[info]  List()
[info] sbt-exercise / developers
[info]  List()
[info] documentation / developers
[info]  List()
[info] developers
[info]  List()
[info] Defining ThisBuild / githubEnabled
[info] The new value will be used by ThisBuild / collaborators, ThisBuild / contributors and 2 others.
[info]  Run `last` for details.
[info] Reapplying settings...
[info] Retrieving `scala-exercises/sbt-exercise` information from Github API
[info] Retrieving `scala-exercises/sbt-exercise` releases from Github API
[info] Retrieving `scala-exercises/sbt-exercise` contributors from Github API
[info] Retrieving `47degrees` organization from Github API
[info] Retrieving `scala-exercises/sbt-exercise` collaborators from Github API
[info] Retrieving `fedefernandez` information from Github API
[info] Retrieving `juanpedromoreno` information from Github API
[info] Retrieving `jisantuc` information from Github API
[info] Retrieving `47erbot` information from Github API
[info] set current project to default-c10130 (in build file:/Users/james/gitdirs/sbt-exercise/)
[info] definitions / developers
[info]  List(Developer(47erbot, 47erbot<EMAIL_ADDRESS>https://github.com/47erbot), Developer(fedefernandez, Fede Fernández, , https://github.com/fedefernandez), Developer(jisantuc, James Santucci<EMAIL_ADDRESS>https://github.com/jisantuc), Developer(juanpedromoreno, Juan Pedro Moreno, , https://github.com/juanpedromoreno))
[info] compiler / developers
[info]  List(Developer(47erbot, 47erbot<EMAIL_ADDRESS>https://github.com/47erbot), Developer(fedefernandez, Fede Fernández, , https://github.com/fedefernandez), Developer(jisantuc, James Santucci<EMAIL_ADDRESS>https://github.com/jisantuc), Developer(juanpedromoreno, Juan Pedro Moreno, , https://github.com/juanpedromoreno))
[info] sbt-exercise / developers
[info]  List(Developer(47erbot, 47erbot<EMAIL_ADDRESS>https://github.com/47erbot), Developer(fedefernandez, Fede Fernández, , https://github.com/fedefernandez), Developer(jisantuc, James Santucci<EMAIL_ADDRESS>https://github.com/jisantuc), Developer(juanpedromoreno, Juan Pedro Moreno, , https://github.com/juanpedromoreno))
[info] documentation / developers
[info]  List(Developer(47erbot, 47erbot<EMAIL_ADDRESS>https://github.com/47erbot), Developer(fedefernandez, Fede Fernández, , https://github.com/fedefernandez), Developer(jisantuc, James Santucci<EMAIL_ADDRESS>https://github.com/jisantuc), Developer(juanpedromoreno, Juan Pedro Moreno, , https://github.com/juanpedromoreno))
[info] developers
[info]  List(Developer(47erbot, 47erbot<EMAIL_ADDRESS>https://github.com/47erbot), Developer(fedefernandez, Fede Fernández, , https://github.com/fedefernandez), Developer(jisantuc, James Santucci<EMAIL_ADDRESS>https://github.com/jisantuc), Developer(juanpedromoreno, Juan Pedro Moreno, , https://github.com/juanpedromoreno))


Add the Gleam programming language

Description
Hello! 👋
I would like to add support for the Gleam programming language.
Checklist:

[x] I am adding a new language.

[x] The extension of the new language is used in hundreds of repositories on GitHub.com.

Search results for each extension:

https://github.com/search?q=extension%3Agleam+fn+NOT+nothack&type=Code
I was unable to get the search script to work, so here is a list of repos with Gleam code that I have starred https://github.com/stars/lpil/lists/gleam-projects

[x] I have included a real-world usage sample for all extensions added in this PR:

Sample source(s):

contributor.gleam (Apache-2.0)
websocket.gleam (Apache-2.0)

[x] I have included a syntax highlighting grammar: lightshow

We hope to have a tree-sitter grammar in the near future, but for now we have a textmate one.
Thank you! 💜

Hi @lildude! Sorry to ping you, but is there anything else the Gleam folks need to do here before this addition can be considered? Thank you

I'm not performing reviews of PRs until I've got the time to start working on the next release (likely to be in early Feb at the earliest). From a quick look, all looks good, however I suspect the lack of usage is going to hold back merging this PR immediately. We'll see when I get to reviewing.

Thank you

Hi @lildude.
I anticipated that where would be be an issue with the new search so I took the time to add 200 Gleam projects to a list. It is linked in my original post.
We have the 200 repos we meet the previous non-temporary inclusion criteria. Seeing as the search is not needed for this there's no need to use a new metric. Will that be enough for our inclusion?
Thanks,
Louis

I have an additional 2 Gleam focused repos that I don't think are on that list:

https://github.com/aslilac/cleffa
https://github.com/aslilac/nakai

Thank you @aslilac 💜

@lpil I was using the simple search you included in the OP to see the number of files, which is less than the new temp 2000 file limit. If you can improve that, please do.

Hi @lildude, is it not possible to use the traditional 200 user/repo requirement in this instance then? It is frustrating the goalposts have moved after this PR was opened, especially since we have manually collected 200+ repos as evidence.
If it is not sufficient how do we find out how many files there are? The search doesn't show a number for me beyond 1000+ so I'm not sure how many are required.

is it not possible to use the traditional 200 user/repo requirement in this instance then?

I didn't state it wasn't sufficient... I stated that was how I determined it didn't meet the new search criteria 😉 I didn't notice your manually curated list in the OP, but now you've pointed it that should be sufficient.

The search doesn't show a number for me beyond 1000+ so I'm not sure how many are required.

It should do... right at the top:

oh I see! Sorry for the confusion there. Thank you 💜

It should do... right at the top:

I've no idea how I missed that. I think you can tell I've not had my coffee yet this morning 😵

oh I see! Sorry for the confusion there. Thank you 💜

It should do... right at the top:

I've no idea how I missed that. I think you can tell I've not had my coffee yet this morning 😵


Numerous Errors

Hello,
Thank you for all of your great work. I am trying to just download and process the English dumps from CommonCrawl up to 2023. I have been running into multiple errors.
It seems as if the link to download from cc has changed to:
https://data.commoncrawl.org/
Some of the header names were changed as well. This fixed those errors:
        headers_map = {}

        for header in headers[1:]:
            if not header:
                continue
            key, value = header.split(": ", 1)
            headers_map[key] = value

        warc_type = headers_map["WARC-Type"]
        if warc_type != "conversion":
            return None
        url = headers_map["WARC-Target-URI"]
        date = headers_map["WARC-Date"]
        digest = headers_map["WARC-Block-Digest"]
        length = int(headers_map["Content-Length"])

Finally,  running into this other issue:
requests.exceptions.HTTPError: 503 Server Error: Service Unavailable for url: https://data.commoncrawl.org/crawl-data/CC-MAIN-2023-14/segments/1679296943471.24/wet/CC-MAIN-20230320083513-20230320113513-00114.warc.wet.gz

I have not been able to resolve this error yet.
Any help would be greatly appreciated.
Thank you,
Enrico

I have the similar problem, maybe it is caused by requesting too much. I got 'slow down' msg when I access the link that raised in my browser.

Same problem here^^

I am trying to download the dataset to reproduce the results from the Toolformer paper. I have been struggling with this dataset for a while. Did you manage to solve the issue and get the data? Maybe by manually downloading the data, and skipping that step of the pipeline? @conceptofmind I am actually using your Toolformer repo for my research, thanks for that :)


[BUG] Hyperf\DbConnection\Db blocks other coroutines from getting a database pool connection

Linux <redacted> 5.4.0-172-generic #190-Ubuntu SMP Fri Feb 2 23:24:22 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
PHP 8.3.3-1+ubuntu20.04.1+deb.sury.org+1 (cli) (built: Feb 15 2024 18:38:21) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.3, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.3-1+ubuntu20.04.1+deb.sury.org+1, Copyright (c), by Zend Technologies
friendsofhyperf/tinker             v3.1.7                                   The Powerful REPL for Hyperf.
hyperf/cache                       v3.1.10                                  A cache component for hyperf.
hyperf/code-parser                 v3.1.4                                   A code parser component for Hyperf.
hyperf/codec                       v3.1.10                                  A codec component for Hyperf.
hyperf/collection                  v3.1.7                                   Hyperf Collection package which come from illuminate/collections
hyperf/command                     v3.1.7                                   Command for hyperf
hyperf/conditionable               v3.1.0                                   Hyperf Macroable package which come from illuminate/conditionable
hyperf/config                      v3.1.2                                   An independent component that provides configuration container.
hyperf/context                     v3.1.0                                   A coroutine/application context library.
hyperf/contract                    v3.1.2                                   The contracts of Hyperf.
hyperf/coordinator                 v3.1.7                                   Hyperf Coordinator
hyperf/coroutine                   v3.1.1                                   Hyperf Coroutine
hyperf/database                    v3.1.10                                  A flexible database library.
hyperf/db-connection               v3.1.7                                   A hyperf db connection handler for hyperf/database.
hyperf/devtool                     v3.1.5                                   A Devtool for Hyperf.
hyperf/di                          v3.1.6                                   A DI for Hyperf.
hyperf/dispatcher                  v3.1.0                                   A HTTP Server for Hyperf.
hyperf/engine                      v2.10.4                                  Coroutine engine provided by swoole.
hyperf/engine-contract             v1.9.1                                   Contract for Coroutine Engine
hyperf/event                       v3.1.0                                   an event manager that implements PSR-14.
hyperf/exception-handler           v3.1.5                                   Exception handler for hyperf
hyperf/framework                   v3.1.0                                   A coroutine framework that focuses on hyperspeed and flexible, specifically...
hyperf/guzzle                      v3.1.0                                   Swoole coroutine handler for guzzle
hyperf/helper                      v3.1.0                                   A function helper package that could help developer solved the problem quic...
hyperf/http-message                v3.1.0                                   microservice framework base on swoole
hyperf/http-server                 v3.1.6                                   A HTTP Server for Hyperf.
hyperf/logger                      v3.1.9                                   A logger component for hyperf.
hyperf/macroable                   v3.1.0                                   Hyperf Macroable package which come from illuminate/macroable
hyperf/memory                      v3.1.0                                   An independent component that use to operate and manage memory.
hyperf/model-listener              v3.1.10                                  A model listener for Hyperf.
hyperf/pipeline                    v3.1.0                                   Hyperf Macroable package which come from illuminate/pipeline
hyperf/polyfill-coroutine          v3.1.0                                   This component provides features added short functions.
hyperf/pool                        v3.1.0                                   An independent universal connection pool component.
hyperf/process                     v3.1.0                                   A process component for hyperf.
hyperf/serializer                  v3.1.0                                   A serializer component for Hyperf.
hyperf/server                      v3.1.9                                   A base server library for Hyperf.
hyperf/stdlib                      v3.1.0                                   A stdlib component for Hyperf.
hyperf/stringable                  v3.1.0                                   Hyperf Stringable package which come from illuminate/support
hyperf/support                     v3.1.10                                  A support component for Hyperf.
hyperf/tappable                    v3.1.0                                   Hyperf Macroable package which come from illuminate/tappable
hyperf/testing                     v3.1.3                                   Testing for hyperf
hyperf/translation                 v3.1.0                                   An independent translation component, forked by illuminate/translation.
hyperf/utils                       v3.1.0                                   A tools package that could help developer solved the problem quickly.

swoole

Swoole => enabled
Author => Swoole Team<EMAIL_ADDRESS>Version => 5.1.1
Built => Dec  1 2023 13:40:51
coroutine => enabled with boost asm context
epoll => enabled
eventfd => enabled
signalfd => enabled
cpu_affinity => enabled
spinlock => enabled
rwlock => enabled
sockets => enabled
openssl => OpenSSL 1.1.1f  31 Mar 2020
dtls => enabled
http2 => enabled
json => enabled
curl-native => enabled
pcre => enabled
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
mysqlnd => enabled
async_redis => enabled

Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_fiber_mock => Off => Off
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => On => On
swoole.unixsock_buffer_size => 8388608 => 8388608

Issue:
Hyperf\DbConnection\Db occupies pool connections the entire lifetime of the coroutine, blocking other coroutines from getting a DB connection.
For example if a coroutine performs work such as: 1) query the database 2) do some HTTP requests to APIs etc. 3) update the database or other tasks etc. then Hyperf\DbConnection\Db will get a pool connection in step 1 and keep it reserved and does not release it back to the pool even if step 2 HTTP/API requests take time, other coroutines waiting to use Db:: cannot get from the pool until this coroutine ends (when defer() is called to release the DB connection back to the pool)
See hyperf/db-connection/src/ConnectionResolver.php where $pool->get() and defer() and $connection->release(); is called
Steps To Reproduce:
Create many coroutines to perform database tasks using Db:: and other tasks which take some time like HTTP requests etc.
Early / first coroutines will get database pool connections right away and proceed with their tasks
But later coroutines will wait in the connection pool channel until those db connections are released, even if the Early coroutines take 10 or 15 or 30sec+ to perform their HTTP tasks, later coroutines cannot even perform their 1st database task until the early coroutines finish and return.
Solution?
Possibility to release the pool connection on-demand earlier in the coroutine before performing time consuming work like HTTP requests or other such tasks?
Db::select(...); // gets a db pool connection fast
...
Db::release(); // releases the DB connection early
...
// time-consuming work - does not block other coroutines from using DB!
...
Db::update(...); // gets another pool connection fast because everyone is releasing before doing long work
...
// coroutine ends - ConnectionResolver.php `defer()` will do the last final releasing the DB connection

You can use wait() function to solve this.
use function Hyperf\Coroutine\wait;

$result = wait(fn() => Db::select(...));

$result = wait(fn() => Db::update(...));

你的运行环境不在Coroutine环境，通过Swoole的run或者别的方式从Coroutine环境启动就可以了。

@limingxinleo wow thanks brilliant idea I never thought about performing each database task inside a coroutine 👍👌 I was not aware of that wait() function (I guess it's not documented yet)
Would it still be beneficial to have a Db::release() feature so no need to create an additional channel and additional coroutine for each database operation?...
@lazychanger yet it is running in coroutine environment, Constant::OPTION_ENABLE_COROUTINE => true, (see above swoole output swoole.enable_coroutine)

This feature may be added in v3.2

Amazing!
If I had enough knowledge I would even try contributing this code myself, I'm just not sure where does this new Db::release() method belong

hyperf/database/src/Connection.php ?
hyperf/db-connection/src/Connection.php ?
hyperf/db-connection/src/ConnectionResolver.php ?
Other?

I guess it just needs to get the $connection from the coroutine context and call ->release() on it similar to ConnectionResolver.php does in defer()

There is another problem though - if we call this new Db::release() method in the current coroutine and there are no other coroutines trying to use Db:: then this coroutine will yield/suspend and waste time waiting (push() on the connection pool channel) until a new coroutine requests a pool connection (to pop() the channel)
I tried to solve this:
// 1. Get the connection object out of the coroutine context
$connection_name = 'default';
$db = \Hyperf\Context\Context::get("database.connection.$connection_name"); // see ConnectionResolver.php getContextKey()

// 2. Send ANOTHER coroutine to release that connection, so our coroutine can continue running
\Hyperf\Engine\Coroutine::create(fn($db) => $db->release(), $db);

// 3. In our coroutine delete / set null the $db variable
$db = null;
unset($db);
\Hyperf\Context\Context::set("database.connection.$connection_name"', null);
\Hyperf\Context\Context::destroy("database.connection.$connection_name");

But then I start getting this error - maybe I'm doing something wrong and there is a solution to do it right?
Fatal error: Uncaught Swoole\Error: Socket#23 has already been bound to another coroutine#38, reading of the same socket in coroutine#39 at the same time is not allowed in vendor/hyperf/database/src/Connection.php:269
Stack trace:
#0 vendor/hyperf/database/src/Connection.php(269): PDO->prepare('SELECT y.*, if(...')
#1 vendor/hyperf/database/src/Connection.php(1136): Hyperf\Database\Connection->Hyperf\Database\{closure}('SELECT y.*, if(...', Array)
#2 vendor/hyperf/database/src/Connection.php(1102): Hyperf\Database\Connection->runQueryCallback('SELECT y.*, if(...', Array, Object(Closure))
#3 vendor/hyperf/database/src/Connection.php(260): Hyperf\Database\Connection->run('SELECT y.*, if(...', Array, Object(Closure))
#4 vendor/hyperf/db-connection/src/Connection.php(48): Hyperf\Database\Connection->select('SELECT y.*, if(...', Array)
#5 vendor/hyperf/db-connection/src/Traits/DbConnection.php(41): Hyperf\DbConnection\Connection->__call('select', Array)
#6 vendor/hyperf/db-connection/src/Db.php(66): Hyperf\DbConnection\Connection->select('SELECT y.*, if(...', Array)
#7 app/Tasks/SomethingTask.php(1800): Hyperf\DbConnection\Db::__callStatic('select', Array)
#8 [internal function]: App\Tasks\SomethingTask::batch('1', Object(Swoole\Coroutine\WaitGroup), Array, 2, false)
#9 {main}
  thrown in vendor/hyperf/database/src/Connection.php on line 269
[2024-03-01 21:57:15 #64661.0]	WARNING	Server::check_worker_exit_status(): worker(pid=64663, id=1) abnormal exit, status=255, signal=0


Improve configuration handling in BatchWithPartitionData

Fixes #9467.
Changes:

Create a new config  spark.rapids.sql.columnSizeBytes that stores maximum size of column in bytes.

This aligns with other similar configurations and ensures consistency.

Modified all callers to the method addPartitionValuesToBatch() to accept maxGpuColumnSizeBytes as a parameter and pass it along.

Testing:

Existing unit tests and integration tests have been updated for these changes.

build


remote_execution: implement OSS write_action_result for local_only cache uploads

Forward port of part of https://github.com/facebook/buck2/pull/477, which implements code in the OSS path for putting results of actions marked local_only = True into the RBE ActionCache.
For people actually using the "remote execution" part of RBE and not just a cache, this rather large omission in the system will often be transparently mitigated because RBE services will not only record ActionCache entries on your behalf, they will also implement "EX-to-AC" forwarding where any execution calls will immediately get looked up in the ActionCache anyway as an optimization. Which means you'll never see this for things that properly hit CAS inputs/outputs.
However, a CommandExecutorConfig configured with remote_enabled = False can still enable remote_cache_enabled = allow_cache_uploads = True which will both enable the ActionCache/CAS support, and also allow uploads to those interfaces too.
The most useful example of this type of setup is in a CI system like GitHub Actions: where you run the build inside a container or image that provides something quasi-hermetic (e.g. including your toolchains), while the RBE system is purely a cache storing inputs/outputs/ActionCache entries and never uses remote execution.
The hope is that this functionality will soon be plug-and-play on GitHub using an RBE-to-GHA caching proxy, so Buck2 projects will be able to get a quick and easy cache, but without RE. Therefore this functionality will become highly useful.
Testing
I can submit tests too, though I'm not sure where. But, using the testing example from #477, running ./buck2 clean && BUCK_LOG=buck2_execute_impl=debug ./buck2 build -v3 //: where ./buck2 is the dotslash build from the 2024-09-02 tag gets me:
austin@GANON:~/tmp/buck2-test-477$ ./buck2 clean && BUCK_LOG=buck2_execute_impl=debug ./buck2 build -v3 //:
killing buckd server
Buck2 daemon pid 1862754 has exited
/home/austin/tmp/buck2-test-477/buck-out/v2/CACHEDIR.TAG
/home/austin/tmp/buck2-test-477/buck-out/v2/tmp
/home/austin/tmp/buck2-test-477/buck-out/v2/gen
/home/austin/tmp/buck2-test-477/buck-out/v2/log
/home/austin/tmp/buck2-test-477/buck-out/v2/forkserver
/home/austin/.buck/buckd/home/austin/tmp/buck2-test-477/v2
Starting new buck2 daemon...
Connected to new buck2 daemon.
Running action: root//:tests (<unspecified>) (stage0) (build), local executor: env -- 'TMPDIR=/home/austin/tmp/buck2-test-477/buck-out/v2/tmp/root/99fb5bba051d5fee/stage0' 'BUCK_SCRATCH_PATH=buck-out/v2/tmp/root/99fb5bba051d5fee/stage0' 'BUCK2_DAEMON_UUID=7f7061a9-f018-441c-8dbb-b5b149c0909b' 'BUCK_BUILD_ID=531fa58e-8263-468c-b908-7415b5e87944' /usr/bin/env sh -c '/usr/bin/env yes abcdefghijklmnopqrstuvwxyz | /usr/bin/head -c 65536 && echo done > "$1"' -- buck-out/v2/gen/root/6dd044292ff31ae1/__tests__/stage0
Build ID: 531fa58e-8263-468c-b908-7415b5e87944
Network: (GRPC-SESSION-ID)
Jobs completed: 10. Time elapsed: 0.1s.
Cache hits: 0%. Commands: 1 (cached: 0, remote: 0, local: 1)
[2024-09-03T17:04:15.718-05:00] 2024-09-03T22:04:15.564918Z  INFO buck2_execute_impl::executors::worker: Creating new WorkerPool
[2024-09-03T17:04:15.718-05:00] 2024-09-03T22:04:15.707678Z  INFO buck2_execute_impl::executors::local: Local execution command line:
[2024-09-03T17:04:15.718-05:00] ```
[2024-09-03T17:04:15.718-05:00] $ /usr/bin/env sh -c /usr/bin/env yes abcdefghijklmnopqrstuvwxyz | /usr/bin/head -c 65536 && echo done > "$1" -- buck-out/v2/gen/root/6dd044292ff31ae1/__tests__/stage0
[2024-09-03T17:04:15.718-05:00] ```
[2024-09-03T17:04:15.719-05:00] 2024-09-03T22:04:15.711154Z DEBUG buck2_execute_impl::executors::caching: Uploading action result for `4d0d66e6fcec174bb91a2173d9dbf46900028215ab714b32cceb4439be742eae:142`
[2024-09-03T17:04:15.719-05:00] 2024-09-03T22:04:15.714243Z  WARN buck2_execute_impl::executors::caching: Cache upload for `4d0d66e6fcec174bb91a2173d9dbf46900028215ab714b32cceb4439be742eae:142` failed: Upload for permission check: Remote Execution Error on write_action_result for ReSession GRPC-SESSION-ID
[2024-09-03T17:04:15.719-05:00] Error: (Not supported)
[2024-09-03T17:04:15.719-05:00] 2024-09-03T22:04:15.714274Z  INFO buck2_execute_impl::executors::caching: Dep file cache upload for `4d0d66e6fcec174bb91a2173d9dbf46900028215ab714b32cceb4439be742eae:142` not attempted
[2024-09-03T17:04:15.719-05:00] 2024-09-03T22:04:15.714558Z DEBUG materialize_artifact{event_dispatcher=EventDispatcher(TraceId = 531fa58e-8263-468c-b908-7415b5e87944) path=buck-out/v2/gen/root/6dd044292ff31ae1/__tests__/stage0}: buck2_execute_impl::materializers::deferred: nothing to materialize, adding to access times buffer

The (Not supported) comes directly from the previous code and is the error mentioned by Neil and Cormac in the previous issue.
Executing with this patch (truncated output of the exact same command above):
Cache hits: 0%. Commands: 1 (cached: 0, remote: 0, local: 1)
[2024-09-03T17:06:01.780-05:00] 2024-09-03T22:06:01.594777Z  INFO buck2_execute_impl::executors::worker: Creating new WorkerPool
[2024-09-03T17:06:01.780-05:00] 2024-09-03T22:06:01.759943Z  INFO buck2_execute_impl::executors::local: Local execution command line:
[2024-09-03T17:06:01.780-05:00] ```
[2024-09-03T17:06:01.780-05:00] $ /usr/bin/env sh -c /usr/bin/env yes abcdefghijklmnopqrstuvwxyz | /usr/bin/head -c 65536 && echo done > "$1" -- buck-out/v2/gen/root/6dd044292ff31ae1/__tests__/stage0
[2024-09-03T17:06:01.780-05:00] ```
[2024-09-03T17:06:01.780-05:00] 2024-09-03T22:06:01.764632Z DEBUG buck2_execute_impl::executors::caching: Uploading action result for `4d0d66e6fcec174bb91a2173d9dbf46900028215ab714b32cceb4439be742eae:142`
[2024-09-03T17:06:01.780-05:00] 2024-09-03T22:06:01.777826Z  INFO buck2_execute_impl::executors::caching: Cache upload for `4d0d66e6fcec174bb91a2173d9dbf46900028215ab714b32cceb4439be742eae:142` succeeded
[2024-09-03T17:06:01.780-05:00] 2024-09-03T22:06:01.777862Z  INFO buck2_execute_impl::executors::caching: Dep file cache upload for `4d0d66e6fcec174bb91a2173d9dbf46900028215ab714b32cceb4439be742eae:142` not attempted
[2024-09-03T17:06:01.780-05:00] 2024-09-03T22:06:01.778246Z DEBUG materialize_artifact{event_dispatcher=EventDispatcher(TraceId = 3c7147f3-2c6b-49e6-ba00-cfcf230b2dfc) path=buck-out/v2/gen/root/6dd044292ff31ae1/__tests__/stage0}: buck2_execute_impl::materializers::deferred: nothing to materialize, adding to access times buffer

And then running the command again, showing a cache hit:
Cache hits: 100%. Commands: 1 (cached: 1, remote: 0, local: 0)
[2024-09-03T17:06:04.975-05:00] 2024-09-03T22:06:04.834804Z  INFO buck2_execute_impl::executors::worker: Creating new WorkerPool
[2024-09-03T17:06:04.975-05:00] 2024-09-03T22:06:04.969252Z  INFO buck2_execute_impl::executors::action_cache: Action result is cached, skipping execution of:
[2024-09-03T17:06:04.975-05:00] ```
[2024-09-03T17:06:04.975-05:00] $ /usr/bin/env sh -c /usr/bin/env yes abcdefghijklmnopqrstuvwxyz | /usr/bin/head -c 65536 && echo done > "$1" -- buck-out/v2/gen/root/6dd044292ff31ae1/__tests__/stage0
[2024-09-03T17:06:04.976-05:00] ```
[2024-09-03T17:06:04.976-05:00]  for action `4d0d66e6fcec174bb91a2173d9dbf46900028215ab714b32cceb4439be742eae:142`
[2024-09-03T17:06:04.976-05:00] 2024-09-03T22:06:04.969338Z  INFO buck2_execute_impl::executors::caching: Cache upload for `4d0d66e6fcec174bb91a2173d9dbf46900028215ab714b32cceb4439be742eae:142` not attempted
[2024-09-03T17:06:04.976-05:00] 2024-09-03T22:06:04.969349Z  INFO buck2_execute_impl::executors::caching: Dep file cache upload for `4d0d66e6fcec174bb91a2173d9dbf46900028215ab714b32cceb4439be742eae:142` not attempted
[2024-09-03T17:06:04.976-05:00] 2024-09-03T22:06:04.969721Z DEBUG materialize_artifact{event_dispatcher=EventDispatcher(TraceId = 709c8472-7b45-4e22-af70-d72d789a98c0) path=buck-out/v2/gen/root/6dd044292ff31ae1/__tests__/stage0}: buck2_execute_impl::materializers::deferred: materialize artifact has_entry_and_method=true method=Some(CasDownload { info: CasDownloadInfo { origin: Execution(ActionExecutionOrigin { action_digest: [4d0d66e6fcec174bb91a2173d9dbf46900028215ab714b32cceb4439be742eae:142 expires at<PHONE_NUMBER>], action_instant: 2024-09-03T22:06:04.969094718Z, ttl: TimeDelta { secs: 0, nanos: 0 } }), re_use_case: RemoteExecutorUseCase(Intern { pointer: InternedData { data: "buck2-default", hash:<PHONE_NUMBER>0074524988 } }) } }) has_deps=false version=2 cleaning=false
[2024-09-03T17:06:04.976-05:00] 2024-09-03T22:06:04.974376Z DEBUG materialization_finished{artifact_path=ProjectRelativePathBuf("buck-out/v2/gen/root/6dd044292ff31ae1/__tests__/stage0") timestamp=2024-09-03T22:06:04.969799792Z version=Version(2) path=buck-out/v2/gen/root/6dd044292ff31ae1/__tests__/stage0}: buck2_execute_impl::materializers::deferred: transition to Materialized has_deps=false

@JakobDegen @ndmitchell PTAL if you get a chance. I think I've solved every major follow up for this change from the original PR, including Neil's (I know it's been a long time!), so I think this is OK to merge and strictly an improvement.

We're very interested in this - it would be a dramatic improvement for the way we use buck2 at System Initiative. Yum.


pipe to stdout?

How can i pipe the stdout from the child process to the console?
thx in advance ^^;

Hey, i'm running webpack command in a child process. The output DOES get printed but only after the command has completed. is there a way to steam the output while it's running ? Thanks.

setting verbosity to 3 did the trick !


[diem framework] Limit the number of validators in the network to 256 or less

This PR bounds the maximum number of validators that can participate in consensus to be less than or equal to 256.
This bounds the vector so that we don't run into gas issues in the future where portions of the validator set may become inaccessible.  We can increase this number later if we need to, but this was agreed as a sensible limit for the validator set at this time.

Just want to call out that this introduces genesis-breaking changes. How do we plan on incorporating this upstream?

Just want to call out that this introduces genesis-breaking changes. How do we plan on incorporating this upstream?

Good question.  The plan isn't on incorporating this upstream immediately for the next release. The plan that I'm aware of is that this would be deployed in the next release along with any other updates to Move modules/Diem core code.

Closing out old PR.

Hi @davidiw, can you share context on why this was closed? My understanding was this mitigated part of T77811081.

I think it was closed because I forgot to land....I'll reopen and work on getting this landed today.

I actually thought this had landed in another space, I guess that was the VASP limit. As this is a breaking change at this point, perhaps we can bring this to a conversation with the gatekeepers?

I'm probably wrong and confused about this all, but I don't think this is a breaking change? The Diem Framework modules will be updated, but it shouldn't break clients in any way or change the data representation of any on-chain value, and this should be rolled out with the normal release schedule for the Diem Framework. I'm happy to bring to the gatekeepers, but not sure if it's necessary?

let's get this landed!!!!!

/land
at last!

Error occured while trying to merge into master:
Reqwest(
    reqwest::Error {
        kind: Decode,
        source: Error("expected value", line: 1, column: 1),
    },
)


[Bug] Node/core-GetConversationMembers example doesn't work

I'm trying to test the code example Node/core-GetConversationMembers but it fails on localhost + Emulator with the following error:
> node app.js

restify listening to http://[::]:3978
WARN: ChatConnector: receive - emulator running without security enabled.
ChatConnector: message received.
WARN: ChatConnector: receive - emulator running without security enabled.
ChatConnector: message received.
WARN: ChatConnector: receive - emulator running without security enabled.
ChatConnector: message received.
UniversalBot("*") routing "hi" from "emulator"
Session.beginDialog(/)
/ - waterfall() step 1 of 1
Error retrieving conversation members { Error: Refresh access token failed with status code: 401
    at Request._callback (/Users/nw/src/_microsoft/BotBuilder-Samples/Node/core-GetConversationMembers/node_modules/botbuilder/lib/bots/ChatConnector.js:550:28)
    at Request.self.callback (/Users/nw/src/_microsoft/BotBuilder-Samples/Node/core-GetConversationMembers/node_modules/request/request.js:188:22)
    at emitTwo (events.js:106:13)
    at Request.emit (events.js:191:7)
    at Request.<anonymous> (/Users/nw/src/_microsoft/BotBuilder-Samples/Node/core-GetConversationMembers/node_modules/request/request.js:1171:10)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:188:7)
    at IncomingMessage.<anonymous> (/Users/nw/src/_microsoft/BotBuilder-Samples/Node/core-GetConversationMembers/node_modules/request/request.js:1091:12)
    at IncomingMessage.g (events.js:291:16)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickDomainCallback (internal/process/next_tick.js:128:9)
  cause:
   Error: Refresh access token failed with status code: 401
       at Request._callback (/Users/nw/src/_microsoft/BotBuilder-Samples/Node/core-GetConversationMembers/node_modules/botbuilder/lib/bots/ChatConnector.js:550:28)
       at Request.self.callback (/Users/nw/src/_microsoft/BotBuilder-Samples/Node/core-GetConversationMembers/node_modules/request/request.js:188:22)
       at emitTwo (events.js:106:13)
       at Request.emit (events.js:191:7)
       at Request.<anonymous> (/Users/nw/src/_microsoft/BotBuilder-Samples/Node/core-GetConversationMembers/node_modules/request/request.js:1171:10)
       at emitOne (events.js:96:13)
       at Request.emit (events.js:188:7)
       at IncomingMessage.<anonymous> (/Users/nw/src/_microsoft/BotBuilder-Samples/Node/core-GetConversationMembers/node_modules/request/request.js:1091:12)
       at IncomingMessage.g (events.js:291:16)
       at emitNone (events.js:91:20)
       at IncomingMessage.emit (events.js:185:7)
       at endReadableNT (_stream_readable.js:974:12)
       at _combinedTickCallback (internal/process/next_tick.js:80:11)
       at process._tickDomainCallback (internal/process/next_tick.js:128:9),
  isOperational: true }
/ - Session.sendBatch() sending 0 message(s)

What am I doing wrong? Does this sample require additional configuration to run correctly?

GetConversationMembers is working against the V4 emulator.


DoS protection outgoing message queue

The outgoing message queue (P2PControl) is not bounded, therefore easy to DoS the node by asking e.g. for many blocks and not consuming themm, this would consume all RAM with the queue. Limiting the queue would stop unrelated processing once the queue is full and give rise to yet another DoS vulnarebility. Ideally outgoing messages should be just dropped if a peer did not consume previous fast enough, after all this is not our problem.

HI, will it work in a few days? I asked this question a month ago. I want to find an spv client in rust that worked.

It works. Eg. used in https://github.com/defiads/defiads to connect to two p2p network bitcoin and defiad's own.

It works. Eg. used in https://github.com/defiads/defiads to connect to two p2p network bitcoin and defiad's own.

Thanks for the reply!


[Bug]: badges are returning error 504

Are you experiencing an issue with...
shields.io
🐞 Description
Some badgets are returning error 504.

I checked some other repositories and they have the same error.
🔗 Link to the badge
Some links:

https://img.shields.io/github/stars/maurodesouza/profile-readme-generator?
https://img.shields.io/github/commit-activity/m/maurodesouza/profile-readme-generator?
https://img.shields.io/github/last-commit/maurodesouza/profile-readme-generator?
https://img.shields.io/github/issues/maurodesouza/profile-readme-generator?

Some repositories with the problem:

Profile Readme Generator
Github Profile Readme Generator
Shields

You may need to refresh, but we believe things should be fine now


Add the gRPC-based transport spec.

What change does this introduce?
This change  relocates transport spec definitions from the github.com/dogmatiq/transportspec repository.
What issues does this relate to?
Fixes https://github.com/dogmatiq/interopspec/issues/1.
Why make this change?
This change is required to relocate the transport spec into a dedicated package within the current repository. This change is among others to arrange and concentrate all spec definitions for the application interoperability within a single repository.
Is there anything you are unsure about?
Possibly the directory structure for the envelope spec within the current repository might be reviewed.

Possibly the directory structure for the envelope spec within the current repository might be reviewed.

Did you have something particular in mind here?

No, not really, I copied this statement there from previous similar PRs just to make sure that we are ok to call the new directory transportspec.

Ahh ok. I had wondered if you were suggesting moving envelopespec.Envelope into the root, alongside Identity.

Ahh ok. I had wondered if you were suggesting moving envelopespec.Envelope into the root, alongside Identity

That would move envelope validation code to the root too, as far as I understand. There will be nothing left in envelopspec directory at  all.
Do we want to ditch envelopespec package alltogether?

Let's leave it as is for now. I think this PR is all good.


"TL;DR" a hidden element is visible.

Link to affected page:

https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/optimize-encoding-and-transfer#text-compression-with-gzip
https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/image-optimization
Page contains HTML hidden entities visible on the page.

Closing this issue as it seem to be not a issue anymore. Please re-open if you see the issue still.


Test provider upgrades for popular resources

Fixes https://github.com/pulumi/home/issues/3132
    provider_test.go:44: Resources covered: 34
    provider_test.go:44: - azure:appinsights/insights:Insights
    provider_test.go:44: - azure:appservice/appService:AppService
    provider_test.go:44: - azure:appservice/functionApp:FunctionApp
    provider_test.go:44: - azure:appservice/plan:Plan
    provider_test.go:44: - azure:core/resourceGroup:ResourceGroup
    provider_test.go:44: - azure:dns/aRecord:ARecord
    provider_test.go:44: - azure:dns/txtRecord:TxtRecord
    provider_test.go:44: - azure:dns/zone:Zone
    provider_test.go:44: - azure:keyvault/accessPolicy:AccessPolicy
    provider_test.go:44: - azure:keyvault/keyVault:KeyVault
    provider_test.go:44: - azure:keyvault/secret:Secret
    provider_test.go:44: - azure:management/lock:Lock
    provider_test.go:44: - azure:monitoring/actionGroup:ActionGroup
    provider_test.go:44: - azure:monitoring/metricAlert:MetricAlert
    provider_test.go:44: - azure:network/networkInterface:NetworkInterface
    provider_test.go:44: - azure:network/networkSecurityGroup:NetworkSecurityGroup
    provider_test.go:44: - azure:network/networkSecurityRule:NetworkSecurityRule
    provider_test.go:44: - azure:network/publicIp:PublicIp
    provider_test.go:44: - azure:network/route:Route
    provider_test.go:44: - azure:network/routeTable:RouteTable
    provider_test.go:44: - azure:network/subnet:Subnet
    provider_test.go:44: - azure:network/virtualNetwork:VirtualNetwork
    provider_test.go:44: - azure:servicebus/namespace:Namespace
    provider_test.go:44: - azure:servicebus/queue:Queue
    provider_test.go:44: - azure:servicebus/subscription:Subscription
    provider_test.go:44: - azure:servicebus/subscriptionRule:SubscriptionRule
    provider_test.go:44: - azure:servicebus/topic:Topic
    provider_test.go:44: - azure:sql/database:Database
    provider_test.go:44: - azure:sql/firewallRule:FirewallRule
    provider_test.go:44: - azure:sql/sqlServer:SqlServer
    provider_test.go:44: - azure:storage/account:Account
    provider_test.go:44: - azure:storage/blob:Blob
    provider_test.go:44: - azure:storage/container:Container
    provider_test.go:44: - random:index/randomString:RandomString

Remarkably getting Test_keyvault fail in CI but not locally. What could be different..

This test passed once I recorded the snapshot with the same credentials CI uses for testing.


[Dialog] Component vertically fixed on small devices

Got to grips with React and creating a template for future websites.  The only issue I have at the moment is when using the Dialog component on a small screen (iPhone 5 etc) and I can not get the Dialog to scroll vertically when the Dialog is bigger than the screen.
Any CSS ideas to help on scrolling the Dialog vertically on small touch screen would be great.
Regards
Ben

There are two things at work that prevent this. First, the positioning of the dialog is set to "fixed" by default. You can override this by adding style to the component:
<Dialog style={{ position: "absolute" }} />

The second problem comes with the overlay. Dialog calls Overlay#preventScrolling which sets the body's overflow to hidden. Currently there is no way to override this behavior. There should probably be a new prop for Dialog that controls this behavior.

i'm closing this issue for #7438


FastApi in Docker shutting down after some requests

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to FastAPI but to Pydantic.
[X] I already checked if it is not related to FastAPI but to Swagger UI.
[X] I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
# Dockerfile
ENTRYPOINT [ "poetry", "run", "uvicorn", "main:app" ]
CMD [ "--host", "<IP_ADDRESS>", "--app-dir", "/app/sales_api/", "--log-config", "/logging.conf", "--debug", "true" ]

# logs

[INFO][2022-09-1416:04:01,091] [Sales API] [sales _api] L36 : Creating the FastAPI application
1663171441105 [INFO][2022-09-1416:04:01,105] [Sales API] [sales_ api] L45 : Attaching API routes to the main application
1663171441106 [INFO][2022-09-1416:04:01,105] [Sales API] [uvicorn.error] L75 : Started server process [15]
1663171441106 (INFO][2022-09-1416:04:01,106] [Sales API] [uvicorn.error] L47 : Waiting for application startup.
1663171441106 (INFO][2022-09-1416:04:01,106] [Sales API] [uvicorn.error] L61 : Application startup complete.
1663171455907 [INFO1[2022-09-1416:04:15,9071 [Sales API1 [uvicorn.access]L474:<IP_ADDRESS>:27194-"GET/api/v1/healthcheckHTTP/1.1"307
1663171455910 [INF0][2022-09-1416:04:15,9091 [Sales API] (uvicorn.access]L474:<IP_ADDRESS>:42564-"GET/api/v1/healthcheckHTTP/1.1"307
1663171455910 [INF0][2022-09-1416:04:15,9091 [Sales API] [uvicorn.access] L474 : <IP_ADDRESS>:16698 - "GET/api/v1/healthcheck HTTP/1.1" 307
1663171479324 [INFO1[2022-09-1416:04:39.3241 [Sales API1 [uvicorn.access]L474:<IP_ADDRESS>:42612-"GET/docsHTTP/1.1"200
1663171479379 [INFO1(2022-09-1416:04:39,3781 [Sales API] (uvicorn.access]L474:<IP_ADDRESS>:42612-"GET/api/v1/openapi.jsonHTTP/1.1"200
1663171485937 [INFO][2022-09-1416:04:45,937] [Sales API] [uvicorn.access] L474 : <IP_ADDRESS>:5556 - "GET /api/v1/healthcheck HTTP/1.1" 307
1663171485939 [INFO][2022-09-1416:04:45,939] [Sales API] [uvicorn.access] L474 : <IP_ADDRESS>:34220 - "GET/api/v1/healthcheck HTTP/1.1" 307
1663171485940 [INFO1(2022-09-1416:04:45.9401 [Sales API1 [uvicorn.access1 L474 : <IP_ADDRESS>:10670 - "GET/api/v1/healthcheck HTTP/1.1" 307
1663171501825 [INFO1(2022-09-1416:05:01.8251 [Sales API1 [uvicorn.error] L253: Shuttina down
1663171501925 [INFO1(2022-09-1416:05:01,9251 [Sales API] [uvicorn.error] L66: Waiting for application shutdown.
1663171501925 (INFO1(2022-09-1416:05:01,9251 [Sales API] [uvicorn.error] L77 : Application shutdown complete.
1663171501926 [INFO1[2022-09-1416:05:01,9251 [Sales API] [uvicorn.error] L85 : Finished server process [14]
1663171502985 [INFO1[2022-09-1416:05:02,9851 [Sales API1 [uvicorn.error] L253: Shutting down
1663171503085 [INFO1(2022-09-14 16:05:03.0851 (Sales API] [uvicorn.error] L66 : Waiting for application shutdown.
1663171503086 [INFO1(2022-09-14 16:05:03.0851 Sales API1 [uvicorn.error] L77: Application shutdown complete.
1663171503086 [INFO1(2022-09-14 16:05:03.0861 [Sales API1 [uvicorn.error1 L85 : Finished server process [151]

# Package versions
Poetry == 1.2.0
FastAPI == 0.18.0
uvicorn == 0.18.3
gunicorn == 20.1.0

Description
App working correctly locally on macOS on :

Normal start.
Docker start.

When deploying under AWS app keep on shutting down on some requests as you can see it in the given logs.
Note that I got correct responses on all routes within the 10-15 first seconds and then a shutdown is forced.
Operating System
Linux
Operating System Details
Under AWS, will give some further details if required. (I do have another FastAPI within the same context and it is working properly)
FastAPI Version
0.80.0
Python Version
3.8.6
Additional Context
No response

It seems the AWS service is calling the healthcheck endpoint but is redirected every time (that is the 307). I would guess the AWS service is then stopping your application.

thanks for your reply @JarroVGIT ! I would try to remove extra "/"and keep you updated

Thanks for the help here @JarroVGIT ! 👏  🙇
Thanks for reporting back and closing the issue @kaieslamiri 👍

👌


bower version

Currently bower installs v0.2.1.
According to bower spec, the version specified in bower.json is ignored in favour of git tags. I expect that creating a new tag for 0.2.2 should resolve this.

+1 please add a git tag!

meanwhile I forked it and added the tag: bower install zeitos/Leaflet.label