OpenCL segmentation fault when tvm.build

Env.

My laptop (Not cross-compilation), Ubuntu 16.04 64bit
I set USE_OPENCL=1 in config.mk Note: my opencl device is Intel(R) HD Graphics IvyBridge M GT2
Target: x86_64-linux-gnu
clinfo cmd is okay as below:

Number of platforms                               1
  Platform Name                                   Intel Gen OCL Driver
  Platform Vendor                                 Intel
  Platform Version                                OpenCL 1.2 beignet 1.1.1
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_spir cl_khr_icd
  Platform Extensions function suffix             Intel

  Platform Name                                   Intel Gen OCL Driver
Number of devices                                 1
  Device Name                                     Intel(R) HD Graphics IvyBridge M GT2
  Device Vendor                                   Intel
  Device Vendor ID                                0x8086
  Device Version                                  OpenCL 1.2 beignet 1.1.1
  Driver Version                                  1.1.1
  Device OpenCL C Version                         OpenCL C 1.2 beignet 1.1.1
  Device Type                                     GPU
  Device Profile                                  FULL_PROFILE
  Max compute units                               16
  Max clock frequency                             1000MHz
  Device Partition                                (core)
    Max number of sub-devices                     1
    Supported partition types                     None, None, None
  Max work item dimensions                        3
  Max work item sizes                             512x512x512
  Max work group size                             512
  Preferred work group size multiple              16
  Preferred / native vector sizes
    char                                                16 / 8
    short                                                8 / 8
    int                                                  4 / 4
    long                                                 2 / 2
    half                                                 0 / 8        (n/a)
    float                                                4 / 4
    double                                               0 / 2        (n/a)
  Half-precision Floating-point support           (n/a)
  Single-precision Floating-point support         (core)
    Denormals                                     No
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 No
    Round to infinity                             No
    IEEE754-2008 fused multiply-add               No
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  No
  Double-precision Floating-point support         (n/a)
  Address bits                                    32, Little-Endian
  Global memory size<PHONE_NUMBER> (2GiB)
  Error Correction support                        No
  Max memory allocation<PHONE_NUMBER> (1024MiB)
  Unified memory for Host and Device              Yes
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       1024 bits (128 bytes)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        8192
  Global Memory cache line                        64 bytes
  Image support                                   Yes
    Max number of samplers per kernel             16
    Max size for 1D images from buffer            65536 pixels
    Max 1D or 2D image array size                 2048 images
    Max 2D image size                             8192x8192 pixels
    Max 3D image size                             8192x8192x2048 pixels
    Max number of read image args                 128
    Max number of write image args                8
  Local memory type                               Global
  Local memory size                               65536 (64KiB)
  Max constant buffer size                        134217728 (128MiB)
  Max number of constant args                     8
  Max size of kernel argument                     1024
  Queue properties
    Out-of-order execution                        No
    Profiling                                     Yes
  Prefer user sync for interop                    Yes
  Profiling timer resolution                      80ns
  Execution capabilities
    Run OpenCL kernels                            Yes
    Run native kernels                            Yes
    SPIR versions                                 <printDeviceInfo:138: get   SPIR versions size : error -30>
  printf() buffer size                            1048576 (1024KiB)
  Built-in kernels                                __cl_copy_region_align4;__cl_copy_region_align16;__cl_cpy_region_unalign_same_offset;__cl_copy_region_unalign_dst_offset;__cl_copy_region_unalign_src_offset;__cl_copy_buffer_rect;__cl_copy_image_1d_to_1d;__cl_copy_image_2d_to_2d;__cl_copy_image_3d_to_2d;__cl_copy_image
_2d_to_3d;__cl_copy_image_3d_to_3d;__cl_copy_image_2d_to_buffer;__cl_copy_image_3d_to_buffer;__cl_copy_buffer_to_image_2d;__cl_copy_buffer_to_image_3d;__cl_fill_region_unalign;__cl_fill_region_align2;__cl_fill_region_align4;__cl_fill_region_align8_2;__cl_fill_region_align8_4;__cl_fill_region_align8_8;__cl_fill_region_
align8_16;__cl_fill_region_align128;__cl_fill_image_1d;__cl_fill_image_1d_array;__cl_fill_image_2d;__cl_fill_image_2d_array;__cl_fill_image_3d;
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Device Extensions                               cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_spir cl_khr_icd

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  Intel Gen OCL Driver
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [Intel]
  clCreateContext(NULL, ...) [default]            Success [Intel]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
    Platform Name                                 Intel Gen OCL Driver
    Device Name                                   Intel(R) HD Graphics IvyBridge M GT2
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  Success (1)
    Platform Name                                 Intel Gen OCL Driver
    Device Name                                   Intel(R) HD Graphics IvyBridge M GT2

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.2.8
  ICD loader Profile                              OpenCL 1.2
        NOTE:   your OpenCL library declares to support OpenCL 1.2,
                but it seems to support up to OpenCL 2.1 too.

Code
import tvm
import numpy as np

debug = True
target = "llvm -target=x86_64-linux-gnu"

def test_add(n=1024):
    n = tvm.var("n")
    A = tvm.placeholder((n,), name="A")
    B = tvm.placeholder((n,), name="B")
    C = tvm.compute(A.shape, lambda i: A[i]+B[i], name="C")
    print(type(C))
    s = tvm.create_schedule(C.op)

    if debug:
        print(tvm.lower(s, [A, B, C], simple_mode=True))

    bx, tx = s[C].split(C.op.axis[0], factor=32)
    s[C].bind(bx, tvm.thread_axis("blockIdx.x"))
    s[C].bind(tx, tvm.thread_axis((0, n), "threadIdx.x"))
    print("bind success")

    if debug:
        print(tvm.lower(s, [A, B, C], simple_mode=True))

    add_func = tvm.build(s, [A, B, C], "opencl", name="myadd")
    print("build success")

    ctx = tvm.cl(0)
    a = tvm.nd.array(np.random.uniform(size=n).astype(A.dtype), ctx)
    b = tvm.nd.array(np.random.uniform(size=n).astype(B.dtype), ctx)
    c = tvm.nd.array(np.zeros(n, dtype=C.dtye), ctx)

    add_func(a, b, c)
    print("run success")
    np.testing.assert_allclose(c.asnumpy(), a.asnumpy() + b.asnumpy())
    print("check success")
    dev_module = add_func.imported_module[0]
    print("----- opencl code ------")
    print(dev_module.get_source())

test_add()

Error Log
$ python vecadd_opencl_local.py
<class 'tvm.tensor.Tensor'>
produce C {
  for (i, 0, n) {
    C[i] = (A[i] + B[i])
  }
}

bind success
produce C {
  // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = ((n + 31)/32)
  // attr [iter_var(threadIdx.x, Range(min=0, extent=n), threadIdx.x)] thread_extent = 32
  if (likely(((blockIdx.x*32) < (n - threadIdx.x)))) {
    C[((blockIdx.x*32) + threadIdx.x)] = (A[((blockIdx.x*32) + threadIdx.x)] + B[((blockIdx.x*32) + threadIdx.x)])
  }
}

Segmentation fault (core dumped)

Some friends said it's strange to use Intel(R) HD Graphics IvyBridge M GT2 as OpenCL device. So I changed ctx = tvm.cl(0) to ctx = tvm.cpu(0) and ctx = tvm.gpu(0). However, these situation got same errors as above.

please do more debugs, for example, use gdb to get back trace on where does the failure happens, also you can try print out the code of ocl and see if you can directly compile and run it on the local machine.

One quick thing to confirm is to check tvm.cl(0).exist

I found OpenCL of Intel(R) HD Graphics on my laptop is strange (not supported) :rofl: , OpenCL of Mali GPU on board is okay.
Strange Intel(R) HD Graphics
local run:
In [1]: import tvm

In [2]: cpu = tvm.cpu(0)

In [3]: cpu.exist
Out[3]: True

In [4]: gpu = tvm.gpu(0)

In [5]: gpu.exist
Out[5]: False

In [6]: cl = tvm.cl(0)

In [7]: cl.exist
Segmentation fault (core dumped)
yuens@Spark:~/Software/tvm/python$

Mali GPU is okay
Connection using RPC.
In [1]: import tvm

In [2]: from tvm.contrib import rpc, util

In [3]: server = rpc.Server(host='<IP_ADDRESS>', port=9090)

In [4]: remote = rpc.connect("<IP_ADDRESS>", 9090)

In [5]: cl = remote.cl(0)

In [6]: cl.device_id
Out[6]: 0

In [7]: cl.device_type
Out[7]: 132

In [8]: cl.warp_size
Out[8]: 1

In [9]: cl.max_threads_per_block
Out[9]: 256

In [10]: cl.exist
Out[10]: True

I installed on another x86_64-linux-gnu desktop machine (named cross-compile machine) occurs same error as my laptop (Ubuntu 16.04 64bit) : segmentation fault when executing f = tvm.build(s, [A, B, C], target="opencl", target_host='llvm', name="myadd").
I installed OpenCL on my laptop with commands below from here:
# Basic installation
sudo apt install ocl-icd-libopencl1
sudo apt install opencl-headers
sudo apt install clinfo

# Needed to link and compile
sudo apt install ocl-icd-opencl-dev

# For Intel GT core
sudo apt install beignet

Using above commands, I failed to intsalled OpenCL on cross-compile machine but successfully installed (use clinfo cmd. shows a lot of message) OpenCL by installation of Intel OpenCL SDK.
But I found some notes in OpenCL™ Drivers and Runtimes for Intel® Architecture as below:
Installation has two parts:

- Intel® SDK for OpenCL™ Applications Package
- Driver and library(runtime) packages

I only installed first one (Intel® SDK for OpenCL™ Applications Package) on cross-compile machine, because I found that the second one (Driver and library(runtime) packages) doesn't support for Ubuntu 16.04 (ONLY support Ubuntu12.04 and 14.04, My laptop and cross-compile machine are both 16.04). Thus, I'm not sure whether the issue is about lacking of Driver and library(runtime) packages or not fully support intel device or others?
Below is clinfo output on cross-compile machine:
Number of platforms                               2
  Platform Name                                   Intel Gen OCL Driver
  Platform Vendor                                 Intel
  Platform Version                                OpenCL 1.2 beignet 1.1.1
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_spir cl_khr_icd
  Platform Extensions function suffix             Intel
