[Bug]: Unable to run vllm docker container with 2 4090

Your current environment
Collecting environment information...

INFO 03-29 02:06:52 llm_engine.py:70] Initializing an LLM engine (v0.3.3) with config: model='/workspace/models/Qwen1.5-7B-Chat', tokenizer='/workspace/models/Qwen1.5-7B-Chat', tokenizer_mode=auto, revision=None, tokenizer_revision=None, trust_remote_code=True, dtype=torch.bfloat16, max_seq_len=8192, download_dir=None, load_format=auto, tensor_parallel_size=2, disable_custom_all_reduce=False, quantization=None, enforce_eager=True, kv_cache_dtype=auto, device_config=cuda, seed=0)
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
WARNING 03-29 02:06:52 llm_engine.py:181] The tokenizer's vocabulary size 151646 does not match the model's vocabulary size 151936. This might cause an error in decoding. Please change config.json to match the tokenizer's vocabulary size.
WARNING 03-29 02:06:54 utils.py:350] Using 'pin_memory=False' as WSL is detected. This may slow down the performance.
INFO 03-29 02:06:54 selector.py:15] Using FlashAttention backend.
(RayWorkerVllm pid=2078) WARNING 03-29 02:06:54 utils.py:350] Using 'pin_memory=False' as WSL is detected. This may slow down the performance.
(RayWorkerVllm pid=2078) INFO 03-29 02:06:55 selector.py:15] Using FlashAttention backend.
INFO 03-29 02:06:55 pynccl_utils.py:42] vLLM is using nccl==2.18.1
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/workspace/vllm/entrypoints/openai/api_server.py", line 156, in <module>
    engine = AsyncLLMEngine.from_engine_args(engine_args)
  File "/workspace/vllm/engine/async_llm_engine.py", line 344, in from_engine_args
    engine = cls(parallel_config.worker_use_ray,
  File "/workspace/vllm/engine/async_llm_engine.py", line 310, in __init__
    self.engine = self._init_engine(*args, **kwargs)
  File "/workspace/vllm/engine/async_llm_engine.py", line 415, in _init_engine
    return engine_class(*args, **kwargs)
  File "/workspace/vllm/engine/llm_engine.py", line 106, in __init__
    self.model_executor = executor_class(model_config, cache_config,
  File "/workspace/vllm/executor/ray_gpu_executor.py", line 62, in __init__
    self._init_workers_ray(placement_group)
  File "/workspace/vllm/executor/ray_gpu_executor.py", line 191, in _init_workers_ray
    self._run_workers("init_device")
  File "/workspace/vllm/executor/ray_gpu_executor.py", line 324, in _run_workers
    driver_worker_output = getattr(self.driver_worker,
  File "/workspace/vllm/worker/worker.py", line 100, in init_device
    init_distributed_environment(self.parallel_config, self.local_rank,
  File "/workspace/vllm/worker/worker.py", line 286, in init_distributed_environment
    pynccl_utils.init_process_group(
  File "/workspace/vllm/model_executor/parallel_utils/pynccl_utils.py", line 43, in init_process_group
    comm = NCCLCommunicator(init_method=init_method,
  File "/workspace/vllm/model_executor/parallel_utils/pynccl.py", line 237, in __init__
    assert result == 0
AssertionError
(RayWorkerVllm pid=2078) INFO 03-29 02:06:55 pynccl_utils.py:42] vLLM is using nccl==2.18.1
(RayWorkerVllm pid=2078) ERROR 03-29 02:06:55 ray_utils.py:44] Error executing method init_device. This might cause deadlock in distributed execution.
(RayWorkerVllm pid=2078) ERROR 03-29 02:06:55 ray_utils.py:44] Traceback (most recent call last):
(RayWorkerVllm pid=2078) ERROR 03-29 02:06:55 ray_utils.py:44]   File "/workspace/vllm/engine/ray_utils.py", line 37, in execute_method
(RayWorkerVllm pid=2078) ERROR 03-29 02:06:55 ray_utils.py:44]     return executor(*args, **kwargs)
(RayWorkerVllm pid=2078) ERROR 03-29 02:06:55 ray_utils.py:44]   File "/workspace/vllm/worker/worker.py", line 100, in init_device
(RayWorkerVllm pid=2078) ERROR 03-29 02:06:55 ray_utils.py:44]     init_distributed_environment(self.parallel_config, self.local_rank,
(RayWorkerVllm pid=2078) ERROR 03-29 02:06:55 ray_utils.py:44]   File "/workspace/vllm/worker/worker.py", line 286, in init_distributed_environment
(RayWorkerVllm pid=2078) ERROR 03-29 02:06:55 ray_utils.py:44]     pynccl_utils.init_process_group(
(RayWorkerVllm pid=2078) ERROR 03-29 02:06:55 ray_utils.py:44]   File "/workspace/vllm/model_executor/parallel_utils/pynccl_utils.py", line 43, in init_process_group
(RayWorkerVllm pid=2078) ERROR 03-29 02:06:55 ray_utils.py:44]     comm = NCCLCommunicator(init_method=init_method,
(RayWorkerVllm pid=2078) ERROR 03-29 02:06:55 ray_utils.py:44]   File "/workspace/vllm/model_executor/parallel_utils/pynccl.py", line 237, in __init__
(RayWorkerVllm pid=2078) ERROR 03-29 02:06:55 ray_utils.py:44]     assert result == 0
(RayWorkerVllm pid=2078) ERROR 03-29 02:06:55 ray_utils.py:44] AssertionError

Please use export NCCL_DEBUG=TRACE and then run again. It might be your nccl setup problem.

Please use export NCCL_DEBUG=TRACE and then run again. It might be your nccl setup problem.

the same error with 'export NCCL_DEBUG=TRACE'. should I add nccl setup into the Dockerfile?

Sorry, this is bug of WSL2. after migrate to Ubuntu, all is OK! Thank you for such a powerful inference engine!

wjw-gpu:121572:121572 [0] NCCL INFO NET/Plugin : Plugin load (libnccl-net.so) returned 2 : libnccl-net.so: cannot open shared object file: No such file or directory wjw-gpu:121572:121572 [0] NCCL INFO NET/Plugin : No plugin found, using internal implementation
wjw-gpu:121572:121572 [0] misc/cudawrap.cc:179 NCCL WARN Failed to find CUDA library libcuda.so (NCCL_CUDA_PATH='') : libcuda.so: cannot open shared object file: No such file or directory NCCL version 2.18.1+cuda12.1 wjw-gpu:121572:123489 [0] NCCL INFO Failed to open libibverbs.so[.1] wjw-gpu:121572:123489 [0] NCCL INFO NET/Socket : Using [0]eth0:<IP_ADDRESS><0> wjw-gpu:121572:123489 [0] NCCL INFO Using network Socket wjw-gpu:121572:123489 [0] NCCL INFO Channel 00/02 : 0 1 wjw-gpu:121572:123489 [0] NCCL INFO Channel 01/02 : 0 1 wjw-gpu:121572:123489 [0] NCCL INFO Trees [0] 1/-1/-1->0->-1 [1] 1/-1/-1->0->-1 wjw-gpu:121572:123489 [0] NCCL INFO P2P Chunksize set to 131072 wjw-gpu:121572:123489 [0] NCCL INFO Channel 00 : 0[1000] -> 1[5000] via SHM/direct/direct wjw-gpu:121572:123489 [0] NCCL INFO Channel 01 : 0[1000] -> 1[5000] via SHM/direct/direct wjw-gpu:121572:123489 [0] NCCL INFO Connected all rings wjw-gpu:121572:123489 [0] NCCL INFO Connected all trees wjw-gpu:121572:123489 [0] NCCL INFO threadThresholds 8/8/64 | 16/8/64 | 512 | 512 wjw-gpu:121572:123489 [0] NCCL INFO 2 coll channels, 0 nvls channels, 2 p2p channels, 2 p2p channels per pee

@youkaichao

@kir1to00
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO comm 0x5bb76df8fd30 rank 1 nranks 2 cudaDev 1 nvmlDev 1 busId 4000 commId 0x7707b4a69bf78acd - Init START
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO P2P is disabled between connected GPUs 1 and 0. You can repress this message with NCCL_IGNORE_DISABLED_P2P=1.
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO P2P is disabled between connected GPUs 1 and 0. You can repress this message with NCCL_IGNORE_DISABLED_P2P=1.
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO P2P is disabled between connected GPUs 0 and 1. You can repress this message with NCCL_IGNORE_DISABLED_P2P=1.
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO P2P is disabled between connected GPUs 0 and 1. You can repress this message with NCCL_IGNORE_DISABLED_P2P=1.
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO P2P is disabled between connected GPUs 1 and 0. You can repress this message with NCCL_IGNORE_DISABLED_P2P=1.
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO P2P is disabled between connected GPUs 1 and 0. You can repress this message with NCCL_IGNORE_DISABLED_P2P=1.
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO P2P is disabled between connected GPUs 0 and 1. You can repress this message with NCCL_IGNORE_DISABLED_P2P=1.
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO P2P is disabled between connected GPUs 0 and 1. You can repress this message with NCCL_IGNORE_DISABLED_P2P=1.
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO Trees [0] -1/-1/-1->1->0 [1] -1/-1/-1->1->0
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO P2P Chunksize set to 131072
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO P2P is disabled between connected GPUs 1 and 0. You can repress this message with NCCL_IGNORE_DISABLED_P2P=1.
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO P2P is disabled between connected GPUs 1 and 0. You can repress this message with NCCL_IGNORE_DISABLED_P2P=1.
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO P2P is disabled between connected GPUs 1 and 0. You can repress this message with NCCL_IGNORE_DISABLED_P2P=1.
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO Channel 00 : 1[1] -> 0[0] via SHM/direct/direct
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO P2P is disabled between connected GPUs 1 and 0. You can repress this message with NCCL_IGNORE_DISABLED_P2P=1.
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO Channel 01 : 1[1] -> 0[0] via SHM/direct/direct
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO Connected all rings
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO Connected all trees
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO threadThresholds 8/8/64 | 16/8/64 | 512 | 512
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO 2 coll channels, 0 nvls channels, 2 p2p channels, 2 p2p channels per peer
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7317 [1] NCCL INFO comm 0x5bb76df8fd30 rank 1 nranks 2 cudaDev 1 nvmlDev 1 busId 4000 commId 0x7707b4a69bf78acd - Init COMPLETE
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7377 [1] NCCL INFO Using non-device net plugin version 0
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7377 [1] NCCL INFO Using network Socket
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7377 [1] NCCL INFO bootstrapSplit: rank 1 nranks 2 color<PHONE_NUMBER> key 1 prev 0 next 0 - DONE
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7377 [1] NCCL INFO comm 0x5bb77cdfcc90 rank 1 nranks 2 cudaDev 1 nvmlDev 1 busId 4000 commId 0x4ef66d3f7f30c00a - Init START
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7377 [1] NCCL INFO P2P is disabled between connected GPUs 1 and 0. You can repress this message with NCCL_IGNORE_DISABLED_P2P=1.
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7377 [1] NCCL INFO P2P is disabled between connected GPUs 1 and 0. You can repress this message with NCCL_IGNORE_DISABLED_P2P=1.
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7377 [1] NCCL INFO P2P is disabled between connected GPUs 0 and 1. You can repress this message with NCCL_IGNORE_DISABLED_P2P=1.
(RayWorkerWrapper pid=7178) c6dc028e7d4d:7178:7377 [1] NCCL INFO P2P is disabled between connected GPUs 0 a
c6dc028e7d4d:5039:7382 [0] NCCL INFO P2P is disabled between connected GPUs 0 and 1. You can repress this message with NCCL_IGNORE_DISABLED_P2P=1.
c6dc028e7d4d:5039:7382 [0] NCCL INFO P2P is disabled between connected GPUs 0 and 1. You can repress this message with NCCL_IGNORE_DISABLED_P2P=1.
INFO 07-30 07:25:51 ray_gpu_executor.py:217] # GPU blocks: 32957, # CPU blocks: 74898
(RayWorkerWrapper pid=7178) INFO 07-30 07:26:23 model_runner.py:976] Capturing the model for CUDA graphs. This may lead to unexpected consequences if the model is not static. To run the model in eager mode, set 'enforce_eager=True' or use '--enforce-eager' in the CLI.
(RayWorkerWrapper pid=7178) INFO 07-30 07:26:25 model_runner.py:980] CUDA graphs can take additional 1~3 GiB memory per GPU. If you are running out of memory, consider decreasing gpu_memory_utilization or enforcing eager mode. You can also reduce the max_num_seqs as needed to decrease memory usage.
(raylet) [2024-07-30 07:26:57,405 E 5213 5213] (raylet) node_manager.cc:3002: 2 Workers (tasks / actors) killed due to memory pressure (OOM), 0 Workers crashed due to other reasons at node (ID: 045e58eee2239f545e090ebbd2114e0568444dc81a6fda57e2c0d191, IP: <IP_ADDRESS>) over the last time period. To see more information about the Workers killed on this node, use ray logs raylet.out -ip <IP_ADDRESS>
(raylet)
(raylet) Refer to the documentation on how to address the out of memory issue: https://docs.ray.io/en/latest/ray-core/scheduling/ray-oom-prevention.html. Consider provisioning more memory on this node or reducing task parallelism by requesting more CPUs per task. To adjust the kill threshold, set the environment variable RAY_memory_usage_threshold when starting Ray. To disable worker killing, set the environment variable RAY_memory_monitor_refresh_ms to zero.
INFO 07-30 07:26:58 model_runner.py:976] Capturing the model for CUDA graphs. This may lead to unexpected consequences if the model is not static. To run the model in eager mode, set 'enforce_eager=True' or use '--enforce-eager' in the CLI.
INFO 07-30 07:27:01 model_runner.py:980] CUDA graphs can take additional 1~3 GiB memory per GPU. If you are running out of memory, consider decreasing gpu_memory_utilization or enforcing eager mode. You can also reduce the max_num_seqs as needed to decrease memory usage.
./vllm-sever-nv: line 12:  5039 Killed                  python3 -m vllm.entrypoints.openai.api_server --model ${model_path} --swap-space 16 --disable-log-requests --gpu-memory-utilization 0.7 --trust-remote-code -tp $2


