goatcounter: init at v2.3.0

Description of changes

I've started in #172930, but cleaned up my github account and deleted stuff (long story short, I'm continuing where I left off).
I'm currently running into Issue #182889, so it would be awesome if someone else could try this out:
; nix-build $NIXPKGS -A goatcounter

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[x] aarch64-darwin (tried, but broken due to Issue #182889)

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

@HanEmile since #182889 is now closed, can you please rebase this? I might take a stab at creating a NixOS module for the same then

This builds on x86_64-linux, but I had to change the vendorSha256 to sha256-u+AXkAoaV3YrHyhpRjNT2CiyDO6gkM3lidgyEQNvGso=.

Is this PR just waiting on review?

@ofborg eval


Show related booking in help when in MMB

When I'm in manage my booking, looking on detail of one specific booking, SmartFAQ should be opened with that booking.
See: http://recordit.co/xjhOu7bzvf

Could you give some more details?


[Bug]: transformImport.customName not support a function just like babel-plugn-import customName

Version
transformImport.customName not support a function just like babel-plugn-import customName
Details
transformImport.customName not support a function just like babel-plugn-import customName
Reproduce link
aaa
Reproduce Steps
transformImport.customName not support a function just like babel-plugn-import customName

This is not a bug. Rspack does not support customName function because it will slow down the build performance when performing Rust and JS communication. Currently we have no plan to support it.

customName supports some template strings, such as kebabCase, camelCase, etc.
You can use customName: "foo/es/{{ member }}" instead of  customName: (member) => `foo/es/${member}`, for more details, see rspack - rspackExperiments.import.

customName supports some template strings, such as kebabCase, camelCase, etc. You can use customName: "foo/es/{{ member }}" instead of customName: (member) => `foo/es/${member}`, for more details, see rspack - rspackExperiments.import.

how to operate member?
babel-plugn-import :
customName: member => `foo/es/${member.replace('test', '')}`


feat(aufgabe3): add config options (incl. output of called commands)

Does what title says (in full random test).

Looks good to me, thanks for the contribution


OOM when generating 10000 pages

Version
v2.8.1
Reproduction link
https://nuxtjs.org/
Steps to reproduce
npm run generate
What is expected ?
Generate 10000 pages without oom.
What is actually happening?
OOM occurs.
Additional comments?
Sorry I don't have a reproduction link. I run top command and I found sometimes there are about 30 node process when runing generate, which cause OOM. Why there are so many node process, can i control it by generate.concurrency?

This bug report is available on Nuxt community (#c9533)

nuxt generate is by default a single process, if you need multiple processes you could try to use nuxt-generate-cluster. So unfortunately this sounds like an issue with your project, because its not normal for 30 node processes to be running. Please share a minimal reproduction we can investigate

Take a look at this: https://codesandbox.io/embed/pymmj2r9x7
I run top and ps -ef | grep node command after generate and I found more than one node process.
sandbox@sse-sandbox-pymmj2r9x7:/sandbox$ ps -ef | grep node
root         1     0  0 11:11 ?        00:00:00 /sbin/tini -- node agent
root         8     1  0 11:11 ?        00:00:01 node agent
sandbox     47     8  0 11:11 pts/0    00:00:00 node /opt/yarn-v1.16.0/bin/yarn.js dev
sandbox     71    70  9 11:11 pts/0    00:00:22 /usr/local/bin/node /sandbox/node_modules/.bin/nuxt
sandbox    235     8  0 11:15 pts/4    00:00:00 node /opt/yarn-v1.16.0/bin/yarn.js generate
sandbox    258   257 39 11:15 pts/4    00:00:07 /usr/local/bin/node /sandbox/node_modules/.bin/nuxt generate
sandbox    293   258 23 11:15 pts/4    00:00:02 /usr/local/bin/node /sandbox/node_modules/worker-farm/lib/child/index.js /usr/local/bin/node /sandbox/node_modules/.bin/nuxt generate
sandbox    300   258 43 11:15 pts/4    00:00:04 /usr/local/bin/node /sandbox/node_modules/worker-farm/lib/child/index.js /usr/local/bin/node /sandbox/node_modules/.bin/nuxt generate
sandbox    307   258  4 11:15 pts/4    00:00:00 /usr/local/bin/node /sandbox/node_modules/worker-farm/lib/child/index.js /usr/local/bin/node /sandbox/node_modules/.bin/nuxt generate
sandbox    308   258  4 11:15 pts/4    00:00:00 /usr/local/bin/node /sandbox/node_modules/worker-farm/lib/child/index.js /usr/local/bin/node /sandbox/node_modules/.bin/nuxt generate
sandbox    320   258  9 11:15 pts/4    00:00:00 /usr/local/bin/node /sandbox/node_modules/worker-farm/lib/child/index.js /usr/local/bin/node /sandbox/node_modules/.bin/nuxt generate
sandbox    327   258  3 11:15 pts/4    00:00:00 /usr/local/bin/node /sandbox/node_modules/worker-farm/lib/child/index.js /usr/local/bin/node /sandbox/node_modules/.bin/nuxt generate
sandbox    334   258  6 11:15 pts/4    00:00:00 /usr/local/bin/node /sandbox/node_modules/worker-farm/lib/child/index.js /usr/local/bin/node /sandbox/node_modules/.bin/nuxt generate
sandbox    352   213  0 11:15 pts/3    00:00:00 grep node

Do you only experience this issue on Codesandbox? Can confirm the issue exists.
It seems csb abstracts the node command and somehow runs the nuxt generate command more than once? Not sure how I can login to a sandbox to debug more, but locally I cannot reproduce this issue.
So I am quite sure this is not a Nuxt issue. Lowering the concurrency to 10 does seem to help, but not sure how/why as the generate command might run more than once anyway.

No, I found this issue both on my server(linux) and local compouter (windows). I also found out there are multiple node process while generate command is compiling bundles, and after compiling √ Generated log shown and node process minus to 3.

Where do does worker-farm childs come from? What kind of sandbox are you running?
When I locally generate a project I only have one node process during generation and that is not running as a worker-farm child.

Just the Nuxtjs template codesandbox provided on create sandbox.
I created a totally new project by npx create-nuxt-app test-nuxt. Then I just add one page user/_id.vue in this project and add the following code on nuxt.config.js, no other change to this project:
generate: {
    routes: function() {
      var i = 0;
      var arr = [];
      while (i++ < 10000) {
        arr.push("/user/" + i);
      }
      return Promise.resolve(arr);
    }
  }

make sure there is no other node process

run generate command

7 node process when compiling and then minus to 2.

after all page generated

Zero node process after generate finished.

Wow, thanks for taking the time to submit all those screenshots!
The worker-farm stuff is just webpack, its expected to see those processes during the (webpack) build phase of generating your project. When Nuxt starts generating all the pages, those worker-farm processes should've disappeared.
Back to your OOM, I cant seem to reproduce that with the csb reproduction you posted. Isnt that just something in your code?

There's no OOM in the codesandbox demo. My OOM was casued by too many node processs (about 30 and my server didn't have that much memory), I was wondering why there are so much node process so I created the csb demo to find out where all those node process come from. Maybe something is wrong with my webpack config.

Could you try to just run nuxt build and see what happens? Is your nuxt/webpack config the same as in your repro or is it different? If so please post it as well. Eg have you maybe configured to use build.parallel?

I got this waring when using build.parallel:
 WARN  extractCSS cannot work with parallel build due to limited work pool in thread-loader.

I noticed that node process increasing with pages/modules to build, I trying to found out an optimization.

I found config option relative to the number of node process.
When I set build.terser.parallel to false, there will be only one node process.
According to the document, number of node process is os.cpus().length - 1, but actually more than that.

@pimlie Tks for your helps. I found the solution.


Locale contains _ error

i use https://github.com/sveltekit-i18n/lib/tree/master/examples/locale-router
if change       [current] = Intl.Collator.supportedLocalesOf(locale.replace('_','-'));
https://github.com/sveltekit-i18n/base/blob/272effd898f92888fc17b5735f3317ef067e1cc4/src/utils.ts#L32
I hope to modify here will not prompt an error

hi @muzidudu
if i understand it correctly, the problem is, that in case you use a non-standardized locale it throws an error? that's desired behavior anyway, because this locale can be used later in html lang attribute etc., so it should be in standardized form...

hi @muzidudu if i understand it correctly, the problem is, that in case you use a non-standardized locale it throws an error? that's desired behavior anyway, because this locale can be used later in html lang attribute etc., so it should be in standardized form...

but i set zh-Hans  Prompt error as usual

…also relevant tests should be added…

@muzidudu  Ok, there is probably nothing wrong about the base. It's a bug in the url parer...

example fixed


Leaderboad :  Project setup

Hello👏,
It has been fun setting up the leaderboard project and all has been implemented by:

Setting the project using Webpack.
Using correct git flow.
Following the provided wireframe.

Great review.


Reorganize header file (cupy_cudnn.h)

This PR deletes duplicate declarations.
rel #1675

Please merge the master

I merged the master.

I split this PR.
Please merge #1835 and #1836 before this PR.

You main idea is to make stub header compatible with v2 for rtd. Is it right?

Yes, it is.

@gwtnb Please check.

LGTM


Fix string comparison in test

@miq-bot add_label technical debt, api
@miq-bot assign @abellotti
@abellotti this is a small fix you requested. Can you please queue it behind #13325 ? that one is urgent for me.

Thanks @moolitayer for making this update.


How to cite the course notes?

Hello,
I am a student from Germany currently writing my bachelor's thesis on the topic of Convolutional Neural Networks.
The course notes at http://vision.stanford.edu/teaching/cs231n/ were very helpful for me as a research background, how would I be able to cite them in my work? Who are the authors? Or where do I find the original, general sources, as only the "Additional Sources" are given in each chapter.
Thank you!

bump


Added learner goals api specification

Hi @rj-adams, this PR includes the new api specification for learner goals i.e.

Employment goals
Personal goals
Short term goals
Long term goals

LGTM too :)


Please setup the tracking issue of the client status

As described in README:

This client is still unfinished.

So can we set a tracking issue of the client status?
Within this tracking issue, we can:

Track the current status, and update as needed.
Adding detailed issues.

With this tracking issue, we will:

Split tasks into smaller ones so contributors can start working.
Convert the unfinished status into actionable working on status
Establish a goal for the community: We can start using and contributing to this project.

In a word:
Please don't let the community wait for this project to be finished. Starts building it with the community now.

@Xuanwo, you literally are activating/coaching me, thanks!
I will spend some time to get needed context and study to make things synced(on both status, task breaking perspectives)
Thanks again ~~

For example, we can start by setting up a tracking issue of Release v0.1.
In the very first version of nebula-rust:

Current state, what features we have implemented.
Which features do we want to include?
In which condition can we be ready for the v0.1 release?

@Shylock-Hg let's create/break down tasks so that open source heroes could help contribute!
It could be good timing for the long holiday and the hacktoberfest :)

Hello @Xuanwo :
Thanks your attention to Nebula Graph.
This repo is pending for two reasons: 1. Rust supporting of fb-thrift is not mature 2. There are no enough users try rust for Nebula Graph
If community user want to contribute to this repo, they should to know or to do:

Replace crate by https://crates.io/crates/fbthrift, and adjust it.
Update thrfit IDL file of Nebula Graph, and provide the basic wrapper to data structure.
Provide the basic abstraction about Connection, ConnectionPool, Session and SessionPool, and implement/test them(These could reference implementation of Java https://github.com/vesoft-inc/nebula-java).
Give the basic usage examples.

Thanks, @Shylock-Hg for the milestone/task breaking and guidelines :)


Feature/707 error type fixes

removed dependance on Antelope-SSI-Toolkit by creating in-house function createSigner
exported AntelopePushTransactionError type directly

:tada: This PR is included in version 0.3.49 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


feat: migration to hardhat + relayer support [WIP]

Proposed Changes

[x] Migration to hardhat
[x] Project folders reorg
[x] Fix tests to work with Truffle + OZ Tests
[x] Fix coverage report task
[x] Fix smart contract verification task
[x] Add GCP KMS Signer for deployment
[x] Fix deployment checkpoints
[ ] Fix DaoArtifacts
[ ] Fix ganache deployment to work with hardhat
[ ] Test L2 deployments
[ ] Test Docker setup
[ ] Update docs (env vars, tutorial)
[ ] ~Add OZ Defender Signer for deployment~ (signature issues - will fix in another PR)

moved to another PR: https://github.com/openlawteam/tribute-contracts/pull/488


Exception calling "Save" with "1" argument(s): "Access to the path 'C:\webcommander-master\powershell_def.xml' is denied."

<parameters/>
  <result>
    <customizedOutput>[2016-04-06 16:34:46] Info - copy current definition XML to _def-2016-04-06-04-34-45.xml</customizedOutput>
    <customizedOutput>[2016-04-06 16:34:46] Fail - generate command definition XML</customizedOutput>
    <stderr>
      <exceptionType>System.Management.Automation.MethodInvocationException</exceptionType>
      <fullyQualifiedErrorId>DotNetMethodException</fullyQualifiedErrorId>
      <errMessage><![CDATA[Exception calling "Save" with "1" argument(s): "Access to the path 'C:\webcommander-master\powershell\_def.xml' is denied."]]></errMessage>
      <scriptName>C:\webcommander-master\powershell\genDefXml.ps1</scriptName>
      <scriptLineNumber>202</scriptLineNumber>
      <offsetInLine>2</offsetInLine>
    </stderr>
  </result>
  <returnCode>4444</returnCode>
  <executiontime>5.4 seconds</executiontime>

Anyone knows how to fix this?

I get this when I use Chrome ....

Configure webcommander to run as local administrator or give the user enough privileges.

Thanks, it was indeed permission issues.


[SPARK-43534][BUILD] Add log4j-1.2-api and log4j-slf4j2-impl to classpath if active hadoop-provided

What changes were proposed in this pull request?
This PR adds log4j-1.2-api and log4j-slf4j2-impl to classpath if active hadoop-provided.
Why are the changes needed?
To fix log issue.
How to reproduce this issue:

Build Spark:
./dev/make-distribution.sh --name provided --tgz -Phive -Phive-thriftserver -Pyarn -Phadoop-provided
tar -zxf spark-3.5.0-SNAPSHOT-bin-provided.tgz

Copy the following jars to spark-3.5.0-SNAPSHOT-bin-provided/jars:
guava-14.0.1.jar
hadoop-client-api-3.3.5.jar
hadoop-client-runtime-3.3.5.jar
hadoop-shaded-guava-1.1.1.jar
hadoop-yarn-server-web-proxy-3.3.5.jar
slf4j-api-2.0.7.jar

Add a new log4j2.properties to spark-3.5.0-SNAPSHOT-bin-provided/conf:
rootLogger.level = info
rootLogger.appenderRef.file.ref = File
rootLogger.appenderRef.stderr.ref = console

appender.console.type = Console
appender.console.name = console
appender.console.target = SYSTEM_ERR
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = %d{yy/MM/dd HH:mm:ss,SSS} %p [%t] %c{2}:%L : %m%n

appender.file.type = RollingFile
appender.file.name = File
appender.file.fileName = /tmp/spark/logs/spark.log
appender.file.filePattern = /tmp/spark/logs/spark.%d{yyyyMMdd-HH}.log
appender.file.append = true
appender.file.layout.type = PatternLayout
appender.file.layout.pattern = %d{yy/MM/dd HH:mm:ss,SSS} %p [%t] %c{2}:%L : %m%n
appender.file.policies.type = Policies
appender.file.policies.time.type = TimeBasedTriggeringPolicy
appender.file.policies.time.interval = 1
appender.file.policies.time.modulate = true
appender.file.policies.size.type = SizeBasedTriggeringPolicy
appender.file.policies.size.size = 256M
appender.file.strategy.type = DefaultRolloverStrategy
appender.file.strategy.max = 100

Start Spark thriftserver: sbin/start-thriftserver.sh.

The log file is empty: cat /tmp/spark/logs/spark.log.

Copy the following jars to spark-3.5.0-SNAPSHOT-bin-provided/jars:
log4j-1.2-api-2.20.0.jar
log4j-slf4j2-impl-2.20.0.jar

Restart Spark thriftserver: sbin/start-thriftserver.sh.

The log file is not empty: cat /tmp/spark/logs/spark.log.

This is because hadoop classpath does not contain these jars. So these jars are needed even if hadoop-provided is activated

Does this PR introduce any user-facing change?
No.
How was this patch tested?
Manual test.

Thank you @srowen. I have updated the PR description.

It seems weird that log4j 2 config works, if you add log4j 1.x. Maybe so, just trying to figure out if this is really what's going on and if we have to let log4j 1.x back in? because then we have both log4j in the distribution

Maybe similar reason I made https://github.com/apache/spark/pull/37694 a while ago? Basically Spark logging setup assumes log4j2, but with hadoop provided you get 1.x from Hadoop. So you get weird logging behavior. We just have both providers in the class path and slf seems to pick the 2.x one

Seems reasonable then. Let's just get the tests to run again.

Actually hit a new issue related to this after finally being able to test out 3.4 from the Delta release. Because of the bump to slf4j 2, it seems log4j-slf4j2-impl doesn't get recognized, so it always falls back to the log4j/reload4j 1.x for logging. I had to also include slf4j-api 2.0.6 to get Spark's built-in log handling to work correctly (i.e. SparkContext.setLogLevel)

@Kimahriman Do you have a way to reproduce?

Nevermind it looks like including log4j-1.2-api actually fixes the issue, I wasn't including that before. In fact, just including log4j-1.2-api fixes the issue I made for https://issues.apache.org/jira/browse/SPARK-40246. That might not fix custom log4j2 configs, but at least makes SparkContext.setLogLevel work with a hadoop-provided build

Merged to master


Add deflater compressor support for seata-compressor module.

Why you need it?
Is your feature request related to a problem? Please describe in details
How it could be?
A clear and concise description of what you want to happen. You can explain more about input of the feature, and output of it.
Other related information
Add any other context or screenshots about the feature request here.
Add deflater compressor support for seata-compressor module.

Do we need to support deflater compressor? if need, please assign to me, I want to finish it, thanks!

We will review it later.


Auto Swag Bot - PR Test Gridder

Hello @SendGridDX,Thanks again for the PR! We want to show our appreciation by sending                                              you some swag. Could you please fill out                                              this form so we can send it to you? Thanks!                                             Team SendGrid DX


nxcodec: Modify logic of judging the correctness of incoming pixformat

Summary
emun_format gets all supported formats, matches the passed format parameter, and then sets it via try_fmt
Impact
NA
Testing
NA

@yangsen5请包含提交信息

@yangsen5请包含提交信息

@yangsen5 please fix the compiler error.

@yangsen5 please fix the compiler error.

Fixed, thanks

Thank you @yangsen5 for the update. Please remember to write meaningful commit messages so it includes overview why change is required with brief description on what it does and how. You have my go after commit message is updated :-)


Look into how to scale text-sizes automatically

This is now solvable using the newly added typography components from the Design System


[castai-cluster-controller] cluster vpa

…tiAffinity

Withdrawing, we moved away from installing castai via terraform which makes this PR of no value for us.


Add 2.7.0 version for vmware-vsphere-csi-driver

Add support for latest K8s 1.25 version for VDO along with CSI v2.7.0 support.

@gauravAggrahari Can we go ahead and merge this PR

@asifdxtreme Sure.
FYI, this template version would be available in prod by end of the week ie. 24th March.


Update sbt-typelevel, ... to 0.6.1

About this PR
📦 Updates

org.typelevel:sbt-typelevel
org.typelevel:sbt-typelevel-github-actions
org.typelevel:sbt-typelevel-site

from 0.4.22 to 0.6.1
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.typelevel" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.typelevel" }
}]

labels: sbt-plugin-update, early-semver-major, semver-spec-minor, version-scheme:early-semver, commit-count:1

Superseded by #274.


MM-35392 Load thread unreads for other teams on app load

