text:
Electron Builder asar error

Been spawning child processes for git and wanted to switch to nodegit, but keep getting this error after installing then trying to build the Dist.
Packaging for platform mac x64 using electron 1.2.6 to dist/mac

Error: File "~/workspace/repos/electron-app/dist/mac/electron_app.app/Contents/Resources/app.asar" is corrupted: SyntaxError: Unexpected end of JSON input
    at Object.<anonymous> (~/workspace/repos/electron-app/node_modules/electron-builder/src/asarUtil.ts:66:13)
From previous event:
    at tsAwaiter (~/workspace/repos/electron-app/node_modules/electron-builder/src/util/awaiter.ts:10:47)
    at Object.build (~/workspace/repos/electron-app/node_modules/electron-builder/src/builder.ts:190:52)
    at Object.<anonymous> (~/workspace/repos/electron-app/node_modules/electron-builder/src/build-cli.ts:27:28)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.runMain (module.js:575:10)
    at run (node.js:348:7)
    at startup (node.js:140:9)
    at node.js:463:3

npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "~/.npm-global/bin/npm" "run" "dist"
npm ERR! node v6.2.2
npm ERR! npm  v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! electron_app@0.0.1 dist: `build`
npm ERR! Exit status 255
npm ERR!
npm ERR! Failed at the electron_app@0.0.1 dist script 'build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the electron_app package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs electron_app
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls electron_app
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     ~/workspace/repos/electron-app/npm-debug.log

If I remove nodegit it builds correctly. If I disable asar it also builds correctly.
# .npmrc
runtime = electron
target = 1.2.6
target_arch = x64
disturl = https://atom.io/download/atom-shell
progress = true
build_from_source = true

While this log is from OSX, this same error happens on Windows 10.
Any ideas? Need more info?

I wonder what json it's dying on.
It's dying here: electron-builder/src/asarUtil.ts:66:13
any chance you get get in there to the compiled js and just sneak in a console log to discover what output it's parsing perhaps?

Not even sure where to look to add a console log. That error is literally just from npm installing nodegit, not even requiring it in my code.
Manually building the asar via cmd line seemed to work (as in I received no errors when compiling), although I wasn't able to get it to run.

Not especially familiar with electron-builder, does npm build cause it to do an npm install?

Not sure.
This is what I get in windows without build_from_source enabled.
npm run dist

> electron-app@0.0.1 dist C:\dev\electron-app
> build

Rebuilding app dependencies for arch x64 to C:\dev\electron-app\app

Warning: Application icon is not set, default Electron icon will be used

> electron-prebuilt@1.2.6 postinstall C:\dev\electron-app\app\node_modules\electron-prebuilt
> node install.js

> nodegit@0.15.1 preinstall C:\dev\electron-app\app\node_modules\nodegit
> node lifecycleScripts/preinstall

[nodegit] Running pre-install script

> nodegit@0.15.1 install C:\dev\electron-app\app\node_modules\nodegit
> node lifecycleScripts/install

[nodegit] Running install script
[nodegit] Success: "C:\dev\electron-app\app\node_modules\nodegit\build\Release\nodegit.node" is installed via remote
[nodegit] Completed installation successfully.

> nodegit@0.15.1 postinstall C:\dev\electron-app\app\node_modules\nodegit
> node lifecycleScripts/postinstall

[nodegit] WARN - Could not finish postinstall
{ Error: Command failed: node C:\dev\electron-app\app\node_modules\nodegit\dist\nodegit.js
C:\dev\electron-app\app\node_modules\nodegit\dist\nodegit.js:15
    throw ex;
    ^

Error: The specified module could not be found.
\\?\C:\dev\electron-app\app\node_modules\nodegit\build\Release\nodegit.node
    at Error (native)
    at Object.Module._extensions..node (module.js:568:18)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\dev\electron-app\app\node_modules\nodegit\dist\nodegit.js:11:12)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)

    at ChildProcess.exithandler (child_process.js:202:12)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:852:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
  killed: false,
  code: 1,
  signal: null,
  cmd: 'node C:\\dev\\electron-app\\app\\node_modules\\nodegit\\dist\\nodegit.js' }

This is the error with build_from_source enabled
ERR! build error
gyp
ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\dev\electron-app\app\node_modules\node-gyp\lib\build.js:276:23)
gyp
ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Windows_NT 10.0.14385
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\dev\\electron-app\\app\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=C:\\dev\\electron-app\\app\\node_modules\\nodegit\\build\\Release\\nodegit.node" "--module_name=nodegit" "--module_path=C:\\dev\\electron-app\\app\\node_modules\\nodegit\\build\\Release"
gyp ERR! cwd C:\dev\electron-app\app\node_modules\nodegit
gyp ERR! node -v v6.3.0
gyp ERR! node-gyp -v
v3.4.0
gyp ERR! not ok
node-pre-gyp

ERR! build error
node-pre-gyp
ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\dev\electron-app\app\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\dev\electron-app\app\node_modules\nodegit\build\Release\nodegit.node --module_name=nodegit --module_path=C:\dev\electron-app\app\node_modules\nodegit\build\Release' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\dev\electron-app\app\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:852:16)node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
node-pre-gyp ERR! System Windows_NT 10.0.14385
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\dev\\electron-app\\app\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\dev\electron-app\app\node_modules\nodegit
node-pre-gyp ERR! node -v v6.3.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.29
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\dev\electron-app\app\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\dev\electron-app\app\node_modules\nodegit\build\Release\nodegit.node --module_name=nodegit --module_path=C:\dev\electron-app\app\node_modules\nodegit\build\Release' (1)
[nodegit] ERROR - Could not finish install
[nodegit] ERROR - finished with error code: 1

So it fails to actually compile, but thats not really unexpected, it's grabbing from aws anyways.
Just weird that it says it cant find it, which to me sounds an awful lot like it's not actually properly built for electron.
Is npm vacuuming nodegit out? After the error, does C:\dev\electron-app\app\node_modules\nodegit still exist?

Yes, it exists. Even has nodegit.node that it complains doesnt exist.

So, if you cd into that folder, and just run node in your terminal, and in the console try require('./build\Release\nodegit.node') does that work?

var nodegit = require('./build/Release/nodegit.node') does. Even CDing into the folder C:\dev\electron-app\dist\win-unpacked\resources\app\node_modules\nodegit then running node and doing that does. But when I try to start the EXE I get:

Yeah, so somehow, you're getting a prebuilt for node, instead of for electron.
Are you still using the npmrc (just minus the build_from_source) when you're not building from source?

Yup!
# .npmrc
runtime = electron
target = 1.2.7
target_arch = x64
disturl = https://atom.io/download/atom-shell
progress = true

Is there a way I can manually download the prebuilt and copy and paste it to see if it resolves the issue?