Warnings popup when running 3rd party applicaiton locally

We have added our own application as 3rd party application instance and it is currently running without any warning. We can successfully open the tab in agent workspace and access to the page that our application redirects to.
However, when we run it locally and also add it as another 3rd party application, when we open the application in agent workspace or open the url in local browser, there is always some warnings related to Amazon Connect node_module. The warnings (warnings.txt) and the main part of our code is also attached (TsaOpener.txt). Just want to know if it is something we can ignore, or there is indeed something that we need to change? The
Contact Center Instance ARN: arn:aws:connect:ap-southeast-2:975050157807:instance/8eebd28b-8b67-4c0a-b2cb-a8b6779ec1a2
Please select the Integration: Other

It sounds like you're using the Amazon Connect SDK... is that right? If so, please open up an issue with that repo.
https://docs.aws.amazon.com/agentworkspace/latest/devguide/what-is-service.html
https://github.com/amazon-connect/AmazonConnectSDK

Sounds like this is for an issue with the Connect Agent Workspace. You can open a support ticket  and we can route it to the Agent Workspace team.


⚠ SceneTime has degraded performance

In 2f8426b, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 1461 ms

Resolved: SceneTime performance has improved in f1bac11 after 9 minutes.


Add String.Inflectmethod

It would be nice to have access to the inflect method directly so you can easily conditionally pluralize words.
Example:
var message = "One " + "user".inflect(users.count) + " selected.";

Maybe there is an existing way to do this that I missed?

How do you want to implement languages?

Consider https://github.com/sindresorhus/gulp-rev

I think that's a great idea. Is inflect the best method name here? Do you have an idea about what is standard?
@krnlde The Sugar inflect package is already English-only so this isn't new functionality but exposing what already exists. For locales a proper i18n library should be used instead.

Ok, I've added this feature. By far the easiest implementation (and I think the most straightforward naming) is simply to allow a numeric parameter on the pluralize method allowing for conditional pluralization, which was also quite easy.
Note that this method will not output the number itself in any way to allow for maximum flexibility (Imagine someone wanting to display the number in roman numerals or something nuts like that).


There was an error in xcode9 B6

/Users/a/Downloads/Diurna-master/Diurna/Main.storyboard:1: NSSplitViewController's 'view' outlet should not point to its NSSplitView, use the 'splitView' outlet instead.

As you probably could tell, this project was not very actively developed :)
I've just begun to work on it again, and fixed this particular problem among others.
Thanks for the pointer !


Can't import external TS file after upgrading to 4

Version
4.1.1
Reproduction link
https://github.com/lsotoangeldonis/vue-cli-4-ts-import-bug/tree/master
Environment info
System:
    OS: Linux 4.4 Ubuntu 18.04.1 LTS (Bionic Beaver)
    CPU: (8) x64 Intel(R) Core(TM) i5-8300H CPU @ 2.30GHz
  Binaries:
    Node: 10.13.0 - ~/n/bin/node
    Yarn: Not Found
    npm: 6.12.0 - ~/n/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: Not Found
  npmPackages:
    @vue/babel-helper-vue-jsx-merge-props:  1.0.0
    @vue/babel-plugin-transform-vue-jsx:  1.1.2
    @vue/babel-preset-app:  4.1.1
    @vue/babel-preset-jsx:  1.1.2
    @vue/babel-sugar-functional-vue:  1.1.2
    @vue/babel-sugar-inject-h:  1.1.2
    @vue/babel-sugar-v-model:  1.1.2
    @vue/babel-sugar-v-on:  1.1.2
    @vue/cli-overlay:  4.1.1
    @vue/cli-plugin-babel: ^4.1.1 => 4.1.1
    @vue/cli-plugin-eslint: ^4.1.1 => 4.1.1
    @vue/cli-plugin-pwa: ^4.1.1 => 4.1.1
    @vue/cli-plugin-router:  4.1.1
    @vue/cli-plugin-typescript: ^4.1.1 => 4.1.1
    @vue/cli-plugin-vuex:  4.1.1
    @vue/cli-service: ^4.1.1 => 4.1.1
    @vue/cli-shared-utils:  4.1.1
    @vue/component-compiler-utils:  3.0.2
    @vue/eslint-config-airbnb: ^4.0.1 => 4.0.1
    @vue/eslint-config-typescript: ^4.0.0 => 4.0.0
    @vue/preload-webpack-plugin:  1.1.1
    @vue/web-component-wrapper:  1.2.0
    bootstrap-vue: ^2.1.0 => 2.1.0
    eslint-plugin-vue: ^5.2.3 => 5.2.3
    portal-vue:  2.1.6
    typescript: ^3.5.3 => 3.5.3
    vue: ^2.6.10 => 2.6.10
    vue-affix: ^0.5.2 => 0.5.2
    vue-analytics:  5.17.0
    vue-authenticate: ^1.4.1 => 1.4.1
    vue-axios: ^2.1.4 => 2.1.4
    vue-carousel: ^0.18.0 => 0.18.0
    vue-class-component: ^7.1.0 => 7.1.0
    vue-content-placeholders: ^0.2.1 => 0.2.1
    vue-eslint-parser:  undefined (5.0.0)
    vue-fb-customer-chat: ^0.1.4 => 0.1.4
    vue-functional-data-merge:  3.1.0
    vue-hot-reload-api:  2.3.4
    vue-js-popover: ^1.1.8 => 1.1.8
    vue-loader:  15.7.2
    vue-loading-overlay: ^3.2.0 => 3.2.0
    vue-masonry: ^0.11.7 => 0.11.7
    vue-moment: ^4.0.0 => 4.0.0
    vue-progressive-image: ^3.2.0 => 3.2.0
    vue-property-decorator: ^8.2.1 => 8.2.1
    vue-router: ^3.0.7 => 3.0.7
    vue-search-select: ^2.8.3 => 2.8.3
    vue-search-select-css: ^1.0.33 => 1.0.33
    vue-style-loader:  4.1.2
    vue-tel-input: ^2.4.1 => 2.4.1
    vue-template-compiler: ^2.5.21 => 2.6.10
    vue-template-es2015-compiler:  1.9.1
    vuex: ^3.1.1 => 3.1.1
    vuex-module-decorators: ^0.9.9 => 0.9.9
    vuex-persistedstate: ^2.5.4 => 2.5.4
  npmGlobalPackages:
    @vue/cli: 4.1.1

Steps to reproduce
npm install -g @vue/cli
vue upgrade
What is expected?
Normal import of .ts files inside .vue files using
//

Ok, so i figured this out, If helps someone, be sure of always include the extension when importing subcomponents (nested components) from another component like such:

notice the ".vue" extension.
Was missing before and break everything, don't know why this was working before update tho.

It's because of this change
https://github.com/vuejs/vue-cli/pull/3909
We should have better documented it to mention that .ts(x) also take precedence over .vue .