beignet-opencl-icd: no supported GPU found, this is probably the wrong opencl-icd package for this hardware
(If you have multiple ICDs installed and OpenCL works, you can ignore this message)

  Platform Name                                   Experimental OpenCL 2.1 CPU Only Platform
  Platform Vendor                                 Intel(R) Corporation
  Platform Version                                OpenCL 2.1 LINUX
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir cl_kh
r_fp64 cl_khr_image2d_from_buffer
  Platform Host timer resolution                  1ns
  Platform Extensions function suffix             INTEL

  Platform Name                                   Intel Gen OCL Driver
Number of devices                                 0

  Platform Name                                   Experimental OpenCL 2.1 CPU Only Platform
Number of devices                                 1
  Device Name                                     Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
  Device Vendor                                   Intel(R) Corporation
  Device Vendor ID                                0x8086
  Device Version                                  OpenCL 2.1 (Build 10)
  Driver Version                                  <IP_ADDRESS>
  Device OpenCL C Version                         OpenCL C 2.0
  Device Type                                     CPU
  Device Profile                                  FULL_PROFILE
  Max compute units                               4
  Max clock frequency                             3200MHz
  Device Partition                                (core)
    Max number of sub-devices                     4
    Supported partition types                     by counts, equally, by names (Intel)
  Max work item dimensions                        3
  Max work item sizes                             8192x8192x8192
  Max work group size                             8192
  Preferred work group size multiple              128
  Max sub-groups per work group                   1
  Preferred / native vector sizes
    char                                                 1 / 32
    short                                                1 / 16
    int                                                  1 / 8
    long                                                 1 / 4
    half                                                 0 / 0        (n/a)
    float                                                1 / 8
    double                                               1 / 4        (cl_khr_fp64)
  Half-precision Floating-point support           (n/a)
  Single-precision Floating-point support         (core)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 No
    Round to infinity                             No
    IEEE754-2008 fused multiply-add               No
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  No
  Double-precision Floating-point support         (cl_khr_fp64)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  No
  Address bits                                    64, Little-Endian
  Global memory size<PHONE_NUMBER> (3.77GiB)
  Error Correction support                        No
  Max memory allocation<PHONE_NUMBER> (965.2MiB)
  Unified memory for Host and Device              Yes
  Shared Virtual Memory (SVM) capabilities        (core)
    Coarse-grained buffer sharing                 Yes
    Fine-grained buffer sharing                   Yes
    Fine-grained system sharing                   Yes
    Atomics                                       Yes
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       1024 bits (128 bytes)
  Preferred alignment for atomics
    SVM                                           64 bytes
    Global                                        64 bytes
    Local                                         0 bytes
  Max size for global variable                    65536 (64KiB)
  Preferred total size of global vars             65536 (64KiB)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        262144
  Global Memory cache line                        64 bytes
  Image support                                   Yes
    Max number of samplers per kernel             480
    Max size for 1D images from buffer            63255104 pixels
    Max 1D or 2D image array size                 2048 images
    Base address alignment for 2D image buffers   64 bytes
    Pitch alignment for 2D image buffers          64 bytes
    Max 2D image size                             16384x16384 pixels
    Max 3D image size                             2048x2048x2048 pixels
    Max number of read image args                 480
    Max number of write image args                480
    Max number of read/write image args           480
  Max number of pipe args                         16
  Max active pipe reservations                    65535
  Max pipe packet size                            1024
  Local memory type                               Global
  Local memory size                               32768 (32KiB)
  Max constant buffer size                        131072 (128KiB)
  Max number of constant args                     480
  Max size of kernel argument                     3840 (3.75KiB)
  Queue properties (on host)
    Out-of-order execution                        Yes
    Profiling                                     Yes
    Local thread execution (Intel)                Yes
  Queue properties (on device)
    Out-of-order execution                        Yes
    Profiling                                     Yes
    Preferred size<PHONE_NUMBER> (4GiB)
    Max size<PHONE_NUMBER> (4GiB)
  Max queues on device<PHONE_NUMBER>
  Max events on device<PHONE_NUMBER>
  Prefer user sync for interop                    No
  Profiling timer resolution                      1ns
  Execution capabilities
    Run OpenCL kernels                            Yes
    Run native kernels                            Yes
    Sub-group independent forward progress        No
    IL version                                    SPIR-V_1.0
    SPIR versions                                 1.2
  printf() buffer size                            1048576 (1024KiB)
  Built-in kernels
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Device Extensions                               cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir cl_kh
r_fp64 cl_khr_image2d_from_buffer

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  No platform
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   No platform
  clCreateContext(NULL, ...) [default]            No platform
  clCreateContext(NULL, ...) [other]              Success [INTEL]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No platform
        NOTE:   your OpenCL library only supports OpenCL 2.0,
                but some installed platforms support OpenCL 2.1.
                Programs using 2.1 features may crash
                or behave unexepectedly

Code on Local Machine
import tvm
import numpy as np
from tvm.contrib import rpc, util

debug = True
#target = "llvm -target=x86_64-linux-gnu"
#target = "llvm -target=aarch64-linux-gnu -mcpu=cortex-a72 -mattr=+neon"
target = "llvm"

def test_add(n=256):
    n = tvm.convert(n)
    A = tvm.placeholder((n,), name="A")
    B = tvm.placeholder((n,), name="B")
    C = tvm.compute(A.shape, lambda i: A[i]+B[i], name="C")
    print(type(C))
    s = tvm.create_schedule(C.op)
    print("create success")

    print(tvm.lower(s, [A, B, C], simple_mode=True))

    print("prepare to bind")
    bx, tx = s[C].split(C.op.axis[0], factor=64)
    s[C].bind(bx, tvm.thread_axis("blockIdx.x"))
    s[C].bind(tx, tvm.thread_axis("threadIdx.x"))
    print("bind success")

    if debug:
        print(tvm.lower(s, [A, B, C], simple_mode=True))
    # build
    print("prepare to build")
    f = tvm.build(s, [A, B, C], target="opencl", target_host=target, name="myadd")
    print("build success")

    ctx = remote.cl(0)
    print("ctx.device_id:" + str(ctx.device_id))
    print("ctx.device_type:" + str(ctx.device_type))
    print("ctx.max_threads_per_block:" + str(ctx.max_threads_per_block))
    print("ctx.exist:" + str(ctx.exist))

    dev_module = f.imported_modules[0]
    print("----- opencl code ------")
    print(dev_module.get_source())

    lib_name = "mylib.o"
    temp = util.tempdir()
    path = temp.relpath(lib_name)
    print("local saving...")
    f.save(path)
    print("remote uploading...")
    remote.upload(path)
    print("remote loading...")
    f = remote.load_module(lib_name)
    print("load module success on remote")
    a = tvm.nd.array(np.random.uniform(size=n).astype(A.dtype), ctx)
    b = tvm.nd.array(np.random.uniform(size=n).astype(B.dtype), ctx)
    c = tvm.nd.array(np.zeros(n, dtype=C.dtye), ctx)

    # remote
    time_f = f.time_evaluator("peak", ctx, number=20)
    cost = time_f(a, b, c)

    print("run success")
    np.testing.assert_allclose(c.asnumpy(), a.asnumpy() + b.asnumpy())
    print("check success")
    print("----- opencl code ------")
    print(dev_module.get_source())

remote = rpc.connect("<IP_ADDRESS>", 9090)
test_add()

Logs
yuanshuai@cross-compile:~/code/tvm-mobile-opencl/bandwidth$ gdb python vecadd_opencl_remote.py                                                                                [31/66]
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python...(no debugging symbols found)...done.
"/home/yuanshuai/code/tvm-mobile-opencl/bandwidth/vecadd_opencl_remote.py" is not a core dump: File format not recognized
(gdb) run vecadd_opencl_remote.py
Starting program: /usr/bin/python vecadd_opencl_remote.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff3a2b700 (LWP 28707)]
[New Thread 0x7ffff122a700 (LWP 28708)]
[New Thread 0x7fffeea29700 (LWP 28709)]
<class 'tvm.tensor.Tensor'>
create success
produce C {
  for (i, 0, 256) {
    C[i] = (A[i] + B[i])
  }
}

prepare to bind
bind success
produce C {
  // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = 4
  // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 64
  C[((blockIdx.x*64) + threadIdx.x)] = (A[((blockIdx.x*64) + threadIdx.x)] + B[((blockIdx.x*64) + threadIdx.x)])
}

prepare to build

Thread 1 "python" received signal SIGSEGV, Segmentation fault.
0x00007fffe999fab1 in llvm::cl::AddLiteralOption(llvm::cl::Option&, llvm::StringRef) ()
   from /home/yuanshuai/.local/lib/python2.7/site-packages/tvm-0.1.0-py2.7-linux-x86_64.egg/tvm/libtvm.so
(gdb) bt
#0  0x00007fffe999fab1 in llvm::cl::AddLiteralOption(llvm::cl::Option&, llvm::StringRef) ()
   from /home/yuanshuai/.local/lib/python2.7/site-packages/tvm-0.1.0-py2.7-linux-x86_64.egg/tvm/libtvm.so
#1  0x00007fffe918beb1 in llvm::RegisterPassParser<llvm::MachineSchedRegistry>::NotifyAdd(llvm::StringRef, void* (*)(), llvm::StringRef) ()
   from /home/yuanshuai/.local/lib/python2.7/site-packages/tvm-0.1.0-py2.7-linux-x86_64.egg/tvm/libtvm.so
#2  0x00007fffe2335889 in ?? () from /usr/lib/x86_64-linux-gnu/libLLVM-3.6.so.1
#3  0x00007ffff7de76ba in call_init (l=<optimized out>, argc=argc@entry=2, argv=argv@entry=0x7fffffffe228, env=env@entry=0xa351e0) at dl-init.c:72
#4  0x00007ffff7de77cb in call_init (env=0xa351e0, argv=0x7fffffffe228, argc=2, l=<optimized out>) at dl-init.c:30
#5  _dl_init (main_map=main_map@entry=0xf61000, argc=2, argv=0x7fffffffe228, env=0xa351e0) at dl-init.c:120
#6  0x00007ffff7dec8e2 in dl_open_worker (a=a@entry=0x7fffffff9cd0) at dl-open.c:575
#7  0x00007ffff7de7564 in _dl_catch_error (objname=objname@entry=0x7fffffff9cc0, errstring=errstring@entry=0x7fffffff9cc8,
    mallocedp=mallocedp@entry=0x7fffffff9cbf, operate=operate@entry=0x7ffff7dec4d0 <dl_open_worker>, args=args@entry=0x7fffffff9cd0) at dl-error.c:187
