scripts: west_commands: add the west patch command

In smaller projects and organizations, forking Zephyr is a tenable solution for development continuity, in the case that bug-fixes or enhancements need to be applied to Zephyr to unblock things.
However, in other organizations, in the absence of healthy patch management, technical debt management, and open-source policies, and active scrutiny on the subject of internal forks, things can get out of hand quickly.
In other cases, it may just be preferable to have a zero forking / upstream first policy.
Regardless of the reason, this change adds a west patch command that enables users to manage patches locally in their modules, under version control, with complete transparence.
The format of the YAML file includes fields for filename, checksum, author, email, dates, pr and issue links. There are fields indicating whether the patch is upstreamble or whether it has been merged upstream already. Workflows can be created to notify maintainers when a merged patch may be discarded after a version or a commit bump,
In Zephyr modules, the YAML file resides conventionally under zephyr/patches.yml, and patch files reside under zephyr/patches/. Since the command to apply patches is flexible, patches can even come in the form of scripts.
Sample usage applying patches (the -v argument for additional detail):
west -v patch apply
reading patch file zephyr/run-tests-with-rtt-console.patch
checking patch integrity... OK
patching zephyr... OK
reading patch file zephyr/twister-rtt-support.patch
checking patch integrity... OK
patching zephyr... OK
reading patch file zephyr/multiple_icntl.patch
checking patch integrity... OK
patching zephyr... OK
reading patch file zephyr/move-bss-to-end.patch
checking patch integrity... OK
patching zephyr... OK
4 patches applied successfully \o/

Clean previously applied patches, leaving each module in a pristine state.
west patch clean

Behaviour after manually corrupting a patch file and passing the -r option is that all patches are automatically rolled-back.
west -v patch apply -r
reading patch file zephyr/run-tests-with-rtt-console.patch
checking patch integrity... OK
patching zephyr... OK
reading patch file zephyr/twister-rtt-support.patch
checking patch integrity... OK
patching zephyr... OK
reading patch file zephyr/multiple_icntl.patch
checking patch integrity... OK
patching zephyr... OK
reading patch file zephyr/move-bss-to-end.patch
checking patch integrity... FAIL
ERROR: sha256 mismatch for zephyr/move-bss-to-end.patch:
expect: 00e42e5d89f68f8b07e355821cfcf492faa2f96b506bbe87a9b35a823fd719cb
actual: b9900e0c9472a0aaae975370b478bb26945c068497fa63ff409b21d677e5b89f
Cleaning zephyr
FATAL ERROR: failed to apply patch zephyr/move-bss-to-end.patch

Fixes https://github.com/zephyrproject-rtos/zephyr/issues/71137

need to write a couple of tests at some point

improved patch-schema.yml with sub-schema and field descriptions

fixes #71137, I guess

I have been using Golioth's west patch command quite successfully in the past
https://github.com/golioth/golioth-zephyr-sdk/blob/main/scripts/west_commands/patch.py
AFAIK it has a few downstream users already (, so might be worthwhile having a closer look / adopting if their approach makes sense. I quite like this doesn't require any custom yaml and "regular" patches can conveniently be dropped in a folder, but admittedly I haven't really looked in details at the implementation proposed in this PR :) Just thought I would mention of the existence of this alternative implementation that I know does the job :)
Note: Golioth SDK is Apache licensed.
cc @mniestroj @beriberikix @ubieda

I have been using Golioth's west patch command quite successfully in the past<EMAIL_ADDRESS>
Oh wow - I didn't even realize that existed.

AFAIK it has a few downstream users already (, so might be worthwhile having a closer look / adopting if their approach makes sense. I quite like this doesn't require any custom yaml and "regular" patches can conveniently be dropped in a folder, but admittedly I haven't really looked in details at the implementation proposed in this PR :) Just thought I would mention of the existence of this alternative implementation that I know does the job :) Note: Golioth SDK is Apache licensed. cc @mniestroj @beriberikix @ubieda

I'll take a look. Maybe we can have the best of both worlds?

I'll take a look. Maybe we can have the best of both worlds?

Deal! :)

I'll push again momentarily, just running some tests locally.

We do use this downstream and it's pretty useful. Thanks for bringing this to Zephyr!

abstracted clean-command and checkout-command to YAML, since some companies do not use git 😮
applied change requests

@mniestroj @beriberikix @ubieda - I  would welcome some input if you feel there is anything that can be improved here.
I realize that the YAML file may be a bit clunky, but it can offer some flexibility that might not be possible otherwise. E.g. running .patch.sh files (which are sometimes the most compact means of expressing a large change), or cleaning a repository that might not be a git repository.
Actually, I think it's great that Golioth felt the need for a similar solution. GMTA? Just judging by the number of DM's I've received about this topic, as well as the ticket that I didn't even know existed (thanks @kartben), it shows that indeed there are a lot of people / companies / organizations in the Zephyr community who feel there is a need for this kind of tool.

fixed the pattern for merge-commit ("^([0-9a-f]{11}|[0-9a-f]{40})$")

updated to only execute checkout-command or clean-command if they are true-ish

corrected comment for top-level schema in patch-schema.yml

added missing break

I still need to add some tests 😅 , lol
Might not get to that today because I have a few loose ends to tie up at the office still.

cc @mbolivar (can't add you as reviewer yet until you're a collaborator)

switched merge-commitback to only matching 40-digit SHA-1 hashes in patch-schema.yml


Added events and functions for setting and clearing room-to-world tra…

…nsform

See https://github.com/OSVR/OSVR-Unity/pull/107
This will be available in RenderManager v0.6.32


add filetype option

#6 , add an option to chose filetype to sync.
when use .js, get all .js files from scm(github/bitbucket) and change to .gs to compare with current gas project. also, push will change all .gs files to .js then push to scm.

          1 Warning

:warning:
manifest is not changed, forget to bump version?

  Generated by :no_entry_sign: Danger


Phase out older service versions

When all apps are migrated:

[ ] remove services from docker setup
[ ] delete code
[x] plan merging the diverging viz endpoints with the manager endpoints

manager service still used by uploader_node (pollinator cam access points)

manager service still used by uploader_node (pollinator cam access points)

no more


[stable] Fix opBinary[Right]CustomFloat op CustomFloat ambiguity

For dlang/dmd#8922

This is for stable so the DMD PR can build. Please review carefully.

Thanks! I don't have merge rights, could you please do it.

This needs to be in master in order to unblock https://github.com/dlang/dmd/pull/8922


CSS Selector Bridge not finding links while browser does

Describe the bug
I want to use the CSS Selector Bridge to generate a feed from this https://www.deschakelbarendrecht.nl/search page, however the bridge is not able to find the elements with the links, while finding it in the browser works fine. I checked that the articles are not loaded asynchronously, they are already present if you download the page through curl.
To Reproduce
Steps to reproduce the behavior:

Set up the bridge with these parameters: action=display&bridge=CssSelectorBridge&home_page=https://www.deschakelbarendrecht.nl/search&url_selector=a.block.relative&url_pattern=&content_selector=&content_cleanup=&title_cleanup=&limit=100&format=Html
go to the generated feed
The following error will be shown: No results for URL selector

Expected behaviour
A feed is generated with links to the articles
Additional context
I am running the tool in a docker container. The lack of debugging in the logs makes it very difficult to find the cause.

the url https://www.deschakelbarendrecht.nl/search actually doesnt contain the data you are looking for.
yes i checked.

Oh, that's a dumb mistake by me. I thought I did see the data when I requested it through curl. Strange. Thanks!

I think they require a cookie before they also send the contents, that's why it worked through curl before.


drivers/tone_alarm and tune_control small improvements/cleanup

drivers/tone_alarm: move to ModuleBase and purge CDev (/dev/tone_alarm0)
drivers/tone_alarm: only run on tune_control publication (or scheduled note) rather than continuously
drivers/tone_alarm: use HRT to schedule tone stop (prevents potential disruption)
msg/tune_control: add tune_id numbering
systemcmds/tune_control: add "error" special case tune_id
move all tune_control publication to new uORB::PublicationQueued<>
start tone_alarm immediately after board defaults are loaded to fix potential startup issues
for SITL (or other boards with no TONE output) print common messages (startup, error, etc)

Hi @dagar , I've checked through the list by enum value and alias and everything is working as expected.  I haven't uncovered anything that behaves improperly, and the functionality improves on the readability of the scripts and the functionality of code in general.  This looks like a great PR to get in from my testing.  Nice work!

One small difference as shown:
this PR with successful tune publishing/playing of the following:

Current master branch publishes info, which I don't think is a loss:


Problem with #5142 from v2.1.0 and esbuild

Environment
Knex version: 2.1.0
Database + version: MSSQL 2012
OS: WSL 2 (Ubuntu 20.04.4 LTS on Windows 10 x64)
Bug
I'm having trouble getting esbuild (v0.14.46) to work with the new dialect require() code introduced in #5142.
In Knex v2.0, when I created a database configuration and connection, I used
import { knex, Knex } from 'knex';
import mssqlClient from 'knex/lib/dialects/mssql';

const sqlconfig: Knex.MsSqlConnectionConfig = { ... }
const knexConfig: Knex.Config = {
    client: mssqlClient,
    connection: sqlconfig,
    ...
}
const db: Knex = knex(knexConfig);

Esbuild included the necessary dialect files for MSSQL and ignored the rest. Now, with v2.1.0, esbuild generates one error per non-MSSQL dialect during build, for example:
✘ [ERROR] Could not resolve "mysql"

    node_modules/.pnpm/knex@2.1.0_tedious@14.6.0/node_modules/knex/lib/dialects/mysql/index.js:23:19:
      23 │     return require('mysql');
         ╵                    ~~~~~~~

  You can mark the path "mysql" as external to exclude it from the bundle, which will remove this
  error. You can also surround this "require" call with a try/catch block to handle this failure at
  run-time instead of bundle-time.