Well, loading it in node pretty well confirms the  Can you link me to a project (either yours if it's open, or an almost barebones project using nodegit) using electron-builder?

https://github.com/jojobyte/git-electron
Thats a stripped down version. Basically Electron & Nodegit.
Run npm install then npm start to open in electron or npm run dist or npm run pack to build the installers.
This is actually starting and packaging for me but nodegit does not seem to clone anything.

Awesome dude, I'll take a look. Thanks for putting so much time in to reporting this.

So, your example works fine for me locally, i can install, and run via npm start, and i can run the dist script, and then i can open the app thats placed in the dist folder and the app when i extract it from the zip. I'm able to do stuff with nodegit in the dev console as well.

I'll try it on my laptop and see. Maybe I need to reinstall node-gyp windows stuff or something.

Okay, it worked on my windows laptop as is, but if you set build.asar to true in package.json in the project root you get the original error I was reporting.

Hrm, lemme dig a little further

Looked at this a bit more, I honestly have no idea man :/

Well, when i get the json contents of the asar and try parsing them I get the same error, but adding 2 closing braces seems to fix it?
http://www.jsoneditoronline.org/?id=a6ac96d57bbfd93575b3e92d0566bf1f
I'm going to have to chalk this up to an electron-builder bug, I'd log something over there. I'm able to pack nodegit into an asar manually (omitting the .node, clearly) without trouble  :/

authors: jojobyte maxkorp

repo: nodegit/nodegit


text:
fix up electron and nw.js docs

Should resolve https://github.com/nodegit/nodegit/issues/905, as well as comparable fixes for nw.js

Only failure was a network failure, and this is a docs only change.

source: gharchive/pull-request

license: mit

license_type: permissive

license_source: bigquery


text:
Bump the promisify-node package

Fixes Node 10 issues.

Looks like I broke some tests with the latest promisify-node. I'll work on addressing these, once NodeGit builds on Node 10.

Is this commit helping? https://github.com/nodegit/nodegit/pull/1519/commits/55e5a35525142bace9f6838da26f9a32d50c9e8b
However, be careful, this might cause a freeze in the tests with Node 6 on Windows as I have experienced in #1519

authors: Croydon tbranyen


text:
Tests for Revert.revert

Updated Revert.revert and Revert.commit to both be async. Set merge_options to be optional.
Testing that Revert.revert properly updates the working directory and stages files in the index.

:+1:

:+1:

Thanks @dkoontz !

authors: dkoontz johnhaley81 tbranyen


text:
Adding ability to disable disqus on a single post

With this you can add disableDisqus = true to a page to disable loading Disqus, even if it is enabled site wide. This is useful for pages that are not blog entries, but informational, like about pages. See #26 and #27, but it was removed for some reason in a later commit

https://github.com/cloudflare/wrangler/pull/126#issuecomment-507328059

Would love to have this feature!

In the meantime, you can override the about page by creating a section folder inside the layouts folder, and then creating an about.html file inside section:
{{ define "main" }}
{{ partial "profile.html" . }}

{{ .Content }}

{{ end }}

Thanks for your PR! I have add this ability in the new commit https://github.com/nodejh/hugo-theme-mini/commit/7a04c022ea788b60f3aa3039ec38d834750479f1

authors: bearcherian nodejh paulrberg z89735651

repo: nodejh/hugo-theme-mini

license: MIT

license_source: github-api


text:
MSVS and Fortran

Problem
Trying to compile native add-ons which hook into Fortran libraries. Linux and MacOS systems compile without issue due to the availability of gcc/g++/gfortran. Issues arise, however, when attempting to compile on Windows.
In particular, Microsoft Visual Studio (MSVS) does not have readily available Fortran support. While possible to use ifort and other tooling, these integrations are predominantly proprietary and not freely available. MinGW and MSYS2 provide gfortran support. However, neither MinGW nor MSYS2 (via Cygwin) are supported by Node.js.
The stance of various maintainers (e.g., @bnoordhuis here and here and @TooTallNate here) has been that GYP and MSVS are the tools which should be used to build add-ons on Windows. GYP because of initial precedent and continued use and MSVS because this is what is used to compile Node.js itself (i.e., don't mix compilers).
The constraints, however, imposed by GYP and MSVS 1) prohibit usage of other toolchains and 2) cause issues when attempting to integrate compiled libraries which have extended requirements (e.g., access to a Fortran compiler). In my use case, I want the ability to compile high-performance numeric and scientific computing libraries (including custom Fortran libraries shipped with the add-on) written in Fortran. Yes, tools like CMake.js, nbind, and node-ffi exist; however, including these imposes an additional burden (both in terms of development cost and maintenance), especially as these require entirely separate configuration and procedures.
And yes, an alternative is to ship precompiled binaries for target systems, including Windows. However, I would either a) need access to a local Windows box (I don't) or b) need to use a CI service such as AppVeyor. In either case, as I discovered while trying to get add-ons to work on Windows, on Windows, not obvious where to access Node.js headers. Based on my assessment, node-gyp downloads the headers, stores in a .node-gyp directory, and then points to them accordingly. Thus, to pre-compile, I would need to do something similar, thus replicating node-gyp functionality on Windows. From my POV, to do this independently of node-gyp when node-gyp already does this (i.e., gets the necessary headers, etc) seems wasteful.
In a more perfect world, to extend the range of possible libraries and applications, would be beneficial to have more flexibility in terms of Windows toolchains. For my use cases (e.g., large scale and high performance data analysis), this means being able to leverage GNU compilers, as is possible in R, Python, and Julia.
I recognize that this issue is likely dead-on-arrival (similar to others), but I thought I would raise the issue again in hopes that people might recognize that using compilers other than those provided via MSVS is not just by choice, but also sometimes by necessity.
Related Issues

nodejs/node-gyp#740
nodejs/node-gyp#660
nodejs/node-gyp#494
nodejs/node-gyp#467
nodejs/node-gyp#402
nodejs/node-gyp#280
nodejs/node-gyp#194
nodejs/node-gyp#629

My second comment explains why we currently don't support anything besides Visual Studio (and now MS Build Tools): other compilers emit ABI-incompatible code.
clang++ might be an acceptable substitute someday (perhaps it already is) but mingw-g++ is never going to cut it - but it seems support for the latter is what you are asking for.
What exactly do you propose to do differently?  Note that it should be something actionable, not just wishful (or wistful?) "wouldn't it be nice if?".

@bnoordhuis I am aware of your second comment and was alluding to it when I mentioned "don't mix compilers". Just to clarify, the issue is not that non-VS (Visual Studio) code is ABI non-compliant, but that the compilers implement different ABIs (to be clear, the GNU C++ compiler adheres to an industry standard C++ ABI).
To summarize, because of this discrepancy, compiled output from one compiler is most likely not interoperable with output from another compiler (this includes the same compiler but different versions). Hence, if I compile a native add-on on Windows using the GNU C/C++/Fortran compiler toolchain, this will most likely be incompatible with Node.js, as Node is compiled via Microsoft Visual Studio (MSVS), whose compilers implement a different ABI.
The issue I raise is that, given the current constraints for compiling native add-ons on Windows, this limits the types of applications which are possible. Notably, because of MSVS' lack of a Fortran compiler, compiling Node.js native add-ons on Windows which have Fortran dependencies is, while possible (e.g., pay for a license for the Intel Fortran Compiler ifort or Lahey or perform dynamic library linking magic), not viable. In general, that MSVS is a consistent obstacle when compiling Fortran on Windows is well-known, as, for example, documented in the Python community (NumPy, NumPy, NumPy, SciPy, SciPy).
The predominant way numeric computing communities build libraries on Windows is to use either MinGW/MSYS or Cygwin (including MSYS2). For instance, NumPy encourages MinGW. SciPy encourages MinGW. Julia uses MinGW/MSYS2. OpenBLAS builds using MinGW, only providing MSVS support via C only libraries (which are significantly slower). ATLAS, due to its Linux focus, only works on Windows via Cygwin.
Early in its history, Node.js offered experimental support for compiling with MinGW and Cygwin. I am aware that Cygwin is problematic due to its terminal emulation (e.g., use of pipes). I am less aware as to why MinGW is problematic, other than that its toolchain is not an official Microsoft toolchain.
Regarding clang++, my understanding is that "maybe someday" captures the situation. Specifically, I am aware that Clang attempted to be MSVS ABI compatible, but ran into patent issues (?). To my knowledge, MSVS-Clang is still a work in progress.
In terms of actionable proposals, I am afraid I don't have enough knowledge of Node's motivations or needs or have enough knowledge/familiarity building C/C++ Windows applications to speak knowledgeably and/or authoritatively. If someone is willing to provide a detailed, step-by-step protocol and example showing how to compile Fortran and build a Node.js native add-on on Windows using MSVS without requiring proprietary Fortran compilers that would solve my immediate need.
However, this won't address the larger, more systemic issue of integrating with other libraries requiring other toolchains (e.g., MinGW or Clang). Possibly to clarify, may be useful to have a detailed explanation listing all the reasons why non-MSVS toolchains are explicitly not supported by Node.js on Windows systems. At the moment, I have found no such official record (Wiki or otherwise).

Possibly to clarify, may be useful to have a detailed explanation listing all the reasons why non-MSVS toolchains are explicitly not supported by Node.js on Windows systems.

There's not much to detail.  MSVS and mingw-g++ are not ABI-compatible.  Since node.exe is compiled with MSVS, you cannot load C++ add-ons compiled with mingw-g++; you get dynamic linker errors.  (Name mangling isn't the only incompatibility, just the first one you'll run into.)
Code with C linkage might work but since node's and V8's APIs are C++, that ultimately doesn't help.  Since there isn't anything actionable, I'll go ahead and close this out.

@bnoordhuis Can you provide any insight into whether any consideration is being given to support non-MSVS toolchains in the future?
If Node.js is purely committed to only supporting MSVS, Windows users will likely never have low-level bindings to numeric and scientific computing libraries, thus hindering the growth of Node in this area and significantly impacting performance. I would not imagine the Node community would view this as a positive outcome.

At the least, thanks for the feedback @kgryte, certainly something for us Microsofties to think about too.
/cc @nodejs/platform-windows @digitalinfinity @bowdenk7 @AndrewPardoe

@joshgav Thanks for the note! Don't hesitate to reach out if you have questions or want additional feedback.

Thank you for bringing this up, @kgryte. Fortran dependencies are difficult as we no longer produce Microsoft Fortran. The majority of customers who need Fortran are satisfied with the Intel Fortran compiler. There's just not the market for us to invest in.
If C/C++ numerical libraries are an option but not currently compiling we should fix that in MSVC.

Also, please lean on your friendly neighborhood WG21 C++ Standards committee member to demand that they produce a standardized C++ ABI that works across all compilers.

@AndrewPardoe Yeah, I can imagine that Intel Fortran is more viable in the enterprise space, where larger companies are willing to pay for licensing. Unfortunately, in the open source community, this is not the case.
Based on my assessment, R, Julia, and Python have moved to support initiatives like OpenBLAS and ATLAS, which explicitly build via the GNU compiler toolchain.
Regarding C/C++ numerical libraries, in a limited sense, they are an option; however, these typically do not yield the same performance benefits. OpenBLAS can compile via MSVC, but only using C kernels and with notable performance degradation. In general, while possible to hand port Fortran libraries (which are many) to C/C++, this is less than ideal due to development and maintenance costs.
And certainly, if I ever come across a WG21 C++ Standards committee member, I will be sure to lay down my demands! :)
Thanks for your input!

source: gharchive/issue

authors: AndrewPardoe bnoordhuis joshgav kgryte

repo: nodejs/node-gyp


text:
npm installing issue

bufferutil@3.0.5 install D:\JPMC\JPMC-tech-task-2-PY3\node_modules\bufferutil
prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=11.0.0 runtime=node arch=x64 platform=win32)
D:\JPMC\JPMC-tech-task-2-PY3\node_modules\bufferutil>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\15.0\Bin\MSBuild.exe ENOENT
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
gyp ERR! stack     at onErrorNT (internal/child_process.js:407:16)
gyp ERR! stack     at process.internalTickCallback (internal/process/next_tick.js:72:19)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd D:\JPMC\JPMC-tech-task-2-PY3\node_modules\bufferutil
gyp ERR! node -v v11.0.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! This is a bug in node-gyp.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR!     https://github.com/nodejs/node-gyp/issues
npm WARN bootstrap@4.2.1 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.2.1 requires a peer of popper.js@^1.14.6 but none is installed. You must install peer dependencies yourself.
npm WARN extract-text-webpack-plugin@3.0.2 requires a peer of webpack@^3.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! bufferutil@3.0.5 install: prebuild-install || node-gyp rebuild
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the bufferutil@3.0.5 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\yashj\AppData\Roaming\npm-cache_logs\2020-05-08T17_25_59_163Z-debug.log

gyp ERR! node-gyp -v v3.8.0  # is too old.

i upgraded the node-gyp now its 6.1.0 but its still not working and showing the same error

the file bufferutil is not there in my node-models but it is still trying to install it

D:\JPMC\JPMC-tech-task-2-PY3\node_modules\bufferutil there is no such directory in my module

gyp ERR! node -v v11.0.0
Is also no longer supported https://nodejs.org/en/about/releases/

Given your directory name contains PY3, please use relatively current releases of Node.js because it’s Python 3 support was completed in the second half of 2019.

108 warn @jpmorganchase/perspective@0.2.12 requires a peer of webpack@>=3.5 <4 but none is installed. You must install peer dependencies yourself.
109 warn uglifyjs-webpack-plugin@0.4.6 requires a peer of webpack@^1.9 || ^2 || ^2.1.0-beta || ^2.2.0-rc || ^3.0.0 but none is installed. You must install peer dependencies yourself.
110 warn bootstrap@4.2.1 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
111 warn bootstrap@4.2.1 requires a peer of popper.js@^1.14.6 but none is installed. You must install peer dependencies yourself.
112 warn extract-text-webpack-plugin@3.0.2 requires a peer of webpack@^3.1.0 but none is installed. You must install peer dependencies yourself.
113 verbose stack Error: bufferutil@3.0.5 install: prebuild-install || node-gyp rebuild
113 verbose stack Exit status 1
113 verbose stack     at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
113 verbose stack     at EventEmitter.emit (events.js:310:20)
113 verbose stack     at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
113 verbose stack     at ChildProcess.emit (events.js:310:20)
113 verbose stack     at maybeClose (internal/child_process.js:1021:16)
113 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
114 verbose pkgid bufferutil@3.0.5
115 verbose cwd D:\JPMC\JPMC-tech-task-2-PY3
116 verbose Windows_NT 10.0.18363
117 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
118 verbose node v12.16.3
119 verbose npm  v6.14.4
120 error code ELIFECYCLE
121 error errno 1
122 error bufferutil@3.0.5 install: prebuild-install || node-gyp rebuild
122 error Exit status 1
123 error Failed at the bufferutil@3.0.5 install script.
123 error This is probably not a problem with npm. There is likely additional logging output above.
124 verbose exit [ 1, true ]

this is the latest log after all upgradations

https://www.npmjs.com/package/bufferutil @4.0.1 ?

i guess there is some prb with the packasge...anyways thanku for your help

The nodes_module folder is missing. Just add that folder from the troubleshooting section to the JPMC task folder.