Summary
This is a subset of @calebroseland's PR #8290  with some minor updates. I'll be submitting further PRs to handle the other tickets related to team thread unreads.
Ticket Link
https://mattermost.atlassian.net/browse/MM-35392
Related Pull Requests

Has server changes (please link here)
Has mobile changes (please link here)

Screenshots

Release Note

NONE

@jwilander
The unread dot on team icon does not persist on refresh.
It is initially present when there are unreads on Threads item on NEW team, but it goes away on refresh and dot flashes on/off on team change. Also, bolding of the Threads item was lost during team switching, but this is not reproducing consistently. See video.
https://user-images.githubusercontent.com/52937121/126547188-57c9e13e-df74-4102-8907-53ec6163f9e8.mov

Hmm thanks @jgilliam17 I'll take a look.

@jgilliam17 can you try again now? I think the previous test server was missing the server side changes.

I'm still seeing the same on the test server. (as in video above)
I logged out of all logged in sessions for sysadmin just to make sure they were not being marked as read accidentally.

Really? I was just trying it on that exact same test server and it seemed to work for me. What repro steps are you using?

Alright, I checked the server again and it's built with the wrong server version. Sorry about that. I'll trigger it to re-build again.

Thanks Joram
Adding repro steps just in case
user1: clear unreads from both teams, view team1
user2: reply to one of the threads on team2 that user1 is also participating in
user1: observe team2 icon, should show unread dot
user1: refresh browser and observe that team2 unread dot disappears
user1: click on team2 to open  - > observe Threads is bolded, don't click on threads to open yet
user1: switch to team1 -> dot blinks into view and is removed from team2 icon again

Still missing the changes. I'll ping you @jgilliam17 when it's ready

Ok @jgilliam17 the test server finally has the correct server version. Good to test again.

Thanks @jwilander
The issue with unread dot is fixed for channel threads.
There is however similar blinking issue with the team icon unread dot when there are DM/GMs with unread replies.
Per ticket description Unread threads in DMs/GMs should not mark the team sidebar as unread, but it appears that this happens briefly. See video.
https://user-images.githubusercontent.com/52937121/126824894-57960471-e426-44f9-965a-c700f2ab3bc7.mov

Thanks @jgilliam17. The blinking issue will be covered as part of https://mattermost.atlassian.net/browse/MM-35393.

/cherry-pick cloud

Cherry pick is scheduled.


[fuzon-http] OpenAPI spec integration

Currently we're following a pretty solid and future-proof API format. In order to further standardize the API and follow best practices, we should follow the OpenAPI specification.
Example libraries that could help in the task:

All-in-one: paperclip (warning: WIP)
Documentation: utoipa

Note: based on OpenAPI.tools some tools might support different OpenAPI versions, we should watch out and make sure we're supporting the latest.

apistos looks good as well.
They both generate OpenAPI v3 docs and support scalar, a modern UI to interactively render openapi docs in the browser.

They both have a "simple-todo" example with actix web. At first sight, apistos looks more intuitive:

utoipa: https://github.com/juhaku/utoipa/blob/master/examples/todo-actix/src/main.rs
apistos: https://github.com/netwo-io/apistos/blob/main/examples/simple-todo/src/main.rs


Lazy-loaded module in new project gives "ɵɵdefineComponent is not a function" / Fixed by changing .browserslistrc

🐞 bug report
Affected Package

 Unknown
Is this a regression?

 Possibly. A new project created in version 9.1 does not have this issue.
Description

I created a new project today using the following:
ng new testapp --packageManager=yarn --skipGit=true --routing=true --style=scss
ng generate module test --module=app --routing --route=test
(then I emptied app.component.html and added <router-outlet></router-outlet>)
ng build

When I visit the /test route in the latest Firefox or Chrome, the developer console shows the error below. Running from the webpack dev server does not exhibit the issue.
This is strange, but I determined that the problem goes away after editing .browserslistrc to change "last 1 Chrome version" to "last 25 Chrome versions". Today this equates to Chrome versions 60-85. Using 'last 1' thru 24 all fail. It's also fixed by adding "> 0.5%". This existed in a new install with Angular 9. It seems this equates to just Chrome versions 83-85. Adding "maintained node versions" also prevents the error.
Sorry ahead of time. I'm aware this could be all my fault or maybe a bug in the browserslist library. Just seems like a brand new install would be fine and it took a long time to track down. I checked similar lazy-load examples in the tutorials and they work, but the Stackblitz projects I reviewed didn't have a browserslist file.
🔬 Minimal Reproduction

https://github.com/davehasagithub/ngtemp
First commit was from ng new, second from ng generate plus an updated app.component.html--that's it!

🔥 Exception or Error
ERROR Error: Uncaught (in promise): TypeError: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ɵɵdefineComponent is not a function
TypeError: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ɵɵdefineComponent is not a function
    at Module.K9yR (test.component.ts:8)
    at __webpack_require__ (bootstrap:84)
    at Module.NBQd (test-routing.module.ts:1)
    at __webpack_require__ (bootstrap:84)
    at Module.FScs (test.module.ts:1)
    at __webpack_require__ (bootstrap:84)
    at ZoneDelegate.invoke (zone-evergreen.js:364)
    at Object.onInvoke (core.js:27431)
    at ZoneDelegate.invoke (zone-evergreen.js:363)
    at Zone.run (zone-evergreen.js:123)
    at resolvePromise (zone-evergreen.js:798)
    at resolvePromise (zone-evergreen.js:750)
    at zone-evergreen.js:860
    at ZoneDelegate.invokeTask (zone-evergreen.js:399)
    at Object.onInvokeTask (core.js:27419)
    at ZoneDelegate.invokeTask (zone-evergreen.js:398)
    at Zone.runTask (zone-evergreen.js:167)
    at drainMicroTaskQueue (zone-evergreen.js:569)

🌍  Your Environment
Angular Version:
Angular CLI: 10.1.1
Node: 14.10.0
OS: linux x64

Angular: 10.1.1
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.1001.1
@angular-devkit/build-angular     0.1001.1
@angular-devkit/build-optimizer   0.1001.1
@angular-devkit/build-webpack     0.1001.1
@angular-devkit/core              10.1.1
@angular-devkit/schematics        10.1.1
@ngtools/webpack                  10.1.1
@schematics/angular               10.1.1
@schematics/update                0.1001.1
rxjs                              6.6.3
typescript                        4.0.2
webpack                           4.44.1
Anything else relevant?

FWIW, I'm running the CLI in a linux VirtualBox in a synced folder and the browser in the Windows host.

I found that adding this to the stock browserslist also seems to fix the issue for me: maintained node versions

I tried your application using npx http-server dist_bad/testapp/ and also was unable to reproduce the reporter behaviour.
When not using differential loading, scripts are marked with the defer attribute. In general I'd actually expect that some errors might occur when using type=module and not the other way round because of it's stricter nature. See: https://gist.github.com/jakub-g/385ee6b41085303a53ad92c7c8afd7a6
Can your try to add type="text/javascript" to the defer script tag?

Thank you! That helped a lot.
I tried using "npx httpd-server" and that worked for me too. Then I tried a clean apache install using dist_bad directly and that also worked. So I looked closer at the http response when it fails.
It turns out, we're returning a content-type of "text/html; charset=Windows-1252". When I force it to "text/html" or "text/html; charset=utf-8", it works.
(Actually, our configs are a little more complicated. We set the type to application/x-httpd-php for .html and that causes it to go through the php module where, for legacy db reasons, our company has php.ini set with a windows charset.)
I'm guessing this causes problems because of the "ɵ" characters in the ɵɵdefineComponent function name shown in the error message. Does that make sense? If this is unsupported, could angular somehow warn? (It seems simple now, but this was really hard for me to track down.)
Thanks again, Alan and Joost.

@davehasagithub, out of curiosity why are you deploying dev mode code on a server?
If you build using —prod the special characters will be converted to ascii, which I believe should solve your issue.
In terms of issuing a warning, I am not quite sure what we can do since this is a server misconfiguration.

Our automated builds use --prod. I just did this as an additional sanity check on my virtual before pushing upgrades from 9.1 to 10.1. I didn't think much of it until it failed--and I don't remember having a problem doing this with 9.1.
Of course I'm embarrassed we use windows-1252, but this configuration is intentional. The work I'm doing here is part of an effort to modernize, but some of the old stack is still shared (including apache w/php). For this, I can just override it in the new virtualhost and... problem solved.
It sounds like non-prod angular builds have a requirement of utf-8. So maybe they could include something like this for anyone who overrides it with an http header:
if (document.characterSet.toUpperCase() !== 'UTF-8') {
  console.error('character set must be utf-8');
}

If that's silly, at least now this case will come up if someone searches for the ɵɵdefineComponent error message. :)

This seems to be more of a framework decision, thus I am transferring the issue back to their repo for a better triage.


Strange deprecation warning

Hi,
I'm getting a deprecation warning from code directly inspired from the docs :
struct Connection {
    registration: Registration,
    readiness: SetReadiness,
}

impl Evented for Connection {
    fn register(&self, poll: &Poll, token: Token, interest: Ready, opts: PollOpt)
         -> Result<()>  {
        self.registration.register(poll, token, interest, opts)
    }

    fn reregister(&self, poll: &Poll, token: Token, interest: Ready, opts: PollOpt)
         -> Result<()> {
        self.registration.reregister(poll, token, interest, opts)
    }

    fn deregister(&self, poll: &Poll) -> Result<()> {
        self.registration.deregister(poll)
    }
}

Strangely I'm getting a warning only for the last method :
warning: use of deprecated item: use `Evented` impl
  --> src\server.rs:49:27
   |
   |         self.registration.deregister(poll)
   |                           ^^^^^^^^^^
   |
   = note: #[warn(deprecated)] on by default

Am I doing something wrong ?
mio 0.6.13
rustc 1.22.1 (05e2e1c41 2017-11-22)
cargo 0.23.0 (61fa02415 2017-11-22)
Windows 10

You should call deregister on Poll: https://docs.rs/mio/0.6.13/mio/struct.Poll.html#method.deregister.

Yes, what @Thomasdezeeuw wrote above is correct. I think the deprecation warning message is poor in this case.
There probably is also a shadowing issue between the inherent fn and the trait fn.