Although it's the workaround specified in the error, I have not updated my esbuild config to list all the other dialects as external. I'm hoping there's a more straightforward resolution?

Hey there, you need to mark a bunch of stuff as external for knex (basically any driver you're not using). This is my external in the esbuild configs:
external: [       'better-sqlite3',       'mysql2',       'oracledb',       'sqlite3',       'tedious',       'mysql',       'pg-query-stream',       'assert',       'fs',       'os',       'https',       'http',       'stream',       'tty',       'zlib',       'timers',       'path',       'crypto',       'dns',       'module',       'process',       'http2',       'child_process',       //'pg-native',     ],

I am trying to follow the approach of listing the transient dependencies in the external property so they are excluded from the bundle. However I am getting an error that they cannot be found, and it's asking me to check my package.json file.
Is it absolutely necessary to install all these dependencies in your project, to be able to specify them in external so that you can exclude them from the build? Hopefully there is a more reasonable alternative.

Where does that external config go?

I had that problem too. Surprisingly, I'm not aware of any of the builders providing a good solution for that by default or even as a plugin. I always thought it was a fairly popular problem.
I wrote my own plugin for esbuild that solves this problem.
import { Plugin, ResolveResult } from "esbuild";

export function esbuildHandleMissingDependencies(): Plugin {
  const moduleIdsToFake = new Set<string>();

  return {
    name: "esbuild-handle-missing-dependencies",

    setup(build) {
      build.onResolve({ filter: /.*/ }, async (args) => {
        if (args.pluginData?.skip) {
          return undefined;
        }

        const resolvedId = await build.resolve(args.path, {
          importer: args.importer,
          kind: args.kind,
          namespace: args.namespace,
          resolveDir: args.resolveDir,
          pluginData: {
            ...args.pluginData,
            skip: true,
          },
        });

        if (resolvedId && resolvedId.errors.length === 0) {
          return undefined;
        }

        moduleIdsToFake.add(args.path);

        return {
          external: false,
          path: args.path,
          namespace: "virtual",
          sideEffects: false,
        } as ResolveResult;
      });

      build.onLoad({ filter: /.*/ }, (args) => {
        if (moduleIdsToFake.has(args.path)) {
          return {
            contents: "/* Blank module due to unresolved dependency */",
          };
        }

        return null;
      });
    },
  };
}

Same approach worked for me with rollup and seems to be relatively stable.

Having the same problem!

My issue was CDK Amazon Lambda Node.js Library was bundling using esbuild under the hood and causing the mentioned errors. Fixed using externalModules config of aws-cdk-lib/aws-lambda-nodejs lib.
https://stackoverflow.com/questions/77131329/when-synth-or-deploy-with-aws-cdk-getting-bundling-error-related-to-knex/77147118#77147118


bump opentracing lib to version 0.33.0

https://github.com/opentracing-contrib/java-spring-web/issues/121

i just noticed that https://github.com/opentracing-contrib/java-spring-web/pull/116 was already in progress.  Closing.


Restyle consequence category filter

Allows toggling all consequence categories individually.

Also adds keyboard shortcuts for toggling categories.
Closes #155.
Closes #161.

This required changing variantFilter in the Redux store from a string to an object containing a boolean flag for each consequence category. In turn, that required changing the filter settings component for every project.


[9.x] Add withoutEagerLoads() method to Builder

This PR just adds the withoutEagerLoads method to the Eloquent\Builder class.
// Before
$query->setEagerLoads([]);

// After
$query->withoutEagerLoads();

I'm not sure why the SQL Server 2019 test is failing.

I'm not sure why the SQL Server 2019 test is failing.

My PR same #41949


Support changing important modifier - convert ! to i-

Is your feature request related to a problem? Please describe.
I use windicss in wechat miniapp with https://github.com/pcdotfan/taro-plugin-tailwind,
but wechat miniapp's wxss can't support slash and backslash as a classname, some widicss feature can't use.
Describe the solution you'd like
Is there a plan to translate !text-green-300 to i-text-green-300, to avoid a backslash in classname?
before:
.\!text-green-300 {
  --tw-text-opacity: 1 !important;
  color: rgba(110, 231, 183, var(--tw-text-opacity)) !important;
}

after:
.i-text-green-300 {
  --tw-text-opacity: 1 !important;
  color: rgba(110, 231, 183, var(--tw-text-opacity)) !important;
}

@harlan-zw May I ask when this bug can be fixed?

小程序上确实很多属性不支持 难受

Likely windi v4 at this stage

Likely windi v4 at this stage

thanks,fighting


Allow generating a gated bundle to polyfill a specific set of browsers, not just one

Nice to see this project is still improving all the time!
I have a scenario where I want to use the Polyfill Service library to generate my own bundle at build time, but it doesn't seem to expose the methods I need.
My scenario:

I've got an inline <script> in my <head>, in which I inject a script element to load https://cdn.polyfill.io/v2/polyfill.min.js?features=default,fetch
When that polyfill.io script fails to load for any reason, I want to inject a different script as a fallback: /public/polyfill-fallback.js
This polyfill-fallback.js should be a static, pre-generated, gated polyfill bundle that makes the features default,fetch available in all the browsers I support.

To generate the fallback bundle, I can do something like this when building my app:
const polyfillLibrary = require("polyfill-service");

const polyfillBundle = polyfillLibrary
  .getPolyfillString({
    unknown: "polyfill",
    minify: true,
    features: {
      default: { flags: ["gated"] },
      fetch: { flags: ["gated"] }
    }
  })
  .then(function(polyfills) {
    // [...save to "/public/polyfill-fallback.js"]
  });
});

(I can see there is a new polyfill-library package, but it seems to be pretty much the same API, I think.)
Let's say I want my fallback to work for these browsers: last 2 chrome versions, ie 11, edge > 13. The problem is the bundle will include polyfills for all features, even ones that don't actually need polyfilling in any of those browsers.
It's not clear how I can include just the polyfills I actually need to cover my list of supported browsers. The library only lets me provide a UA string, and only one at a time. I guess I could manually convert my browserslist query into a few UA strings (one for IE10, one for Edge 13, etc) but then it's not clear how I would collate these to get a single bundle.
Would you consider a PR for adding the option to specify a list of specific browser versions instead of a UA string?

Currently the standard for browser ranges is https://github.com/browserslist/browserslist
Maybe this library could somehow integrate with it? @JakeChampion Is there any progress?


Popover error when assigning dynamic title and content

Using vue-tables and creating a custom template. In the template, this works:

            <popover effect="fade" placement="bottom" title="title" content="content">
                <button class="btn btn-default">{{ transaction.Action }}</button>
            </popover>

            {{ transaction.User }}

            {{ transaction.ModifiedDateTimeFormatted }}

However, when I change the popover to even this...
<popover effect="fade" placement="bottom" title="{{ transaction.Action }}" content="content">
       <button class="btn btn-default">{{ transaction.Action }}</button>
</popover>

I get this error:

[Vue warn]: Error when evaluating expression "transaction.Action": TypeError: Cannot read property 'Action' of undefined (found in component: )

And when I change it to content:

[Vue warn]: Attributes "transaction.action", "}}" are ignored on component  because the component is a fragment instance: http://vuejs.org/guide/components.html#Fragment-Instance

Please advise. Thank you.

Nevermind here. My brain wasn't working properly, since I was had been working inside a table template with only strings, so I was typing the wrong thing.
This works:
<popover effect="fade" placement="bottom" :title="transaction.Content" :content="transaction.Content">
    <button class="btn btn-default">{{ transaction.Action }}</button>
</popover>


event handlers fire for silenced checks with a configured source

It looks like silenced isn't being honored when a check is defined with a source.
Expected Behavior
Silenced checks don't fire the event handler when silenced.
Current Behavior
Silenced checks do fire the event handler.
Steps to Reproduce (for bugs)

Define a check
Silence it
let the check run
get paged because the event handler fired

Context
Gettin paged on PD for silenced checks
Your Environment
Uchiwa 0.22.1-1
Sensu 0.28.0-1.el6
Sorry I had to obfuscate some IPs and hostnames, the check name, else it's unchanged.
Check definition:
{   "checks": {     "vpn_eu_check_secondary": {       "command": "check-aws-vpc-vpn.rb --use-iam --aws-region eu-west-1 --vpn-connection-id XXXXXXXX --only-critical",       "subscribers": [         "central_checks_eu"       ],       "handlers": [         "pagerduty",         "default"       ],       "refresh": 1800,       "interval": 150,       "source": "amazon",       "occurrences": 2,       "description": "monitor the IPSEC vpn connections between corp and AWS EU",       "playbook": "https://confluence.intranet.local/browse/OPS-3977"     }   } }
It's silenced:
  {     "id": "client:amazon:vpn_eu_check_secondary",     "subscription": "client:amazon",     "check": "vpn_eu_check_secondary",     "reason": "VPN connection between corp and EU is not a pressing issue as it's not in use. Stashing without expiration. (andrthen)",     "creator": null,     "expire_on_resolve": false,     "timestamp":<PHONE_NUMBER>,     "expire": -1   }