bufferutil@3.0.5 install: `prebuild-install || node-gyp rebuild'????

https://www.npmjs.com/package/bufferutil @4.0.6 ?

Cannot find module '@jpmorganchase/perspective'.  TS2307

./src/index.tsx
Module not found: Can't resolve 'react' in 'C:\Users\user\OneDrive\Desktop\jp_morgan\JPMC-tech-task-2\src'

gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack TypeError: Object.fromEntries is not a function
gyp ERR! stack     at Object. (C:\Users\user\AppData\Roaming\nvm\v11.0.0\node_modules\node-gyp\node_modules@npmcli\fs\lib\fs.js:6:23)
gyp ERR! stack     at Module._compile (internal/modules/cjs/loader.js:707:30)
gyp ERR! stack     at Object.Module._extensions..js (internal/modules/cjs/loader.js:718:10)
gyp ERR! stack     at Module.load (internal/modules/cjs/loader.js:605:32)
gyp ERR! stack     at tryModuleLoad (internal/modules/cjs/loader.js:544:12)
gyp ERR! stack     at Function.Module._load (internal/modules/cjs/loader.js:536:3)
gyp ERR! stack     at Module.require (internal/modules/cjs/loader.js:643:17)
gyp ERR! stack     at require (internal/modules/cjs/helpers.js:22:18)
gyp ERR! stack     at Object. (C:\Users\user\AppData\Roaming\nvm\v11.0.0\node_modules\node-gyp\node_modules@npmcli\fs\lib\index.js:2:6)
gyp ERR! stack     at Module._compile (internal/modules/cjs/loader.js:707:30)
gyp ERR! System Windows_NT 10.0.22000
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\user\OneDrive\Desktop\jp_morgan\JPMC-tech-task-2\node_modules\bufferutil
gyp ERR! node -v v11.0.0
gyp ERR! node-gyp -v v9.1.0
gyp ERR! Node-gyp failed to build your package.
gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author.
npm WARN bootstrap@4.2.1 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.2.1 requires a peer of popper.js@^1.14.6 but none is installed. You must install peer dependencies yourself.
npm WARN extract-text-webpack-plugin@3.0.2 requires a peer of webpack@^3.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! bufferutil@3.0.5 install: prebuild-install || node-gyp rebuild
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the bufferutil@3.0.5 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\user\AppData\Roaming\npm-cache_logs\2022-07-16T18_45_10_570Z-debug.log

gyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack TypeError: Object.fromEntries is not a function gyp ERR! stack at Object. (C:\Users\user\AppData\Roaming\nvm\v11.0.0\node_modules\node-gyp\node_modules@npmcli\fs\lib\fs.js:6:23) gyp ERR! stack at Module._compile (internal/modules/cjs/loader.js:707:30) gyp ERR! stack at Object.Module._extensions..js (internal/modules/cjs/loader.js:718:10) gyp ERR! stack at Module.load (internal/modules/cjs/loader.js:605:32) gyp ERR! stack at tryModuleLoad (internal/modules/cjs/loader.js:544:12) gyp ERR! stack at Function.Module._load (internal/modules/cjs/loader.js:536:3) gyp ERR! stack at Module.require (internal/modules/cjs/loader.js:643:17) gyp ERR! stack at require (internal/modules/cjs/helpers.js:22:18) gyp ERR! stack at Object. (C:\Users\user\AppData\Roaming\nvm\v11.0.0\node_modules\node-gyp\node_modules@npmcli\fs\lib\index.js:2:6) gyp ERR! stack at Module._compile (internal/modules/cjs/loader.js:707:30) gyp ERR! System Windows_NT 10.0.22000 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\user\OneDrive\Desktop\jp_morgan\JPMC-tech-task-2\node_modules\bufferutil gyp ERR! node -v v11.0.0 gyp ERR! node-gyp -v v9.1.0 gyp ERR! Node-gyp failed to build your package. gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author. npm WARN bootstrap@4.2.1 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself. npm WARN bootstrap@4.2.1 requires a peer of popper.js@^1.14.6 but none is installed. You must install peer dependencies yourself. npm WARN extract-text-webpack-plugin@3.0.2 requires a peer of webpack@^3.1.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE npm ERR! errno 7 npm ERR! bufferutil@3.0.5 install: prebuild-install || node-gyp rebuild npm ERR! Exit status 7 npm ERR! npm ERR! Failed at the bufferutil@3.0.5 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\user\AppData\Roaming\npm-cache_logs\2022-07-16T18_45_10_570Z-debug.log

I got same issue. How to fix that?
Error: C:\Program Files\nodejs\node.exe exited with code 1
Output:

bufferutil@3.0.5 install D:\VLS2\app\node_modules\bufferutil
prebuild-install || node-gyp rebuild

D:\VLS2\app\node_modules\bufferutil>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Error output:
prebuild-install WARN install No prebuilt binaries found (target=3.0.13 runtime=electron arch=x64 platform=win32)
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: There was a fatal problem while downloading/extracting the tarball
gyp ERR! stack     at Unpack.afterTarball (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\install.js:211:21)
gyp ERR! stack     at Unpack.emit (events.js:198:13)
gyp ERR! stack     at Unpack.[maybeClose] (C:\Program Files\nodejs\node_modules\npm\node_modules\tar\lib\unpack.js:171:12)
gyp ERR! stack     at Unpack.opt.ondone._ (C:\Program Files\nodejs\node_modules\npm\node_modules\tar\lib\unpack.js:89:23)
gyp ERR! stack     at Unpack.emit (events.js:198:13)
gyp ERR! stack     at Unpack.[emit] (C:\Program Files\nodejs\node_modules\npm\node_modules\tar\lib\parse.js:230:12)
gyp ERR! stack     at Unpack.[maybeEnd] (C:\Program Files\nodejs\node_modules\npm\node_modules\tar\lib\parse.js:346:17)
gyp ERR! stack     at Unpack.[consumeChunk] (C:\Program Files\nodejs\node_modules\npm\node_modules\tar\lib\parse.js:375:21)
gyp ERR! stack     at Unpack.write (C:\Program Files\nodejs\node_modules\npm\node_modules\tar\lib\parse.js:310:25)
gyp ERR! stack     at Unpack.end (C:\Program Files\nodejs\node_modules\npm\node_modules\tar\lib\parse.js:419:14)
gyp ERR! System Windows_NT 10.0.19045
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd D:\VLS2\app\node_modules\bufferutil
gyp ERR! node -v v10.17.0
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bufferutil@3.0.5 install: prebuild-install || node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bufferutil@3.0.5 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

gyp ERR! node-gyp -v v5.0.3


text:
Mobile first

In this branch, I did:

[ ] Add the header section
[ ] Add a section who have class="head flex".
[ ] Create an images folder and add images in.
[ ] configure linters

I modify readme file

I did add future features in readme file

I did add future features in readme file

@noelfoka, Kindly be notifies that your README file was empty with nothing in it

authors: noelfoka topeogunleye

repo: noelfoka/portfolio-Microverse-version


text:
Fix graph sending

Will fix #363
Requires:

[x] https://github.com/flowbased/fbp-protocol-client/pull/78
[x] https://github.com/noflo/noflo-runtime/pull/110

@jonnor would be nice if you can give this a spin with a MicroFlo runtime

@bergie seems to work OK with a MicroFlo runtime when using WebSocket. I think the NPM deps should be bumped though.
I was unable to test in the Chrome app / serial, due to #657

The dep bumps were done earlier, in #655

authors: bergie jonnor

repo: noflo/noflo-ui


text:
chore(CI): use nextest in CI

Description
Problem*
Supercedes #3752
Summary*
This switches us over to using nextest as a test runner, we also split the test suite across multiple runners to parallelise testing.
Additional Context
Documentation*
Check one:

[x] No documentation needed.
[ ] Documentation included in this PR.
[ ] [Exceptional Case] Documentation to be submitted in a separate PR.

PR Checklist*

[x] I have tested the changes locally.
[x] I have formatted the changes with Prettier and/or cargo fmt on default settings.

@kevaundray This PR will need the required tests to be modified in order to merge this. I've created an end job to so that we can modify this more easily.

repo: noir-lang/noir


text:
netdisco.NetdiscoWrapper error

Noticed this error in the logs on MacOS 10.13.6 when running the tool today.  It reoccurs once every 30 seconds or so.  The tools seems to run fine and the web interface updates with traffic information.
[2019-05-26 17:52:59.531376] ================================================================================
Time: 2019-05-26 17:52:59.531067
Function: <bound method NetdiscoWrapper._run_netdisco of <netdisco.NetdiscoWrapper object at 0x105c43f90>> [] {}
Exception: list indices must be integers, not str
Traceback (most recent call last):
File "utils.py", line 223, in safe_run
File "netdisco.py", line 81, in _run_netdisco
File "netdisco.py", line 98, in _parse_netdisco_output
TypeError: list indices must be integers, not str

Fixed in #38

repo: noise-lab/iot-inspector-client


text:
Left panel do not close

Testing this template inside cordova and run on Android device 6.0.1 (and emulator). Cannot close left or right panel by click on the central main page. Cannot open pages like About. Material mode and css enabled.
All that mentioned works fine in browser mode, and on ios emulator.

Installed this template and run cordova run android -- --lr and all is well. From the left menu (Load page in Main view), when "About" is clicked, the main page doesn't change. All links that should change the main view doesn't work, though, the left or right panel closes when clicked.

authors: ajlyakhov dennesabing


text:
onSlideChangeEnd only fired occasionally in swiper

This is a (multiple allowed):

[x] bug

Framework7 Version: 1.4.2

Platform and Target: Cordova/Chrome

I've created a coverflow slider as follows:
 var pinSwiper = myApp.swiper('.swiper-pin', {                 effect: 'coverflow',                 coverflow: {                     rotate: 0,                     stretch: 20,                     depth: 5,                     modifier: 1,                     slideShadows: true                 },                 onSlideChangeEnd: function () {                     console.log('jsUpdatePinsSwiper:Slide change END: ' + pinSwiper.activeIndex);                 }             });
and noticed that onSlideChangeEnd is only called 1 in 10 times perhaps regardless of how fast we are swiping. This occurs both in Chrome and in IOS/Cordova app.
Any idea on how to resolve this?

Figured out that if I swipe and remove my finger fast, then the function is called but if I swipe slow and over a longer distance and keep my finger for a while, then the function is never called.

Can you open a fiddle to show this issue? http://jsfiddle.net

Closed due to no reaction

authors: jvence valnub


text:
Attention! All issues are closed with release of new Swiper 3!

Note, that i have closed all issues with the release of Swiper 3. Which was rewritten from scratch, it has new API, new layout, compatible with different browsers, and has a bit different usage purpose. First of all, it is absolutely doesn't compatible with IE < 10 and Android < 4.
So, old closed issues are not really related to new Swiper, or outdated, or their authors doesn't provide more required information or dropped discussion.
Anyway, you may reopen your closed issue or create new one if it is actual for Swiper 3

Nice work! Looking forward to exploring 3.0!

@nolimits4web I just started looking into implementing this earlier in the morning, are the API Docs linked in the README current to 3.x?

@LucasKA Yes, everything is related to 3.x now. If you need to 2.x docs, you may found it here https://github.com/nolimits4web/Swiper/blob/Swiper2/API.md

Will 2.x be discontinued?

@Rikk yes

Ok.
I didn't follow the development of the new version and couldn't find in the site but I think it would be interesting for users to know: what improvements were made to the new version, what features are new¹ and which ones were removed? Maybe it could be added to readme or changelog, it would be specially useful for people thinking about upgrading. Thanks!
¹ Was hash-navigation plugin incorporated, right?

@Rikk Hard to say like that, because it could be a long list:) As a quick review
Removed features:

totally dropped old browsers support
removed scollContainer in favor of using pure CSS overscroll:auto, which as much better performance and more native look on mobiles

Totally new features:

new layout, now it uses flexbox instead of float:left with nasty size calculations like in 2.x. It should fix a lot of errors and cases with wrong/long/heavy sizes in 2.x
all 2.x plugins (3D Flow, Progress, Hahshnav, Scrollbar) are incorporated and parts of the core in Swiper 3
new built in transition effects: Fade, Cube, Coverflow
true RTL support
built in navigation buttons/arrows
controller. Now one Swiper can be controlled by another one and contra versa
multi row slides layout
touch events handling with "captures". This allows to create horizontal in horizontal swipers
pagination works in different way, it is now dynamic and number of bullets is always equal to number of so called "snaps", not to number of slides like in 2.x

So, as you see, most of 2.x features are here, but reworked, improved and increased with new great things ;)

Thanks for keeping the great work!
(Now we need MS to kill IE up to 9, so the web can evolve too...)

Thank you for continuous developing of such a good plugin. We are still using it to support ie9 but i agree that such browser must be forgotten in the past. Just one quick note - it works perfectly in Chrome and ie11, but in Firefox 35.0.1 mouse drag events are not working. I believe it is because of great update and can be fixed. Once again - thank you for your work.

@Taras123
With 3.0.1 should work ok in FF. And here is info about Swiper 2 if you still use it https://github.com/nolimits4web/Swiper#swiper-2xx

I'm migrating from 2.7.5 to 3.0.1, and I am using Swiper on my Hybrid mobile application, which relies on the 'pull down to refresh' feature heavily. And it seems the demo of that is missing. And since I'm using backbone.js, I realize when used with listviews with backbone items with delegated touch events ( like tap ) the scrolling gesture on freemode, also triggers the 'tap' event easily.

hi nolimits4web ,
I'm using swiper version3.0.8, and i found that in all IE 9, 10 and 11 having problem when click to next slide. The error shown
SCRIPT438: Object doesn't support property or method 'transition'
swiper.jquery.min.js, line 15 character 31485
could you please guide me how to solve this in ie?

use this in head tags to work with IE9 or less
`<!--[if lt IE 10]>

