Order of installed_paths inconsistent between runs

Problem/Motivation

I am using this plugin to register several phpcs sniffs from different repos into my installed_paths with phpcs. I am also using Travis CI's caching directives in combination with phpcs' caching directives in order to cache the results of scans between runs for files that have not been modified. However, it appears that this plugin doesn't register installed_paths in a consistent way between CI runs, which invalidates the phpcs cache, thus negating the benefits of caching between runs.

Expected behaviour

Runs of this plugin between CI jobs should produce consistent output for the value of installed_paths (specifically, the order of the paths).

Actual behaviour

The order of the paths in installed_paths is not always the same between CI runs. This is likely due to a race condition of when certain packages finish installing.

Steps to reproduce

Use a standard in composer.json that references multiple standards, or reference multiple standards in composer.json (see example below). Create a Travis CI job to run phpcs and echo the value of installed_paths. Note that it will not always be in the same order between runs.
Example for run 1:
"installed_paths": "../../alleyinteractive/alley-coding-standards,../../wp-coding-standards/wpcs,../../sirbrillig/phpcs-variable-analysis,../../automattic/vipwpcs",

Example for run 2:
"installed_paths": "../../sirbrillig/phpcs-variable-analysis,../../automattic/vipwpcs,../../alleyinteractive/alley-coding-standards,../../wp-coding-standards/wpcs",