From the logs:
{ 	"timestamp": "2017-04-10T18:26:41.700181+0000", 	"level": "info", 	"message": "processing event", 	"event": { 		"client": { 			"name": "amazon", 			"address": "unknown", 			"subscriptions": [], 			"keepalives": false, 			"version": "0.25.5" 		}, 		"check": { 			"command": "check-aws-vpc-vpn.rb --use-iam --aws-region eu-west-1 --vpn-connection-id XXXXXXXX --only-critical", 			"subscribers": ["central_checks_eu"], 			"handlers": ["pagerduty", "default"], 			"refresh": 1800, 			"interval": 150, 			"source": "amazon", 			"occurrences": 2, 			"description": "monitor the IPSEC vpn connections between corp and AWS EU", 			"playbook": "https://confluence.intranet.local/browse/OPS-3977", 			"name": "vpn_eu_check_secondary", 			"issued":<PHONE_NUMBER>, 			"executed":<PHONE_NUMBER>, 			"duration": 1.203, 			"output": "CheckAwsVpcVpnConnections CRITICAL: 'vpn-eu-secondary' shows both tunnels as DOWN - [ X.X.X.X => IPSEC IS UP | X.X.X.X => IPSEC IS DOWN ]\n", 			"status": 2, 			"type": "standard", 			"origin": "checks_eu.dub.example.com", 			"history": ["2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "0", "2", "2"], 			"total_state_change": 11 		}, 		"occurrences": 2, 		"occurrences_watermark": 2, 		"action": "create", 		"timestamp":<PHONE_NUMBER>, 		"id": "974e242c-eaa4-4136-be25-49c8c230754d", 		"last_state_change":<PHONE_NUMBER>, 		"last_ok":<PHONE_NUMBER>, 		"silenced": false, 		"silenced_by": [] 	} }

your client subscriptions are empty?
https://github.com/sensu/sensu/blob/master/lib/sensu/server/process.rb#L467
handler will respect silencing when subscriptions are set.
On Apr 11, 2017, at 6:17 PM, robertlabrie <notifications<EMAIL_ADDRESS>wrote:
It looks like silenced isn't being honored when a check is defined with a source.
Expected Behavior
Silenced checks don't fire the event handler when silenced.
Current Behavior
Silenced checks do fire the event handler.
Steps to Reproduce (for bugs)

Define a check
Silence it
let the check run
get paged because the event handler fired

Context
Gettin paged on PD for silenced checks
Your Environment
Uchiwa 0.22.1-1
Sensu 0.28.0-1.el6
Sorry I had to obfuscate some IPs and hostnames, the check name, else it's unchanged.
Check definition:
{ "checks": { "vpn_eu_check_secondary": { "command": "check-aws-vpc-vpn.rb --use-iam --aws-region eu-west-1 --vpn-connection-id XXXXXXXX --only-critical", "subscribers": [ "central_checks_eu" ], "handlers": [ "pagerduty", "default" ], "refresh": 1800, "interval": 150, "source": "amazon", "occurrences": 2, "description": "monitor the IPSEC vpn connections between corp and AWS EU", "playbook": "https://confluence.intranet.local/browse/OPS-3977" } } }
It's silenced:
{ "id": "client:amazon:vpn_eu_check_secondary", "subscription": "client:amazon", "check": "vpn_eu_check_secondary", "reason": "VPN connection between corp and EU is not a pressing issue as it's not in use. Stashing without expiration. (andrthen)", "creator": null, "expire_on_resolve": false, "timestamp":<PHONE_NUMBER>, "expire": -1 }
From the logs:
{ "timestamp": "2017-04-10T18:26:41.700181+0000", "level": "info", "message": "processing event", "event": { "client": { "name": "amazon", "address": "unknown", "subscriptions": [], "keepalives": false, "version": "0.25.5" }, "check": { "command": "check-aws-vpc-vpn.rb --use-iam --aws-region eu-west-1 --vpn-connection-id XXXXXXXX --only-critical", "subscribers": ["central_checks_eu"], "handlers": ["pagerduty", "default"], "refresh": 1800, "interval": 150, "source": "amazon", "occurrences": 2, "description": "monitor the IPSEC vpn connections between corp and AWS EU", "playbook": "https://confluence.intranet.local/browse/OPS-3977", "name": "vpn_eu_check_secondary", "issued":<PHONE_NUMBER>, "executed":<PHONE_NUMBER>, "duration": 1.203, "output": "CheckAwsVpcVpnConnections CRITICAL: 'vpn-eu-secondary' shows both tunnels as DOWN - [ X.X.X.X => IPSEC IS UP | X.X.X.X => IPSEC IS DOWN ]\n", "status": 2, "type": "standard", "origin": "checks_eu.dub.example.com", "history": ["2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "0", "2", "2"], "total_state_change": 11 }, "occurrences": 2, "occurrences_watermark": 2, "action": "create", "timestamp":<PHONE_NUMBER>, "id": "974e242c-eaa4-4136-be25-49c8c230754d", "last_state_change":<PHONE_NUMBER>, "last_ok":<PHONE_NUMBER>, "silenced": false, "silenced_by": [] } }
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/sensu/sensu/issues/1655, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATSKkHdOXowiV1hz21owt4SJT_PcHbFVks5ru3Z6gaJpZM4M6DGA.

Hi,
Thanks for your reply, but I'm not sure what you mean though. The check definition has "subscribers": [ "central_checks_eu" ]

client.json on the host running the check:
{   "client": {     "address": "<IP_ADDRESS>",     "subscriptions": [       "central_checks_eu",       "base"     ],     "name": "checks_eu.dub.example.com",     "keepalive": {       "playbook": "https://confluence.intranet.local/browse/OPS-3848",       "thresholds": {         "warning": 120,         "critical": 180       },       "handlers": [         "default",         "pagerduty"       ],       "refresh": 1800     },     "deregister": true,     "deregistration": {       "handler": "deregister_client"     },     "elastic_search": {       "monitoring": {         "username": "monitoring",         "password": "XXXXXXXXXXXXXXXXXXXXXXXXX"       }     },     "load": {       "shortterm": {         "warning": 3,         "critical": 4       }     }   } }

@robertlabrie I believe @cabecada is referring to the amazon proxy client, which is showing an empty set of subscriptions. This is the reason that your silencing entry has failed to match the event in question.
Proxy clients are automatically created when defined as the source of a check result or when created via the /clients API endpoint. It sounds like your amazon client was created by the former case in a version of Sensu prior to 0.26.2.
You can delete the amazon client via the Sensu API or Dashboard, and it should be recreated with the required subscription the next time your Sensu server processes a check result specifying amazon as the value of the source attribute. Alternately, you can update the amazon client's subscriptions by POSTing JSON to the /clients API endpoint.

@cwjohnston interesting .. should I upgrade the client on the machine which is running the check to >= 0.26.2 (it's presently 0.25.something)? Or is that logic handled purely in the API and deleting it will sort things out

@robertlabrie the client registry entry for the amazon proxy client, stored in Redis, is what's at issue here. This client registry entry is created and updated by the sensu-server or sensu-api process, depending on the scenario. Upgrading the sensu-client won't have any effect on the amazon client's registry entry.


Added ability to use retry as context manager

related to #12

You can use it as decorator, but you can not use @retry syntax only @retry()

@hellysmile  fixed, also added workaround for usage as decorator so now it does not break current api.


Guide to README how to install manually

As the code isn't available currently available in pip it would be great that the guide would be bit more detailed for non pip install name of the project.
Meaning following
git clone https://github.com/Eficode/robotframework-imagehorizonlibrary.git
cd robotframework-imagehorizonlibrary
pip install pillow
pip install .

Before ImageHorizon is added to PyPi, you need to install it manually:
Download the package: https://github.com/Eficode/robotframework-imagehorizonlibrary/archive/master.zip
Move to the desired installation folder and unpack downloaded ImageHorizon-package. Then run command:

python setup.py sdist

Move into extracted "robotframework-imagehorizonlibrary-master" folder and run command: pip install dist/ImageHorizonLibrary{version}.zip for example:

pip install dist/ImageHorizonLibrary-0.1-devel.zip

Take library to use at Robot Framework for example like this:

Library           ImageHorizonLibrary    ${CURDIR}${/}${REF_IMAGE_FOLDER}    ${SCREENSHOT_FOLDER}
...      keyword_on_failure=Screenshot.Take Screenshot

Changed the instructions until the package is added to PyPI.


[SDK] Font weights being for the primary font is being passed as 0 for all font-weight-0 through  font-weight-4

Problem/Concern
"fontWeights": {
"font-weight-0": {
"type": "fontWeights",
"value": "0"
},
"font-weight-1": {
"type": "fontWeights",
"value": "0"
},
"font-weight-2": {
"type": "fontWeights",
"value": "0"
},
"font-weight-3": {
"type": "fontWeights",
"value": "0"
},
"font-weight-4": {
"type": "fontWeights",
"value": "0"
},
"secondary-font-weight": {
"type": "fontWeights",
"value": "400"
},
Proposed Solution

I can confirm that these values are set to 0 in the sample system. When you create a new design system, the default values take effect, and can be seen correctly.

@lwnoble  - To complete this issue, would you simply like me to change the fontWeight values in the sample system or leave them as they are?

assuming so @brycecurtis - what is the correct way to update sample values? Should I simply change the themes.json?

@evangk6 Editing the database file has been problematic, so it's best to edit the sample design system using Theme Builder, save it, exit Theme Builder, then check in the resulting data/themes file.

I updated the sample systems.


Change license to CC-BY-SA 4.0

We might want to keep the MIT for the code but want to change the content to CC-BY-SA?
or we keep it simple to just MIT?

I think we don't need Copyleft in this case, as copying will be ok and not further restrictions needed.
But for Alpha we can also just leave it the way as it is → focus on giving external sources credits and mentioning the CC-BY-SA for content in the footer.

I've created another linked issue #64 but this one can be closed


rand_core 0.6

Note: This change is an API breaking change. So I incremented the major part of the package version number. ⚠

@sergey-shandar why is this an API breaking change, if the underlying rand_core API did not change?


Fix preload

Pull Request Test Coverage Report for Build<PHONE_NUMBER>2
Details

0 of 2 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 9.611%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/services/fetchDictionary.ts
0
2
0.0%

Totals

Change from base Build<PHONE_NUMBER>2:
0.02%

Covered Lines:
292

Relevant Lines:
2896

💛  - Coveralls


[bug]: dependencie error on Fedora Linux

Is there an existing issue for this?

[X] I have searched the existing issues

OS
Linux
GPU
cuda
VRAM
24GB
What happened?
after letting the installer run does it always throw the error in the screen-shot and after a bit of research did i notice that numba doesn't currently work on the python version that fedora currently has which is Python3.11.
Screenshots

Additional context
No response
Contact Details
my mastodon handle is<EMAIL_ADDRESS>

Yep, pytorch specifically doesn't have full support for python 3.11 right now, and there's probably a few more packages (like numba) that are similar. You should be able to install python 3.10 and use that, however (multiple versions of python can be installed on the same system).

Thanks for the quick reply and for the information but how do i specify the correct Version of python for invoke ai? It allways seems to default to the newest Version

sudo dnf install python310

Thanks for the quick reply and for the information but how do i specify the correct Version of python for invoke ai? It allways seems to default to the newest Version

I seem to run on the exact same problem. How did you specify the version to use?

you use asdf

It is still the same issue but it now thinks that pip3 has a update which is already installed on my system and reports using a older Version

Thanks for the quick reply and for the information but how do i specify the correct Version of python for invoke ai? It allways seems to default to the newest Version

I seem to run on the exact same problem. How did you specify the version to use?

I wasn't able to get it working it now spits out an error that pip3 has a update but it is one version older from which it want's to update even tho my system has the newest pip3 version


Remove parent-pom workaround; reset maven cache

Hi @jabrah , absolutely, will get rid of that stuff. Thanks


ENV Vars set in vscode-test.js do not persist in Debug Mode (but do in Run mode and vscode-test command line)

// .vscode-test.js
const { defineConfig } = require('@vscode/test-cli')

module.exports = defineConfig({
	files: 'test/test.ts',
	launchArgs: ['--profile=vscode-pester-test'],
	env: {
		TEST: 'kaboom'
	},
	mocha: {
		ui: 'bdd',
		preload: ['@swc-node/register'] // enable-source-maps option does not seem to work with VSCode executable
	}
})

With Debug:
 ✓ test
Test Setting undefined

With Run/vscode-test
 ✓ test
Test Setting kaboom

Workaround
Setting the values in extension-test-runner.DebugOptions env property seems to work

This seems to work for me now -- are you still hitting issues?

This seems to work for me now -- are you still hitting issues?

Hello,
I'm hitting an issue related to this and running tests in a remote setup.
I have the following in my .vscode-test.mjs:
dotenvExpand.expand(dotenv.config({ override: true }));

I am connected to a remote workspace over SSH.
My test consists of running a task through vscode.tasks.executeTask. The task has a ShellExecution, i.e. it runs a command in a shell which calls a tool on PATH.
When running the test in normal mode, it works. The environment is passed to the test, and to the underlying ShellExecution correctly.
When running in debug mode, I see something weird. The task fails to find the tool on PATH, i.e. the environment was not passed onto the terminal. However the node process has the correct environment because if I use the debug console to inspect process.env.PATH, it does include the right path.
Do you have an idea why the environment is not being passed to the ShellExecution ?
Thanks


Configuration error creates infinite loop

In case the configuration is incorrect, the current setup will enter an infinite loop (due to the workaround used to bypass #1).
Need to:

resolve #1
implement configuration checker on Configuration load and specific error message

One proposed solution for configuration checker is to use JSON Schema validation (using the python jsonschema module)


employedBy in AGENTS.owl does not list its domain/range explicitly

I was trying to inspect our OWL files programmatically and ran into some oddity where some OWL tooling things PERSON#employedBy has an empty domain and an empty range.
It turns out that the OWL file for it looks like:
https://github.com/ge-high-assurance/RACK/blob/42ceaff2d4c837e766d5481599a4ab94556255a2/RACK-Ontology/OwlModels/AGENTS.owl#L48-L51
with no rdfs:range or rdfs:domain. This appears to be one of the only object property to ever look like this.
SPARQLGraph seems to use:
https://github.com/ge-high-assurance/RACK/blob/42ceaff2d4c837e766d5481599a4ab94556255a2/RACK-Ontology/OwlModels/AGENTS.owl#L37-L44
to infer the range, but I'm not sure how common that is.

It seems like it's a mix of it being a type of actedOnBehalfOf and being at most one value that makes it generate such OWL.
Contrast with CONFIDENCE#performedBy, also a type of wasAssociatedWith but generates a domain/range.
Contrast with PROV-S#dataInsertedBy, also a at most one value but generates a domain/range.
(Also, does the OWL ever change for "at most one value"? Does not look like it does.)
Any idea why @cuddihyge ?

SADL-to-owl is outside my expertise.
I think we'll need to ask @AbhaMoitra  and @agabaldon look at how SADL is generating the owl.

This is indeed very strange. I'll post it on SADL GIT to get an answer / explanation and then I'll post here with what I learn.

Andy Crapo replied to my post in the SADL GIT, please visit https://github.com/SemanticApplicationDesignLanguage/sadl/discussions/772 and we can follow-up on this there. Again, thanks @Ptival for identifying this.

The discussion over there seems to suggest that we should change:
https://github.com/ge-high-assurance/RACK/blob/5ef4f73709136ea15bd2d5f80420d260bea2e319/RACK-Ontology/ontology/AGENTS.sadl#L35-L36
to instead read something more like the following:
 employedBy (note "Relates people to the company they were acting on behalf of.")
  describes PERSON with valus of type AGENT.
 employedBy describes PERSON with at most 1 value of type AGENT.

where:

the duplication of the declarations is important to ensure the domain/range gets acknowledged in OWL,
and the use of the digit 1 instead of the word one is necessary so that the cardinality constraint is actually present in OWL.

I am currently unable to run SADL on my machine (cf. https://github.com/SemanticApplicationDesignLanguage/sadl/issues/646 ), so if we validate those changes, someone should go ahead and update the SADL and OWL files if they can!


Deny to use stories with different actors in composition.

It does not make sense to nest management stories if you are the user.
Stories not marked with any Actor could be nested into story with any actor.
from stories import Story, Actor, I

class Architect(Actor):
    ...

class Reporter(Actor):
    ...

class TrackIssueProgress(Story, Architect):
    I.do

class FetchIssues(Story, Reporter):
    I.do

TrackIssueProgress(FetchIssues())  # error

Superseded by #723


Add Typescript declaration file and udpate README

This PR provides a Typescript declaration file (.d.ts) that allows the Typescript compiler to perform type checking when intercept-stdout is imported in a Typescript project. Without the declaration file, if someone uses Typescript's import statement, the following error is printed:
TSError: Unable to compile TypeScript:
tests/helpers.ts:18:28 - error TS7016:
Could not find a declaration file for module 'intercept-stdout'.
'node_modules/intercept-stdout/intercept-stdout.js' implicitly has an 'any' type.
  Try `npm install @types/intercept-stdout` if it exists or add a
  new declaration (.d.ts) file containing `declare module 'intercept-stdout';`

18 import intercept = require('intercept-stdout');

As there wasn't activity on this PR, I've created a PR against DefinitelyTyped:
https://github.com/DefinitelyTyped/DefinitelyTyped/pull/38373

Closing in favour of: DefinitelyTyped/DefinitelyTyped#38373


Unhandled rejection TypeError: Cannot read property 'pop' of undefined

When using the helper function: ifNeededCreateThenAddResultForCase() sometimes there is a pop error. It was mentioned in issue #5

This is the error

Unhandled rejection TypeError: Cannot read property 'pop' of undefined
at xxx\testrail-promise\lib\helpers.js:88:41
at tryCatcher (xxx\testrail-promise\node_modules\bluebird\js\main\util.js:26:23)
at Promise._settlePromiseFromHandler (xxx\testrail-promise\node_modules\bluebird\js\main\promise.js:510:31)
at Promise._settlePromiseAt (xxx\testrail-promise\node_modules\bluebird\js\main\promise.js:584:18)
at Promise._settlePromises (xxx\testrail-promise\node_modules\bluebird\js\main\promise.js:700:14)
at Async._drainQueue (xxx\testrail-promise\node_modules\bluebird\js\main\async.js:123:16)
at Async._drainQueues (xxx\testrail-promise\node_modules\bluebird\js\main\async.js:133:10)
at Immediate.Async.drainQueues as _onImmediate
at processImmediate as _immediateCallback

I finally found this problem. It was when it could not find the "plan_id". It now errors gracefully. Thank you! https://github.com/mvndaai/testrail-promise/commit/a295a7cd21cd693773e88974a523cf66d365ced2


ILPStrategy.clPosition

Liquidity providing strategies need common method for view concentrated position.
Position can be composed of few ranges.
For each range we need to know:

lowerTick, upperTick
liquidity
amount0, amount1

After meeting the guys from Angle (owners of Merkl protocol), it became clear that we could rely on them. All of our liquidity providing strategies work with Merkl, and all position data is in our API derived from Merkl API, so we will not deploy such on-chain logic to save gas.


[Enhancement] Lint errors should show line numbers

Detailed description
Line numbers should be shown (where possible; if the spec is a single line JSON string then there's not much to be done) in linting errors.
Context
Jumping to the error line would make fixing up errors much easier.
Possible implementation
N/A
Your environment
N/A

This should be fixed in #338, @djtarazona can you have a look at the open PRs?

This has been added in v0.11.0

Excellent, thanks!
Anyone care to check out my other PR? ;)
On Mon, 17 Jun 2019, 12:04 DJ Tarazona<EMAIL_ADDRESS>wrote:

Closed #346 https://github.com/wework/speccy/issues/346.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/wework/speccy/issues/346?email_source=notifications&email_token=AADDR7XTQIRQQQKPFFG6ES3P23WKRA5CNFSM4HUTKK52YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOSACO5CQ#event-2416242314,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADDR7RHPE2GWGP7O4QO5WDP23WKRANCNFSM4HUTKK5Q
.

@elyobo Yes, it is a larger PR so I didn't have time to review it this weekend but it's on my list. In the meantime, it has some conflicts if you don't mind resolving those?

Thanks, I'll be able to look in to the conflicts this evening AU time.
On Mon, 17 Jun 2019, 12:19 DJ Tarazona<EMAIL_ADDRESS>wrote:

@elyobo https://github.com/elyobo Yes, it is a larger PR so I didn't
have time to review it this weekend but it's on my list. In the meantime,
it has some conflicts if you don't mind resolving those?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/wework/speccy/issues/346?email_source=notifications&email_token=AADDR7X4HP5YIZPBN7PXV63P23YB3A5CNFSM4HUTKK52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXZ3SSI#issuecomment-502511945,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADDR7U7DK2AMXIRWE5O5S3P23YB3ANCNFSM4HUTKK5Q
.


ERROR Unresolved Reference: readLine

Result from CocInfo
# versions

vim version: VIM - Vi IMproved 8.2 8022434
node version: v14.17.0
coc.nvim version: 0.0.80-171ff2bc99
coc.nvim directory: /home/ameer-taweel/.vim/plugged/coc.nvim
term: dumb
platform: linux

## Log of coc.nvim

2021-07-08T13:04:59.209 INFO (pid:355415) [services] - registered service "diagnostic-languageserver"
2021-07-08T13:04:59.286 INFO (pid:355415) [coc-git] - Looking for git in: git
2021-07-08T13:04:59.307 INFO (pid:355415) [services] - registered service "highlight"
2021-07-08T13:04:59.363 INFO (pid:355415) [language-client-index] - highlight started with 355452
2021-07-08T13:04:59.394 INFO (pid:355415) [language-client-index] - Language server "kotlin" started with 355463
2021-07-08T13:05:00.549 INFO (pid:355415) [services] - registered service "stylelintplus"
2021-07-08T13:05:00.570 INFO (pid:355415) [language-client-index] - cSpell started with 355529
2021-07-08T13:05:00.577 INFO (pid:355415) [plugin] - coc.nvim 0.0.80-171ff2bc99 initialized with node: v14.17.0 after 1470ms
2021-07-08T13:05:01.717 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:01.819 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:01.872 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:01.976 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:02.097 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:02.203 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:02.914 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:03.018 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:03.074 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:03.177 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:03.228 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:03.332 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:03.363 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:03.468 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:03.497 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:03.605 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:03.630 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:03.735 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:03.864 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:03.971 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:04.017 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:04.124 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:04.170 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:04.275 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:04.325 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:04.430 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:04.464 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:04.569 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:04.606 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:04.712 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:04.763 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:04.869 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:04.899 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:05.005 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:05.047 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:05.151 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:05.187 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:05.291 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:05.331 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:05.435 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:05.481 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:05.584 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:05.612 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:05.717 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:05.809 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:05.913 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:06.055 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:06.160 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:06.555 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:06.588 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:06.618 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:06.648 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:06.754 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:08.472 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:08.575 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:09.670 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:09.810 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:09.924 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:10.273 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:10.376 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:10.533 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:10.636 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:10.699 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:10.802 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:10.845 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:10.948 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:11.239 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:11.949 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:12.164 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:12.586 INFO (pid:355415) [completion-complete] - Results from: snippets,coc-browser,around
2021-07-08T13:05:13.866 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:14.243 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:14.429 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:14.623 INFO (pid:355415) [completion-complete] - Results from: coc-browser,around,kotlin
2021-07-08T13:05:15.791 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:16.253 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:16.254 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:16.303 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:16.407 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:16.439 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:16.543 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:16.594 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:16.701 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:16.787 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:16.898 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:16.937 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:17.049 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:17.069 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:17.179 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:17.602 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:17.709 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:18.103 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:18.146 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:18.178 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:18.211 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:18.247 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:18.279 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:18.312 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:18.423 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:19.384 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:19.499 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:19.520 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:19.610 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:19.732 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:31.308 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:31.507 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:07.301 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:07.411 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:07.462 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:07.565 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:07.646 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:07.757 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:08.147 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.172 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.209 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.254 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.288 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.322 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.356 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.374 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.406 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.438 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.473 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.505 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.541 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.559 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.588 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.622 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.655 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.768 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:10.505 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:10.612 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:10.655 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:10.767 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:10.786 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:10.911 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:10.920 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:11.047 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:11.088 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:11.200 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:11.239 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:11.350 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:11.369 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:11.479 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:11.498 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:11.609 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:11.842 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:11.954 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:12.005 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:12.118 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:12.897 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:13.003 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:13.022 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:13.147 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:13.189 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:13.312 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:13.322 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:13.434 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:13.476 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:13.585 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:13.807 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:13.918 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:14.023 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:14.135 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:08:28.376 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:08:28.482 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:08:28.845 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:08:28.950 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:08:29.026 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:08:29.137 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:08:29.580 INFO (pid:355415) [attach] - receive notification: openList [ 'diagnostics' ]
2021-07-08T13:08:29.617 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 2 ]
2021-07-08T13:08:29.623 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:10:08.699 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 2 ]
2021-07-08T13:10:08.700 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:10:10.936 INFO (pid:355415) [attach] - receive notification: showInfo []

Description
I want to solve competitive programming tasks with Kotlin. I don't want to create multi-file projects, just one file containing all the code. I have a competitive-programming-task-Kotlin template that I used with Intellij, and it used to work. When I open this template in Vim, I get the error: "ERROR Unresolved Reference: readLine." I will provide the code for the template in the "Additional Context" section below.
Extension version
v0.0.7
Additional context
Template Code
fun main(){

}

// Input
private fun readInt() = readLine()!!.toInt()
private fun readInts() = readLine()!!.split(" ").map { it.toInt() }
private fun readLong() = readLine()!!.toLong()
private fun readLongs() = readLine()!!.split(" ").map { it.toLong() }
private fun readFloat() = readLine()!!.toFloat()
private fun readDouble() = readLine()!!.toDouble()
private fun readString() = readLine()!!
private fun readStrings() = readLine()!!.split(" ")

Screenshot

Also, if I compile the file with kotlinc it compiles with no problems...

I think the problem is that it does not import the standard library automatically.


Add CompressedStreamMessage

Currently Armeria has HTTP compression in the server and decompression in the client. However, the opposite is necessary when a user wants to build Microservice using Armeria.

the opposite is necessary

The opposite could be possible by having EncodingClient and DecodingService. So we don't need CompressedStreamMessage.


Update dependencies to latest k8s master branch

update go.mod to include replace directives for all staging repositories, then ran go mod tidy and go mod vendor after that

/assign @upodroid @tzneal


Added collapsible footer with GitHub and LinkedIn links

Features

Collapsible footer with the links to GitHub and LinkedIn of @mnosov622
Color theme according to NavBar

Screenshots

LGTM! Thank you for contribution :)

LGTM! Thank you for contribution :)

Thanks for accepting my contribution. Btw since this repository has the hacktoberfest label, would you be adding the hacktoberfest-accepted label to this PR so that it counts towards my PRs for hacktoberfest.
Regards.


Recommend making LimitException Recommended instead of Mandatory

Power limit exception (LimitException) is not always implemented as a capability for power capping.  Its probably not universally implemented enough to call it mandatory.  I would recommend we make this property recommended instead of mandatory.

Details from the schema file (Power_v1.xml)

After further discussion and noting the limited scope of the requirement, we’re recommending to close this issue with no fix needed.


Add bash... completions to rtx tap

Some cli tools auto-install completion files and add a post-install instructions on how to add said completion files to user configs
Would be nice to have the same with rtx to get the autoupdates

Related to this, we should add postinstall help telling people to add the activate hook to their rc

this is now done automatically: https://github.com/jdxcode/homebrew-tap/blob/main/rtx.rb#L32


Improve debug documentation

So, I've been trying to get this to work for an hour.
Only to discover that it takes 8 seconds after the app displays to actually work.. and this is the blazor webassembly template that i'm using.. on a serious desktop machine..
Hope to spare others the same fate..

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

ID: ec2f61c7-9f51-6735-e328-3c7b495d70c3
Version Independent ID: 4d06e565-282d-6387-aa90-cb2c2986d35a
Content: Debug ASP.NET Core Blazor WebAssembly
Content Source: aspnetcore/blazor/debug.md
Product: aspnet-core
Technology: aspnetcore-blazor
GitHub Login: @guardrex
Microsoft Alias: riande

Thanks @floreseken ... I'll add a NOTE right now to cover the delay.
You might want to mention it to engineering on the product unit repo. They might want to investigate it further.
If you open an issue for them, please add a cc: @guardrex to your opening comment so that I can follow the discussion.

Actually, I think that's best. Eight seconds seems like a loooong time and doesn't match my testing here. It's best if we hear back from them before taking action on the topic. I'll mark this ON HOLD until you get feedback from them.
Please either mention me or this issue on your engineering issue. I'd like to cross-link this issue to their issue.

See it here in action: https://1drv.ms/v/s!Ak-9ieqvyXNQ1t5R4-gPDwJ8gmRrZQ
Will make an item with the engineering team

https://github.com/dotnet/aspnetcore/issues/22028

@floreseken ... Looks like after moving over to the mono repo that they're classifying it as an engineering/product issue. They'll hopefully resolve it. I'll keep an :ear: open for more feedback, but it isn't really actionable to just say 'it might take several seconds to start' when I have no idea what the scope of the problem is (i.e., what causes it and how many users are affected). I'll keep and :ear: open. If a lot of devs report the problem, I'll add a NOTE to the topic.

fair enough


Add Worker Processes section

FYI: In my experience, Misskey is basically not bottlenecked by the CPU usage of Node.js, it' s mainly the database query load. So, in most cases, clustering is not necessary, and will only waste memory, so we set clusterLimit to 1 by default. If you are facing a case where you think clustering is useful, please let us know the details👀

Some people I've talked to reported that it's helped alleviate their performance problems and so far it's helped a bit for me. That being said, it probably would make better sense to tune postgres instead I suppose.

Yeah so it turns out increasing the max connections in postgres seems to be the better solution after all.


nested frames

Hi
I have a case that might put several child frames into a big frame and then expect to see the parent frameid when read frameID of the child frame elements.
Now I can make it happen when force to override child frame id from null to parent frame id. But it is little bit hacking. Is it any possible to make it happen to automatically apply parent frame id to child frame id?

If I understand correctly, you're asking about nested frames. This isn't yet supported, so just setting frameId on nested frames will not work correctly.
We will likely add support for this, but will require more work.

I support the addition of this feature, which would be particularly useful for presentations: you can zoom in on an element, zoom out to get an overall view of the presentation, and so on.
As it stands, the system isn't consistent, because slides can display such behavior, but when exporting to pdf or powerpoint, the same element can't be present on two slides at once (behavior directly linked to https://github.com/excalidraw/excalidraw/issues/7774 in my opinion).

I would also love this.
My use case is Frames-as-groups: Frames allow a much more flexible method of "grouping", since:

It's much easier Adding/removing elements from the logical "group"
Clicking on an element will not select the group first, it lets you directly move elements much easier

Thus I use frames as a group, but would also like to put multiple "grouped" elements together in what is more of a conventional frame


Detect and disable when running under Ember 1.13.

You can use ember-cli-version-checker to detect Ember version in node-land, and do something different.
Something similar to https://github.com/jmurphyau/ember-get-helper/pull/9.

released in 1.0.1


As a user (or should this be set by server?) I should be able to choose the difficulty of the game. On a lower level difficulty, the data structures problems will have less nodes and maybe easier requires manipulations. By contrast, a higher level difficulty will have bigger data structures with more variability.

Users should be able to choose the difficulty level of the game. The difficulty level of the game will determine the depth of the data structure (DS). The deeper the DS is, the harder and longer it will become to complete that game. Also, the golden node should be placed carefully to ensure that it cannot be retrieved easily for a harder game.

@MaksimEkin @SoloNick can I change the issue name and description a bit so that the "on a lower level...." is part of the description rather than the issue name?


Different event types / trigger types

As far as I can see, we have no information in the event container, what kind of event we have.
The next eventio version will also be able to read calibration events (e.g. pedestals).
Where should this information go and how?
First idea would by a field event_type for the DataContainer.
Should that be a number or a string?

I would prefer the most explicit, but I assume people wanna optimize for size here. So I'd say an int key, for a event_type_int_2_string_map dict, which must be available as "meta" information.
:-D And no code in the wild must ever use the ints ... every code must use the strings, to make sure the code is robust against mapping changes. (of course we must avoid changes in the mapping).
Can we story python enums in containers? that might solve the issue entirely...

event_type_int_2_string_map
that's an enum

Sorry Max .. I wrote "event_type_int_2_string_map dict"   .. so that was .. for me a dict, since I wrote "dict".
By enum I mean this: https://docs.python.org/3/library/enum.html

I'll just try it out.

This came up today again.
For reference, simtel files can contain CalibrationEvents that can already be read by pyeventio and can be inserted into the event stream of the SimTelEventSource by setting skip_calibration_events=False.
Simtel has 4 or more types of calibration events:

@param type  Dark (0), pedestal (1), in-lid LED (2) or laser/LED (3+) data.

From sim_conv2hess.c line 2638.
How do we want to deal with event / trigger types here for now?

Hi,
I would suggest to copy them in the R0CameraContainer::trigger_type (as in data)

As this information is independent of data level (true for telescope event as a whole), r0 is not the right place I think. What happens when this information is needed at the DL1 level with r0 discarded?

I guess the trigger type (R0/R1) is kept  somewhere in the DL1 format (e.g. in the event/telescope/parameters table)

A common set is also in the process of being defined for CTA R1 data.  Once that's there, we can map the simtel numbers to CTA ones (in R1).   Right now, it's not in the DL1 data, but I can add it. I guess to the trigger table, though that is at the event level, not camera, but I guess you cannot have an event with mixed trigger types.  (I'll note it in #1066 ).

In real data, we could consider writing them to different files anyhow.  Is it really useful to have non-stereo triggered events in the DL1 files? At that point, pedestals, etc, have already been computed and subtracted.

As this information is independent of data level (true for telescope event as a whole), r0 is not the right place I think. What happens when this information is needed at the DL1 level with r0 discarded?

It should be part of the IndexContainer, like event_id

THis is fixed since some time now.


Code Coverage

Desired Behavior
==============================
Since the shared libraries & jenkinsfile are groovy scripts which any plugin cannot read directly., so is there any straight forward way to get the code coverage of vars/ folder & jenkinsfiles together without any toil?
Benefits
==============================
Please list the benefits of updating the project to have the new behavior, e.g.

Keeping track of code coverage & % increase, decrease
easy for the managers & higher level staff to check the progress & test suite quality.

There isn't anything I know of that works out-of-the-box. It should be possible in theory, but I haven't done any research into it yet.


Update to IBM icons and template

Please replace the IBM template named ibm_vpc_architecture.xml (under Cloud in draw.io) and the IBM icon set named VPC.xml (under Shapes/Networking/IBM in draw.io) with the files ibm_vpc_architecture.xml and VPC.xml in the attached ibmvpc4drawio.zip.  Thanks!
ibmvpc4drawio.zip

Will be in next release.


Cleanup of NXP1060 network driver

Description
Follow up PR for comments on: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/pull/774
Test Steps

Checklist:

[x] I have tested my changes. No regression in existing tests.
[x] I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/bot run uncrustify


feat: DeepOmit

A recursive version of Omit. Such type would be useful.

@all-contributors please add @yxliang01 for code, idea, docs

What would it do?

A recursive version of Omit. Such type would be useful.

How would you specify nested keys? I am not sure if this is possible currently.

How would you specify nested keys? I am not sure if this is possible currently.

After some tinkering, I've got this: you specify nested keys via a nested object:

keys to be fully omitted are set to true
keys to be "partially omitted" are specified in a nested object
keys to be left untouched are not specified

type DeepOmitSpec<T> = {
  [K in keyof T]?: T[K] extends object ? (true | DeepOmitSpec<T[K]>) : true
};

type TrueKeys<T> = ({ [K in keyof T]: T[K] extends true ? K : never })[keyof T];

export type DeepOmit<T, Spec extends DeepOmitSpec<T>> = {
  [K in Exclude<keyof T, TrueKeys<Spec>>]:
    Spec[K] extends DeepOmitSpec<T[K]>
      ? DeepOmit<T[K], Spec[K]>
      : T[K]
};

interface SimpleType1 {
  a: number;
  b: string;
}

interface ComplexType1 {
  c: boolean;
  d: SimpleType1;
  e: SimpleType1;
}

interface ComplexType2 {
  f: string;
  g: SimpleType1;
  h: ComplexType1;
}

type Test0 = DeepOmit<SimpleType1, {}>;
type Test0OK = Assert<IsExact<Test0, SimpleType1>>;

type Test1 = DeepOmit<SimpleType1, { a: true }>;
type Test1OK = Assert<IsExact<Test1, { b: string }>>;

type Test2 = DeepOmit<ComplexType1, { e: true; d: { a: true } }>;
type Test2OK = Assert<IsExact<Test2, { c: boolean; d: { b: string }}>>;

type Test3 = DeepOmit<ComplexType2, {
  f: true,
  g: { a: true };
  h: {
    e: true;
    d: { b: true };
  };
}>
type Test3OK = Assert<IsExact<Test3, {
  g: { b: string };
  h: {
    c: boolean;
    d: { a: number }
  }
}>>;

The questions:

what are the use cases for this type? are they common enough to add it?
is my proposed way to specify omitted keys clean enough to add such a type?

If both are true, I can prepare a PR for that, but I'm unsure about both answers myself. Writing this was a nice brain exercise though :)

If the use cases are not that common, you probably can (partially) solve the problem with a combination of Omit & Merge -- this should produce the same results, though you could accidentally totally change the type of the "partially omitted" key.
type Test2 = Merge<Omit<ComplexType1, 'e'>, {
  d: Omit<SimpleType1, 'a'>;
}>

I really like this implementation! I thought about omitting single keys but your implementation totally makes sense.

The questions:
what are the use cases for this type? are they common enough to add it?
is my proposed way to specify omitted keys clean enough to add such a type?

I think that one can always find some use case for such types, probably @yxliang01 can put some more light about initial implementation.
It's awesome 🎉

I would love to see a PR adding this.

I have not read the discussion here, but @quezak, we just came up with the same solution!

Closed by #68 avaiable as<EMAIL_ADDRESS>(next branch)


Question: How to get full keypath during routine function?

I came across the need to get the full keypath during the a routine call but I don't seem to know where to catch the full keypath for  rv-each, I only get the partial path, example:
For the data:
items: [
    { todo: "get milk" },
    { todo: "buy meat" },
    { todo: "exercise" },
],

If I change the "get milk" and print the arguments of the binding in this line, I get:

As you can see it is only item.todo and not items[0].todo or items[1].todo or whatever the index is. How can I get the full path?

I created a demo with a use case for how rv-each is handled and this works as intended, but to access the full path would be along the lines of items.0.todo, items.1.todo...etc. however there is no support at the moment for dynamic keypath within the loop if this is what you're asking for.


lib/github: use serialization

Just to see what I broke...

+1 but the review was hard and my eyes are now dizzy

You may encounter a problem deserializing generic types. These must be explicitly declared in deserialize_class. In part because we can't statically know what parameterized types will be sent by a remote server. You can find an example at https://github.com/nitlang/nit/blob/9590a6f674a5ad79/contrib/benitlux/src/client/client.nit#L30
Parameterized types must probably be identified in class_name_heuristic too, otherwise the deserialized arrays will be of the type Array[nullable Object] (the the json::static equivalent) and it will raise a bunch of errors.

This is cool, I hope that my long comments may hep you save some time.
Would it help to have the attribute's name in class_name_heuristic? It would not always be reliable because some objects don't have an attribute name, but maybe it would help, especially with arrays.

Reroll with most of the comments from @privat and @xymus
@privat there stills one comment (the first one) that I don't understand.

Reroll for tests


feat(controllers): allow to ignore images with pullPolicy: Always

:tada: This PR is included in version 1.7.0-beta.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.7.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Files search functionality not working - Windows 11

Description
Hi there, whenever I try to search for anything in the files program, it does not work. Neither for external HDDs or internal HDDs.
Is this bug curretnly being worked on?
Thank you,
C
Steps To Reproduce
Open files
Try to search for anything
Does not work
Requirements
Please fix the bug so that I can search for contents within my PC
Files Version
<IP_ADDRESS>
Windows Version
10.0.22631.2792
Log File
debug.log

Does it work if you enable the option to search for unindexed locations?

I just found the option. It does not do anything even if I click that.
I am pressing "Enter" to search. Should I be doing that? And will the results show in the main window like windows file explorer?
It also will not search within a speicfic folder, it only searches when I press enter in the root folder.
Thoughts?

Did you give it time to load the results. It shows a loading icon in the tab when searching.
Does the main view say no results found?

Correct. So basically I press enter, and then the text I entered in the search field disappears, and it says "no results found". I then tested this in the default windows explorer and it immediately finds the file.
Here are some problems I'm seeing:
Files only searches main folders and not folders within the root folder that I have specifically clicked for it to search.
Whenever I click enter or click the magnifying glass to search, the text disappears and nothing happens
I have now only gotten it to search successfully once, but it looks like a bugged window where it shows results (from the whole root folder) and then has a weird "no results found" text on top of the results. Sadly I thought I captured a screenshot, but I did not.

Is it built to search whichever folder you are viewing in specifically? Or does it always search the root?
And is it normal for it to take a long time for it to search?
Thank you

Is it built to search whichever folder you are viewing in specifically

There is a switch to only search the current folder, but by default it's designed to search the current directory and sub folders.

And is it normal for it to take a long time for it to search?

It shouldn't take more than a few seconds if the items are indexed, otherwise it can take a couple minutes or longer to search unindexed items.

If you're interested, you can try enabling the enhanced indexing option in Windows Settings.

Thank you so much for this information!
Where is the switch to search only the current folder? I cannot find it. Thank you!

Is it built to search whichever folder you are viewing in specifically

There is a switch to only search the current folder, but by default it's designed to search the current directory and sub folders.

And is it normal for it to take a long time for it to search?

It shouldn't take more than a few seconds if the items are indexed, otherwise it can take a couple minutes or longer to search unindexed items.

Thank you so much for this information!
Where is the switch to search only the current folder? I cannot find it. Thank you!

You can add in:desktop (replace "desktop with the current directory) to the search query.

Sorry, I tried to figure out how to do this, and I cannot figure it out.
Could you be a bit more descriptive? Sorry! I'm not as technical as you :). Do you mean that I replace "desktop" with the current directory? Could you send me a screenshot so I understand where to do this and how? I would super appreciate it!!
Thank you!

Sorry, I just figured out what is happening. I thought Files performed exactly like Windows explorer, but it does not.
If I understand this correctly: When you click on a folder, you are still on that parent folder, in order to search the subfolder, you actually have to click on an item or folder inside that subfolder in order to be "looking in" that folder to search. Correct? Because now search is functioning like it is supposed to.

Could you be a bit more descriptive? Sorry! I'm not as technical as you :). Do you mean that I replace "desktop" with the current directory? Could you send me a screenshot so I understand where to do this and how? I would super appreciate it!!

If you're in the desktop folder and only want to return results for the current folder, you can type in:desktop to hide results from sub folders


[New game]:  Want to add sky jumper game

🎮 Game Request
Game logic and basic description
I want to add the sky jumper game
Jump between moving platforms to stay in the game as long as possible. The goal is to survive and achieve the highest jump.
Point down the features
Game points
in this game yor have to survive and do the highest jump as possible
Select program in which you are contributing
GSSoC24
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

/assign

Hey @Ayushmaanagarwal1211 !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹

Hey @Ayushmaanagarwal1211 ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇


Failed to find bogomips warning

Hi,
Tensorflow fails to find the bogomips because the word "bogomips" is in uper-case in my OS:
"""
processor       : 1
BogoMIPS        : 100.00
"""
tensorflow/core/platform/profile_utils/cpu_utils.cc:106] Failed to find bogomips or clock in /proc/cpuinfo; cannot determine CPU frequency

@LeeJH
Please provide details about what platform you are using (operating system, architecture). Also include your TensorFlow version. Also, did you compile from source or install a binary?
Make sure you also include the exact command if possible to produce the output included in your test case. If you are unclear what to include see the issue template displayed in the Github new issue template.
We ask for this in the issue submission template, because it is really difficult to help without that information. Thanks!

I am running tensorflow on CentOS Linux release 7.6.1810 (AltArch) with aarch64 architecture.  I compile the tensorflow(version 2.2.0-rc2 ) from source code using command: bazel build --config=v2 --config=monolithic --config noaws --linkopt="-Wl,-rpath=/usr/local/lib64" //tensorflow/tools/pip_package:build_pip_package

@ymodak Why is this assigned to me?

I am seeing a similar issue with Armbian 20.11.6 Focal (20.04.1 LTS) on an ODROID C4 aarch64 and TensorFlow v2.3.2.
This is the command I am using referenced from:
https://community.arm.com/developer/ip-products/processors/b/ml-ip-blog/posts/building-bazel-and-tensorflow-2-x-on-aarch64

date; bazel build //tensorflow/tools/pip_package:build_pip_package --config noaws --config=monolithic --local_cpu_resources=4 --verbose_failures; date

python3 -c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))"
2021-01-22 07:30:42.449646: W tensorflow/core/platform/profile_utils/cpu_utils.cc:108] Failed to find bogomips or clock in /proc/cpuinfo; cannot determine CPU frequency
2021-01-22 07:30:42.450324: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x5cd92b0 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2021-01-22 07:30:42.450427: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
tf.Tensor(-733.9271, shape=(), dtype=float32
The bogomips are listed as such in cpuinfo:
$ cat /proc/cpuinfo |grep -i mips

BogoMIPS	: 48.00
BogoMIPS	: 48.00
BogoMIPS	: 48.00
BogoMIPS	: 48.00

I am seeing a similar issue with Armbian 20.11.6 Focal (20.04.1 LTS) on an ODROID C4 aarch64 and TensorFlow v2.3.2.
This is the command I am using referenced from:
https://community.arm.com/developer/ip-products/processors/b/ml-ip-blog/posts/building-bazel-and-tensorflow-2-x-on-aarch64

date; bazel build //tensorflow/tools/pip_package:build_pip_package --config noaws --config=monolithic --local_cpu_resources=4 --verbose_failures; date

python3 -c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))"
2021-01-22 07:30:42.449646: W tensorflow/core/platform/profile_utils/cpu_utils.cc:108] Failed to find bogomips or clock in /proc/cpuinfo; cannot determine CPU frequency
2021-01-22 07:30:42.450324: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x5cd92b0 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2021-01-22 07:30:42.450427: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
tf.Tensor(-733.9271, shape=(), dtype=float32
The bogomips are listed as such in cpuinfo:
$ cat /proc/cpuinfo |grep -i mips

BogoMIPS	: 48.00
BogoMIPS	: 48.00
BogoMIPS	: 48.00
BogoMIPS	: 48.00

Hi, I'm seeing the same error with tfjs-node v3.8.0
Running
RPi 4
Linux raspberrypi 5.10.17-v7l+ #1421 SMP Thu May 27 14:00:13 BST 2021 armv7l GNU/Linux
ran npm rebuild @tensorflow/tfjs-node --build-from-source
tfnode.node.loadSavedModel(modelPath)
throws these errors
2021-07-17 12:56:29.018525: I tensorflow/cc/saved_model/reader.cc:38] Reading SavedModel from: ./model
2021-07-17 12:56:30.135299: I tensorflow/cc/saved_model/reader.cc:90] Reading meta graph with tags { serve }
2021-07-17 12:56:30.135460: I tensorflow/cc/saved_model/reader.cc:132] Reading SavedModel debug info (if present) from: ./model
2021-07-17 12:56:34.195171: I tensorflow/cc/saved_model/loader.cc:206] Restoring SavedModel bundle.
2021-07-17 12:56:34.802232: W tensorflow/core/platform/profile_utils/cpu_utils.cc:118] Failed to find bogomips or clock in /proc/cpuinfo; cannot determine CPU frequency
2021-07-17 12:56:40.596275: W tensorflow/core/framework/cpu_allocator_impl.cc:80] Allocation of 153600 exceeds 10% of free system memory.
2021-07-17 12:56:40.598185: W tensorflow/core/framework/cpu_allocator_impl.cc:80] Allocation of 153600 exceeds 10% of free system memory.
2021-07-17 12:56:40.599316: W tensorflow/core/framework/cpu_allocator_impl.cc:80] Allocation of 153600 exceeds 10% of free system memory.
2021-07-17 12:56:40.608802: W tensorflow/core/framework/cpu_allocator_impl.cc:80] Allocation of 153600 exceeds 10% of free system memory.
2021-07-17 12:56:40.615196: W tensorflow/core/framework/cpu_allocator_impl.cc:80] Allocation of 153600 exceeds 10% of free system memory.
2021-07-17 12:56:40.974294: I tensorflow/cc/saved_model/loader.cc:190] Running initialization op on SavedModel bundle at path: ./model
2021-07-17 12:56:44.061544: I tensorflow/cc/saved_model/loader.cc:277] SavedModel load for tags { serve }; Status: success: OK. Took 15043034 microseconds.

