React.FC missing?

I've just tried using this im/export:
deps/react.ts
export { default as React } from "https://esm.sh/[react,react-dom]/react?dev&no-check";

But when I tried to create JSX component as const MyComponent: React.FC<MyComponentProps> = ({ prop1, ..., children }) => { ... }, it'd give out error that the prop bindings are implicit any.
And in test code, I can't find FC nor FunctionalComponent in imported React
deps/react.test.ts
import { React } from "./react.ts";

// ...
  console.log("React=",React);
  console.log("React.FC=",React.FC);

Output:
React= {
  default: {
    Fragment: Symbol(react.fragment),
    StrictMode: Symbol(react.strict_mode),
    Profiler: Symbol(react.profiler),
    Suspense: Symbol(react.suspense),
    Children: {
      map: [Function: mapChildren],
      forEach: [Function: forEachChildren],
      count: [Function: countChildren],
      toArray: [Function: toArray],
      only: [Function: onlyChild]
    },
    Component: [Function: Component],
    PureComponent: [Function: PureComponent],
    __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
      ReactCurrentDispatcher: { current: null },
      ReactCurrentBatchConfig: { transition: 0 },
      ReactCurrentOwner: { current: null },
      IsSomeRendererActing: { current: false },
      assign: [Function: assign],
      ReactDebugCurrentFrame: {
        setExtraStackFrame: [Function],
        getCurrentStack: null,
        getStackAddendum: [Function]
      }
    },
    cloneElement: [Function: cloneElementWithValidation],
    createContext: [Function: createContext],
    createElement: [Function: createElementWithValidation],
    createFactory: [Function: createFactoryWithValidation],
    createRef: [Function: createRef],
    forwardRef: [Function: forwardRef],
    isValidElement: [Function: isValidElement],
    lazy: [Function: lazy],
    memo: [Function: memo],
    useCallback: [Function: useCallback],
    useContext: [Function: useContext],
    useDebugValue: [Function: useDebugValue],
    useEffect: [Function: useEffect],
    useImperativeHandle: [Function: useImperativeHandle],
    useLayoutEffect: [Function: useLayoutEffect],
    useMemo: [Function: useMemo],
    useReducer: [Function: useReducer],
    useRef: [Function: useRef],
    useState: [Function: useState],
    version: "17.0.1"
  },
  Fragment: [Getter],
  StrictMode: [Getter],
  Profiler: [Getter],
  Suspense: [Getter],
  Children: [Getter],
  Component: [Getter],
  PureComponent: [Getter],
  __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: [Getter],
  cloneElement: [Getter],
  createContext: [Getter],
  createElement: [Getter],
  createFactory: [Getter],
  createRef: [Getter],
  forwardRef: [Getter],
  isValidElement: [Getter],
  lazy: [Getter],
  memo: [Getter],
  useCallback: [Getter],
  useContext: [Getter],
  useDebugValue: [Getter],
  useEffect: [Getter],
  useImperativeHandle: [Getter],
  useLayoutEffect: [Getter],
  useMemo: [Getter],
  useReducer: [Getter],
  useRef: [Getter],
  useState: [Getter],
  version: [Getter]
}
React.FC= undefined

Did I miss something here, or is React.FC just deprecated ?

FC is just a type declaration in typescript, you can not access it in js:
type FC<P = {}> = FunctionComponent<P>;

FC is just a type declaration in typescript, you can not access it in js:
type FC<P = {}> = FunctionComponent<P>;

Oh, thanks! However I still can't use it with components with binding has implicit any error.

try to remove no-check parameter?

try to remove no-check parameter?

When removed no-check, I got this error:
error: TS2344 [ERROR]: Type 'C' does not satisfy the constraint 'ElementType<any>'.
  Type 'string | number | ForwardRefExoticComponent<any> | (new (props: any) => Component<any, {}, any>) | ((props: any, context?: any) => ReactElement<any, string | ((props: any) => ReactElement<...> | null) | (new (props: any) => Component<...>)> | null)' is not assignable to type 'ElementType<any>'.
    Type 'number' is not assignable to type 'ElementType<any>'.
      Type 'C' is not assignable to type 'FunctionComponent<any>'.
        Type 'string | number | ForwardRefExoticComponent<any> | (new (props: any) => Component<any, {}, any>) | ((props: any, context?: any) => ReactElement<any, string | ((props: any) => ReactElement<...> | null) | (new (props: any) => Component<...>)> | null)' is not assignable to type 'FunctionComponent<any>'.
          Type 'string' is not assignable to type 'FunctionComponent<any>'.
        "ref" extends keyof ComponentPropsWithRef<C>
                                                  ^
    at https://esm.sh/@types/react@16.9.56/index.d.ts:120:51

i will check it

@quaos please try with --reload flag

I'm going to close this issue since you did not response for a long time, i guess it's fixed for you, thanks.


Failed download nodejs & cant find /swig