#8  0x00007ffff7debda9 in _dl_open (file=0x7fffe6581188 "/usr/lib/x86_64-linux-gnu/beignet//libgbe.so", mode=-2147483647, caller_dlopen=0x7fffe6558d4f,
    nsid=-2, argc=<optimized out>, argv=<optimized out>, env=0xa351e0) at dl-open.c:660
#9  0x00007ffff75ecf09 in dlopen_doit (a=a@entry=0x7fffffff9f00) at dlopen.c:66
#10 0x00007ffff7de7564 in _dl_catch_error (objname=0x9a6e80, errstring=0x9a6e88, mallocedp=0x9a6e78, operate=0x7ffff75eceb0 <dlopen_doit>,
    args=0x7fffffff9f00) at dl-error.c:187
#11 0x00007ffff75ed571 in _dlerror_run (operate=operate@entry=0x7ffff75eceb0 <dlopen_doit>, args=args@entry=0x7fffffff9f00) at dlerror.c:163
#12 0x00007ffff75ecfa1 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87
#13 0x00007fffe6558d4f in ?? () from /usr/lib/x86_64-linux-gnu/beignet//libcl.so
#14 0x00007ffff7de76ba in call_init (l=<optimized out>, argc=argc@entry=2, argv=argv@entry=0x7fffffffe228, env=env@entry=0xa351e0) at dl-init.c:72
#15 0x00007ffff7de77cb in call_init (env=0xa351e0, argv=0x7fffffffe228, argc=2, l=<optimized out>) at dl-init.c:30
#16 _dl_init (main_map=main_map@entry=0xf605c0, argc=2, argv=0x7fffffffe228, env=0xa351e0) at dl-init.c:120
#17 0x00007ffff7dec8e2 in dl_open_worker (a=a@entry=0x7fffffffa250) at dl-open.c:575
#18 0x00007ffff7de7564 in _dl_catch_error (objname=objname@entry=0x7fffffffa240, errstring=errstring@entry=0x7fffffffa248,
    mallocedp=mallocedp@entry=0x7fffffffa23f, operate=operate@entry=0x7ffff7dec4d0 <dl_open_worker>, args=args@entry=0x7fffffffa250) at dl-error.c:187
#19 0x00007ffff7debda9 in _dl_open (file=0xf39bd0 "/usr/lib/x86_64-linux-gnu/beignet//libcl.so", mode=-2147483646, caller_dlopen=0x7fffe7750a27, nsid=-2,
    argc=<optimized out>, argv=<optimized out>, env=0xa351e0) at dl-open.c:660
#20 0x00007ffff75ecf09 in dlopen_doit (a=a@entry=0x7fffffffa480) at dlopen.c:66
#21 0x00007ffff7de7564 in _dl_catch_error (objname=0x9a6e80, errstring=0x9a6e88, mallocedp=0x9a6e78, operate=0x7ffff75eceb0 <dlopen_doit>,
    args=0x7fffffffa480) at dl-error.c:187
#22 0x00007ffff75ed571 in _dlerror_run (operate=operate@entry=0x7ffff75eceb0 <dlopen_doit>, args=args@entry=0x7fffffffa480) at dlerror.c:163
#23 0x00007ffff75ecfa1 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87
#24 0x00007fffe7750a27 in ?? () from /usr/lib/x86_64-linux-gnu/libOpenCL.so.1
#25 0x00007fffe7750db1 in ?? () from /usr/lib/x86_64-linux-gnu/libOpenCL.so.1
#26 0x00007fffe7750230 in clGetPlatformIDs () from /usr/lib/x86_64-linux-gnu/libOpenCL.so.1
#27 0x00007fffe86280fa in tvm::runtime::cl::GetPlatformIDs() ()
   from /home/yuanshuai/.local/lib/python2.7/site-packages/tvm-0.1.0-py2.7-linux-x86_64.egg/tvm/libtvm.so
#28 0x00007fffe862937c in tvm::runtime::cl::OpenCLWorkspace::Init() ()
   from /home/yuanshuai/.local/lib/python2.7/site-packages/tvm-0.1.0-py2.7-linux-x86_64.egg/tvm/libtvm.so
#29 0x00007fffe863d901 in tvm::runtime::OpenCLModuleNode::Init() ()
   from /home/yuanshuai/.local/lib/python2.7/site-packages/tvm-0.1.0-py2.7-linux-x86_64.egg/tvm/libtvm.so
---Type <return> to continue, or q <return> to quit---bt
_string<char, std::char_traits<char>, std::allocator<char> >, std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, tvm::runtime::FunctionInfo, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, tvm::runtime::FunctionInfo> > >) () from /home/yuanshuai/.local/lib/python2.7/site-packages/tvm-0.1.0-py2.7-linux-x86_64.egg/tvm/libtvm.so
#31 0x00007fffe8415f99 in tvm::codegen::BuildOpenCL(tvm::Array<tvm::LoweredFunc, void>) () from /home/yuanshuai/.local/lib/python2.7/site-packages/tvm-0.1.0-py2.7-linux-x86_64.egg/tvm/libtvm.so
#32 0x00007fffe84162ca in std::_Function_handler<void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*), tvm::codegen::{lambda(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)#1}>::_M_invoke () from /home/yuanshuai/.local/lib/python2.7/site-packages/tvm-0.1.0-py2.7-linux-x86_64.egg/tvm/libtvm.so
#33 0x00007fffe8423fa3 in tvm::codegen::Build(tvm::Array<tvm::LoweredFunc, void> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /home/yuanshuai/.local/lib/python2.7/site-packages/tvm-0.1.0-py2.7-linux-x86_64.egg/tvm/libtvm.so
#34 0x00007fffe83ded79 in std::_Function_handler<void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*), tvm::codegen::{lambda(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)#1}>::_M_invoke(std::_Any_data const&, tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) ()
   from /home/yuanshuai/.local/lib/python2.7/site-packages/tvm-0.1.0-py2.7-linux-x86_64.egg/tvm/libtvm.so
#35 0x00007fffe860909e in TVMFuncCall () from /home/yuanshuai/.local/lib/python2.7/site-packages/tvm-0.1.0-py2.7-linux-x86_64.egg/tvm/libtvm.so
#36 0x00007ffff6617e40 in ffi_call_unix64 () from /usr/lib/x86_64-linux-gnu/libffi.so.6
#37 0x00007ffff66178ab in ffi_call () from /usr/lib/x86_64-linux-gnu/libffi.so.6
#38 0x00007ffff68273df in _ctypes_callproc () from /usr/lib/python2.7/lib-dynload/_ctypes.x86_64-linux-gnu.so
#39 0x00007ffff682bd82 in ?? () from /usr/lib/python2.7/lib-dynload/_ctypes.x86_64-linux-gnu.so
#40 0x00000000004b0cb3 in PyObject_Call ()
#41 0x00000000004c9faf in PyEval_EvalFrameEx ()
#42 0x00000000004c2765 in PyEval_EvalCodeEx ()
#43 0x00000000004de6fe in ?? ()
#44 0x00000000004b0cb3 in PyObject_Call ()
#45 0x00000000004f492e in ?? ()
#46 0x00000000004b0cb3 in PyObject_Call ()
#47 0x0000000000553187 in ?? ()
#48 0x00000000004b0cb3 in PyObject_Call ()
#49 0x00000000004c6ad1 in PyEval_EvalFrameEx ()
#50 0x00000000004c2765 in PyEval_EvalCodeEx ()
#51 0x00000000004ca8d1 in PyEval_EvalFrameEx ()
#52 0x00000000004c9d8f in PyEval_EvalFrameEx ()
#53 0x00000000004c2765 in PyEval_EvalCodeEx ()
#54 0x00000000004ca099 in PyEval_EvalFrameEx ()
#55 0x00000000004c2765 in PyEval_EvalCodeEx ()
#56 0x00000000004ca099 in PyEval_EvalFrameEx ()
#57 0x00000000004c2765 in PyEval_EvalCodeEx ()
#58 0x00000000004c2509 in PyEval_EvalCode ()
#59 0x00000000004f1def in ?? ()
#60 0x00000000004ec652 in PyRun_FileExFlags ()
#61 0x00000000004eae31 in PyRun_SimpleFileExFlags ()
#62 0x000000000049e14a in Py_Main ()
#63 0x00007ffff7810830 in __libc_start_main (main=0x49dab0 <main>, argc=2, argv=0x7fffffffe228, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe218) at ../csu/libc-start.c:291
#64 0x000000000049d9d9 in _start ()


Cannot remove value of date type custom field

Description
Setting a blank value to a datetime custom field does not make it blank. For e.g if I have entered a value in a datetime custom field, but later want to delete it, then setting it to an empty value does not overwrite it. Instead the previous value is still there.
Possible Solution
Allow empty values in datetime.
Additional context

There was already a issue tracker ticket for this, so i'll close this as duplicate.


apiVersion missing from ClientConfig type

The ClientConfig interface for configuring the picosanity client is missing the apiVersion field, as documented in Sanity Changelog.
This makes Typescript not compiling if defining the configuration as:
const config: ClientConfig = {
  // ... Config Fields
}

Thanks, solved in #12 / v0.1.12


Fix Llama 3.1 generation

What does this PR do?

In the text-generation example, the pad token id is set to 0 by default for Llama models. This was introduced by a bad config for Decapoda-research models. However, this is not compatible with Llama 3.1 and newer.
Since the model from Decapoda-research is quite old now, this PR removes this and changes the logic to set the pad token id.
Fixes #1378 #1170.
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


Reservation flow - handle duplicate tenant names

This needs a UX discussion and a check-in with Sherman to see what responses from the API should be handled and what new functionality could be added to Reservations and Innkeeper approval.

For now see changes included along with https://github.com/bcgov/traction/pull/439
(might need more of a look in terms of reservation UX but I think we need that whole thing to get user/stakeholder feedback before making individual part changes)


Separate out stats calls from plotting

Ideally all the plotting functions should be accepting x & y points (& error bars), rather than calculating statistics internally.  This allows the plotting functions to be best practices in visualisation, regardless of your chosen statistical methods.