It would probably be a breaking change.

Ok, so can you at least improve the deprecation message and update the example at https://docs.rs/mio/0.6.16/mio/struct.Registration.html, please? I was hit by this just now, if I didn't search the issues I would have a hard time figuring out what to do..


Utils restructure

Description
Add in img_processing subfolder to utils to begin foundation for new file structure as more files are added to utils.
As discussed in Slack, this restructure will break an import in submission.py, which Joe will fix as a part of his next push on that file.
Note: Git history was lost in the three files that were moved to this subfolder.
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[X] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[X] This change requires a documentation update

Change Status

[ ] Complete, tested, ready to review and merge
[X] Complete, but not tested (may need new tests)
[ ] Incomplete/work-in-progress, PR is for discussion/feedback

Has This Been Tested

[ ] Yes
[X] No
[ ] Not necessary

Checklist

[X] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[X] There are no merge conflicts

Closing pull request to fix muddied branch creation and recreate PR from new branch without old, unrelated commits.


Generate all certs and CRLs in pkg/config unit tests

Type of change

Test update
Bug fix

Description

Generate certs and CRLs for unit tests instead of relying on fixtures.
Fix bug where adding an org with a name that is already defined in the consortium was overwriting the existing org config (found while updating tests to use the generated certs/CRLs).

Related issues
FAB-17621
FAB-17645

/ci-run


[ja] Update: ja/docs/concepts/scheduling-eviction/taint-and-toleration.md

Update: ja/docs/concepts/scheduling-eviction/taint-and-toleration.md
https://github.com/kubernetes/website/issues/26882

/lgtm

/approve


improve make azure s3 provider string case insensitive

Proposed changes
Previously it requires upper case provider = AZURE in broker load WITH S3 statement.
This PR changes the string AZURE to case insensitive.

run buildall

run buildall

run buildall

run buildall

run buildall

run buildall


Regex not working properly in templating

Possible bug, Zabbix plugin 3.1.1, Zabbix 3.0.4 and Grafana 3.1.1. Both Zabbix plugin and Grafana was just upgraded from previous version which also had the issue.
I create a templating variable to pull certain servers based on server name by using a regex expression. Sometimes it pulls all the servers but will not use all the servers in the actual panel.

Here is the template, which is only showing 4 of the 11 servers. I did verify in Zabbix that i have data from all servers.

This example shows 0 servers in templating (which is correct)

Yet in the panel graph i see the following two servers

Try to put regex into variable editor in / / - /mule-speech.*.dc12.*/

That helped, changed the regex statement too.


children.map is not a function

For some reason I can't find a way to pass children into the grid.
I'm trying to do this:
<Grid className="layout" cols={12}>
	<div key={1} _grid={{x: 1, y: 0, w: 1, h: 2, static: true}} >
		{this.props.children}
	</div>
</Grid>

but I keep getting ReactGridLayout.js:85  Uncaught TypeError: children.map is not a function error.

Thanks for the catch - this.props.children is not an array when only a single child is present, which is sort of a micro-optimization from the React team (one I don't really agree with).
A fix is published in 0.6.2 which is available now.

Awesome fast fix, thanks :) Works perfectly now.
Didn't know about children not being an array with single child, not agreeing with the team either.


how to get hidden_state from every layers of ViT of sam vision encoder?

thanks a lot

The simplest way is probably to use pytorch's forward hooks functionality to grab the output of the Block modules (assuming that's what you mean by the hidden state of the layers in this case).
You can do something like:
from segment_anything.modeling.image_encoder import Block

# ... assuming SamPredictor & image data are already set up ...

# Use forward hooks to store 'Block' outputs when encoding image
captures = []
hook_func = lambda m, inp, out: captures.append(out)
for m in predictor.model.modules():
    if isinstance(m, Block):
        m.register_forward_hook(hook_func)
with torch.no_grad(): predictor.set_image(image)

print("Number of blocks captured:", len(captures))

You can change the import ... Block part to other model components to grab the corresponding outputs (like the neck or attention outputs).


Logging V2 CRDS

https://banzaicloud.com/docs/one-eye/logging-operator/crds/
For logging v2 a single page will be needed to create / update flows and outputs.  For the flow configuration section users will need to select a namespace. For the output section users will need to be able to configure one or more outputs.  The outputs can be different types and will require different forms.  See https://github.com/rancher/dev-charts/blob/master/packages/rancher-logging/rancher-logging.patch for outputs and fields.

Misunderstood the requirements for this issue.  Closing to create a more effective ticket.


Invalid hash for YUP

I'm getting this issue on a fresh install (fresh Windows, fresh Steam, fresh FNV after following the pre-modlist installation instructions)
[ERROR] (Wabbajack.Installer.StandardInstaller) Hashes for mods\Yukichigai Unofficial Patch - YUP\YUP - Base Game + All DLC.esm did not match, expected SLuc29QNfNQ= got EDlird4PXus=

I cleared out the VNV install directory and tried again just to be sure.

Yes, YUP was updated recently. We have to wait for VNV WJ modlist update.

This is fixed in v1.5.2


Repeatedly Saves File, Indefinitely

When saving a file with the latest version of wsSanitizer, often it will repeatedly save the file continuously, making the file unusable.
This can be seen by the 'unsaved changes' icon flicking on and off and files constantly being passed to external compilers.
A recent commit seems to have suggested this was fixed (or a similar thing), but in this case it doesn't seem to be.
I have tried removing the plugin entirely and getting the latest version from the extensions GUI to no avail.
Is there a method of seeing if there are any clashes with other plugins?

I also started experiencing this some 20 minutes ago. I haven't experienced this issue before that.

Yeah that's a problem.    I personally havent ran into it since I "fixed it"...  What version of Brackets are you folks using?  And what OS?

Brackets:
Release 1.2 experimental build 1.2.0-15697 (release 8f82e2a97)
build timestamp: Tue Feb 24 2015 21:16:20 GMT-0800

OS: openSUSE 13.1 x86_64
Extension list:
sven@linux-etoq:~/.config/Brackets/extensions/user> cat */package.json | jq [.name,.version]
[
  "angularui.angularjs",
  "1.1.2"
]
[
  "asgerf.bracket-rename",
  "0.2.8"
]
[
  "a-type.pjs-syntax-highlighting",
  "1.0.0"
]
[
  "bigeyex.brackets-wordhint",
  "1.0.2"
]
[
  "blueprint.outliner",
  "0.9.2"
]
[
  "brackets-angularjs-codehints",
  "0.0.2"
]
[
  "brackets-apache-syntax",
  "1.0.0"
]
[
  "brackets-beautify",
  "1.1.6"
]
[
  "brackets-boilerplate",
  "0.4.3"
]
[
  "brackets-bower",
  "0.2.5"
]
[
  "brackets-builder",
  "0.0.3"
]
[
  "brackets-display-shortcuts",
  "1.2.2"
]
[
  "brackets-emmet",
  "1.2.2"
]
[
  "brackets-go",
  "0.0.2"
]
[
  "brackets-html5codehints",
  "1.2.1"
]
[
  "brackets-indentator",
  "1.0.3"
]
[
  "brackets-indent-guides",
  "1.3.3"
]
[
  "brackets-integrated-development",
  "0.5.59"
]
[
  "brackets-livescript",
  "0.0.2"
]
[
  "brackets-lorem-ipsum",
  "1.0.2"
]
[
  "brackets-morecsscodehints",
  "1.2.0"
]
[
  "brackets-nodejs",
  "1.4.0"
]
[
  "brackets-preferences-viewer",
  "1.0.5"
]
[
  "brackets-rezymer",
  "1.2.0"
]
[
  "brackets-rst",
  "1.0.2"
]
[
  "brackets-smooth-scroll",
  "0.0.1"
]
[
  "brackets-sort-text",
  "0.1.3"
]
[
  "brackets.swatcher",
  "1.1.0"
]
[
  "brackets-textile",
  "1.0.1"
]
[
  "brackets-wakatime",
  "1.0.4"
]
[
  "busykai.indent-right",
  "0.0.5"
]
[
  "camden.caniuse",
  "2.0.9"
]
[
  "codehighlighter-switcher",
  "1.0.1"
]
[
  "colorhints",
  "1.1.1"
]
[
  "com.nextrevision.puppet-syntax",
  "0.1.6"
]
[
  "crot4lus.brackets-tabs",
  "0.1.2"
]
[
  "custom-placeholdit-for-brackets-jara.phit",
  "0.0.2"
]
[
  "dart",
  "1.0.0"
]
[
  "dnbard.extensions-rating",
  "0.6.4"
]
[
  "dnbard.postman",
  "0.1.1"
]
[
  "dnbard.projects",
  "0.1.6"
]
[
  "donebyexperts.quick-show-in-file-tree",
  "0.0.1"
]
[
  "donutteam.pastebin",
  "1.0.0"
]
[
  "drewkoch.icons",
  "1.3.1"
]
[
  "enturn.quick-search",
  "1.1.4"
]
[
  "fede91.brackets-preferences-ui",
  "1.1.0"
]
[
  "fezvrasta.brackets-upper-titlebar",
  "1.0.7"
]
[
  "francescolaffi.vagrant",
  "0.1.0"
]
[
  "georapbox.brackets-notes",
  "1.0.8"
]
[
  "growlscript.brackets.classcompletion",
  "0.2.1"
]
[
  "gruehle.exclude-folders",
  "0.1.0"
]
[
  "gruehle.markdown-preview",
  "1.0.10"
]
[
  "hirse.outline-list",
  "0.5.1"
]
[
  "insya.units",
  "0.0.6"
]
[
  "io.brackets.color-palette",
  "2.0.1"
]
[
  "io.brackets-sass-code-hints",
  "0.1.0"
]
[
  "io.brackets.svg-code-hints",
  "1.1.0"
]
[
  "jade",
  "2.0.0"
]
[
  "jasonsanjose.brackets-sass",
  "2.0.1-109"
]
[
  "jeffbooher.new-project",
  "0.4.93"
]
[
  "jeremylee.brackets-smarty",
  "1.0.0"
]
[
  "johnwu.brackets-code-connect",
  "0.1.1"
]
[
  "josecols.python-tidy",
  "1.0.1"
]
[
  "jrowny.brackets.snippets",
  "1.1.0"
]
[
  "lb4b",
  "0.0.2"
]
[
  "lh.brackets.syntax-highlighter-jinja2",
  "1.0.0"
]
[
  "lka.gistr",
  "0.3.2"
]
[
  "lua",
  "1.0.0"
]
[
  "mikaeljorhult.brackets-autoprefixer",
  "0.5.20"
]
[
  "mikaeljorhult.brackets-todo",
  "0.8.1"
]
[
  "mirc",
  "1.0.0"
]
[
  "notasz-uitheming",
  "1.0.0"
]
[
  "pflynn.brackets.commands.guide",
  "1.0.5"
]
[
  "pflynn.copy-as-html",
  "1.0.5"
]
[
  "pflynn.eval-in-browser",
  "1.0.2"
]
[
  "pflynn.everyscrub",
  "1.4.0"
]
[
  "pflynn.goto_last_edit",
  "1.0.1"
]
[
  "pflynn.jump-to-matching-brace",
  "1.1.0"
]
[
  "pflynn.reasonable-comments",
  "1.3.0"
]
[
  "pflynn.regex-editor",
  "1.1.3"
]
[
  "php-sig.php-smarthints",
  "1.1.3"
]
[
  "pretty_json",
  "0.1.2"
]
[
  "pythonista-dark",
  "1.0.0"
]
[
  "quickdocsjs",
  "1.6.5"
]
[
  "quickdocsphp",
  "1.4.7"
]
[
  "quickdocsregex",
  "0.1.1"
]
[
  "quick-require",
  "0.5.0"
]
[
  "ruby-blue",
  "1.3.1"
]
[
  "soimon.brackets-document-outliner",
  "1.0.2"
]
[
  "stripper-theme",
  "0.1.0"
]
[
  "themesforbrackets",
  "2.0.11"
]
[
  "theseus",
  "0.4.19"
]
[
  "tommalbran.brackets-fonts-viewer",
  "0.4.0"
]
[
  "tomorrow-night-bright",
  "1.0.2"
]
[
  "toshsharma.bookmarks",
  "1.0.1"
]
[
  "zaggino.brackets-git",
  "0.14.24"
]