First of all, this is an amazing project. Thank you very much for your open-source contribution!
Secondly, let me explain what I want to do. I am building an Electron application using Electron-forge. The purpose of the application is to handle a handful of image formats, such as conversion, compression, etc., and ultimately distribute it to my users (for free). Because I need to handle HEIC format images, I ruled out the sharp library and chose Magickwand.js.
However, to my frustration, even after downloading the so-called "static" binaries into my project (either magickwand.node or executable binaries on MacOS arm64 M1 Max chip), it still fails to find the x11 dynamic library (and perhaps other libraries too) when running. I used the otool -L command to check the binary, and it does show dynamic links to multiple software limited to my local homebrew installation.
Since I only need to handle a limited number of common image formats, including: png, jpg, webp, tiff, heic (that's all), and none of the other features, I decided to compile a version from scratch on my machine using the Magickwand.js source code you provided.
My build script is as follows:
npm install --build-from-source --verbose --foreground-scripts           \
  --disable-fonts --disable-shared --enable-jpeg --enable-png --enable-tiff                   \
  --enable-webp --enable-jpeg2000 --disable-raw --disable-openmedia         \
  --disable-exr --disable-fftw --enable-heif \
  --disable-color --disable-xml --disable-gzip --disable-zip                   \
  --disable-bzip2 --disable-zstd --disable-xz --disable-lzma --disable-simd   \
  --disable-openmp --disable-display --disable-jbig --disable-cairo

, but it always gets stuck on the following error:
meson.build:18:7: ERROR: Failed downloading from https://nodejs.org/download/release/v20.10.0/node-v20.10.0-headers.tar.gz: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)>

I followed solutions online, setting up openssl or running the install Certificates.command for python in the system, but the issue still persists.
Sorry, I am purely a web developer and know nothing about C, C++, and compilation systems. However, after asking OpenAI, I found that xpack contains specific versions of Python, which might be why modifying the system's Python cannot solve the problem.
So I created a new issue here and look forward to your response. Any replies regarding solving the issue of 「using magick to process HEIC images in Electron」 would be greatly appreciated. Thank you in advance!

fmeson-logs.txt

Build started at 2024-07-31T17:48:11.385386
Main binary: /Users/user/Developer/test-magick-src/xpacks/.bin/python
Build Options: -Dprefix=/Users/user/Developer/test-magick-src/lib/binding/darwin-arm64 -Dbackend=ninja -Dbuildtype=release --native-file=hadron/conan.ini --native-file=hadron/system-darwin.ini --native-file=build/native/conan_meson_native.ini
Python system: Darwin
The Meson build system
Version: 1.5.1
Source dir: /Users/user/Developer/test-magick-src
Build dir: /Users/user/Developer/test-magick-src/build/native
Build type: native build
Project name: JavaScript bindings for ImageMagick-7
Project version: 2.0.0-rc.5
-----------
Detecting compiler via: `clang --version` -> 0
stdout:
Apple clang version 15.0.0 (clang-15<IP_ADDRESS>)
Target: arm64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
-----------
Running command: -cpp -x c -E -dM -
pre-processor extraction using -cpp -x c failed, falling back w/o lang
Running command: -E -dM -
-----
-----------
Detecting linker via: `clang -Wl,--version` -> 1
stderr:
ld: unknown options: --version
clang: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
-----------
Detecting Apple linker via: `clang -Wl,-v` -> 0
stderr:
@(#)PROGRAM:ld PROJECT:ld-1053.12
BUILD 10:15:51 Mar 29 2024
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
will use ld-classic for: armv6 armv7 armv7s arm64_32 i386 armv6m armv7k armv7m armv7em
LTO support using: LLVM version 15.0.0 (static support for 29, runtime is 29)
TAPI support using: Apple TAPI version 15.0.0 (tapi-15<IP_ADDRESS>)
-----------
Sanity testing C compiler: clang
Is cross compiler: False.
Sanity check compiler command line: clang sanitycheckc.c -o sanitycheckc.exe
Sanity check compile stdout:

Sanity check compile stderr:

Running test binary command:  /Users/user/Developer/test-magick-src/build/native/meson-private/sanitycheckc.exe
C compiler for the host machine: clang (clang 15.0.0 "Apple clang version 15.0.0 (clang-15<IP_ADDRESS>)")
C linker for the host machine: clang ld64 1053.12
Detecting archiver via: llvm-ar-15 --version -> [Errno 2] No such file or directory: 'llvm-ar-15'
Detecting archiver via: llvm-ar --version -> [Errno 2] No such file or directory: 'llvm-ar'
Detecting archiver via: ar --version -> 1
stderr:
usage:  ar -d [-TLsv] archive file ...
ar -m [-TLsv] archive file ...
ar -m [-abiTLsv] position archive file ...
ar -p [-TLsv] archive [file ...]
ar -q [-cTLsv] archive file ...
ar -r [-cuTLsv] archive file ...
ar -r [-abciuTLsv] position archive file ...
ar -t [-TLsv] archive [file ...]
ar -x [-ouTLsv] archive [file ...]

Detecting compiler via: clang++ --version -> 0
stdout:
Apple clang version 15.0.0 (clang-15<IP_ADDRESS>)
Target: arm64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Running command: -cpp -x c++ -E -dM -
pre-processor extraction using -cpp -x c++ failed, falling back w/o lang
Running command: -E -dM -

Detecting linker via: clang++ -Wl,--version -stdlib=libc++ -> 1
stderr:
ld: unknown options: --version
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Detecting Apple linker via: clang++ -Wl,-v -stdlib=libc++ -> 0
stderr:
@(#)PROGRAM:ld PROJECT:ld-1053.12
BUILD 10:15:51 Mar 29 2024
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
will use ld-classic for: armv6 armv7 armv7s arm64_32 i386 armv6m armv7k armv7m armv7em
LTO support using: LLVM version 15.0.0 (static support for 29, runtime is 29)
TAPI support using: Apple TAPI version 15.0.0 (tapi-15<IP_ADDRESS>)
Sanity testing C++ compiler: clang++
Is cross compiler: False.
Sanity check compiler command line: clang++ sanitycheckcpp.cc -o sanitycheckcpp.exe -stdlib=libc++
Sanity check compile stdout:

Sanity check compile stderr:

Running test binary command:  /Users/user/Developer/test-magick-src/build/native/meson-private/sanitycheckcpp.exe
C++ compiler for the host machine: clang++ (clang 15.0.0 "Apple clang version 15.0.0 (clang-15<IP_ADDRESS>)")
C++ linker for the host machine: clang++ ld64 1053.12
Detecting compiler via: clang --version -> 0
stdout:
Apple clang version 15.0.0 (clang-15<IP_ADDRESS>)
Target: arm64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Running command: -cpp -x c -E -dM -
pre-processor extraction using -cpp -x c failed, falling back w/o lang
Running command: -E -dM -

Detecting linker via: clang -Wl,--version -> 1
stderr:
ld: unknown options: --version
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Detecting Apple linker via: clang -Wl,-v -> 0
stderr:
@(#)PROGRAM:ld PROJECT:ld-1053.12
BUILD 10:15:51 Mar 29 2024
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
will use ld-classic for: armv6 armv7 armv7s arm64_32 i386 armv6m armv7k armv7m armv7em
LTO support using: LLVM version 15.0.0 (static support for 29, runtime is 29)
TAPI support using: Apple TAPI version 15.0.0 (tapi-15<IP_ADDRESS>)
Sanity testing C compiler: clang
Is cross compiler: False.
Sanity check compiler command line: clang sanitycheckc.c -o sanitycheckc.exe
Sanity check compile stdout:

Sanity check compile stderr:

Running test binary command:  /Users/user/Developer/test-magick-src/build/native/meson-private/sanitycheckc.exe
C compiler for the build machine: clang (clang 15.0.0 "Apple clang version 15.0.0 (clang-15<IP_ADDRESS>)")
C linker for the build machine: clang ld64 1053.12
Detecting archiver via: llvm-ar-15 --version -> [Errno 2] No such file or directory: 'llvm-ar-15'
Detecting archiver via: llvm-ar --version -> [Errno 2] No such file or directory: 'llvm-ar'
Detecting archiver via: ar --version -> 1
stderr:
usage:  ar -d [-TLsv] archive file ...
ar -m [-TLsv] archive file ...
ar -m [-abiTLsv] position archive file ...
ar -p [-TLsv] archive [file ...]
ar -q [-cTLsv] archive file ...
ar -r [-cuTLsv] archive file ...
ar -r [-abciuTLsv] position archive file ...
ar -t [-TLsv] archive [file ...]
ar -x [-ouTLsv] archive [file ...]

Detecting compiler via: clang++ --version -> 0
stdout:
Apple clang version 15.0.0 (clang-15<IP_ADDRESS>)
Target: arm64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Running command: -cpp -x c++ -E -dM -
pre-processor extraction using -cpp -x c++ failed, falling back w/o lang
Running command: -E -dM -

Detecting linker via: clang++ -Wl,--version -> 1
stderr:
ld: unknown options: --version
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Detecting Apple linker via: clang++ -Wl,-v -> 0
stderr:
@(#)PROGRAM:ld PROJECT:ld-1053.12
BUILD 10:15:51 Mar 29 2024
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
will use ld-classic for: armv6 armv7 armv7s arm64_32 i386 armv6m armv7k armv7m armv7em
LTO support using: LLVM version 15.0.0 (static support for 29, runtime is 29)
TAPI support using: Apple TAPI version 15.0.0 (tapi-15<IP_ADDRESS>)
Sanity testing C++ compiler: clang++
Is cross compiler: False.
Sanity check compiler command line: clang++ sanitycheckcpp.cc -o sanitycheckcpp.exe
Sanity check compile stdout:

Sanity check compile stderr:

Running test binary command:  /Users/user/Developer/test-magick-src/build/native/meson-private/sanitycheckcpp.exe
C++ compiler for the build machine: clang++ (clang 15.0.0 "Apple clang version 15.0.0 (clang-15<IP_ADDRESS>)")
C++ linker for the build machine: clang++ ld64 1053.12
Build machine cpu family: aarch64
Build machine cpu: aarch64
Host machine cpu family: aarch64
Host machine cpu: aarch64
Target machine cpu family: aarch64
Target machine cpu: aarch64
meson.build:18:7: ERROR: Failed downloading from https://nodejs.org/download/release/v20.10.0/node-v20.10.0-headers.tar.gz: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)>

Does
python3 -c 'import urllib.request; print(urllib.request.urlopen("https://google.com").read())'

work on your installation?

Thank you for the quick reply!
After switching to a clean M1 chip computer, the problem disappeared, and nodejs seems to be able to download properly, so please ignore my previous issue.
However, a new problem has arisen. After downloading node, executing swig-related content prompts that the file cannot be found. I went through the issues and found that you seem to have changed the build output from /build to /swig before, but I don't see that directory in the project now. Did I miss something?
By the way, I cloned the project with git clone --recursive https://github.com/mmomtchev/magickwand.js .

Error log(again)

Build started at 2024-08-01T00:39:47.411387
Main binary: /Users/x/Developer/test-magick-src/xpacks/.bin/python
Build Options: -Dprefix=/Users/x/Developer/test-magick-src/lib/binding/darwin-arm64 -Dbackend=ninja -Dbuildtype=release --native-file=hadron/conan.ini --native-file=hadron/system-darwin.ini --native-file=build/native/conan_meson_native.ini
Python system: Darwin
The Meson build system
Version: 1.5.1
Source dir: /Users/x/Developer/test-magick-src
Build dir: /Users/x/Developer/test-magick-src/build/native
Build type: native build
Project name: JavaScript bindings for ImageMagick-7
Project version: 2.0.0-rc.5
-----------
Detecting compiler via: `clang --version` -> 0
stdout:
Apple clang version 15.0.0 (clang-15<IP_ADDRESS>)
Target: arm64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
-----------
Running command: -cpp -x c -E -dM -
pre-processor extraction using -cpp -x c failed, falling back w/o lang
Running command: -E -dM -
-----
-----------
Detecting linker via: `clang -Wl,--version` -> 1
stderr:
ld: unknown options: --version
clang: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
-----------
Detecting Apple linker via: `clang -Wl,-v` -> 0
stderr:
@(#)PROGRAM:ld PROJECT:ld-1053.12
BUILD 10:15:51 Mar 29 2024
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
will use ld-classic for: armv6 armv7 armv7s arm64_32 i386 armv6m armv7k armv7m armv7em
LTO support using: LLVM version 15.0.0 (static support for 29, runtime is 29)
TAPI support using: Apple TAPI version 15.0.0 (tapi-15<IP_ADDRESS>)
-----------
Sanity testing C compiler: clang
Is cross compiler: False.
Sanity check compiler command line: clang sanitycheckc.c -o sanitycheckc.exe
Sanity check compile stdout:

Sanity check compile stderr:

Running test binary command:  /Users/x/Developer/test-magick-src/build/native/meson-private/sanitycheckc.exe
C compiler for the host machine: clang (clang 15.0.0 "Apple clang version 15.0.0 (clang-15<IP_ADDRESS>)")
C linker for the host machine: clang ld64 1053.12
Detecting archiver via: llvm-ar-15 --version -> [Errno 2] No such file or directory: 'llvm-ar-15'
Detecting archiver via: llvm-ar --version -> [Errno 2] No such file or directory: 'llvm-ar'
Detecting archiver via: ar --version -> 1
stderr:
usage:  ar -d [-TLsv] archive file ...
ar -m [-TLsv] archive file ...
ar -m [-abiTLsv] position archive file ...
ar -p [-TLsv] archive [file ...]
ar -q [-cTLsv] archive file ...
ar -r [-cuTLsv] archive file ...
ar -r [-abciuTLsv] position archive file ...
ar -t [-TLsv] archive [file ...]
ar -x [-ouTLsv] archive [file ...]

Detecting compiler via: clang++ --version -> 0
stdout:
Apple clang version 15.0.0 (clang-15<IP_ADDRESS>)
Target: arm64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Running command: -cpp -x c++ -E -dM -
pre-processor extraction using -cpp -x c++ failed, falling back w/o lang
Running command: -E -dM -

Detecting linker via: clang++ -Wl,--version -stdlib=libc++ -> 1
stderr:
ld: unknown options: --version
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Detecting Apple linker via: clang++ -Wl,-v -stdlib=libc++ -> 0
stderr:
@(#)PROGRAM:ld PROJECT:ld-1053.12
BUILD 10:15:51 Mar 29 2024
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
will use ld-classic for: armv6 armv7 armv7s arm64_32 i386 armv6m armv7k armv7m armv7em
LTO support using: LLVM version 15.0.0 (static support for 29, runtime is 29)
TAPI support using: Apple TAPI version 15.0.0 (tapi-15<IP_ADDRESS>)
Sanity testing C++ compiler: clang++
Is cross compiler: False.
Sanity check compiler command line: clang++ sanitycheckcpp.cc -o sanitycheckcpp.exe -stdlib=libc++
Sanity check compile stdout:

Sanity check compile stderr:

Running test binary command:  /Users/x/Developer/test-magick-src/build/native/meson-private/sanitycheckcpp.exe
C++ compiler for the host machine: clang++ (clang 15.0.0 "Apple clang version 15.0.0 (clang-15<IP_ADDRESS>)")
C++ linker for the host machine: clang++ ld64 1053.12
Detecting compiler via: clang --version -> 0
stdout:
Apple clang version 15.0.0 (clang-15<IP_ADDRESS>)
Target: arm64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Running command: -cpp -x c -E -dM -
pre-processor extraction using -cpp -x c failed, falling back w/o lang
Running command: -E -dM -

Detecting linker via: clang -Wl,--version -> 1
stderr:
ld: unknown options: --version
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Detecting Apple linker via: clang -Wl,-v -> 0
stderr:
@(#)PROGRAM:ld PROJECT:ld-1053.12
BUILD 10:15:51 Mar 29 2024
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
will use ld-classic for: armv6 armv7 armv7s arm64_32 i386 armv6m armv7k armv7m armv7em
LTO support using: LLVM version 15.0.0 (static support for 29, runtime is 29)
TAPI support using: Apple TAPI version 15.0.0 (tapi-15<IP_ADDRESS>)
Sanity testing C compiler: clang
Is cross compiler: False.
Sanity check compiler command line: clang sanitycheckc.c -o sanitycheckc.exe
Sanity check compile stdout:

Sanity check compile stderr:

Running test binary command:  /Users/x/Developer/test-magick-src/build/native/meson-private/sanitycheckc.exe
C compiler for the build machine: clang (clang 15.0.0 "Apple clang version 15.0.0 (clang-15<IP_ADDRESS>)")
C linker for the build machine: clang ld64 1053.12
Detecting archiver via: llvm-ar-15 --version -> [Errno 2] No such file or directory: 'llvm-ar-15'
Detecting archiver via: llvm-ar --version -> [Errno 2] No such file or directory: 'llvm-ar'
Detecting archiver via: ar --version -> 1
stderr:
usage:  ar -d [-TLsv] archive file ...
ar -m [-TLsv] archive file ...
ar -m [-abiTLsv] position archive file ...
ar -p [-TLsv] archive [file ...]
ar -q [-cTLsv] archive file ...
ar -r [-cuTLsv] archive file ...
ar -r [-abciuTLsv] position archive file ...
ar -t [-TLsv] archive [file ...]
ar -x [-ouTLsv] archive [file ...]

Detecting compiler via: clang++ --version -> 0
stdout:
Apple clang version 15.0.0 (clang-15<IP_ADDRESS>)
Target: arm64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Running command: -cpp -x c++ -E -dM -
pre-processor extraction using -cpp -x c++ failed, falling back w/o lang
Running command: -E -dM -

Detecting linker via: clang++ -Wl,--version -> 1
stderr:
ld: unknown options: --version
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Detecting Apple linker via: clang++ -Wl,-v -> 0
stderr:
@(#)PROGRAM:ld PROJECT:ld-1053.12
BUILD 10:15:51 Mar 29 2024
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
will use ld-classic for: armv6 armv7 armv7s arm64_32 i386 armv6m armv7k armv7m armv7em
LTO support using: LLVM version 15.0.0 (static support for 29, runtime is 29)
TAPI support using: Apple TAPI version 15.0.0 (tapi-15<IP_ADDRESS>)
Sanity testing C++ compiler: clang++
Is cross compiler: False.
Sanity check compiler command line: clang++ sanitycheckcpp.cc -o sanitycheckcpp.exe
Sanity check compile stdout:

Sanity check compile stderr:

Running test binary command:  /Users/x/Developer/test-magick-src/build/native/meson-private/sanitycheckcpp.exe
C++ compiler for the build machine: clang++ (clang 15.0.0 "Apple clang version 15.0.0 (clang-15<IP_ADDRESS>)")
C++ linker for the build machine: clang++ ld64 1053.12
Build machine cpu family: aarch64
Build machine cpu: aarch64
Host machine cpu family: aarch64
Host machine cpu: aarch64
Target machine cpu family: aarch64
Target machine cpu: aarch64
Node.js library distribution:  /Users/x/Library/Caches/node-hadron/node/v18.19.0
Running command: /Users/x/.nvm/versions/node/v18.19.0/bin/node -p 'fs.readdirSync("/Users/x/Developer/test-magick-src/swig").filter(x => x.match(/cxx$/)).map((x) => swig/${x}).join(",")'
--- stdout ---
--- stderr ---
node:internal/fs/utils:351
throw err;
^
Error: ENOENT: no such file or directory, scandir '/Users/x/Developer/test-magick-src/swig'
at Object.readdirSync (node:fs:1525:3)
at [eval]:1:4
at Script.runInThisContext (node:vm:122:12)
at Object.runInThisContext (node:vm:298:38)
at node:internal/process/execution:82:21
at [eval]-wrapper:6:24
at runScript (node:internal/process/execution:81:62)
at evalScript (node:internal/process/execution:103:10)
at node:internal/main/eval_string:30:3 {
errno: -2,
syscall: 'scandir',
code: 'ENOENT',
path: '/Users/x/Developer/test-magick-src/swig'
}
Node.js v18.19.0
meson.build:35:10: ERROR: Command /Users/x/.nvm/versions/node/v18.19.0/bin/node -p 'fs.readdirSync("/Users/x/Developer/test-magick-src/swig").filter(x => x.match(/cxx$/)).map((x) => swig/${x}).join(",")' failed with status 1.

dir shotscreen:

Thank you!

Does
python3 -c 'import urllib.request; print(urllib.request.urlopen("https://google.com").read())'

work on your installation?

Also what does
which openssl
openssl version -d

say?

To inform future people of potential similar issues, I will explain the result of executing this command on this computer when nodejs is properly acquired:
python3 -c 'import urllib.request; print(urllib.request.urlopen("https://google.com").read())'

Successfully retrieved HTML content.
and
which openssl output: /opt/homebrew/anaconda3/bin/openssl
openssl version -d output: OPENSSLDIR: "/opt/homebrew/anaconda3/ssl"

If you checkout the source tree from git you will need SWIG JSE 5.0.4 to regenerate the wrappers.
If you are rebuilding the npm package, the SWIG generated wrappers are already included.
It is a little bit like configure.ac and configure - configure is usually not committed to git but it is included in release tarballs.

Thank you very much for your suggestion!
From the output, I have successfully run -—build-from-source（the cmd i mention above).
Now, to integrate this into my Electron application, do I just need to move everything from the lib directory and index.cjs under native into my Electron app directory? Or, do I just need the lib/binding/darwin-arm64/magickwand.node file (I noticed it's quite large)?
While I noticed that the main field in package.json points to native, and index.mjs under native uses /swig/magickwand-js.cjs, I don't need the .mjs re-export so I ignored it.
Thanks again!

hadron does not support Electron yet. Electron requires to rebuild with its own headers and libraries.

You can use the WASM version which should work without any additional setup.

I directly placed the file lib/binding/darwin-arm64/magickwand.node into my Electron application and required it, and it worked well.
Of course, this might be because I haven't packaged and distributed it to my users yet, so maybe it only works on my machine?
Also, you suggest that I use the WASM version directly. Should I download the emscripten-wasm32.tar.gz file from this directory https://github.com/mmomtchev/magickwand.js/releases, extract it to get the three files, including one .wasm and two corresponding .mjs files, and integrate them into Electron?
Thanks for the reply!

You might have problems, including crashes, because the node-api of Electron is slightly different - for example it does not support creating a Buffer without copying. Generally, you need to rebuild with the Electron headers. It is a special option for node-gyp that hasn't yet been implemented in hadron.

You might have problems, including crashes, because the node-api of Electron is slightly different - for example it does not support creating a Buffer without copying. Generally, you need to rebuild with the Electron headers. It is a special option for node-gyp that hasn't yet been implemented in hadron.

Thank you for your suggestion. At the current stage, I'll try using WASM first. Thanks!


Update to Bevy 0.11

I have found this library very useful with Bevy 0.10, however, Bevy 0.11 was just released.  So here is my solution to update to Bevy 0.11 following the migration guide.

thanks for your work - I was also meaning to get to this but discovered a bug in the multi-bar scenario where only the bar would get updated that had its plugin registered first. I first thought this had something to do with the bevy upgrade but it's also present in 0.10. I will merge #15 so this lib is available for 0.11.0 and maybe we can continue with the web fixes here

mind closing here as this is supported upstream?


Replace github.com/simplereach/timeutils for windows support

Hi @kovetskiy ,
This replace the timeutils wrapper with the native function time.Parse. This allow compiling on windows, together with #1
I hope I can get both merged, and let me know if you have any thought.

Hi,
thanks for the PR,
the timeutils wrapper supports much more parsing formats than stdlib's time.ParseFormat and it will break compatibility for our current users on Linux, I'd say we need to use time.ParseFormat only for windows systems and keep it cool for Linux users in the same way as you did it with spinner-go: https://github.com/kovetskiy/spinner-go/pull/1
What do you think?

Hi @kovetskiy,
Thanks for your review. I changed it as you required and I hope you agree with this.

Thanks!


How to search for pattern containing both single and double quotes?

I can use ag '"' to search for a double quote and ag "'" to search for a single quote.
But how do I search for something like "'abc'" (including the double and single quotes)?
Using escapes does not work. I tried both ag '"\'abc\'"' and ag "\"'abc\"". But neither worked.

It works fine for me :
echo "\"'abc'\"" > foo
ag "\"'abc'\""

    foo
    1:"'abc'"

I'm using ag version 0.30

@netei Thanks for confirming.. it is the tcsh shell that's causing me problem (grumble need to use that shell at work grumble). It works fine in bash.
I'll post a solution to this in this thread for other tcsh users.. when I get a solution. But as it is not related to ag, I am closing this issue.
Thanks again.

You could use the following to properly include " : http://stackoverflow.com/questions/382734/escaping-double-quotes-with-tcsh-alias#382770

Thanks! I finally got it resolved. I have been used to using single quotes to wrap my regex; now I guess, I need to start using double quotes in general.
Here is my test script for reference:
#!/bin/tcsh -f

set dq = '"'; set DQ = $dq # double quote
set sq = "'"; set SQ = $sq # single quote

# '"Hello"'
echo He said "'"'"Hello"'"'" with strange quotation marks. >! temp.foo
echo "Contents of temp.foo:"
cat temp.foo
echo "agging only for Hello .."
\ag Hello temp.foo
echo "agging for Hello with the first double quote .."
\ag ${dq}Hello temp.foo
# Above is the same as \ag "${dq}Hello" temp.foo
\ag "${dq}Hello" temp.foo
echo "agging for Hello with both double quotes .."
\ag "${dq}Hello${dq}" temp.foo
echo "agging for Hello with both double and single quotes .."
\ag "'${dq}Hello${dq}'" temp.foo
# Above is the same as \ag "${sq}${dq}Hello${dq}${sq}" temp.foo
\ag "${sq}${dq}Hello${dq}${sq}" temp.foo
echo ""

# "'Hello'"
echo He said '"'"'Hello'"'"' with strange quotation marks. >! temp.foo
echo "Contents of temp.foo:"
cat temp.foo
echo "agging only for Hello .."
\ag Hello temp.foo
echo "agging for Hello with the first single quote .."
\ag ${sq}Hello temp.foo
# Above is the same as \ag "${sq}Hello" temp.foo
\ag "${sq}Hello" temp.foo
# Above is the same as \ag "'Hello" temp.foo
\ag "'Hello" temp.foo
echo "agging for Hello with both single quotes .."
\ag "'Hello'" temp.foo
# Above is the same as \ag "${sq}Hello${sq}" temp.foo
\ag "${sq}Hello${sq}" temp.foo
echo "agging for Hello with both double and single quotes .."
\ag "${dq}'Hello'${dq}" temp.foo
# Above is the same as \ag "${dq}${sq}Hello${sq}${dq}" temp.foo
\ag "${dq}${sq}Hello${sq}${dq}" temp.foo


[Ruby 3.0] Fix Ruby 2.7's deprecation warnings

Checklist

[x] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary.

Motivation and Context

As per plan #17931, I've been working on Ruby  3.0 migration in fastlane project. Prior to this PR, I have enabled CI testing for Ruby 2.7 #17861. We can now run unit testing in Ruby 2.7 in order to see if there are deprecation warnings by leveraging the new option "-W:deprecated" in Ruby 2.7.2.

Deprecation warnings are off by default on 2.7.2 and later. You can turn on deprecation warnings by specifying the -w or -W:deprecated option at the command-line.
https://www.ruby-lang.org/en/news/2020/10/02/ruby-2-7-2-released/

There is a minor breaking change in Ruby 3.0 which is called "Separation of positional and keyword arguments". In short, the below code won't run on Ruby 3.0. Previously you could pass a Hash object as keyword arguments to a method, but now you need to either use ** to turn Hash into keywords arguments or simply use keywords to pass parameters. This is the most common case we need to fix.
def say(string:)
  puts string
end
params = { string: "Hello" }

# Bad in Ruby 3.0
say(params)
say({ string: "Hello" })

# Good in Ruby 3.0
say(string: "Hello")
say(**params)
say(**{ string: "Hello" })

See details below.
https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/
Thanks to the warnings, I could fix them as far as I got. There might be more within this project potentially but it's impossible to review every single line of code. So I expect the community to report something not working on Ruby 3.0 if they find once the whole migration is done in future🙇
Note that this PR mostly covers the codebase within this project. There are also the same warnings from dependencies. I will work on it in another PR.
Description

Other than adding ** or giving parameters to keyword arguments, I did the followings.

Update Rakefile and .circleci/config.yml to prevent regressions by monitoring deprecation warnings
Clean up unused attributes in FastlaneCore::Project
Using keywords arguments in ERB.new
Relax dependencies' versioning in gemspec for testing libraries, which allows us to fix some warnings quickly

This is the list I used as a reference of where to fix. As I mentioned, I didn't try to fix issues in slack-notifier and rspec-mocks in this list.
https://gist.github.com/ainame/d7f1c4d2fb07f139d3a0f064d4cbda75
Testing Steps

CI passed unit tests on all the environments. I will give it a try on my project briefly, too🙂

This is awesome, it might be worth a major bump 👊 of fastlane's version number.
Also, I noticed you addressed some potential issues with plugins, what sort of testing did you end up doing with plugins? Do you happen to know if plugins needs to be updated to work?

@taquitos Thank you for your feedback!

it might be worth a major bump 👊 of fastlane's version number (when you get the 3.0 pr up 😃).

Yes, I know this migration project can potentially bring big benefits eventually; e.g. start supporting .rbs file, etc, but I haven't planed to make breaking changes so far. It's up to Josh😛 And this PR is supposed to be merged into the main branch so that we won't need to rebase a feature branch for the migration day-to-day. This is why I implemented the CI check to not make further regressions.

you addressed some potential issues with plugins, what sort of testing did you end up doing with plugins

This PR has nothing to deal with external gems/plugins. Are you talking about this PR? https://github.com/fastlane/fastlane/pull/18053

Dear Satoshi,
Thank you for working on these changes!
As a datapoint, I recently tried updating fastlane using your branch, and I encountered this error:
$ ruby --version
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin19]

$ cat Gemfile
source "https://rubygems.org"
gem "fastlane", git: "git@github.com:ainame/fastlane.git", branch: "fix-ruby2.7-warnings"

$ bundle update
Fetching git@github.com:ainame/fastlane.git
Warning: Permanently added the RSA host key for IP address '<IP_ADDRESS>' to the list of known hosts.
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler found conflicting requirements for the Ruby version:
  In Gemfile:
    Ruby

    fastlane was resolved to 2.175.0, which depends on
      google-api-client (>= 0.37.0, < 0.39.0) was resolved to 0.38.0, which depends on
        Ruby (~> 2.4)

I would be grateful for any advice you could offer. Thanks again!

@taquitos Thank you for your feedback!

it might be worth a major bump 👊 of fastlane's version number (when you get the 3.0 pr up 😃).

Yes, I know this migration project can potentially bring big benefits eventually; e.g. start supporting .rbs file, etc, but I haven't planed to make breaking changes so far. It's up to Josh😛 And this PR is supposed to be merged into the main branch so that we won't need to rebase a feature branch for the migration day-to-day. This is why I implemented the CI check to not make further regressions.

Ahhh solid, now I get it.

you addressed some potential issues with plugins, what sort of testing did you end up doing with plugins

This PR has nothing to deal with external gems/plugins. Are you talking about this PR? #18053

Nope, I got confused, carry on. This is great work 😃

@unityfeth
Hey, thank you for trying this out but unfortunately, this PR isn't meant to give fastlane Ruby 3.0 support yet. This is actually just the beginning of the long journey😄 Please check this issue for details (especially the TODO section 🏃 )
https://github.com/fastlane/fastlane/issues/17931

Hey, thank you for trying this out but unfortunately, this PR isn't meant to give fastlane Ruby 3.0 support yet. This is actually just the beginning of the long journey😄

Thank you so much! I started to realize that after reading the Issue more carefully. Sorry for the noise. Please feel free to ping me to test anything you'd like feedback on.
Kind regards


Prevent erasing _config that's been set in the constructor

I made this change in PR #335 but it got dropped in issue #368 because I didnt write a test for it.
I added a test case for an inherited behavior. This doesn't break the test added for indexed config.

Coverage decreased (-2.4%) to 97.619% when pulling d40e0beeca71cba3b10a35f5818442e381797152 on Phillaf:master into b2b9ff680897230341d3117fb013ad309f0e5bd1 on josegonzalez:master.

I made a typo in the original pull request description. The problematic line has been re-introduced in #378

Coverage decreased (-2.4%) to 97.619% when pulling b3e4f529b136edaa7b47a638c77536039398767f on Phillaf:master into b2b9ff680897230341d3117fb013ad309f0e5bd1 on josegonzalez:master.

Coverage remained the same at 100.0% when pulling c314b44665d2a6eee62262822f7bf23f3e27385c on Phillaf:master into b2b9ff680897230341d3117fb013ad309f0e5bd1 on josegonzalez:master.

Coverage remained the same at 100.0% when pulling c314b44665d2a6eee62262822f7bf23f3e27385c on Phillaf:master into b2b9ff680897230341d3117fb013ad309f0e5bd1 on josegonzalez:master.


Make SourceLocation and related types Hashable

It seems natural to be able to compare source locations for equality, or to add locations to a Set or use them as keys in dictionaries. Currently this requires declaring manual Hashable conformance in libraries that use SwiftSyntax, which is error-prone.

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

Build failed
Swift Test Linux Platform
Git Sha - 9aaae858c9986a0a7beeea2839b1fe0dae57f24e

Build failed
Swift Test Linux Platform
Git Sha - 9aaae858c9986a0a7beeea2839b1fe0dae57f24e

@swift-ci please test

@swift-ci please test

Please feel free to merge when you see fit, I don't have commit access here.

Please feel free to merge when you see fit, I don't have commit access here.


Allowing i18n

God damnit, I force-pushed and now this code is lost. gg.

Guess you're stuck with English :stuck_out_tongue:


[joy-ui][Textarea] Fix focus ring for error state

close #39329
After: https://codesandbox.io/s/joy-ui-cra-ts-k6tncs?file=/src/App.tsx

[x] I have followed (at least) the PR section of the contributing guide.

👏 Great job for the first PR. Looking forward to the next one!

super excited 🤩


RISC-V: JALR rd == 0 does not emit a branch

However, I encountered another problem: "functions" that are called with jalr rd, rs1, imm usually end with jr rd. Obviously, the control-flow is the target "function" is unresolved, since rd does not have defined value in the context of the function.
As a matter of fact, this target "function" (ending with jr rd) is most probably just one or multiple basic blocks that are shared between multiple calling functions for space optimization.
Is there any way to tell BN to treat these target "functions" as such ? (i.e. not functions, but basic blocks to reattach to different parent functions). Doing this manually would be the equivalent of "Append function tail" feature in IDA ; that would be great is BN would handle this automatically (BN usually has no problem with shared basic blocks IIRC)
Or maybe my patch is incomplete, and this is already handled.
Anyway, thanks in advance

Forwarded for @jeanmicheldeva (original message)

While the first idea would be to emit an unresolved branch this would be ill-advised as that same instruction is used for function calls, some changes in analysis would be required to emit an unresolved branch that functions as a call in certain scenarios. I have yet to look into exactly what needs to change but I think it's pretty straightforward.


fix(package): includes html link import fix from the fork.

This is a sad day, diverging from the main line. See
https://github.com/skatejs/web-components/issues/5 for background.
I'm leaving this in PR for visibility, happy to discuss what we should do about it.

I've just opened #8. Would be good to discuss because that might fix our issues altogether plus it's semver'd.

Closing as #8 implements https://github.com/WebReflection/document-register-element


Typo in the intro paragraph

The bracket was in the middle of the word shell in the second sentence. (Toward the end)

Hi @theseanything, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;

@vlivech - Please review this contribution from @theseanything to your article in the public repo.

@tysonn this is fine to merge. @theseanything thank you for finding and fixing this typo!


[DG] Refine manual testing instructions

Could consider omitting how to test features (since there's already the UG), or refining further

More info: https://nus-cs2103-ay2122s1.github.io/website/admin/tp-deliverables.html#deliverable-developer-guide-dg

need to update more ...

Will add a couple of lines on how to test upload.


Inline Mode scroll up or down popup does not vanish

Jodit Version:  3.1.91
Electron/chrome app
Expected behavior:
when scrolling up or down the popup menu should vanish
Actual behavior:
does no vanish

Hi, how do I repeat this?

Hi, on scroll just hide the toolbar.

Fixed in 3.1.93


Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project testmocks: Fatal error compiling

Search before asking

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

Version
macos m1 12.6.6
Minimal reproduce step
./mvnw package -Dmaven.test.skip
What did you expect to see?
build success
What did you see instead?
use jdk17, [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project testmocks: Fatal error compiling: 错误: 不支持发行版本 1.8 -> [Help 1]
Anything else?
No response
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

Do you use Java 1.8?

java version "17.0.2" 2022-01-18 LTS
Java(TM) SE Runtime Environment (build 17.0.2+8-LTS-86)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.2+8-LTS-86, mixed mode, sharing)


Can't connect GitHub account

Dev Home version
<IP_ADDRESS>
Windows build number
10.0.22621.1702
Other software
OS Build Version: 10.0.22621.1702.amd64fre.ni_release.220506-1250
.NET Version: .NET 6.0.16
Steps to reproduce the bug
Go for link a GitHub account, click on the login button
Expected result
The button should redirect to the GitHub's login page on the browser
Actual result
The button login doesn't take any effect.
Included System Information
CPU: AMD Ryzen 5 5500U with Radeon Graphics
Physical Memory: 7.39GB (1.32GB free)
Processor Architecture: x64
Included Extensions Information
Extensions:
Microsoft.Windows.DevHome_<IP_ADDRESS>_x64__8wekyb3d8bbwe
Microsoft.Windows.DevHomeGitHubExtension_<IP_ADDRESS>_x64__8wekyb3d8bbwe

Encounter the same issue this morning; didn't work on first attempt but fine on the third 🙃

If you close the account sign in popup and try again, it should work (known issue we are looking into).  If it doesn't, let me know.
/dup https://github.com/microsoft/devhomegithubextension/issues/108


[SPARK-23230][SQL][BRANCH-2.2]When hive.default.fileformat is other kinds of file types, create textfile table cause a serde error

When hive.default.fileformat is other kinds of file types, create textfile table cause a serde error.
We should take the default type of textfile and sequencefile both as org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe.
set hive.default.fileformat=orc;
create table tbl( i string ) stored as textfile;
desc formatted tbl;

Serde Library org.apache.hadoop.hive.ql.io.orc.OrcSerde
InputFormat  org.apache.hadoop.mapred.TextInputFormat
OutputFormat  org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat

Can one of the admins verify this patch?

Can one of the admins verify this patch?

ok to test

Test build #87365 has started for PR 20593 at commit 979323a.

Test build #87365 has finished for PR 20593 at commit 979323a.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/87365/
Test PASSed.

@dongjoon-hyun Hi, I have a digression question, the latest version of Hadoop is 3.0.0, why Spark still uses Hadoop 2.6.5? Does spark plan to upgrade Hadoop from 2.6.5 to 3.0.0?
I am only a downstream of Spark, and we encountered some dependency conflicts problems. I'm not sure if it is suitable to ask this question here, if you have the upgrade plannning, I can report this in Jira.

Supporting Hadoop 3.0 is being discussed. Now, we do not support it yet.

Thanks! Merged to 2.2.
Could you close it?


Win 10 IoT core

I was wondering if this program would run or be converted over to win 10 IoT core on a raspberry pi and a 7 or 10 in screen. This would make a nice small cheap controller for a desktop cnc.

It would mean converting to a UWP, which I did look at for a while. The big issue at the time was no serial/FT232 support but that was eventually provided. In the end it is a lot of work to end up on a small display with fewer GUI features.
I don't have any motiviation for doing this myself, for about the cost of a Raspi and display you can get a used laptop.

I have been using this little laptop from Walmart with great success. On sale right now for $108 with free shipping.
I asked the same question a while back and another fellow suggested the same to me.
By the time you buy the rpi, monitor, conversion cable from hdmi to vga (most old cheap monitors don't have hdmi), keyboard, power supply for the pi. You are getting really close to the $100 mark.
The cambio runs windows 10 has wifi built in and 1 USB port. I got a USB hub so I can connect multiple devices and it works great.
I setup a drop box account on it and have a more powerful computer I use for programming. I post the program to drop box and t magically appears on the laptop :D
And as a bonus, I have a computer I can take out in the field for programming my rc race quadcopters. And it's touchscreen
https://www.walmart.com/ip/RCA-Cambio-10.1-2-in-1-Tablet-32GB-Intel-Atom-Z3735F-Quad-Core-Processor-Windows-10/45804385

@tklus  Bingo, what a deal that is. And touch as well, which is not supported on Win IoT yet.


Pipenv is issuing false conflicts when trying to install libs

In a brand new environment Im trying to install django = "==1.8.19" and django-redis = "==4.4.4".
However, Pipenv warns a conflict:
Could not find a version that matches django==1.8.19,>=1.11.
The thing is: django-redis at version 4.4.4 has no dependency on Django, as we can see here: https://github.com/niwinz/django-redis/blob/4.0.0/setup.py#L19
On the other hand, django-redis at the current release (4.9.0) and on master has a dependency on Django 1.11, as we can see here: https://github.com/niwinz/django-redis/blob/4.9.0/setup.py#L24
I think Pipenv is "looking" at the wrong versions, or is getting the wrong information, when trying to create the lock file.
Using version 11.7.4

Expected result
Pipenv should allow me to install Django at version 1.8.19 and Django-redis at version 4.4.4
Actual result
Pipenv says there is a conflict on Django versions, even though django-redis at version 4.4.4 has no dependency on Django.
Steps to replicate
In a brand new directory:

pipenv install django==1.8.19
pipenv install django-redis==4.4.4

$ python -m pipenv.help output
Pipenv version: `'11.7.4'`
Pipenv location: '/usr/local/lib/python3.5/dist-packages/pipenv'
Python location: '/usr/bin/python3'
Other Python installations in PATH:

2.7: /usr/bin/python2.7

2.7: /usr/bin/python2.7

3.5: /usr/bin/python3.5m

3.5: /usr/bin/python3.5

2.7.12: /usr/bin/python

2.7.12: /usr/bin/python2

3.5.2: /usr/bin/python3

PEP 508 Information:
{'implementation_name': 'cpython',
 'implementation_version': '3.5.2',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '4.13.0-36-generic',
 'platform_system': 'Linux',
 'platform_version': '#40~16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018',
 'python_full_version': '3.5.2',
 'python_version': '3.5',
 'sys_platform': 'linux'}

System environment variables:

BYOBU_ULIMIT
BYOBU_CHARMAP
BYOBU_READLINK
LC_CTYPE
DESKTOP_SESSION
XDG_CURRENT_DESKTOP
LC_TELEPHONE
LSCOLORS
EVENT_NOEPOLL
GTK2_MODULES
QT_QPA_PLATFORMTHEME
QT_ACCESSIBILITY
IM_CONFIG_PHASE
XDG_DATA_DIRS
SHLVL
QT4_IM_MODULE
GDMSESSION
GTK_MODULES
BYOBU_SED
SESSIONTYPE
NVM_BIN
LC_NUMERIC
BYOBU_TIME
LC_ADDRESS
BYOBU_PREFIX
XDG_VTNR
LESS
SESSION
UNITY_HAS_3D_SUPPORT
SSH_AUTH_SOCK
SESSION_MANAGER
XDG_SEAT
WINDOWID
QT_LINUX_ACCESSIBILITY_ALWAYS_ON
LANGUAGE
BYOBU_PYTHON
LC_PAPER
BYOBU_LIGHT
BYOBU_DARK
XDG_MENU_PREFIX
DEFAULTS_PATH
BYOBU_BACKEND
PATH
BYOBU_RUN_DIR
VTE_VERSION
XAUTHORITY
BYOBU_CONFIG_DIR
GNOME_KEYRING_CONTROL
UNITY_DEFAULT_PROFILE
BYOBU_PAGER
XDG_RUNTIME_DIR
XDG_SESSION_PATH
LC_MONETARY
XDG_GREETER_DATA_DIR
LC_MEASUREMENT
XDG_SESSION_TYPE
_
NVM_CD_FLAGS
SHELL
LS_COLORS
LOGNAME
GDM_LANG
INSTANCE
XDG_SESSION_DESKTOP
PYTHONUNBUFFERED
LC_IDENTIFICATION
GNOME_KEYRING_PID
JOB
NVM_DIR
XMODIFIERS
TMUX
UPSTART_INSTANCE
GTK_IM_MODULE
TERM
DISPLAY
GPG_AGENT_INFO
HOME
COMPIZ_CONFIG_PROFILE
UPSTART_EVENTS
OLDPWD
PWD
BYOBU_WINDOW_NAME
QT_IM_MODULE
DBUS_SESSION_BUS_ADDRESS
USER
ZSH
PIP_PYTHON_PATH
BYOBU_DATE
TMUX_PANE
XDG_SEAT_PATH
BYOBU_HIGHLIGHT
XDG_SESSION_ID
GNOME_DESKTOP_SESSION_ID
PAGER
LANG
LC_TIME
XDG_CONFIG_DIRS
COMPIZ_BIN_PATH
BYOBU_DISTRO
BYOBU_ACCENT
MANDATORY_PATH
BYOBU_TTY
LC_NAME
UPSTART_SESSION
UPSTART_JOB
CLUTTER_IM_MODULE

Pipenv–specific environment variables:
Debug–specific environment variables:

PATH: /home/frenetic/.nvm/versions/node/v8.9.4/bin:/home/frenetic/bin:/home/frenetic/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
SHELL: /usr/bin/zsh
LANG: en_US.UTF-8
PWD: /home/frenetic/Projects/tests/tests-api

Contents of Pipfile ('/home/frenetic/Projects/tests/tests-api/Pipfile'):
[[source]]

name = "pypi"
url = "https://pypi.python.org/simple"
verify_ssl = true

[packages]

django = "==1.8.19"
django-redis = "==4.4.4"

[dev-packages]

[requires]

python_version = "2.7"

reproduced. Wonder if it is not in the same scope than #1732 (transitive dependency resolution problem)

FYI - django-redis==4.9.0 (latest) does require Django>=1.11

indeed, so i think the behavior is normal

the first thing it does is look for django

notpip.index:Using version 4.9.0 (newest of versions: 1.1rc1, 1.2, 1.2.1, 1.3, 1.3.1, 1.4, 1.4.1, 1.4.3, 1.4.4, 1.4.5, 1.5, 1.5.1, 1.5.2, 2.0rc1, 2.0rc2, 2.0rc3, 2.1, 2.2, 2.2.2, 3.0, 3.1, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.2, 3.3, 3.4.0, 3.5.0, 3.5.1, 3.5.2, 3.6.0, 3.6.1, 3.6.2, 3.7.0, 3.7.1, 3.7.2, 3.8.0, 3.8.1, 3.8.2, 3.8.3, 3.8.4, 4.0.0, 4.1.0, 4.2.0, 4.3.0, 4.4.0, 4.4.1, 4.4.2, 4.4.3, 4.4.4, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.8.0, 4.9.0, 4.9.0)

got it!

use 11.8.0 :)

Im sorry to get back to this, but this bug was not fixed.
Using the newest 11.8.0 version I created a new directory and did a simple pipenv install django-redis==4.4.4. It is asking for the latest Django version, even though django-redis at version 4.4.4 does not declare this requirement.

The weird part is, even though it checks for Django, it is not listed as its dependency on pipenv graph.

Finally, in this same directory that I installed django-redis==4.4.4, if I try to install Django in a version < 1.11, I still get the dependency error.

Definitely thought I fixed this last night. Will have to inspect.


Add RT filters

Add retention time (RT) filters for start RT, end RT and maximium RT difference between spectra to be compared. This will require at least the following:

setting default RT to start RT (analogous with how missing scans are handled)
looking for and reading the RTINSECONDS when present
looking for and parsing the RT from the TITLE when present
convert any RT measured in minutes to seconds

Done 1&2. Please note the changes in command-line input parameters made for consistency:
-W   range of scan numbers
-w    maximum scan number difference
-R    range of retention times
-r     maximum retention time difference


Add destroy method API

In some scenarios, we may need to actively destroy Driver instances, and these events should also be unregistered.
https://github.com/kamranahmedse/driver.js/blob/4a0247ee25ba4f235bbf87434e9217c50619a1b8/src/index.js#L86-L103

We just released v1.0 of driver.js which has been rewritten from the ground up. We do have a destroy method. Please have a look at the docs and do let me know if you face any issues.


water, dirt, fire, air

Where are the other chum items?

Where are the other chum items?

I'm glad you ask, if you see missing items you can add them yourself with almost no effort! Instead of commenting on my pr that has been opened like 15min after the update. 🤡

Where are the other chum items?

You can add them :)

What is the process for adding items?

What is the process for adding items?

You find them ingame, then you follow the instruction on the main page, then you upload them

Looking good to me—too scared of jani to approve tho. And what's with the avatar reference?

Good that you dont have perms to approve


Prevent generation of resource policies with null values

https://jira.duraspace.org/browse/DS-3259

+1 based on local testing.
I was able to successfully reproduce this issue.  I submitted a new item to DSpace and noted the policies that were generated.
dspace=> select * from resourcepolicy where policy_id>56299;
policy_id | resource_type_id | resource_id | action_id | start_date | end_date | rpname |     rptype     | rpdescription | eperson_id |           epersongroup_id            |            dspace_object
-----------+------------------+-------------+-----------+------------+----------+--------+----------------+---------------+------------+--------------------------------------+--------------------------------------
56300 |                0 |             |         0 |            |          |        | TYPE_INHERITED |               |            | 331611d2-10ed-4282-9f63-eb5e51d89c4e |
56301 |                2 |             |         0 |            |          |        | TYPE_INHERITED |               |            | 331611d2-10ed-4282-9f63-eb5e51d89c4e | 1b3e8faf-0eef-4a9c-8fc3-90048e4d1d02
56302 |                0 |             |         0 |            |          |        | TYPE_INHERITED |               |            | 331611d2-10ed-4282-9f63-eb5e51d89c4e |
56303 |                1 |             |         0 |            |          |        | TYPE_INHERITED |               |            | 331611d2-10ed-4282-9f63-eb5e51d89c4e | c15a660e-d7f9-4407-9917-bdd1ddba8ad0
56304 |                0 |             |         0 |            |          |        | TYPE_INHERITED |               |            | 331611d2-10ed-4282-9f63-eb5e51d89c4e |
56305 |                0 |             |         0 |            |          |        | TYPE_INHERITED |               |            | 331611d2-10ed-4282-9f63-eb5e51d89c4e | 244a7d77-f22b-4fd7-81f0-62615ea63b78
56306 |                0 |             |         0 |            |          |        | TYPE_INHERITED |               |            | 331611d2-10ed-4282-9f63-eb5e51d89c4e |
56307 |                1 |             |         0 |            |          |        | TYPE_INHERITED |               |            | 331611d2-10ed-4282-9f63-eb5e51d89c4e | f5585a21-3d36-418b-a772-16495ad5deeb
56308 |                0 |             |         0 |            |          |        | TYPE_INHERITED |               |            | 331611d2-10ed-4282-9f63-eb5e51d89c4e |
56309 |                0 |             |         0 |            |          |        | TYPE_INHERITED |               |            | 331611d2-10ed-4282-9f63-eb5e51d89c4e | ea61be77-f071-4802-8dcc-972b432dd431
(10 rows)
I installed the PR and performed the same action.  Note the resulting policies.
dspace=> select * from resourcepolicy where policy_id>56309;
policy_id | resource_type_id | resource_id | action_id | start_date | end_date | rpname |     rptype     | rpdescription | eperson_id |           epersongroup_id            |            dspace_object
-----------+------------------+-------------+-----------+------------+----------+--------+----------------+---------------+------------+--------------------------------------+--------------------------------------
56335 |                2 |             |         0 |            |          |        | TYPE_INHERITED |               |            | 331611d2-10ed-4282-9f63-eb5e51d89c4e | 8f8d3371-cd7b-4e86-851e-219d751a034b
56336 |                1 |             |         0 |            |          |        | TYPE_INHERITED |               |            | 331611d2-10ed-4282-9f63-eb5e51d89c4e | 3e82b5bf-ac82-4e60-9abd-402d4a4fa28e
56337 |                0 |             |         0 |            |          |        | TYPE_INHERITED |               |            | 331611d2-10ed-4282-9f63-eb5e51d89c4e | 5ced45a7-0b64-461b-8f55-6e941d17b5e0
56338 |                1 |             |         0 |            |          |        | TYPE_INHERITED |               |            | 331611d2-10ed-4282-9f63-eb5e51d89c4e | 90dc6653-e533-400f-8f0f-32dec0d7970c
56339 |                0 |             |         0 |            |          |        | TYPE_INHERITED |               |            | 331611d2-10ed-4282-9f63-eb5e51d89c4e | 2ce6e351-fa40-4e84-bd7a-90c91be3e6c9

+1 based on local testing, my results are very similar to Terry Brady's (thanks for the testing hints, Terry).


[bug]: Inpainting with SDXL at low denoising strength produces blocky results

Is there an existing issue for this?

[x] I have searched the existing issues

OS
Windows
GPU
cuda
VRAM
8GB
What version did you experience this issue on?
3.1.1
What happened?
When I tried inpainting an image with SDXL at 0.3 denoising strength, only 3-4 iterations are executed instead of the specified 20 steps. This results in a blocky result.
Screenshots

Additional context
No response
Contact Details
No response

This isn’t a bug! :)
When you use a denoising strength, you’re specifically setting a % of your input steps to be used. In the case of a .3 strength, you’d want to ensure you set your steps to something like 30 or 40 so that you have sufficient steps to avoid the noise artifacts.


OSX Bad Argument for PHP Editor

Description
Since last update, all php files fail to beautify with "Bad Argument" being thrown.
Expected Results
The beautified code should have looked like:
Code is already beautified and still fails. Code also fails if it needs beautification.
Steps to Reproduce

Add code to Atom editor
Run command Atom Beautify: Beautify Editor
Error is thrown and nothing changes.

Debug
Here is a link to the debug.md Gist: https://gist.github.com/3510d32e424b03c4df53c7b09da0194c
Checklist

[x] I have tried uninstalling and reinstalling Atom Beautify to ensure it installed properly
[x] I have reloaded (or restarted) Atom to ensure it is not a caching issue
[x] Searched for existing Atom Beautify Issues at https://github.com/Glavin001/atom-beautify/issues
so I know this is not a duplicate issue
[x] Generated debugging information and added link for debug.md Gist to this issue

@Glavin001 do you need anything else?

@Glavin001 just an FYI, when I removed shell integration for iTerm everything started working again.
https://www.alexkras.com/remove-shell-integration-from-iterm2/

Thanks! Been having this problem for months and just couldn't figure it out. Removing shell integration did the trick, never would have thought of that!

What does iTerm2 integration have to do with this? I'm getting this error on one of my PH projects--but not others, and I use iTerm2 but don't have integration installed.


Can't install in colab enviroment

Can anyone help me with this? I'm trying to install spacypdfreader using google colab, and it returns the following error message:

I used this last week and it was working, now i don't know how to proceed.
ps: I already installed spacy package

It is strange that it worked last week but not now.
What version of python are you using in Google Colab? Is the notebook public, can you share a link?

I think I see the issue:
https://github.com/SamEdwardes/spaCyPDFreader/blob/ce083bc5b61b06084c818b7d243f3c9210274442/pyproject.toml#L11-L15
The requirements of spacypdfreader are python = "^3.9". Google Colab is on python 3.7:

I think spacypdfreader should be able to work on python 3.7. I will update the requirements for ^3.7 and check if it works.

I think I see the issue:
https://github.com/SamEdwardes/spaCyPDFreader/blob/ce083bc5b61b06084c818b7d243f3c9210274442/pyproject.toml#L11-L15
The requirements of spacypdfreader are python = "^3.9". Google Colab is on python 3.7:

I think spacypdfreader should be able to work on python 3.7. I will update the requirements for ^3.7 and check if it works.

Maybe I was mistaken about running at google colab, and I just runned at my laptop. Probably you're right. And it would be great if this problem can be fixed using python 3.7. I will follow possible updates, thanks for replying me.

I just closed a PR (#2) that should fix the issue. It now works for me on Google colab. You can try this:
!python --version
!pip install spacypdfreader
!python -m spacy download "en_core_web_sm"

import requests

import spacy
from spacypdfreader import pdf_reader

# Download a PDF.
url = "https://github.com/SamEdwardes/spaCyPDFreader/raw/main/tests/data/test_pdf_01.pdf"
response = requests.get(url)
with open('test.pdf', 'wb') as f:
    f.write(response.content)

nlp = spacy.load("en_core_web_sm")
doc = pdf_reader("test.pdf", nlp)
print(doc)

I just closed a PR (#2) that should fix the issue. It now works for me on Google colab. You can try this:
!python --version
!pip install spacypdfreader
!python -m spacy download "en_core_web_sm"

import requests

import spacy
from spacypdfreader import pdf_reader

# Download a PDF.
url = "https://github.com/SamEdwardes/spaCyPDFreader/raw/main/tests/data/test_pdf_01.pdf"
response = requests.get(url)
with open('test.pdf', 'wb') as f:
    f.write(response.content)

nlp = spacy.load("en_core_web_sm")
doc = pdf_reader("test.pdf", nlp)
print(doc)

Thank you! Now it's working fine.


[BigFix] Fix the lm_head in gpt_bigcode in lora mode

This is an alternative fix for #6314 that doesn't disable LoRA for the lm_head in GPTBigCode that we worked on today with @tjohnson31415 and @tdoublep .
Due to the weight-tie, in lora mode the lm_head implementation was being replaced with VocabParallelEmbeddingWithLoRA which is not meant for the lm_head. To fix the issue this PR initializes the lm_head as an instance of ParallelLMHead and assigns it the weights of the embedding module. Modules of this class are not substituted during the initialization of LoRa. Due to previous differences in the padding of the two layers (64 vs 256) there was a size mismatch, so the same padding is now applied to both. The resulting vocabulary dimension had to be added to bgmv_config.h
Except for the padding adjustment, this is now basically the same as in the LLama code.
cc @robertgshaw2-neuralmagic

This is an alternative fix for #6314 that doesn't disable LoRA for the lm_head in GPTBigCode that we worked on today with @tjohnson31415 and @tdoublep .
Due to the weight-tie, in lora mode the lm_head implementation was being replaced with VocabParallelEmbeddingWithLoRA which is not meant for the lm_head. To fix the issue this PR initializes the lm_head as an instance of ParallelLMHead and assigns it the weights of the embedding module. Modules of this class are not substituted during the initialization of LoRa. Due to previous differences in the padding of the two layers (64 vs 256) there was a size mismatch, so the same padding is now applied to both. The resulting vocabulary dimension had to be added to bgmv_config.h
Except for the padding adjustment, this is now basically the same as in the LLama code.
cc @robertgshaw2-neuralmagic

My (albeit limited) understanding of LoRA is that it is uncommon to train LoRA adapters on Embeddings LM-head UNLESS you are trying to add special tokens to the vocabulary (e.g. for chatml)
Does this implementation enable this? Or is it now that we can add LoRA adapters to the Vocab, but not to the lm-head?

Yes the vLLM multi-LoRA support in general supports adding tokens/embeddings including to lm_head layer (we have used it e.g. for Mixtral).

@followumesh any chance you could review this one?

@maxdebayser A sanity check question, does the LoRA replace ParallelLMHead(VocabParallelEmbedding) with the corresponding LoRA layer (I assume VocabParallelEmbeddingWithLoRA)?

@followumesh , no the lm_head should not be replaced with a Lora class because the LoRA weights are applied in  LogitsProcessorWithLora: https://github.com/vllm-project/vllm/blob/db35186391a2abfc6c91d703527dac20d2488107/vllm/lora/layers.py#L1054

This is helpful not only for supporting lm_head as a LoRA module, but also needed for wte to work correctly with LoRA.  Without this fix I get gibberish output for a LoRA trained GPTBigCode model even without training a LoRA module for lm_head.


Make uploadSslCert a POST request instead of a GET

If the Request Header Size grows (for instance a cert chain of 8kb) it will fail to upload the SSL Cert.
This problem was raised on the issue 2558
Description

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

GitHub Issue/PRs

Screenshots (if appropriate):
How Has This Been Tested?

Checklist:

[x] I have read the CONTRIBUTING document.
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
Testing
[ ] I have added tests to cover my changes.
[ ] All relevant new and existing integration tests have passed.
[ ] A full integration testsuite with all test that can run on my environment has passed.

Lgtm, UI fix. Will merge.


Release version 0.23.0

@mvashishtha
I would like us to pin badges, pypi and doc links to specific release, so those would stay correct even when we make other changes, like in ee312dad11213942d0b03ee97d8c63dbb1efa07c

@mvashishtha I would like us to pin badges, pypi and doc links to specific release, so those would stay correct even when we make other changes, like in ee312da

Does the release procedure require an update?

I am actually wondering why we should start pinning badges, pypi and doc links to specific release?

I am actually wondering why we should start pinning badges, pypi and doc links to specific release?

The main branch is now showing release 0.22.3 when it should be 0.23.0rc0.

Why does the main branch have to show 0.23.0rc0? It is a RC, but not a stable release.

Why does the main branch have to show 0.23.0rc0? It is a RC, but not a stable release.

I believe that the release should be shown not the latest in terms of release date, but the latest in terms of versioning, where 0.23.0rc0 >= 0.22.3.

I believe that the release should be shown not the latest in terms of release date, but the latest in terms of versioning, where 0.23.0rc0 >= 0.22.3.

On the one hand this makes sense, but on the other hand I am not sure we want the badges to point at non-stable releases. I would rather we keep the current concept we have in the release procedure. @modin-project/modin-core, more thoughts?

On the one hand this makes sense, but on the other hand I am not sure we want the badges to point at non-stable releases. I would rather we keep the current concept we have in the release procedure.

I agree. @vnlitvinov what is the benefit of pinning badge versions on master? In this case the badges will be incorrect until we really publish the 0.23.0 release on pypi.

If this is a question that requires discussion, then let's do it as before. And then, if we decide, we will update the badges.

@anmyachev LGTM, but I can't approve my own PR

@vnlitvinov, if you still have any concern, let's discuss that offline and decide on our future release procedure.


Refactor Tracklist

Mostly, I broke a few really large methods into smaller methods.
I also want to note that this switch only really needs the default case, because the other two are covered by the default.

Thanks for your feedback, @YurySolovyov. I like your suggestions. I'll update the PR in a little bit.

_isSelectableTrack(id) {
    !this.state.selected.includes(id);
}

I'm sorry, but why aren't there any return statement ?

@KeitIG With es6, you don't have to add return to functions anymore. It's implied that the last line in the function is meant to be returned. But, since we're using return everywhere else, I'll go ahead and add it to these.

I'm ok with landing this. We can take care of linting later.

I'm gonna make a few more changes before merging:

[ ] converting _methods to methods
[ ] Move playing indicator into TracksRow
[ ] Delete two unused cases

Nice job !


lateinit property paymentLauncher has not been initialized

I have a bit of a conceptual question, recently we updated our stripe-react-native dependency from 0.2 to 0.10. At the moment we confirm the setup intent right after the initStripe call, as follows
await initStripe({
    publishableKey: 'some-key',
})

const { error, setupIntent } = await confirmSetupIntent('some-client-secret', {
    paymentMethodType: 'Card',
});

The above results in the following error, only for android

If we add a 1 second delay after the initStripe to let it finish, it's all good. But I don't really like this approach.

What is your suggestion when it comes to "initStripe" in the last possible moment?
Is there any way to check that the initialisation work that initStripe should do is actually finished, so we can safely continue with confirmSetupIntent?
I was expecting that the initStripe will resolve it's promise after the paymentLauncher is initialized, but probably I'm missing something in the Kotlin part.

Thanks in advance.

This will be fixed by https://github.com/stripe/stripe-react-native/pull/965 👍

@charliecruzan-stripe Thanks. I will close this one. Can you give me some rough ETA of the fix, probably with 0.12 release?

gfh

Please Add Solution


What is the relation between keyv and @keyvhq/keyv projects?

Hello,
I run Best of JS site where Keyv project is tracked as a repo from Luke Childs.
So it seems there are 2 Keyv projects:

Original: https://github.com/lukechilds/keyv keyv on NPM
Yours: https://github.com/microlinkhq/keyv @keyvhq/keyv on NPM

Same name, almost same logo (blue VS red), same description in the README.md... it's a bit confusing!
Which one is the right Keyv? Or what is the relation between both projects?
Sorry if I missed something obvious, I suppose it's a fork because the orginal one might be not maintained but I couldn't find any clarification, the following issue does not explain anything about the reason why moving from keyv to @keyvhq/keyv.
https://github.com/microlinkhq/keyv/issues/20
Thank you for the clarification.
I hope I will not have to track 2 different Keyv projects in Best of JS 😅 !
Screenshot (Original)

Screenshot (Yours)

I suppose it's a fork because the original one might be not maintained

Exactly that 🙂

It looks like the original got picked back up at https://github.com/jaredwray/keyv.  Is there still some delta in functionality that makes it worthwhile to maintain this fork?  If so, is it something that could be merged into that "upstream" repo so this one could be deprecated?  I think it's still confusing to have both of these projects existing.  E.g. when I google "keyv", my first result is the original package on npmjs.com, and my second is documentation for this project on js.org.

Just found this confusing too....which should I use?

Both projects are quite different and point. Evaluate them and use whatever you want 🙂


Import SAP SuccessFactors OData Services definitions. Tutorial step 5.

Tutorials: https://developers.sap.com/tutorials/cap-extend-sfsf-import-services.html
Step5 is using default-env.json which seems to be deprecated in Capire documentation.
https://cap.cloud.sap/docs/node.js/cds-env#in-default-env-json

Documentation recommends to use the new cds bind CLI command, but default-env.json still works and will keep working as VCAP_SERVICES is a Cloud Foundry standard. This also avoids the use of cds watch --profile hybrid and allows a simple cds watch.


Missing build.js

Build.js is missing and README does not contain instructions on how to produce.

Running npm run build should create it for you.
But you shouldn't need a build.js if you are running on "master". The gh-pages branch does expect it to be there though.

@matthewbauer , that appears to be a big part of the issue.  'npm run build' does not complete successfully as-is.  Running on Ubuntu 16.04, jspm encounters out of memory errors when attempting to bundle the emulator cores.  Is the build.sh script up to date?

Fixed in master


The signup doesn't take the country/language

Hi everyone,
It seems that when we sign up new users, we always use world.openfoodfacts.org.
However, if a user wants to register to the newsletter, he/she will receive it in english, but we have translated content.
We should take into account the country and/or the language of the app and select the right host.

We have to wait for https://github.com/openfoodfacts/openfoodfacts-dart/pull/754 to be merged (and released) to implement a fix here


fix(models): Remove static models.

We start with Hosts in the testing suite.
We also find a weird bugish thing in has_perm, reported as issue #259.
Fixes #255.

coverage: 100.0%. remained the same when pulling 5b9ccccdf42ade3e0bb04f8fd6eb7283b07e87ca on terjekv/Remove-static-types into 1340d3ab01386951614643d120eaec48605d0e4e on main.


[backport] fix(vault): vault references may be dropped from rotation

Summary
Backports the fix from EE:
https://github.com/Kong/kong-ee/pull/6444/commits/50eaa56a6f4f7c9e4a8c8336579f005b462a1b46
Fixes issue where Vault references may be dropped from rotation in case a too small value was configured in config.resurrect_ttl OR config.neg_ttl.
This is fixed by setting a constant value of:
local SECRETS_CACHE_MIN_TTL = ROTATION_INTERVAL * 2

(the rotation interval is by default 60 seconds).

Please add a test and include the checklist from the PR template.

@hanshuebner there is already tests in EE. This is a backport from EE -> CE.

@bungle shouldn't this be backported to 3.4


Whether the built-in layout node data can be placed in public

Description
I want to do some plugins related to dynamic switching layouts. Can the plug-in be allowed to obtain previous layout data so that the plug-in can make some judgments about the node information.

what for?

重点词汇
24/5000
翻译
通用场景
Maybe I can inherit from the built-in layout class instead of using the built-in layout directly

Maybe I can inherit from the built-in layout class instead of using the built-in layout directly

you coooulldd...
What you can also do
#define private public
#include <hyprland/ ...>
#undef private

it's technically UB but we use that stuff already for some C shenanigans so it should work :P


[tlul] Add data integrity generation for host

Address #6887.
This is needed for two reasons right now

hosts that do not generate data integrity (debug module)
hosts that will later generate data integrity but do not currently
do so (ibex)

Signed-off-by: Timothy Chen<EMAIL_ADDRESS>

@GregAC @rswarbrick @tomroberts-lowrisc
sorry i accidentally merged this without thinking.
Anyways, I just removed some of the work-around on data integrity.


Query observers

Is it possible to observe query changes like in lovefiled? https://github.com/google/lovefield/blob/master/docs/spec/04_query.md#46-observers

Hi
That is a great idea. It's not supported in the moment - directly.
I am thinking if it could be done indirectly with a
trigger for a stored procedureish approach combined with a user defined SQL function that could be created with a fixed call back.
Update: I guess the question here is if you can give the library a query + a function to call then the output of that query changes. No that is not possible at the moment.
I was thinking that observing changes to tables might do the trick for you but I realise this is a very different concept. I will close the issue. Please reopen if you feel I did not answer your question.

Thanks for the update, @mathiasrw. One step to observable queries could be query results caching. Is it possible to have equal references to unchanged data?
db.exec('select * from asset') === db.exec('select * from asset') // now returns false

hmm. I see.
So on every insert/update/delete thats not part of a transaction one could run the same query and compare it to last time it was ran.
Interesting...
I bit consuming in many cases though... one might want to specify exactly what tables to observe.
Array.observe could maybe be used on the table content arrays

The Array.observe() method is used for asynchronously observing changes to Arrays, similar to Object.observe() for objects. It provides a stream of changes in order of occurrence. It's equivalent to Object.observe() invoked with the accept type list ["add", "update", "delete", "splice"].

sound this example code:
var myArray = ["a", "b", "c"];

// subscribe to add, update, delete, and splice changes
Array.observe(myArray, function(changes) {

  // handle changes... in this case, we'll just log them
  changes.forEach(function(change) {
    console.log(Object.keys(change).reduce(function(p, c) {
      if (c !== "object" && c in change) {
        p.push(c + ": " + JSON.stringify(change[c]));
      }
      return p;
    }, []).join(", "));
  });

});

// down-shift the entire array and delete the last index
myArray.shift();

// set a value at a specific index
myArray[0] = "1";

// add a value
myArray.push("2");

// truncate array
myArray.length = 0;

but looks like it only works in node, chrome and opera

We can do it in two ways:

Add TRIGGERs to AlaSQL
Use observable on table.data array

Here is the example:
    alasql('CREATE TABLE one (a INT, b STRING)');

    Array.observe(alasql.databases.test392.tables.one.data,function(args){
      console.log('changed',arguments);
    });

    alasql('INSERT INTO one VALUES (10,"Ten")');
    alasql('UPDATE one SET a = 20 WHERE a = 10');
    alasql('DELETE FROM one WHERE a = 20');

You can use observable() right now on array of table data, but... only for INSERT and UPDATE, because AlaSQL recreates data array from the scratch on DELETE operation (because it uses .filter() function to filter WHERE records.
I will check, can we add triggers...

Object/Array.observe is now deprecated: https://esdiscuss.org/topic/an-update-on-object-observe

@mbektimirov I almost finished with triggers for AlaSQL and will release this functionality tomorrow. Probably, it will help with the solution of this observation problem.
Here is the example of future functionality:
    alasql.fn.onchange = function(r) {
        if(r.a == 123) console.log('Observable event!');
    };;
    alasql('CREATE TABLE one (a INT)');
    alasql('CREATE TRIGGER two BEFORE INSERT ON one CALL onchange');
    alasql('INSERT INTO one VALUES (123)');  // This will fire onchange()

According documentation this observation is very costly procedure...

Internally Lovefield will run the query again if the scope overlaps, therefore please be aware of performance consequences of complex SELECT.

Nice work @agershun - really Nice...

@mathiasrw Good news: I just added triggers to the latest develop...
Bad news:

it does not support INSTEAD OF DELETE, AFTER DELETE
BEFORE DELETE can not prevent record from deletion (now it works as regular SQL trigger)
I changed localStorage module, but have broken ROLLBACK TRANSACTION :-1:

I swear I will fix it...
May I ask you to play with new AlaSQL triggers (when you have time, not at the NewYear midnight :) )?
I also worried about the syntax: I realized SQLite syntax with small extension (see test393.js as example)

@Agershun
Sure! Ill dig into the World of triggers :)

Triggers do not works for DELETE FROM mytable without WHEN clause.

I think we can finish with SQL functionality with TRANSACTIONs block, and then switch to database backends, modular structure and speed/size/quality.

Sounds like a really awesome plan.
If you - in between - can have a look at #471 at some point that would open up for a lot of tests in SQLligictest - so we could get even better quality :)

I have

Created https://github.com/agershun/alasql/wiki/TRIGGER
Updated https://github.com/agershun/alasql/wiki/SQL-keywords
Updated https://github.com/agershun/alasql/wiki/AlaSQL Keywords
Noted the following in a little black book:

I changed localStorage module, but have broken ROLLBACK TRANSACTION :-1:
I swear I will fix it...

:)

(wont have time to do the trigger work before next weekend)

Closed per request from #628


Pedantic fixing of a typo on docs

Cheeky issue with a missing 'd' on enable.

If you don’t have Swarm Mode enable, images pushed to Docker Hub automatically appear for you on the Services/Wizard page on Docker Cloud.

Should read:
If you don’t have Swarm Mode enabled, images pushed to Docker Hub automatically appear for you on the Services/Wizard page on Docker Cloud.

Proposed changes

Unreleased project version (optional)

Related issues (optional)

Deploy preview for docsdocker ready!
Built with commit 996255431f2215e83d2b3577be47a6ee3ceab056
https://deploy-preview-7657--docsdocker.netlify.com


Creating common functions for image/kernel_read_write read tests

The second PR in a series to fix #616
Previously functions used for the 3D image read tests were moved into the common file. In this PR the code is modified to be generic for any of the image types.
This makes it easier for later PRs to use these functions for all image types.

The PR has got two approvals and has been open for over 18 months, merging.


Improve display for sourcecast table

Remove card wrapper for table

Combine title and select into a single column

Fix auto sizing issue

Display upload date in table

Before

After

Pull Request Test Coverage Report for Build 2869

4 of 13 (30.77%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.03%) to 36.776%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/components/material/MaterialTable.tsx
1
2
50.0%

src/components/sourcecast/SelectCell.tsx
0
1
0.0%

src/utils/dateHelpers.ts
2
5
40.0%

src/components/sourcecast/SourcecastTable.tsx
1
5
20.0%

Totals

Change from base Build 2867:
-0.03%

Covered Lines:
2585

Relevant Lines:
6293

💛  - Coveralls


NewPacket vs layers.*: NewPacket has low performance

I wrote two programs that receive traffic from af_packet and decode the package and they have very different performance.
The first program uses gopacket.NewPacket, and the second one directly uses the layers package.
When using NewPacket, the performance reaches a maximum of 200 mbit/s.
When using the layers - 4-5 gbit/s package.
Why this can happen?
To generate traffic, I use linux pktgen (https://www.kernel.org/doc/Documentation/networking/pktgen.txt).
First program (up to 200 mbit/s):
package main

import (
	"github.com/google/gopacket/afpacket"
	"log"
	"time"
	"sync/atomic"
	"github.com/google/gopacket"
	"github.com/google/gopacket/layers"
)

var rx int64

func printRxStats() {
	t := time.NewTicker(1 * time.Second)

	lastTime := time.Now()
	var lastValue int64 = 0
	for _ = range t.C {
		now := time.Now()
		tmp := rx
		delta := now.Sub(lastTime).Seconds()
		if delta == 0 {
			continue
		}

		d := float64(tmp - lastValue) / delta
		log.Printf("%.2f MBit/s", 8*d / (1024*1024))

		lastValue = tmp
		lastTime = now
	}
}

func main() {
	inputAFpacket, err := afpacket.NewTPacket(afpacket.OptInterface("ens10"))
	if err != nil {
		log.Fatal(err)
	}
	defer inputAFpacket.Close()

	go printRxStats()

	for {
		pkt, _, err := inputAFpacket.ZeroCopyReadPacketData()
		if err != nil {
			log.Fatal(err)
		}

		atomic.AddInt64(&rx, int64(len(pkt)))

		packet := gopacket.NewPacket(pkt, layers.LayerTypeEthernet, gopacket.NoCopy)
		if packet == nil {
			// todo
		}
	}
}

Second (up to 4-5 gbit/s):
package main

import (
	"github.com/google/gopacket/afpacket"
	"log"
	"time"
	"sync/atomic"
	"github.com/google/gopacket"
	"github.com/google/gopacket/layers"
)

var rx int64

func printRxStats() {
	t := time.NewTicker(1 * time.Second)

	lastTime := time.Now()
	var lastValue int64 = 0
	for _ = range t.C {
		now := time.Now()
		tmp := rx
		delta := now.Sub(lastTime).Seconds()
		if delta == 0 {
			continue
		}

		d := float64(tmp - lastValue) / delta
		log.Printf("%.2f MBit/s", 8*d / (1024*1024))

		lastValue = tmp
		lastTime = now
	}
}

func main() {
	inputAFpacket, err := afpacket.NewTPacket(afpacket.OptInterface("ens10"))
	if err != nil {
		log.Fatal(err)
	}
	defer inputAFpacket.Close()

	go printRxStats()

	for {
		pkt, _, err := inputAFpacket.ZeroCopyReadPacketData()
		if err != nil {
			log.Fatal(err)
		}

		atomic.AddInt64(&rx, int64(len(pkt)))

		ether := layers.Ethernet{}
		if err = ether.DecodeFromBytes(pkt, gopacket.NilDecodeFeedback); err != nil {
			log.Println(err)
		}
		if ether.EthernetType != layers.EthernetTypeIPv4 {
			continue
		}
		ipv44 := layers.IPv4{}
		if err = ipv44.DecodeFromBytes(ether.Payload, gopacket.NilDecodeFeedback); err != nil {
			log.Println(err)
			continue
		}
		udpp := layers.UDP{}
		if err = udpp.DecodeFromBytes(ipv44.Payload, gopacket.NilDecodeFeedback); err != nil {
			log.Println(err)
		}
	}
}

Yep, this makes perfect sense.
The issue is that NewPacket has to make layers on the heap, while your second job makes layers on the stack.  Making layers on the heap requires lots of work malloc'ing (and then free'ing via GC) the layers, including locking so multiple threads can (potentially) interact with the heap, etc.  Making layers on the stack is MUCH cheaper, as done by your second program.
The short story is that NewPacket is easy/slow, and DecodeFromBytes is hard/fast.  If you do want fast, instead of calling each DecodeFromBytes I recommend using DecodingLayerParser.  See https://godoc.org/github.com/google/gopacket#hdr-Fast_Decoding_With_DecodingLayerParser for a discussion of this exact performance gain/hit.

Thanks for the explanation! I missed this section of the documentation :(

No worries, always feel free to send questions!
There's a lot of documentation, so sometime things get buried :)


fix: Fix walk and walk_block to match the underlying code

Fixes 180

Thanks a lot! :partying_face:


Message not being sent

If user is not me, saying "who's on" doesn't trigger the bot.

Couldn't replicate bug


Problems with feed method

Hello Andre,
congrats on the great lib! I guess my problem is all about knowing on how to use the feed method. I'm working with libtins, a library which abstracts network packets and provides a cool method for following TCP streams and give their final payloads in a callback method.
However, the payload given by it is provided in a vector<unsigned char> structure. For extracting it in a buffer, I'm doing the following:
if(!stream.client_payload().empty()){
	std::size_t size = stream.client_payload().size();
	unsigned char* buf = new unsigned char[size + 1];
	buf = reinterpret_cast<unsigned char*>(stream.client_payload().data());
	//buf[size + 1] = '\0';

	Request request;
	request.feed(buf, size);
}

When I run this piece of code, the program gives me the following runtime error, in the line where I call the feed method:
terminate called after throwing an instance of 'http::Error'
  what():  parser is paused

If you noticed, I commented the line where I concat a \0 string terminator to the buffer. I've tried to run the code with that line as well, but the problem persisted. Just to be clear, I can print the buffer without problems. Hope you can help me. Thanks in advice.
Cheers.

Hi Filipe!
I'm currently on vacation far away from anything reasembling a computer.  If you can ping me around Sept 1st I might be able to help you then!
Best of luck,
André

On Aug 21, 2015, at 4:45 PM, Felipe Rodopoulos<EMAIL_ADDRESS>wrote:
Hello Andre,
congrats on the great lib! I guess my problem is all about knowing on how to use the feed method. I'm working with libtins, a library which abstracts network packets and provides a cool method for following TCP streams and give their final payloads in a callback method.
However, the payload given by it is provided in a vector structure. For extracting it in a buffer, I'm doing the following:
if(!stream.client_payload().empty()){
std::size_t size = stream.client_payload().size();
unsigned char* buf = new unsigned char[size + 1];
buf = reinterpret_cast<unsigned char*>(stream.client_payload().data());
//buf[size + 1] = '\0';
Request request;
request.feed(buf, size);

}
When I run this piece of code, the program gives me the following runtime error, in the line where I call the feed method:
terminate called after throwing an instance of 'http::Error'
what():  parser is paused
If you noticed, I commented the line where I concat a \0 string terminator to the buffer. I've tried to run the code with that line as well, but the problem persisted. Just to be clear, I can print the buffer without problems. Hope you can help me. Thanks in advice.
Cheers.
—
Reply to this email directly or view it on GitHub.

I have got same problem using libtins and httpxx. Do you have any comments on @rodopoulos issue?

@blazejszczerba  @rodopoulos Can any of you give me the contents of one of these buffers in order for me to reproduce the issue?

Following HTTP header doesnt work for me.
GET /1010qwoeiuryfg/sl.m3u8 HTTP/1.1
Host: www.example.com
User-Agent: VLC/2.2.0-rc2 LibVLC/2.2.0-rc2
Range: bytes=0-
Connection: close
Icy-MetaData: 1

@blazejszczerba I just put that request in a text file and ran the test/http-extract-request-body test program against it and I don't get that error.  How are you testing this?  Can you post an SSCCE that reproduces this problem?
I also just enabled Travis CI on this project, so feel free to send in a patch with a test.  If you can write a failing test, then maybe I can help you fix it.

Closing as "cannot reproduce".  If you can provide a test case, I'll make the fix :-)

@rodopoulos I've met this error (parser paused), and it caused by updating http-parser to the latest commit.

@junfx I tried reproducing this last time, but coudn't manage to reproduce. Can you provide me with the full request data?

The latest http-parser add some errnos to enum http_errno, which declared in http_parser.h, and make install does not install the libhttp_parser.a. (btw, http.hpp either)
I don't think it's worth to try.
static const char data2[] =
"HTTP/1.1 200 OK\r\n"
"Host: github.com\r\n"
"DNT: 1\r\n"
" 2\r\n"
"Content-Length: 5\r\n"
"\r\n"
"Hello";
static const size_t data2_len = sizeof(data2) - 1;