@LeeJH  It looks like you are using an older Version of Tensorflow. Many bugs have been fixed in the latest version. Could you please execute your code using Latest Version 2.5 and let us know if the issue still persists? Thanks!


Updating doesn't restore manually added mods

Describe the bug
If you have a 'cdda/mods/' folder, you can put your mods in it and they work. That's fine. But when you update the game with this launcher, that mods folder is not repopulated after the update. They get copied into the 'previous_version' folder, but don't get retrieved at the end of the update process.
To Reproduce
Steps to reproduce the behavior:

Start with an out of date cdda build
Add some mods to a cdda/mods/ folder
Update to a newer build
See that the cdda/mods/ folder is now empty, and that they are in the cdda/previous_version/mods/ folder

Expected behavior
The launcher should recognise that the cdda/mods/ folder needs repopulating. I understand that it would be hard to preserve modifications to the cdda/data/mods/ folder, but restoring an otherwise empty folder should be safe (nothing to conflict with).
Desktop:

OS: Windows
Version: 10

Now this is a good one alright.
On one hand I can adhere to the sentiment that restoring the mods folder is a chore that could very well be automated as part of the Launcher's update process. On the other hand however, this comes with the assumption that all mods for the previous version would still work flawlessly on the new one. Assumption that I would think proves to be false more often than not, even more so if playing on the experimental branch of the game. Moreover, this incompatibility could lead to increased in-game bugs/disruption and, on a more serious note, save corruption down the line; which as a gamer myself is completely unacceptable IMHO.
Now, checking mod/version compatibility is something that the Launcher understandably cannot do, and thus it falls upon the user to be careful with the modifications performed to the game. Not-restoring the mod's folder is probably not a "feature" as much as an oversight; but it is one that may ultimately be for the best, since it forces the user to manually refresh the mods instead of blindly trusting them to still work.
So to sum it up, I am torn on this one. I feel it's safer to make the User refresh the mods, even if in the end that just leads to copy-pasting the previous mod folder into the new one, because now that falls under the User's responsibility and not the Launcher's. Would love to hear the various opinions/stances the Launcher's users, I am sure, have on this matter.