Holy smokes that's a lot of extension!! :D

Can you easily reproduce the issue?  What are the steps?  Meaning... Your file has mixed tabs and spaces, and sanitizer converts them to tabs... Or is sanitizer converting to spaces?

Hehe yes, I went a little crazy. Hasn't really caused me any issues before, though :)

Whoops, ninja'd. It happened with a .js file when I tried to save it, even after restarts... doesn't seem to have anything to do with spacing, as far as I know it was consistent. It should be converting to tabs. If you have a sample file for me that works on your system, I can test it here?

all my public projects use spaces...  But the few that use tabs dont seem to cause me any issues. Let me take a look at the code.  I know how the spot it could kinda sorta happen, but it's a nasty little timing issue.  It basically boils down to the document save listener that triggers a sanitize...  and once sanitize is done, I manually trigger the save again.  So if there is a weird timing issue, that can get stuck in a loop.  And I have a safety guard.  So I am not sure how this can all happen.
https://github.com/MiguelCastillo/Brackets-wsSanitizer/blob/master/main.js#L48
I assume you are running v1.0.0?

In case it helps, I'm on Brackets 1.3 but it happened in previous versions and I'm running OSX Yosemite.
My projects use tabs and it triggers almost every save, even if it hasn't converted anything (I.e. everything is already tabs). I've noticed it in both js and scss files.

Oh and yes, v1.0.0 is correct.

Do you think it would be possible to share the file with me?  Also, how many spaces per tab do you have Brackets configured to?

Typical bug, as soon as you go to show someone else, it doesn't happen.
I had uninstalled it because it made Brackets unusable as it was happening nigh on every save in every file. I just re-installed (which I had tried previously, on more than one occasion) but now I can't actually make it bug out in any of the files I've seen it happen before. I've even tried changing some of the indentation to spaces to trigger actual changes by wsSanitizer (which brought up a minor bug I will file separately).
I'm on my home machine rather than my work machine at the moment, but each is running the same version of Brackets and OSX.
If I see it happen again, in addition to sending you the particular file, is there anything else you would want me to tell you about the machine?

@MiguelCastillo I could share the file with you, but this specific file is probably not one I can share publicly on here... can I e-mail it to you?
I tried to reproduce with a mock file:
function(arg) {
	asdfasdf;
}

... but could not reproduce it this way.

@joepie91 Yeah of course, email it to me is fine<EMAIL_ADDRESS>   :/    Yeah if you can email me the file and how many spaces per tab you configured brackets to, that would be really helpful.
I am thinking there are jsdoc type of comments that has a white space in there...  And that's mixed with tabs, so my logic to detect tab/space mixture is triggered.  The logic is correct in detecting that, but it seems like that's not the behavior we want.  I am reworking some of the logic right now...  But files to test would be awesome! :)

@lewishowles @joepie91 Hey folks, I have added a few lines for logging what's going on.  It's https://github.com/MiguelCastillo/Brackets-wsSanitizer/commit/60fa9112c20bab9279a2dac6c6d3416e1803138a
Do you think you can apply those changes to your installed extension to help me debug this issue?  I am really at a loss here because I am unable to reproduce the issue :-/
If you reproduce the issue, can you paste the console.log here?  Or email it to me if there is sensitive information in the trace.
Let me know if you need help applying those changes.

That's from a single save, I should note. It just keeps going endlessly.

@joepie91 Well, that trace does not make any sense...  "Trigger save" shows that doc.__saving is set to true... And then "Skip save" shows it as undefined.  The only way that's possible is if the doc is not the same instance, or the setTimeout to save the document isn't really working and runs the code synchronously.
Can you set the setTimeout to maybe 100? e.g.
      setTimeout(function() {
        CommandManager.execute(Commands.FILE_SAVE, {doc: doc})
          .always(function() {
            delete doc.__saving;
          });
      }, 100);

I've gone a little further...
  function runSanitizer(evt, doc) {
	var rnd = Math.floor(Math.random() * 1000);
    console.log("1. ====> Skip save", rnd, doc.__saving);
    if (doc.__saving) {
      console.log("1.5 =====> Returning early...", rnd);
      return;
    }
    console.log("2. =====> Still running", rnd, doc.__saving);
    doc.__saving = true;
    console.log("3. =====> Saving now set to ", rnd, doc.__saving);
    doc.batchOperation(function () {
	  console.log("4. =====> Saving in batch set to ", rnd, doc.__saving);
      var oldText = doc.getText();
      sanitize(doc);
      var newText = doc.getText();
      console.log("5. ====> Trigger save", rnd, oldText === newText, doc.__saving);

      console.log("6. ====> Setting timeout", rnd);
      setTimeout(function() {
		console.log("7. ====> Timeout triggered", rnd);
        CommandManager.execute(Commands.FILE_SAVE, {doc: doc})
          .always(function() {
			console.log("8. =====> Deleting 'saving' flag", rnd);
            delete doc.__saving;
          });
      }, 2000);
    });
  }

Output:

Looks like this isn't the issue you fixed - there's no race condition, everything is called only once and perfectly in order (per the randomly generated number). But once the document has been saved, it triggers a re-save for some reason.

@joepie91 Yeah that sequence is wrong. Between step 7 and 8 I should have seen step 1 and 1.5 get logged, which happens because of the save operation I am triggering is on next tick. That's exactly why you are getting stuck in a loop.  So it seems that either setTimeout isn't working at all, or CommandManager.execute(Commands.FILE_SAVE, {doc: doc}) is not running on next tick. Both cases seem really odd, but it's gotta be one of them.
Below is what my stack trace looks like.
main.js:57 1. ====> Skip save 404 undefined
main.js:62 2. =====> Still running 404 undefined
main.js:64 3. =====> Saving now set to  404 true
main.js:66 4. =====> Saving in batch set to  404 true
main.js:70 5. ====> Trigger save 404 false true
main.js:72 6. ====> Setting timeout 404
main.js:74 7. ====> Timeout triggered 404
main.js:57 1. ====> Skip save 153 true
main.js:59 1.5 =====> Returning early... 153
main.js:77 8. =====> Deleting 'saving' flag 404

I have pushed new changes with your logging, an extra timeout, and logging the actual timeout value of the first setTimeout.  Do you think you can run those changes and paste the trace again, please?  That trace is really helpful.  Thank you! :)
https://github.com/MiguelCastillo/Brackets-wsSanitizer/commit/58c951e1d1a6e4196a7dc622ef4bd4ab37ea094b

I actually just got this after accepting the new UI's request to sanitize my file. It looked to me like the rest of Brackets' interface was flashing, the code folding was blinking on and off. I'll try and get a way to reproduce.

Hi folks. I have released a new version and I have changed a bit of the logic around saving...  Added an option to disable autosave so that people are not completely stuck.  Do folks think you can give this a try?  it's already pushed to the registry.  Thanks!!


Fix "--update-specs" on Windows

Issue #, if available: https://github.com/aws-cloudformation/cfn-python-lint/issues/1370
Description of changes:
Fixes "--update-specs" on Windows and the test test_success_rds_dbcluster.

Thanks @miparnisari .  On another note I've been doing some testing with github actions which has some really easy windows testing capabilities.  Was noticing this issue in a few more spots too.


Handle gRPC failure

If the broker is not up when workers start, then the first call to a ZBClient method will throw an unhandled exception, which can crash an entire process if it's not handled in the application.
Here is an example of handling it at the application layer, when waiting - for example - for a broker container to start:
async function main() {
	const zbc = new ZBClient(config.ZEEBE_GATEWAY);
	await promiseRetry((retry, number) => {
		if (number > 1) {
			console.log("gRPC connection is in failed state...");
		}
		return deployBpmn(zbc).catch(retry);
	});
	console.log("gRPC connection to broker established.");
	startZeebeWorkers(zbc);
	startRESTServer(zbc);
}