Contents of composer.json:
{
  "require-dev": {
    "alleyinteractive/alley-coding-standards": "^0.2.0"
},

Contents of composer.json in alley-coding-standards:
{
  "name": "alleyinteractive/alley-coding-standards",
  "description": "PHPCS sniffs for Alley Interactive",
  "type": "phpcodesniffer-standard",
  "license": "GPL-2.0-or-later",
  "require": {
    "squizlabs/php_codesniffer": "^3.5.0",
    "dealerdirect/phpcodesniffer-composer-installer": "*",
    "wp-coding-standards/wpcs": "^2.3.0",
    "automattic/vipwpcs": "^2.1.0",
    "phpcompatibility/phpcompatibility-wp": "*"
  },
  "require-dev": {}
}

Proposed changes

Make the installed_paths value consistent between runs by alphabetizing the values. This will allow repos that use this plugin to leverage Travis CI and phpcs caching for unmodified files by ensuring that the configuration values in the cache file, specifically the value for installed_paths, is consistent between runs if nothing changed.

Environment

Question
Answer

OS
Linux, Ubuntu Bionic, running on Travis CI

PHP version
7.3.14

Composer version
2.0.8

PHP_CodeSniffer version
3.5.8

Dealerdirect PHPCS plugin version
0.7.0

Install type
project local

Output of vendor/bin/phpcs --config-show:
Using config file: /home/travis/build/alleyinteractive/brookings/vendor/squizlabs/php_codesniffer/CodeSniffer.conf

Contents of CodeSniffer.conf:
<?php
 $phpCodeSnifferConfig = array (
  'installed_paths' => '../../alleyinteractive/alley-coding-standards,../../wp-coding-standards/wpcs,../../sirbrillig/phpcs-variable-analysis,../../automattic/vipwpcs',
)
?>

Tested against master branch?

[ ] I have verified the issue still exists in the master branch.

I have not verified this against the master branch, but looking at the diff between 0.7.0 and the current HEAD, there shouldn't be anything in that diff that would affect this issue.

Hi! Thank you for bringing this to our attention!
This seems to be one of these edge cases we didn't think about when the plugin was created, but it indeed seems like a valuable improvement to the current logic.
We'll have to verify that the plugin has control over setting the order of the paths.
I can't give you a time-table when this will be picked up, but I am in favor of implementing this!

I created a PR (#126) that should fix this.

@kevinfodness Thank you very much for your contribution! The changes from #126 have been merged to master and will be part of the upcoming 0.7.1 release.

Thanks! Glad to help.

This seems to be one of these edge cases we didn't think about when the plugin was created, but it indeed seems like a valuable improvement to the current logic.

Just for context:
When this plugin was created PHPCS did not have the caching feature yet. Result caching for PHPCS was introduced in PHPCS 3.0.0, but even then, the configuration settings weren't taken into account when determining whether the cache was valid. That part was only introduced in PHPCS 3.3.0.

The order of the paths in installed_paths is not always the same between CI runs. This is likely due to a race condition of when certain packages finish installing.

@kevinfodness Thanks for bringing this to our attention and for the fix.
While it fixes the immediate issue of the cache invalidation in PHPCS, it doesn't fix the underlying problem.
I've been trying to figure out where the underlying race condition occurs, so we can report it to the Composer project.
The only thing I can currently come up with is that onDependenciesChangedEvent would be called too early, when the installation of the dependencies hasn't finished yet. That could cause the cleanInstalledPaths() method to remove paths from the originally found paths, only for the updateInstalledPaths() method to then add them again, though AFAICS this could only happen if the install finished somewhere inbetween these methods running, which would come down to microseconds and very precise timing of that.
Unfortunately I haven't been able to reproduce the issue locally which makes debugging kind of hard.
If anyone wants to look into this further - there's an easy way to see whether the race condition still exists as the plugin shows a status message if the installed_path was updated.
Basically with the race condition, the following will be displayed at the end of each install (same message each time now the paths are sorted on save):
PHP CodeSniffer Config installed_paths set to ../../automattic/vipwpcs,../../phpcompatibility/php-compatibility,../../phpcompatibility/phpcompatibility-paragonie,../../phpcompatibility/phpcompatibility-wp,../../sirbrillig/phpcs-variable-analysis,../../wp-coding-standards/wpcs

... while if the race condition would not exist, the plugin would stay silent on subsequent runs, or if running with --verbose would report Nothing to install or update.
@kevinfodness Would you mind checking if you still see the PHP CodeSniffer Config installed_paths set to...  message after each composer install ?
/cc @Seldaek

I'll do what I can. Do you mean running composer install with no changes to see if the installed_paths message pops again, even though nothing has changed?
I suspect that the issue here may be related to the fact that this is running in a Travis CI container and that we're caching Composer dependencies in Travis via caching the $HOME/.config/composer/cache directory, and we're installing phpcs to the container from the Composer cache each time the container boots up to run a job. So the container boots up, it grabs the Composer cache, we run composer install which pulls our custom standard, which installs phpcs, and then we rely on this plugin to set the installed paths locally after the install. There is only ever one composer install command run in the project during this setup, which installs phpcs as well as the sniffs.

Do you mean running composer install with no changes to see if the installed_paths message pops again, even though nothing has changed?

Yes, exactly.
I'll be sending in a PR in a moment with another tiny change as well which may or may not be related to/fix this issue.

Interesting - it does trigger. I'm running my Travis CI job in debug mode to test it out. My before_script action runs composer install and it reports Nothing to install or update. However, when I run composer install after this, here is the output:
No lock file found. Updating dependencies instead of installing from lock file. Use composer update over composer install if you do not have a lock file.
Loading composer repositories with package information
Updating dependencies
Lock file operations: 6 installs, 0 updates, 0 removals
  - Locking alleyinteractive/alley-coding-standards (0.2.0)
  - Locking automattic/vipwpcs (2.2.0)
  - Locking dealerdirect/phpcodesniffer-composer-installer (dev-master fe39059)
  - Locking sirbrillig/phpcs-variable-analysis (v2.10.0)
  - Locking squizlabs/php_codesniffer (3.5.8)
  - Locking wp-coding-standards/wpcs (2.3.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 6 installs, 0 updates, 0 removals
  - Downloading squizlabs/php_codesniffer (3.5.8)
  - Syncing dealerdirect/phpcodesniffer-composer-installer (dev-master fe39059) into cache
  - Downloading wp-coding-standards/wpcs (2.3.0)
  - Downloading sirbrillig/phpcs-variable-analysis (v2.10.0)
  - Downloading automattic/vipwpcs (2.2.0)
  - Downloading alleyinteractive/alley-coding-standards (0.2.0)
  - Installing squizlabs/php_codesniffer (3.5.8): Extracting archive
  - Installing dealerdirect/phpcodesniffer-composer-installer (dev-master fe39059): Cloning fe390591e0 from cache
  - Installing wp-coding-standards/wpcs (2.3.0): Extracting archive
  - Installing sirbrillig/phpcs-variable-analysis (v2.10.0): Extracting archive
  - Installing automattic/vipwpcs (2.2.0): Extracting archive
  - Installing alleyinteractive/alley-coding-standards (0.2.0): Extracting archive
Generating autoload files
PHP CodeSniffer Config installed_paths set to ../../alleyinteractive/alley-coding-standards,../../automattic/vipwpcs,../../sirbrillig/phpcs-variable-analysis,../../wp-coding-standards/wpcs

Note that we aren't committing a lock file to the repo, but one was created during the initial composer install, so it's bizarre that Composer is reporting that there isn't a lock file when one was just written.

Actually, my before_script doesn't create a lock file. I'm looking into why.

I'm noticing that the order of lock/download/install operations from Composer seems to be consistent between runs, but the order in which the standards were added (prior to my patch) did not match the order that Composer was reporting installing the standards. Is it possible that Composer is running some of these operations async?

@kevinfodness Thanks for testing.
Whether or not there is a lock file, shouldn't actually make a difference in the output for this plugin. If the installed_paths was previously set, it should still be set.
Example output of a local run I did after manually deleting the lock file from a previous install:

Note that the PHP CodeSniffer Config installed_paths set to message does not show as the paths were already set before.

Is it possible that Composer is running some of these operations async?

I honesty don't know.... anyone ?

In my use case, since the Travis CI container is created fresh each time the job runs, there are no installed_paths set, because the config file for the installed paths is in the vendor directory, which doesn't get created on the container until composer install is run.

I think I have an answer on the async - if I'm reading this code correctly, then Composer is running operations async, and the order in which the post-install hooks get added depends on when the packages install, which is itself an async operation:
https://github.com/composer/composer/blob/b7d770659b4e3ef21423bd67ade935572913a4c1/src/Composer/Installer/InstallationManager.php#L417-L444
So, in cases where the packages aren't installed, Composer is installing them, and creating the array of $postExecCallbacks in the order in which the async install operations complete, then it runs through them in that order. From run to run, the order in which the installs complete could change just based on when those async functions complete, which would result in the behavior I described where the installed paths value would be in a different order between runs.

@kevinfodness thanks for looking into this deeper!

From run to run, the order in which the installs complete could change just based on when those async functions complete, which would result in the behavior I described where the installed paths value would be in a different order between runs.

I must be missing something obvious, but if the onDependenciesChangedEvent() is called only after the complete install has finished, that should not influence the working of this plugin.
AFAICS, it is only if onDependenciesChangedEvent() would be trigger before all installs are finished that the async running of the installs could influence the output of this plugin and in that case, your example with the order being different is the most benign of potential bugs.
If this plugin would run before all installs are finished, it could potentially miss standards if that particular package wouldn't have finished installing, which would be the more severe error condition.

Edit: hang on... ok, so I think I may have it. With async running, the order of the packages as returned by $this->composer->getRepositoryManager()->getLocalRepository()->getPackages() may be different between runs - is that what you are saying ?
In that case, yes, that would explain the difference in the installed_paths value order you saw, though the order could then only ever be different on a first, fresh install, like in a CI environment.

With async running, the order of the packages as returned by $this->composer->getRepositoryManager()->getLocalRepository()->getPackages() may be different between runs - is that what you are saying ?

Yep—I don't know all of the Composer internals, but something inherent to the async workings of Composer that would cause the order of the packages to be different on a first, fresh install, like in a CI environment, as you said.

Sooo.. yes indeed the order of packages in the local repository is not guaranteed. It is sorted by name on write though to make sure the installed.json does not change between runs/machines so when reloading it it would be guaranteed, but while it's installing packages it's not sorting them because nobody ever cared.
If you need this in a given order, I'd suggest sorting the paths or the packages yourself so you are sure the order will be what you want always.

@Seldaek Thanks for confirming and that's exactly the solution which was pulled by @kevinfodness and has been merged.
I think we can safely conclude based on the above discussion and confirmation that there is indeed no race condition, which was what the "digging deeper" above was trying to investigate. So, all is good :+1:

Thanks for looking into this further @jrfnl and @kevinfodness! I was planning on doing a follow-up, but you guys saved me a lot of time (which is still a bit scarce).
And thank you @Seldaek for your confirmation on this.

Thanks for pointing that out! I've still not recovered the muscle-memory from my fingers 100% when typing. Fixed now. :+1:

@Potherca No worries :wink:


Export anndata observations to CSV

Is there a way to export anndata observations to CSV other than using the cellBrowser function from the Scanpy external API ? Thanks.

adata.obs.to_csv(filename) should work, as adata.obs is just a pandas dataframe.


[Accordion Menu] Error in code

How can we reproduce this bug?

Step one
Step two
Step three

What did you expect to happen?

What happened instead?

Test case
Give us a link to a CodePen or JSFiddle that recreates the issue.

Can you describe your problem in more detail?

it's a docs issue. I found it.


Allow multiple when() cases in ForwardChainExpectation

The docs say that you can write expectations as follows:
mockServer
        .when(request().withMethod("POST").withPath("/login"))
        .when(request().withPath("/callback"))
        .callback(callback().withCallbackClass(
                "org.mockserver.server.PrecannedTestExpectationCallback"));

But the though reality is that you can't. Take a look at ForwardChainExpectation class: there's no when() method anymore. Is that a bug or did you decide to remove this feature?

That's a typo in the documentation, the first '.when(...)' should not be there. I'll fix it next week once I'm back at my computer.

this is now fixed on the website


Added CLI argument to enable "follow flow list" mode

This pull request adds to mitmproxy (cli) an argument to enable the "follow flow list" as requested in #889.

Great work, thanks for the PR! :smiley: :tada: :cake:


docs: tweak grammar, tenses, punctuation

Adjusted tenses for consistency - I'm assuming (based on reading other pages) that object names like ConfigMap and Secret should be pluralized as ConfigMaps and Secrets so made those changes.
Adjusted the punctuation before code blocks to generally be colons, other than places where an explicit indicative relationship between text and code-block were absent.

Hello @jai .
Thanks for opening this pull request.
Page preview:
https://deploy-preview-20827--kubernetes-io-master-staging.netlify.app/docs/tasks/manage-kubernetes-objects/kustomization/

Thanks for the link! Any action needed on my part?

/lgtm

Thanks @jai
/approve


Optional extra key in signature

Allow for creation and verification of modified signature (s+x,kG) with extra key x.

PR is ready, review welcome.

Looks good to me. Going to integrate all the API changes into rust-secp256k1 shortly, so just to be sure, we're going to have Grin provide the pubkey total for e by default, but not this extra key, correct?

Yes, correct.


Enhance perfomance by reducing icon updates

I'm using ipytree in a project for displaying a hierarchy of multiple hundreds of objects. I found it very useful in this context, but noticed a considerable delay (> 30 sec) and high CPU and RAM (> 1 GB) usage when first constructing such large trees. So I looked into the code and found that triggerIconsUpdate() is called very often causing some overhead.
This pull request implements changes that greatly reduce the number of times icons are updated, thus also reducing time (down to ~5 sec for my use case) and CPU/RAM usage for building a large tree. If I did not miss anything, the layout of the tree remains consistent, so the icons are always shown as expected.
This is done by updating (open/close) icons only at the following times:

When a child is added, the parent will update its icon.
When a parent is opened, the icons of all children are updated recursively. This means if a node is opened, all its immediate children will update their icons and check if they are open. If so, their children will also update their icons and check if they are open, and so on. This makes sure all visible nodes have correct icons.
Whenever the top level nodes are changed, icons are updated on all top level nodes and recursively on their visible children. This was introduced because adding a new top level node caused all icons to disappear.

The following is a relatively minimal example to showcase what I mean:
from ipytree import Tree, Node
tree = Tree(stripes=True)
tree

for i in range(5):
    tree.add_node(Node(str(i)))
    tree.nodes[i].opened = False
    for j in range(200):
        tree.nodes[i].add_node(Node(str(j)))

The time for running this code was reduced from about 30 seconds to below 5 seconds on my machine.

Thanks a lot for the PR, I will look into it :)

Thank you for looking at my code and the helpful comments. Over the course of all the changes I had done I hadn't even noticed the formatting issues. I hope my code works as expected and I did not miss anything while checking this.

Thanks a lot for your PR, I tested locally and it really improved performances!

I wanted to squash the commits and merge, while keeping you as an author of the commit. Because I was not sure if Github could do that with the "squash and merge" button, I did it by hand.


Add ProductExportComplete webhook event

Add a webhook event to inform about the status of a finished export of products via the exportProducts mutation:
type ProductExportComplete implements Event @doc(category: "Products") {
  issuedAt: DateTime
  version: String
  issuingPrincipal: IssuingPrincipal
  recipient: App

  """Represents a finished export."""
  export: ExportFile!
}

Required permissions: MANAGE_PRODUCTS
This event will replace CSV_EXPORT_SUCCESS and CSV_EXPORT_FAILED notifications for products.

@krzysztofwolski can you verify if this webhook + its mutation (https://docs.saleor.io/docs/3.x/developer/export/export-products) is good enough to migrate Product Feed app? I'm worried about existence of all fields we may need


Add S3 Bucket Permissions Check and Automated SecOps Response Action

The Trusted Advisor S3 Bucket Permissions Monitor demonstrates how to use AWS Lambda to perform IT SecOps automation in response to an Amazon CloudWatch Event generated by AWS Trusted Advisor.
On detection of a Trusted Advisor S3 Bucket Permissions CloudWatch Event this automation removes the public permissions to list and write objects to the exposed bucket, as well as the permissions to read and write to the bucket's ACLs. Once the public permissions have been removed a notification message is sent to an Amazon Simple Notification Service (SNS) topic to notify the subscribers.

Before merging need to:

Perform a few more end-to-end deployment tests
Add files to prod bucket so 1-click deployment works (404s right now)

I've performed my end-to-end tests and uploaded the 1-click resources to the prod bucket. I'd recommend running your own test when you have time before merging but it has been well tested on my side.


Add support for beta Compute Engine API

Discovery link: https://www.googleapis.com/discovery/v1/apis/compute/beta/rest
Thanks,
Igor

see #704 and #705 - these are now updated for Compute API v1
Note that master has changed significantly since #695, so you may want to update your library from v1-master instead.

@bshaffer But there is no support for beta features (beta version), only for v1. How we can get support for beta version? (I've provided a link to the API: https://www.googleapis.com/discovery/v1/apis/compute/beta/rest). We need lables functionality.
Regards,
Igor

You can authenticate using the google/auth library directly and call the APIs directly with HTTP. This library can only support one version of the APIs at a time, so we support the most recent stable version.


⚠ Bofrost.de has degraded performance

In b5754ff, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 3328 ms

Resolved: Bofrost.de performance has improved in 5bec720 after 6 minutes.


agnostic unable to find mysqldump despite being present in PATH

It appears that agnostic is unable to find mysqldump despite it being present in PATH. This is happening to me on macOS Catalina using Python 3.6.7.
I created a new virtualenv using pyenv and installed agnostic. I then attempted to create a snapshot of an existing DB:
00:38 karthicr@ws1:agnostic_test $ pyenv virtualenv 3.6.7 agnostic_test
Looking in links: /var/folders/yq/82xt_rsn3ds1473grw012dqxtx0bq9/T/tmp0qi57336
Requirement already satisfied: setuptools in /Users/karthicr/.pyenv/versions/3.6.7/envs/agnostic_test/lib/python3.6/site-packages (39.0.1)
Requirement already satisfied: pip in /Users/karthicr/.pyenv/versions/3.6.7/envs/agnostic_test/lib/python3.6/site-packages (10.0.1)

00:39 karthicr@ws1:agnostic_test $ pyenv local agnostic_test

(agnostic_test) 00:39 karthicr@ws1:agnostic_test $ pip install agnostic[mysql]
Looking in indexes: https://pypi.python.org/simple
Collecting agnostic[mysql]
  Using cached https://files.pythonhosted.org/packages/35/7f/30dfb7689a58ff1a2f9bf9ac9750c21e08744b96ad1490fd2d3407fbf480/agnostic-1.0.1.tar.gz
Collecting Click<8.0,>=7.0 (from agnostic[mysql])
  Using cached https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl
Collecting sqlparse<0.3.0,>=0.2.4 (from agnostic[mysql])
  Using cached https://files.pythonhosted.org/packages/65/85/20bdd72f4537cf2c4d5d005368d502b2f464ede22982e724a82c86268eda/sqlparse-0.2.4-py2.py3-none-any.whl
Collecting PyMySQL<0.10.0,>=0.9.2 (from agnostic[mysql])
  Using cached https://files.pythonhosted.org/packages/ed/39/15045ae46f2a123019aa968dfcba0396c161c20f855f11dea6796bcaae95/PyMySQL-0.9.3-py2.py3-none-any.whl
Installing collected packages: Click, sqlparse, PyMySQL, agnostic
  Running setup.py install for agnostic ... done
Successfully installed Click-7.0 PyMySQL-0.9.3 agnostic-1.0.1 sqlparse-0.2.4

(agnostic_test) 00:39 karthicr@ws1:agnostic_test $ pip freeze
agnostic==1.0.1
Click==7.0
PyMySQL==0.9.3
sqlparse==0.2.4

(agnostic_test) 00:40 karthicr@ws1:agnostic_test $ mkdir migrations

(agnostic_test) 00:40 karthicr@ws1:agnostic_test $ agnostic -t mysql -u karthicr -d playground snapshot current.sql
Enter password for "karthicr" on "playground":
Creating snapshot of database [playground]…
Error: Not able to create snapshot: [Errno 2] No such file or directory: 'mysqldump': 'mysqldump'

(agnostic_test) 00:40 karthicr@ws1:agnostic_test $ python --version
Python 3.6.7

(agnostic_test) 00:43 karthicr@ws1:agnostic_test $ pip --version
pip 19.3.1 from /Users/karthicr/.pyenv/versions/3.6.7/envs/agnostic_test/lib/python3.6/site-packages/pip (python 3.6)

As you can see from the above, I get: Error: Not able to create snapshot: [Errno 2] No such file or directory: 'mysqldump': 'mysqldump'.
However I can confirm mysqldump is available and present in the PATH and running the snapshot command manually results in an output.
(agnostic_test) 00:43 karthicr@ws1:agnostic_test $ which mysql
<EMAIL_ADDRESS>
(agnostic_test) 00:43 karthicr@ws1:agnostic_test $ which mysqldump
<EMAIL_ADDRESS>
(agnostic_test) 00:44 karthicr@ws1:agnostic_test $ mysqldump -h localhost -u karthicr -p --no-create-db --no-data --compact playground
Enter password:
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `agnostic_migrations` (
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `started_at` timestamp NULL DEFAULT NULL,
  `completed_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

I was going through the code and I feel like the issue is occurring because of the env dictionary at https://github.com/TeamHG-Memex/agnostic/blob/5c731a3f60e00f286f8ff06303baa31592b0d8cb/agnostic/mysql.py#L110.
I understand that this is necessary to pass the password to the underlying mysqldump call. However per Python 3 documentation at https://docs.python.org/3/library/subprocess.html:

If env is not None, it must be a mapping that defines the environment variables for the new process; these are used instead of the default behavior of inheriting the current process’ environment. It is passed directly to Popen.

So when the env dictionary is passed as a parameter to subprocess.Popen, it is overwriting the existing environment variables and as a result agnostic fails.
At least that is what I think is happening. Looking forward to your thoughts.

I may have a possible solution. I'm appending the current environment variables to the env dictionary before passing it as parameter to subprocess.run.  Here is a sample script:
import os
import subprocess

host = 'localhost'
username = 'xx'
password = 'xx'
database = 'testbed'

env = { 'MYSQL_PWD': password }
# add the current environment variables
env.update(os.environ)

command = [
    'mysqldump',
    '-h', host,
    '-u', username,
    '--no-create-db',
    '--no-data',
    '--compact',
    database
]

result = subprocess.run(command, env=env, stderr=subprocess.PIPE)

If you think this is a good way to solve the problem, I can send you a pull request with this change.
Let me know.

I have submitted a PR for this issue: https://github.com/TeamHG-Memex/agnostic/pull/15

Closed via #15


Error While Using Test Recognizer.py On UCF101(Using Colab)After Extracting RGB Frames Only!

I ran:
!python tools/test_recognizer.py configs/ucf101/tsn_rgb_bninception.py modelzoo/tsn_2d_rgb_bninception_seg3_f1s1_b32_g8-98160339.pth
Output(Error):
Traceback (most recent call last):
File "tools/test_recognizer.py", line 181, in
main()
File "tools/test_recognizer.py", line 140, in main
raise NotImplementedError("By default, we use distributed testing, so that launcher should be pytorch")
NotImplementedError: By default, we use distributed testing, so that launcher should be pytorch
Notes:
I have installed all the required packages as mentioned in install.md
Kindly help as soon as possible as I have been stuck here for more than a week...
Thanks in advance!

I didn't get this error on my linux machine. You can try this codabase on a linux machine to see if this error still exists.


[CLOSED] Make pages look the same

 Issue by alicebartlett
Tuesday 24 June 2014 at 14:17 GMT
Originally opened as https://github.com/alphagov/specialist-publisher/pull/139

Make manuals index look the same as documents index
Move actions to the bottom of pages
Make form actions a button, use links for navigation.
Positive actions (add attachment, save draft) should all be green buttons
Add manual.document.body visible on manual.document.show pages

Manuals index before:

After:

Manuals show before:

manuals show after:

Section show before:

Section show after:

Add attachment before:

Add attachment after:

alicebartlett included the following code: https://github.com/alphagov/specialist-publisher/pull/139/commits

 Comment by evilstreak
Tuesday 24 June 2014 at 15:05 GMT

Looks good


Support highlight for CtrlP with devicons

Hi,
When I use CtrlP with devicons, cpsm's regex highlight does not work. Tried to add regex to support both cases with and without Devicons at beginging of each line.
Here is my test case:

>  zero/nvim/plugins/ctrlp.lua
> zero/nvim/plugins/ctrlp.lua
>  zero/vim/plugins/ctrlp.vim

call matchadd('CtrlPMatch', '\V\C\^> \%\(\.\+\s\+\)\?zero/nvim/plugins/\zsctrlp\ze.lua\$')

I think this will make matching slow down a bit. Please merge it if you think it does make senses, thanks.

Thanks for the contribution!


Store total item sell to trader value separately from sell to trader value of the base item

Currently, the website replaces the sell-to-trader price of weapon receivers with the sell-to-trader price of all items in that weapon's default configuration. This generally works fine enough, but then it messes up sell calculations for presets because presets contain those base items and the total value of the preset will count the total value of the base item's default configuration even though it may not contain all the same parts as the default. This is most pronounced with the G28 which has a large default configuration sale value because it has so many parts. Looking at the G28 Patrol preset, it has a huge calculated sell to trader value because it counts the value of all the items from the G28 default configuration:

This PR starts sorting out the issue by adding totalPrice and totalPriceRUB fields to the sellFor and traderPrice values. Those values can be used to get the total value of a weapon while leaving the values of just the receive intact. This appears to work well on item pages, but needs testing elsewhere (particularly on the loot tier page).

.deploy to development

.deploy to development

.deploy

.deploy

.deploy


Volume plugin for container orchestrators?

Is your feature request related to a problem? Please describe.
My situation is that I build a system that totals around 5-10GB (currently with debs, but transitioning to Nix) and then run an extensive simulation-based testing framework on that system. Regardless of what I do about build (eg, moving to Hydra), I'd like to be able to continue using Jenkins and Kubernetes workers for the testing aspect of it.
Some "conventional" options could be:

Just install all the Nix outputs that my tests need on demand.
Pre-cook an image with all my base stuff in it (potentially at the beginning of each day), and use that as the starting point for the on-demand test installation.

Both of these options potentially incur a lot of unnecessary transfer and archive manipulation and don't really leverage the power of Nix.
Describe the solution you'd like
This may be well out of scope for this project, but it would be super cool if it was able to act as a Kubernetes volume plugin and transparently fill requests for /nix/store paths from a cache that was shared between all containers on the host:
https://github.com/kubernetes/community/blob/master/sig-storage/volume-plugin-faq.md
This could be set up as an overlay so that writes would always be container-local, but reads would fall through to the volume.
Describe alternatives you've considered
See above.

If you want to be rid of that java butler for ever and your switching to nix, take a look at Hercules CI. You might be able to get all the tests you need with effects.
However you mileage will vary...

It's a cool idea, too bad it took me a year to see this issue. @mikepurvis it's probably too late. If you're interested it's something we could actually build for you.

@zimbatm Not too late at all!
@nixinator Hercules CI (while cool!) is not a good fit for us because we want to be able to run on-prem and we need builds that aren't tied to Github repos— in fact, Hercules seems to double-down on what is currently our biggest frustration with Hydra, which is that it imposes an unnecessary projects/jobsets/evals flowdown on everything when all we really want is a dirt-simple API to send pre-locked flakes to, and then get back a hash URL for whatever it built from it, what the steps were, and what all their logs looked like.
Anyway, currently we're making do with pre-cooked containers on Jenkins, but I don't love it. It would still be totally awesome to have a first-class story for running Nix environments inside Kubernetes, and a huge piece of that has got to be a better story for managing the store.

It reminds me a bit about https://nixery.dev/. The author is actually working with us and is something we could provide consulting for. Even if it's just to chat, happy to have a call: https://numtide.com/contact

Yeah! I had seen Nixery on HN this morning, and I guess that kind of addresses the same underlying need from the opposite direction— instead of bringing a native Nix store capability to Kubernetes, adapt Nix store paths (or pools of them) to be stored and composed as OCI container layers. This definitely has the benefit of being able to be used out of the box with all standard container tooling, and in particular working with container stores like Harbor.
Both approaches have merit, though I think one big drawback of the Nixery approach is that you have to know upfront what all you're going to want to have in your container environment. As soon as you start running that container (say, for a CI job), and do your first nix build operation, it'll be back to querying the remote binary cache, pulling NARs of dependencies over the wire to be unpacked locally, etc.

We're also exploring things like https://github.com/flokli/nix-casync that would minimize synching deltas.
It would be nice if Docker and Nix could share the same underlying storage mechanism so that there is only one garbage collection and one way of pulling things.
These are all ideas that we're discussing internally (the CSI volume is new though) but need more funds and time to be able to tackle.


Pod network problem

Can't ping the outside
Pod cannot be accessed by service name

Actually you can't ping service indeed.

cat /etc/resolv.conf
you pod CIDR should not conflict to host name server.

Actually you can't ping service indeed.

IPVS bind clusterip to the nic, so we really can ping the service

Actually you can't ping service indeed.

My pod cannot access the external domain name service now, this is fatal

cat /etc/resolv.conf
you pod CIDR should not conflict to host name server.

Can you ping the pod on the other host? What is your infra? google cloud?

/invite

Can you ping the pod on the other host? What is your infra? google cloud?
in google cloud

use delete -f my-calico.yaml，and apply -f my-calico.yaml，the network is connected

Can you share your my-calico.yaml?

Can you share your my-calico.yaml?

https://docs.projectcalico.org/v3.10/manifests/calico.yaml
CALICO_IPV4POOL_CIDR is <IP_ADDRESS>/16

I think the MTU caused this issue.  https://github.com/alibaba/sealer/pull/276


libqgit2 link no longer works

libgit2 front page link:
https://projects.kde.org/projects/playground/libs/libqgit2/
redirects to:
https://quickgit.kde.org/?p=.git
working link, I assume is: https://quickgit.kde.org/

@digitalist are you interested in making the change directly which will then create a pull request?

ah, ok


Mouse not smooth, sometimes acts to much like a joystick

Hi, I have been using this for a day or two and the keyboard works greats but I'm just wondering if there is going to be an update to make the mouse more smooth like being on a Pc or if there is an option that I can change. Thanks!

Everyone time i have to apologise for this i feel really bad, no matter how many times we try to map the mouse to a joystick we cannot figure out how the translation would work so we try as much to emulate a joystick rather than how a mouse would naively interact with a game, this is a issue that i personally cannot figure out. If you know or know someone who maybe able to make a algorithm that would solve this issue, please send them our way.

No, no need to apologize I would never be able to make anything like this and I understand it hard, I remember when I was taking classes for this type of things. I was just wondering if I was doing something wrong

I've tried many things but nothing really comes close, i have tried to see if XIM or anything like that had open-source parts that i could incorporate but there was none.

Mine was like this in overwatch, however, I figured out that if I changed the controller mode, in the games controller settings, from dual zone to linear graph, it acted perfectly like a mouse. This programs great, thanks to the dev

where did you change from dual zone to linear?


Fix crash when closing the interpreter window of the threaded example

The application would crash with the following message on Ubuntu:
QThread: Destroyed while thread is still running
Aborted (core dumped)
This will wait until the thread is finished before destroying it

Thanks !, Its so exit() does not really exit that immediately then ...

exit() exits the thread, but it takes a little bit of time to stop the thread. If you delete the thread by setting it to None immediately, the thread has had no time to finish and the Qt library tells you this by issuing a warning message and by aborting.


Stream error makes server restart

When the error below is thrown, the server is restarted. Is it normal?
W20170226-01:07:58.347(-5)? (STDERR) stream.js:74
W20170226-01:07:58.355(-5)? (STDERR)       throw er; // Unhandled stream error in pipe.
W20170226-01:07:58.355(-5)? (STDERR)       ^
W20170226-01:07:58.355(-5)? (STDERR)
W20170226-01:07:58.355(-5)? (STDERR) Error: getaddrinfo ENOTFOUND images-local.la-jungla.es images-local.la-jungla.es:443
W20170226-01:07:58.355(-5)? (STDERR)     at errnoException (dns.js:27:10)
W20170226-01:07:58.356(-5)? (STDERR)     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:78:26)

Hi @PolGuixe ,
No, definitely not ok. What method is used? .insert(), .write() or .load()?
Error comes from Node.js, as stream.js is its internal module

Context:

Using knox to upload to S3
Using cloudfront for donwload.

Way to reproduce it:

Disable cloudfront or your DNS routing.

Error:
W20170302-12:48:09.559(-5)? (STDERR) stream.js:74
W20170302-12:48:09.582(-5)? (STDERR)       throw er; // Unhandled stream error in pipe.
W20170302-12:48:09.583(-5)? (STDERR)       ^
W20170302-12:48:09.583(-5)? (STDERR)
W20170302-12:48:09.595(-5)? (STDERR) Error: getaddrinfo ENOTFOUND images-local.la-jungla.es images-local.la-jungla.es:443
W20170302-12:48:09.595(-5)? (STDERR)     at errnoException (dns.js:27:10)
W20170302-12:48:09.603(-5)? (STDERR)     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:78:26)
=> Exited with code: 1
I20170302-12:48:32.788(-5)? Kadira: completed instrumenting the app
=> Meteor server restarted

So, it's AWS issues while using Knox as a driver, right?
ENOTFOUND looks like URL address wasn't found, isn't it?

I am disabling Cloudfront on purpose. To reproduce the error.

But Cloudfront is required option for Knox driver

Yes I know, I it is enabled always.
When S3 failed recently, I realized that an error made the whole server to restart. This was worrying.

#307 is still pending. knox is outdated, and it might be caused by this fact.
I'm looking forward to Evaporate, but have no right moment to put my hands on.
I'm pretty sure it isn't a big deal to switch Knox to Evaporate.

@dr-dimitru I had a quick look at evaporate but it seems a client side uploader to S3. I need to look in more detail

Hi @PolGuixe you're right.
I'm assuming it's better to stick with official AWS SDK
Docs reference - http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html

@dr-dimitru It makes sense.
It is a question that may be can be asked to the wider community. Should we open a another issue to discuss this matter?

Hi @PolGuixe ,
I believe #307 is in general targeted to update demo app and wiki with new lib for S3, so it fits

You can close this one in favor of #307


Using mxnet on RTX3090

Hello,
I have some problems on using mxnet on RTX 3090. 30 series GPU only support cuda11, but I can't find the version of cuda11 corresponding to mxnet. I've browsed a lot of blogs or documents, but I still haven't found a solution.
Thanks for your advices.

Hello,
In order to use MXNet on my RTX 3090, I had to build MXNet 1.8.0.rc1 with CUDA 11 support.
If you are familiar with Docker, I've created an image (docker pull wallart/dl_mxnet:1.8.0.rc1), so you could use MXNet without rebuilding everything.

Thank you very much. I'll try it right away.

Check this site.
https://dist.mxnet.io/python/cu110
You can install the nightly version of mxnet.
pip install mxnet-cu110==1.9.0b20201116 -f https://dist.mxnet.io/python/cu110
Hope this helps.

@Wallart
I do the same thing, it worked but the training speed on 3090 is slower than 2080ti. Do you have the same problem?

With equivalent batch size, the training speed on 3090 is equivalent to my old 1080ti. What type of model are your training ?

@Wallart
I have solved the problem, with MXNet 1.8.0.rc2 and cuda 11.1.
You should update cudnn from 8.0.4 to 8.0.5, this is very important.
And modify KNOWN_CUDA_ARCHS in MXNet Makefile, add 86.
Now it's really fast.

version 20.10 supports sm_86 (so RTX3000 series).

NOT worked. I tested all the containers.

@shilei-nj thanks for pointing it out. Would you help add this change to the v1.x branch?
@Light-- could you file a bug report for the issue you are facing? We will need more details to identify the issue which are requested in the issue template. Thanks!

@szha no thanks, just fix it by your next update please.

MXNet2.0 built by myself is working fine with RTX3090.

If you are familiar with Docker, I've created an image (docker pull wallart/dl_mxnet:1.8.0.rc1),

buddy, your docker image runs like this.....
$ sudo docker run --gpus all -ti --ipc=host --ulimit memlock=-1 --ulimit stack=67108864 a86ad560010f /bin/bash
Starting as 9001:deeplearning
deeplearning home directory ready
deeplearning home directory populated
Server listening on <IP_ADDRESS> port 22.
Server listening on :: port 22.

what's this??????????????????

If you are familiar with Docker, I've created an image (docker pull wallart/dl_mxnet:1.8.0.rc1),

@Wallart
buddy, your docker image runs like this.....
$ sudo docker run --gpus all -ti a86ad560010f /bin/bash
Starting as 9001:deeplearning
deeplearning home directory ready
deeplearning home directory populated
Server listening on <IP_ADDRESS> port 22.
Server listening on :: port 22.

what's this?????????????????? how to use?? my other docker images works fine

I'm providing SSH daemon for remote debugging purposes. You need to run the image in background with -itd options.
Then you can execute docker exec -it -u USER mxnet-1.8.0.rc1 bash or connect the container to your preferred IDE.
You can also populate your container with a specific user/uid in order to mount volumes with -e HOST_USER=myUser -e HOST_UID=$(id -u)

@Wallart
With old options it is a little bit slower than 2080ti, now it's 50% faster than 2080ti.

Then you can execute docker exec -it -u USER mxnet-1.8.0.rc1 bash or connect the container to your preferred IDE.

hey, @Wallart what do you say about this?
i followed your steps, but
$ sudo docker exec -it -u root 37239180ff52 bash
root@37239180ff52:/tmp# python
Python 3.7.7 (default, Jun 26 2020, 05:10:03)
[GCC 7.3.0] :: Intel(R) Corporation on linux
Type "help", "copyright", "credits" or "license" for more information.
Intel(R) Distribution for Python is brought to you by Intel Corporation.
Please check out: https://software.intel.com/en-us/python-distribution
>>> import mxnet
Illegal instruction (core dumped)

pip install mxnet-cu110==1.9.0b20201116 -f https://dist.mxnet.io/python/cu110

hey, @dai-ichiro, what will you say about this:
$ pip install mxnet_cu110-1.9.0b20201116-py2.py3-none-manylinux2014_x86_64.whl
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Requirement already satisfied: mxnet-cu110==1.9.0b20201116 from file:///home/user1/mxcuda11/mxnet_cu110-1.9.0b20201116-py2.py3-none-manylinux2014_x86_64.whl in /home/user1/.local/lib/python3.6/site-packages (1.9.0b20201116)
Requirement already satisfied: requests<3,>=2.20.0 in /home/user1/anaconda3/envs/mxgpu/lib/python3.6/site-packages (from mxnet-cu110==1.9.0b20201116) (2.25.0)
Requirement already satisfied: graphviz<0.9.0,>=0.8.1 in /home/user1/anaconda3/envs/mxgpu/lib/python3.6/site-packages (from mxnet-cu110==1.9.0b20201116) (0.8.4)
Requirement already satisfied: numpy<2.0.0,>1.16.0 in /home/user1/anaconda3/envs/mxgpu/lib/python3.6/site-packages (from mxnet-cu110==1.9.0b20201116) (1.19.4)
Requirement already satisfied: certifi>=2017.4.17 in /home/user1/anaconda3/envs/mxgpu/lib/python3.6/site-packages (from requests<3,>=2.20.0->mxnet-cu110==1.9.0b20201116) (2020.6.20)
Requirement already satisfied: chardet<4,>=3.0.2 in /home/user1/anaconda3/envs/mxgpu/lib/python3.6/site-packages (from requests<3,>=2.20.0->mxnet-cu110==1.9.0b20201116) (3.0.4)
Requirement already satisfied: idna<3,>=2.5 in /home/user1/anaconda3/envs/mxgpu/lib/python3.6/site-packages (from requests<3,>=2.20.0->mxnet-cu110==1.9.0b20201116) (2.6)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/user1/anaconda3/envs/mxgpu/lib/python3.6/site-packages (from requests<3,>=2.20.0->mxnet-cu110==1.9.0b20201116) (1.21.1)
(mxgpu) wjc@pc228:~/mxcuda11$ python
Python 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 13:51:32)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mxnet

Illegal instruction (core dumped)

I think it's time to get cuda 11.1 and sm_86 into official mxnet support list as RTX 3090 series is very popular.

@Light-- What type of CPU are you using ?

@Light-- What type of CPU are you using ?

Intel(R) Core(TM) i7-3960X CPU @ 3.30GHz

CUDA 11.1 and sm_86 are supported in MXNet 1.8+.  @DestinyMy  Has your problem be solved?

@TristonC , Do you have Windows version of MXNet 1.8+ I  only saw linux on pypi
https://pypi.org/project/mxnet-cu112/


Fixed typedef inside function

For #272

This change is

@elliotchance I am still trying to come up with tests for this change, but all the tests require #322 to be fixed first.
It is up to you to decide if you want to wait for #322.

Could you check the result of that example:
int main(){
    typedef int INT;
    INT i = 42;
    return 0;
}

Is look like that :
type INT int // <---- Outside of function
func main(){
    var i INT = 42;
}

@Konstantin8105 Hi. This is an easy fix that will fix most of the typedef cases.
I opened another issue #346 to fix the rare cases (?) where a typedef is defined multiple times (with different target types) within the same compilation unit.

@yulvil Hello, yes you are right. Now,c2go haven't any support of typedef types. It is more then nothing. And about - how to inject into function, we will in next PR.

I don't see any test cases for this so I'm not sure what has changed?

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

@elliotchance I need to fix #322 before I can write a test case that is working.

Do you want it merged or do you want me to wait for #322?

Review status: :shipit: all files reviewed at latest revision, all discussions resolved, all commit checks successful.

Comments from Reviewable

@elliotchance Please merge. I think it is safe. I will provide tests later.


Write a Julia program to convert hexadecimal to decimal

Description
Write a Julia program to convert hexadecimal to decimal
Hexadecimal is a base-16 number system. It uses sixteen digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F. The digits are called hexits. A hexit is the smallest unit of information in a computer. A hexit can be used to represent a single value, such as 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, or F, or it can be used to represent a single state, such as on or off.
To convert a hexadecimal number to decimal, we can use the following algorithm:

Multiply the first hexit by 16^0.
Multiply the second hexit by 16^1.
Multiply the third hexit by 16^2.
Multiply the fourth hexit by 16^3.
Repeat steps 3 and 4 until the last hexit.
Add the results of all the multiplications.
The decimal number is the sum of all the multiplications.

Input  : A
Output : 10

How to contribute

Save the solution in convert-hexadecimal-to-decimal.jl file
Add convert-hexadecimal-to-decimal.jl file in convert-hexadecimal-to-decimal folder

!assign


Enhancement: Redesign Hero

ObjectiveUpdate the Hero section to improve its visual appeal, clarity, and user engagement.
#Key Changes
Layout: Modern, clean design with better content hierarchy.
Call-to-Action (CTA): Clear, bold CTA buttons to drive user interaction.
Responsive Design: Ensure compatibility across devices (mobile, tablet, desktop).
Visuals: Use high-quality images, animations, or illustrations for impact.

Already done with PR #2


Blog not updating on the homepage

Why, tho?

The site build doesn’t have any awareness of the Medium blog, so the site needs to be rebuilt manually when blog posts are published.

@tedsuo It looks like the Zap that I created wasn't set up to clear the build cache. I've changed that. This should work for now but if issues persist feel free to re-open.


Export modeligado diagram with a command line tool

Implement after: https://github.com/matheusgr/modeligado/issues/17
This may be a hard issue to solve since the gojs may not work in command line/nodejs as is.

c112a479ad229d9195321824b7a7e5d356138da8


Add tcache_dup

Even though it is mentioned in the blog, it seems better to add this example in the repo.

I think it's better to include this example even though it's too simple :)

Thanks!


Implement Empty State for Direct URL Access after Changing Product Store

Current behavior
When users directly access a product URL after changing the product store, there is no indication of an empty state, instead we show the product data with incorrect information.
Expected behavior
When a user tries to access a product URL directly after changing the product store, they should be shown an empty state message indicating that this product is not available in the selected product store. This provides clarity and guides the user on the next steps.
Steps to reproduce the issue

Copy the URL of a specific product from the previous store.
Change the product store.
Paste and access the product URL directly in the browser.

Can you handle fixing this bug by yourself?

[ ] YES
[ ] NO

Environment details

Browser:
OS:
Code Version:

Additional information
We should have support for Product store while fetching any data in the app.

Closing the issue as not required for now.


Building from source on Windows

Seems like the Developer guide is missing info for Windows.
When running cargo run --bin updater. I got this error:
error: linker `link.exe` not found
 |
 = note: Das System kann die angegebene Datei nicht finden. (os error 2)

note: the msvc targets depend on the msvc linker but `link.exe` was not found

note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed with the Visual C++ option

Installing Visual Studio 2019 worked for me.
Then running the game cd game; RUST_BACKTRACE=1 cargo run --release I got:
Das System kann den angegebenen Pfad nicht finden. German for: System can't find path.
Doing this on Windows instead worked for me:
cd game && set RUST_BACKTRACE=1 && cargo run --release

The first problem: This seems like an issue with the Rust installation process in general, at https://www.rust-lang.org/tools/install. I actually don't see the Windows instructions here; I'll try spoofing my user agent and pretend to be a windows machine in a minute.
The second problem: Just made this easier with https://github.com/dabreegster/abstreet/commit/6919c24bf8a76e8dc2da09d94c8a9548b4490340. Before, you had to ensure that ../data/ existed when you ran the game. Now it'll detect the data dir either in the current directory or one level up. I think the first 3 steps in docs/dev.md have always been correct; it's just easy to miss running from the proper directory.

The first problem: As mentioned above

Installing Visual Studio 2019 worked for me.

The second problem: Thanks for making this easier. And I double-checked and no matter what directory I'm doing this from I get the error. Also RUST_BACKTRACE=1 as before the cargo command throws Der Befehl "RUST_BACKTRACE" ist entweder falsch geschrieben order konnte nicht gefunden werden.

Ah, I understand now; Windows has a different syntax for setting env variables. Thanks! I'll fix the docs.

Thanks for fixing this.


Add support for Graphql file upload

Hi There,
Really great work with what's been done so far with the implementation to translate OAS to GraphQL, I recently had some reason whilst using this library to support file uploads for the GraphQL server running on the schema generated by the library. I know there's no support for it and it's already been brought up as seen here https://github.com/IBM/openapi-to-graphql/issues/220
So I added support for file uploads, Here are the considerations I made;

API definitions with content-typeof multipart/form-data are processed as such
the implementation for file upload is solely based on the spec proposal defined here https://github.com/jaydenseric/graphql-multipart-request-spec which would imply that users who wish to use this need to make some extra configuration for parsing request body to match the spec's expectations.
Uploaded files are streamed directly to the intending REST endpoint, this way the library needs not necessarily concern itself too much about memory management and the problems that could accompany it when multiple users are uploading files at scale.

I would appreciate feedback pertaining to this and like to see this merged in, as I'm using the changes in here as a patch to the library for upload support in my team.

I need this. hope it can be merged as soon as possible

@eokoneyo Sorry for the late reply! This looks really good to me! If you could just clarify one thing, I think we can merge this in an push out a new version!

@eokoneyo Sorry for the late reply! This looks really good to me! If you could just clarify one thing, I think we can merge this in an push out a new version!

@Alan-Cha  That's great to hear, I wasn't sure if this was a feature that's in line with the library's roadmap. Since you're okay with this, I think there'll be a need to add details about supporting file upload to the README file

@eokoneyo Ah, the public roadmap is outdated but we welcome any suggestions and new features.
Do you think you could flesh out the documentation? I think you are more qualified to describe what is going on. If you can do that, then I can merge and push out a new release.

@eokoneyo Ah, the public roadmap is outdated but we welcome any suggestions and new features.
Do you think you could flesh out the documentation? I think you are more qualified to describe what is going on. If you can do that, then I can merge and push out a new release.

I actually stumbled on the roadmap today, I'll be sure to add in any new features or suggestions I might have and yes, I'll add in the documentation for this.

@Alan-Cha I added in documentation, also some slight modifications to allow the user specify config options pertaining to how the file upload is processed

@eokoneyo Everything looks great! I made some small adjustments and also rebased it but because I do not have push access to your branch, I had to create my own and filed a new PR #435. I will merge everything in through said PR and close this one.
I know you have some other PRs that you submitted a while ago. I plan on looking on them as well as all of the other stale PRs. I'm trying to get back into maintaining this project. In the meantime, feel free to add suggestions to the roadmap and thanks again for this great contribution!

v2.6.0 is out!


how to change timezone

Hi,
I'm using the docker image on docker hub "jekyll/jekyll:pages 5a0d13d67749".
It's default timezone is GMT, so that all post which set to the current time of my timezone GMT+8 will not be generated.
ex.
in docker shell:
bash-4.3# date
Sun Nov  6 03:26:32 GMT 2016
so if I write the current time of GMT+8 in header of post
date:   2016-11-06 03:26:32
Then this post will not be generated.
I also tried changing /etc/timezone and commit then re-run the changed docker image,
but it's not work.
bash-4.3# cat /etc/timezone
Asia/Taipei
bash-4.3# date
Sun Nov  6 03:33:55 GMT 2016

I found environment variable TZ useful: -e "TZ=Asia/Taipei"
Source: request date and time settings or automatic time zone
Works on a Docker image based on microsoft/aspnetcore:1.0.3 in my case.

Yes this should work, you can also ship /etc/timezone


Accessibility: AlertDialog not accessible

@OptIn(ExperimentalMaterialApi::class)
fun main() = singleWindowApplication {
    AlertDialog(
        onDismissRequest = {},
        buttons = { Button(onClick = {}) { Text("OK") } },
        title = { Text("AlertDialog") }
    )
}

On macOS with VoiceOver, nothing inside AlertDialog is read out.

Same applies to DropDownMenu

Related to/duplicate of #2041

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Custom Slice type generates an empty schema

Hey, I've been trying to generate a schema for a custom slice type which is a field in a struct, but the default values aren't computed
type MyString string
type MyStrings []MyString

type MyObject struct {
        strs MyStrings `json:"my_strings" jsonschema:"description=This is my description,default=some,default=other"`
}

The MyStrings definition is correct, with a schema of type array, and items of type string. In the struct schema, there is the property my_strings, which points to the MyStrings ref and with the CORRECT description. But there are no default values. I evaluated this by marshaling the resulting schema.
As soon as I use []string instead of MyStrings, the default values show up
I may try to fix it on my spare time, but does anyone have any clue on what might be going on?

This was a mistake on my side lol

Re-purposed the issue because there is a bug! But not the one I initially suspected

I'm not sure about this one... wouldn't the default examples need to be arrays to match the type? Go tags are very limited for more complex scenarios, you'll probably find it easier to break out into one of the JSONSchema or JSONSchemaExtend methods to customise the output.


add "#include <intrin.h>" in vk_mem_alloc.h

Hi all:
　　I am using Win10 and VS2017 Community. I get the following error when compiling:
3>e:\mygit\vulkanmemoryallocator\src\../include/vk_mem_alloc.h(3068): error C3861: '__popcnt': identifier not found

So every time after updating the newest code, I have to manually add a line "#include <intrin.h>" in vk_mem_alloc.h。
　　Can you add this in vk_mem_alloc.h？

Thank you for reporting this bug. Indeed, the include was missing and should be there. I've added it.


Create hats-strategy

The token locks that delegate will be counted, which is what we need, so no need for a special case for that part.


style: update the style of the timer to be centered

Description
I am adding a style as a suggestion to center the timer in the web version. If you like it, feel free to merge. Thank you!
Before

After

Woah! That's a neat change! Thank you for sharing!

Happy to share, you're welcome!


Docker: Arguments not being passed

I had an issue (on mac) passing args to run the dockerfile in that they weren't being picked up by graphCrawler.py
Apparently, you need to use the exec form of ENTRYPOINT and not the shell form for args to propagate.
If I, therefore, change the ENTRYPOINT command from what it is currently to ENTRYPOINT ["python3", "/app/graphCrawler.py"] it works as expected.

Thank you for informing me of this issue, as well as providing a solution. It is fixed now in the dockerfile.


Group Number for task 1

Hi @Mosaddeq107 @sharmistharanit ,
Have you checked on the task 1 of homework 6. It says group number in the range of interval. Are we supposed to use our homework group number or some other number there?

I think it is the homework group number, which I elaborated on here as well https://github.com/ubsuny/23-Homework6G1/issues/11

I think it is the homework group number, which I elaborated on here as well ubsuny/23-Homework6G1#11

Thank you


Use OpenSSL v3 in CI for macOS

Yes, that should crash the run. I want to check if martin will use the OpenSSL v3 (it should) if it's available.

I tried to run it on Apple Silicon, but the binary is built for Intel. Apple Silicon VM is not supported in GH Actions yet https://github.com/actions/runner-images/issues/2187
Probably we might be okay with the Intel version for now. I'll check the Intel version with the OpenSSL in https://github.com/urbica/homebrew-tap


Proposed ArrowRecordBatchAdapter to replace ParquetReader with read_from_memory_tables=True

Is your feature request related to a problem? Please describe.
The ability to stream a sequence of in-memory arrow tables into csp is very powerful, but currently a bit hidden within the ParquetReader implementation (by setting read_from_memory_tables=True), making it hard for users to find. It can also be a bit tricky to use properly as many of the arguments to the parquet reader are ignored in this mode.
Describe the solution you'd like
A dedicated pull adapter that consumes a serquence of arrow record batches (or tables) as efficiently as possible. i.e. ArrowRecordBatchAdapter.
An initial implementation could just delegate to the ParquetReader for implementation.
Also, the solution should ideally be zero-copy on the underlying arrow tables (I am not positive this is the case at the moment).
Describe alternatives you've considered
Continuing to use the parquet reader is confusing and non-intuitive, especially for cases where the arrow tables come from other sources.
Additional context
Other features to consider

Being able to convert arrow lists as numpy arrays (like the current parquet reader)
Being able to convert arrow structs as csp structs
An option such at that each timestamp, it ticks an arrow record batches containing all the records with that timestamp (in cases where we want to minimize any copy overhead and just operate on arrow types directly). This is essentially a "group-by" on the timestamp column.

Note that since there are a number of other tools that can efficiently and flexibly produce sequences of arrow tables from different sources (polars, duckdb, arrow-odbc, ray), having a generic ArrowRecordBatchAdapter will allow an even greater number of historical data connections with very little additional effort.

The need has also arisen for this on the output side, i.e. an output adapter that yields in-memory arrow tables (i.e. according to some trigger function).


Add support for creating mpf from a long literal

Fixes #368.

This looks good. Could you add a test case?

@fredrik-johansson Added test cases. Also, modified the code to convert to lower cases before stripping 'L'.

Thanks!


Create both scripts at same time

Create interactive and non interactive script at same time when -it flag is enabled.

Solved


Clarify license_location in details

I think we need to clarify criterion license_location's details, based on a confusion in an R package.  Below is the current state, a description of what seems to be the confusion, and a proposed solution.
Criterion license_location has the following description:

The project MUST post the license(s) of its results
in a standard location in their source repository.

And the following details:

E.g., as a top-level file named LICENSE or COPYING.
License filenames MAY be followed by an extension such
as ".txt" or ".md".

However, an R project says it can't meet this because "R projects with GPL-3 licenses are prohibited from including a separate license file, as this is automatically provided by R itself."
However, I think this is a misunderstanding of the criterion.  The "Writing R Extensions" manual says that, "the “standard” short specifications GPL-2 GPL-3 LGPL-2 LGPL-2.1 LGPL-3 AGPL-3 Artistic-2.0
BSD_2_clause BSD_3_clause MIT [are] made available via https://www.R-project.org/Licenses/ and contained in subdirectory share/licenses of the R source or home directory." Further, "Whereas you should feel free to include a license file in your source distribution, please do not arrange to install yet another copy of the GNU COPYING or COPYING.LIB files but refer to the copies on https://www.R-project.org/Licenses/ and included in the R distribution (in directory share/licenses)."
Instead, these standard licenses given in the latter link are already bundled by definition with R itself, and their inclusion is effectively prohibited (a package won't be accepted on CRAN if it contains such files).  A similar thing happens when installing Debian packages.  However, Github is not CRAN, so what we expect is something like having a LICENSE in the repo and listing the LICENSE in an exclusion file like .Rbuildignore.
I propose adding the following to the details of license_location:

Note that this criterion is only a requirement on the source repository.
You do NOT need to include the license file when generating something from the source code
(such as an executable, package, or container).
For example, when generating an R package for the
Comprehensive R Archive Network (CRAN), follow standard CRAN practice:
if the license is a standard license,
use the standard short license specification (to avoid installing yet another copy of the text) and
list the LICENSE file in an exclusion file like .Rbuildignore.
We encourage including machine-readable license information in generated formats
where practical, but we do not require it.

Great!  Maybe we should have a second example, one that isn't a language-level package manager.  One case I know of is Debian:

Similarly, when creating a Debian package, you may put a link in the copyright file to the license text in /usr/share/common-licenses, and exclude the license file from package creation,

FYI, here's a stack exchange explanation about how to remove a license file when creating a Debian package:

https://unix.stackexchange.com/questions/250683/how-to-remove-a-license-file-when-debian-packaging-using-autotools-automake

We could also discuss containers, but there's no strong requirement to NOT include licensing info in containers (they're larger than single executables no matter what), and we already have a serious problem in getting licensing info about containers.  So I don't really want to use that as a second example.

We encourage including machine-readable license information in generated formats
where practical, but we do not require it.

Just a tweak to emphasise the positive only, not the negative, coz otherwise I'm left just thinking, Well, if it's not required anyway, then I won't do it.

Given the above, that would mean that criterion license_location would have the following UNCHANGED criterion text:

The project MUST post the license(s) of its results
in a standard location in their source repository.

And the following CHANGED details:

E.g., as a top-level file named LICENSE or COPYING.
License filenames MAY be followed by an extension such as ".txt" or ".md".
Note that this criterion is only a requirement on the source repository.
You do NOT need to include the license file when generating something
from the source code (such as an executable, package, or container).
For example, when generating an R package for the Comprehensive R
Archive Network (CRAN), follow standard CRAN practice: if the license
is a standard license, use the standard short license specification
(to avoid installing yet another copy of the text) and list the LICENSE
file in an exclusion file like .Rbuildignore.  Similarly, when creating a
Debian package, you may put a link in the copyright file to the license
text in /usr/share/common-licenses, and exclude the license file from
package creation, We do encourage including machine-readable license
information in generated formats where practical.


interactive bots: Create Joke bot.

A new bot that will return a finite number of jokes.

Automated message from Dropbox CLA bot
@Juanvulcano, it looks like you've already signed the Dropbox CLA. Thanks!

Hi @Juanvulcano!
How's your joke bot?

Another PR for this was opened at https://github.com/zulip/zulip/pull/3026. @timabbott and @showell, this can be closed.


dsync: extract dcmp --sync functionality into separate tool

Having separate tools for each task will simplify the code for both use cases.

Hi @adammoody , is any guy working on this issue? If not, we can help on it.

@KnightKu Did you plan to start on it right away? We had planned to work on it, but haven't got to it yet.

dsync merged into master.  Thanks, @dsikich


MM-19517 Adding ability to disable attachment buttons and fields.

Summary
Adds ability to disable buttons and fields in slack attachments.
Screenshot

Creating a new SpinWick test server using Mattermost Cloud.

Mattermost test server created! :tada:
Access here: https://mattermost-webapp-pr-4095.test.mattermost.cloud

Account Type
Username
Password

Admin
sysadmin
Sys@dmin123

User
user-1
User-1@123

@crspeller I'm not seeing what I expected here. I don't know if it's a deployment issue or if I'm just rusty on the use case when this would occur.
After I start a workflow, it move to a step such as Triage. I then select some options and transition the workflow to the Triaged step, I expected to see a screen such as what you attached above. Instead I'm seeing what looks like the previous behavior. Drop-down options can be adjusted and button appear to be in a functional state.

@DHaussermann This has to be implemented on the plugin side as well. You can generate a slack attachment yourself using the disabled field.
I will also DM you a version of the plugin where I have implemented this.

@crspeller, strangely I'm still not seeing the change with the advanced build you supplied.
Looking at the spin-up server ☝ the webapp build hash matches the commit. But the server build hash does not match https://github.com/mattermost/mattermost-server/pull/11669 Is there a way you can confirm that the server code needed is being included?

@DHaussermann Ya it's not the right commit. Looking for clarification from the cloud team.

New commit detected. SpinWick will upgrade if the updated docker image is available.

Mattermost test server updated with git commit dc2c3f1d4f3de6dae8a04fb7942560c00d1e0ae4.
Access here: https://mattermost-webapp-pr-4095.test.mattermost.cloud

New commit detected. SpinWick will upgrade if the updated docker image is available.

Mattermost test server updated with git commit 5a8c8c98324f1e8cccf2fec2283cf02edd795ff8.
Access here: https://mattermost-webapp-pr-4095.test.mattermost.cloud

@DHaussermann Test servers fixed by https://github.com/mattermost/mattermost-webapp/pull/4204 so it works now.

Test server destroyed

@crspeller Is this documented anywhere on developers.mattermost.com?  I can't find a reference to it.

I don't think they are documented there. The docs are in the main docs here: https://docs.mattermost.com/developer/message-attachments.html


fix: nix flakes

Try to fix https://github.com/sxyazi/yazi/issues/303

As discussed on discord, adding YAZI_GEN_COMPLETIONS = true; at line 34 of yazi.nix fixes #303.

Done, thank you for testing!


Support SAS logical interconnect in API300

Scenario/Intent
Add support to SAS logical interconnect in API300.
Environment Details

oneview Cookbook Version: 1.1.0
OneView Version: 300

This was added in #158 anything I missed?

#158 adds the SAS logical interconnect group

Ah! Thanks :)


Update Composer dependencies (2023-05-29-00-10)

Visual regression test passed!
View the visual regression test report


Bump lib-common and services API to v0.1.0 for dev preview

Bump lib-common modules to v0.1.0 tag and cleanup
go.mod file comments.
Note: we need cinder-operator v0.1.0 tag before updating / merging this patch

/retest-required

/retest-required


issue with M1 Mac not able to install electron

Extension Version: v0.4.5
VS Code Version: 1.64.2 (Universal)
OS Version: MacOS Monterey 12.2.1 (21D62)
Node.js Version (result of command node -v):
NPM Version (result of command npm -v):

Steps to Reproduce:

cd ~/.vscode/extensions/anseki.vscode-color-0.4.5
npm i npm

Log (All lines):
(Click menu of VS Code "Help > Toggle Developer Tools", and click "Console" tab)
 INFO IExtensionHostStarter.start() took 38 ms.
workbench.desktop.main.js:578   ERR [Extension Host] (node:91748) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `Electron --trace-deprecation ...` to show where the warning was created)
workbench.desktop.main.js:75 [Extension Host] (node:91748) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.(Use `Electron --trace-deprecation ...` to show where the warning was created)
I @ workbench.desktop.main.js:75
workbench.desktop.main.js:3036 [redhat.vscode-xml]: Cannot register 'redhat.telemetry.enabled'. This property is already registered.
_logMessageInConsole @ workbench.desktop.main.js:3036
workbench.desktop.main.js:3036 [redhat.vscode-yaml]: Cannot register 'redhat.telemetry.enabled'. This property is already registered.
_logMessageInConsole @ workbench.desktop.main.js:3036
workbench.desktop.main.js:578   ERR Problems processing product icons definitions in file:///Users/abhishek/.vscode/extensions/rubenverg.bootstrap-product-icons-1.0.2/icons/bootstrap-product-icon-theme.json:
Invalid font weight in font 'bi'. Ignoring setting.
Invalid font style in font 'bi'. Ignoring setting.
Invalid font weight in font 'fira'. Ignoring setting.
Invalid font style in font 'fira'. Ignoring setting.
workbench.desktop.main.js:1722 Overwriting grammar scope name to file mapping for scope source.graphql.
Old grammar file: file:///Users/abhishek/.vscode/extensions/graphql.vscode-graphql-0.3.41/grammars/graphql.json.
New grammar file: file:///Users/abhishek/.vscode/extensions/kumar-harsh.graphql-for-vscode-1.15.3/syntaxes/graphql.json
register @ workbench.desktop.main.js:1722
workbench.desktop.main.js:1722 Overwriting grammar scope name to file mapping for scope inline.graphql.
Old grammar file: file:///Users/abhishek/.vscode/extensions/graphql.vscode-graphql-0.3.41/grammars/graphql.js.json.
New grammar file: file:///Users/abhishek/.vscode/extensions/kumar-harsh.graphql-for-vscode-1.15.3/syntaxes/graphql.js.json
register @ workbench.desktop.main.js:1722
workbench.desktop.main.js:1722 Overwriting grammar scope name to file mapping for scope markdown.graphql.codeblock.
Old grammar file: file:///Users/abhishek/.vscode/extensions/graphql.vscode-graphql-0.3.41/grammars/graphql.markdown.codeblock.json.
New grammar file: file:///Users/abhishek/.vscode/extensions/kumar-harsh.graphql-for-vscode-1.15.3/syntaxes/graphql.markdown.codeblock.json
register @ workbench.desktop.main.js:1722
workbench.desktop.main.js:1722 Overwriting grammar scope name to file mapping for scope inline.graphql.re.
Old grammar file: file:///Users/abhishek/.vscode/extensions/graphql.vscode-graphql-0.3.41/grammars/graphql.re.json.
New grammar file: file:///Users/abhishek/.vscode/extensions/kumar-harsh.graphql-for-vscode-1.15.3/syntaxes/graphql.re.json
register @ workbench.desktop.main.js:1722
workbench.desktop.main.js:1722 Overwriting grammar scope name to file mapping for scope source.groovy.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/groovy/syntaxes/groovy.tmLanguage.json.
New grammar file: file:///Users/abhishek/.vscode/extensions/naco-siren.gradle-language-0.2.3/syntaxes/groovy.tmLanguage.json
register @ workbench.desktop.main.js:1722
workbench.desktop.main.js:1722 Overwriting grammar scope name to file mapping for scope source.yaml.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json.
New grammar file: file:///Users/abhishek/.vscode/extensions/redhat.vscode-yaml-1.4.0/syntaxes/yaml.tmLanguage.json
register @ workbench.desktop.main.js:1722
workbench.desktop.main.js:75 [Extension Host] vscode
workbench.desktop.main.js:75 [Extension Host] [Guides] Sending usage statistics...
workbench.desktop.main.js:75 [Extension Host] Looking for parseable documents...
workbench.desktop.main.js:75 [Extension Host] Found all parseable documents.
workbench.desktop.main.js:75 [Extension Host] Parsing documents and looking for CSS class definitions...
workbench.desktop.main.js:75 [Extension Host] Summary:
workbench.desktop.main.js:75 [Extension Host]% 164 parseable documents found
workbench.desktop.main.js:75 [Extension Host]% 58829 CSS class definitions found
workbench.desktop.main.js:75 [Extension Host]% 1251 unique CSS class definitions found
workbench.desktop.main.js:75 [Extension Host]% 1 failed attempts to parse. List of the documents:
workbench.desktop.main.js:75 [Extension Host] /Users/abhishek/dev/personal/Aushadhalay/AushNative/node_modules/errorhandler/public/error.html
workbench.desktop.main.js:75 [Extension Host] [vscode-icons] v11.10.0 activated!
workbench.desktop.main.js:578   ERR Cannot read property 'text' of undefined: TypeError: Cannot read property 'text' of undefined
    at onDidChangeTextDocument (/Users/abhishek/.vscode/extensions/floookay.vscode-wpm-monitor-0.4.0/out/extension.js:124:41)
    at l.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:64:1712)
    at y.$acceptDirtyStateChanged (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:93:71246)
    at i._doInvokeHandler (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:97:13801)
    at i._invokeHandler (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:97:13485)
    at i._receiveRequest (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:97:12147)
    at i._receiveOneMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:97:10825)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:97:8934
    at l.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:64:1712)
    at s.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:72:19002)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:112:34390
    at l.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:64:1712)
    at s.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:72:19002)
    at a._receiveMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:72:23583)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:72:21117
    at l.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:64:1712)
    at _.acceptChunk (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:72:15833)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:72:14963
    at Socket.A (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:112:13838)
    at Socket.emit (events.js:315:20)
    at addChunk (internal/streams/readable.js:309:12)
    at readableAddChunk (internal/streams/readable.js:284:9)
    at Socket.Readable.push (internal/streams/readable.js:223:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)
workbench.desktop.main.js:75 [Extension Host] jsxBracketSameLine is deprecated.
I @ workbench.desktop.main.js:75
workbench.desktop.main.js:578   ERR Cannot read property 'text' of undefined: TypeError: Cannot read property 'text' of undefined
    at onDidChangeTextDocument (/Users/abhishek/.vscode/extensions/floookay.vscode-wpm-monitor-0.4.0/out/extension.js:124:41)
    at l.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:64:1712)
    at y.$acceptDirtyStateChanged (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:93:71246)
    at y.$acceptModelSaved (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:93:70989)
    at i._doInvokeHandler (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:97:13801)
    at i._invokeHandler (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:97:13485)
    at i._receiveRequest (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:97:12147)
    at i._receiveOneMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:97:10825)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:97:8934
    at l.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:64:1712)
    at s.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:72:19002)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:112:34390
    at l.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:64:1712)
    at s.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:72:19002)
    at a._receiveMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:72:23583)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:72:21117
    at l.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:64:1712)
    at _.acceptChunk (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:72:15833)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:72:14963
    at Socket.A (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:112:13838)
    at Socket.emit (events.js:315:20)
    at addChunk (internal/streams/readable.js:309:12)
    at readableAddChunk (internal/streams/readable.js:284:9)
    at Socket.Readable.push (internal/streams/readable.js:223:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)
workbench.desktop.main.js:75 [Extension Host] [Guides] Error while sending usage statistics: Error: connect ETIMEDOUT <IP_ADDRESS>:443
workbench.desktop.main.js:75 [Extension Host] [Guides] Usage statistics will retry in the next 5 minutes
workbench.desktop.main.js:578   ERR s.tmpDir is not a function: TypeError: s.tmpDir is not a function
    at e._sendFirstFileOnDisk (/Users/abhishek/.vscode/extensions/msjsdiag.vscode-react-native-1.9.1/dist/rn-extension.js:1:25358)
    at Timeout._onTimeout (/Users/abhishek/.vscode/extensions/msjsdiag.vscode-react-native-1.9.1/dist/rn-extension.js:1:24162)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)

log when i ran npm i npm
npm WARN deprecated<EMAIL_ADDRESS>this library is no longer supported
npm WARN deprecated<EMAIL_ADDRESS>to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated<EMAIL_ADDRESS>please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated<EMAIL_ADDRESS>Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated<EMAIL_ADDRESS>Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated<EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated<EMAIL_ADDRESS>CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated<EMAIL_ADDRESS>Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated<EMAIL_ADDRESS>This package is deprecated in favor of @types/vscode and vscode-test. For more information please read: https://code.visualstudio.com/updates/v1_36#_splitting-vscode-package-into-typesvscode-and-vscodetest
npm ERR! code 1
npm ERR! path /Users/abhishek/.vscode/extensions/anseki.vscode-color-0.4.5/node_modules/electron-prebuilt
npm ERR! command failed
npm ERR! command sh -c node install.js
Downloading electron-v0.37.3-darwin-arm64.zip
npm ERR! Error: GET https://github.com/electron/electron/releases/download/v0.37.3/electron-v0.37.3-darwin-arm64.zip returned 404
npm ERR! /Users/abhishek/.vscode/extensions/anseki.vscode-color-0.4.5/node_modules/electron-prebuilt/install.js:22
npm ERR!   throw err
npm ERR!   ^
npm ERR!
npm ERR! Error: Failed to find Electron v0.37.3 for darwin-arm64 at https://github.com/electron/electron/releases/download/v0.37.3/electron-v0.37.3-darwin-arm64.zip
npm ERR!     at Request.<anonymous> (/Users/abhishek/.vscode/extensions/anseki.vscode-color-0.4.5/node_modules/nugget/index.js:170:61)
npm ERR!     at Request.emit (node:events:526:28)
npm ERR!     at Request.onRequestResponse (/Users/abhishek/.vscode/extensions/anseki.vscode-color-0.4.5/node_modules/request/request.js:1059:10)
npm ERR!     at ClientRequest.emit (node:events:526:28)
npm ERR!     at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:618:27)
npm ERR!     at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
npm ERR!     at TLSSocket.socketOnData (node:_http_client:482:22)
npm ERR!     at TLSSocket.emit (node:events:526:28)
npm ERR!     at addChunk (node:internal/streams/readable:324:12)
npm ERR!     at readableAddChunk (node:internal/streams/readable:297:9)
npm ERR!
npm ERR! Node.js v17.5.0

npm ERR!      /Users/abhishek/.npm/_logs/2022-02-17T10_05_11_736Z-debug-0.log

Hi @Abhishek12345679, thank you for the comment.
Unfortunately, it seems that the old version of Electron that the extension uses was removed from the repository.
I welcome information about any archived files.

I'm sorry but what do you mean by archived files, so that i can look for them.

We can't download the removed file.
Then, I think that someone might know the file at another URL.

ok yeah i will try to find that out.

I think that the extension has already finished its part since VS Code supported internal color picker.
Then, I recommend using the internal color picker instead.

Thank you for your extension, anseki <3.
Can you tell me, how can i turn on the in-built color picker, i haven't been able to find it.

You can read the document here:
https://code.visualstudio.com/updates/v1_15?ref=codebldr#_color-picker
https://code.visualstudio.com/docs/languages/html?source=post_page...#_color-picker
https://code.visualstudio.com/docs/languages/css#_syntax-coloring-color-preview

Looks like it work for css, but not for TS.
Is that a thing?

Thanks !! I'll do that.

:smile:
Could you close this issue?