Add OpenCL support for sloth encode

@simonatsn can you push commit with cargo fmt applied so this can actually try to pass CI?

Yeah, now clippy isn't happy :slightly_smiling_face:

On Mac M1, it worked for CPU (I was curious about OpenCL, did not work due to missing omp.h header)
For my NVidia GPU (GTX 1660) tests passed both for Windows10 and Ubuntu 20.04 (--feature cuda)
For my AMD GPU (Vega 56) tests failed both for Windows10 and Ubuntu 20.04 (--feature opencl)
Here is the detailed output for Windows AMD GPU:
---- opencl::test_random_piece stdout ----
thread 'opencl::test_random_piece' panicked at 'called `Result::unwrap()` on an `Err` value: OpenCLError("CL_INVALID_KERNEL_NAME")', tests\integration\opencl.rs:31:42
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- opencl::test_known_piece stdout ----
thread 'opencl::test_known_piece' panicked at 'called `Result::unwrap()` on an `Err` value: OpenCLError("CL_INVALID_KERNEL_NAME")', tests\integration\opencl.rs:54:42

---- opencl::test_random_piece_pinned stdout ----
thread 'opencl::test_random_piece_pinned' panicked at 'called `Result::unwrap()` on an `Err` value: OpenCLError("CL_INVALID_KERNEL_NAME")', tests\integration\opencl.rs:70:42

failures:
    opencl::test_known_piece
    opencl::test_random_piece
    opencl::test_random_piece_pinned

test result: FAILED. 2 passed; 3 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.12s

And here is the detailed output for the Ubuntu AMD GPU:
running 7 tests
test opencl::test_big_random_piece ... ignored
test opencl::test_big_random_piece_pinned ... ignored
test cpu::test_known_piece ... ok
test opencl::test_known_piece ... FAILED
test opencl::test_random_piece_pinned ... FAILED
test opencl::test_random_piece ... FAILED
test cpu::test_random_piece ... ok

failures:

---- opencl::test_known_piece stdout ----
thread 'opencl::test_known_piece' panicked at 'called `Result::unwrap()` on an `Err` value: OpenCLError("Unknown OpenCL error")', tests/integration/opencl.rs:54:42

---- opencl::test_random_piece_pinned stdout ----
thread 'opencl::test_random_piece_pinned' panicked at 'called `Result::unwrap()` on an `Err` value: OpenCLError("Unknown OpenCL error")', tests/integration/opencl.rs:70:42
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- opencl::test_random_piece stdout ----
thread 'opencl::test_random_piece' panicked at 'called `Result::unwrap()` on an `Err` value: OpenCLError("Unknown OpenCL error")', tests/integration/opencl.rs:31:42

failures:
    opencl::test_known_piece
    opencl::test_random_piece
    opencl::test_random_piece_pinned

test result: FAILED. 2 passed; 3 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.21s

OpenCL support for CUDA works (both on Windows and Ubuntu with my GTX 1660).
This is of course good news, however CUDA support was already there, and unfortunately I couldn't make this code work under Vega 56 :/

@simonatsn is it possible that this code uses some features only present on RDNA architecture and not applicable for older architectures, do you have the hardware to check?