I honestly think this is quite a bad change for TS users, especially since not evident from the migration docs. Our whole codebase is importing Vue files without extensions  in the import path, and after the update it broke.
Maybe not many people noticed because TS doesn't seem too popular with Vue - and considering how difficult it is to make it work correctly, it's no wonder it's not popular!
If anyone reads this and wonders how to fix the issue without editing hundreds of files, this does the trick:
// vue.config.js
module.exports = {
  chainWebpack: config => {
    config.resolve.extensions
      .clear()
      .add('.vue')
      .add('.tsx')
      .add('.ts')
      .add('.mjs')
      .add('.js')
      .add('.jsx')
      .add('.json')
      .add('.wasm');
}

It basically regenerates the extension list, but it puts vue as first value.
It could be just calling .prepend('vue') solves it, but I'd rather not have dupe values in the result.
The downside of this is, if in an update a new supported extension gets added, then this piece of code will remove it unless also updated.

@LolliDepp thank you for that! you saved us.
we were getting Failed to mount component: template or render function not defined after the upgrade to @vue/cli 4
we have a mix of Single File Components (SFC) (.vue) and multi-file components (template in .vue with script and style tags pointing to external .ts and .scss files (that's our way of getting better TypeScript support with better performance (Vetur becomes slower as the day progresses)

Closing the issue because related PR was merged


Convert yosys scripts to TCL.

Per suggestion in #321

This broke the build on Travis. Should we get it green and then turn it back to not allow merge if it fails on Travis?

Was travis green prior to the PR?

Yes. And you can confirm https://travis-ci.org/SymbiFlow/symbiflow-arch-defs/builds


Discuss and document prototype and code generation process

Update:
I am closing this issue for the following reasons:

The MB Search Branch is no longer in the route path.
The MB alpha branch is no longer in the route path.


Vulnerability roundup 112: haproxy-2.3.14: 1 advisory [7.5]

search, files

[ ] CVE-2022-0711 CVSSv3=7.5 (nixos-21.11)

CVE details
CVE-2022-0711
A flaw was found in the way HAProxy processed HTTP responses containing the "Set-Cookie2" header. This flaw could allow an attacker to send crafted HTTP response packets which lead to an infinite loop, eventually resulting in a denial of service condition. The highest threat from this vulnerability is availability.

Scanned versions: nixos-21.11: efea022d6fe.

Fixed in #171252


137 UI tests

Added more UI-Tests for every page.
Currently only testing basic appearance, we did not find any possibility of testing workflows like adding a device, since mocking of e.g. the bluetooth service is not really possible.

ATTENTION: PLEASE DELETE THIS PR. ACCIDENTALLY PR INTO MAIN, NOT DEV.


Example should be a Web App

I followed the example for the Console App that worked great. As soon as I put the exact same config/packages/framework in my Web App, I hit an exception that I'm still unable to get around.
The more realistic scenario is developers will be implementing in a web application. Please do examples in a web app so you account for these errors.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 67bda25f-abd6-9ed3-5e5c-ebe53196dac2
Version Independent ID: 265ace8e-9474-af38-7234-d89f6af38408
Content: Quickstart for Azure App Configuration with .NET Framework
Content Source: articles/azure-app-configuration/quickstart-dotnet-app.md
Service: azure-app-configuration
GitHub Login: @lisaguthrie
Microsoft Alias: lcozzens

@amanda-barton Thank you for the feedback!  We are investigating this and will get back to you shortly.

Hi @amanda-barton - we're hoping to release an ASP.NET quickstart shortly. In the meantime, we do have an ASP.NET sample available, which may help you get going. Let me know if you have any trouble with it.

@amanda-barton With an ASP.NET quickstart on the way and an ASP.NET sample currently available, we are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.


Forcing the command buffer to be sendable

Oh wow, getting some Vulkan and D3D11 failures. Will need to fix those...

Closing in favour of #1177


Loading scene settings in 1.56 gives error 'Turning on disabled clustered lighting is not currently supported'

Project: https://playcanvas.com/project/924351/overview/switch-full-scene-example
Load between the scenes using the UI
Messages 'Turning on disabled clustered lighting is not currently supported' appears in the console.

This Bug may just appear in Editor Play Mode, because the scene json data, from "realtime" websocket connection, may has no "clusteredLightingEnabled" property in data.setting.render object. This may not appear in publiced application.
Using "true" as default value of "clusteredLightingEnabled", in Scene.clusteredLightingEnabled setter, if 'undefined' setted as value, may be better; OR just fix editor server.

The message no longer appears in the console with 1.57.1. Closing.

Reopening, takes place when loading Seemore.


improve dependency management

This PR seeks to improve how dependencies are managed :

[x] use only import_map.json to list remote URLs

[x] remove server/deps.ts
[x] remove common/deps.ts
[x] remove test_deps.ts
[x] remove per-file imports
[x] remove web/deps.ts

[x] plug_api/ shouldn't contain imports using import_map.json, as it can be imported by remote plugs and should therefore use deps.ts (see Import Maps are for Applications)
[x] lib/ should also not contain import_map.json stuff, for the same reasons as the last entry
[x] merge lib/deps.ts and plug_api/deps.ts to make only a single deps.ts file

If you feel this is unnecessary, feel free to decline this PR :+1:

Yes, thank you for thinking about this and doing this work. I'll look at the details, but I like the general direction. Let me know when you think it's ready to merge.

There was a merge conflict with main that I tried to resolve.
When I run this in Firefox things seem to run fine, but for whatever in Chrome(like) browsers I see this:

I suspect that a weird import happens somewhere (in the service worker now?) that imports a Deno library that shouldn't be imported... Do you see this too?

Thanks for the merge conflict fix
Shoots, I missed that! I'll fix this when I've got some time

Ok, this seems to work now. Merging, thanks a lot for this effort!


parse transformation seems to be 'stringify transformation'

This page is about the stringify transformation. So I think that parse transformation seems to be 'stringify transformation'.

@kromerm
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team


Child Component not getting registered on a global component?

i dont know if i am missing something... but the following code is not working
let nav = Vue.extend({
            template: require('../templates/nav/nav.html'),
            components: {
                'item': {
                      name:'item',
                      template: require('../templates/nav/item.html')
                 }
            }
        });

Vue.component('nav', nav);

    <item></item>

it says..
app.js:1112 [Vue warn]: Unknown custom element: <item> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

Vue v1.0.25

nav is a native element. Do not use that as a component name.

@yyx990803  im sorry... i had just simplified the name to post here in github.... but in all my components i am using compounded named in this case the one i am really using was:
<ark-nav>
      <ark-item></ark-item>
</ark-nav>

Then you should provide a jsfiddle reproduction.

@yyx990803 here you are https://jsfiddle.net/milewski/s3vcxkgm/1/

<ark-item> should be registered alongside <ark-nav> because they are used in the same scope.

doesn't it means i will end-up having two global components? and ark-item will be able to exist without <ark-nav> ?
according with the docs: https://vuejs.org/guide/components.html#Local-Registration
var Child = Vue.extend({ /* ... */ })

var Parent = Vue.extend({
  template: '...',
  components: {
    // <my-component> will only be available in Parent's template
    'my-component': Child
  }
})

if i am to do
Vue.component('parent', Parent);

i would be able to do the same as my example isnt? but both examples isnt working...

Everything in the parent template is compiled in parent scope; everything in the child template is compiled in child scope.

var Child = Vue.extend({ /* ... */ })

var Parent = Vue.extend({
  template: '...',
  components: {
    // <my-component> will only be available in Parent's template
    'my-component': Child
  }
})

The above will only work if Child is in Parent's template
var Parent = Vue.extend({
  template: '<my-component>', // you can only use Child here.
  components: {
    'my-component': Child
  }
})

And in your use case, this is in Parent's parent's template (Note that Child is not a child of Parent here)
<parent>
  <child></child>
</parent>

So inside Parent's parent's template you need
components: {Parent, Child}

so it means externally if i am outside of the template i cant invoke the child.. it would need to be a global component for that and access the parent with this.$parent ?
for example this workflow would be impossible right?
<parent>
    <child></child>
</parent>

<another-parent>
     <child></child>
</another-parent>

in this example the <child> must to be a global component.. and the two child will be exactly the same not mattering who is the parent? if i want to differentiate them then i would go like this
<parent>
    <child-one></child-one>
</parent>

<another-parent>
     <child-two></child-two>
</another-parent>

so in this case i will have 4 global components... this is the only way? there is no way to shirnk it down to 2 global components <parent> and <another-parent> and have the <child> element as a child within the same name?
<component>
    <child></child>
</component>

outputting..

    <button>im child</button>

and
<another-component>
    <child></child>
</another-component>

outputting..

        <input>

note: i am using the same name <child> on both places

@Milewski you can try to use inline-template, but this won't let you specify templates for the components, and will prohibit the use of slots.


Fix web-mode-current-element-highlight-face and helm-candidate-number

Sorry for the mistake for the pull request. I just fix it...😂

BTW, is there a way easy to debug the emacs packages? I am not using cask as the package manager.
I define the packages in my custom layers. The commented out line works before but I forget how I did it. And it cannot load the theme correctly now.
;; packages.el
(defconst ztlevi-ui-packages
  '(
    doom-themes
    ;; (doom-themes :location "~/Developer/Github/emacs-doom-theme")
    )
  )

Not sure if I am allowed to ask questions here. If not, sorry about that.

I'm afraid I don't fully understand, but it sounds like a spacemacs question. I am not a Spacemacs user, but a brief look at spacemac's packages.el documentation tells me that :location does not accept a path, so you probably have to do one of the following:
(defconst ztlevi-ui-packages
  '(
    ;; doom-themes
    (doom-themes :location (:fetcher file :path "~/Developer/Github/emacs-doom-theme"))
    ;; OR
    (doom-themes :location local) ; then clone doom-themes to ./ztlevi-ui/local
    )
  )

I hope that helps!

Thanks a lot. The :location keyword works out of the box before. But I figure out I have to update packages to clean up the cache. Not sure how it actually works but looks good now.
Thanks~


Is it possible to get the SQL generated by gorm somehow without using DryRun ?

Is it possible to get SQL run by Gorm without using DryRun?
I would like to run the SQL, and if this SQL error I would like to record it in a LOG along with several other information. Is there any way I can retrieve this executed SQL?

Rewrite ConnPool and replace db.ConnPool, db.Statement.ConnPool.
Then, you can get SQL query in yours ConnPool implementation.

This seems to me to be very difficult.
Are there any examples of how to do this? Or some other way to do?
I would like something simple like:
sql := db.SQL

or
err := db.Error
errGorm := err.(gorm.CustomError)
sql := errGorm.SQL

How about DryRun
https://gorm.io/docs/session.html#DryRun

DryRun does not run SQL. I need to run SQL and if any error occurs then saving SQL wue caused the error.

Does anyone have any ideas?

mark

DryRun does not run SQL. I need to run SQL and if any error occurs then saving SQL wue caused the error.

@eduardo-mior There is no completed run SQL at Gorm runtime, even in ConnPool implementation.
https://github.com/go-gorm/gorm/blob/v1.21.12/prepare_stmt.go#L83
func (db *PreparedStmtDB) ExecContext(ctx context.Context, query string, args ...interface{}) (result sql.Result, err error) {
	// 👹 At this time query is:
        // INSERT INTO "posts" ("user_id", "title", "id") VALUES ($1, $2, $3) RETURNING "id"
}

In GormV1 I forked the project and simply added a field called SQL in Struct gorm.DB.
This SQL field has the last SQL executed by GORM.
Worked perfectly.
In GormV2 I don't want to make a Fork as this project is active and is receiving a lot of updates, however it would be interesting if this functionality existed.
My Fork on GormV1 only added 7 lines of code. It's ridiculous. It is an extremely simple implementation. Just create a field called SQL inside the struct gorm.DB and fill this field before the SQL is executed.
I wonder if there's any reason the developers haven't implemented this.

DryRun does not run SQL. I need to run SQL and if any error occurs then saving SQL wue caused the error.

@eduardo-mior There is no completed run SQL at Gorm runtime, even in ConnPool implementation.
https://github.com/go-gorm/gorm/blob/v1.21.12/prepare_stmt.go#L83
func (db *PreparedStmtDB) ExecContext(ctx context.Context, query string, args ...interface{}) (result sql.Result, err error) {
	// 👹 At this time query is:
        // INSERT INTO "posts" ("user_id", "title", "id") VALUES ($1, $2, $3) RETURNING "id"
}

@huacnlee I created a CustomLogger and managed to solve the problem. It wasn't easy. It was a gambiarra. I wish there was a better way to do this. My code got extremely dirty and duplicated.

https://gorm.io/docs/sql_builder.html#ToSQL


Map refactor

Just a draft PR for now to get feedback on which maps are important to keep

It seems like we could preserve the old map API to not break existing user-defined maps, possibly by

Oops, ignore that


Support for ZHA_NEW?

Can you add support for the ZHA_NEW custom component at https://github.com/Yoda-x/ha-zha-new or is this something the author of the component has to do?

The author will have to do that.
https://custom-components.github.io/hacs/developer/include_default_repositories/


When start avalonia app, Can it debug as wpf?

When I start the avalonia app, then alter the content in axaml, the app was not autoupdate, Can it work as wpf, so we can debug easily

You've already created Q:
https://github.com/AvaloniaUI/Avalonia/discussions/5459
do not create issue just because you didn't receive some response in 15 minutes.

sorry


useAccount with onConnect callback functions causes maximum update depth exceeded

when passing a callback function to the useAccount hook the app will continuously rerender.
this is the code that causes the bug:
export const DAppProvider = () => {
  useAccount({
    onConnect: () => {
       console.log('Connected to StarkNet');
     },
    // onDisconnect: () => {
    //   console.log('Disconnected from StarkNet');
    // },
  });

  return null;
};

I'm using   "@starknet-react/core": "^2.8.3" and nextjs v14.1
the error i get:
Warning: Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.

Can I be assigned this? I’m ready to work

I removed the callbacks in v3 because they were causing too many issue. You should use useEffect with the address/account in the dependency list to invoke a function when the value changes.

Closing because there is no way to fix it and in v3 won't be an issue.


Mainnet testing for 0.40 test contracts

Description
@andrevmatos
Acceptance criteria

Tasks

[ ]

IMO, the usual test workflow should work here. Just make sure the contracts addresses are correct. Notice that on Raiden-CLI, you can either check if it is automatically being fetched from the deployment json files, or you can use the --user-deposit-contract-address=0x5c0f3d9DEb6CE4E5109Ea0f51F81254Bd276Cf28 (mainnet) parameter to pass the UDC address as entrypoint of the client.
I'd just suggest ensuring coop-settle works between LC and PC on the tests. The downside of this is that it settles the channel, so the increased cost of opening it again will be needed later, but as this is the main feature of this new release, it should be wise to ensure it also works on the mainnet.

Just keeping this for the record how an insufficient funds error from the raiden-cli looks like
raiden-dapp $ curl -i -X PATCH \
> http://localhost:5010/api/v1/channels/0x6B175474E89094C44Da98b954EedeAC495271d0F/0xEa45D7385e5020797F5Ab2ABEB0E40fc06CB3aeB \
> -H "Content-Type: application/json" \
> --data-raw '{"state": "closed"}'
HTTP/1.1 402 Payment Required
X-Powered-By: Express
Access-Control-Allow-Origin: http://localhost:*/*
Vary: Origin
Content-Type: text/html; charset=utf-8
Content-Length: 3156
ETag: W/"c54-xwt4KApmEsOd2MsK50WXYrX3wIE"
Date: Thu, 23 Sep 2021 09:04:18 GMT
Connection: keep-alive
Keep-Alive: timeout=5

insufficient funds for intrinsic transaction cost (error={"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"error\":{\"code\":-32010,\"message\":\"Insufficient funds. The account you tried to send transaction from does not have eno
ugh funds. Required<PHONE_NUMBER>2759696 and got:<PHONE_NUMBER>383934.\"},\"id\":3682}\n","error":{"code":-32010},"requestBody":"{\"method\":\"eth_sendRawTransaction\",\"params\":[\"0x02f902720104849502f9008514a986aeb88301d03e945f41ff141b64c684f224b7748413f282c5ef942880b902048
2fd77950000000000000000000000000000000000000000000000000000000000000004000000000000000000000000ea45d7385e5020797f5ab2abeb0e40fc06cb3aeb000000000000000000000000cacff1d95d55d49f0c3beabf179f3aa2cb8b74693a4092a16f7dfafe2756e8e21038d487a8f3c94c765ad5f4e6390abd5202138900000000
0000000000000000000000000000000000000000000000000000000e24d4216fb3619de304a54d786c2a1f763bfa3fb2faecafbfcba143a055e2bfde0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000018000000000000000000000000
0000000000000000000000000000000000000004137643c76e92bf7bb167e468ac35e7da1c5a49d42d911332285668ea0363c8dfa14fe8b369846ddba57ba1644c8a31498a47eec41c31339af1aabfa00aa0a2cc21b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000414ec3988cf4bd094a687e0c6896d3f6dff1eee89be59f0ae127686434618c2a292f11966bc89889b65c011f1573fd962ca7deee929d034f40874172fc8eeb22cf1b00000000000000000000000000000000000000000000000000000000000000c080a03b1b7c51c14e45b3f8211d3dd38f4a16f385f52920a1477
0dc27fc35ae5e91b3a072beb7f6c5ed88e2dec10051de27e5ee603061317b8e7639e6753f591994311d\"],\"id\":3682,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"http://<IP_ADDRESS>:8545"}, method="sendTransaction", transaction="0x02f902720104849502f9008514a986aeb88301d03e945f41ff141
b64c684f224b7748413f282c5ef942880b9020482fd77950000000000000000000000000000000000000000000000000000000000000004000000000000000000000000ea45d7385e5020797f5ab2abeb0e40fc06cb3aeb000000000000000000000000cacff1d95d55d49f0c3beabf179f3aa2cb8b74693a4092a16f7dfafe2756e8e21038d487
a8f3c94c765ad5f4e6390abd52021389000000000000000000000000000000000000000000000000000000000000000e24d4216fb3619de304a54d786c2a1f763bfa3fb2faecafbfcba143a055e2bfde000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000
00000000000000180000000000000000000000000000000000000000000000000000000000000004137643c76e92bf7bb167e468ac35e7da1c5a49d42d911332285668ea0363c8dfa14fe8b369846ddba57ba1644c8a31498a47eec41c31339af1aabfa00aa0a2cc21b000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000414ec3988cf4bd094a687e0c6896d3f6dff1eee89be59f0ae127686434618c2a292f11966bc89889b65c011f1573fd962ca7deee929d034f40874172fc8eeb22cf1b00000000000000000000000000000000000000000000000000000000000000c080a03b1b7c5
1c14e45b3f8211d3dd38f4a16f385f52920a14770dc27fc35ae5e91b3a072beb7f6c5ed88e2dec10051de27e5ee603061317b8e7639e6753f591994311d", code=INSUFFICIENT_FUNDS, version=providers/5.4.5)

The summary of mainnet testing can be seen in the last 3 columns in this sheet
https://docs.google.com/spreadsheets/d/1Dn_qm49TTBvAwvMZOuvkBmsCpz7vpdep2QCYrM3XwDk/edit?usp=sharing
@taleldayekh can we close this issue ? Or only after we successfully run a scenario ?

Manual mainnet testing completed for the Krittika release.


More debugging information when trying to connect to external engines

I'm currently having a problem with getting a 404 error when the script tries to poll a vault backend.  Fair enough, I probably misconfigured a path.  But then I go to vault to check the audit logs to see what's failing, and find no requests that aren't otherwise spoken for.  VAULT_ADDR is set, so as far as I can tell, it should be trying to connect to vault but isn't.
It would be useful in this case to have LOG_LEVEL=debug to print out more information about the connection that's failing, not just the response.  In the case of vault, that would involve printing out the full URL that it attempted to contact so that I can verify I haven't made a deeper mistake that I'm missing.
{"level":20,"message_time":"2021-10-14T20:45:26.446Z","pid":17,"hostname":"external-secrets-kubernetes-external-secrets-5dc9cd7658-vv8f5","msg":"next poll for default/hello-vault-service in 9976 ms"}
{"level":30,"message_time":"2021-10-14T20:45:36.432Z","pid":17,"hostname":"external-secrets-kubernetes-external-secrets-5dc9cd7658-vv8f5","msg":"running poll on the secret default/hello-vault-service"}
{"level":20,"message_time":"2021-10-14T20:45:36.451Z","pid":17,"hostname":"external-secrets-kubernetes-external-secrets-5dc9cd7658-vv8f5","msg":"fetching new token from vault for role eks-dev-role on eks-dev"}
{"level":50,"message_time":"2021-10-14T20:45:36.473Z","pid":17,"hostname":"external-secrets-kubernetes-external-secrets-5dc9cd7658-vv8f5","payload":{"response":{"statusCode":404,"body":{"errors":[]}}},"msg":"failure while polling the secret default/hello-vault-service"}

I did just find the actual error  -- VAULT_ADDR didn't like the fact that I cut and pasted from my environment where it ended in a /.  When I remove the trailing /, external secrets does properly connect to the server and gets just a permission denied error, which I can move on from.  The debugging request is still a nice-to-have though.
I'm guessing that the vault server doesn't like the extra / in the URL and gives you a 404 without hitting anything that would trigger the vault audit logs, but the vault client helpfully strips out a trailing / from the vault address when building URLs.  So a bit of a gotcha if someone happens to copy their VAULT_ADDR straight from normal environment without realizing the problem.


How to log two different groups of chart seperately?

Suppose I have two sets of metrics to track. The first set includes metrics such as accuracy and loss, which need to be logged after every epoch. Additionally, there is a second set of metrics that should be logged after every 100 batches. I want to ensure that each set of metrics is logged independently without affecting the step count of the other. How can I achieve this?

Hi @ljb121002, if you track the step yourself and use the step argument in wandb.log({"my_metric": value}, step=my_step) you can have control over this. You can log to the same step multiple times but you cannot log to a previous step so as long as the step value is >= to the previous logged step this will work.
Another option is using the define metric workflow described here to log against a custom x-axis

Hi @ljb121002, I just wanted to follow up and see if this answered your question?


[1792] Add provider publish and publishable actions

Context
These will be called by the frontend to publish the latest provider enrichment.
Changes proposed in this pull request
Adds #publish and #publishable actions to the provider controller. #publish is a no-op.
Guidance to review
Does not actually implement the publish logic, that will be done as a separate PR; this is just to facilitate the frontend validations work.
Checklist

[ ] Make sure all information from the Trello card is in here
[ ] Attach to Trello card
[ ] Rebased master
[ ] Cleaned commit history
[ ] Tested by running locally

 Provider #publish and #publishable


Cut Prometheus v2.38.0

Signed-off-by: Julius Volz<EMAIL_ADDRESS>

Lgtm

@roidelapluie Thanks! Question: I see that the PR is expecting the build_all CI check to pass because that's configured as a required check for release branches. However, under https://app.circleci.com/pipelines/github/prometheus/prometheus, I don't see build_all in any of the jobs running for this PR. From https://github.com/prometheus/prometheus/blob/dfc62920c2973c6a191fa9bc5f2f7a23cf9c37f4/.circleci/config.yml#L155-L162 it looks like we do tell CircleCI to run build_all for release branches, but is that branches filter about the target branch of the PR, or about the pull request's origin branch name? The CircleCI docs aren't clear to me on that (https://circleci.com/docs/configuration-reference#branches).

In any case, merging without that check now, since it's just not instantiated on CircleCI at all.


Update with threejs rename of GroundProjectedEnv to GroundProjectedSkybox

As of PR #25645, GroundProjectedEnv got renamed to GroundProjectedSkybox, hence the import in GroundProjectedEnv.svelte is failed:
import { GroundProjectedEnv } from 'three/examples/jsm/objects/GroundProjectedEnv';

...
        currentGroundEnv = new GroundProjectedEnv(envMap);

should be changed to
import { GroundProjectedSkyBox } from 'three/examples/jsm/objects/GroundProjectedSkyBox';
...
        currentGroundEnv = new GroundProjectedSkyBox(envMap);

Hey @9a24f0, this has already been fixed in @threlte/extras@next. Threlte 5 will not receive an update on this, I strongly suggest to upgrade your application if you haven't done yet.


TypeScript library code for recovery module

Depends on https://github.com/getwax/wax/issues/71. (#71 is smart contract code only. (@blakecduncan to confirm))
Write library code for the recovery module. This can be developed with hardhat tests as the initial use-case, but should not assume/depend on a hardhat environment. This code should then be useful for the in-page demo and/or inclusion in a broader wax TypeScript library.

Relevant code is here:
https://github.com/getwax/wax/blob/be6d773/account-integrations/sdk/src/accounts/SafeECDSAAccontWrapper.ts#L148-L248
But it's broken. Let's fix it and then close this.


Missing .container member - incorrect documentation example, package version 4.1.0

Hey, thank you for a great library. I especially like that the generated code is also clean/free from warnings :-)
I'm playing around with decoding lists and came across a code sample in the documentation that actually does not work as described.
The issue is with the .container member of a  <model>Mapper class. The member is not created. I've attached a simple dart only project that also demonstrates the issue.
The code sample in the documentation is in Encoding Lists, Sets and Maps. For convenience ref. below:
@MappableClass()
class Dog with DogMappable {
  String name;
  Dog(this.name);
}

@MappableClass()
class Box<T> with BoxMappable<T> {
  T content;
  Box(this.content);
}

void main() {
  // Case 1: Simple list.
  // We use the default container since we only use core types.
  List<int> nums = MapperContainer.defaults.fromJson('[2, 4, 105]');
  print(nums); // [2, 4, 105]

  // Case 2: Set of objects.
  // We use the generated container for [Dog], but with a set of objects.
  Set<Dog> dogs = DogMapper.container.fromJson('[{"name": "Thor"}, {"name": "Lasse"}, {"name": "Thor"}]');
  print(dogs); // {Dog(name: Thor), Dog(name: Lasse)}

  // Case 3: More complex lists, like generics.
  // We use the generated container for [Box], but with a list of generic objects.
  List<Box<double>> boxes = BoxMapper.container.fromJson('[{"content": 0.1}, {"content": 12.34}]');
  print(boxes); // [Box(content: 0.1), Box(content: 12.34)]
}

AFAIU the main function should look like this:
// ...

void main(List<String> arguments) {
  // Case 1: Simple list.
  // We use the default container since we only use core types.
  List<int> nums = MapperContainer.defaults.fromJson('[2, 4, 105]');
  print(nums); // [2, 4, 105]

  // Case 2: Set of objects.
  // We use the generated container for [Dog], but with a set of objects.
  MapperContainer.globals.use(DogMapper.ensureInitialized());
  Set<Dog> dogs = MapperContainer.globals
      .fromJson('[{"name": "Thor"}, {"name": "Lasse"}, {"name": "Thor"}]');
  print(dogs);

  // Case 3: More complex lists, like generics.
  // We use the generated container for [Box], but with a list of generic objects.
  MapperContainer.globals.use(BoxMapper.ensureInitialized());
  List<Box<double>> boxes = MapperContainer.globals
      .fromJson('[{"content": 0.1}, {"content": 12.34}]');
  print(boxes);
}

dart-mappable-container.zip

Thanks, indeed the docs are outdated. I will update them.

Updated with v4.2.0


Harwest only creates folder, not downloading submission. (Codeforces)

Submissions aren't downloaded. Instead, it only creates empty contest folders.
submissions.js is left empty.
No error message whatsoever.
Tried:

[x] Other cf handle
[x] Full scan
[x] Specifying start page
[x] cmd and Powershell (admin)

Working fine for atcoder.
Windows 10 19044, Python 3.9

Leads found:
in lib/codeforces/client.py
beautifulsoup find() returns None
       submission_code = sub_soup.find('pre', attrs={'id': 'program-source-text'})

Seems that recently Codeforces just added RCPC again... I will close this issue as implementing a permanent fix would be troublesome. Let's hope they remove it in the near future and just bear with manual fix at the time.

Thank you @notwatermango 😋
For anyone interested, this cf blog describes another issue that resulted from this RCPC cookie, alongside the short guide on how to get yours.

@notwatermango In line 14 what should i do ?? You didn't mention it!

@yousuf7902 google python requests set cookie.

Glad to help 😉. Thanks for the reply and good luck tweaking!

Glad to help 😉. Thanks for the reply and good luck tweaking!

@notwatermango @nskybytskyi Thank you so much both of you for helping me . Successfully I done it!😚

Can anyone please elaborate the process? I am not being able to understand the fix.

Anyone facing this issue again? I didn't find any RCPC cookie either.


Possible error in the README

I think that in the README at line 47 you need to have -c True?

Thanks for pointing this out, the readme has been updated


Do we still need the auto complete fork?

Afaik the fork is created for 2 primary reasons:

Fuzzy search scoring https://github.com/codemirror/codemirror.next/issues/236
Highlight matched string https://github.com/codemirror/codemirror.next/issues/234

Since both issues are addressed by codemirror's autocomplete module, do you think we can go back to the original module yet? Is there some plan for the fork?

It requires to be tested and validated we have the same functionality than today.
Note that the autocomplete fork is including a limitation of the autocomplete list. It's a performance issue fixed by @juliusv when you have to display 100k of element. It actually displays only the first 100 or 1000 ( don't remember exactly the limit)
And I don't think we reported this issue to cmn yet.

CM is going to release a new version soon, which I will try to validate the functionality and report here :D hope it helps

Note that the autocomplete fork is including a limitation of the autocomplete list.

I think this should be implemented at the user land. It's difficult for the autocomplete module to decide a good limitation for all use cases. WDYT @juliusv ?
Afaik the above fix is the only difference between the fork and the recently updated original

@dvkndn Yeah, in the general case this should likely be a configurable limit, but when I last looked at the code it seemed cumbersome to pass a user-supplied limit setting all the way down to the code path that applies the limit. Probably is necessary though.

yes it's necessary. If we can't configure the autocomplete module, is it possible to apply this at user land? Like, I don't know, maybe after fetching from the server?

@dvkndn I understand it this wouldn't be solvable by the autocomplete sources that we provide because they still need to provide all items for further filtering etc.. We only want to limit the display, not how many items are processed before that.

Oh.. it needs to be handled in the module then. Let me find if there's a related issue on codemirror yet. To be honest it's good to limit the display in general for performance reason anyway :D I think we can suggest this to CM

@dvkndn Yeah for sure, I think it makes sense for any user who has a huge number of underlying items, since it brings down the display time from multiple seconds to something like 100ms.

@dvkndn Btw., I filed https://github.com/codemirror/codemirror.next/issues/293.


Add API that exposes the protocol response without parsing

This can be useful when using pglite with code that already has its own parsing logic.

Ah, yeah. In my use case I am bridging this to a WASM module that only knows how to speak the wire protocol, so I ran into trouble when execProtocol throws an exception afte parsing out an error since I have no way of recovering the original bytes. So currently I am just patching pglite to not throw that exception, which works reasonably well.
Could there maybe be to layers to the API? One that deals directly at the protocol level and doesn't try to do anything smart wrt managing transactions and parsing errors, and one that layers the JS-friendly API on top?

Closed with #127 which will be in v0.2


Bug fix.  2. add fast long retention implement

Fix bug for the  mode with inputs_embedding rather than inputs_ids

if inputs_embeds is None:
    inputs_embeds = self.forward_embedding(input_ids, forward_impl, inputs_embeds,past_key_values)
else:
    if forward_impl == 'recurrent':
        inputs_embeds = inputs_embeds[:, -1:]

Add fix length seq arguement when the inputs is (addtional_token, pask_kv)

if fixed_seq_len:slen=fixed_seq_len

Cached the fixed retnet_rel_pos ( thus does not need generate runtimely)

add fast retention implement when the sequence length >> D**2.
See https://github.com/veya2ztn/fast_retention

5.1 I set use_glu defaut to false, thus consistancy to old code.
5.2 The layer norm setting in FFN seem wrong, the self.embed_dim should be ffn_dim
if subln:
    if use_rms_norm:
        self.ffn_layernorm = RMSNorm(self.embed_dim, eps=layernorm_eps)
    else:
        self.ffn_layernorm = LayerNorm(self.embed_dim, eps=layernorm_eps)
else:
    self.ffn_layernorm = None

Anyway, I roll back to self.ffn_layernorm = LayerNorm(ffn_dim, eps=layernorm_eps) if subln else None

Other than some formatting and refactoring issues, I love the fast-retention implementation! I was hoping to get into that. Thanks for your work!

Will this be merged?

There are some code styling issues and some things I don't understand fully. I think it's great to have its own branch for now.


Define new UX project

XRTK - Mixed Reality Toolkit Feature Request
Is your feature request related to a problem? Please describe
As part of the Push to 0.3, one of the main focuses will be the creation of a new UX library.  This Log will track the full schedule of controls that will be collaboratively designed.  The Aim is to have a UX library that is reusable by any project including (but not dependant on) the XRTK.
A key factor with the UX library is that it will only contain UX elements mean to define controls, including but not limited to:

GameObjects for UX representation
Scripts related to the behaviour of the control
Animation elements
Events and public proponents
Interactions and input (programmatic)
Collision / reaction elements

The UX controls will NOT contain:

Any specific XRTK references
No dependencies on XRTK components/scripts

UX principles
Behind all controls will be a guiding framework into what makes a good UX control, allowing for generic capabilities such as:

State Framework
Styling/theming where relevant (colours/gradients/state)
Background styles
Foreground styles
Embedded text
Near/physical interaction
Far interaction (through cast events)
Contextual interaction

Control List

Not an exhaustive list and each control/set will likely have a reference design behind it.

[ ] Physical Button
[ ] Depressable Button
[ ] Sliders
[ ] Levers
[ ] Labels
[ ] Collections (layout)
[ ] Grabbables
[ ] Doors
[ ] Locks
[ ] Control Groups (group toggles, Xor, Or, And, etc)

Feel free to comment below and enhance this high-level approach.
Reference designs
References include the following:

MRTK UX designs
The MRTK has a good control set, although it is tightly integrated with the MRTK.

MRTK for Unreal
MRTK have translated some of their controls for Unreal, this is more aligned to the philosophy described for this UX project.

Can't wait to see this take form. I am curious though, implementing a UX framework that does NOT depend on XRTK might add a lot of overhead work (not sure yet, just assuming). Every other module is perfectly integrated with XRTK so it can make best use of it's core foundation. So why stop at the UX module?

Obviously UX/UI is already very different / separate from the other "backend" modules. But I think there might be situations where making use of the Input System APIs in UX components can safe a lot of time.

In this UX package, it's strictly focused on visual states, prefab components, and a very basic layout system.
The xrtk sdk will correctly utilize the input system and APIs as needed, but the underlying UX will only have a small, simple API designed to gather input from any framework.

https://github.com/XRTK/XRUX


[FIZZ-126] Sync process for section associations

The problem noted by Luis above was an environmental issue in the Schoology setup, which I have now corrected.


Fix sudo prompt.

[ ] Have you followed the guidelines in our Contributing document?
[ ] Have you checked to ensure there aren't other open Pull Requests for the same change?
[ ] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.
[ ] Have you successfully run brew style with your changes locally?
[ ] Have you successfully run brew typecheck with your changes locally?
[ ] Have you successfully run brew tests with your changes locally?
[ ] Have you successfully run brew man locally and committed any changes?

The sudo prompt is hidden when using another process group. Also, to interrupt a sudo process, we would need sudo again, so we would have to store the password ourselves to ensure we can actually successfully call it, so let's just not create new process groups for sudo.
Fixes https://github.com/Homebrew/homebrew-cask/issues/95893.

Review period skipped due to critical label.


add this project into awesome-beancount

https://github.com/siddhantgoel/awesome-beancount/

SGTM

I filed a PR in here: https://github.com/siddhantgoel/awesome-beancount/pull/22


update php-cs-fixer to v3 + tweak the configuration + apply it to the codebase

Failure are not related. There are all deprecation notice.

There are too much deprecation + type error. This lib does not seem compatibly with something.


Bug in Norwegian language support.

I think there is an error with support for the Norwegian language in Flutter/Dart.  The documentation says that Norwegian is supported, but it lists the language code as "no".  The most common form of Norwegian is Norsk Bokmål, and when running Platform.localeName with the device in Norwegian, you get the language code "nb_NO".
I have added supported locales to my app like so:
      supportedLocales: [
        const Locale('en', ''),
        const Locale('nb', ''),
      ],

When using 'no' instead of 'nb' the app just thinks it is in English and shows all English strings.  When I use 'nb', the Norwegian strings are shown but a lot of platform things seem to be wrong.  When the device is in English, everything runs fine as expected.  But with no code changes and just switching the device to Norwegian, I start seeing other errors.  For just two examples, in Norwegian, opening my app immediately throws
I/flutter ( 5566): The following NoSuchMethodError was thrown building TabBar(dirty, state: _TabBarState#b4d87):
I/flutter ( 5566): The method 'tabLabel' was called on null.

I just use a DefaultTabController with two Tabs inside of a TabBar
When I try opening an AlertDialog in Norwegian, I get
E/flutter ( 5566): NoSuchMethodError: The getter 'modalBarrierDismissLabel' was called on null. and no dialog shows.
I do think the problem has to do with Flutter/Dart expecting 'no' instead of 'nb'.  I am not sure if any vendors actually use the ISO 639-1 code for "Norsk" but I have tested on a Samsung Galaxy S8+, Pixel 2 XL, Nexus 5, and an API 27 x86 emulator and all of those return a locale as 'nb_NO'.  I tried switching the language to Nynorsk (the other Norwegian language, 'nn') but Android itself doesn't seem to really support that one.
This project is still WIP and I am learning Flutter, but if you want a project that can reproduce these bugs easily, you can find my small app here.

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.3.2, on Microsoft Windows [Version 10.0.17134.48], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[√] Android Studio (version 3.1)
[√] Connected devices (1 available)
• No issues found!

Thanks for reporting this!
It looks like we've used the wrong language code for Norwegian (Bokmal). As you've pointed out it should have been 'nb' instead of 'no'.
I will fix it.


Remove unnecessary this-> expressions

Unnecessary and hurts readability IMO, also creates confusion over why someone would use this as it's redundant by default so when you look at the code you wonder why this was done, to me for example it makes it seem like it's accessing something in some other object, as you'd obviously never use -> for the current object
Because we have shadowing warnings now any of these are absolutely redundant, as there can't be a method local variable with the same name
I suspect several of these were for previous shadowings without p_ prefixes

That's all the cases I could find by a search for it, save for the two fixed by:

https://github.com/godotengine/godot/pull/87669

Also excluded cases like p_this-> and this->* which are all valid

To hazard a guess, some of these (e.g. Rational128) may have been copy pasted from templates, where the this-> is necessary to compile on some compilers afaik.

Will restore those just to be safe 🙂

Added a few commented cases just for completeness

Thanks!

Thank you!


Detect resized terminal

difft --version = 0.24.0, Ubuntu 18.04
difftastic does not reformat itself (i.e. change the column width) when the terminal is resized. Is it possible to do this?

This isn't possible with the default side-by-side display, because difftastic needs to calculate the terminal width to decide how wide to make each column. The inline display doesn't suffer this problem though (INLINE=y on 0.25, --display=inline on 0.26).

I think this is an inherent limitation of a tool that writes to stdout without a pager I'm afraid. I'd eventually like to support HTML output, which will have this flexibility, but I don't see any options here.


Facebook image issue

I retrieved the facebook posts of a company page, however since a couple of days the image will not load.
In the HTML on the website the following source of the image is set of one of the posts https://graph.facebook.com/892444634257084/picture/?type=normal
but the output is:
{
"error": {
"message": "Unsupported get request. Object with ID '892444634257084' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100,
"fbtrace_id": "GgJU/qKwsS4"
}
}
I found something about the 100 error, maybe facebook changed their policy? https://stackoverflow.com/a/20959339
Any suggestions? Thank you.

Same problem here.

can you provide a page or a jsfiddle to debug the problem?

seems to me a visibility poblem of the page you try to grab. Is published? the app you create for socual-feed is allowed by the page?

Maybe I have to check the rights of the company facebook page, however it is weird that the text of the post is visible but only the image is broken. At this Dutch website you see the facebook widget on the bottom of the screen. www.stadhardenberg.nl (screenshot). Some are broken. I can create a jsfiddle later on.

It can grap the text content but images are broken. I tried to check the Facebook page permissions but did not find anything related. Access token should be ok because the post content is coming through except the images. I can try creating a Plunker from it later.

Seems like the problem fixed it itself. Images are loading again.

Yes probably something at facebook... I will close the issue for now.


The navigate custom event for navigation

Introduce of new navigation custom  event used by all arc elements.
The elements shouldn't rely on any global object (right now it relies on the page global object) to navigate the user in the app. Because the element can be used in different environments with different routing solutions it should have unified way of triggering a navigation in the most generic way.
The elements dispatches the navigate custom event to inform hosting application about navigation requested.
The event is cancellable. It can be handled by any element and cancelled before it reach the application's main code.
Properties

base (String, required) The base navigation path. Can be request, settings, default (for a default path for current context) and so on
type (String, optional) Additional information for the router. In case of base request the type would be either saved or history
id (String, optional) Identifier of the datastore record associated with the navigation request.

Hosting application should implement a way of translating this event into the routing and triggering the navigation.

This is now supported by the application.


Mouse scrolling weirdness inside vim (neovim)

I'm thinking this is just a weird consequence of hterm, but I am experiencing some annoying scrolling behavior while inside of neovim.
Not sure if it matters, but I use a magic mouse which uses smooth scrolling.

Scrolling up to the very top is difficult. As soon as I remove my finger from the magic mouse, it tends to scroll back down a few lines.
Random insertion of characters. This one is really making it hard to use vim inside of hyperterm. If I am scrolling around in insert mode, sometimes characters will get randomly inserted in the buffer. I've seen ">" "e" and "%" so far.

I'm going to attempt to screen capture this and post to this issue.

I'm observing this same behavior in both neovim (recent HEAD build) and vim (8.0).
In fact, this exact same probem shows up with tmux if the mouse wheel is configured to browse the tmux backscroll history.  My tmux scroll configuration is here.
In my replication, I'm also seeing something wierd: the tmux pane to the left of my test pane is running a gulp watcher task.  Scrolling in tmux is an action isolated to the pane being scrolled.  But when using Hyper, the left, non-scrolling gulp pane is getting character input during scrolling.  See the 4's and forward slashes in the following screencap:

Also happens to me when I try to select & drag the mouse. Here is a demonstration.
https://youtu.be/7t-ReyyhtJk

Maybe mouse events are not 100% supported and Hyper is incorrectly interpreting them?
This is really the only thing preventing me from this app full time

Fixed in https://github.com/zeit/hyper/pull/1111

This was fixed for me a month or more ago 👍

This is definitely not fixed for me in 1.0.0 (<IP_ADDRESS>3).
Or is that commit after the release of 1.0.0?

@caesar yes this will be in 1.0.1 releasing soon!

Thanks Philippe, looking forward to it!

Not fixed as of 1.0.1.
Screen capture of using neovim in Hyper 1.0.1 (no tmux). Trying to scroll while in INSERT mode.

I wonder if this is related to #1291
Both seem to indicate that actions that should not insert characters in vim are actually inserting random characters.

FWIW,  this does appear fixed for me, in both normal and insert modes, using:

macOS: 10.12.2
Hyper.app: 1.0.1

and any of:

vim: 8.0
neovim: recent HEAD build at 29e6515
tmux in combination with either of the above

However, I do get a "bounce back" effect: scroll using a mac trackpad.  The editor will stay on the final line for a moment, then snap down three lines.  E.g. if I scroll to the top of the file, line 1 will be at the top of the window, then a moment later, line 4 will snap to the top.  Yet this snap-down behavior can occur anywhere in the file.  In limited testing, it is very highly repeatable for me, close to 100% in all the combinations listed above.  I thought there might have been a separate issue for this problem, but I can't find it now.
For comparison, the bounce-back problem doesn't occur at all in iTerm2 3.0.13.

@jwhitley I also see the bounce back with my magic mouse. This is because of "elastic scrolling" in the web view. Terminal windows normally don't have that.
As for my screen capture above, I can't reproduce it consistently, only occasionally, which makes it a pain to track down. I've found it happens more often if i'm using splits.

I have the same problem (macOS 10.12.3, Hyper <IP_ADDRESS>8) with insertion of character on mouse events (including scrolling and clicking). This only (and always) occurs within tmux. Interestingly, the click event only prints characters when I click on the right hand 3/4 of the screen...

this is pretty painful! I observe this without tmux, including the behavior that clicks on the left side work and right side spams junk input.
macOS 10.12.3
Hyper <IP_ADDRESS>8
vim 8.0.0094 installed through brew

Still observing this with Hyper <IP_ADDRESS>4 and vim 8.0.0344 and only this vim config (including mouse=a.)

I'll come back when this gets fixed!

Yes I've just tried Hyper Version 1.3.1 (<IP_ADDRESS>8) as a full-time terminal for a web project, and this is a showstopper in Vim NeoVim 0.1.7
My own brief experiments with the bug yielded similar weirdness as outlined above:

split a window into two panes : | Vim |  shell |
start and stop scrolling in the shell pane
move the mouse focus to the vim pane
the machine gun of random text input begins firing at vim for as long as the usual scroll deceleration period would be

@justsee well observed - i reproduced that junk input continues during scroll deceleration.
I also observed something i hadnt spotted before:

when my cursor is in the left pane, and i click the right pane, the cursor remains in the left pane, and junk input is sent to the left pane

A workaround (for my workflow at least) is to simply disable the mouse in Vim's config:
set mouse=
Alternatively you could just disable it in insert mode: set mouse=nv, but I still noticed if you scroll/stop in one pane and move mouse focus over to the vim pane it still manages to insert a limited number of characters occasionally. It's great to have git and vim undo as protection but I can't be dealing with random character entries when writing code.
I only really need the mouse to focus back on the vim pane when finishing scrolling in a side-by-side webview of the related next.js app, as the webview has focus and so key sequences to switch pane focus don't work.
It's not ideal, and there are other issues (performance, janky window resizing) but I'm giving Hyper a litte more time to explore how far away it is from a usable primary terminal for web work.
Having a side-by-side vim + webview (with no browser chrome) in a terminal is too delightful at the moment not to persist a bit longer.

As @justsee has said, I can also confirm that this is directly related to using mouse mode in vim. Disabling it results in no problems.

The same issue seems to happen in tmux with the same workaround solution (disabling mouse)

So I think there is a larger issue here with tmux and mouse because I have a setting that works in terminal and iTerm that allow me to click on an open split pane which does not work in hyper.

I can confirm with a very similar config to @jwhitley that the issue isn't fixed on HyperTerm 1.3.3
Scrolling is extremely twitchy
I cannot click on different panes with VIM/NeoVim; which does work inside of iterm2 and terminal
Mac OS 10.12.4 (16E195)
Hyper 1.3.3
NeoVim 0.1.6
Vim 8.0

Same here, tmux with mouse works in iterm2 and not here.

This appears to be fixed after upgrading to 2.0.0+ which introduced using xterm rather than hterm.
Scrolling is still super touchy/fast, but i've been using mouse mode in neovim for a few days now and have had 0 issues.

Great! I had eventually switched back to iTerm2, but just gave Hyper 2.0 a try and haven't had any issues with the scrolling so far - apart from still being very sensitive/fast (clearly they are taking the pixel values returned by the mousewheel event and using them without dividing by a suitable factor to make them equivalent to line-based scrolling).
I have to say Hyper is still noticeably slower than iTerm – that's probably inevitable with all the overhead of a browser rendering engine – but at least this showstopper bug has been fixed by the change to xterm. Bravo!

I still have a weird mouse issue in 2.0.4 in combination with vim. After you hold shift and select text in vim the mouse will start inserting characters when moved. This continuous until there is another vim mouse event.

Any clues as to why scrolling is so twitchy but only inside vim/tmux? This is my last real mouse related issue with hyper I'm trying to track down.

@jbbudzon  Frankly this is outdated we aren't on hterm anymore. I will close this issue. Feel free to open new one if relate to xterm.


NSFS | noobaa-cli Help format Update

Explain the changes

Noobaa CLI help output updated to below format for all the CLI commnds

node src/cmd/manage_nsfs upgrade --help 2>/dev/null
Help:

    'upgrade' noobaa-core command will initiate version upgrade and also return the upgrade status or history.

Usage:

    noobaa-cli upgrade <action> [flags]

List of actions supported:

    start
    status
    history

Issues: Fixed #xxx / Gap #xxx

https://github.com/noobaa/noobaa-core/issues/8565

Testing Instructions:

run help command for all the CLI combinations.

Note : Doc is not updated for the MD5 changes

[ ] Doc added/updated
[ ] Tests added

@naveenpaul1 when you put the issue under the fixes section you must have 'Fixed' keyword before so it'll close the issue automatically.
@shirady please review this PR, thanks in advance


Update midnight.py

Very liberally accept phrases as a happy midnight greeting.

:D

Ok, I made it somewhat less liberal about what it allows. Now the message is accepted as a midnight greeting if the Levenshtein-distance between the message and a known midnight greeting is at most three characters. The regex is there to filter at least some obvious cases out and to prevent emojis on the side etc. from being counted into the edit distance.


Remove generic transcript argument

This was pertaining to the commitment scheme, which has now been moved to https://github.com/crate-crypto/ipa_multipoint .
As of the latest commit there, this can be closed.


Separate Another Language from BeanShell.

launch each language project in github.
It is enough to link in the top-document.

move to #15


fix: responsive wrapper [fixes #10]

This tag does the magic and should fix sizing on mobiles:
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

But <head> elements are not managed by Elm, so we can just insert elm's output into an HTML page and build with
elm make src/Main.elm --output=static/main.js

I'm not too sure about the github pages workflow.

ooh, good catch, it does sound like something that would fix the issue!
regarding the github pages workflow, with what we have now I would assume the app would now appear under the relative path static. I am assuming there might be a way to output both js and html at root level right? otherwise it might be possible to reconfigure the deploy pages action with a specific folder (but I would prefer first if we try to output at root level).

Ok let's try it like this and I will understand it later :D (good enough you are confident about this)


pythonCatchConflictsHook: prevent exponential worst-case

Description of changes
The hook performs a depth first search on the graph defined by propagatedBuildInputs. This traverses all paths through the graph, except for any cycles. In the worst case with a highly connected graph, this search can take exponential time. In practice, this means that in cases with long dependency chains and multiple packages depending on the same package, the hook can take several hours to run.
Avoid this problem by keeping track of already visited paths and only visiting each path once. This makes the search complete in linear time.
The visible effect of this change is that, if a conflict is found, only one dependency chain that leads to the conflicting package is printed, rather than all the possible dependency chains.
Now that only one dependency chain will be found for each package, a few other simplifications are possible and are included in a separate commit.
Also, add a test to demonstrate the change in output with multiple dependency chains, and fix a minor bug in parsing nix-support/propagated-build-inputs.
The tests pass and I have tested building a few Python packages.
Fixes #305599
cc @DavHau @phaer
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

I updated the target branch


dist-win32.sh only works on macOS

I need to stop being so quick to make issues. Turns out it's an issue specific to the Windows Subsystem for Linux. There's a pretty good chance this will go away with the Creators Update.


confused about calico peerSelector mechanism

From what i read the doc on tigera.io,  you can add k8s node label like "route-reflector: true" using kubectl or calicoctl .
When using kubectl , the label is added to node's label field.
When using calicoctl , the label is added to the node's annotations field.
Here's the question , when calico use peerSelector to match node , how calico decide which label to use  if you set one true and another false.
And which method is the better way to add label  , kubectl or calicoctl?

They will both work - labels applied to the k8s node will also be visible on the Calico "node" object.


The first time I deleted node_modules using rimraf on my windows command line, was it the right way or I need to delete it  directly on my desktop folder?

The first time I deleted node_modules using rimraf on my windows command line, was it the right way or I need to delete it  directly on my desktop folder?
Originally posted by @loicquirion in https://github.com/facebook/create-react-app/issues/5972#issuecomment-444739443

You can directly delete the node_modules folder from windows explorer or desktop folder ie.-

C:\Users\loicq\node_modules
Or you can go with rimraf over the command line.
It wouldn't affect your project repo.

You can directly delete the node_modules folder from windows explorer or desktop folder ie.-

C:\Users\loicq\node_modules

Or you can go with rimraf over the command line.
It wouldn't affect your project repo.

I don't think this was meant to be a new issue? If I'm wrong just let me know and I can re-open.


[question] 'Value does not fall within the expected range.' exception

Describe the bug
I am trying to implement a C# desktop application on Windows which is able to connect to a remote peer and establish a WebRTC call. After calling the PeerConnection.SetRemoteDescriptionAsync() method with the SDP answer I get this exception: 'Value does not fall within the expected range.'
To Reproduce
The remote peer is managed by a web API.  The remote peer expects me to pass the SDP offer to the web API so I just simply print the SDP offer to the output and send it manually to the API in a HTTP message using Postman. I receive the SDP answer in the body of the successful HTTP answer. So I copy it to the console, then the program reads it from the standard input and parses it to an SdpMessage object.
I am trying to make a connection with the following flow:

I initialize the peer connection object with the PeerConnectionConfiguration. I use the STUN server of Google.
I add a data channel and an audio transreceiver to the peer connection object, then I add a local audio track to the transreceiver object.
I call the PeerConnection.CreateOffer() method.
When LocalSdpReadytoSend event is triggered I store the SDP to a global variable.
When IceCandidateReadytoSend event is triggered I concatenate a 'a={candidate}' line to the SDP offer for each candidate.
When IceGatheringState changes to complete I print the SDP offer to the console and I manually send the SDP to the web API.
I receive a successful answer from the API with the SDP answer, indicating the remote peer is ready to establish the connection.
I copy the SDP answer to the console so the program can read and parse it to an SdpMessage object.
After calling the SetRemoteDescriptionAsync() method the exception is thrown.

I have uploaded my code to a public repository so you can track step by step what I am trying to do:
https://github.com/levboy1/microsoft_mixedreality
SDP messages
Offer message

v=0
o=-<PHONE_NUMBER>880237725 2 IN IP4 <IP_ADDRESS>
s=-
t=0 0
a=group:BUNDLE audio data
a=msid-semantic: WMS mrsw#0
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 102 0 8 106 105 13 110 112 113 126
c=IN IP4 <IP_ADDRESS>
a=rtcp:9 IN IP4 <IP_ADDRESS>
a=ice-ufrag:20JD
a=ice-pwd:JbJ1IiKjfEfpsgkNvDHlj9Wt
a=ice-options:trickle
a=fingerprint:sha-256 D0:FE:84:B4:90:0C:FA:A9:7A:AA:34:6A:D2:52:4F:35:9C:8D:E8:36:3C:17:65:40:81:74:F5:CA:BA:68:CB:91
a=setup:actpass
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:102 ILBC/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:3462862450 cname:PkburLTo3Ytfmcfb
a=ssrc:3462862450 msid:mrsw#0 437642e8-574b-4375-bd34-54efcec5a2b1
a=ssrc:3462862450 mslabel:mrsw#0
a=ssrc:3462862450 label:437642e8-574b-4375-bd34-54efcec5a2b1
m=application 9 DTLS/SCTP 5000
c=IN IP4 <IP_ADDRESS>
a=ice-ufrag:20JD
a=ice-pwd:JbJ1IiKjfEfpsgkNvDHlj9Wt
a=ice-options:trickle
a=fingerprint:sha-256 D0:FE:84:B4:90:0C:FA:A9:7A:AA:34:6A:D2:52:4F:35:9C:8D:E8:36:3C:17:65:40:81:74:F5:CA:BA:68:CB:91
a=setup:actpass
a=mid:data
a=sctpmap:5000 webrtc-datachannel 1024
a=candidate:974510316 1 udp<PHONE_NUMBER> <IP_ADDRESS> 61827 typ host generation 0 ufrag 20JD network-id 1
a=candidate:948785377 1 udp<PHONE_NUMBER> <IP_ADDRESS> 61828 typ host generation 0 ufrag 20JD network-id 2 network-cost 10
a=candidate:974510316 1 udp<PHONE_NUMBER> <IP_ADDRESS> 61829 typ host generation 0 ufrag 20JD network-id 1
a=candidate:948785377 1 udp<PHONE_NUMBER> <IP_ADDRESS> 61830 typ host generation 0 ufrag 20JD network-id 2 network-cost 10
a=candidate:1955996700 1 tcp<PHONE_NUMBER> <IP_ADDRESS> 60286 typ host tcptype passive generation 0 ufrag 20JD network-id 1
a=candidate:1980673041 1 tcp<PHONE_NUMBER> <IP_ADDRESS> 60287 typ host tcptype passive generation 0 ufrag 20JD network-id 2 network-cost 10
a=candidate:1955996700 1 tcp<PHONE_NUMBER> <IP_ADDRESS> 60288 typ host tcptype passive generation 0 ufrag 20JD network-id 1
a=candidate:1980673041 1 tcp<PHONE_NUMBER> <IP_ADDRESS> 60289 typ host tcptype passive generation 0 ufrag 20JD network-id 2 network-cost 10
a=candidate:3116717653 1 udp<PHONE_NUMBER> <IP_ADDRESS> 61828 typ srflx raddr <IP_ADDRESS> rport 61828 generation 0 ufrag 20JD network-id 2 network-cost 10
a=candidate:3116717653 1 udp<PHONE_NUMBER> <IP_ADDRESS> 61830 typ srflx raddr <IP_ADDRESS> rport 61830 generation 0 ufrag 20JD network-id 2 network-cost 10
a=end-of-candidates

Answer message

v=0
o=rtcweb 1 1 IN IP4 <IP_ADDRESS>
s=-
t=0 0
a=ice-lite
m=audio 22948 RTP/SAVPF 111 110
c=IN IP4 <IP_ADDRESS>
a=ice-ufrag:l+UE
a=ice-pwd:PAXI8kXVBo+N91F+8mGGgr5/
a=fingerprint:sha-256 FC:A8:9D:19:A1:0F:76:B5:65:56:B6:A4:8E:C3:2C:1E:F8:90:B7:BF:1B:08:A1:58:05:86:AC:78:E4:2D:A9:6A
a=setup:passive
a=sendrecv
a=rtcp-mux
a=rtcp:9 IN IP4 <IP_ADDRESS>
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10; useinbandfec=1
a=rtcp-fb:111 transport-cc
a=rtpmap:110 telephone-event/48000
a=maxptime:60
a=candidate:0 1 UDP<PHONE_NUMBER> <IP_ADDRESS> 22948 typ host
a=end-of-candidates
a=ssrc:1192398718 cname:67be75c1-339e-4e48-ab65-5c5c6d2f65d7
a=ssrc:1192398718 msid:946e4825-0536-447f-82ec-962dd87fe724 3afca3af-565c-4dca-926a-29de8f0258f6
a=ssrc:1192398718 mslabel:946e4825-0536-447f-82ec-962dd87fe724
a=ssrc:1192398718 label:3afca3af-565c-4dca-926a-29de8f0258f6

Screenshots

Questions
After reading my summary you can easily tell by now that I am not really familiar with WebRTC and SDP attributes. I have read all earlier issues related to this exception and if I understand correctly the problem is the incompatibility of the SDP offer and answer. My questions are: What can cause this exception? There is no matching codec or ICE candidate in the offer and answer? Or I just made simply a wrong implementation?
Environment

MR-WebRTC package version: 2.0.2
Platform: Windows Desktop
Target device: Windows Desktop
.NET Core version: 3.1

Hey there. Did you find a solution for this? I am having a similar issue. "Value does not fall within the expected range." But I don't understand what's wrong.
Here's the offer that throws the error. Could anyone have a quick look to see if something's off in the message? I've tested a bunch with different codecs, etc. but it's always the same result.
data=v=0
o=mediasoup-client 10000 1 IN IP4 <IP_ADDRESS>
s=-
t=0 0
a=ice-lite
a=fingerprint:sha-512 CF:F8:FD:BB:B2:9D:48:A9:3B:61:9E:F9:04:C6:C2:B2:C7:67:9F:92:BF:FD:AE:AC:E1:F3:C8:9A:F7:18:65:16:22:7E:0A:5E:97:06:72:5A:0F:45:34:3A:36:A6:43:FC:40:C5:34:D0:A3:16:26:E2:C0:8B:07:73:20:12:42:44
a=msid-semantic: WMS *
a=group:BUNDLE 0 1
m=audio 7 UDP/TLS/RTP/SAVPF 111
c=IN IP4 <IP_ADDRESS>
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10;useinbandfec=1
a=setup:actpass
a=mid:0
a=msid:b65d595c b65d595c-audio
a=sendonly
a=ice-ufrag:2bp39odyjq6ixzip
a=ice-pwd:3gewute7gjvraoz6stzpvizg98o83hk7
a=candidate:udpcandidate 1 udp<PHONE_NUMBER> <IP_ADDRESS> 45339 typ host
a=candidate:udpcandidate 1 udp<PHONE_NUMBER> ::1 49630 typ host
a=candidate:udpcandidate 1 udp<PHONE_NUMBER> xxx.xx.xx.238 42917 typ host
a=end-of-candidates
a=ice-options:renomination
a=ssrc:126830276 cname:lamX5agvRn+k1TYf
a=rtcp-mux
a=rtcp-rsize
m=video 7 UDP/TLS/RTP/SAVPF 96 100
c=IN IP4 <IP_ADDRESS>
a=rtpmap:96 VP8/90000
a=rtpmap:100 rtx/90000
a=fmtp:100 apt=96
a=setup:actpass
a=mid:1
a=msid:b65d595c b65d595c-video
a=sendonly
a=ice-ufrag:2bp39odyjq6ixzip
a=ice-pwd:3gewute7gjvraoz6stzpvizg98o83hk7
a=candidate:udpcandidate 1 udp<PHONE_NUMBER> <IP_ADDRESS> 45339 typ host
a=candidate:udpcandidate 1 udp<PHONE_NUMBER> ::1 49630 typ host
a=candidate:udpcandidate 1 udp<PHONE_NUMBER> xxx.xx.xx.238 42917 typ host
a=end-of-candidates
a=ice-options:renomination
a=ssrc:711631981 cname:lamX5agvRn+k1TYf
a=ssrc:711631982 cname:lamX5agvRn+k1TYf
a=ssrc-group:FID 711631981 711631982
a=rtcp-mux
a=rtcp-rsize

I'm also not a WebRTC expert, so debugging without any indication of where the error might come from is really hard for me. With my limited knowledge of the SDP process and googling a bunch it seems the offer should pass.


Paperspace: model not loading

I'm trying to upload a .safetenors model via "Upload File(s)" to a folder with models. But the file upload speed is extremely low, after an hour and a half, when 600 MB has loaded, the download stops. Internet is ok. Maybe there is another way to load the model, or increase the speed?

probably a temporary outage, report back later if the issue persists

try a different model and see how is the speed

try a different model and see how is the speed

the same with another model, the problem is not even in low speed, but in the fact that after a long time the upload stops and does not go any further

upload it to gdrive, then use gdown to download it to paperspace

I'm also using PaperSpace
to avoid using up all my storage on models I've opted to use the /tmp/ storage that Paperspace provides.
Adding a block into the notebook above the "Model Download/Load" block to automatically download the models simplifies this process
You could also just paste the code into a .py file and run it that way.
In order for this to work you need to change the model storage location in "Model Download/Load" to /tmp/.
Path_to_MODEL = "/tmp/"
this is the code:
import os
update_apt = os.system("apt-get update")
get_aria2 = os.system("apt-get --yes install aria2")
get_model1 = os.system("aria2c --max-connection-per-server=16 --continue=true --dir=/tmp https://civitai.com/api/download/models/63847")
get_model2 = os.system("aria2c --max-connection-per-server=16 --continue=true --dir=/tmp https://civitai.com/api/download/models/15236")
#get_ghostmix = os.system("aria2c --max-connection-per-server=16 --continue=true --dir=/tmp https://civitai.com/api/download/models/59685")

If you use this code it will automatically download my models I've been using, but you can just go to civitai.com and right click the "Download Now" and choose copy-target for your URL and replace the numbers at the end for civitai. This works for VAE as well.
If you choose to download models from huggingface I've noticed aria2c doesn't resolve the filename correctly so you qill need to use this syntax:
get_synthwave = os.system("aria2c --max-connection-per-server=16 --continue=true --dir=/tmp --out=snthwve_style.ckpt https://huggingface.co/PublicPrompts/Synthwave/resolve/main/snthwve style.ckpt")
This will output to the /tmp/ folder with a specific name
Also be sure to choose the pickle/tensor file on huggingface then right click the "download" link that appears on that page for your download URL
Probably not the cleanest way to do this task, but it gets the job done rather quickly, it adds a bit of time to machine startup but not more than 10 minutes.
Hope this helps you getting models loaded into your notebook

in the model download cell, there is Temporary_Storage = True so the models are stored in the temporary storage by default, also, using the model link in the same cell will download it using gdown in under 1-2 minutes. I don't see a need for the overly complicated procedure.

If you only want one model it works great.

thanks, it worked.
But now I get from time to time
File Load Error for model.safetensors
/notebooks/model.safetensors is not UTF-8 encoded
and when moving model to folder "/notebooks/sd/stable-diffusion-webui/models/Stable-diffusion/model.safetensors" i get this

TypeError                                 Traceback (most recent call last)
Cell In [18], line 13
3 Password= ""
5 # Add credentials to your Gradio interface (optional).
6
7 #Ngrok_token = ""
(...)
11
12 #-----------------
---> 13 configf=sdui(User, Password, "", model) if 'model' in locals() else sdui(User, Password, "", "")
14 get_ipython().system('python /notebooks/sd/stable-diffusion-webui/webui.py configf')
TypeError: sdui() takes 3 positional arguments but 4 were given

@nemorg22 you are using an outdated notebook, copy the latest one from the folder "latest_notebook"

@nemorg22 you are using an outdated notebook, copy the latest one from the folder "latest_notebook"

Yes thank you. I already figured it out myself. But compared to free google colab, free paperspace renders photos noticeably slower

in the model download cell, there is Temporary_Storage = True so the models are stored in the temporary storage by default, also, using the model link in the same cell will download it using gdown in under 1-2 minutes. I don't see a need for the overly complicated procedure.

Is there a way to do this for ControlNet models too, as they take up so much space?

@n802de I'll see what I can do


Formatting should not update the jump list

Format file by saving with :w
Try pressing u to undo last edit
Cursor jumps to bottom of file

I remember there has same issue in neovim. this is the undo behavior in neovim .

It doesn’t happen when formatting with LSP.

update i think it should be solved.

Yeah it can definitely be solved. It doesn't happen with a lot of other formatting plugins either.

close then

Oh, I misunderstood your comment. Yeah, it is fixed by 59c1082


Update Pantheon to version 7

Tracking issue for Pantheon 7 (see #121847 for Pantheon 6).
Visit the project board for lists of random notes that needs attention and this page for lists of upstream updates that needs review.
cc @NixOS/pantheon
FAQ

Feel free to add more if you can edit this issue.

Can we have Pantheon 7 in NixOS 22.05 / 22.11?
Probably, it depends on upstream release schedule. But this shouldn't become a blocker for NixOS 22.05 / 22.11.
Merge time for #130380 sounds too long for me, can updates happen faster?
Some updates need to be addressed together (see the project board), I try to split updates into small PRs when the update harmonize with existing parts well. We always merge things when it is ready.
How to test a Pantheon update?
For flake users, you can try https://github.com/bobby285271/test-pantheon.
For non-flake users, use:
$ env NIX_PATH=nixpkgs=/path/to/nixpkgs:nixos-config=/path/to/configuration.nix nixos-rebuild build-vm

Do not forget to adjust the path to the nixpkgs checkout /path/to/nixpkgs and the configuration /path/to/configuration.nix.
Why don't handle the following error for me?
Failed assertions:
- You have set services.power-profiles-daemon.enable = true;
which conflicts with services.tlp.enable = true;

I am following what is done in GNOME. We have no way of knowing which way a user wants to resolve the conflict.
To disable tlp: services.tlp.enable = false;.
To disable power-profiles-daemon: services.power-profiles-daemon.enable = false;.
Why granite 7 is packaged as a separate package?
In short, granite 6 is for GTK3 apps and granite 7 is for GTK4 apps. I don't really have the time and knowledge to port the world to GTK4.
Why latest mutter and gsd?
Current latest is 42, which is shipped in ubuntu 22.04 and elementary OS 7.
By using the latest we can prevent duplicate work in mutter & gsd maintenance. I will explicitly pin them to 42 a few weeks before GNOME 43 happens. I plan to stick with 42 before elementary OS 8 is out due to all of those weird issues when using 3.38 on Pantheon 6.

Blocked updates:

[ ] switchboard-plug-keyboard 3.0.0 - going to address together with gala + gsd updates.


Unable to purchase computed data with mumbai testnet due to Invalid signature error

Describe the bug
Getting an 400 bad request when trying to purchase an compute only data set, published from the different account , from different browser. Using mumbai testnet. Algorithms , dataset refered from here ocean.py tutorial.
This issue is reported from Discord.
To Reproduce
Steps to reproduce the behavior:

Go to ocean.py/READMEs/c2d-flow.md
Publish the dataset and the algorithm assets
Open Ocean Market in the browser and search for published assets.
Try to purchase service and see the error

Expected behavior
To purchase the services without problems.
Screenshots

ocean_lib.exceptions.DataProviderException: Failed to get a response for request:
computeStartEndpoint=https://v4.provider.mumbai.oceanprotocol.com/api/services/compute, payload={'dataset':
{'documentId': 'did:op:443a22ebed56b9c846dafb751e4cef47b1869d77d1535a9865175b27b3c7adcd',
'serviceId': '1', 'transferTxId': '0x56024d9c2c1d2d3b3021f21dcc5cf6c544914d8fa6ddb371be7b2232f5f99918'},
'environment': 'compute-v4-engine-dev', 'algorithm': {'documentId':
'did:op:09aa3f5235ed3170baa2eb5cacb8c64068ac444f29209cf792637eea98fde198', 'serviceId': '0', 'transferTxId':
'0x17dc3e5510e5786fc2fec1aa988017de1926cee8909d085f2f91df61471f6096'}, 'signature':
'0xa657ac434840374f19dbd4c9bb60d1683dcab17663c24bcf36069ede3d3804e475430178b9ca44a62c08e653280f31a8f738e479ca9d88c016960c492f93d7ff01', 'nonce': '1687177454529.354', 'consumerAddress':
'0x0b600C9d669241453A449f766fF49b5CC50eDD54', 'additionalInputs': []},
response is b'\r\n<title>502 Bad Gateway</title>\r\n\r\n
502 Bad Gateway
\r\n
nginx\r\n\r\n\r\n'

The nonce from payload is equal to the one from provider's database and a restart of the pod didn't change anything.