Example: https://github.com/OpenFreeEnergy/arsenic/blob/main/arsenic/plotting.py#L141-L144


IGS Incompatibility

Apologies if this is the wrong place to leave this. But when you try to render from a SGF gotten from IGS/PandaNet, you receive the error: "Failed to load SGF node: Error tokenizing: Unexpected end of property". It seems that the only issue is with the copyright section from the IGS/PandaNet SGF, as when I remove that line from the SGF, it renders.

This is a fine place to open the issue! Would you be willing to share an SGF that fails? I suspect I know what the issue is, but it would be good to be able to confirm I've fixed the real bug when I do it!

Alternatively - if you could just confirm that the issues comes from a block that looks something like:
CoPyright[
Copyright (c) PANDANET Inc. 2014
Permission to reproduce this game is given, provided proper credit is given.
No warrantee, implied or explicit, is understood.
Use of this game is an understanding and agreement of this notice.
]

I can take it from there!

Yes, that's the block!


Error on launching the application in IntelliJ in Windows

I am following this.
I cloned the repo, and configured in IntelliJ as per the instructions in first link.
On launching the application, I get error:
Error:Android Pre Dex: [main2] Android SDK is not specified
I am not targeting Android development. I am in Windows.
How to get rid of this error?

Any inputs here?

Will hopefully have time at the end of this week for this.
Usually there is no need to set up Android so you should be able to ignore the error regarding Android. Did you open the project and followed the "run->edit configuration" step?

Yes, I did.
On Mon, May 6, 2019, 7:06 PM Peter<EMAIL_ADDRESS>wrote:

Will hopefully have time at the end of this week for this.
Usually there is no need to set up Android so you should be able to ignore
the error regarding Android. Did you open the project and followed the
"run->edit configuration" step?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/graphhopper/graphhopper/issues/1604#issuecomment-489622704,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACMXFVWNAAXE6GGXADAZ7SDPUAX4BANCNFSM4HJURZKA
.

I had a similar problem (but not under Windows). In the maven panel on the right you can choose maven profiles:

Maybe try enabling the include-android checkbox and then disable it again. You might see this prompt:

After clicking 'Yes' the android module should be excluded from the build and no Android SDK should be needed. Alternatively you can right-click the android->app folder in Project view and choose Remove module.
You should also try Build->Rebuild Project, mvn clean (via console) and maybe right-clicking the android folder in Project view and choosing Mark directory as->excluded.
Does this help ?

I tried it, but didn't work. I didn't see 'Remove module' option though..


el-upload file raw

I want to get the file in the on-progress function, And then request the interface , But the format of the argument seems wrong , I've added headers: { "Content-Type": "multipart/form-data" } ,
but it show like this :

it should be like this :

how to change it correct

You cannot store an unserializable object in the store (vuex...) that is why you see {uid: 32094} only. the rest of the native File object will get stripped out.


Execute ./mill version failed

Hi,
I downloaded the latest version of mill and failed to execute the command of ·./mill version·. What's the reason? I can download these files manually.
Thank you!
# git clone https://github.com/com-lihaoyi/mill.git
正克隆到 'mill'...
remote: Enumerating objects: 27865, done.
remote: Counting objects: 100% (5400/5400), done.
remote: Compressing objects: 100% (1312/1312), done.
remote: Total 27865 (delta 3983), reused 5202 (delta 3855), pack-reused 22465
接收对象中: 100% (27865/27865), 6.11 MiB | 48.00 KiB/s, 完成.
处理 delta 中: 100% (14588/14588), 完成.
检查连接... 完成。

 # ./mill version
Downloading https://repo1.maven.org/maven2/org/scalaj/scalaj-http_2.13/2.4.2/scalaj-http_2.13-2.4.2.pom
Downloaded https://repo1.maven.org/maven2/org/scalaj/scalaj-http_2.13/2.4.2/scalaj-http_2.13-2.4.2.pom
Downloading https://repo1.maven.org/maven2/org/scalaj/scalaj-http_2.13/2.4.2/scalaj-http_2.13-2.4.2.pom.sha1
Downloaded https://repo1.maven.org/maven2/org/scalaj/scalaj-http_2.13/2.4.2/scalaj-http_2.13-2.4.2.pom.sha1
Failed to resolve ivy dependencies:Error downloading org.scalaj:scalaj-http_2.13:2.4.2
  not found: /root/.ivy2/local/org.scalaj/scalaj-http_2.13/2.4.2/ivys/ivy.xml
  download error: Caught java.net.ConnectException: 连接超时 (Connection timed out) (连接超时 (Connection timed out)) while downloading https://repo1.maven.org/maven2/org/scalaj/scalaj-http_2.13/2.4.2/scalaj-http_2.13-2.4.2.pom

# curl -L https://repo1.maven.org/maven2/org/scalaj/scalaj-http_2.13/2.4.2/scalaj-http_2.13-2.4.2.pom
<?xml version='1.0' encoding='UTF-8'?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.scalaj</groupId>
    <artifactId>scalaj-http_2.13</artifactId>
    <packaging>jar</packaging>

Do you have any environment variables or system properties set that might influence how Java (and/or coursier) establishes an internet connections? Different to those used by curl.

I have the default configuration  for both the curl  and Java. There is no additional operation. Would you give me some specific configuration for this?
Thank you.

I have no idea, why your curl can access the remote maven repository, but mill can't. You could try if coursier (the cli tool, https://get-coursier.io/) works. It uses the same local cache directory as mill. Once the dependency is downloaded, it is reused.
If you are just interested in the mill version, you can also use: mill --version.
Can you try with a different user? Maybe the fact your running mill as root is related.

Cannot reproduce. Please provide more info to re-open.


a question about topic's consumer manager

I have deleted my consumer group 'jack_group', but I can still see related information in my topic 'jack_test'.I want to know where the consumer group information is stored or how topic gets consumer group information.
1、 delete consumer group 'jack_group',

2、 the consumer group information is still in topic

I'm confused

there is a related pr https://github.com/apache/rocketmq/pull/2185

@maixiaohai thank you for you reply!


Suggestion: Enforce declaring method return types

Applicable ESLint rules:

@typescript-eslint/explicit-function-return-type -- applies to all functions
@typescript-eslint/explicit-module-boundary-types -- applies to only exported functions

Basically, consider a decorator helper like:
export function getStatusCodes(program: Program, entity: Type) {
  return program.stateMap(statusCodeKey).get(entity);
}

The inferred type is any because that's what stateMap returns, but really we know for this specific case it's string[] | undefined (or string[] when you have done an isStatusCode() check first.)
This requires consumers to look into our actual implementation code to determine the data types returned from decorator state methods, which is a bit time consuming and annoying. It also means that breaks could easily occur as we're not enforcing a public contract but relying on casting from any.
Consider the alternative:
export function getStatusCodes(program: Program, entity: Type): string[] {
  return program.stateMap(statusCodeKey).get(entity) ?? [];
}

Now a consumer knows exactly what they're going to get and they never have to worry about the undefined case.

I agree this has been annoying consuming the decorator helpers and I have been trying to update as I use them. I would be fine having the type enforced for exported functions.


Documentation?

Hi Rob,
could you add a small README? I don't really know where to start...
Thanks,
Rutger

Can this be closed? The Readme has at least basic documentation now.


React Native Switch component is not testable

Literally the 2nd test I write. This ecosystem is destroying my soul
The test
import React from 'react'
import Checkbox from '../Checkbox'
import { Switch } from 'react-native'
import renderer from 'react-test-renderer'

it('renders correctly', () => {
  const tree = renderer.create(
    <Switch value={true} />
).toJSON()
  expect(tree).toMatchSnapshot()
})

Results in a failed test
 FAIL  App/Components/__tests__/Checkbox-test.js
  ● renders correctly

    TypeError: Cannot read property 'toJSON' of undefined

      at ReactTestInstance.toJSON (node_modules/react-test-renderer/lib/ReactTestMount.js:108:14)
      at Object.<anonymous> (App/Components/__tests__/Checkbox-test.js:9:1)

With RN 0.38 we merged jest-react-native directly into react-native. Please report this issue on the rn bug tracker so the mock can be improved there.


typing errors on python 3.8