Tested OpenCL on a MacBook with intel (integrated). Had to install OMP library manually.
Then I had to change this line (https://github.com/subspace/sloth256-189/pull/14/files?show-viewed-files=true&file-filters[]=#diff-c340f7be38dbac6e86e446008871b68ead9b769a0ecda22fe959d892485eeb1dR11) to:
#include <OpenCL/cl.h>

This change is suggested in the relevant place.
After these, the error I got is the following:
~/IdeaProjects/sloth256-189 on supra !1 ?3 ............ INT took 8s at 16:09:47
> cargo test --features=opencl
   Compiling sloth256-189 v0.2.2 (/Users/ozgunozerk/IdeaProjects/sloth256-189)
   Compiling criterion v0.3.5
The following warnings were emitted during compilation:

warning: src/opencl/opencl.cpp:50:18: warning: unused variable 'num_threads' [-Wunused-variable]
warning:     unsigned int num_threads = std::thread::hardware_concurrency();
warning:                  ^
warning: src/opencl/opencl.cpp:222:37: error: use of undeclared identifier 'CL_DEVICE_WAVEFRONT_WIDTH_AMD'
warning:                                     CL_DEVICE_WAVEFRONT_WIDTH_AMD,
warning:                                     ^
warning: src/opencl/opencl.cpp:262:35: error: use of undeclared identifier 'clCreateCommandQueueWithProperties'
warning:                 instance->cq[i] = clCreateCommandQueueWithProperties(instance->context,
warning:                                   ^
warning: 1 warning and 2 errors generated.

error: failed to run custom build command for `sloth256-189 v0.2.2 (/Users/ozgunozerk/IdeaProjects/sloth256-189)`

Caused by:
  process didn't exit successfully: `/Users/ozgunozerk/IdeaProjects/sloth256-189/target/debug/build/sloth256-189-467d1ffc5730aa2a/build-script-build` (exit status: 1)
  --- stdout
  TARGET = Some("x86_64-apple-darwin")
  OPT_LEVEL = Some("0")
  HOST = Some("x86_64-apple-darwin")
  CC_x86_64-apple-darwin = None
  CC_x86_64_apple_darwin = None
  HOST_CC = None
  CC = None
  CFLAGS_x86_64-apple-darwin = None
  CFLAGS_x86_64_apple_darwin = None
  HOST_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
  CC_x86_64-apple-darwin = None
  CC_x86_64_apple_darwin = None
  HOST_CC = None
  CC = None
  CFLAGS_x86_64-apple-darwin = None
  CFLAGS_x86_64_apple_darwin = None
  HOST_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
  CC_x86_64-apple-darwin = None
  CC_x86_64_apple_darwin = None
  HOST_CC = None
  CC = None
  CFLAGS_x86_64-apple-darwin = None
  CFLAGS_x86_64_apple_darwin = None
  HOST_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
  CC_x86_64-apple-darwin = None
  CC_x86_64_apple_darwin = None
  HOST_CC = None
  CC = None
  CFLAGS_x86_64-apple-darwin = None
  CFLAGS_x86_64_apple_darwin = None
  HOST_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
  running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-arch" "x86_64" "-Wall" "-Wextra" "-mno-avx" "-fno-builtin-memcpy" "-Wno-unused-command-line-argument" "-Werror" "-o" "/Users/ozgunozerk/IdeaProjects/sloth256-189/target/debug/build/sloth256-189-a710c65aaaf1d07f/out/src/cpu/sloth256_189.o" "-c" "src/cpu/sloth256_189.c"
  exit status: 0
  running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-arch" "x86_64" "-Wall" "-Wextra" "-mno-avx" "-fno-builtin-memcpy" "-Wno-unused-command-line-argument" "-Werror" "-o" "/Users/ozgunozerk/IdeaProjects/sloth256-189/target/debug/build/sloth256-189-a710c65aaaf1d07f/out/src/cpu/assembly.o" "-c" "src/cpu/assembly.S"
  exit status: 0
  AR_x86_64-apple-darwin = None
  AR_x86_64_apple_darwin = None
  HOST_AR = None
  AR = None
  running: "ar" "cq" "/Users/ozgunozerk/IdeaProjects/sloth256-189/target/debug/build/sloth256-189-a710c65aaaf1d07f/out/libsloth256_189.a" "/Users/ozgunozerk/IdeaProjects/sloth256-189/target/debug/build/sloth256-189-a710c65aaaf1d07f/out/src/cpu/sloth256_189.o" "/Users/ozgunozerk/IdeaProjects/sloth256-189/target/debug/build/sloth256-189-a710c65aaaf1d07f/out/src/cpu/assembly.o"
  exit status: 0
  running: "ar" "s" "/Users/ozgunozerk/IdeaProjects/sloth256-189/target/debug/build/sloth256-189-a710c65aaaf1d07f/out/libsloth256_189.a"
  exit status: 0
  cargo:rustc-link-lib=static=sloth256_189
  cargo:rustc-link-search=native=/Users/ozgunozerk/IdeaProjects/sloth256-189/target/debug/build/sloth256-189-a710c65aaaf1d07f/out
  cargo:rustc-link-lib=OpenCL
  cargo:rustc-link-search=/opt/amdgpu-pro/lib64/
  TARGET = Some("x86_64-apple-darwin")
  OPT_LEVEL = Some("0")
  HOST = Some("x86_64-apple-darwin")
  CXX_x86_64-apple-darwin = None
  CXX_x86_64_apple_darwin = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-apple-darwin = None
  CXXFLAGS_x86_64_apple_darwin = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
  CXX_x86_64-apple-darwin = None
  CXX_x86_64_apple_darwin = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-apple-darwin = None
  CXXFLAGS_x86_64_apple_darwin = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
  CXX_x86_64-apple-darwin = None
  CXX_x86_64_apple_darwin = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-apple-darwin = None
  CXXFLAGS_x86_64_apple_darwin = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
  CXX_x86_64-apple-darwin = None
  CXX_x86_64_apple_darwin = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-apple-darwin = None
  CXXFLAGS_x86_64_apple_darwin = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
  CXX_x86_64-apple-darwin = None
  CXX_x86_64_apple_darwin = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-apple-darwin = None
  CXXFLAGS_x86_64_apple_darwin = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
  CXX_x86_64-apple-darwin = None
  CXX_x86_64_apple_darwin = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-apple-darwin = None
  CXXFLAGS_x86_64_apple_darwin = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
  CXX_x86_64-apple-darwin = None
  CXX_x86_64_apple_darwin = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-apple-darwin = None
  CXXFLAGS_x86_64_apple_darwin = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
  running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-arch" "x86_64" "-I" "/opt/amdgpu-pro/include/" "-I" "/opt/intel/inteloneapi/compiler/latest/linux/include/sycl/" "-I" "" "-Wall" "-Wextra" "-pthread" "-std=c++17" "-o" "/Users/ozgunozerk/IdeaProjects/sloth256-189/target/debug/build/sloth256-189-a710c65aaaf1d07f/out/src/opencl/opencl.o" "-c" "src/opencl/opencl.cpp"
  cargo:warning=src/opencl/opencl.cpp:50:18: warning: unused variable 'num_threads' [-Wunused-variable]
  cargo:warning=    unsigned int num_threads = std::thread::hardware_concurrency();
  cargo:warning=                 ^
  cargo:warning=src/opencl/opencl.cpp:222:37: error: use of undeclared identifier 'CL_DEVICE_WAVEFRONT_WIDTH_AMD'
  cargo:warning=                                    CL_DEVICE_WAVEFRONT_WIDTH_AMD,
  cargo:warning=                                    ^
  cargo:warning=src/opencl/opencl.cpp:262:35: error: use of undeclared identifier 'clCreateCommandQueueWithProperties'
  cargo:warning=                instance->cq[i] = clCreateCommandQueueWithProperties(instance->context,
  cargo:warning=                                  ^
  cargo:warning=1 warning and 2 errors generated.
  exit status: 1

  --- stderr

  error occurred: Command "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-arch" "x86_64" "-I" "/opt/amdgpu-pro/include/" "-I" "/opt/intel/inteloneapi/compiler/latest/linux/include/sycl/" "-I" "" "-Wall" "-Wextra" "-pthread" "-std=c++17" "-o" "/Users/ozgunozerk/IdeaProjects/sloth256-189/target/debug/build/sloth256-189-a710c65aaaf1d07f/out/src/opencl/opencl.o" "-c" "src/opencl/opencl.cpp" with args "c++" did not execute successfully (status code exit status: 1).

warning: build failed, waiting for other jobs to finish...

It still doesn't work on Linux.
Here is the output of cargo test features=opencl -- --nocapture:
unning 7 tests
test opencl::test_big_random_piece ... ignored
test opencl::test_big_random_piece_pinned ... ignored
test cpu::test_known_piece ... ok

Error while building OpenCL program:
fatal error: cannot open file '/usr/local//usr/lib/clc/gfx900-amdgcn-mesa-mesa3d.bc': No such file or directory

Error while building OpenCL program:
fatal error: cannot open file '/usr/local//usr/lib/clc/gfx900-amdgcn-mesa-mesa3d.bc': No such file or directory

Error while building OpenCL program:
thread 'fatal error: cannot open file '/usr/local//usr/lib/clc/gfx900-amdgcn-mesa-mesa3d.bc': No such file or directory
opencl::test_known_piece
' panicked at 'called `Result::unwrap()` on an `Err` value: OpenCLError("CL_BUILD_PROGRAM_FAILURE")', tests/integration/opencl.rs:thread '55opencl::test_random_piece_pinned:' panicked at '42called `Result::unwrap()` on an `Err` value: OpenCLError("CL_BUILD_PROGRAM_FAILURE")
', note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
tests/integration/opencl.rs:72:thread '42
opencl::test_random_piece' panicked at 'called `Result::unwrap()` on an `Err` value: OpenCLError("CL_BUILD_PROGRAM_FAILURE")', tests/integration/opencl.rs:31:42
test opencl::test_random_piece_pinned ... FAILED
test opencl::test_known_piece ... FAILED
test opencl::test_random_piece ... FAILED
test cpu::test_random_piece ... ok

The path for finding the file is not correct. There is an extra /usr/local/ there in my opinion.
If would be helpful, a similar file exists in my system in the following path: /usr/lib/clc/gfx900-amdgcn--.bc

Looks like an upstream issue with dependencies in Ubuntu: https://bugs.launchpad.net/libclc/+bug/1946381
But when I forcefully install libclc-amdgcn (for my GPU) I get this:

     Running tests/integration/main.rs (target/debug/deps/integration-c486ac06b9feced9)

running 7 tests
test opencl::test_big_random_piece ... ignored
test opencl::test_big_random_piece_pinned ... ignored
test cpu::test_known_piece ... ok
test cpu::test_random_piece ... ok

Error while building OpenCL program:
input.cl:13:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:22:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:30:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:35:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:48:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:69:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:91:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:107:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:162:5: error: use of undeclared identifier 'u15421'
<command line>:2:15: note: expanded from here
input.cl:165:36: error: use of undeclared identifier 'junk'
input.cl:316:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:434:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:445:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:520:21: warning: initializing '__global uchar *__private' (aka '__global unsigned char *__private') with an expression of type 'const __global uchar *' (aka 'const __global unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]

thread 'opencl::test_random_piece' panicked at 'called `Result::unwrap()` on an `Err` value: OpenCLError("CL_BUILD_PROGRAM_FAILURE")', tests/integration/opencl.rs:31:42
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
test opencl::test_random_piece ... FAILED

Error while building OpenCL program:
input.cl:13:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:22:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:30:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:35:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:48:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:69:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:91:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:107:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:162:5: error: use of undeclared identifier 'u15421'
<command line>:2:15: note: expanded from here
input.cl:165:36: error: use of undeclared identifier 'junk'
input.cl:316:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:434:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:445:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:520:21: warning: initializing '__global uchar *__private' (aka '__global unsigned char *__private') with an expression of type 'const __global uchar *' (aka 'const __global unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]

thread 'opencl::test_known_piece' panicked at 'called `Result::unwrap()` on an `Err` value: OpenCLError("CL_BUILD_PROGRAM_FAILURE")', tests/integration/opencl.rs:55:42
test opencl::test_known_piece ... FAILED

Error while building OpenCL program:
input.cl:13:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:22:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:30:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:35:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:48:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:69:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:91:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:107:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:162:5: error: use of undeclared identifier 'u15421'
<command line>:2:15: note: expanded from here
input.cl:165:36: error: use of undeclared identifier 'junk'
input.cl:316:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:434:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:445:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:520:21: warning: initializing '__global uchar *__private' (aka '__global unsigned char *__private') with an expression of type 'const __global uchar *' (aka 'const __global unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]

thread 'opencl::test_random_piece_pinned' panicked at 'called `Result::unwrap()` on an `Err` value: OpenCLError("CL_BUILD_PROGRAM_FAILURE")', tests/integration/opencl.rs:72:42
test opencl::test_random_piece_pinned ... FAILED

failures:

failures:
    opencl::test_known_piece
    opencl::test_random_piece
    opencl::test_random_piece_pinned

test result: FAILED. 2 passed; 3 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.23s

error: test failed, to rerun pass '--test integration'

So, that Open Source abstraction only supports OpenCL 1.1. I'm wondering which platform with Open Source drives did you test this on @simonatsn? clinfo output would help and required dependencies as well. So far it doesn't seem like it is even capable of that :disappointed:

Forcefully overriding OpenCL version (it seems a lot of OpenCL 1.2 features are actually supported, so I gave it a try) with CLOVER_PLATFORM_VERSION_OVERRIDE=1.2 CLOVER_DEVICE_VERSION_OVERRIDE=1.2 CLOVER_DEVICE_CLC_VERSION_OVERRIDE=1.2 cargo test --features=opencl -- --nocapture results in this:

     Running tests/integration/main.rs (target/debug/deps/integration-c486ac06b9feced9)

running 7 tests
test opencl::test_big_random_piece ... ignored
test opencl::test_big_random_piece_pinned ... ignored
test cpu::test_known_piece ... ok
test cpu::test_random_piece ... ok

Error while building OpenCL program:
input.cl:162:5: error: use of undeclared identifier 'u15421'
<command line>:2:15: note: expanded from here
input.cl:165:36: error: use of undeclared identifier 'junk'
input.cl:520:21: warning: initializing '__global uchar *__private' (aka '__global unsigned char *__private') with an expression of type 'const __global uchar *' (aka 'const __global unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]

thread 'opencl::test_random_piece' panicked at 'called `Result::unwrap()` on an `Err` value: OpenCLError("CL_BUILD_PROGRAM_FAILURE")', tests/integration/opencl.rs:31:42
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
test opencl::test_random_piece ... FAILED

Error while building OpenCL program:
input.cl:162:5: error: use of undeclared identifier 'u15421'
<command line>:2:15: note: expanded from here
input.cl:165:36: error: use of undeclared identifier 'junk'
input.cl:520:21: warning: initializing '__global uchar *__private' (aka '__global unsigned char *__private') with an expression of type 'const __global uchar *' (aka 'const __global unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]

thread 'opencl::test_known_piece' panicked at 'called `Result::unwrap()` on an `Err` value: OpenCLError("CL_BUILD_PROGRAM_FAILURE")', tests/integration/opencl.rs:55:42
test opencl::test_known_piece ... FAILED

Error while building OpenCL program:
input.cl:162:5: error: use of undeclared identifier 'u15421'
<command line>:2:15: note: expanded from here
input.cl:165:36: error: use of undeclared identifier 'junk'
input.cl:520:21: warning: initializing '__global uchar *__private' (aka '__global unsigned char *__private') with an expression of type 'const __global uchar *' (aka 'const __global unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]

thread 'opencl::test_random_piece_pinned' panicked at 'called `Result::unwrap()` on an `Err` value: OpenCLError("CL_BUILD_PROGRAM_FAILURE")', tests/integration/opencl.rs:72:42
test opencl::test_random_piece_pinned ... FAILED

failures:

failures:
    opencl::test_known_piece
    opencl::test_random_piece
    opencl::test_random_piece_pinned

test result: FAILED. 2 passed; 3 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.21s

Windows error evolved into this (tried with both u32 and VCC_T):

C:\Users\ozgun\sloth256-189>cargo test --features=opencl -- --nocapture
   Compiling sloth256-189 v0.2.2 (C:\Users\ozgun\sloth256-189)
    Finished test [unoptimized + debuginfo] target(s) in 4.28s
     Running unittests (target\debug\deps\sloth256_189-a6ffb2d3046a543d.exe)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
 Running tests\integration\main.rs (target\debug\deps\integration-77219c89e84110ab.exe)

running 7 tests
test opencl::test_big_random_piece ... ignored
test opencl::test_big_random_piece_pinned ... ignored
test cpu::test_known_piece ... ok
test cpu::test_random_piece ... ok
Error while building OpenCL program:
C:\Users\ozgun\AppData\Local\Temp\OCL5816T1.cl:153:5: error: implicit declaration of function 'asm' is invalid in C99
asm("v_mul_lo_u32 %0, %1, %2"
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T1.cl:154:18: error: expected ')'
: "=v"(z.w[0]) : "v"(x), "v"(y));
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T1.cl:153:12: note: to match this '('
asm("v_mul_lo_u32 %0, %1, %2"
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T1.cl:156:18: error: expected ')'
: "=v"(z.w[1]) : "v"(x), "v"(y));
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T1.cl:155:12: note: to match this '('
asm("v_mul_hi_u32 %0, %1, %2"
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T1.cl:160:12: error: overloaded function 'mad' must have the 'overloadable' attribute
inline u64 mad(u64 z, u32 x, u32 y)
^
c:\constructicon\builds\gfx\seven\21.30\stream\opencl\compiler\clc2\ocl-headers\build\wNow64a\B_rel\opencl12_builtins.h:11680:49: note: previous overload of function is here
half16 const_func attribute((overloadable)) mad(half16 a, half16 b, half16 c);
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T1.cl:165:18: error: expected ')'
: "+v" (z), "=s" (junk) : "v" (x), "v" (y));
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T1.cl:164:12: note: to match this '('
asm("v_mad_u64_u32 %0, %1, %2, %3, %0"
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T1.cl:520:21: warning: initializing '__global uchar *' (aka '__global unsigned char *') with an expression of type 'const __global uchar *' (aka 'const __global unsigned char ') discards qualifiers
__global uchar iv = _iv + x * 32;
^    ~~~~~~~~~~~~
1 warning and 5 errors generated.
error: Clang front-end compilation failed!
Frontend phase failed compilation.
Error: Compiling CL to IR
thread 'opencl::test_random_piece_pinned' panicked at 'called Result::unwrap() on an Err value: OpenCLError("CL_BUILD_PROGRAM_FAILURE")', tests\integration\opencl.rs:72:42
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
test opencl::test_random_piece_pinned ... FAILED
Error while building OpenCL program:
C:\Users\ozgun\AppData\Local\Temp\OCL5816T3.cl:153:5: error: implicit declaration of function 'asm' is invalid in C99
asm("v_mul_lo_u32 %0, %1, %2"
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T3.cl:154:18: error: expected ')'
: "=v"(z.w[0]) : "v"(x), "v"(y));
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T3.cl:153:12: note: to match this '('
asm("v_mul_lo_u32 %0, %1, %2"
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T3.cl:156:18: error: expected ')'
: "=v"(z.w[1]) : "v"(x), "v"(y));
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T3.cl:155:12: note: to match this '('
asm("v_mul_hi_u32 %0, %1, %2"
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T3.cl:160:12: error: overloaded function 'mad' must have the 'overloadable' attribute
inline u64 mad(u64 z, u32 x, u32 y)
^
c:\constructicon\builds\gfx\seven\21.30\stream\opencl\compiler\clc2\ocl-headers\build\wNow64a\B_rel\opencl12_builtins.h:11680:49: note: previous overload of function is here
half16 const_func attribute((overloadable)) mad(half16 a, half16 b, half16 c);
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T3.cl:165:18: error: expected ')'
: "+v" (z), "=s" (junk) : "v" (x), "v" (y));
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T3.cl:164:12: note: to match this '('
asm("v_mad_u64_u32 %0, %1, %2, %3, %0"
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T3.cl:520:21: warning: initializing '__global uchar *' (aka '__global unsigned char *') with an expression of type 'const __global uchar *' (aka 'const __global unsigned char ') discards qualifiers
__global uchar iv = _iv + x * 32;
^    ~~~~~~~~~~~~
1 warning and 5 errors generated.
error: Clang front-end compilation failed!
Frontend phase failed compilation.
Error: Compiling CL to IR
thread 'opencl::test_known_piece' panicked at 'called Result::unwrap() on an Err value: OpenCLError("CL_BUILD_PROGRAM_FAILURE")', tests\integration\opencl.rs:55:42
test opencl::test_known_piece ... FAILED
Error while building OpenCL program:
C:\Users\ozgun\AppData\Local\Temp\OCL5816T5.cl:153:5: error: implicit declaration of function 'asm' is invalid in C99
asm("v_mul_lo_u32 %0, %1, %2"
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T5.cl:154:18: error: expected ')'
: "=v"(z.w[0]) : "v"(x), "v"(y));
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T5.cl:153:12: note: to match this '('
asm("v_mul_lo_u32 %0, %1, %2"
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T5.cl:156:18: error: expected ')'
: "=v"(z.w[1]) : "v"(x), "v"(y));
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T5.cl:155:12: note: to match this '('
asm("v_mul_hi_u32 %0, %1, %2"
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T5.cl:160:12: error: overloaded function 'mad' must have the 'overloadable' attribute
inline u64 mad(u64 z, u32 x, u32 y)
^
c:\constructicon\builds\gfx\seven\21.30\stream\opencl\compiler\clc2\ocl-headers\build\wNow64a\B_rel\opencl12_builtins.h:11680:49: note: previous overload of function is here
half16 const_func attribute((overloadable)) mad(half16 a, half16 b, half16 c);
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T5.cl:165:18: error: expected ')'
: "+v" (z), "=s" (junk) : "v" (x), "v" (y));
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T5.cl:164:12: note: to match this '('
asm("v_mad_u64_u32 %0, %1, %2, %3, %0"
^
C:\Users\ozgun\AppData\Local\Temp\OCL5816T5.cl:520:21: warning: initializing '__global uchar *' (aka '__global unsigned char *') with an expression of type 'const __global uchar *' (aka 'const __global unsigned char ') discards qualifiers
__global uchar iv = _iv + x * 32;
^    ~~~~~~~~~~~~
1 warning and 5 errors generated.
error: Clang front-end compilation failed!
Frontend phase failed compilation.
Error: Compiling CL to IR
thread 'opencl::test_random_piece' panicked at 'called Result::unwrap() on an Err value: OpenCLError("CL_BUILD_PROGRAM_FAILURE")', tests\integration\opencl.rs:31:42
test opencl::test_random_piece ... FAILED
failures:
failures:
opencl::test_known_piece
opencl::test_random_piece
opencl::test_random_piece_pinned
test result: FAILED. 2 passed; 3 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.43s
error: test failed, to rerun pass '--test integration'

While it doesn't work with Open Source AMD driver under Linux, it works just fine with ROCm-based proprietary driver.
I adjusted code to skip AMD devices that are using Open Source IDC.


including ts and tsx files but exclude .d.ts and .stories.tsx files

Hi!
I guess the title says it all, how can I exclude my storybook  and .d.ts files from the barrel file?

See this, https://github.com/imjuni/ctix/blob/master/doc/IN_DEPTH_EXCLUDE.md
Set the exclude field in your options file, or add the @ctix-exclude comment to the top of your file


After Adding through HACS, not seeing Frigate as option in Configuration -> Integrations

Version of the custom_component
Running Home Assistant OS on a Raspberry Pi 4 8Gb
Operating System version: 5.10.17-v8
Home Assistant Core version: 2021.8.8
Frigate HACS integration version: v1.1.2
Configuration
No configuration file as it is currently not able to be added through 'Configuration' --> 'Integrations' like it says in the documentation when it is added in HACS (image attached)

Describe the bug
After adding the Frigate HACS integration, and restarting Home Assistant, the next step in the documentation of adding Frigate integration through  'Configuration' --> 'Integrations' --> 'Add Integration' is not available. Frigate does not show up in the list of possible integrations to add. Picture of behavior below

Debug log
No debug log to add as the integration is not yet installed fully. Want to be as helpful as possible on this, and very excited to use Frigate, so please let me know if there is any information I overlooked.

Hmm. Pardon the likely unhelpful comment: did you definitely restart?. This  is what you should see after it's installed in HACS (which as per your screenshot it definitely is), and after HA has restarted:

I restarted Home Assistant twice, but will do a full reboot of the Pi in the morning just to sort out any weirdness that may be happening

I am having the exact issue running in VirtualBox on Win 10.

Clear your browser cache

A restart of the raspberry pi (not just home assistant server) resolved this issue. I didn't clear the browser cache, nor have I had to do that with past integrations.

I just had the same issue, I tried the clear browser cache method and it didn't work so I the tried completely power cycling the pi and now it has shown up.

Hi guys,
I had the same issue and it took me 2 days to figure it out. The solution above did not work for me.
My problem was that the Frigate folder was not in the custom component folder. So I downloaded it, pasted it and it worked !
Here is the link to the folder. Hope it helped somebody!


Cannot read properties of undefined (reading 'getVNodeKey')

I get this error when I try to create a document. Is there a fix for this?

i have same promble

i have same promble


无法安装Python库Polygon3

可能是个人问题，我在查阅了许多资料后，试过多种安装方法，仍无法安装库Polygon3。如果可能，希望有解决方案。以下为报错：
C:\Users\Administrator>  pip install Polygon3
Collecting Polygon3
Using cached Polygon3-<IP_ADDRESS>.tar.gz (39 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: Polygon3
Building wheel for Polygon3 (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for Polygon3 (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
NumPy extension not found - disabling support for it!
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\Polygon
copying Polygon\IO.py -> build\lib.win-amd64-cpython-311\Polygon
copying Polygon\Shapes.py -> build\lib.win-amd64-cpython-311\Polygon
copying Polygon\Utils.py -> build\lib.win-amd64-cpython-311\Polygon
copying Polygon_init_.py -> build\lib.win-amd64-cpython-311\Polygon
running build_ext
building 'Polygon.cPolygon' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for Polygon3
Failed to build Polygon3
ERROR: Could not build wheels for Polygon3, which is required to install pyproject.toml-based projects

building 'Polygon.cPolygon' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
这是你没安装cpp-build工具，你按照他给的网址下载就行了


added PS5 as an accessory - Unable to request credentials error

Describe Your Problem:
command not being accepted by ps5 when attempting to turn ON/OFF in Home app
Logs:
[10/17/2022, 9:59:00 PM] [playstation] Unable to request credentials

Plugin Config:
 "pollInterval": 5000,
            "platform": "playstation"

Environment:

Plugin Version: v1.4.2
Homebridge Version: v1.5.0
Node.js Version:   v14.15.4

--

* **NPM Version**:  6.14.10
* **Operating System**:  Windows 11 Pro

I have the same problem. @morningla Do you already have a solution?

playactor commands all work in command prompt to put system on standby and power on.  ON/OFF status is showing properly, but powering on and off is not working in the Home App.  must be a permission issue but cannot figure it out.

I have the same problem @morningla Please let me know when you have find a solution.

Same here.

Same here

Same here. Extremely frustrating because it seems like it would be an easy thing to fix!

Hello - Can you check that the homebridge user has access to the directory /home/homebridge/.config/playactor ?

i am on windows11, my admin/user and system accounts all have full access to this folder
User/.config/playactor
homebridge services is ran using local service, do you want me to try switching to my admin  user account?  not sure if it'll affect anything else?

From: Flavio De Stefano @.>
Sent: April 17, 2023 5:46 AM
To: kopiro/homebridge-playstation @.>
Cc: morningla @.>; Mention @.>
Subject: Re: [kopiro/homebridge-playstation] added PS5 as an accessory - Unable to request credentials error (Issue #50)
Hello - Can you check that the homebridge user has access to the directory /home/homebridge/.config/playactor ?
—
Reply to this email directly, view it on GitHubhttps://github.com/kopiro/homebridge-playstation/issues/50#issuecomment-1511190198, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APQUPQH677BOXRUYN7Y7TZ3XBUURTANCNFSM6AAAAAARHVKTAY.
You are receiving this because you were mentioned.Message ID: @.***>

Hello - Can you check that the homebridge user has access to the directory /home/homebridge/.config/playactor ?

hello KOpiro, reading on the site looking for the problem, I saw this answer, I wanted to tell you that perhaps the problem is just this, i.e. that the user does not have access to the home/homebridge/.config/playactor folder. also because if I go to this directory I can't find anything to do with playactor.

This is correct,
The only playactor folder on windows is the configuration files in this folder.
C:\Users\User.config\playactorC:\Users\wil.config\playactor
There is not playactor folder anywhere else in the homebridge folders, but neither does any other plug-ins I think?
C:\Users\User .homebridge
From: @.>
Sent: April 18, 2023 9:21 AM
To: @.>
Cc: @.>; @.>
Subject: Re: [kopiro/homebridge-playstation] added PS5 as an accessory - Unable to request credentials error (Issue #50)
Hello - Can you check that the homebridge user has access to the directory /home/homebridge/.config/playactor ?
hello KOpiro, reading on the site looking for the problem, I saw this answer, I wanted to tell you that perhaps the problem is just this, i.e. that the user does not have access to the home/homebridge/.config/playactor folder. also because if I go to this directory I can't find anything to do with playactor.
[Screenshot 2023-04-18 alle 17 19 57]https://user-images.githubusercontent.com/123098088/232824349-e5cf21ae-7d55-4c02-a7f4-6b988629a37c.png
—
Reply to this email directly, view it on GitHubhttps://github.com/kopiro/homebridge-playstation/issues/50#issuecomment-1513352636, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APQUPQC5NSMODDEF6A23JSLXB2WQZANCNFSM6AAAAAARHVKTAY.
You are receiving this because you were mentioned.Message ID: @.***>

Hello - Can you check that the homebridge user has access to the directory /home/homebridge/.config/playactor ?

@kopiro I also encounter the Unable to request credentials error. The Home app accurately shows if the PS5 is in standby or not, but it logs the error message whenever attempting to toggle within the Home app.
I did confirm the permissions are set appropriately for the homebridge user (see screenshot).

I am happy to help with a PR if needed. Do you have any good leads on what is causing the error?

Has this issue ever been resolved. Having same error unable to request credentials

I solved it the following way:
Step 1: sudo addgroup pi homebridge
Where "pi" is your current username.
Step 2: sudo chmod 0760 /home/homebridge/ && sudo chmod 0760 /home/homebridge/.config/ && sudo chmod 0760 /home/homebridge/.config/playactor/
Step 3: sudo chmod 0644 /home/homebridge/.config/playactor/credentials.json
Step 4: ln -s /home/homebridge/.config/playactor /home/pi/.config/playactor
Step 2 &3 fix the access rights to the config file.
Step 4 links the file to my current home. For some reason it tries to find the file here. Works like a charm now

Hi and thanks for your reply, much appreciated. I tried your solution but already at the beginning something was wrong. my username is "andrea". gives me this answer. can you help me? thank you for your time.
￼

Il giorno 15 feb 2024, alle ore 14:01, Robert Hänsel @.***> ha scritto:
I solved it the following way:
Step 1: sudo addgroup pi homebridge
Where "pi" is your current username.
Step 2: sudo chmod 0760 /home/homebridge/ && sudo chmod 0760 /home/homebridge/.config/ && sudo chmod 0760 /home/homebridge/.config/playactor/
Step 3: sudo chmod 0644 /home/homebridge/.config/playactor/credentials.json
Step 4: ln -s /home/homebridge/.config/playactor /home/pi/.config/playactor
Step 2 &3 fix the access rights to the config file.
Step 4 links the file to my current home. For some reason it tries to find the file here. Works like a charm now
—
Reply to this email directly, view it on GitHub https://github.com/kopiro/homebridge-playstation/issues/50#issuecomment-1946054820, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5LFH2EC7X6RTZSN5PFGQJLYTYBL3AVCNFSM6AAAAAARHVKTA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBWGA2TIOBSGA.
You are receiving this because you commented.

In windows, the folder is here?
C:\Users***\AppData\Roaming\npm\node_modules\playactor

Try following the configuration instructions here again: https://github.com/NikDevx/homebridge-playstation-game-title?tab=readme-ov-file#configuration
I had the same problem, and just setting it up again (pairing it again), fixed it.


Cant connect to web client

Hello. Could you please give more details, such as which branch/commit you’re using, what server you’re trying to connect to (type), and steps for reproduction?

While I was trying to connect to <IP_ADDRESS>:10000 I got stuck on the logging in screen so I also tried on java. This also didn't work. I also asked some of my friends to connect to the server and they couldn't either. So I don't know if it's the server or the web client.


Seperate Client and Server Fails to Build

Problem
Failed to build for web platfrom in fullstack axum_auth example. I am using git version of dioxus

dx build --platform web --features web
Error: 🚫 Building project failed:
Caused by:
0: Failed to load Dioxus workspace
1: Failed to find target with name: axum_auth
Steps To Reproduce
Tried running axum_auth example from fullstack/examples
Steps to reproduce the behavior:

Expected behavior
Should Run

Screenshots

Environment:

Dioxus version:
Rust version:
OS info:
App platform:

Questionnaire

[ ] I'm interested in fixing this myself but don't know where to start
[ ] I would like to fix and I have a solution
[ ] I don't have time to fix this right now, but maybe later

This is likely because you're not in the right folder. The warning here should be more descriptive to give you some options re: which binaries can be ran.


allow DataOutputAgent to build complex XML

Should fix #834.  Appreciate review!

Coverage decreased (-0.09%) to 88.7% when pulling 352ca07c75eca2530bad104116d64d5365c45d20 on data_output_agent_can_build_complex_xml into 8dc5387f0b14940af6c728fe4f5c570d325c32ff on master.

Coverage decreased (-0.09%) to 88.7% when pulling 352ca07c75eca2530bad104116d64d5365c45d20 on data_output_agent_can_build_complex_xml into 8dc5387f0b14940af6c728fe4f5c570d325c32ff on master.

@dsander Mind reviewing this?

The code looks good to me.


Codingame rust template

I created this template for codingame projects.
https://github.com/NangiDev/rust-codingame-template
The template sets up a project to be used with https://github.com/slava-sh/rust-bundler to generate a single file.
Then I use codingame's own chrome extension and app to automatically sync the singlefile.rs to the website.
It creates a pretty good workflow.

Seems to be some problems with the rust-bundler and newer version of rust.
It does not understand keyword crate

A fix has been requested from Mariomka to fix this issue. Waiting for review/accept or you can use Mariomka's version by building it manually
https://github.com/mariomka/rust-bundler

Hi,
do not hesitate to make a PR in order to introduce your project inside our TEMPLATE.md file 😉

Hi,
do not hesitate to make a PR in order to introduce your project inside our TEMPLATE.md file 😉

Hi @NangiDev,
just wanted to check back if you still plan to create PR for the template suggestion or shall we close this issue?


Add shift and range expression parsing

Purpose

Add shift and range expression support
Fix parser crashing with type-cast-expr recovery

Fixes #22953
Fixes #23266
Fixes #23287
Approach

N/A

Samples

N/A

Remarks

N/A

Check List

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[x] Added necessary tests

[x] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[x] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

@SupunS Conflicts are resolved!

Codecov Report

Merging #23319 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #23319   +/-   ##
=======================================
  Coverage   14.59%   14.59%
=======================================
  Files          51       51
  Lines        1411     1411
  Branches      219      219
=======================================
  Hits          206      206
  Misses       1189     1189
  Partials       16       16

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4b5f9c7...2c4f913. Read the comment docs.


[hw][fpga] digilent jtag driver setup on windows

USB no response after cable plug in

change to another usb port (back port on mother board is the best if PC)

normal driver status

[!CAUTION]
The Description is USB Serial Converter & name is Digilent USB Device
It's different name from linux version which is Digilent Jtag ...

Reinstall digilent jtag driver
C:\Xilinx\Vivado\2024.1\data\xicom\cable_drivers\nt64\digilent\install_digilent.exe

Virtual Box

If you have driver that not working on windows, neither will work on vbox.
You will encounter attachment errors when trying to attach usb to vbox.


more supported override keys

https://jira.ecmwf.int/browse/COPDS-1859

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Added support for 3.10 SDK

Breakchanges due to 3.10 latest SDK fixed.

Nice. Thanks. I will just replace with your repo while waiting for it to get to the pub dev

Helpers 1.2.3 has Flutter 3.10 support! 🎉


Render Timing/State Accuracy Issue

Description
When combining click event state changed with custom event state changes a series of boolean properties seem to be coming out of sync with the rendered UI. As you'll see below the extent of the issue seems to exist in the my-element.js code which is fairly stripped down to the issue at hand. That being so, I didn't get into reducing the complexity of the supporting files in the reproduction. Please let me know if you'd prefer I find a way to remove the complexity in those files to ease the use of the demo code in finding the root of the issue herein.
Live Demo
https://stackblitz.com/edit/lit-timing-issue?file=my-element.js
Steps to Reproduce

Visit the demo.

see

Values:
projecting: false
projecting2: false
projecting3: false

Click "Toggle Projection 2"

see

Values:
projecting: false
projecting2: false
projecting3: true

Click "Toggle Projection"

see

Values:
projecting: true
projecting2: false
projecting3: true

Inspect the <my-element/> element that is bound by the red border.
In the console access $0.projecting3 which is now false and out of sync with the UI that is processing projecting3: ${this.projecting3 ? 'true' : 'false'} as "projecting3: true".

Expected Results
Step 3 above you result in:
3. Click "Toggle Projection"

see

Values:
projecting: true
projecting2: false
projecting3: false

And the value for projecting3 should be similarly false when accessed in the console.
Actual Results
The visual representation for projecting3 and the actual JS representation as not in sync.
Browsers Affected

[x] Chrome
[x] Firefox ESR (though some on the internals happen out of order, so the issue is expressed via the projecting2 property instead.
[ ] Edge
[x] Safari 12
[ ] Safari 10
[ ] IE 11

Versions

lit-element: v2.2.0
webcomponents: v2.2.10

Closing in favor of #800.


Approving verification requests creates new hosting provider objects

Closes https://github.com/thegreenwebfoundation/admin-portal/issues/313.
Scope of changes:

ProviderRequest admin has a custom "Approve" action, that can be triggered either from the change list view (for multiple requests) or from the change view (for a single request)

Custom actions are supported by Django on the change list view, but not on the change (detail) view. The action on the change view was added by introducing a ActionInChangeFormMixin and extending the change view form for the ProviderRequest model, as seen in this helpful StackOverflow answer.

The logic of approving the request handles possible failure modes by raising a ValueError, and the implementation is heavily commented with the reasons for temporary limitations (e.g. related to locations and user permissions)

ProviderRequest admin has now correct permissions: users within the admin group should be able to use the change view with read-write permissions.

Changed the available and default options for ProviderRequestStatus: the request can now be APPROVED instead of ACCEPTED, and the value upon submitting the request is set to PENDING_REVIEW.

Added missing fields: Hostingprovider now has a description, and related evidence documents now have a type.

Non-functional changes:

freezegun added as a dev dependency - it's very useful for testing time-related values in a predictable way.
A lot of tests to cover possible cases of approving the verification requests as well as accessing the admin of ProviderRequest

To do after merging
This pull request contains new migrations that need to be executed after deployment (triggered automatically upon merging) is finished.

 Verification request: Provider-related resources are created automatically upon accepting their submission

Thanks for working on this Oliwia! I've reviewed it and I'm very happy with it, but I hope you'll understand if I don't merge this in at 17:30 on a Friday afternoon 😅 .
I intend to merge this in on Monday morning when I have fresh eyes, but broadly speaking there's nothing I see that would block thing being merged in.
It's not really worth reviewing my others PRs until this is merged in, as they will all need some small changes before they're ready for a re-review


installer-linux-arm64-1.1.9-rc7 failed at first try but succeeded at the second try

Host Environment: MacBook 12.0.1 (21A559) with Apple M1
Dockerfile: Attached in the thread
installation logs: Attached below
How to reproduce:

replace the token with a valid one in docker file.
docker build . -t datakit
docker run -it --entrypoint bash datakit
./install.sh
echo $? # expect 1
./install.sh
echo $? #expect 0

root@dd2e01a6b885:/# ./install.sh
 Detect installer installer-linux-arm64-1.1.9-rc7

* Downloading installer /tmp/dk-installer
##################################################################################################################################################################################################### 100.0%

* Installing DataKit...
tee: /var/log/datakit/install.log: No such file or directory
2021-12-19T04:26:11.306Z	INFO	installer	installer/main.go:245	stoping datakit...
2021-12-19T04:26:11.310Z	WARN	installer	installer/main.go:247	stop service: Failed to stop datakit: exit status 1, ignored
2021-12-19T04:26:11.310Z	DEBUG	installer	installer/main.go:659	deprecated install path /usr/local/cloudcare/dataflux/datakit not exists, ignored
Downloading(datakit)... 17 MB/17 MB
Downloading(   data)... 34 MB/34 MB
2021-12-19T04:26:53.322Z	INFO	installer	installer/main.go:269	Installing version 1.1.9-rc7...
2021-12-19T04:26:53.322Z	WARN	installer	installer/main.go:348	uninstall service: Failed to uninstall datakit: remove /etc/init.d/datakit: no such file or directory, ignored
2021-12-19T04:26:53.323Z	DEBUG	dataway	dataway/dataway.go:208	httpCli: 0x4000244a00
2021-12-19T04:26:53.323Z	INFO	installer	installer/main.go:498	set cloud provider to  ok
2021-12-19T04:26:53.324Z	DEBUG	installer	installer/main.go:501	main config:
default_enabled_inputs = ["cpu", "disk", "diskio", "mem", "swap", "system", "hostobject", "net", "host_processes", "container"]
install_date = 2021-12-19T04:26:53Z
upgrade_date = 0001-01-01T00:00:00Z
namespace = ""
install_version = "1.1.9-rc7"
protect_mode = true
enable_election = false

[[black_lists]]
  hosts = []
  inputs = []

[[white_lists]]
  hosts = []
  inputs = []

[dca]
  enable = false
  listen = "<IP_ADDRESS>:9531"
  white_list = []

[http_api]
  rum_origin_ip_header = "X-Forwarded-For"
  listen = "localhost:9529"
  disable_404page = false
  rum_app_id_white_list = []

[io]
  feed_chan_size = 1024
  high_frequency_feed_chan_size = 2048
  max_cache_count = 1024
  cache_dump_threshold = 512
  max_dynamic_cache_count = 1024
  dynamic_cache_dump_threshold = 512
  flush_interval = "10s"
  output_file = ""
  output_file_inputs = []
  enable_cache = false

[dataway]
  urls = ["https://aws-openway.guance.com?token=tkn_I_hope_there_is_no_revision_history"]
  timeout = "5s"
  http_proxy = ""
  max_fail = 20

[logging]
  log = "/var/log/datakit/log"
  gin_log = "/var/log/datakit/gin.log"
  level = "info"
  disable_color = false
  rotate = 32

[global_tags]
  cluster = ""
  project = ""
  site = ""

[environments]
  ENV_HOSTNAME = ""

[cgroup]
  enable = true
  cpu_max = 30.0
  cpu_min = 5.0

[tracer]
  trace_enabled = false
  host = ""
  port = ""
  service = ""
  version = ""
  logs_startup = false
  debug = false
  env = ""

[git_repos]
  pull_interval = "1m"

  [[git_repos.repo]]
    enable = false
    url = ""
    ssh_private_key_path = ""
    ssh_private_key_password = ""
    branch = "master"

2021-12-19T04:26:53.324Z	INFO	config	config/cfg.go:520	here is hostname:
2021-12-19T04:26:53.324Z	INFO	config	config/cfg.go:523	set hostname to dd2e01a6b885
2021-12-19T04:26:53.324Z	INFO	installer	installer/main.go:449	installing service datakit...
2021-12-19T04:26:53.328Z	INFO	installer	installer/main.go:274	starting service datakit...
2021-12-19T04:26:53.355Z	DEBUG	config	config/cfg.go:839	remove link /usr/local/bin/datakit...
2021-12-19T04:26:53.355Z	WARN	config	config/cfg.go:841	remove /usr/local/bin/datakit: no such file or directory, ignored
2021-12-19T04:26:53.355Z	DEBUG	config	config/cfg.go:839	remove link /usr/local/sbin/datakit...
2021-12-19T04:26:53.355Z	WARN	config	config/cfg.go:841	remove /usr/local/sbin/datakit: no such file or directory, ignored
2021-12-19T04:26:53.355Z	DEBUG	config	config/cfg.go:839	remove link /sbin/datakit...
2021-12-19T04:26:53.355Z	WARN	config	config/cfg.go:841	remove /sbin/datakit: no such file or directory, ignored
2021-12-19T04:26:53.356Z	DEBUG	config	config/cfg.go:839	remove link /usr/sbin/datakit...
2021-12-19T04:26:53.356Z	DEBUG	config	config/cfg.go:839	remove link /usr/bin/datakit...
2021-12-19T04:26:53.356Z	WARN	config	config/cfg.go:841	remove /usr/bin/datakit: no such file or directory, ignored
2021-12-19T04:26:53.356Z	INFO	installer	installer/main.go:289	:) Install Success!

	Visit http://localhost:9529/man/changelog to see DataKit change logs.
	Visit http://localhost:9529/monitor to see DataKit running status.
	Visit http://localhost:9529/man to see DataKit manuals.

root@dd2e01a6b885:/# echo $?
1
root@dd2e01a6b885:/# ./install.sh
 Detect installer installer-linux-arm64-1.1.9-rc7

* Downloading installer /tmp/dk-installer
##################################################################################################################################################################################################### 100.0%

* Installing DataKit...
2021-12-19T04:27:35.719Z	INFO	installer	installer/main.go:245	stoping datakit...
2021-12-19T04:27:35.728Z	DEBUG	installer	installer/main.go:659	deprecated install path /usr/local/cloudcare/dataflux/datakit not exists, ignored
Downloading(datakit)... 17 MB/17 MB
Downloading(   data)... 34 MB/34 MB
2021-12-19T04:28:45.151Z	INFO	installer	installer/main.go:269	Installing version 1.1.9-rc7...
2021-12-19T04:28:45.157Z	DEBUG	dataway	dataway/dataway.go:208	httpCli: 0x4000132140
2021-12-19T04:28:45.158Z	INFO	installer	installer/main.go:498	set cloud provider to  ok
2021-12-19T04:28:45.160Z	DEBUG	installer	installer/main.go:501	main config:
default_enabled_inputs = ["cpu", "disk", "diskio", "mem", "swap", "system", "hostobject", "net", "host_processes", "container"]
install_date = 2021-12-19T04:28:45Z
upgrade_date = 0001-01-01T00:00:00Z
namespace = ""
install_version = "1.1.9-rc7"
protect_mode = true
enable_election = false

[[black_lists]]
  hosts = []
  inputs = []

[[white_lists]]
  hosts = []
  inputs = []

[dca]
  enable = false
  listen = "<IP_ADDRESS>:9531"
  white_list = []

[http_api]
  rum_origin_ip_header = "X-Forwarded-For"
  listen = "localhost:9529"
  disable_404page = false
  rum_app_id_white_list = []

[io]
  feed_chan_size = 1024
  high_frequency_feed_chan_size = 2048
  max_cache_count = 1024
  cache_dump_threshold = 512
  max_dynamic_cache_count = 1024
  dynamic_cache_dump_threshold = 512
  flush_interval = "10s"
  output_file = ""
  output_file_inputs = []
  enable_cache = false

[dataway]
  urls = ["https://aws-openway.guance.com?token=tkn_I_hope_there_is_no_revision_history"]
  timeout = "5s"
  http_proxy = ""
  max_fail = 20

[logging]
  log = "/var/log/datakit/log"
  gin_log = "/var/log/datakit/gin.log"
  level = "info"
  disable_color = false
  rotate = 32

[global_tags]
  cluster = ""
  project = ""
  site = ""

[environments]
  ENV_HOSTNAME = ""

[cgroup]
  enable = true
  cpu_max = 30.0
  cpu_min = 5.0

[tracer]
  trace_enabled = false
  host = ""
  port = ""
  service = ""
  version = ""
  logs_startup = false
  debug = false
  env = ""

[git_repos]
  pull_interval = "1m"

  [[git_repos.repo]]
    enable = false
    url = ""
    ssh_private_key_path = ""
    ssh_private_key_password = ""
    branch = "master"

2021-12-19T04:28:45.161Z	INFO	config	config/cfg.go:520	here is hostname:
2021-12-19T04:28:45.161Z	INFO	config	config/cfg.go:523	set hostname to dd2e01a6b885
2021-12-19T04:28:45.163Z	INFO	installer	installer/main.go:449	installing service datakit...
2021-12-19T04:28:45.167Z	INFO	installer	installer/main.go:274	starting service datakit...
2021-12-19T04:28:45.198Z	DEBUG	config	config/cfg.go:839	remove link /usr/local/bin/datakit...
2021-12-19T04:28:45.199Z	DEBUG	config	config/cfg.go:839	remove link /usr/local/sbin/datakit...
2021-12-19T04:28:45.199Z	DEBUG	config	config/cfg.go:839	remove link /sbin/datakit...
2021-12-19T04:28:45.199Z	DEBUG	config	config/cfg.go:839	remove link /usr/sbin/datakit...
2021-12-19T04:28:45.199Z	DEBUG	config	config/cfg.go:839	remove link /usr/bin/datakit...
2021-12-19T04:28:45.199Z	INFO	installer	installer/main.go:289	:) Install Success!

	Visit http://localhost:9529/man/changelog to see DataKit change logs.
	Visit http://localhost:9529/monitor to see DataKit running status.
	Visit http://localhost:9529/man to see DataKit manuals.

root@dd2e01a6b885:/# echo $?
0
root@dd2e01a6b885:/#

FROM ubuntu

RUN apt -y update && apt -y upgrade && apt -y install curl

ENV DK_DATAWAY="https://aws-openway.guance.com?token=tkn_xyz"

#RUN bash -c "$(curl -L https://static.guance.com/datakit/install.sh)"

RUN echo "#!/bin/bash" >install.sh

RUN curl https://static.guance.com/datakit/install.sh -o install.sh.original
RUN cat install.sh.original >>install.sh
RUN chmod +x install.sh

#RUN ./install.sh

ENTRYPOINT ["datakit "]

We haven't build datakit within docker before, this may need some debugging.
BTW, while runner under docker, we recommend do not using the installer install datakit, current installer will running datakit as system service, this may cause some tricky bug.
We recommend passing --download-only flag to the the installer, untar the package and start datakit binary manually in your dockerfile.


Implement dynamic title

Description
This PR introduces new component (SEO) to handles dynamic title across different routes. This component can still be improved further for others dynamic meta content by adding more props, such as: meta, description, keywords, etc. Let me know, if there's anything specfic you'd like to change
Fix #12

Nice! The code looks good. Thank you for the contribution 🙂


AMI in US-East?

I'm confined to using US-East region for EC2, any chance on getting the AMI copied there?
(I'd do it myself, but I don't have permissions...)

Seems like a fine idea. This AMI is now public in us-east (N. Virginia):
ami-5a210a30    EESEN-train-transcribe-V2
On 02/08/2016 03:18 PM, rightfront wrote:

I'm confined to using US-East region for EC2, any chance on getting the AMI copied there?
(I'd do it myself, but I don't have permissions)
—
Reply to this email directly or view it on GitHub https://github.com/srvk/eesen-transcriber/issues/2.

--
Eric Riebling      Interactive Systems Lab
<EMAIL_ADDRESS>  407 South Craig St.

Thanks!


Magento 2 CE and EE

Hi,
Could you this be adapted/used to create your own composer repo of Magento 2?

Magento 2 uses Composer out of the box, why would you need this?

@AydinHassan To create your own core package. Mainly useful for enterprise edition, which is not a public repo.

Sorry, I don't follow. You will have to be more specific. Why would EE be public? And if you have access to EE, surely yo have access to the repo?

@AydinHassan EE is private like you say. And I would like to create a private repo of EE 2 and then in my other repos pull down from that using composer

You still wouldn't need this tool. All this tool does is c+p everything from the vendor package to the doc root. Magento 2 works directly from the vendor directory.


CI: fix scikit-umfpack and scikit-sparse install in Azure job

Follow-up to gh-16529

Okay, this finally worked:
Script contents:
pip install matplotlib && pip install scikit-umfpack scikit-sparse --no-deps --no-build-isolation # The above two scikits both depend on scipy, so use `--no-deps` # Also note that they don't provide wheels, so we build them from # source (only in this job, it's a small optional dependency so test # only in a single place)
========================== Starting Command Output ===========================
/usr/bin/bash --noprofile --norc /home/vsts/work/_temp/48e5d153-1eb7-4420-8aac-dca0e0797ce3.sh
Collecting matplotlib
  Downloading matplotlib-3.5.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (11.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.2/11.2 MB 70.2 MB/s eta 0:00:00
Requirement already satisfied: numpy>=1.17 in /opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/site-packages (from matplotlib) (1.24.0.dev0+427.gf9bed20bf)
Requirement already satisfied: pyparsing>=2.2.1 in /opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/site-packages (from matplotlib) (3.0.9)
Collecting cycler>=0.10
  Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting python-dateutil>=2.7
  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 47.1 MB/s eta 0:00:00
Collecting pillow>=6.2.0
  Downloading Pillow-9.2.0-cp39-cp39-manylinux_2_28_x86_64.whl (3.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.2/3.2 MB 76.4 MB/s eta 0:00:00
Collecting kiwisolver>=1.0.1
  Downloading kiwisolver-1.4.3-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 57.9 MB/s eta 0:00:00
Requirement already satisfied: packaging>=20.0 in /opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/site-packages (from matplotlib) (21.3)
Collecting fonttools>=4.22.0
  Downloading fonttools-4.33.3-py3-none-any.whl (930 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 930.9/930.9 kB 72.2 MB/s eta 0:00:00
Collecting six>=1.5
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: six, pillow, kiwisolver, fonttools, cycler, python-dateutil, matplotlib
Successfully installed cycler-0.11.0 fonttools-4.33.3 kiwisolver-1.4.3 matplotlib-3.5.2 pillow-9.2.0 python-dateutil-2.8.2 six-1.16.0
Collecting scikit-umfpack
  Downloading scikit-umfpack-0.3.2.tar.gz (25 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting scikit-sparse
  Downloading scikit-sparse-0.4.6.tar.gz (209 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 209.3/209.3 kB 9.8 MB/s eta 0:00:00
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: scikit-umfpack, scikit-sparse
  Building wheel for scikit-umfpack (setup.py): started
  Building wheel for scikit-umfpack (setup.py): finished with status 'done'
  Created wheel for scikit-umfpack: filename=scikit_umfpack-0.3.2-cp39-cp39-linux_x86_64.whl size=225868 sha256=f34b7ee565e50da13840b614fbe1765b3b32c4f4d7ad51748a20e98e314914cf
  Stored in directory: /home/vsts/.cache/pip/wheels/a1/4b/2a/4f1bd2e0a36f5f22ed2308d28a5573a3ff93c1a4cb088e1bce
  Building wheel for scikit-sparse (pyproject.toml): started
  Building wheel for scikit-sparse (pyproject.toml): finished with status 'done'
  Created wheel for scikit-sparse: filename=scikit_sparse-0.4.6-cp39-cp39-linux_x86_64.whl size=800392 sha256=cd6f3d0314a174b2865188974d860bcf65e883efc60ab4ad1ca07048759df0db
  Stored in directory: /home/vsts/.cache/pip/wheels/40/a2/33/03fe4c58065813cb365468d663b01ab6424a34b620bc57f384
Successfully built scikit-umfpack scikit-sparse
Installing collected packages: scikit-umfpack, scikit-sparse
Successfully installed scikit-sparse-0.4.6 scikit-umfpack-0.3.2
Finishing: Install full mode optional dependencies

Net gain is ~16 sec + avoiding a 44MB download of a scipy wheel.


add @effect/cluster-* packages

I wonder if it would make sense to start to organize packages by subfolder i.e. /cluster/browser /cluster/pg etc to make things easier to find (in general, not just w/ the cluster packages).


Add @didiez to subversion-plugin developers

Add @didiez to https://github.com/jenkinsci/subversion-plugin developers

I've already logged in successfully into Artifactory at https://repo.jenkins-ci.org 20 minutes ago, right before sending the PR.

I've already logged in successfully into Artifactory at repo.jenkins-ci.org 20 minutes ago, right before sending the PR.

it syncs ~hourly

explained here: https://github.com/jenkins-infra/repository-permissions-updater/pull/2101/checks?check_run_id=3720332833


Consumer time out and zookeeper connect

Hi,
I am very confused on where to set consumer timeout.  Please find below how I create consumer context.  The only way I could get this work was to provide zookeeper.connect and consumer.timeout.ms directly to ConsumerConfig via Properties.  Also not sure what ConsumerMetadata.setConsumerTimeout does.
kafkaConsumerContext.setZookeeperConnect and kafkaConsumerContext.setConsumerTimeout has no effect at all.  Please let me know if I am missing something.
 private KafkaConsumerContext kafkaConsumerContext() throws IOException {
        KafkaConsumerContext kafkaConsumerContext = new KafkaConsumerContext();
        Map<String, ConsumerConfiguration> map = new HashMap<>();

        ConsumerMetadata consumerMetadata = new ConsumerMetadata();
        consumerMetadata.setGroupId(groupId);
        consumerMetadata.setValueDecoder(new AvroSpecificDatumBackedKafkaDecoder(User.class));
        consumerMetadata.setKeyDecoder(new AvroReflectDatumBackedKafkaDecoder(String.class));

        Map<String, Integer> topicStreamMap = new HashMap<>();
        topicStreamMap.put(topic, 1);
        consumerMetadata.setTopicStreamMap(topicStreamMap);
        consumerMetadata.setConsumerTimeout(consumerTimeout);

        Properties properties = new Properties();
        properties.put("zookeeper.connect", zookeeper);
        properties.put("group.id", groupId);
        properties.put("consumer.timeout.ms", consumerTimeout);
        properties.putAll(getProducerConfigProps());
        ConsumerConfig consumerConfig = new ConsumerConfig(properties);
        ConsumerConnectionProvider consumerConnectionProvider = new ConsumerConnectionProvider(consumerConfig);

        ConsumerConfiguration consumerConfiguration = new ConsumerConfiguration(consumerMetadata,
                consumerConnectionProvider, new MessageLeftOverTracker());
        //NOTE:  Max messages is what determines how many messages to be picked together.  Default is 1.
        consumerConfiguration.setMaxMessages(5000);
        //Same as producer config, key to this map does not have any meaning.  You can give any key name.
        map.put("config", consumerConfiguration);

        kafkaConsumerContext.setConsumerConfigurations(map);
        kafkaConsumerContext.setConsumerTimeout(consumerTimeout);

//        kafkaConsumerContext.setZookeeperConnect(new ZookeeperConnect("<IP_ADDRESS>:2181"));
        return kafkaConsumerContext;

    }

Hello, @abhijith-prabhakar !
And sorry for the delay.
Yes, I agree with you that there is some issues and a mess around this Consumer stuff.
Consider to use ConsumerConfigFactoryBean instead of direct ConsumerConfig.
The ConsumerMetadata.setConsumerTimeout has affect, BTW.
From other side consider to use Spring Integration Java DSL on the matter: https://spring.io/blog/2015/04/15/spring-integration-java-dsl-1-1-m1-is-available.
You can find there Kafka Namespace Factory, which allows you to simplify the configuration.
With this one I'd suggest to go ahead with the PR, if you'd like to contribute!

Closed with the workaround and as part of the API which will be deprecated soon:
https://jira.spring.io/browse/INTEXT-139.


Open AI Logout

OpenAI does not stay logged in when closing Pycharm and reopening, is there a way to stay logged in?

Same problem in Intellij - have to paste the api access token each time I reopen Intellij to use this plugin.

@pgebert do you mean it happens even when you use the plugin with api connection? Please attach full idea.log

Description
When I reopen Intellij, the full Azure Open AI settings of the plugin are visible (api endpoint, deployment name and even the partly masked api key). But inserting a message in the chat, it prompts me to insert the api key again. After inserting the unchanged api key it works again until I reopen Intellij,
Logs
In the logs I get the following exception on startup:
2024-06-28 16:58:01,355 [   8395]   WARN - #c.i.i.s.i.StartupManagerImpl - Migrate com.didalgo.intellij.chatgpt.StartupHandler to ProjectActivity [Plugin: com.didalgo.chatgpt]
com.intellij.diagnostic.PluginException: Migrate com.didalgo.intellij.chatgpt.StartupHandler to ProjectActivity [Plugin: com.didalgo.chatgpt]
	at com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActivities(StartupManagerImpl.kt:276)
	at com.intellij.ide.startup.impl.StartupManagerImpl.access$runPostStartupActivities(StartupManagerImpl.kt:68)
	at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3$2.invokeSuspend(StartupManagerImpl.kt:191)
	at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3$2.invoke(StartupManagerImpl.kt)
	at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3$2.invoke(StartupManagerImpl.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167)
	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
	at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3.invokeSuspend(StartupManagerImpl.kt:190)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:270)
	at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

Full log file: idea.log
Version

Plugin: 1.0.1-231
Intellij: 2024.1.4 (Build #IU-241.18034.62)

Hope this helps

@pgebert Thank you. It would be helpful if the log itself contained the error about the missing API Key. Can you do the following:

open IntelliJ IDEA
send a chat message to trigger the error (don't add a new API key, just trigger the error)
close IntelliJ IDEA
retrieve the idea.log file and attach it here?

Sure - this is the resulting log file: idea.log

@pgebert I'm unable to find helpful information in the logs, so I can only offer a guess. My suspicion is that the kdbx database might have got corrupted.
If the issue is indeed a corrupted kdbx database, you can try the following:
Locate the "c.kdbx" file in the folder C:\Users\{USER}\AppData\Roaming\JetBrains\IntelliJIdea2024.1\. With IDEA closed, rename this file but keep it for possible restoration. Start your IDE, re-enter the API keys, and verify if they are saved correctly upon the next IDE restart.

@pgebert Thanks for the information. I'm glad that it works for you. I'm a bit surprised that KeePass needs extra activation in IntelliJ. I guess I need to consider how to address this aspect in the plugin.


rc1, always get application specific error after second release

I'm using deis installed with chart rc1.
My rails app can only start correctly on first release. When I make some change (let's say add a blank line), and commit + push, it builds successfully; pods get updated; but the pods do not start.
It shows application specific error.
If I run deis rollback v1, the pods still won't start. And I see the same error.
However, if I run deis destroy. And then deis create, and push the latest commit, the pods will start without error.
Following is the application specific error
aerial-vacation-v11-worker-j048d -- rake aborted!
aerial-vacation-v11-worker-j048d -- Bundler::GemRequireError: There was an error while trying to load the gem \'delayed_job_web\'.
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.11.2/lib/bundler.rb:99:in `require\'
aerial-vacation-v11-worker-j048d -- /app/config/application.rb:16:in `<top (required)>\'
aerial-vacation-v11-worker-j048d -- /app/Rakefile:4:in `require\'
aerial-vacation-v11-worker-j048d -- /app/Rakefile:4:in `<top (required)>\'
aerial-vacation-v11-worker-j048d -- ArgumentError: invalid value for Integer(): "None"
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/sinatra-1.4.7/lib/sinatra/base.rb:1863:in `Integer\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/sinatra-1.4.7/lib/sinatra/base.rb:1863:in `<class:Base>\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/sinatra-1.4.7/lib/sinatra/base.rb:876:in `<module:Sinatra>\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/sinatra-1.4.7/lib/sinatra/base.rb:16:in `<top (required)>\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `block in require\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/delayed_job_web-1.2.10/lib/delayed_job_web/application/app.rb:1:in `<top (required)>\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `block in require\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/delayed_job_web-1.2.10/lib/delayed_job_web.rb:1:in `<top (required)>\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in `require\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in `block (2 levels) in require\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require\'
aerial-vacation-v11-worker-j048d -- /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.11.2/lib/bundler.rb:99:in `require\'
aerial-vacation-v11-worker-j048d -- /app/config/application.rb:16:in `<top (required)>\'
aerial-vacation-v11-worker-j048d -- /app/Rakefile:4:in `require\'
aerial-vacation-v11-worker-j048d -- /app/Rakefile:4:in `<top (required)>\'
aerial-vacation-v11-worker-j048d -- (See full trace by running task with --trace)

Digging into the error message. I found that the PORT environment variable is 'None' after the second release. That, in turn, prevents the pods from starting.

pinging @helgi and @kmala into this conversation

@StaymanHou can you show what your controller logs say kubectl logs deis-controller-<> --namespace=deis
also can you tell what your procfile if exists looks like?

the only scenario where the PORT will be None is if the app is non-routable(the proc type is not web or cmd)...if you see the logs above there are different proc types in each logs

I wasn't able to reproduce either.

If I run deis rollback v1, the pods still won't start.

FYI you shouldn't roll back to v1 because no build was deployed at that point. I'm going to PR a change so you can't roll back to v1 intentionally.

the only scenario where the PORT will be None is if the app is non-routable(the proc type is not web or cmd)

That might be the cause. I tried to deploy web only for the app. Rolling out new releases works fine. After I start to add worker, the next release after I deploy the workers will fail.

@bacongobbler . What log shall I provide other than the ones I already provided?

The only scenario where the PORT will be None is if the app is non-routable(the proc type is not web or cmd)...

Interesting thought, but I had PORT available in my environment.
><> cat Procfile
web: gunicorn -b <IP_ADDRESS>:$PORT app:app
worker: while true; do echo "port number is $PORT"; sleep 10; done
><> deis logs
INFO [car]: config car-7feebd5 updated
INFO [car]: bacongobbler created initial release
INFO [car]: domain car added
INFO [car]: build car-401fcf5 created
INFO [car]: bacongobbler deployed 774eded
INFO [car]: Using default port 5000 for build pack image home/car:git-774eded2/push/slug.tgz
car-v2-web-45wcj -- [2016-05-31 19:49:33 +0000] [1] [INFO] Starting gunicorn 19.3.0
car-v2-web-45wcj -- [2016-05-31 19:49:33 +0000] [1] [INFO] Listening at: http://<IP_ADDRESS>:5000 (1)
car-v2-web-45wcj -- [2016-05-31 19:49:33 +0000] [1] [INFO] Using worker: sync
car-v2-web-45wcj -- [2016-05-31 19:49:33 +0000] [37] [INFO] Booting worker with pid: 37
INFO [car]: build car-919f85a created
INFO [car]: bacongobbler deployed 14e6f89
INFO [car]: Using default port 5000 for build pack image home/car:git-14e6f89d/push/slug.tgz
car-v2-web-45wcj -- [2016-05-31 19:52:54 +0000] [1] [INFO] Handling signal: term
car-v2-web-45wcj -- [2016-05-31 19:52:54 +0000] [37] [INFO] Worker exiting (pid: 37)
car-v2-web-45wcj -- [2016-05-31 19:52:54 +0000] [1] [INFO] Shutting down: Master
car-v3-web-ay7p8 -- [2016-05-31 19:52:24 +0000] [1] [INFO] Starting gunicorn 19.3.0
car-v3-web-ay7p8 -- [2016-05-31 19:52:24 +0000] [1] [INFO] Listening at: http://<IP_ADDRESS>:5000 (1)
car-v3-web-ay7p8 -- [2016-05-31 19:52:24 +0000] [1] [INFO] Using worker: sync
car-v3-web-ay7p8 -- [2016-05-31 19:52:24 +0000] [38] [INFO] Booting worker with pid: 38
INFO [car]: bacongobbler on car-v3-run-ueha1 runs ''env''
INFO [car]: bacongobbler scaled pods worker=1
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
car-v3-worker-n90m4 -- hi
INFO [car]: build car-aa65ce1 created
INFO [car]: bacongobbler deployed ccacff6
INFO [car]: Using default port 5000 for build pack image home/car:git-ccacff6e/push/slug.tgz
car-v4-worker-ei72c -- port number is 5000
car-v4-worker-ei72c -- port number is 5000
car-v4-worker-ei72c -- port number is 5000
car-v4-worker-ei72c -- port number is 5000
car-v4-worker-ei72c -- port number is 5000
car-v4-worker-ei72c -- port number is 5000
car-v4-web-u55d6 -- [2016-05-31 20:18:43 +0000] [1] [INFO] Starting gunicorn 19.3.0
car-v4-web-u55d6 -- [2016-05-31 20:18:43 +0000] [1] [INFO] Listening at: http://<IP_ADDRESS>:5000 (1)
car-v4-web-u55d6 -- [2016-05-31 20:18:43 +0000] [1] [INFO] Using worker: sync
car-v4-web-u55d6 -- [2016-05-31 20:18:43 +0000] [35] [INFO] Booting worker with pid: 35
car-v4-worker-ei72c -- port number is 5000
car-v4-worker-ei72c -- port number is 5000
car-v3-web-ay7p8 -- [2016-05-31 20:19:14 +0000] [1] [INFO] Handling signal: term
car-v3-web-ay7p8 -- [2016-05-31 20:19:14 +0000] [38] [INFO] Worker exiting (pid: 38)
car-v3-web-ay7p8 -- [2016-05-31 20:19:14 +0000] [1] [INFO] Shutting down: Master
car-v4-worker-ei72c -- port number is 5000
car-v4-worker-ei72c -- port number is 5000
car-v4-worker-ei72c -- port number is 5000
car-v4-worker-ei72c -- port number is 5000
car-v4-worker-ei72c -- port number is 5000
car-v4-worker-ei72c -- port number is 5000

What log shall I provide other than the ones I already provided?

https://github.com/deis/workflow/issues/275#issuecomment-222749273 so we can see the controller logs.

A small correction the PORT env varible is hardcoded to 5000 for buildpack apps https://github.com/deis/controller/blob/master/rootfs/scheduler/init.py#L44

here's the controller log. BTW, looks like rolling out new release would work fine if all the workers are idle / task queue is empty. I'm using delayed_job for the queue system.  Already at desired replicas
INFO deploy dainty-jamboree-v9-web, img home/dainty-jamboree:git-f150aaea/push/slug.tgz, cmd "start web"
INFO scaling release dainty-jamboree-v9-web to 1 out of final 1
INFO adding 30s on to the original 120s timeout to account for the initial delay specified in the readiness probe
INFO waiting for 1 pods in dainty-jamboree namespace to be in services (150 timeout)
<IP_ADDRESS> "GET /readiness HTTP/1.1" 200 2 "Go 1.1 package http"
<IP_ADDRESS> "GET /readiness HTTP/1.1" 200 2 "Go 1.1 package http"
<IP_ADDRESS> "GET /healthz HTTP/1.1" 200 2 "Go 1.1 package http"
<IP_ADDRESS> "GET /healthz HTTP/1.1" 200 2 "Go-http-client/1.1"
INFO 1 out of 1 pods in namespace dainty-jamboree are in service
INFO scaling old release dainty-jamboree-v8-web from original 1 to 0
INFO scaling RC dainty-jamboree-v8-web in Namespace dainty-jamboree from 1 to 0 replicas
INFO waiting for RC dainty-jamboree-v8-web to get a newer resource version than 416958 (30s timeout)
INFO RC dainty-jamboree-v8-web has a new resource version 417162
INFO waiting for 1 pods in dainty-jamboree namespace to be terminated (30s timeout)
INFO 1 pods in namespace dainty-jamboree are terminated
INFO Not scaling RC dainty-jamboree-v8-web in Namespace dainty-jamboree to 0 replicas.
Conditions:

app has worker pods
worker pods have been deployed
one or more workers are working & task queue not empty
push new release
(maybe) app uses delayed_job as the queue system

Consequences:

$PORT will be None in all(?) the pods created passing this point

web, worker, and probably others as well
rollback doesn't help

I was able to reproduce this, simple buildpack app (go) and a basic worker process:
k:raygun example-go [master]$ cat Procfile
web: example-go
worker: echo ${PORT}; sleep 120; echo "goodnight"

k:raygun example-go [master]$ kubectl --namespace=haptic-tabletop logs haptic-tabletop-v3-web-e5ql2
2016/06/01 16:13:39 listening on None...
panic: listen tcp: unknown port tcp/None

goroutine 1 [running]:
panic(0x729fa0, 0xc8200d6960)
        /tmp/cache/go1.6.2/go/src/runtime/panic.go:481 +0x3e6
main.main()
        /tmp/build/.heroku/go/src/github.com/deis/example-go/web.go:18 +0x246
k:raygun example-go [master]$ kubectl --namespace=haptic-tabletop logs haptic-tabletop-v3-worker-awkum
None

Looks like we are setting PORT twice, once from the RC template and once from the env secret hash:
$ kubectl --namespace=haptic-tabletop get rc haptic-tabletop-v4-web -o yaml
        - name: PORT
          value: "5000"
        - name: PORT
          valueFrom:
            secretKeyRef:
              key: port
              name: haptic-tabletop-v4-env

k:raygun example-go [master]$ kubectl --namespace=haptic-tabletop get secret haptic-tabletop-v4-env -o yaml
apiVersion: v1
data:
  port: Tm9uZQ==
  powered-by: ZmVhcg==
kind: Secret
metadata:
  creationTimestamp: 2016-06-01T16:21:29Z
  labels:
    app: haptic-tabletop
    type: env
    version: v4
  name: haptic-tabletop-v4-env
  namespace: haptic-tabletop
  resourceVersion: "120916"
  selfLink: /api/v1/namespaces/haptic-tabletop/secrets/haptic-tabletop-v4-env
  uid: e5619c55-2814-11e6-91f7-0a45229c9ef3
type: Opaque
k:raygun example-go [master]$ echo "Tm9uZQ==" | base64 -d && echo
None


Code generation for EVM smart contracts

This pull request adds support for EVM smart contracts to seer.
It builds on abigen by creating a command-line interface to Ethereum smart contracts from their ABIs (and byecode).
The Go bindings also contain structs required to crawl events emitted by the EVM contracts, but this functionality isn't hooked up to the CLI in this PR.
The goal in this PR is for seer evm generate to achieve feature parity with moonworm generate-brownie.
Status: This PR is ready to review and merge (if approved). There are some known issues with structs with byte fields. We will run into these issues when working with EIP-2535 diamond contracts, and will resolve them then.

I got an error running this against FullcountBots abi.
./seer evm generate \     --abi ~/basebots/abis/FullcountBots.json \     --cli \     --package bots \     --struct FullcountBots \     --output examples/fullcount-bots/fullcount-bots.go
go build examples/fullcount-bots/fullcount-bots.go --> examples/fullcount-bots/fullcount-bots.go:3259:8: hexDecodeErr redeclared in this block 	examples/fullcount-bots/fullcount-bots.go:3250:8: other declaration of hexDecodeErr

I got an error running this against FullcountBots abi.
make
./seer evm generate \ --abi ~/basebots/abis/FullcountBots.json \ --cli \ --package bots \ --struct FullcountBots \ --output examples/fullcount-bots/fullcount-bots.go
go build examples/fullcount-bots/fullcount-bots.go --> examples/fullcount-bots/fullcount-bots.go:3259:8: hexDecodeErr redeclared in this block examples/fullcount-bots/fullcount-bots.go:3250:8: other declaration of hexDecodeErr

Resolved. Added the --includemain flag to seer evm generate to take care of this.


the bots does not label correctly (test)

the bot does not label correctly. please fix.

Perfect!


Feature Request: Filter schema checks by service

Hi!
It would be great if it was possible in the schema checks UI to filter by service, so you could see all the checks that happened for a specific service.
Apart from that, it would be great if the schema check filter would stay when opening a check. Currently, they reset to off when clicking on a new check.

Apart from that, it would be great if the schema check filter would stay when opening a check. Currently, they reset to off when clicking on a new check.

This will be improved via https://github.com/kamilkisiela/graphql-hive/pull/3419.

Closed by #3419


How do I tweak the code to change the spacing/gap between heading, content and such?

The title describes the issue i wanted to list.
I did a search before writing this, so this issue is based on issue #17. But as I'm noting familiar with css, I thought of just asking it here. Thanks.
Absolutely love the theme b.t.w, it also uses my favorite color yellow.

You can try to copy what the person wrote
https://github.com/Braweria/Spectrum/issues/17#issuecomment-894504467
save it as a snippet MyTweaks.css in the snippet folder of Obsidian.


Nix package

Would be really nice to have a NixOS package that makes it easy to run the server with as simple as adding one line of configuration. The nix package will also be installeable on Mac.

had the same thought today, already looking into it together with @Ma27

NixOS packages are just AppImages. @nhooyr stated they won't like to suppprt every use case so build your own deployment solution @srid

NixOS packages are just AppImages.

I'm afraid that this is wrong. Nix is a package manager for several *NIX systems, but with an entirely different packaging approach. Having a Nix package can be helpful, e.g. if somebody wants to deploy code-server to a NixOS system.
@elseym and I started to have a look at code-server's build system, but we got stuck while trying to install the @coder/* packages into the build environment last friday. We weren't entirely sure how to run the postinstall hooks in the build scripts while building with yarn2nix.
We'll probably come back to this during one of the next weeks and report back, but if somebody wants to take over, feel free :)

NixOS packages are just AppImages.
No, that is factually incorrect.

Btw we actually made a little bit of progress last friday. The current state (squashed, that's why the commit date is still the 16th march) can be viewed here: https://github.com/elseym/nixpkgs/commit/0666bc913fce8561ed3c6fd17afb4a7e7e9f5457 / https://github.com/elseym/code-server/tree/yarn2nix
We failed at the point where we node-gyp was used to build one of the binaries. We assume that either some stuff is missing in the Nix build environment or some prebuilt binary breaks as Nix doesn't have common FHS paths such as /usr.
We'll probably have some time for further investigation in some weeks unless somebody actually beats us :)

for those who come here like me and are wondering what the current state of nix integration is:
this has been implemented and merged to nixpkgs in June, see https://github.com/NixOS/nixpkgs/commit/9e3dd2279529128f5aec584874185b86eaff08aa#diff-00df174f3487aabf2cb861648bf866b91f6817c375c00ab635e8207c0b1ce8ed.

Thanks for sharing @tscholak

Hello all,
I know this maybe be a little off topic, since the Live Share is not really open source, but has anyone been able and provide steps to config Live Share with code-server in a docker solution?
Thanks


Add a title menu

Closes #59.

Seems like we have to modify the whole way we set up the variables (those from App.reset).

This is how the title menu looks now:

There's still a lot of work to do, however.

As we discussed on Discord, I've removed the options rectangle. And now the background mixes with the text :)

Now we only have to update the game guide :)

Ok... I think it's time to merge this PR. Thanks @HarshNarayanJha for proposing options and designs!

If anybody wants to propose new features to the title menu, please let me know! :)


updated host and port

due to the default to grpc, and the changes in the last 6 months to the lightstep public collectors, I've changed the default values here to reflect the closest "clone and play" values a user would need to use this app with LightStep.

Can we remove these config parameters entirely? That seems more forwards-compatible.


22-days submission I made

Status of the Questions:
✔ December 1 - William Butcher's Mission
✔ December 2 - The Secret Language
✔ December 3 - Minesweeper
✔ December 4 - Industry
✔ December 5 - Don’t let Mason misspend!
✔ December 6 - Swapped
✔ December 7 - Word Map
✔ December 8 - Aptitude Check!
✔ December 9 - Kochouseph Konundrum!
✔ December 10 - Play with words
✔ December 11 - Monkey jump
✔ December 12 - Shez in a Maze!
✔ December 13 - The Labyrinth
✔ December 14 - Math Mystery
✔ December 15 - The Murderers Meet
✔ December 16 - H2O Receptacle
✔ December 17 - Zig Zag Conversion
✔ December 18 - Find the way
✔ December 19 - Hidden Anagram
✔ December 20 - Code a Subsequence
✔ December 21 - The Devil Towers
✔ December 22 - The Markowitz Paradox
❌ December 23 - Meeting Rooms
❌ December 24 - Cracking The Safe
❌ December 25 - The Motorbike Race
❌ December 26 - Circulate
❌ December 27 - Mission to Earth: Re-Calibrated
❌ December 28 - The Journey to the Eternal Engine
❌ December 29 - Candies
❌ December 30 - Precise Portion
❌ December 31 - The Quad of Queens

@neha2127 Merge the PR

Hi Hope you're doing well.
Thank you for taking the time to solve the all the questions. We really appreciate your efforts. We will verify your submission and your certificate will be sent to you in your email. Thank you for participating. Keep an eye on our social media page for our upcoming events.
Can you please specify your college/institution name and your mail for the certificate.

Also kindly specify your full name for the certificates.

Thank you for organising such events.
Name-Dhruv Rawat
College: Maharaja Surajmal Institute of Technology, New Delhi
e-mail<EMAIL_ADDRESS>