This should be wrapped into the ZBClient class, to remove the responsibility for handling this from the application.

It's not that simple.....
When running the integration tests on the proposed change, I notice these cases, which you do not want to retry:

cancelWorkflowInstance() - if the workflowInstance doesn't exist, you don't want to keep retrying.

setVariables - probably the same thing.

deployWorkflow - what if the workflow fails to deploy because it has an error in the BPMN? You don't want to retry that.

Proposed behaviour

Operations retry, but only if the error message starts with '14' - indicating a network error. This can be caused by passing in an unresolvable gateway address (DNS Resolution failed), or by the gateway not being ready yet (UNAVAILABLE: failed to connect to all addresses).
Retry is enabled by default, and can be disabled by passing { retry: false } to the client constructor.
maxRetries and maxRetryTimeout are also configurable through the constructor options. By default, if not supplied, the values are:

ZBClient(gatewayAddress, {
    retry: true,
    maxRetries: 50,
    maxRetryTimeout: 5000
})

Retry is provided by promise-retry, and the back-off strategy is simple ^2.

With 2.3.0 of the zeebe-node client, my worker container would blow up if it started before the broker (which it always did, because Node vs Java), and I had to use restart: always to get it sync up with the broker.
Here is what it looks like now, using zeebe-node-next with PR #41 :
14 UNAVAILABLE: failed to connect to all addresses
gRPC connection is in failed state. Attempt 2. Retrying in 5s...
14 UNAVAILABLE: failed to connect to all addresses
gRPC connection is in failed state. Attempt 3. Retrying in 5s...
14 UNAVAILABLE: failed to connect to all addresses
gRPC connection is in failed state. Attempt 4. Retrying in 5s...
gRPC connection to broker established.


panic: TransactionExecutionLimit: Timeout after 58 attempts, last error: ConnectivityError: Unable to retrieve routing table from localhost:7687: localhost:7687 does not support routing

This probelem I have google milion times but I can't go through with it. Maybe this probelem is solved in this link https://github.com/neo4j/neo4j-go-driver/issues/219
but I can't not find the solution.
And this is my config:
#*****************************************************************
# Neo4j configuration
#
# For more details and a complete list of settings, please see
# https://neo4j.com/docs/operations-manual/3.5/reference/configuration-settings/
#*****************************************************************

# The name of the database to mount
#dbms.active_database=graph.db

# Paths of directories in the installation.
#dbms.directories.data=data
#dbms.directories.plugins=plugins
#dbms.directories.certificates=certificates
#dbms.directories.logs=logs
#dbms.directories.lib=lib
#dbms.directories.run=run

# This setting constrains all `LOAD CSV` import files to be under the `import` directory. Remove or comment it out to
# allow files to be loaded from anywhere in the filesystem; this introduces possible security problems. See the
# `LOAD CSV` section of the manual for details.
dbms.directories.import=import

# Whether requests to Neo4j are authenticated.
# To disable authentication, uncomment this line
#dbms.security.auth_enabled=false
dbms.security.auth_enabled=false

# Enable this to be able to upgrade a store from an older version.
#dbms.allow_upgrade=true

# Java Heap Size: by default the Java heap size is dynamically
# calculated based on available system resources.
# Uncomment these lines to set specific initial and maximum
# heap size.
#dbms.memory.heap.initial_size=512m
#dbms.memory.heap.max_size=512m

# The amount of memory to use for mapping the store files, in bytes (or
# kilobytes with the 'k' suffix, megabytes with 'm' and gigabytes with 'g').
# If Neo4j is running on a dedicated server, then it is generally recommended
# to leave about 2-4 gigabytes for the operating system, give the JVM enough
# heap to hold all your transaction state and query context, and then leave the
# rest for the page cache.
# The default page cache memory assumes the machine is dedicated to running
# Neo4j, and is heuristically set to 50% of RAM minus the max Java heap size.
#dbms.memory.pagecache.size=10g

#*****************************************************************
# Network connector configuration
#*****************************************************************

# With default configuration Neo4j only accepts local connections.
# To accept non-local connections, uncomment this line:
#dbms.connectors.default_listen_address=<IP_ADDRESS>
#dbms.connectors.default_listen_address=<IP_ADDRESS>

# You can also choose a specific network interface, and configure a non-default
# port for each connector, by setting their individual listen_address.

# The address at which this server can be reached by its clients. This may be the server's IP address or DNS name, or
# it may be the address of a reverse proxy which sits in front of the server. This setting may be overridden for
# individual connectors below.
#dbms.connectors.default_advertised_address=localhost

# You can also choose a specific advertised hostname or IP address, and
# configure an advertised port for each connector, by setting their
# individual advertised_address.

# Bolt connector
dbms.connector.bolt.enabled=true
#dbms.connector.bolt.tls_level=OPTIONAL
#dbms.connector.bolt.listen_address=:7687

# HTTP Connector. There can be zero or one HTTP connectors.
dbms.connector.http.enabled=true
#dbms.connector.http.listen_address=:7474

# HTTPS Connector. There can be zero or one HTTPS connectors.
dbms.connector.https.enabled=true
#dbms.connector.https.listen_address=:7473

# Number of Neo4j worker threads.
#dbms.threads.worker_count=

#*****************************************************************
# SSL system configuration
#*****************************************************************

# Names of the SSL policies to be used for the respective components.

# The legacy policy is a special policy which is not defined in
# the policy configuration section, but rather derives from
# dbms.directories.certificates and associated files
# (by default: neo4j.key and neo4j.cert). Its use will be deprecated.

# The policies to be used for connectors.
#
# N.B: Note that a connector must be configured to support/require
#      SSL/TLS for the policy to actually be utilized.
#
# see: dbms.connector.*.tls_level

#bolt.ssl_policy=legacy
#https.ssl_policy=legacy

#*****************************************************************
# SSL policy configuration
#*****************************************************************

# Each policy is configured under a separate namespace, e.g.
#    dbms.ssl.policy.<policyname>.*
#
# The example settings below are for a new policy named 'default'.

# The base directory for cryptographic objects. Each policy will by
# default look for its associated objects (keys, certificates, ...)
# under the base directory.
#
# Every such setting can be overridden using a full path to
# the respective object, but every policy will by default look
# for cryptographic objects in its base location.
#
# Mandatory setting

#dbms.ssl.policy.default.base_directory=certificates/default

# Allows the generation of a fresh private key and a self-signed
# certificate if none are found in the expected locations. It is
# recommended to turn this off again after keys have been generated.
#
# Keys should in general be generated and distributed offline
# by a trusted certificate authority (CA) and not by utilizing
# this mode.

#dbms.ssl.policy.default.allow_key_generation=false

# Enabling this makes it so that this policy ignores the contents
# of the trusted_dir and simply resorts to trusting everything.
#
# Use of this mode is discouraged. It would offer encryption but no security.

#dbms.ssl.policy.default.trust_all=false

# The private key for the default SSL policy. By default a file
# named private.key is expected under the base directory of the policy.
# It is mandatory that a key can be found or generated.

#dbms.ssl.policy.default.private_key=

# The private key for the default SSL policy. By default a file
# named public.crt is expected under the base directory of the policy.
# It is mandatory that a certificate can be found or generated.

#dbms.ssl.policy.default.public_certificate=

# The certificates of trusted parties. By default a directory named
# 'trusted' is expected under the base directory of the policy. It is
# mandatory to create the directory so that it exists, because it cannot
# be auto-created (for security purposes).
#
# To enforce client authentication client_auth must be set to 'require'!

#dbms.ssl.policy.default.trusted_dir=

# Client authentication setting. Values: none, optional, require
# The default is to require client authentication.
#
# Servers are always authenticated unless explicitly overridden
# using the trust_all setting. In a mutual authentication setup this
# should be kept at the default of require and trusted certificates
# must be installed in the trusted_dir.

#dbms.ssl.policy.default.client_auth=require

# It is possible to verify the hostname that the client uses
# to connect to the remote server. In order for this to work, the server public
# certificate must have a valid CN and/or matching Subject Alternative Names.

# Note that this is irrelevant on host side connections (sockets receiving
# connections).

# To enable hostname verification client side on nodes, set this to true.

#dbms.ssl.policy.default.verify_hostname=false

# A comma-separated list of allowed TLS versions.
# By default only TLSv1.2 is allowed.

#dbms.ssl.policy.default.tls_versions=

# A comma-separated list of allowed ciphers.
# The default ciphers are the defaults of the JVM platform.

#dbms.ssl.policy.default.ciphers=

#*****************************************************************
# Logging configuration
#*****************************************************************

# To enable HTTP logging, uncomment this line
#dbms.logs.http.enabled=true

# Number of HTTP logs to keep.
#dbms.logs.http.rotation.keep_number=5

# Size of each HTTP log that is kept.
#dbms.logs.http.rotation.size=20m

# To enable GC Logging, uncomment this line
#dbms.logs.gc.enabled=true

# GC Logging Options
# see http://docs.oracle.com/cd/E19957-01/819-0084-10/pt_tuningjava.html#wp57013 for more information.
#dbms.logs.gc.options=-XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime -XX:+PrintPromotionFailure -XX:+PrintTenuringDistribution

# For Java 9 and newer GC Logging Options
# see https://docs.oracle.com/javase/10/tools/java.htm#JSWOR-GUID-BE93ABDC-999C-4CB5-A88B-1994AAAC74D5
#dbms.logs.gc.options=-Xlog:gc*,safepoint,age*=trace

# Number of GC logs to keep.
#dbms.logs.gc.rotation.keep_number=5

# Size of each GC log that is kept.
#dbms.logs.gc.rotation.size=20m

# Log level for the debug log. One of DEBUG, INFO, WARN and ERROR. Be aware that logging at DEBUG level can be very verbose.
#dbms.logs.debug.level=INFO

# Size threshold for rotation of the debug log. If set to zero then no rotation will occur. Accepts a binary suffix "k",
# "m" or "g".
#dbms.logs.debug.rotation.size=20m

# Maximum number of history files for the internal log.
#dbms.logs.debug.rotation.keep_number=7

#*****************************************************************
# Miscellaneous configuration
#*****************************************************************