I can live with the chore, the worst part is losing the mods entirely if I update twice, without restoring the mods, for any reason.
Regarding the concern of mods not working properly after an update, perhaps we could have the mods folder restored under a different name, like "previous_mods" or "mods_disabled"? This would at least be a clear place where the mods have ended up.
Or perhaps give the user a popup after updating, to notify them that the mods folder was not empty before the update, and that the user should inspect the previous_version folder to retrieve them? In the current state of things, the user has no idea why their mods (whether purely gameplay or tiles for mods) disappear seemly at random.

A way to designate files to be ignored would be nice, or even just moving them to a previous_mods directory, as I have made mods for my own personal use, popped them in there, updated and lost them entirely before.

Indeed, having a previous_mods directory and dumping all of them in there seems like the best compromise. It would still be up to the user to restore the missing content (or update if needed); but the Launcher would at least be polite enough to leave everything in a tidy package for easy access.
It will probably need some sort of sub-directory schema though. Maybe timestamps or version numbers in the folders. Stable may not need anything but a single folder due to the infrequent releases, but Experimental is another story altogether.

@Rewstyr That is also a good option. In fact, it may be one of the better alternatives so far, since having this checkbox ticked or not implies direct acknowledgement from the user.
There may still be a place for the previous_mods folder for those cases where the checkbox is unchecked, so as to have an explicit place where all the old mods' contents are dumped.