<![endif]-->`
https://github.com/eligrey/classList.js

authors: KennyJack LucasKA Rikk Taras123 cjjuice knarfytrebil nolimits4web solarcellsky


text:
Mousewheel: add threshold for wheel scroll event

When scrolling, the carousel often jumps two pages of slides instead of one, due to inertia of the scroll. It's particularly noticeable with a mac trackpad.
To improve, I've added preventSwipeThresholdDelta and preventSwipeThresholdTime params to the mousewheel module, so that:

only scroll events over that delta threshold will be acknowledged.

and

only scroll events which happen after a threshold time in milliseconds will be acknowledged.

To make this work, you can add the following params to the config:
{
  slidesPerView: 3,
  slidesPerGroup: 3,
  spaceBetween: 20,
  direction: 'horizontal',
  speed: 500,
  mousewheel: {
    forceToAxis: true,
    // This only allows scrolls with a delta greater than 120 to be acknowledged.
    preventSwipeThresholdDelta: 120,
    // This only allows scrolls once every 3 seconds to be acknowledged.
    preventSwipeThresholdTime: 3000,
  },
}

Merged, thanks!


text:
vendor proto files

Does this tool help to vendor proto files? I'm need it to generate my own code. Now i'm simply copy needed files to my local package proto dir

It should vendor all files from all dependencies.

thanks!

authors: nomad-software vtolstov

repo: nomad-software/vend


text:
Adding a device fails with a 415 error

With cupertino 1.3.4
/Library/Ruby/Gems/2.0.0/gems/mechanize-2.5.1/lib/mechanize/http/agent.rb:304:in `fetch': 415 => Net::HTTPUnsupportedMediaType for https://developer.apple.com/services-account/QH65B2/account/ios/device/validateDevices.action?struts.token.name=clientToken&clientToken=NI48Q6R918K8SKO5C5IHMVJHSVPT68NG&register=multiple&deviceNames=&deviceNumbers= -- unhandled response (Mechanize::ResponseCodeError)
	from /Library/Ruby/Gems/2.0.0/gems/mechanize-2.5.1/lib/mechanize.rb:407:in `get'
	from /Library/Ruby/Gems/2.0.0/gems/cupertino-1.3.4/lib/cupertino/provisioning_portal/agent.rb:45:in `block in get'
	from /Library/Ruby/Gems/2.0.0/gems/cupertino-1.3.4/lib/cupertino/provisioning_portal/agent.rb:44:in `times'
	from /Library/Ruby/Gems/2.0.0/gems/cupertino-1.3.4/lib/cupertino/provisioning_portal/agent.rb:44:in `get'
	from /Library/Ruby/Gems/2.0.0/gems/mechanize-2.5.1/lib/mechanize.rb:517:in `submit'
	from /Library/Ruby/Gems/2.0.0/gems/mechanize-2.5.1/lib/mechanize/form.rb:178:in `submit'
	from /Library/Ruby/Gems/2.0.0/gems/cupertino-1.3.4/lib/cupertino/provisioning_portal/agent.rb:156:in `add_devices'
	from /Library/Ruby/Gems/2.0.0/gems/cupertino-1.3.4/lib/cupertino/provisioning_portal/commands/devices.rb:60:in `block (2 levels) in <top (required)>'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/import.rb:5:in `block in <top (required)>'