# Enable this to specify a parser other than the default one.
#cypher.default_language_version=2.3

# Determines if Cypher will allow using file URLs when loading data using
# `LOAD CSV`. Setting this value to `false` will cause Neo4j to fail `LOAD CSV`
# clauses that load data from the file system.
#dbms.security.allow_csv_import_from_file_urls=true

# Value of the Access-Control-Allow-Origin header sent over any HTTP or HTTPS
# connector. This defaults to '*', which allows broadest compatibility. Note
# that any URI provided here limits HTTP/HTTPS access to that URI only.
#dbms.security.http_access_control_allow_origin=*

# Value of the HTTP Strict-Transport-Security (HSTS) response header. This header
# tells browsers that a webpage should only be accessed using HTTPS instead of HTTP.
# It is attached to every HTTPS response. Setting is not set by default so
# 'Strict-Transport-Security' header is not sent. Value is expected to contain
# directives like 'max-age', 'includeSubDomains' and 'preload'.
#dbms.security.http_strict_transport_security=

# Retention policy for transaction logs needed to perform recovery and backups.
dbms.tx_log.rotation.retention_policy=1 days

# Only allow read operations from this Neo4j instance. This mode still requires
# write access to the directory for lock purposes.
#dbms.read_only=false

# Comma separated list of JAX-RS packages containing JAX-RS resources, one
# package name for each mountpoint. The listed package names will be loaded
# under the mountpoints specified. Uncomment this line to mount the
# org.neo4j.examples.server.unmanaged.HelloWorldResource.java from
# neo4j-server-examples under /examples/unmanaged, resulting in a final URL of
# http://localhost:7474/examples/unmanaged/helloworld/{nodeId}
#dbms.unmanaged_extension_classes=org.neo4j.examples.server.unmanaged=/examples/unmanaged

# A comma separated list of procedures and user defined functions that are allowed
# full access to the database through unsupported/insecure internal APIs.
#dbms.security.procedures.unrestricted=my.extensions.example,my.procedures.*

# A comma separated list of procedures to be loaded by default.
# Leaving this unconfigured will load all procedures found.
#dbms.security.procedures.whitelist=apoc.coll.*,apoc.load.*

#********************************************************************
# JVM Parameters
#********************************************************************

# G1GC generally strikes a good balance between throughput and tail
# latency, without too much tuning.
dbms.jvm.additional=-XX:+UseG1GC

# Have common exceptions keep producing stack traces, so they can be
# debugged regardless of how often logs are rotated.
dbms.jvm.additional=-XX:-OmitStackTraceInFastThrow

# Make sure that `initmemory` is not only allocated, but committed to
# the process, before starting the database. This reduces memory
# fragmentation, increasing the effectiveness of transparent huge
# pages. It also reduces the possibility of seeing performance drop
# due to heap-growing GC events, where a decrease in available page
# cache leads to an increase in mean IO response time.
# Try reducing the heap memory, if this flag degrades performance.
dbms.jvm.additional=-XX:+AlwaysPreTouch

# Trust that non-static final fields are really final.
# This allows more optimizations and improves overall performance.
# NOTE: Disable this if you use embedded mode, or have extensions or dependencies that may use reflection or
# serialization to change the value of final fields!
dbms.jvm.additional=-XX:+UnlockExperimentalVMOptions
dbms.jvm.additional=-XX:+TrustFinalNonStaticFields

# Disable explicit garbage collection, which is occasionally invoked by the JDK itself.
dbms.jvm.additional=-XX:+DisableExplicitGC

# Remote JMX monitoring, uncomment and adjust the following lines as needed. Absolute paths to jmx.access and
# jmx.password files are required.
# Also make sure to update the jmx.access and jmx.password files with appropriate permission roles and passwords,
# the shipped configuration contains only a read only role called 'monitor' with password 'Neo4j'.
# For more details, see: http://download.oracle.com/javase/8/docs/technotes/guides/management/agent.html
# On Unix based systems the jmx.password file needs to be owned by the user that will run the server,
# and have permissions set to 0600.
# For details on setting these file permissions on Windows see:
#     http://docs.oracle.com/javase/8/docs/technotes/guides/management/security-windows.html
#dbms.jvm.additional=-Dcom.sun.management.jmxremote.port=3637
#dbms.jvm.additional=-Dcom.sun.management.jmxremote.authenticate=true
#dbms.jvm.additional=-Dcom.sun.management.jmxremote.ssl=false
#dbms.jvm.additional=-Dcom.sun.management.jmxremote.password.file=/absolute/path/to/conf/jmx.password
#dbms.jvm.additional=-Dcom.sun.management.jmxremote.access.file=/absolute/path/to/conf/jmx.access

# Some systems cannot discover host name automatically, and need this line configured:
#dbms.jvm.additional=-Djava.rmi.server.hostname=$THE_NEO4J_SERVER_HOSTNAME

# Expand Diffie Hellman (DH) key size from default 1024 to 2048 for DH-RSA cipher suites used in server TLS handshakes.
# This is to protect the server from any potential passive eavesdropping.
dbms.jvm.additional=-Djdk.tls.ephemeralDHKeySize=2048

# This mitigates a DDoS vector.
dbms.jvm.additional=-Djdk.tls.rejectClientInitiatedRenegotiation=true

# This filter prevents deserialization of arbitrary objects via java object serialization, addressing potential vulnerabilities.
# By default this filter whitelists all neo4j classes, as well as classes from the hazelcast library and the java standard library.
# These defaults should only be modified by expert users!
# For more details (including filter syntax) see: https://openjdk.java.net/jeps/290
#dbms.jvm.additional=-Djdk.serialFilter=java.**;org.neo4j.**;com.neo4j.**;com.hazelcast.**;net.sf.ehcache.Element;com.sun.proxy.*;org.openjdk.jmh.**;!*

#********************************************************************
# Wrapper Windows NT/2000/XP Service Properties
#********************************************************************
# WARNING - Do not modify any of these properties when an application
#  using this configuration file has been installed as a service.
#  Please uninstall the service before modifying this section.  The
#  service can then be reinstalled.

# Name of the service
dbms.windows_service_name=neo4j

#********************************************************************
# Other Neo4j system properties
#********************************************************************
dbms.jvm.additional=-Dunsupported.dbms.udc.source=zip

And this is my error pressetion:

And this is the code of run at that time :
//package main
//
//import (
//	"fmt"
//	"github.com/neo4j/neo4j-go-driver/v4/neo4j"
//)

//import (
//	"fmt"
//	"github.com/neo4j/neo4j-go-driver/v4/neo4j"
//)

//func main() {
//	var (
//		uri              string
//		username             string
//		password         string
//	)
//	//flag.StringVar(&uri, "uri", "bolt://<IP_ADDRESS>:7687", "Database URI")
//	flag.StringVar(&uri, "uri", "bolt://localhost:7687", "Database URI")
//	flag.StringVar(&username, "user", "neo4j", "User name")
//	flag.StringVar(&password, "password", "123456", "Password")
//	flag.Parse()
//	fmt.Println(uri,username,password)
//	resultStr,err := examples.HelloWorld(uri, username, password) // 直接引用？
//	if err != nil {
//		fmt.Println("错误是：",err)
//	}
//	fmt.Println(resultStr)
//	fmt.Print("lll")
//}

package main

import (
	"fmt"
	"github.com/neo4j/neo4j-go-driver/v4/neo4j"
)

func main() {
	// Neo4j 4.0, defaults to no TLS therefore use bolt:// or neo4j://
	// Neo4j 3.5, defaults to self-signed certificates, TLS on, therefore use bolt+ssc:// or neo4j+ssc://
	dbUri := "neo4j://localhost:7687"
	//driver, err := neo4j.NewDriver(dbUri, neo4j.BasicAuth("username", "password", ""))
	driver, err := neo4j.NewDriver(dbUri, neo4j.BasicAuth("neo4j", "123456", ""))
	if err != nil {
		panic(err)
	}
	// Handle driver lifetime based on your application lifetime requirements  driver's lifetime is usually
	// bound by the application lifetime, which usually implies one driver instance per application
	defer driver.Close()
	item, err := insertItem(driver)
	if err != nil {
		panic(err)
	}
	fmt.Printf("%v\n", item)
}

func insertItem(driver neo4j.Driver) (*Item, error) {
	// Sessions are short-lived, cheap to create and NOT thread safe. Typically create one or more sessions
	// per request in your web application. Make sure to call Close on the session when done.
	// For multi-database support, set sessionConfig.DatabaseName to requested database
	// Session config will default to write mode, if only reads are to be used configure session for
	// read mode.
	session := driver.NewSession(neo4j.SessionConfig{})
	defer session.Close()
	result, err := session.WriteTransaction(createItemFn)
	if err != nil {
		return nil, err
	}
	return result.(*Item), nil
}

func createItemFn(tx neo4j.Transaction) (interface{}, error) {
	records, err := tx.Run("CREATE (n:Item { id: $id, name: $name }) RETURN n.id, n.name", map[string]interface{}{
		"id":   1,
		"name": "Item 1",
	})
	// In face of driver native errors, make sure to return them directly.
	// Depending on the error, the driver may try to execute the function again.
	if err != nil {
		return nil, err
	}
	record, err := records.Single()
	if err != nil {
		return nil, err
	}
	// You can also retrieve values by name, with e.g. `id, found := record.Get("n.id")`
	return &Item{
		Id:   record.Values[0].(int64),
		Name: record.Values[1].(string),
	}, nil
}

type Item struct {
	Id int64
	Name string
}

And the log in Explore logs has no output.
And that's it. Any help from anybody will be appreciative. Thanks for your reading time.

What version of Neo4j server are you using?
Also note, https://community.neo4j.com/ is usually a better place to start with for this kind of questions.

Feel free to reopen this @renektonwu if you still need help.


Add smarty blocks to document template

1. Why is this change necessary?
More precise expansion of these document parts.
2. What does this change do, exactly?
Adds two new block around the document header logo and the document header.
3. Describe each step to reproduce the issue or behaviour.
Try to extend the now wrapped document parts.
4. Please link to the relevant issues (if any).
5. Which documentation changes (if any) need to be made because of this PR?
6. Checklist