Hey there,
It seems that mri-nufft has some typing errors when running on python 3.8.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/swolf/miniconda3/envs/test/lib/python3.8/site-packages/mrinufft/__init__.py", line 9, in <module>
    from .operators import (
  File "/home/swolf/miniconda3/envs/test/lib/python3.8/site-packages/mrinufft/operators/__init__.py", line 7, in <module>
    from .base import (
  File "/home/swolf/miniconda3/envs/test/lib/python3.8/site-packages/mrinufft/operators/base.py", line 184, in <module>
    class FourierOperatorBase(ABC):
  File "/home/swolf/miniconda3/envs/test/lib/python3.8/site-packages/mrinufft/operators/base.py", line 192, in FourierOperatorBase
    interfaces: dict[str, tuple] = {}
TypeError: 'type' object is not subscriptable

This new grammar is officially supported since python 3.9, see this, so please consider setting the minimum required python version to 3.9.
or adding the following line to both operators/base.py and io/nsp.py files
from __future__ import annotations

It should fix the typing errors.

Good catch, it should be fixed on master now! We test MRI-NUFFT on 3.10 mostly. Note that 3.8 end-of-life is in October 2024 ^1, so I advise you to update your Python versions if possible.

@paquiteau found another file extras/smaps.py when I was trying to import trajectories

More fixes in dc709aa


Nstonehouse/de30375/attach saved searches

That's correct. The previous PR couldn't pass tests; now we've revisited the tests enough to move forward.

Except Error: 2 failed tests. Spoke too soon I guess.

Why the tests failed: By moving the "get the All search action" out of the "fetch the tabs search action", it meant that the tests of the latter didn't have the "All" search set. It worked as expected (no All tab), but the tests didn't change with it.


TextField broken after Flutter upgrade

I just upgraded flutter and I started having problems with TextField. Basically as soon as it gets focus (either by tap or with autofocus enable), it will kill the current page/route. There is a 2 second delay between the focus in the widget and the exit.
Here is my code, but it happens everywhere I use a TextField:
import 'dart:core';
import 'package:capture/utils/SizeConfig.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter_blue/flutter_blue.dart';
import 'package:back_button_interceptor/back_button_interceptor.dart';
import 'package:capture/utils/CustomColors.dart';
import '../utils/RadarUtils.dart';

const String AUTH_PASSWORD = "xxx";

class ParameterAuthentication extends StatefulWidget{

  ParameterAuthentication(){}

  @override
  State<StatefulWidget> createState() {
    return _ParameterAuthentication();
  }
}

class _ParameterAuthentication extends State<ParameterAuthentication>  with WidgetsBindingObserver {
  TextEditingController _writeController;
  var _c;

  _ParameterAuthentication(){
    _writeController = TextEditingController();
  }

  @override
  void initState() {
    super.initState();
    WidgetsBinding.instance.addObserver(this);
    BackButtonInterceptor.add(myInterceptor);
  }

  @override
  void dispose() {
    WidgetsBinding.instance.removeObserver(this);
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {

    return DefaultTabController(
      length: 3,
      child: WillPopScope(
          onWillPop: _onBackPressed,
          child: Scaffold (
              appBar: AppBar(
                title: Text('Authentication'),
              ),
              body:  Card(
                margin: EdgeInsets.fromLTRB(SizeConfig.safeBlockHorizontal*2, SizeConfig.safeBlockVertical*1, SizeConfig.safeBlockHorizontal*2, SizeConfig.safeBlockVertical*1),    //(10, 10, 10, 10), old
                elevation: 1,
                color: CustomColors.StartecCardGrey,
                child: _buildParameterAuthView(),
              )
          )
      ),
    );
  }

  /// Function That Triggers when you hit the back key
  bool myInterceptor(bool stopDefaultButtonEvent, RouteInfo routeInfo) {
    print("BACK BUTTON!"); // Do some stuff.
    _onBackPressed();
    //Navigator.pop(context); //Not needed here
    return false;
  }

  Future<bool> _onBackPressed() async {
    return Future.value(false);
  }

  /// Build the Parameters List
  ListView _buildParameterAuthView() {
    List<Container> containers = new List<Container>();
    var _c;

    //Add the title
    containers.add(
      Container(
        padding: EdgeInsets.fromLTRB(SizeConfig.safeBlockHorizontal*0, SizeConfig.safeBlockVertical*1, SizeConfig.safeBlockHorizontal*1, SizeConfig.safeBlockVertical*1),   //(0, 10, 5, 10), old
        child:
        Text("Password for Admin access", style:
          TextStyle(fontWeight: FontWeight.bold,
            color: CustomColors.StartecOrange,
            fontSize: SizeConfig.safeBlockHorizontal*5.5,   //25 old
          ),
          overflow: TextOverflow.fade,
          maxLines: 1,
          softWrap: false,
        ),
      ),
    );
    //Add separator
    containers.add(
      Container(
        height: SizeConfig.safeBlockVertical*0.1, //1.0, old
        width: MediaQuery.of(context).copyWith().size.width -25,  //130 old
        color:CustomColors.StartecSeparatorGrey,),
    );
    //Add margin
    containers.add(
      Container(
        padding: EdgeInsets.fromLTRB(SizeConfig.safeBlockHorizontal*1, SizeConfig.safeBlockVertical*2, SizeConfig.safeBlockHorizontal*1, SizeConfig.safeBlockVertical*3),   //(5, 10, 5, 15), old
        height: SizeConfig.safeBlockVertical*2, //10.0, old
        width: MediaQuery.of(context).copyWith().size.width -25,  //130 old
        color: CustomColors.StartecCardGrey,),
    );

    //Add TextField for password
    containers.add(
        Container(
          child:  TextField(
            controller: _writeController,
            autofocus: true,
          ),
        )
    );

    //Add Button
    containers.add(
        Container(
          child:  FlatButton(
            child: Text("Send", style: TextStyle(color: Colors.white),),
            color: CustomColors.StartecOrange,
            onPressed: () {
              if(_c.text == AUTH_PASSWORD)
                Navigator.pop(context, true);
              else
                Navigator.pop(context, false);
            },
          ),
        )
    );

    return ListView(
      padding: const EdgeInsets.all(8),
      children: <Widget>[
        ...containers,
      ],
    );
  }

}

This is the flutter version I use:
flutter --version
Flutter 1.22.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision<PHONE_NUMBER> (11 days ago) • 2020-12-10 11:54:40 -0800
Engine • revision ae90085a84
Tools • Dart 2.10.4

This is the output of flutter doctor:
flutter doctor -v
[✓] Flutter (Channel stable, 1.22.5, on Linux, locale en_US.UTF-8)
    • Flutter version 1.22.5 at /home/eddy/flutter
    • Framework revision<PHONE_NUMBER> (11 days ago), 2020-12-10 11:54:40 -0800
    • Engine revision ae90085a84
    • Dart version 2.10.4

[!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /home/eddy/Android/Sdk
    ✗ Flutter requires Android SDK 29 and the Android BuildTools 28.0.3
      To update the Android SDK visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions.
    • All Android licenses accepted.

[✓] Android Studio (version 4.0)
    • Android Studio at /home/eddy/android-studio
    • Flutter plugin version 46.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[!] VS Code (version 1.51.1)
    • VS Code at /usr/share/code
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
    • Pixel 4a (mobile) • 0B191JEC201443 • android-arm64 • Android 11 (API 30)

! Doctor found issues in 2 categories.

This is my pubspec.yaml:
name: capture
description: A new Flutter application.
version: 1.0.0+1

environment:
  sdk: ">=2.2.2 <3.0.0" #">=1.19.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  adobe_xd: ^0.1.3

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2
  flutter_blue: ^0.7.2
  synchronized: ^2.2.0
  progress_dialog: ^1.1.0+1
  future_progress_dialog: ^0.1.1
  back_button_interceptor: ^4.0.0
  flutter_range_slider: ^1.5.0

  vector_math: any

dev_dependencies:
  flutter_test:
    sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  assets:
    - assets/images/
    - assets/images/map.png

If anyone could help me I would really appreciate it since my App was almost ready for production. Thank you in advance!

Here is a preview of the bug:
https://user-images.githubusercontent.com/76440585/102791508-65b6a480-43a7-11eb-925e-fc2c6bac341a.mp4

Hi @ed4ed
Your code looks like production code, please isolate the code that reproduces the issue
Can you please provide flutter run --verbose logs, and a minimal complete reproducible code sample without using third-party packages
Thank you

Might this issue be related to mine?
https://github.com/flutter/flutter/issues/72698

Hi @TahaTesser,
I tired it starting a project starting from scratch but I can't reproduce it. As for the logs:
`flutter run --verbose
[  +92 ms] executing: [/home/eddy/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +29 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ]<PHONE_NUMBER>7c3a836feee883712c241a5fd22983
[        ] executing: [/home/eddy/flutter/] git tag --points-at HEAD
[  +11 ms] Exit code 0 from: git tag --points-at HEAD
[        ] 1.22.5
[   +6 ms] executing: [/home/eddy/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +10 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/home/eddy/flutter/] git ls-remote --get-url origin
[   +3 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +45 ms] executing: [/home/eddy/flutter/] git rev-parse --abbrev-ref HEAD
[   +8 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +48 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +15 ms] executing: /home/eddy/Android/Sdk/platform-tools/adb devices -l
[  +61 ms] List of devices attached
0B191JEC201443         unauthorized usb:1-14 transport_id:1
[   +3 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[  +83 ms] No supported devices connected.
[  +10 ms] "flutter run" took 188ms.
[  +25 ms]
#0      throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
#1      RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:353:7)

#2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:933:11)

#3      FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:836:33)

#4      FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart)
#5      AppContext.run. (package:flutter_tools/src/base/context.dart:150:29)
#6      _rootRun (dart:async/zone.dart:1190:13)
#7      _CustomZone.run (dart:async/zone.dart:1093:19)
#8      _runZoned (dart:async/zone.dart:1630:10)
#9      runZoned (dart:async/zone.dart:1550:10)
#10     AppContext.run (package:flutter_tools/src/base/context.dart:149:18)
#11     FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:825:20)
#12     CommandRunner.runCommand (package:args/command_runner.dart:197:27)
#13     FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:335:21)
#14     _rootRunUnary (dart:async/zone.dart:1198:47)
#15     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#16     _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#17     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#18     Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#19     Future._completeWithValue (dart:async/future_impl.dart:529:5)
#20     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
#21     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
#22     FlutterVersion.checkFlutterVersionFreshness (package:flutter_tools/src/version.dart)
#23     _rootRunUnary (dart:async/zone.dart:1198:47)
#24     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#25     _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#26     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#27     Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#28     Future._completeWithValue (dart:async/future_impl.dart:529:5)
#29     Future._asyncCompleteWithValue. (dart:async/future_impl.dart:567:7)
#30     _rootRun (dart:async/zone.dart:1190:13)
#31     _CustomZone.run (dart:async/zone.dart:1093:19)
#32     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#33     _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)
#34     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#35     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#36     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#37     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)
[   +6 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 1
`
Thank you

@TahaTesser  BTW, initially I wrote "TextView", but it was an error, it's the TextField widget that generates the problem.

cc @justinmc @LongCatIsLooong

@ed4ed Nothing really jumps out at me as a cause for this...  Maybe try removing the back_button_interceptor package as a guess?
Unfortunately there's not much we can do here.  If you really can't isolate the problem in your code, you could try bisecting the commit that caused this in Flutter (checking out old versions of Flutter until you find the commit that caused the problem).
If you are able to narrow down the problem let me know and I'll reopen and take a look.  Otherwise you could also try StackOverflow for help.


Improved conlist/set

Change Summary
Improved a bit upon conlist and constr. Added more ways to use the base classes while keeping mypy happy.
See the added tests for functionality that did not work before.
I also removed most calls to __origin__ and __args__ in favor of an official API.
So the tricky part will be in seeing if this works in every environment. The last time I tried to do something like this cython was nog happy...
Related issue number
Fixes #1309
Fixes or improves #975
The following should now be possible (using conlist does not work, I am not sure if that can be done without going to deep into typing magic)
from typing import Generic, TypeVar

from pydantic import ConstrainedList
from pydantic.generics import GenericModel

DataT = TypeVar('DataT')

class CList(ConstrainedList[DataT]):
    min_items = 1
    max_items = 10

class A(GenericModel, Generic[DataT]):
    f: CList[DataT]

a = A[int].parse_obj({'f': ['a']})
print(a)  # a=['a']

Checklist

[x] Unit tests for the changes exist
[ ] Tests pass on CI and coverage remains at 100%
[x] Documentation reflects the changes where applicable
[x] changes/<pull request or issue id>-<github username>.md file added describing change
(see changes/README.md for details)

Yeah so this cannot be merged because of https://github.com/cython/cython/issues/3537
I am not sure if there is a workaround for that.. Can we move conlist and conset to a different file and skip cython for that file?

Looks like this might be good, but it's currently breaking in a few places.
Perhaps it would be best to split it into two PRs - one for the get_args, get_origin methods, and one for the actual functional changes here?
Or maybe this is a non starter? If so please close.

@PrettyWood  already did that in https://github.com/samuelcolvin/pydantic/pull/1844 since that is pretty much whats needed to support 3.9
The other issue with this is thats its blocking on cython

okay great, closing this. I'll review #1844 when I get that far 😓

No this still leaves the improved typing for conlist after #1844 is merged. That part is blocking on a fix in cython

Okay, do this needs to be left open?
Is there an issue to track in cython?

Yes and yes: https://github.com/cython/cython/issues/3537

you might want to look at what's @tiangolo has done in #1848 it might be relevant to these changes?

closing this while trying to clean up PRs.
Feel free to create a new PR when you're ready.


Document using plugin from yaml

Hi indix,
Could you document how to use from yaml?
https://github.com/tomzo/gocd-yaml-config-plugin#plugin
Thank you.

For publishing to S3, the secret sauce is how the array of source and destinations needs to be represented - a string of JSON. So this example task works for me:
  tasks:
     - plugin:
         options:
             sourceDestinations: "[{source: 'dist/*', destination: ''}]"
             destinationPrefix: "/"
             artifactsBucket: "optional-bucket-name-to-override-env-variable"
         run_if: passed
         configuration:
             id: indix.s3publish
             version: 1


New health endpoint for prod and portal api

Looks good! Do I get right that you need url to be host:port/health for some deployment/healthcheck tools

Not necessary for the infrastructure, this is just exposing the healthcheck publicly for the production APIs - so that our uptime monitor can rech them.


Buried Treasures

selecting "Buried Treasure" on the structure list and then trying to find any is pointless because it tells you to zoom in even more when you already zoomed in as much as you can

[ I've removed the unproductive second paragraph ]

This still not fixed?

yes, still not fixed

i wonder when

You guys don't make me more inclined to fix it by your spam...


Training and Inference on different Problem Types

Is there a way to train and test on different problem types such as Vertex Cover?

Particularly for Vertex Cover problem, the answer is yes. However, it may not be a good idea to use it for supervised learning to solve the Vertex Cover problem. It might be better to use FGNN along with RL algorithms such as Q-learning or A3C, otherwise it would be not easy to enforce the prediction to be feasible.

How would I perform inferrence using fgnn on different problems? I see within the code you break the parts of the dataset into nodefeatures and edgefeatures, but I do not see where the structure of the graph would embedded within the training. Is that the KNN Table?

I also get this error when I run any of the files:
/Users/etashguha/anaconda3/envs/Research/bin/python /Users/etashguha/Documents/Factor-Graph-Neural-Network/train_syn_hop_factor.py
Traceback (most recent call last):
  File "/Users/etashguha/Documents/Factor-Graph-Neural-Network/train_syn_hop_factor.py", line 1, in <module>
    import lib
  File "/Users/etashguha/Documents/Factor-Graph-Neural-Network/lib/__init__.py", line 1, in <module>
    import lib.data
  File "/Users/etashguha/Documents/Factor-Graph-Neural-Network/lib/data/__init__.py", line 1, in <module>
    import lib.data.ldpc
  File "/Users/etashguha/Documents/Factor-Graph-Neural-Network/lib/data/ldpc.py", line 2, in <module>
    from .MNC import s2t, t2y, y2b, zb2x, init_seed
  File "/Users/etashguha/Documents/Factor-Graph-Neural-Network/lib/data/MNC/__init__.py", line 1, in <module>
    from .MNC import init_seed, s2t, t2y, y2b, zb2x
ModuleNotFoundError: No module named 'lib.data.MNC.MNC'

This is because the MNC module (which is a submodule) is not compiled. I will update the readme about this part as soon as possible.

I also get this error when I run any of the files:
/Users/etashguha/anaconda3/envs/Research/bin/python /Users/etashguha/Documents/Factor-Graph-Neural-Network/train_syn_hop_factor.py
Traceback (most recent call last):
  File "/Users/etashguha/Documents/Factor-Graph-Neural-Network/train_syn_hop_factor.py", line 1, in <module>
    import lib
  File "/Users/etashguha/Documents/Factor-Graph-Neural-Network/lib/__init__.py", line 1, in <module>
    import lib.data
  File "/Users/etashguha/Documents/Factor-Graph-Neural-Network/lib/data/__init__.py", line 1, in <module>
    import lib.data.ldpc
  File "/Users/etashguha/Documents/Factor-Graph-Neural-Network/lib/data/ldpc.py", line 2, in <module>
    from .MNC import s2t, t2y, y2b, zb2x, init_seed
  File "/Users/etashguha/Documents/Factor-Graph-Neural-Network/lib/data/MNC/__init__.py", line 1, in <module>
    from .MNC import init_seed, s2t, t2y, y2b, zb2x
ModuleNotFoundError: No module named 'lib.data.MNC.MNC'

I have updated the readme. After compiling the MNC module it should be ok to run the program in MacOS. However, for best practice I recommend you to build and run the program in Linux.


Crashes whenever working directory has a dot (".") in its name

When working in a directory with a dot in its name, every command fails, no new line is appended and I am forced to close the application. Even cd .. will crash so I had to navigate back to ~/ by right-clicking the dock icon.
It does this only when the actual working directory has a dot, not if cd into a subfolder...
Will crash in : ~/my.folder
Will not crash in: ~/my.folder/subfolder

Works fine for me. Could you check again with the latest master?


Add mnemonic support

Changelog
- description: |
    Added support for generating mnemonics and for deriving payment and stake keys from mnemonics.
  type:
  - feature

Context
Additional context for the PR goes here. If the PR fixes a particular issue please provide a link to the issue.
How to trust this PR
I would look at the tests. The hard-coded tests have been checked against existing wallets.
I have also tested that the derivation works by doing a prototype command in the cardano-cli.
Make sure you like the changes to the API. I have tried to keep them minimal.
Probably the most controversial bit are the instances I added, but they are not exposed. The reason I parametrised the index type is that for some types of keys that I haven't added yet (because I am waiting for a cardano-addresses release) the payment is not necessary, so I plan to set it to () in those.
Also make sure the documentation is good enough.
Checklist

[x] Commit sequence broadly makes sense and commits have useful messages
[x] New tests are added if needed and existing tests are updated. See Running tests for more details
[x] Self-reviewed the diff

This LGTM however I think it may be better as two different type classes so we can avoid using () and an associated type.

While I salute the effort to keep one interface that you did @palas, I agree with @Jimbo4350's suggestion here. I think it'll make the API clearer.
Also big kudos on the large amount of documentation written in the new code :clap:

@Jimbo4350 @carbolymer So we would need two functions right? Another option I considered was having an algebraic data type as a parameter with all the info. Let me know if you prefer that.

@Jimbo4350 @smelc So we would need two functions right? Another option I considered was having an algebraic data type as a parameter with all the info. Let me know if you prefer that.

@Jimbo4350 @smelc So we would need two functions right? Another option I considered was having an algebraic data type as a parameter with all the info. Let me know if you prefer that.

I think two separate classes is better here.


[Proposal] Add an indicator to the dialogue box to show that there is more text

Right now when the dialogue box shows text, there's no visual indicator to do anything to make the dialogue continue. Having some sort of icon to indicate that the user can click to move the dialogue forward would be helpful.

This can be added easily by user code, however I will might add a default one for v0.6.0

Implemented in commit: a626ca181a218e1a0254ed9b667537c29a066a97


Add a new Versionable concern

Add a new Versionable concern that can be used by the Phases, Sections, Questions and Annotations controllers. This concern should use the newly refactored template model's new_version method when the user actually updates, creates or destroys a phase, section, question or annotation.
Versioning should occur regardless of whether or not the template is a customization.
Also add tests!
related to #1340

closing issues that can't be tested in the UI


Excuse me, how to get <task_name>.npy

Excuse me, how to get <task_name>.npy

Hi, there are two steps:

Training word vectors using fasttext on the raw data following https://fasttext.cc/docs/en/unsupervised-tutorial.html.

$ ./fasttext skipgram -input data/fil9 -output result/fil9

Extracting the ngram embeddings from pre-trained models:

    model = load_model(f"./{task_name}.bin")
    ngram_file = open(f'./{task_name}.txt')
    ngram_emb_path = f'./{task_name}.npy'
    all_ngram_emb = []
    for ngram in ngram_file:
        ngram = ngram.strip()
        ngram_list = ngram.split(' ')
        # print(ngram_list)

        # idx = 0
        for idx, ngram_word in enumerate(ngram_list):
            ft_word_emb = model.get_word_vector(ngram_word)
            if idx ==0:
                ngram_emb = ft_word_emb
            else:
                ngram_emb += ft_word_emb
        ngram_emb = ngram_emb/(idx+1)

        all_ngram_emb.append(ngram_emb)
print("number of ngram emb = ", len(all_ngram_emb))
all_ngram_emb_numpy = np.array(all_ngram_emb)
np.save(ngram_emb_path, all_ngram_emb_numpy)

This process is fast and easy to follow. I will update the code scripts and those files soon.
Thanks!

ok, thank you!!

Hi,
The processing script and these files have been uploaded.
Please check them.
Closed this issue and feel free to open a new one if you have more questions.
Thanks!


New line handling

Would it be possible to handle new lines in translation ? It would be a great enhancement.
In v1.7.3, when I hit the "Enter" key on a translation field, it works as expected and I see the line break.
But when I switch to another translation and switch back to the previous one, the line break has disapeared. (No line break appears in the PO file).
This issue is also discussed on stackoverflow

Poedit does, of course, handle multiline strings (as you are fully aware from SO); the markup to use is \n (ditto). Why don't you the describe the actual problem, instead of pretending to be unaware of the current solution and faking confusion?
The real issue being that, yes, Poedit should insert \n automatically when you hit Enter. Improvements in this area are planned for 1.8.
By the way: Please use other support channels for questions, only use the tracker to report actual bugs — i.e. issues. And when you do, please report things well, such as actually describing the issue (instead of linking to some long discussion where the problem appears as a minor footnote) and using a descriptive meaningful title that has relation to the problem

I actually described the problem, that's the point of the main sentence in my ticket.
And I don't pretend anything : SO provides a workaround, chich is quite far of a real solution, as the main users of poedit are non-developer people and inserting \n is out of question for them.
Anyway, I'm glad that an improvement is planned for 1.8.

I actually described the problem, that's the point of the main sentence in my ticket.

The subject was complete nonsense and I had no clue what you're talking about at all until I read that entire SO thread. So there's that.

as the main users of poedit are non-developer people and inserting \n is out of question for them.

I love how you are so sure you know who the Poedit users are and what is or is not a problem for them. On one hand, you have a feeling that the current state is "out of question" for Poedit users. On the other hand, I have 15 years of hard evidence that it is not — apparently, non-developer translators are perfectly capable of realizing that \n in the source text needs to be translated that way in the translation.
So: yes, this will be better in 1.8. But please don't blow it out of proportion. It really is not the end of the world you make it sound like.


Update requirements.txt

Update evidently version to allow using Dashboards.

@SudKul Kindly note that I've changed the version of evidently to allow using Dashboards. This should allow the current code to work correctly.


[FEA] All scripts should support new pre-built spark binary naming pattern

Is your feature request related to a problem? Please describe.
Started from spark 3.3.0, spark started release its pre-built binary tar w/ naming as
spark-<version>-bin-hadoop2.tar
spark-<version>-bin-hadoop3.tar

instead of previously
spark-<version>-bin-hadoop2.7.tar
spark-<version>-bin-hadoop3.2.tar

So all of our scripts will need to support the new naming pattern.
Before we get this done, for now we temply rename the
spark-3.3.0-bin-hadoop3.tar to spark-3.3.0-bin-hadoop3.2.tar (include folder name inside the tar),
and upload it to internal artifactory store to unblock our tests

The naming change also affect our docker file and some pipeline definitions, we will need to do careful scan of all our repos

cc @YanxuanLiu to help take a look, thanks!

Do we need to be compatible with older versions?

Close this as change to github has been merged, and we have compatible support for existing CICD.
Lets deal w/ internal pipelines one by one in the future


Certificate handling

I find certificate handling a bit confusing at the moment, since I would expect it to work like for requests. That is the certs argument for APIClient should be either a path to a .pem file, or a tuple with the paths to cert and key files.
Also, here you want to use ```os.path.join``, because if self.certs doesn't end with /, then the generated path is wrong, but I was not sure about opening a PR just for that.

Going to fix the latter on 0.9.4, which will have your pull request as well (thanks)
The cert property currently makes things easier by assuming you have your certs in a folder so all you have to do is provide a directory instead.

I see. I tried it again but it seems to fail because my folder has crt, crs, key, and pem files in it. Also to point to the correct directory (../certs/) I need to pass certs, since BaseClient expects the path relative to the parent directory.
It's easy to work around (made a folder with just crt and key files, passed different path as certs), but I found it confusing.

I worked a possible solution in my fork. If you like it I can open a PR for it too.

You able to open a PR and I will have a look my side, thanks.

All working my side so have pushed 0.9.4 to master, thanks!

It might be worth explaining the certs vs. cert_files difference somewhere. I got confused with how the parameters are used (i.e. I was passing certs='certs/' instead of certs='parentdir/certs') and I was also confused with what type of certificate format is required (I was actually using .pem files, and not .key and .crt files).
Burned a good 20 minutes looking at the code to work this out. :)


Bump @babel dependencies

Coverage remained the same at 54.068% when pulling e08f59c75befe082e57228c84ffb10ef2488a267 on corinagum:babel-bump into 09536a5cf913dab0a5544442bd4577df8e490cd4 on Microsoft:master.

Looks like I need to fix a test. I'll get back to that later today.


buildAndDeploy: compositeBuildAndDeployer calls out to PostProcessBuild concurrently [ch209]

Hello @landism, @nicks,
Please review the following commits I made in branch maiamcc/concurrent-post-process:
bb43bd028e85146e6ca19fbb6eb67a06249394e7 (2018-09-14 14:15:17 -0400)
buildAndDeploy: compositeBuildAndDeployer calls out to PostProcessBuild concurrently [ch209]
Code review reminders, by giving a LGTM you attest that:

Commits are adequately tested
Code is easy to understand and conforms to style guides
Incomplete code is marked with TODOs
Code is suitably instrumented with logging and metrics

@nicks @landism this should be better?


Remove Inconsistent agParams from Column callbacks

Hoist P/R Checklist
Pull request authors: Review and check off the below. Items that do not apply can also be
checked off to indicate they have been considered. If unclear if a step is relevant, please leave
unchecked and note in comments.

[X] Caught up with develop branch as of last change.
[X] Added CHANGELOG entry, or determined not required.
[X] Reviewed for breaking changes, added breaking-change label + CHANGELOG if so.
[X] Updated doc comments / prop-types, or determined not required.
[X] Reviewed and tested on Mobile, or determined not required.
[X] Created Toolbox branch / PR, or determined not required.

If your change is still a WIP, please use the "Create draft pull request" option in the split
button below to indicate it is not ready yet for a final review.

Pull request reviewers: when merging this P/R, please consider using a squash commit to
collapse multiple intermediate commits into a single commit representing the overall feature
change. This helps keep the commit log clean and easy to scan across releases. PRs containing a
single commit should be rebased when possible.

This was reviewed by @haynesjm42 and @amcclain  in march.  We decided to wait for a future release to avoid adding to a release that already had a number of breaking changes.


TimerQueueProcessor stuck fix on large backlog on available timers

TimerQueueProcessor issues a query to DB for visibilityTime '>=' from
the readlevel.  This could result in reading same timer multiple times
and trips the processor in thinking it fired all available timers as the
number of tasks returned back to the caller would be less than batch
size.
Updated the logic to return an explicit flag back to the caller so it
can immediately callback again when there are more timers to fire.
fixes #461

Coverage decreased (-0.09%) to 66.479% when pulling a5b3492c37609ad6f897db0a31d98b1f6a4f743b on samarabbas:workflow-timeout-stuck-issue into c844eb7e2e27e55f069e7c8ba1202266a1d9404b on uber:master.

Coverage increased (+0.008%) to 66.296% when pulling 33f5ab09a9541e0a92bef373b3c86dcdd7b5140f on samarabbas:workflow-timeout-stuck-issue into<PHONE_NUMBER>c7acb32eae3129941094c4f130f252 on uber:master.

Changes Unknown when pulling eabcec6bb2d28d71928af2becff2fccb7d877a15 on samarabbas:workflow-timeout-stuck-issue into ** on uber:master**.


Allow the swagger-ui url to be customised further

Prerequisites

[X] I have written a descriptive issue title
[X] I have searched existing issues to ensure the feature has not already been requested

🚀 Feature Proposal
@fastify/swagger-ui provides the routePrefix option that allows you to modify the default route prefix of /documentation. For example: /api-docs. This allows some level of customisation.
However, when you browse to the routePrefix, the plugin is hardcoded to redirect you to /api-docs/static/index.html.
I would like the swagger ui to be served from /api-docs/ without that redirection.
Is there a specific reason or limitation with the swagger-ui that requires this redirection? There may be some subtle aspects on how swagger-ui expects to load its own static assets that make this hard than it sounds.
I don't have a specific proposal at this stage for how this behaviour would be enabled in the configuration - most likely a boolean flag to disable the redirect... although what that gets called is open to suggestion.
Motivation
My main motivation here is trying to keep our application's URls consistent and tidy.
We don't use index.html in the path for any of our routes - I'd prefer the swagger-ui follows what we have elsewhere.
Example
No response

Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.

Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.

I've made a pull request #144  that implements this feature. I'd be grateful to those in this thread to see what they think.


unicode problem.

i have get the unicode problem:
TypeError: normalize() argument 2 must be unicode, not str
and i have solved this problem as this:
in the data.py
-- coding: utf-8 --
from io import open
open(filename,encoding='utf-8')
in the train.py
add
from future import unicode_literals, print_function, division

Thanks.


Problem with nmake for makefile.win

I'm having debugging issues when using the nmake visual studio compiler tool to build the dependencies for the ORSOLVERS to work:
 makefile(336): fatal error U1000: syntax error: ')' missing in macro invocation \n stop

I've filtered through the entire script with the naked eyes and used notepad++ api to detect any missing braces, and the results came back with nothing, are you sure you guys tested building the source through Visual Studios API? I have a X64 windows 10 machine and have all the PATH files correctly configured

Hello Akeem,
Thank you for reaching out.
Did you clone the code from git or downloaded the archive? Which command
did you run before getting this error?
Regards
On Dec 20, 2016 16:56, "Akeem Spencer"<EMAIL_ADDRESS>wrote:
I'm having debugging issues when using the nmake visual studio compiler
tool to build the dependencies for the ORSOLVERS to work:
makefile(336): fatal error U1000: syntax error: ')' missing in macro
invocation \n stop
I've filtered through the entire script with the naked eyes and used
notepad++ api to detect any missing braces, and the results came back with
nothing, are you sure you guys tested building the source through Visual
Studios API? I have a X64 windows 10 machine and have all the PATH files
correctly configured
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/293, or mute the thread
https://github.com/notifications/unsubscribe-auth/ASwpfGB6_l5u5VC_6TkjP3V2KavblkaPks5rJ_qogaJpZM4LR_Xh
.

I downloaded the or-tools_VisualStudio2015-64bit_45.0.3919 as suggested by installing or-tools page  ran nmake Makefile on the Makefile after I unzipped and got that 1000 error.
Then I downloaded the Makefile.win source file from the makefiles directory and received the same error

Actually, you have to run :
$ make third_party
$ make install_python_modules
Then edit Makefile.local to point to the correct Python and Java
installation. For instance, on my system:
WINDOWS_JDK_DIR = c:\Program Files\Java\jdk1.7.0_51
WINDOWS_PYTHON_VERSION = 27
WINDOWS_PYTHON_PATH = C:\python27
And finally run :
$ make all
$ make test
I hope this helps.
Regards,
On Tue, Dec 20, 2016 at 6:21 PM, Akeem Spencer<EMAIL_ADDRESS>wrote:

I downloaded the or-tools_VisualStudio2015-64bit_45.0.3919
https://github.com/google/or-tools/releases/download/v5.0/or-tools_VisualStudio2015-64bit_v5.0.3919.zip
as suggested by installing or-tools page
https://developers.google.com/optimization/installing#installing-from-source-on-windows
ran nmake Makefile on the Makefile after I unzipped and got that 1000
error.
Then I downloaded the Makefile.win source file from the makefiles
directory and received the same error
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/293#issuecomment-268302997,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASwpfAHGSlwQ43Yd2_dHqHKLXv5tPELIks5rKA6zgaJpZM4LR_Xh
.

--
driss

Hello,
The thing is that there is no "make" executable provided with Windows but only nmake.

make.exe is available in the tools directory of or-tools:
https://github.com/google/or-tools/blob/master/tools/make.exe.
On Tue, Feb 14, 2017 at 9:14 PM, Masuzu<EMAIL_ADDRESS>wrote:

Hello,
The thing is that there is no "make" executable provided with Windows but
only nmake.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/293#issuecomment-279822244,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKjyUr4ptz-jz6zWbZP9kOrCOnPsb2Vrks5rcgsOgaJpZM4LR_Xh
.


move clusterimportpolicy sample to deploy

Signed-off-by: calvin<EMAIL_ADDRESS>/kind cleanup
move clusterimportpolicy examples to deploy directory.

/cc @Iceber


Cannot open Adobe Indesign

Hi, I have a problem here I am unable to open Adobe Indesign it gives an error saying broadcast is not a function.
Also if I do like this code below the app is launched
     app: {
       name: AdobeAppName.Photoshop,
       path: 'C:\\Program Files\\Adobe\\Adobe InDesign 2020\\InDesign.exe',
       adobeScriptsPath: 'C:\\Users\\d-Evil\\scripts'
     },
     host: 'localhost',
     port: 5000
   });

but there is an error saying cannot open the file open_app.jsx, Adobe Indesign may not support the file-format.

Hi I will check that.

You can check branch issues-2 and link it to your project. Ive added InDesign broadcast method so you can replace
app: {
       name: AdobeAppName.Photoshop, ---> AdobeAppName.InDesign
...

Im also getting this error on trial. I dont know is it because of the trial version. Do you know how to run any custom scripts with InDesign?

Thanks, I checked it. I did what you have done.
I checked running the open_app.jsx from window cmd it doesn't pop any error.
But in network panel the server listens on 5000. I guess it just false error.

Hi, I will check it again, just need time, Can't promise anything

Hi @papuruth ,Sorry I had no time and Im not sure if I can use InDesign now (trial). Which command did you use to run this open_app.jsx?

Hi @papuruth Ive added BridgeTalk but without adobe App so Im dont know if it works please check it on bridge-talk branch. Clone it then run tsc && npm pack then install it in your node app via npm i ...path_to/adobe-node-1.1.4.tgz
Please let me know if it works or help me with that due to my lack of time and Adobe licenses :D

Hi
the Adobe  Illustrator does not start
const app: AdobeApp = newAdobeApp({
    app: {
        name: AdobeAppName.Illustrator,
        path: '/Applications/Adobe Illustrator 2021/Adobe Illustrator.app',
        // path: '/Applications/Adobe Illustrator 2021/Adobe Illustrator.app',
        adobeScriptsPath: '/Applications/Adobe Illustrator 2021/Presets.localized/ko_KR/스크립트',
        // adobeScriptsPath: '/Applications/Adobe Photoshop CC 2019/Presets/Scripts'
    },
    host: 'localhost',
    port: 5000
});

I did
change the access/permissions settings to the directory set in the adobeScriptsPath

Hi @ shchoi82, It's been a while, I will have to look at the code but the problem is I don't have Adobe software (I have no plans to buy one). I think we would have to pair on that. Maybe try to add some logs, check if exec is executing etc


Build and test with CUDA 12.5.1

This PR updates the latest CUDA build/test version 12.2.2 to 12.5.1.
Contributes to https://github.com/rapidsai/build-planning/issues/73

/merge

Thank you both! 🙏


fill core/dram curr energy from delta instead of aggregated value

This PR changes filling up the missing core or dram energy from (processed) current value instead of aggregated value to avoid overflow issue.
Signed-off-by: Sunyanan Choochotkaew<EMAIL_ADDRESS>

thank you!

The PR #156 is related to this PR.


LoadingView.xib missing?

I'm using CocoaPods to integrate Spring, but the app crashes when calling view.showLoading( ):
"Could not load NIB in bundle...with name 'LoadingView'"
Could this be because LoadingView.xib is not included in the podspec? I'm new to CocoaPods, but the podspec has: "s.source_files = 'Spring/.swift' " -- should there also be: ",.xib" ?
Thanks

Yes you're right, we're working on a fix, in the mean time you can copy LoadingView.xib and loading.pdf from Image.xcassets into your project.

Oh looks like it wouldn't work until the resource files are actually inside the library, please stay tuned.

Thanks @jamztang - I will wait for the fix. And thanks for Spring!

Please try again :D

Working! Thank you very much @jamztang !

you are welcome :)


Add input for POETRY_HOME

Hi snok
I'm working on a project which caches the poetry installation to speed up our test runs. We recently updated from 1.1.4 to 1.1.6 but the new installation location is not ideal for caching as it would it would be caching the contents of the entire ~/.local directory when we would prefer to cache only the poetry installation
It would be great if the path value used for poetry home could be supplied as an input to the workflow action instead of the currently hard coded implementation here: https://github.com/snok/install-poetry/blob/4315377389fc195a3955c4eacf49b86ca8e73f0f/scripts/v1.2/main.sh#L42
I'll open a pull with a proposed implementation sometime tomorrow

A PR for this is very welcome 👏   Thanks @linkous8

Unfortunately, implementing this was not as straight forward as I thought it would be, the tests are all blowing up when run in my local repo: https://github.com/linkous8/install-poetry/actions/runs/994929613
Do you have any recommendations where I might be going wrong? If not, I can close out the PR to remove the needless clutter

Do they pass if you undo the changes? Or do they possibly fail because you're running the tests in a fork? 🙂
To give you some context: The reason I ended up setting the POETRY_HOME variable was because the Github action runners are inconsistent. If I remember correctly mac runners sometimes use ~/.local and sometime uses ~/Library/Application.
I can take a better look at it tomorrow if that doesn't help you 👍

Might be a good idea to comment out most of the tests when experimenting btw 🙂 I usually just keep one or two until I get it to work then comment the rest back in - otherwise it takes forever

In the final test run it looks like the condition isn't working
python3: can't open file 'default': [Errno 2] No such file or directory

Looks like it's just setting "default"

Right, I have a conditional to set the path variable but its not working correctly for some reason:
https://github.com/snok/install-poetry/pull/40/files#diff-61368e2b75f4523e4d83149b45fae042b666e423a7d6455784a0a3519351064eR37

@linkous8 why not make the default an empty string?
  poetry-home:
    description: "The Poetry installation path"
    required: false
    default: ""

if [ -z "$poetry_home" ]; then
  if [ "$os" == "Windows" ]; then
    path="C:/Users/runneradmin/AppData/Roaming/Python/Scripts/"
  else
    path="$HOME/.local/"
  fi
else
  path="$HOME/.local/"
  path="$poetry_home_path"
fi

That seems sensible 🙂
Would this make sense @miigotu
if [ -z "$poetry_home" ]; then
  if [ "$os" == "Windows" ]; then
    path="C:/Users/runneradmin/AppData/Roaming/Python/Scripts/"
  else
    path="$HOME/.local/"
  fi
else
  path="$poetry_home_path"
fi

Or does the second path="$HOME/.local/" have a purpose?

Opps that was a typo lol, editing that.

Opted for an alternative approach to caching, I no longer need support for this


URL paths are case sensitive when they were case insensitive in <3.0

Actual behavior (the bug)
When I bumped a javalin service from 2.7 to 3.4, the path matching is now case sensitive.
Expected behavior
I think urls (domain, paths, and query params keys) should be case insensitive to avoid confusion.
To Reproduce
Run a simple javalin service using 2.7.1
get("/alive", ctx -> { ctx.status(204);}
localhost:4567/alive = 204
localhost:4567/Alive = 204
Now update to 3.4.1
localhost:4567/alive = 204
localhost:4567/Alive = 404
Additional context
Add any other context about the bug here

I'll comment on why we made the change tomorrow @SmithKevin, you could have a

Ahh found it in history  https://github.com/tipsy/javalin/issues/321   What do you think about a config flag to turn off case sensitivity?

That's part of it, but a point was also raised about logging and analytics. Since most tools are case sensitive, having case insensitive urls would mess things up.
I think the correct thing to do would be to do a redirect in a before-handler. Ideally we would offer this as a plugin, not a config option.
Is this something you could work on?

I'm going to have a look at this now @SmithKevin.

@SmithKevin https://github.com/tipsy/javalin/pull/836 <-


Automate adding of lexers

Automate adding of lexers
Languages are getting day by day on piston and it is improving, like nim just got added to it. So we would automate this process of adding lexers to the cli, and if the the lexer for that language is not found then it would be set to TextLexer.
Would you like to implement this yourself?

[ ] I'd like to implement this feature myself
[x] Anyone can implement this feature

Closing this for now, as I can't think of any way to run code periodically on a pip package.


TextFormField getting disabled after taping multiple time out of the Textformfield

Steps to reproduce

click inside textformfield
now tap multiple time out side of textformfield in screen

now you will not able to again edit in textformfield it seems its disabled
Expected results
it should allow me to enter text in textform field
Actual results
its seems like disabled and not allow me to editing textformfield
Code sample
Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[Paste your output here]

got solution simply upgrade flutter to Flutter 3.22.3.

Closing this based on https://github.com/flutter/flutter/issues/151955#issuecomment-2236373033


Parse timestamps with arbitrary seconds fraction

Which issue does this PR close?

Closes https://github.com/apache/arrow-rs/issues/3859
Rationale for this change

Accidental breaking change in #3801
I have confirmed this has no impact on benchmarks
What changes are included in this PR?

Are there any user-facing changes?

Filed https://github.com/apache/arrow-rs/issues/3859 to track