That sounds like a good solution:

if option is on, explicitly copy custom mods back to new version's mods directory
if option is off, explicitly copy custom mods to previous_mods

I ran into this issue recently. @Rewstyr 's solution sounds really good. Unfortunately I don't get along with Python...


Custom Titlebar

Is there a safe way to hide the os native titlebar, and replace it with custom imgui components?

This is usually referred to as "window decoration", and would be up to whatever library you are using to actually create the window
E.g if you are using winit, then the Window::sec_decorations should hide the OS titlebar etc


Groups (maybe all group based modules): paginate isn't working in members list

https://user-images.githubusercontent.com/3324866/109090386-fd00f500-7766-11eb-8093-8de740b253c1.mp4

Already fixed in Ticket #3205


Try to unbreak the terminal size when working nested

When running nested, stty(1) is invoked against the inner
pseudo-terminal pair created by 'podman exec --tty' which may not have
a valid size due to: https://github.com/containers/libpod/issues/3946
In such cases, the COLUMNS and LINES variables set by toolbox(1) in the
outer environment should be forwarded.
This should have been part of commit 05544fb2714ec096.
https://github.com/debarshiray/toolbox/issues/242

@tagoh what do you think about this?

LGTM
As noted, COLUMNS and LINES aren't the exported variables though, it is always synced up when the terminal window size is changed. so the above approach should works as expected on nested.