[ ] I have written tests and verified that they fail without my change
[x] I have squashed any insignificant commits
[x] This change has comments for package types, values, functions, and non-obvious lines of code
[x] I have read the contribution requirements and fulfil them.

Hello,
thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/issues/SW-25693
Please use this issue to track the state of your pull request.

Thanks for your Contribution! :blue_heart:


doc: update instrumentations list

Add the missing instrumentations that are loaded automatically in https://github.com/signalfx/splunk-otel-js/blob/main/src/instrumentations/index.ts

Could we just refer them to officially supported instrumentations instead of regularly updating this doc, @seemk ?

Could we just refer them to officially supported instrumentations instead of regularly updating this doc, @seemk ?

Think it needs to be in sync with the autoloader?

Anyway we can discuss it later, merging it for now since we just stumbled upon the incomplete list


EtherScanInfo should have a public initializer

Hi Team,
when I use this pod library, the default initializer is not work for etherscaninfo, the error message is "'EtherScanInfo' initializer is inaccessible due to 'internal' protection level". so I think it should be have a public initializer for this class.
this code seems works:
public struct EtherScanInfo {
 public init(url: String, apiKey: String) {
     self.url = url
     self.apiKey = apiKey
 }
 public let url: String
 public let apiKey: String
}

Hi, @mousehaohao.
You are right. I will fix this asap.
For now you can use CryptoWallet class
Example:
let cryptoWallet = CryptoWallet(
            bridgeApiUr: bridgeUrl,
            etherScanApiKey: apiKey)

And then you will be able to use
cryptoWallet.ethereum

@mousehaohao, fixed at 0.4.5


Schema from npm module not working

Our GraphQL API schema is published together with an npm module.
With the new version, it is not possible to load the schema from the module. It always complains that "There is no top level schema object defined". With the old version, it worked just fine.
If I copy the schema file to a place outside the node_modules, it works.
Also, the dialog to "Select GraphQL Schema Base Directory" does not show "node_modules".
Version and Environment Details
Operation system: Ubuntu 18.04.2
IDE name and version: IntelliJ 2019.1 Ultimate
Plugin version: 2.0.0

Hi Lukas.
The plugin searches for schemas within the "Project scope" to avoid searching though 1000s of node modules files.
I was able to get your use case working by right clicking on a node module and choosing "Mark directory as" > "Not excluded". This then places directory within the Project scope and schema discovery picks it up.
Let me know whether this solves your use case.
Best regards,
Jim.

Hi Jim
That worked, thanks! :)

I just ran into the same problem. Even pointing my .graphqlconfig directly at "schemaPath": "./node_modules/mypackage/schema.graphql" didn't seem to help.
The workaround I ended up using is linking the node_modules schema into my project files:
# in the project root dir
ln -s node_modules/mypackage/schema.graphql .

One advantage to this workaround is you can commit the symlink in your repository, so it's available to others without needing to share IDE settings.

@medmunds Is it as simple as making the symbolic link in your project root and it just works? I tried making a symbolic link in Windows (using mklink), but it doesn't work.
Just for some context:
I also tried the "mark directory as..." option as described by Jim, and that option doesn't exist for me. I'm pretty sure that it's because my project is using the default behavior for how PyCharm handles the node_modules folder:

To provide code completion for project dependencies, PyCharm creates a node_modules library automatically so Node.js modules are kept in your project but no inspections are run against them, which improves performance.

The one way I was able to get it to work was by

Marking my node_modules folder as "Not Excluded". This makes it not a "library root"
Mark node_modules as "Excluded"
Marking the NPM module that I wanted to import from as "Not Excluded"

However, doing it this way disables the default behavior quoted above. I really don't want to do that.

@ChrisCrossCrash I also have the following .graphqlconfig file in my project root (alongside the schema.graphql symlink that points into node_modules):
{
  "name": "<MyPackage> Schema",
  "schemaPath": "schema.graphql"
}

My memory is that graphql-intellij-plugin offered to create the .graphqlconfig file for me once it noticed the schema.graphql symlink, but I could be remembering wrong. You might try creating it yourself if it isn't there.
(Also, I'm on a Mac, so I created a real symlink using the Unix ln command. When I open schema.graphql in the IDE, I see the content from the linked schema file. I don't know anything about Windows mklink or how it might interact with this plugin or with git.)

@medmunds Thanks for your help, Mike. My project also has the .graphqlconfig file. It's the one that gets automatically created when I open the GraphQL plugin tab and click the + button on the left side. It looks like this:
{
  "name": "Untitled GraphQL Schema",
  "schemaPath": "schema.graphql",
  "extensions": {
    "endpoints": {
      "Default GraphQL Endpoint": {
        "url": "http://localhost:8000/___graphql",
        "headers": {
          "user-agent": "JS GraphQL"
        },
        "introspect": false
      }
    }
  }
}

The only thing I've changed is the endpoint URL to match what my project is served on.
My project also has the schema.graphql file that automatically gets created when I double click on the endpoint listed in the plugin and select the option "Get GraphQL Schema from Endpoint (Introspection)".
The symlinks in Windows appear to work the same way as I'm used to with Linux.
I'm actually having the same exact issue as #295, which links here for a solution.
All of the queries I run within the project work fine. Actually, even the query that's giving me the error Unknown fragment spread "GatsbyImageSharpFluid" works, but it just shows an error that can't be ignored.
For now, I've just decided to copy the fragment from the npm module directly into my query. So instead of this:

my query looks like this:

I think the problem is probably related to how you can't run these queries in GraphiQL:

Note, due to a limitation of GraphiQL, you can not currently use these fragments in the GraphiQL IDE.

For now I'll just live with copying and pasting the fragments into my queries. If it's something that end up using a ton, then I'll look into it a bit more.

Howdy! Any updates on this? Did find a workaround for peer JetBrain users, still, its been a while and was hoping there was a fix for this, thanks!!


Replace commoncomp with ohcount4J for publishing to binary repository

Refer to #24.

This was also done in #33.


Keyword Spotter CoreML Support

Hi,
Thanks for the great work,
I was wondering if it is possible to convert the onnx models to mlpackage and run them using CoreML, this would save 330 mb of packaga download size that onnxruntime currently adds to the project

Is onnxruntime that big?

Yeah its a lot!

please have a look in detail at what exactly it contains.
Is a single lib so large?
please also have a look at.the.size of the final app.

here are the files

file size of a static lib has nothing to do with the.size of the final app!

As said before, please show the size of the final app.


[Feature-3134]Refactor Curator Zookeeper Client to be singleton

#3134
Tips

Thanks very much for contributing to Apache DolphinScheduler.
Please review https://dolphinscheduler.apache.org/en-us/community/index.html before opening a pull request.

What is the purpose of the pull request
(For example: This pull request adds checkstyle plugin.)
Brief change log
(for example:)

Add maven-checkstyle-plugin to root pom.xml

Verify this pull request
(Please pick either of the following options)
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added dolphinscheduler-dao tests for end-to-end.
Added CronUtilsTest to verify the change.
Manually verified the change by testing locally.

Good job,
Is there a better way to to complete the singleton mode to avoid multithreading problems and improve the robust of code?
[1] https://www.geeksforgeeks.org/singleton-design-pattern/

I use the concept of singleton here just to emphasize avoiding create multiple Curator Zookeeper Client. Here it's suitable to use the @Component to implement the singleton in Spring environment.

SonarCloud Quality Gate failed.

SonarCloud Quality Gate failed.

SonarCloud Quality Gate failed.

SonarCloud Quality Gate failed.

To make unit test effective, it's need to use the ZKServer that are refactor by pr #3141

please resolve conflicting files and ut coverage rate. Thx


Missing Fields Name

I think you've missed to write fields name for which box is what .. (Y)

:P sorry i do this package only for fun :( i stop using brackets.


classical_function decorator raises import error missing tweedledum

Informations

Qiskit version: 0.25.3
Python version: 3.8.8
Operating system: Linux

What is the current behavior?
@classical_function decorator raises error MissingOptionalLibraryError: "The 'tweedledum' library is required to use 'classical function compiler'. You can install it with 'pip install tweedledum'."
Steps to reproduce the problem
In IBM quantum lab
import numpy as np
# Importing standard Qiskit libraries
from qiskit import QuantumCircuit, transpile, Aer, IBMQ
from qiskit.tools.jupyter import *
from qiskit.visualization import *
from ibm_quantum_widgets import *

# Loading your IBM Q account(s)
provider = IBMQ.load_account()

from qiskit.circuit import classical_function,  Int1

@classical_function
def grover_oracle(a: Int1, b: Int1, c: Int1, d: Int1) -> Int1:
    return (not a and b and not c and d)

quantum_circuit = grover_oracle.synth()
quantum_circuit.draw()

The first block is the standard import, the second block is copied from docs
What is the expected behavior?
No import error and and output as in the docs.
Suggested solutions
Comments
I get the same error on my system where tweedledum is installed. I thought my installation might be messed up but the same problem shows up in the cloud.

This solution only hides the issue not resolves it. I've reproduced the issue locally and it was solved by installing the missing library 'pip install tweedledum'. I think is better to add this library to dependencies.


Fix scenario json

Coverage increased (+0.03%) to 74.481% when pulling 07b66a13f9e3e8e3220f1cdd1a02a953355964e4 on fix-scenario-json into 6d6221a0e23927bc4b48f55d69beae10e75d6d2e on dev.


Allow any constructor

It might make sense from the user’s perspective and from the parser’s perspective to allow any JS constructor as a type.
I also tried to make the rules simpler and more explicit.

I agree that users shouldn't be forced to redefine all the global constructors.
We should create (or reuse) utility libraries for browser and JS non-primitive global types.


use a taxonomy to save the list of followers

implements a more flexible followers list. thanks @toolstack for his initial proposal #260.
Fix #201

@pfefferle there are conflicts. I think they are worth fixing before we review.

@akirk can you check if this PR breaks something on the Friends plugin?

@akirk I am currently working on two schedulers, to check the followers with errors and to remove them after x checks and on a second to update the meta-data in a regular period.
Thanks for having a look!