```

me too

Use spaceship to do that part
Sent from my iPhone5

On Oct 30, 2015, at 8:53 AM, objectmethod notifications@github.com wrote:
me too
—
Reply to this email directly or view it on GitHub.

Yeah, that's what I did!  Thanks
Sent from my iPhone

On Oct 30, 2015, at 2:23 PM, Steven Fransen notifications@github.com wrote:
Use spaceship to do that part
Sent from my iPhone5

On Oct 30, 2015, at 8:53 AM, objectmethod notifications@github.com wrote:
me too
—
Reply to this email directly or view it on GitHub.

—
Reply to this email directly or view it on GitHub.

Emm, any way to fix this? I don't want to use spaceship...

You just have to use a few lines os code to do add the devices have it in my Cupertino code
Sent from my iPhone5

On Nov 9, 2015, at 4:54 AM, ASPCartman notifications@github.com wrote:
Emm, any way to fix this? I don't want to use spaceship...
—
Reply to this email directly or view it on GitHub.

authors: aspcartman foozmeat objectmethod sfransen

repo: nomad/cupertino


text:
Update phosphoricons to 2.1.0 release

Updates Phosphoricons to latest 2.1.0 release

Hi @noozo , what is required to push this and release?

Sry @vitalis thanks for this. I completely missed it. <3

authors: noozo vitalis


text:
Update timestamp format for hydrophonitor files and directories

The current suggested timestamp format is problematic as colons are not accepted in file names on Windows. On macOS, they are accepted but displayed as slashes instead.
Therefore I would suggest to update timestamp format to the following:
2023-11-09T11_20_00.097+0200

Which can be obtained with e.g. date command with
date +%Y-%m-%dT%H_%M_%S.%3N%z

Great research! It's good to get these things right at the get go. Annoying to change afterwards...

authors: juliuskoskela satukoskinen

repo: nordic-dev-net/hydrophonitor-cli


text:
Sstoolkit 34

Added command 'activate' for auth certificate activation (enabling) -- xrdsst cert activate, depends on imported and registered auth certificate.

EDIT:

Added cert download-csrs command

Integration tests fail. Failure is related to PyLint errors, which should be fixed.
=============================================================================================================== FAILURES ===============================================================================================================
_____________________________________________________________________________________________ [pylint] tests/unit/test_base_controller.py ______________________________________________________________________________________________
W:129, 8: Access to a protected member _parser of a client class (protected-access)
W:130,22: Access to a protected member _parser of a client class (protected-access)
W:132, 8: Access to a protected member _pre_argument_parsing of a client class (protected-access)
R:127, 4: Method could be a function (no-self-use)
R:135, 4: Method could be a function (no-self-use)
___________________________________________________________________________________________________ [pylint] tests/unit/test_cert.py ___________________________________________________________________________________________________
C: 60, 0: Line too long (1049/160) (line-too-long)
C: 62, 0: Line too long (550/160) (line-too-long)
C:264,34: More than one statement on a single line (multiple-statements)
R:264,12: Method could be a function (no-self-use)
R:  1, 0: Similar lines in 6 files
==tests.unit.test_cert:132
==tests.unit.test_cert:147
==tests.unit.test_cert:162
==tests.unit.test_cert:178
==tests.unit.test_cert:193
==tests.unit.test_token:24
available=True,
id=0,
logged_in=True,
name='softToken-0',
possible_actions=None,
read_only=False,
saved_to_configuration=True,
serial_number=None,
status=TokenStatus.OK,
token_infos=[{'key': 'Type'}, {'value': 'Software'}],
type=TokenType.SOFTWARE, (duplicate-code)
R:  1, 0: Similar lines in 2 files
==tests.unit.test_cert:210
==tests.unit.test_token:125
ss_config = {
'logging': [{'file': '/tmp/xrdsst_test_token_log', 'level': 'INFO'}],
'api_key': [{'url': 'https://localhost:4000/api/v1/api-keys',
'key': 'private key',
'credentials': 'user:pass',
'roles': 'XROAD_SYSTEM_ADMINISTRATOR'}],
'security_server':
[{'name': 'ssX',
'url': 'https://non.existing.url.blah:8999/api/v1', (duplicate-code)
R:  1, 0: Similar lines in 2 files
==tests.unit.test_cert:224
==tests.unit.test_token:136
'owner_dn_country': 'FI',
'owner_dn_org': 'UNSERE',
'owner_member_class': 'VOG',
'owner_member_code': '4321',
'security_server_code': 'SS3',
'software_token_id': '0',
'software_token_pin': '1122'}]}
(duplicate-code)
R:  1, 0: Similar lines in 2 files
==tests.unit.test_cert:34
==tests.unit.test_token:58
not_before=datetime(2020, 11, 5, 22, 24, 45, tzinfo=tzutc()),
public_key_algorithm='RSA',
rsa_public_key_exponent=65537,
rsa_public_key_modulus=214432,  # Not even a prime, but fine ATM
signature='30eb0bde826774031726',
signature_algorithm='SHA256withRSA',
serial=5, (duplicate-code)
__________________________________________________________________________________________________ [pylint] tests/unit/test_xrdsst.py __________________________________________________________________________________________________
C: 31, 0: Final newline missing (missing-final-newline)
E: 11,11: Class 'JustObject' has no 'OP_GRAPH' member (no-member)
E: 12,11: Class 'JustObject' has no 'OP_DEPENDENCY_LIST' member (no-member)
E: 13,11: Class 'JustObject' has no 'OP_GRAPH' member (no-member)
E: 13,54: Class 'JustObject' has no 'OP_DEPENDENCY_LIST' member (no-member)
C: 18,11: Comparison should be BaseController.default_sign_key_label(security_server_config) == 'ss-name1-default-sign-key' (misplaced-comparison-constant)
C: 22,11: Comparison should be BaseController.default_auth_key_label(security_server_config) == 'ss-name2-default-auth-key' (misplaced-comparison-constant)
C: 27,11: Comparison should be BaseController.security_server_address(security_server_config) == 'somehost' (misplaced-comparison-constant)
C: 29,11: Comparison should be BaseController.security_server_address(security_server_config) == 'otherhost' (misplaced-comparison-constant)
C: 31,11: Comparison should be BaseController.security_server_address(security_server_config) == '192.168.1.33' (misplaced-comparison-constant)
----------- coverage: platform linux, python 3.8.5-final-0 -----------
Name                              Stmts   Miss  Cover
xrdsst/controllers/base.py          105     12    89%
xrdsst/controllers/cert.py          112      9    92%
xrdsst/controllers/init.py           58      3    95%
xrdsst/controllers/timestamp.py      95      9    91%
xrdsst/controllers/token.py         155     14    91%
TOTAL                               525     47    91%
Coverage HTML written to dir coverage-report
======================================================================================================= short test summary info ========================================================================================================
FAILED tests/unit/test_base_controller.py::PYLINT
FAILED tests/unit/test_cert.py::PYLINT
FAILED tests/unit/test_xrdsst.py::PYLINT
=============================================================================================== 3 failed, 76 passed in 85.34s (0:01:25) ================================================================================================
make: *** [Makefile:35: test-all] Error 1

Please also add integration tests for "cert import", "cert register" and "cert activate".

Please fix these Linter warnings:
tests/integration/init.py:1:0: R0801: Similar lines in 2 files
==xrdsst.controllers.cert:229
==xrdsst.controllers.token:210
def remote_get_token(ss_configuration, security_server):
token_id = security_server['software_token_id']
token_api = TokensApi(ApiClient(ss_configuration))
token = token_api.get_token(token_id)
return token
tests/integration/test_xrdsst.py:212:12: W0612: Unused variable 'result' (unused-variable)
tests/integration/test_xrdsst.py:219:12: W0612: Unused variable 'result' (unused-variable)
tests/integration/test_xrdsst.py:226:12: W0612: Unused variable 'result' (unused-variable)
tests/unit/test_cert.py:297:12: R1705: Unnecessary "elif" after "return" (no-else-return)
tests/unit/test_cert.py:296:32: W0613: Unused argument 'self' (unused-argument)
tests/unit/test_cert.py:296:38: W0613: Unused argument 'id' (unused-argument)
tests/unit/test_cert.py:296:0: W0613: Unused argument 'kwargs' (unused-argument)
xrdsst/controllers/cert.py:103:8: C0415: Import outside toplevel (cement.utils.fs) (import-outside-toplevel)
xrdsst/controllers/cert.py:169:20: C0415: Import outside toplevel (cement.utils.fs) (import-outside-toplevel)

Please fix these Linter warnings:
tests/integration/init.py:1:0: R0801: Similar lines in 2 files
==xrdsst.controllers.cert:229
==xrdsst.controllers.token:210
def remote_get_token(ss_configuration, security_server):
token_id = security_server['software_token_id']
token_api = TokensApi(ApiClient(ss_configuration))
token = token_api.get_token(token_id)
return token
tests/integration/test_xrdsst.py:212:12: W0612: Unused variable 'result' (unused-variable)
tests/integration/test_xrdsst.py:219:12: W0612: Unused variable 'result' (unused-variable)
tests/integration/test_xrdsst.py:226:12: W0612: Unused variable 'result' (unused-variable)
tests/unit/test_cert.py:297:12: R1705: Unnecessary "elif" after "return" (no-else-return)
tests/unit/test_cert.py:296:32: W0613: Unused argument 'self' (unused-argument)
tests/unit/test_cert.py:296:38: W0613: Unused argument 'id' (unused-argument)
tests/unit/test_cert.py:296:0: W0613: Unused argument 'kwargs' (unused-argument)
xrdsst/controllers/cert.py:103:8: C0415: Import outside toplevel (cement.utils.fs) (import-outside-toplevel)
xrdsst/controllers/cert.py:169:20: C0415: Import outside toplevel (cement.utils.fs) (import-outside-toplevel)

tests/unit/test_cert.py:296:38: W0613: Unused argument 'id' (unused-argument)
tests/unit/test_cert.py:296:0: W0613: Unused argument 'kwargs' (unused-argument)

Method with certain signature is mocked, first arguments are positional, besides chopping off existing method signatures is often a code smell even in dynamic languages.

tests/unit/test_cert.py:296:38: W0613: Unused argument 'id' (unused-argument)
tests/unit/test_cert.py:296:0: W0613: Unused argument 'kwargs' (unused-argument)

Method with certain signature is mocked, first arguments are positional, besides chopping off existing method signatures is often a code smell even in dynamic languages.

authors: bertvi unserializable


text:
Add action type to onchange callback

Motivation: I need to implement 'Save changes' functionality, but only on real data change (omit node expand and collapse), so I have to distinguish which action is which

Can this please be supported? It would really help as the onChange event is very generic and doesn't carry any information as to what had triggered it.
This package is doing some great stuff and maybe the most versatile one in the market at this time. This is just one of the ways this can be made more accessible and feature-rich.
We're using it in our project and would really benefit from this PR. please consider merging this.
+1

authors: PatrykRudzinski sanketcodes


text:
Is jitterPhysics2 deterministic? Have you considered using fixed-point numbers?

Is jitterPhysics2 deterministic? Have you considered using fixed-point numbers?

No, it is not deterministic at the moment. Fixed-point will be very slow.
Determinism should be possible to achieve for single-threaded runs. At the moment we have some "pseudo-random" code-paths which break determinism even on the same computer. I will have a look into this.

jitterPhysics2 是确定性的吗？您是否考虑过使用定点数？

This is the deterministic warehouse address for JitterPhysics2 https://gitee.com/leng_yue/jitterphysics2fixed/tree/master/

@long1752062104 Interesting! Will check it out later. How is the performance?

@long1752062104有趣！稍后会查看。性能如何？

The performance is good, but there are still some issues with the character's movement. You can add a character collider, which would be perfect

@long1752062104有趣！稍后会查看。性能如何？

性能不错，但角色的移动还是有些问题。如果能加一个角色碰撞器就完美了

This is my problem, adding the following code will make it normal
`
public void SetLinearInput(JVector deltaMove)
{
if (!CanJump(out var floor, out JVector hitpoint))
{
return;
}
deltaMove *= 3.0f;

float deltaMoveLen = deltaMove.Length();

JVector bodyVel = Body.Velocity;
bodyVel.Y = 0;

//float bodyVelLen = bodyVel.Length();

if (deltaMoveLen > 0.01f)
{
    //if (bodyVelLen < 5f)
    {
        var force = JVector.Transform(deltaMove, Body.Orientation) * 10.0f;

        //Body.AddForce(force);
        Body.Velocity = force;

        // follow Newton's law (for once) and add a force
        // with equal magnitude in the opposite direction.
        floor!.AddForce(-force, Body.Position + hitpoint);
    }
}
else
{
    Body.Velocity = JVector.Zero;
}

}
`


text:
How to keep multiple blank lines / paragraphs?

Markwon version:  4.6.2

Given the input contains multiple blank lines, the rendered output will truncate them to one blank line (see screenshots below).
I haven't found a configuration option in the documentation to keep those blank space so far, therefore I am curious whether there is an option (or plugin) that I just missed or whether this hasn't been a topic at all yet?

input
output

Hello @stefan-niedermann ,
this behavior comes directly from the commonmark spec (via commonmark-java here). There is no option or a configuration step to control it right now. But you can take a look at the NewLineInlineProcessor from the inline-parser if you wish to have more control of the parser

authors: noties stefan-niedermann

repo: noties/Markwon


text:
Encrypt then Sign

Sign then encrypt enforces the server to decrypt the token before the validation of the sender can be verified. From my point of view this seems to be inefficient and not best practice.
Am I right, that the gem just supports the method sign then encrypt and not encrypt then sign?

Right.
This gem doesn’t support JWS with plaintext payload, so you can’t sign against encrypted and compact-serialized JWE.

authors: nov tfluehmann

repo: nov/json-jwt


text:
删除图片

删除图片成功过，并为删除html标签内容

假期一并修复

authors: LuZWCHA uiuang

repo: nowandfurure/richeditor


text:
Issue with BuildServiceProvider() in ConfigureServices()

I have this warning:

Calling 'BuildServiceProvider' from application code results in an additional copy of singleton services being created. Consider alternatives such as dependency injecting services as parameters to 'Configure'.

How to don't build the service provider in ConfigureServices() but in a more appropriate place?

@thepra you need to provide more information on exactly what you're trying to accomplish, along with a small code sample. Either way, this question isn't specific to Npgsql, so please post it in the general EF Core repo (https://github.com/aspnet/EntityFrameworkCore/).

authors: roji thepra

license: PostgreSQL


text:
Array projection throws InvalidOperationException: Sequence contains no elements

From @ozonni on December 19, 2017 17:54
Making projection on array throw an exception. Check code below.
System.InvalidOperationException: Sequence contains no elements
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.NpgsqlSqlTranslatingExpressionVisitor.VisitSubQuery(SubQueryExpression expression)
   at Remotion.Linq.Clauses.Expressions.SubQueryExpression.Accept(ExpressionVisitor visitor)
   at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node)
   at Remotion.Linq.Parsing.ThrowingExpressionVisitor.Visit(Expression expression)
   at Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.SqlTranslatingExpressionVisitor.Visit(Expression expression)
   at Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.RelationalProjectionExpressionVisitor.Visit(Expression expression)
   at System.Linq.Expressions.ExpressionVisitor.VisitAndConvert[T](ReadOnlyCollection`1 nodes, String callerName)
   at Remotion.Linq.Parsing.RelinqExpressionVisitor.VisitNew(NewExpression expression)
   at Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.RelationalProjectionExpressionVisitor.VisitNew(NewExpression newExpression)
   at System.Linq.Expressions.NewExpression.Accept(ExpressionVisitor visitor)
   at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node)
   at Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.RelationalProjectionExpressionVisitor.Visit(Expression expression)
   at Microsoft.EntityFrameworkCore.Query.EntityQueryModelVisitor.VisitSelectClause(SelectClause selectClause, QueryModel queryModel)
   at Microsoft.EntityFrameworkCore.Query.RelationalQueryModelVisitor.VisitSelectClause(SelectClause selectClause, QueryModel queryModel)
   at Remotion.Linq.Clauses.SelectClause.Accept(IQueryModelVisitor visitor, QueryModel queryModel)
   at Remotion.Linq.QueryModelVisitorBase.VisitQueryModel(QueryModel queryModel)
   at Microsoft.EntityFrameworkCore.Query.EntityQueryModelVisitor.VisitQueryModel(QueryModel queryModel)
   at Microsoft.EntityFrameworkCore.Query.RelationalQueryModelVisitor.VisitQueryModel(QueryModel queryModel)
   at Microsoft.EntityFrameworkCore.Query.EntityQueryModelVisitor.CreateAsyncQueryExecutor[TResult](QueryModel queryModel)
   at Microsoft.EntityFrameworkCore.Storage.Database.CompileAsyncQuery[TResult](QueryModel queryModel)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.CompileAsyncQueryCore[TResult](Expression query, INodeTypeProvider nodeTypeProvider, IDatabase database)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.<>c__DisplayClass24_0`1.<CompileAsyncQuery>b__0()
   at Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryCache.GetOrAddQueryCore[TFunc](Object cacheKey, Func`1 compiler)
   at Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryCache.GetOrAddAsyncQuery[TResult](Object cacheKey, Func`1 compiler)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.CompileAsyncQuery[TResult](Expression query)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteAsync[TResult](Expression query, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryProvider.ExecuteAsync[TResult](Expression expression, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteAsync[TSource,TResult](MethodInfo operatorMethodInfo, IQueryable`1 source, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.FirstOrDefaultAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken)