As noted, COLUMNS and LINES aren't the exported variables though,
it is always synced up when the terminal window size is changed. so the
above approach should works as expected on nested.

The issue is that podman exec --tty creates a second pseudo-terminal pair that's nested inside the original pseudo-terminal created by the terminal emulator (eg., GNOME Terminal). This inner PTY is the one that doesn't have a valid size. So we run stty(1) before podman exec --tty to get the size, and then forward it via the variables.
When we invoke toolbox(1) from inside a container (ie., a podman exec --tty session), stty(1) gets run against the inner PTY pair, which might not have a valid size if the terminal window wasn't resized. In that case, the stty(1) output will be invalid, and our only hope is to forward the variables.


Wrong indentation for line break in anonymous function?

When I wrote a example of Spock, I expect indent like this:
main = runSpock 3000 $ spockT id $ do
    get("echo" <//> var) $ \something ->
        text $ T.concat ["Echo: ", something]

But vim = works below:
main = runSpock 3000 $ spockT id $ do
    get("echo" <//> var) $ \something ->
 text $ T.concat ["Echo: ", something]

While I encountered this behavior in a Spock example,
I believe many anonymous functions tend to have line break inside itself.

Thanks for your report.


Handle scrollbar compensation

Usually, you would set overflow: hidden to body when the modal mounts. However, this causes a weird adjustment to the layout (because the scrollbar disappears). This mostly affects Windows/Linux users, and some OSX users that use a mouse (because it forces the scrollbar to appear).
As an example, compare Semantic UI's Modal and TWBS' Modal. TWBS solved this by adding a padding-right to the body when the modal mounts.
* I'm not sure whether this would make this project more opinionated. Moreover, I'm torn whether this belongs to the core functionality or to userland code.

Valid request, for now I'm using this (since react-modal2 sets aria-hidden attrib on app container)
[aria-hidden] {
  overflow: hidden;
}

Just a little update: I wrote a library months ago, might be useful for this case.


How to define a virtual column?

I want to query like this:
select
	(select count(*) from table1 where ...) as virtual,
	*
from Table2

virtual is always generated temporarily.
My current design is:
type Table2 struct {
	Id      int64
	Name    string
	Virtual string `xorm:"<-"`
}

var tables []Table2
db.Select("(select count(*) from table1 where ...) as virtual, *").Find(&tables)

But when I use Sync2, xorm will create virtual column.
How to avoid creating virtual column?

Is there any instant solution like
type Table2 struct { 	Id      int64 	Name    string 	Virtual stringxorm:"as( (select count(*) from table1 where ...) "}
to solve this problem?

I think I will make <- not create column but that will break the compatible with before. Currently, you have to use two structs to do that.
type Table struct {
	Id      int64
	Name    string
}

type Table2 struct {
      Table `xorm:"extends"`
     Virtual string
}

anticipated


Web server API

Hi, is it possible to run the web server and use it to run API calls with something simple such as cURL to POST an image and get the object detection results returned as JSON?
running the server with these flags:
lumi server web --checkpoint fast --host "<IP_ADDRESS>" --port 5000
I've tried various methods with no luck:
curl -X POST -F 'file=@/path/to/file' http://x.x.x.x:5000/api/fasterrcnn/predict/
status code: 400
{"error":"Missing image"}
In Node-Red, I also tried converting my binary image to base64 and performing a POST with content-type: application/json, but same status code and error.
Any suggestions? thanks for the great product! Saved me a ton of work and headache trying to get familiarized with Tensorflow for the first time

do specify instead of "file" -> "image".
curl -X POST -F<EMAIL_ADDRESS>