Steps to reproduce
public enum ChannelCode {
    Code = 1
}
public class Entity {
  public int[] ChannelCodes { get; set; }
}
var entity = await Context.Entities.Select(x => new
            {
                Codes = x.ChannelCodes.Select(c => (ChannelCode)c)
            }).FirstOrDefaultAsync();

Further technical details
EF Core version: 2.0
Database Provider: Npgsql
Operating system: Win 10 Pro
IDE: Visual Studio 2017
Copied from original issue: aspnet/EntityFrameworkCore#10589

https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/blob/ec009ab937d4aa895b602cdb9e8605456accd4ac/src/EFCore.PG/Query/ExpressionVisitors/NpgsqlSqlTranslatingExpressionVisitor.cs#L69-L78
First is unsafe here since query like above there may not be any result operators.

Fixed, thanks for the guidance @smitpatel!

authors: roji smitpatel


text:
feat!: rewrite and add @npmcli/template-oss

BREAKING CHANGE: breaking changes:

the packages is now compatible with the following semver range for
node: ^14.17.0 || ^16.13.0 || >=18.0.0
the callback option has been removed from the async method. it will
now only return a promise

Closing in favor of https://github.com/npm/fs/pull/62

repo: npm/readdir-scoped-modules

license: isc


text:
fix: 画面遷移直後も視聴したブックが保持されている

関連: #553
コンポーネントがアンマウントされるとき明示的にブックを破棄することで対処
確認したこと

ブック視聴画面からの遷移でトピックプレビューが表示されること

http://localhost:3000/book?bookId=1 にアクセスし再読み込みする
http://localhost:3000/topics に遷移しスクロールせずブック1に含まれないトピックをクリックする

ブック一覧画面からの遷移でトピックプレビューが表示されること

http://localhost:3000/books にアクセスし再読み込みする
ブック1をクリックし表示する
http://localhost:3000/topics に遷移しスクロールせずブック1に含まれないトピックをクリックする

理由は分かりませんがそもそもこの変更で解決できていることを確認できませんでした。

私の環境では https://github.com/npocccties/chibichilo/pull/626 の変更によって問題が解決することを確認しました。

理由は分かりませんがそもそもこの変更で解決できていることを確認できませんでした。

https://github.com/npocccties/chibichilo/pull/625/commits/f6d34986dfb15dc6c32f30c6449d3761262b7920 の変更以降、挙動が後退したようです

もはや必要のない変更ですので、取り下げたいと思います

repo: npocccties/chibichilo


text:
xpeffector-noise.c4d example doesn't work in R17

Works in R15, but not in R17. (Haven't tested R16).

The whole XPresso Effector doesn't seem to work with R16 & R17, as if it was disabled. The CSV Effector works. A change in the API might be the cause of this, need to investigate. (note: I'll be back from vacation on 7th of October)

Re-compiling for R16 makes it work in R16 and R17. Might be an incompatibility issue with the SDK changes.

repo: nr-plugins/xpresso-effector


text:
[WIP] [RFC] Include profile options in hash

Hi!
This is an Idea to address the various issues around this topic. For instance #26 #666 maybe #472
The Idea is to extend the &profile=fastbike value to be itself a nested parameter list. I'am doing this by replacing it with an URI.
The current minimal prototype will create a url like this:
http://localhost:3000/#map=12/51.8751/12.3835/osm-mapnik-german_style,route-quality&lonlats=12.461743,51.882955;12.416908,51.840657&profile=bw%3Afastbike%3Fallow_ferries%3Dfalse
Which when when loaded again will still have the allow_ferries set to false.
I've planed four different formats:

<profile-name> -  just like it is currently when options are not required
bw:<profile-name>?<arg>=<value> - for a standard profile with options
It's an url with a custom scheme - 'bw:'
bwl:local - for a manually edit profile
Intention is to show a Message to anyone using the url that the profile is not available
http://example.com/profile.brf - for an external profile
This is for a future extension: Allowing the user to add custom profiles like they can add custom layers

Is there any interest in this approach?
Code wise I've started with creating a new class (ProfileData) to have more centralized state for all this profile related data.
My Intention is to move more of the current processing to this class so the UI-Elements can focus more on the UI part. Hopefully this would allow me to add some unit-tests for this stuff.
Of course this will require a lot of refactoring and likely new bugs. Also it will take quite some time.

As I understand, this would be a pure client-side solution that still relies on modifying and uploading a custom profile?
Yes.

However, the server now provides a way (according to https://github.com/nrenner/brouter-web/issues/666) to
Well that reads like this was not really intended by the Server?
I'am not aware of any api doc for the server?

abrensch and I agreed not to automatically load and display content from arbitrary external URLs.
Yes. My Idea was to first ask the user.
fgcvfg
Overall I read that as a 'no' to my question?

Or this profile:xyz is the 'official' way for the backend and just drop the  profile-is-a-nested-url part?

Also feels more complex moving around multiple values instead of one opaque string I have think about that.

But that's only when converting to/from URL, internally it would be a single object with key/value properties?
I don't like encoded "blobs" and would prefer to keep the URL unencoded and readable whenever possible. An alternative to multiple profile:*-prefixed URL parameters could be a single parameter with the key=value pairs separated e.g. by semicolon (;) instead of the parameter seperator (&), like we do e.g. in the lonlats parameter. The URL structure should be the same with that sent to the server, so this would need to be discussed in a server issue.

Also I think once this split of ProfileData class is in place it should be more simple to add localStorage solution for saving you 'personal' custom profile more easly. In a way this external url stuff would still be there you just have to copy&paste it once.

For me, using localStorage to remember a profile is less a technical but more a conceptional issue, how it fits with permanent/shared profiles on the server, or if localStorage is even needed once you can permanently store profiles on the server.

General Question: The current code is lots of "callback hell". Is this simply because it's rather old or are there any reasons to avoid more modern Promise or async/await ?

Using callbacks is not automatically "hell". In my understanding that term refers specifically to multiple nested callbacks, which I don't think we have that many. Originally I intended to still support older browsers and Babel was only introduced very late in the project. Now we can use modern JS features for new stuff and also gradually refactor what is being worked on (but please in a separate commit).

repo: nrenner/brouter-web


text:
Add 'static lifetime bounds to SPIS DMA buffers

We need + 'static on the WriteBuffer/ReadBuffer bounds

This PR is probably relevant here and elsewhere in nrf-hal: https://github.com/rust-embedded/embedded-dma/pull/6

authors: eldruin kalkyl

repo: nrf-rs/nrf-hal


text:
Update sbt, scripted-plugin to 1.8.0

Updates

org.scala-sbt:sbt
org.scala-sbt:scripted-plugin

from 1.6.2 to 1.8.0.
GitHub Release Notes - Version Diff
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.scala-sbt" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "org.scala-sbt" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, commit-count:1

Superseded by #278.


text:
Update sbt-release to 1.0.14

Updates com.github.gseitz:sbt-release from 1.0.13 to 1.0.14.
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!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.github.gseitz", artifactId = "sbt-release" } ]

labels: sbt-plugin-update, semver-patch

Superseded by #22.


text:
BUG: VARLOCATION in _tecplot.py : _read_zone()

For the code block beginning with:
   # If zone contains VARLOCATION, process it and remove the key/value pair
the last line of block:
line = line[:ivar] + line[i2 + 1 :]
should instead be:
line = line[:ivar] + line[i2 :]

May you provide a sample file for which the current reader doesn't work, but work with your fix?

Yes, attached are two files, the _workaround named file will work because I inserted a dummy zone header entity at the end, so that the buggy-code's deletion of the extra character will not disrupt further parsing.  Reading the other attached file will trigger the "Zone type 'ZONETYPE' not found" exception.
(P.S.: I've never liked Python's var[i:j] range indexing; a newbie would expect it to include the j (actually j+1) element)
varlocation_bug.zip

Hi, oh duh! the fix you actually made addressed the root cause - my suggestion was nonsense :-)
Thanks!

authors: frankeye keurfonluu

repo: nschloe/meshio


text:
h5py dependency

In commit b5d3cca283a35a84f451b32609841d453964d987, you introduced a hard dependency on h5py, that is, import meshio ends up failing with ImportError if h5py is not installed. Given that you are listing h5py within extras_require in setup.py, I guess this hard dependency on h5py was unintentional.

Good catch. I'm not quite sure whether to make it hard dependency now since a couple of mesh formats depend on it. Is it hard to install for you?

No, installing h5py is not an issue for me, but I hate dependencies. I try to avoid them as much as possible and reduce them at a minimum for my own projects (for example, my mpi4py project does not depend on NumPy, although that would make things much simpler for me and I'm sure no one in the world would object it).
If you want, I can try to put a PR together to make meshio raise RuntimeError if h5py is not installed. But you will have to wait a couple of days until I finish my work on #7.

Nah it's alright, I'll do it myself.
The issue with optional dependencies is that pip doesn't install them by default, so after installing meshio, people have to take further steps to make it work for their mesh selection. Almost every mesh i/o module has a dependency now. I've had some complaints about that in the past.

Maybe you can follow IPython convention and extend extras_require with an all entry, such that it installs all extra dependencies.

authors: dalcinl nschloe


text:
Mouse not declared

Thanks for providing this Script.
But when I Compile the Script there comes this issue:
'Mouse' was not declared in this scope Mouse.begin();

Was this ever working before? Probably some old version of Arduino IDE is needed?

yeah, I'm seeing the exact same issue. Seems my board does not support Mouse related functionalities

List of boards where Mouse.h is available:
https://www.arduino.cc/reference/en/language/functions/usb/mouse/

authors: dolzenko frijsdijk kaeptnkrunch netomarchiori

repo: nshadov/screensaver-mouse-jiggler


text:
Fix Indicator not drawing on some devices

On an HTC Desire X running Android 4.1 the indicator is not drawn unless you call setWillNotDraw(false)

You might want to release a new version after merging this

@cypressious Thank you :+1:
I will release new version.

authors: cypressious nshmura

repo: nshmura/RecyclerTabLayout


text:
Active flag for officers

Create a flag on officers that indicates whether the officer was employed by BPD as of 7/15/2020. Any employee who appears in 2020 Alpha Listing is active.
Also! Officers are automatically created by Populater::OfficersFromIncidents if they appear in the district journal; these should be created with active=true.

Merged.

repo: nstory/wokewindows


text:
Finish event not firing

Hi,
I've added finish="finishHandler" as in your demo, but when running my app the event doesn't fire. Below is my XML.
<VideoPlayer:Video                  id="nativeVideoPlayer"                 controls="true"                  loop="false"                  autoplay="true"                 src="{{ src }}"                 height="{{ vidHeight }}"                 android:fill="{{ (orientation != 'landscape') ? 'true' : 'false' }}"                 ios:fill="true"                 observeCurrentTime="true"                 playbackReady="vidStartStop"                 finishedEvent="vidStop"                 />
Perhaps better documentation on property and event names would help, as playBackReadyEvent (as called in your readme file is actually just called playbackReady in XML - trial and error got me there.

I have tried finish vs finishEvent - didn't help.

I'm using NS Core Javascript, CLI 6+.

repo: nstudio/nativescript-videoplayer


text:
Producer throws exception when sending a lot of messages

I am trying to stress test the producer and it seems like it is timing out all the time
Here is the code
            var producer = new Producer(seed2Addresses,
                new ProducerConfiguration(topic));
            producer.ConnectAsync().Wait();

            for (int i = 0; i < 200000; ++i)
            {
                var msg = new Message()
                {
                    Key = BitConverter.GetBytes(1),
                    Value = Encoding.UTF8.GetBytes(String.Format("Test{0}", i))
                };
                producer.Send(msg);
            }
            producer.CloseAsync(TimeSpan.FromSeconds(120)).Wait();

While running this code it throws 2 exceptions :
Timed out while waiting for Send buffers to drain. Canceling
and
Timed out even after cancelling send loop! This shouldn't happen, there will likely be message loss
I suspect that it is because of CloseAsync, but not sure ... Is this how the producer is supposed to be used in kafka4net ?

@avoxm I'll take a look soon. Meanwhile you might be willing to trace what Producer is doing under the hood:
https://github.com/ntent-ad/kafka4net/wiki/Troubleshooting#tracing

Thanks @vchekan, will check the traces from my end.

Apparently the problem was related to connectivity since I was using VPN. It works perfectly fine with "direct", no VPN connection.

authors: avoxm vchekan


text:
Double clicks are feeling unresponsive

For some reason I have to spam click the worlds to have world hop register, and sometimes it takes like 10 clicks to actual work.
As an additional note, just single click option for world hopping would be also really nice, because there isn't really any other reason to click the worlds in the list anyway.. So it would just make the switch slightly faster

how do your clicks behave using the other world hopper plugin?

I can second this issue, including the fix of double clicking on the normal world hopper plugin made it go away.

I tried to fix it when this issue was made but my account was banned (nucleon) shortly after. I think I may have automated something with the world hop list that flagged runelite. I didn’t push the fix, I’m awaiting Jagex response.
I can ask my friend Cyborger1 to look at this issue if it’s still not going away. He’s very familiar with the world lists.

authors: DelVision TrevorMDev nucleon

repo: nucleon/wintertodt-scouter


text:
Fix: Cannot parse Russian letters

Tested with video URL https://www.youtube.com/watch?v=WuypMZ5-Its on Aug 9, 2022.
Expected:
МашаМедведь, Мультфильм, новый сезон, masha and the bear, cartoons, new cartoons, про машу, мультик маша, все серии подряд, новая серия, премьера, маша и медведь, мультик, мультики, masha i medved, мультики онлайн, мультфильм смотреть, мультики смотреть, маша смотреть, мультик про машу, интересные мультики, для детей, маша и медведь все серии, новые серии, мультики новинки, с новым годом, поздравление, новый год, рождество, праздники, песни для детей, новогодние песни
Before change:
ĞœĞ°ÑˆĞ°ĞœĞµĞ´Ğ²ĞµĞ´ÑŒ, ĞœÑƒĞ»ÑŒÑ‚Ñ„Ğ¸Ğ»ÑŒĞ¼, Ğ½Ğ¾Ğ²Ñ‹Ğ¹ Ñ�ĞµĞ·Ğ¾Ğ½, masha and the bear, cartoons, new cartoons, Ğ¿Ñ€Ğ¾ Ğ¼Ğ°ÑˆÑƒ, Ğ¼ÑƒĞ»ÑŒÑ‚Ğ¸Ğº Ğ¼Ğ°ÑˆĞ°, Ğ²Ñ�Ğµ Ñ�ĞµÑ€Ğ¸Ğ¸ Ğ¿Ğ¾Ğ´Ñ€Ñ�Ğ´, Ğ½Ğ¾Ğ²Ğ°Ñ� Ñ�ĞµÑ€Ğ¸Ñ�, Ğ¿Ñ€ĞµĞ¼ÑŒĞµÑ€Ğ°, Ğ¼Ğ°ÑˆĞ° Ğ¸ Ğ¼ĞµĞ´Ğ²ĞµĞ´ÑŒ, Ğ¼ÑƒĞ»ÑŒÑ‚Ğ¸Ğº, Ğ¼ÑƒĞ»ÑŒÑ‚Ğ¸ĞºĞ¸, masha i medved, Ğ¼ÑƒĞ»ÑŒÑ‚Ğ¸ĞºĞ¸ Ğ¾Ğ½Ğ»Ğ°Ğ¹Ğ½, Ğ¼ÑƒĞ»ÑŒÑ‚Ñ„Ğ¸Ğ»ÑŒĞ¼ Ñ�Ğ¼Ğ¾Ñ‚Ñ€ĞµÑ‚ÑŒ, Ğ¼ÑƒĞ»ÑŒÑ‚Ğ¸ĞºĞ¸ Ñ�Ğ¼Ğ¾Ñ‚Ñ€ĞµÑ‚ÑŒ, Ğ¼Ğ°ÑˆĞ° Ñ�Ğ¼Ğ¾Ñ‚Ñ€ĞµÑ‚ÑŒ, Ğ¼ÑƒĞ»ÑŒÑ‚Ğ¸Ğº Ğ¿Ñ€Ğ¾ Ğ¼Ğ°ÑˆÑƒ, Ğ¸Ğ½Ñ‚ĞµÑ€ĞµÑ�Ğ½Ñ‹Ğµ Ğ¼ÑƒĞ»ÑŒÑ‚Ğ¸ĞºĞ¸, Ğ´Ğ»Ñ� Ğ´ĞµÑ‚ĞµĞ¹, Ğ¼Ğ°ÑˆĞ° Ğ¸ Ğ¼ĞµĞ´Ğ²ĞµĞ´ÑŒ Ğ²Ñ�Ğµ Ñ�ĞµÑ€Ğ¸Ğ¸, Ğ½Ğ¾Ğ²Ñ‹Ğµ Ñ�ĞµÑ€Ğ¸Ğ¸, Ğ¼ÑƒĞ»ÑŒÑ‚Ğ¸ĞºĞ¸ Ğ½Ğ¾Ğ²Ğ¸Ğ½ĞºĞ¸, Ñ� Ğ½Ğ¾Ğ²Ñ‹Ğ¼ Ğ³Ğ¾Ğ´Ğ¾Ğ¼, Ğ¿Ğ¾Ğ·Ğ´Ñ€Ğ°Ğ²Ğ»ĞµĞ½Ğ¸Ğµ, Ğ½Ğ¾Ğ²Ñ‹Ğ¹ Ğ³Ğ¾Ğ´, Ñ€Ğ¾Ğ¶Ğ´ĞµÑ�Ñ‚Ğ²Ğ¾, Ğ¿Ñ€Ğ°Ğ·Ğ´Ğ½Ğ¸ĞºĞ¸, Ğ¿ĞµÑ�Ğ½Ğ¸ Ğ´Ğ»Ñ� Ğ´ĞµÑ‚ĞµĞ¹, Ğ½Ğ¾Ğ²Ğ¾Ğ³Ğ¾Ğ´Ğ½Ğ¸Ğµ Ğ¿ĞµÑ�Ğ½Ğ¸

Good

authors: nuhmanpk trung-vt

repo: nuhmanpk/YoutubeTags


text:
🛑 Sisfo is down

In ee9a939, Sisfo (https://sisfo.binadarma.ac.id) was down:

HTTP code: 500
Response time: 5374 ms

Resolved: Sisfo is back up in 543714f after 11 minutes.


text:
first

first ✋

Second ✋

authors: FahadBinHussain numanzamandipuu

repo: numanzamandipuu/SAER


text:
Pipeline vertices template usage make the controller enter CrashLoopBackoff

Describe the bug
Whenever defining spec.template.vertex, the controller enters crashLoopBackoff with the following logs:
➜  ~ kubectl logs -n numaflow-system numaflow-controller-7547799c54-z4ggr
{"level":"info","ts":"2024-02-27T09:21:39.487764989Z","logger":"numaflow.controller-manager","caller":"cmd/start.go:202","msg":"Starting controller manager","version":"Version: v1.1.4, BuildDate: 2024-01-20T22:16:46Z, GitCommit: 7ffb521bcc15612d04fe66de33d199e8c8391a7a, GitTag: v1.1.4, GitTreeState: clean, GoVersion: go1.20.12, Compiler: gc, Platform: linux/amd64"}
I0227 09:21:39.488138       1 leaderelection.go:248] attempting to acquire leader lease numaflow-system/numaflow-controller-lock...
I0227 09:21:57.921130       1 leaderelection.go:258] successfully acquired lease numaflow-system/numaflow-controller-lock
{"level":"info","ts":"2024-02-27T09:21:57.921421247Z","logger":"numaflow.autoscaler","caller":"scaling/scaling.go:404","msg":"Starting autoscaler..."}
{"level":"info","ts":"2024-02-27T09:21:57.921529557Z","logger":"numaflow.autoscaler","caller":"scaling/scaling.go:116","msg":"Started autoscaling worker 20"}
{"level":"info","ts":"2024-02-27T09:21:57.921542733Z","logger":"numaflow.autoscaler","caller":"scaling/scaling.go:116","msg":"Started autoscaling worker 5"}
{"level":"info","ts":"2024-02-27T09:21:57.921564866Z","logger":"numaflow.autoscaler","caller":"scaling/scaling.go:116","msg":"Started autoscaling worker 11"}
{"level":"info","ts":"2024-02-27T09:21:57.921544817Z","logger":"numaflow.autoscaler","caller":"scaling/scaling.go:116","msg":"Started autoscaling worker 10"}
{"level":"info","ts":"2024-02-27T09:21:57.921562952Z","logger":"numaflow.autoscaler","caller":"scaling/scaling.go:116","msg":"Started autoscaling worker 2"}
{"level":"info","ts":"2024-02-27T09:21:57.92158256Z","logger":"numaflow.autoscaler","caller":"scaling/scaling.go:116","msg":"Started autoscaling worker 4"}
{"level":"info","ts":"2024-02-27T09:21:57.921570056Z","logger":"numaflow.autoscaler","caller":"scaling/scaling.go:116","msg":"Started autoscaling worker 7"}
{"level":"info","ts":"2024-02-27T09:21:57.921627418Z","logger":"numaflow.autoscaler","caller":"scaling/scaling.go:116","msg":"Started autoscaling worker 18"}
{"level":"info","ts":"2024-02-27T09:21:57.921612408Z","logger":"numaflow.autoscaler","caller":"scaling/scaling.go:116","msg":"Started autoscaling worker 6"}
{"level":"info","ts":"2024-02-27T09:21:57.92162852Z","logger":"numaflow.autoscaler","caller":"scaling/scaling.go:116","msg":"Started autoscaling worker 8"}
{"level":"info","ts":"2024-02-27T09:21:57.92163915Z","logger":"numaflow.autoscaler","caller":"scaling/scaling.go:116","msg":"Started autoscaling worker 19"}
{"level":"info","ts":"2024-02-27T09:21:57.921645222Z","logger":"numaflow.autoscaler","caller":"scaling/scaling.go:116","msg":"Started autoscaling worker 17"}
{"level":"info","ts":"2024-02-27T09:21:57.921638299Z","logger":"numaflow.autoscaler","caller":"scaling/scaling.go:116","msg":"Started autoscaling worker 12"}
{"level":"info","ts":"2024-02-27T09:21:57.9215668Z","logger":"numaflow.autoscaler","caller":"scaling/scaling.go:116","msg":"Started autoscaling worker 3"}
{"level":"info","ts":"2024-02-27T09:21:57.921611947Z","logger":"numaflow.autoscaler","caller":"scaling/scaling.go:116","msg":"Started autoscaling worker 1"}
{"level":"info","ts":"2024-02-27T09:21:57.921595626Z","logger":"numaflow.autoscaler","caller":"scaling/scaling.go:116","msg":"Started autoscaling worker 15"}
{"level":"info","ts":"2024-02-27T09:21:57.921650953Z","logger":"numaflow.autoscaler","caller":"scaling/scaling.go:116","msg":"Started autoscaling worker 13"}
{"level":"info","ts":"2024-02-27T09:21:57.921714968Z","logger":"numaflow.autoscaler","caller":"scaling/scaling.go:116","msg":"Started autoscaling worker 9"}
{"level":"info","ts":"2024-02-27T09:21:57.921606186Z","logger":"numaflow.autoscaler","caller":"scaling/scaling.go:116","msg":"Started autoscaling worker 16"}
{"level":"info","ts":"2024-02-27T09:21:57.921731059Z","logger":"numaflow.autoscaler","caller":"scaling/scaling.go:116","msg":"Started autoscaling worker 14"}
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x1b3fc10]

goroutine 604 [running]:
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile.func1()
	/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:119 +0x1fa
panic({0x2245cc0, 0x3b7be60})
	/opt/hostedtoolcache/go/1.20.12/x64/src/runtime/panic.go:884 +0x213
github.com/numaproj/numaflow/pkg/reconciler/vertex.(*vertexReconciler).reconcile(0xc0003dbae0, {0x294e2e8, 0xc000462b10}, 0xc001239180)
	/home/runner/work/numaflow/numaflow/pkg/reconciler/vertex/controller.go:257 +0x2990
github.com/numaproj/numaflow/pkg/reconciler/vertex.(*vertexReconciler).Reconcile(0xc0003dbae0, {0x294e2e8, 0xc0004629c0}, {{{0xc001128c40, 0xc}, {0xc000e19f50, 0x2e}}})
	/home/runner/work/numaflow/numaflow/pkg/reconciler/vertex/controller.go:75 +0x58a
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile(0x294e2e8?, {0x294e2e8?, 0xc0004629c0?}, {{{0xc001128c40?, 0x2130a80?}, {0xc000e19f50?, 0x0?}}})
	/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:122 +0xc8
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc000991cc0, {0x294e240, 0xc0003da9b0}, {0x22f1780?, 0xc000390140?})
	/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:323 +0x35f
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc000991cc0, {0x294e240, 0xc0003da9b0})
	/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:274 +0x1d9
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2()
	/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:235 +0x85
created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2
	/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:231 +0x587

I only defined nodeSelector in the template, but trying to put only imagePullCredentials in the past using the pipeline wide pod template was not working either (I'm not sure if it was for the same reason, it was a long time ago).
To Reproduce
Steps to reproduce the behavior:

Create a pipeline with a vertex template, more specifically node selector like this:

kind: Pipeline
apiVersion: numaflow.numaproj.io/v1alpha1
metadata:
  name: my-pipeline
  namespace: my-namespace
spec:
  templates:
    vertex:
      nodeSelector:
        mylabel: toSelect
  vertices:
  [...]

If issue is sucessfully replicated, no pod or stream creating job will get created, and the numaflow controller will enter crashloopbackoff.
Expected behavior
Pipeline gets its pod and streams created as usual.
Environment (please complete the following information):

Kubernetes: v1.26.1+k3s1
Numaflow: v1.1.4

For quick help and support, join our slack channel.

Message from the maintainers:
Impacted by this bug? Give it a 👍. We often sort issues this way to know what to prioritize.

For those who are experiencing this issue, you can still configure everything by moving the pod template entries into the individual vertices.
    - name: my-vertex
      partitions: 4
      udf:
        container:
          image: myimageregistry.io/myimage:v1.0.0
          env:
            - name: MY_ENV
              value: "myvalue"
      imagePullSecrets:
        - name: registry-credentials
      nodeSelector:
        mylabel: selectMe

seems like a null check missing right here

seems like a null check missing right here

Raise a PR? @inishchith

@whynowy - done. Also, can we get a patch release? 👀

@whynowy - done. Also, can we get a patch release? 👀

Absolutely!

authors: QuentinFAIDIDE inishchith whynowy

repo: numaproj/numaflow


text:
Cannot unpickle ListTypeIteratorTypes

When attempting to use njit(cache=True) on a generator function on 0aa1a4abb, I received a pickle error that can be reproduced by the following:
import pickle

import numba
from numba.core.types.containers import ListTypeIteratorType, ListTypeIterableType

iterable = ListTypeIterableType(numba.types.ListType(numba.int64))
iterator = ListTypeIteratorType(iterable)

assert iterator.name == "iter[ListType[int64]->int64]"

iterator_pkl = pickle.dumps(iterator)

pickle.loads(iterator_pkl)
# AttributeError: 'ListTypeIteratorType' object has no attribute 'name'

The error appears to arise from the ListTypeIterableType alone, as well.
It seems like it should be related to https://github.com/numba/numba/issues/8679, but I didn't see any mention of the pickleing process in that issue.  Some element of https://github.com/numba/numba/issues/5997 might also be related.

I debugged this a bit, I think the issue is that the ListTypeIterableType instantiates a ListTypeIteratorType in its __init__ that is based on a partially instantiated self. The ListTypeIteratorType then holds a references to this partially instantiated type and also queries it as part of it's __init__. Essentially, there's a cycle which resolves in the interpreter but is probably too much for pickle.

This probably shouldn't be closed, right?

authors: brandonwillard stuartarchibald

repo: numba/numba


text:
CUDA Docs: document forall method of kernels

I noticed there seems not to be any mention of forall in the docs - as this is intended to be a public API, this PR adds them to the documentation.

@esc Thanks for taking a look at this! The docs for forall actually seemed to be a bit generally lacking so I've added documentation of the parameters as well as making the original content a bit more readable.

@gmarkall sweet!

authors: esc gmarkall


text:
Fix various issues on mainline.

This addresses the following:

The set implementation initialisation and all tests in numba.tests.test_sets are now fixed.
That Azure CI config was broken and as a result managing to miss testing fundamental things, like the set tests. A new test is added as part of the test_runtests to make sure that the Azure CI is valid.

4453540eae39090bb23ea9b0b4297a16a61dae77 gets the errors down to:

numba.tests.test_random.TestRandom.test_independent_generators: Unknown attribute 'seed' of type ``Module(<module 'random' (from cpython internals)>)``
numba.tests.test_parallel_backend.TestSpecificBackend.test_random_concurrent_mix_use_omp: LoweringError(... step: native lowering... 'No definition for lowering <jit_wrapper__function_ones>'), TypingError(... step: Preprocessing for parfors... 'No implementation of Function (<built-in function arange)... No definition for lowering <jit_wrapper__built_in_function_empty>

The parallel backend test failure seem to be OpenMP only but it's quite likely that that's just a quirk of it achieving a particular state opposed to something fundamental about OpenMP.


text:
Debugging #8544

As title. Do not merge.

ebc9299 has no temp.{c, cxx} in the log, which suggests this line https://github.com/numba/numba/pull/8671#discussion_r1049452169 is potentially the cause.

e221307 has no temp.{c, cxx} in the log but does have this line https://github.com/numba/numba/pull/8671#discussion_r1049452169 present. This perhaps suggests it's NumPy's distutils patching standard distutils that "fixes" the problem. Seems like this could be due to the replacement of .spawn in the CCompiler https://github.com/numpy/numpy/blob/62e075c1c22530528bf5b6778ef51e212f65acb7/numpy/distutils/ccompiler.py#L112-L183.
The stdlib vendored distutils variant of .spawn uses a Popen with no specification for stderr handling (the new process will inherit the file descriptors from the parent): https://github.com/python/cpython/blob/3939a4b7d95a403ee587ff5d222db53ec83bec2c/Lib/distutils/spawn.py#L79 whereas the NumPy patched version of .spawn has redirection to stdout in a checked_output call https://github.com/numpy/numpy/blob/62e075c1c22530528bf5b6778ef51e212f65acb7/numpy/distutils/ccompiler.py#L145. i.e. any output to stdout/stderr from the subprocess in the NumPy patch version will be "hidden".

Closing, investigation is complete.


text:
Fix #8975:  Exception raised when calling np.random.uniform with size being an empty tuple

Closes #8975.
Add a check in np_uniform_impl3 for size=(), based on @kc611's suggestion.
However, calling np.random.uniform(0, 1, size=None) and  np.random.uniform(0, 1, size=()) does not result in the same output. While np.random.uniform(0, 1, size=None) returns a single float, np.random.uniform(0, 1, size=()) returns an array of shape () and size 1.
I believe that this is the issue @masaaldosey ran into in #8997.
As this is my first-ever PR (and thus contribution) to an open source project, I'm open to any tips/suggestions/remarks 😄

Many thanks for the PR! I think this looks like a good first contribution :-)
The changes look appropriate, and it's excellent that tests are included. It looks good to me but I'm not that familiar with this area, so I'll leave it as ready for review now (and ask what @kc611 thinks in the triage meeting today).

Thanks for the feedback!
I also figured that the issue seems to be the same with many (all?) distributions from np.random actually... And this patch only fixes np.random.uniform.
Should I try to do something about the other distributions in this PR, or is it fine if this one gets reviewed, etc and I'll try to fix the other ones in another PR?

Update: I fixed this behavior for all (I hope) distributions, and added a test that checks them all at once, based on the TestNumPyRandomAPI test.

Hey @kc611, I wasn't sure how to phrase the bug fix in the upcoming changes note, thanks for the fix and the feedback!

Just pushed a minor update to the release note, one of the lines got duplicated @kc611 😅

Yep,that's alright. :+1:
I'll go over the contents once more just in case; but otherwise this will be marked as Ready to Merge once the tests suite finishes running.

Perfect, thank you!

authors: NSchiffmacher gmarkall kc611