Problem downloading extensions behind firewall

Describe the bug
We use linux servers on-premise and have mirrored the RPM repo so that we can install the az cli onto Rocky Linux servers.  This works great.  But we are having an issue with sometimes logging in and/or downloading extensions.  Trying to add all the domains listed in the az cli endpoint list (https://learn.microsoft.com/en-us/cli/azure/azure-cli-endpoints?tabs=azure-cloud) to our firewall is not an easy process, nor is it guaranteed to work since we have some special filtering in the Palo Alto firewalls. Also, we normally do not allow servers to connect to the internet.
Is there a way to mirror the extensions locally like we do with the RPMs? Or is there a way to use a single domain for all az cli commands? Like a proxy on MS side.
Related command
az extension add --name azure-devops
Errors
Please ensure you have network connection. Error detail: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
Issue script & Debug output
# az extension add --name azure-devops --debug
cli.knack.cli: Command arguments: ['extension', 'add', '--name', 'azure-devops', '--debug']
cli.knack.cli: __init__ debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7f41d5870160>, <function OutputProducer.on_global_arguments at 0x7f41d5585d30>, <function CLIQuery.on_global_arguments at 0x7f41d53181f0>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'extension': ['azure.cli.command_modules.extension']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name                  Load Time    Groups  Commands
cli.azure.cli.core: extension                 0.002         1         7
cli.azure.cli.core: Total (1)                 0.002         1         7
cli.azure.cli.core: Loaded 1 groups, 7 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command  : extension add
cli.azure.cli.core: Command table: extension add
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7f41d1c5db80>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/root/.azure/commands/2023-10-11.10-52-39.extension_add.1076373.log'.
az_command_data_logger: command args: extension add --name {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x7f41d1c06790>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x7f41d1c2a8b0>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x7f41d1bce670>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x7f41d5585dc0>, <function CLIQuery.handle_query_parameter at 0x7f41d5318280>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x7f41d1bce5e0>]
urllib3.connectionpool: Starting new HTTPS connection (1): aka.ms:443
urllib3.connectionpool: https://aka.ms:443 "GET /azure-cli-extension-index-v1 HTTP/1.1" 301 0
urllib3.connectionpool: Starting new HTTPS connection (1): azcliextensionsync.blob.core.windows.net:443
urllib3.connectionpool: https://azcliextensionsync.blob.core.windows.net:443 "GET /index1/index.json HTTP/1.1"<PHONE_NUMBER>
cli.azure.cli.core.extension._resolve: Candidates ['azure_devops-0.12.0-py2.py3-none-any.whl', 'azure_devops-0.17.0-py2.py3-none-any.whl', 'azure_devops-0.21.0-py2.py3-none-any.whl', 'azure_devops-0.26.0-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['azure_devops-0.12.0-py2.py3-none-any.whl', 'azure_devops-0.17.0-py2.py3-none-any.whl', 'azure_devops-0.21.0-py2.py3-none-any.whl', 'azure_devops-0.26.0-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['azure_devops-0.12.0-py2.py3-none-any.whl', 'azure_devops-0.17.0-py2.py3-none-any.whl', 'azure_devops-0.21.0-py2.py3-none-any.whl', 'azure_devops-0.26.0-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['azure_devops-0.12.0-py2.py3-none-any.whl', 'azure_devops-0.17.0-py2.py3-none-any.whl', 'azure_devops-0.21.0-py2.py3-none-any.whl', 'azure_devops-0.26.0-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Chosen {'downloadUrl': 'https://github.com/Azure/azure-devops-cli-extension/releases/download/20230127.2/azure_devops-0.26.0-py2.py3-none-any.whl', 'filename': 'azure_devops-0.26.0-py2.py3-none-any.whl', 'metadata': {'azext.minCliCoreVersion': '2.30.0', 'classifiers': ['Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'License :: OSI Approved :: MIT License'], 'extensions': {'python.details': {'contacts': [{'email'<EMAIL_ADDRESS>'name': 'Microsoft', 'role': 'author'}], 'document_names': {'description': 'DESCRIPTION.rst'}, 'project_urls': {'Home': 'https://github.com/Microsoft/azure-devops-cli-extension'}}}, 'extras': [], 'generator': 'bdist_wheel (0.30.0)', 'license': 'MIT', 'metadata_version': '2.0', 'name': 'azure-devops', 'run_requires': [{'requires': ['distro (==1.3.0)']}], 'summary': 'Tools for managing Azure DevOps.', 'version': '0.26.0'}, 'sha256Digest': '565fc207f1740c26957f382fe2eefabec254011fb2d1b50c0e540f894f47dcbe'}
cli.azure.cli.core.extension.operations: Extension source is url? True
cli.azure.cli.core.extension.operations: Downloading https://github.com/Azure/azure-devops-cli-extension/releases/download/20230127.2/azure_devops-0.26.0-py2.py3-none-any.whl to /tmp/tmp_bah_tmd/azure_devops-0.26.0-py2.py3-none-any.whl
urllib3.connectionpool: Starting new HTTPS connection (1): github.com:443
cli.azure.cli.core.azclierror: Traceback (most recent call last):
  File "/lib64/az/lib/python3.9/site-packages/urllib3/connectionpool.py", line 714, in urlopen
    httplib_response = self._make_request(
  File "/lib64/az/lib/python3.9/site-packages/urllib3/connectionpool.py", line 403, in _make_request
    self._validate_conn(conn)
  File "/lib64/az/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1053, in _validate_conn
    conn.connect()
  File "/lib64/az/lib/python3.9/site-packages/urllib3/connection.py", line 419, in connect
    self.sock = ssl_wrap_socket(
  File "/lib64/az/lib/python3.9/site-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
  File "/lib64/az/lib/python3.9/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "/usr/lib64/python3.9/ssl.py", line 501, in wrap_socket
    return self.sslsocket_class._create(
  File "/usr/lib64/python3.9/ssl.py", line 1041, in _create
    self.do_handshake()
  File "/usr/lib64/python3.9/ssl.py", line 1310, in do_handshake
    self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/lib64/az/lib/python3.9/site-packages/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
  File "/lib64/az/lib/python3.9/site-packages/urllib3/connectionpool.py", line 798, in urlopen
    retries = retries.increment(
  File "/lib64/az/lib/python3.9/site-packages/urllib3/util/retry.py", line 550, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/lib64/az/lib/python3.9/site-packages/urllib3/packages/six.py", line 769, in reraise
    raise value.with_traceback(tb)
  File "/lib64/az/lib/python3.9/site-packages/urllib3/connectionpool.py", line 714, in urlopen
    httplib_response = self._make_request(
  File "/lib64/az/lib/python3.9/site-packages/urllib3/connectionpool.py", line 403, in _make_request
    self._validate_conn(conn)
  File "/lib64/az/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1053, in _validate_conn
    conn.connect()
  File "/lib64/az/lib/python3.9/site-packages/urllib3/connection.py", line 419, in connect
    self.sock = ssl_wrap_socket(
  File "/lib64/az/lib/python3.9/site-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
  File "/lib64/az/lib/python3.9/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "/usr/lib64/python3.9/ssl.py", line 501, in wrap_socket
    return self.sslsocket_class._create(
  File "/usr/lib64/python3.9/ssl.py", line 1041, in _create
    self.do_handshake()
  File "/usr/lib64/python3.9/ssl.py", line 1310, in do_handshake
    self._sslobj.do_handshake()
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/lib64/az/lib/python3.9/site-packages/azure/cli/core/extension/operations.py", line 125, in _add_whl_ext
    _whl_download_from_url(url_parse_result, ext_file)
  File "/lib64/az/lib/python3.9/site-packages/azure/cli/core/extension/operations.py", line 69, in _whl_download_from_url
    r = requests.get(url, stream=True, verify=(not should_disable_connection_verify()))
  File "/lib64/az/lib/python3.9/site-packages/requests/api.py", line 73, in get
    return request("get", url, params=params, **kwargs)
  File "/lib64/az/lib/python3.9/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "/lib64/az/lib/python3.9/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/lib64/az/lib/python3.9/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/lib64/az/lib/python3.9/site-packages/requests/adapters.py", line 501, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/lib64/az/lib/python3.9/site-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
  File "/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/__init__.py", line 663, in execute
    raise ex
  File "/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/__init__.py", line 697, in _run_job
    result = cmd_copy(params)
  File "/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/__init__.py", line 333, in __call__
    return self.handler(*args, **kwargs)
  File "/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/lib64/az/lib/python3.9/site-packages/azure/cli/command_modules/extension/custom.py", line 16, in add_extension_cmd
    return add_extension(cli_ctx=cmd.cli_ctx, source=source, extension_name=extension_name, index_url=index_url,
  File "/lib64/az/lib/python3.9/site-packages/azure/cli/core/extension/operations.py", line 344, in add_extension
    extension_name = _add_whl_ext(cli_ctx=cmd_cli_ctx, source=source, ext_sha256=ext_sha256,
  File "/lib64/az/lib/python3.9/site-packages/azure/cli/core/extension/operations.py", line 127, in _add_whl_ext
    raise CLIError('Please ensure you have network connection. Error detail: {}'.format(str(err)))
knack.util.CLIError: Please ensure you have network connection. Error detail: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

cli.azure.cli.core.azclierror: Please ensure you have network connection. Error detail: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
az_command_data_logger: Please ensure you have network connection. Error detail: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7f41d1c5ddc0>]
az_command_data_logger: exit code: 1
cli.__main__: Command ran in 1.790 seconds (init: 0.169, invoke: 1.621)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 3689 in cache
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "/bin/python3.9 /usr/lib64/az/lib/python3.9/site-packages/azure/cli/telemetry/__init__.py /root/.azure"
telemetry.process: Return from creating process
telemetry.main: Finish creating telemetry upload process.

Expected behavior
I expect a way to be able to download the extensions even with tight enterprise security policies.
Environment Summary
azure-cli                         2.53.0
core                              2.53.0
telemetry                          1.1.0
Dependencies:
msal                            1.24.0b2
azure-mgmt-resource             23.1.0b2
Python location '/bin/python3.9'
Extensions directory '/root/.azure/cliextensions'
Python (Linux) 3.9.16 (main, Jul  3 2023, 20:07:32)
[GCC 8.5.0 20210514 (Red Hat 8.5.0-18)]
Additional context
No response

Thank you for opening this issue, we will look into it.

+1. Any news on this one ?


run-time error

Hello, may I ask if I have downloaded the pre-training model you sent to the local, changed the path in the code, or this problem, may I ask what is going on? thank you

Hi @zhangfeng0617  ,
I didn't encounter such an issue before, but maybe you can have a look at this issue https://github.com/huggingface/transformers/issues/17611 which is quite similar.
Besides, there could also sometimes be internet problem. You can also have a try to add this script at the start of the code (refer to https://github.com/CompVis/stable-diffusion/issues/302#issuecomment-2042642642):
import os
os.environ['HF_ENDPOINT']='https://hf-mirror.com'

If you want to load the pre-trained model from the local machine, you may need to ensure downloading the correct type of files. Below is the needed file list of Stable Diffusion:

Thanks for your reply, can you give me a link to the pre-training model of this project? Maybe my pre-training model is not in the right file. thank you

Hi, you can find these files here.

thank you！ thank you！

I downloaded the pre-training model to the local, there is this problem, hope you can help to answer it, thank you

Attack based on Diffusion***
Traceback (most recent call last):
File "main.py", line 114, in
ldm_stable = StableDiffusionPipeline.from_pretrained(pretrained_diffusion_path).to('cuda:0')
File "F:\Anaconda2023\anaconda3\envs\diffattack\lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 1037, in from_pretrained
loaded_sub_model = load_sub_model(
File "F:\Anaconda2023\anaconda3\envs\diffattack\lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 450, in load_sub_model
loaded_sub_model = load_method(os.path.join(cached_folder, name), **loading_kwargs)
File "F:\Anaconda2023\anaconda3\envs\diffattack\lib\site-packages\transformers\tokenization_utils_base.py", line 2094, in from_pretrained
raise EnvironmentError(
OSError: Can't load tokenizer for 'stabilityai/stable-diffusion-2-base\tokenizer'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'stabilityai/stable-diffusion-2-base\tokenizer' is the correct path to a directory containing all relevant files for a CLIPTokenizer tokenizer.
Process finished with exit code 1

thanks！

Hi,
Could you please let me know the level of file path you passed into the code?
For example, here's my local save path:

And it should work when setting the --pretrained_diffusion_path="C:\Users\PC\.cache\huggingface\diffusers\models--stabilityai--stable-diffusion-2-base\snapshots\455a0f46082..." in the main.py.

This is the previous version you published, but it does not affect. I put the pre-trained model downloaded from the link you sent above into the project, and I also loaded it directly in the code. As shown in the figure. I see you put it under the C drive path, is that the reason? In addition, the pre-trained model I downloaded does not have huggingface\diffusers\ in front, is this affecting the operation? thank you

Ah, I think I understand the issue now.
I apologize for the confusion regarding the path specified in the code: --pretrained_diffusion_path="stabilityai/stable-diffusion-2-base". The value stabilityai/stable-diffusion-2-base does not refer to a local path. Instead, it points to the Hugging Face repository stabilityai/stable-diffusion-2-base from which the necessary weights will be downloaded automatically.
The error message you encountered previously might be due to a name collision if you have a local directory with the same name as the Hugging Face repository. To resolve this, please try using an absolute path for the --pretrained_diffusion_path parameter. If that doesn't work, consider renaming your local folder to something else.

It's okay. I'm the one who's learning and asking questions. I changed the local absolute path and changed the name of the pre-trained model, but it still didn't work. May I ask is there any other way? If I don't download the pre-trained model locally, I'll have a network problem like the one shown here. I really don't know what to do (crying and laughing), looking forward to your help, thank you.

Emm, that's a bit weird.
Typically, setting --pretrained_diffusion_path="stabilityai/stable-diffusion-2-base" should automatically download the weights. The error message shown in the screenshot still seems to be related to a network connection issue. Have you tried the potential solutions mentioned here?

I tried the method but it didn't work. I will download your project again and try it. Thank you very much for your trouble.

Sorry it didn't work out :(  Please keep me informed if you manage to identify the issue.

I re-downloaded your project, encountered this problem, I also set a property to true according to the online value, but it did not work。

OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.
thank you！

I re-downloaded your project to try, it is still the same problem, I will post all the information, please have a look, thank you！
Here is the error message:
F:\Anaconda2023\anaconda3\envs\diffattack\python.exe main.py --model_name inception --save_dir demo/output --images_root demo/images --label_path demo/labels.txt
F:\Anaconda2023\anaconda3\envs\diffattack\lib\site-packages\torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: '[WinError 127] 找不到指定的程序。'If you don't plan on using image functionality from torchvision.io, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have libjpeg or libpng installed before building torchvision from source?
warn(
Attack based on Diffusion, Attacked Dataset: imagenet_compatible***
urllib3.exceptions.SSLError: TLS/SSL connection has been closed (EOF) (_ssl.c:1135)
The above exception was the direct cause of the following exception:
urllib3.exceptions.ProxyError: ('Unable to connect to proxy', SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:1135)')))
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "F:\Anaconda2023\anaconda3\envs\diffattack\lib\site-packages\requests\adapters.py", line 589, in send
resp = conn.urlopen(
File "F:\Anaconda2023\anaconda3\envs\diffattack\lib\site-packages\urllib3\connectionpool.py", line 847, in urlopen
retries = retries.increment(
File "F:\Anaconda2023\anaconda3\envs\diffattack\lib\site-packages\urllib3\util\retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/stabilityai/stable-diffusion-2-base (Caused by ProxyError('Unable to connect to proxy', SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:1135)'))))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 124, in

Hello, because I am busy with other things at this time, so I have delayed this. I re-downloaded your project and tried to replace the versions of the request and urllib3 libraries, but I still had this connection problem. Also, I downloaded stable-diffusion-2-base locally, but I didn't use it. I just downloaded the project, and then hooked up the vpn to run it directly, but the following problems kept appearing. Is there a problem with the process of my running the project? Could you help me, please? Thank you. It's so much trouble. If possible, it would be best to add your contact information, so that I can consult you more easily, because I do encounter this problem is rather difficult. It's perfectly normal for you to say no. Thank you again.
The following is the error message：
File "F:\Anaconda2023\anaconda3\envs\diffattack\lib\site-packages\requests\adapters.py", line 517, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/stabilityai/stable-diffusion-2-base (Caused by SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:1135)')))"), '(Request ID: 38dcc369-6bd4-4e11-988c-2d545872bbb3)')

Hi @zhangfeng0617 ,
Apologies for the delayed response—things have been quite busy on my end as well.
Please feel free to send an email to<EMAIL_ADDRESS>and I'll share my personal contact details there.

Ok, thank you, now I am busy with some other things, I will contact you when the school starts, thank you very much

Ok, thank you, now I am busy with some other things, I will contact you when the school starts, thank you very much

I found the reason for this SSL error, because I hung up the vpn, the browser can access huggingface, but Pycharm can not access, I tried to use python to access Google, also failed to access, reported this SSL6 error. So do you have any good way to solve this problem, or download the file to the local by myself? I am not clear about the steps and configuration methods, I hope you can help me, thank you for your trouble

The previous problem has been solved, because the hanging vpn only proxy browser, no proxy Pycharm. Now this problem has arisen, may I ask what the problem is, thank you very much

The previous problem has been solved, because the hanging vpn only proxy browser, no proxy Pycharm. Now this problem has arisen, may I ask what the problem is, thank you very much
Attack based on Diffusion, Attacked Dataset: imagenet_compatible***
vae\diffusion_pytorch_model.safetensors not found
Fetching 13 files:   0%|          | 0/13 [00:00<?, ?it/s]

Hi,
From the error message, you may need to check if you've downloaded diffusion_pytorch_model.safetensors under the folder vae.


update np.unravel_index arg; set max_iter in main function

change the arg in np.unravel_index(): dims -> shape
in main function, set an arg max_iter to customize the iteration number

Thanks for the update! Looks good.


Create Addon 'Destroy' Crashes With Connector

Mod Name
destroy
Mod Homepage
https://modrinth.com/mod/destroy
Minecraft version
1.20.1
Describe the bug
The game crashes on startup.
Steps to reproduce

Create an installation with Connector, Destroy, and dependencies.
Run game.

Logs
https://gist.github.com/CraftyZombie/7c50b012135c8ee27ca3f50dd3a75389
Additional context
All logs and the crash report are located in the gist.

Duplicate of https://github.com/Sinytra/ForgifiedFabricAPI/issues/115

Apologies, forgot to check the other repository.


Cse/remove templates pr branches

Repoman Generation Results
Repoman pushed changes to remotes for the following projects:
Project: todo-nodejs-mongo
Remote: azure-samples
Branch: pr/6
You can initialize this project with:
azd init -t kaizentm/todo-nodejs-mongo -b pr/6

View Changes | Compare Changes

Project: todo-python-mongo
Remote: azure-samples
Branch: pr/6
You can initialize this project with:
azd init -t kaizentm/todo-python-mongo -b pr/6

View Changes | Compare Changes


Feed by categories

Hi there, seem the only available feed are the default which domain.com/feed.xml
Are there is anyway to get feed by categories? Need that for aggregator on specific topics
Example : http://rhea-ayase.eu/categories/feed-life.xml

This is being talked about in #70 :+1:


Add initial Command Terminal content.

How's this for starters?

Good start, but I think we need a very basic explainer video that maybe covers the most common commands developers will need to get basic work done. Stuff like ls, cd, mkdir rm, etc...


Derive specifications from Kappa representation

I wasn't getting anywhere on improving arrow performance, so I backtracked a little farther and tested out what happens if I derive the spec from the kappa representation instead. With several strategic Opaque declarations, the performance issues pretty much disappeared. CombinatorProperties.v went down from 26s to 1.4s compilation on my machine, and I was able to derive a spec for unrolled_cipher_naive' and typecheck its correctness proof!
One drawback of this change is that now we will need to write a correctness proof for combinational_evaluation, which was not required with the previous design. I'll probably start working on that right after this is merged, just to get an early warning if that proof turns out to be complex.
@blaxill now that there's a strategy that works for deriving specs of larger circuits, is unrolled_cipher_naive the right circuit definition to use?
Fixes #249

One drawback of this change is that now we will need to write a correctness proof for combinational_evaluation

Is this to match evaluation on the kappa expression with the evaluation of an arrow expression?

@blaxill now that there's a strategy that works for deriving specs of larger circuits, is unrolled_cipher_naive the right circuit definition to use?

unrolled_naive_cipher.v is a simpler version of unrolled_opentitan_cipher.v which in turn is a simpler version of the synchronous version that I haven't got around to merging.
I think the unrolled_opentitan_cipher.v in particular will be informative, and unrolled_naive_cipher.v optional - e.g. we might want to depart further from the design of the OpenTitan modules for simplicity. The unrolled_naive_cipher.v version should be the easiest to prove as its the most direct from the spec, e.g. the unrolled_opentitan_cipher mixes the key expansion with the cipher rounds.

Is this to match evaluation on the kappa expression with the evaluation of an arrow expression?

I typo'ed, actually meant to say closure_conversion. But still yes -- our ultimate objective is to connect the Gallina spec to the netlist implementation, so if we connect the kappa expression to the spec, we need to connect the kappa expression to the netlist implementation, which means we have to prove each stage in that chain.

I think the unrolled_opentitan_cipher.v in particular will be informative, and unrolled_naive_cipher.v optional - e.g. we might want to depart further from the design of the OpenTitan modules for simplicity. The unrolled_naive_cipher.v version should be the easiest to prove as its the most direct from the spec, e.g. the unrolled_opentitan_cipher mixes the key expansion with the cipher rounds.

Okay, maybe I'll switch to working on the unrolled_opentitan_cipher now and move back to naive if I'm struggling with it. Thanks!


Update itef for /la geo

Resolves: MWPW-133115
es-LA means "spanish-Laos". 419 is the UN M49 code for "Latinoamerica".
URL for testing:

https://patch-1--cc--hparra--adobecom.hlx.page/

Approving this as discussed in meeting and adding Do not merge label.
We need confirmation regarding the correct ietf for la. Currently www.adobe.com home page has es-CL.

Superseded by https://github.com/adobecom/cc/pull/75


Add missing angle bracket in readme template

Tiny change but I noticed it was missing :)

Tiny changes are welcome changes too. Thanks.


Merge TDigest with different compression factors

Sometimes we get a TDigest field with different compression factors(For example, we change compression factor but some users still use old versions of product that still have old compression factors). The current Merge function can't handle that. Can we extend the Merge function to support that?
On the other hand, we currently follow these steps to merge it. Would this make sense?

Destruct the tdigest into a list of centroids and weights.
Unnest the list of centroids and weights.
Merge the centroids and weights into a single tdigest with the specified compression by using TDIGEST_AGG(m, w, compression)

Thanks.

The merge can be done, but you will only be able to guarantee to meet the
invariant for weaker compression of the items being merged.
This is even more complex than it sounds because some changes in 3.2 => 3.3
changed the effective meaning of the compression factor.
One way to deal with this is to do the merge and then examine the result to
determine how high the compression factor can still be.
Does this make sense?
On Tue, Sep 24, 2024 at 9:31 PM jameswang2015 @.***>
wrote:

Sometimes we get a TDigest field with different compression factors(For
example, we change compression factor but some users still use old versions
of product that still have old compression factors). The current Merge
function can't handle that. Can we extend the Merge function to support
that?
On the other hand, we currently follow these steps to merge it. Would this
make sense?

Destruct the tdigest into a list of centroids and weights.
Unnest the list of centroids and weights.
Merge the centroids and weights into a single tdigest with the
specified compression by using TDIGEST_AGG(m, w, compression)

Thanks.
—
Reply to this email directly, view it on GitHub
https://github.com/tdunning/t-digest/issues/221, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAB5E6TGZEOELCPXGXRYJN3ZYG4ZXAVCNFSM6AAAAABOY75366VHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2DMMRRGYZTSNQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Thanks @tdunning  for the advise! What's the effective meaning change for the compression factor by 3.2 => 3.3 upgrade? We observes that now the compression factor is most likely equal to the size of centroid means/weights, does this sound right to you?

Yes. That is about right. But I'm 3.2, the number of centroids was about
twice as many for the same compression value
On Wed, Oct 2, 2024, 05:36 jameswang2015 @.***> wrote:

Thanks @tdunning https://github.com/tdunning for the advise! What's the
effective meaning change for the compression factor by 3.2 => 3.3 upgrade?
We observes that now the compression factor is most likely equal to the
size of centroid means/weights, does this sound right to you?
—
Reply to this email directly, view it on GitHub
https://github.com/tdunning/t-digest/issues/221#issuecomment-2387563135,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAB5E6T4IU4G6XL36Z56GOTZZNS33AVCNFSM6AAAAABOY75366VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBXGU3DGMJTGU
.
You are receiving this because you were mentioned.Message ID:
@.***>


Figure out why kotlintest brings in logging to other projects

Everytime I start a new project, I get loads of kotlintest logging.
Now, simply having the logging statements shouldn't matter. Something is bringing in a logging configuration and I think it's KT. Although the log4j dependencies are only in test scope.

Same issue as this, although I'm not using spring boot.
https://github.com/kotlintest/kotlintest/issues/394

Perhaps the user's configuration isn't blocking KotlinTest, and we should add a config to explicitly block it?

I've created a blank project with no other deps and it still happens. So it's either KotlinTest to blame or something KT brings in.


Fixed invalid JSON payloads in REST API's authorities resource

These end up in documentation, making your API requests fail if you copy-paste as is.

Coverage remained the same at 61.965% when pulling 0304f3591db67117ad26f7836291f61bf48140c1 on cdanger:cdanger-patch-1 into acd2701fa26d910874bb353a7e327596de9ead23 on Netflix:master.

lgtm thanks!


Starting mariadb dababase server mariadbd fail on Ubuntu 22.04

Version
Microsoft Windows [Version 10.0.19044.1645]
WSL Version

[X] WSL 2
[ ] WSL 1

Kernel Version
Linux version <IP_ADDRESS>-microsoft-standard-WSL2 (oe-user@oe-host)
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps

Install Ubuntu 22.04 from Microsoft Store
Run Ubuntu 22.04
Run sudo apt update
Run sudo apt upgrade
Run sudo apt mariadb-server mariadb-client
Run sudo service mariadb start   <----- here comes the error: [fail]

Additional info:

netstat.exe /an | grep 3306 return nothing

Expected Behavior
I wish it would work
Actual Behavior

Diagnostic Logs
No response

@kanlukasz netstat.exe is a Windows app, it won't work Linux sockets. Try ss instead. MariaDB does start on Ubuntu 22.04:
tux@eleven:~$ sudo service mariadb start
 * Starting MariaDB database server mariadbd                                                                     [ OK ]

tux@eleven:~$ sudo service mariadb status
 * /usr/bin/mysqladmin  Ver 9.1 Distrib 10.6.7-MariaDB, for debian-linux-gnu on x86_64
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Server version          10.6.7-MariaDB-2ubuntu1
Protocol version        10
Connection              Localhost via UNIX socket
UNIX socket             /run/mysqld/mysqld.sock
Uptime:                 3 sec

Threads: 1  Questions: 61  Slow queries: 0  Opens: 33  Open tables: 26  Queries per second avg: 20.333

In your case the service fails to start. Try running the server from command line, like  sudo mysqld --verbose --user root and see what might cause the service not run successfully.
The output should be like this:
tux@eleven:~$ sudo mysqld --verbose --user root
2022-05-10  7:29:31 0 [Note] mysqld (server 10.6.7-MariaDB-2ubuntu1) starting as process 1471 ...
2022-05-10  7:29:31 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-05-10  7:29:31 0 [Note] InnoDB: Number of pools: 1
2022-05-10  7:29:31 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2022-05-10  7:29:31 0 [Note] InnoDB: Using liburing
2022-05-10  7:29:31 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
2022-05-10  7:29:31 0 [Note] InnoDB: Completed initialization of buffer pool
2022-05-10  7:29:31 0 [Note] InnoDB: 128 rollback segments are active.
2022-05-10  7:29:31 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-05-10  7:29:31 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-05-10  7:29:31 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2022-05-10  7:29:31 0 [Note] InnoDB: 10.6.7 started; log sequence number 42479; transaction id 14
2022-05-10  7:29:31 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-05-10  7:29:31 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2022-05-10  7:29:31 0 [Note] InnoDB: Buffer pool(s) load completed at 220510  7:29:31
2022-05-10  7:29:31 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
2022-05-10  7:29:31 0 [Note] Server socket created on IP: '<IP_ADDRESS>'.
2022-05-10  7:29:31 0 [Note] mysqld: ready for connections.
Version: '10.6.7-MariaDB-2ubuntu1'  socket: '/run/mysqld/mysqld.sock'  port: 3306  Ubuntu 22.04


Adding font support for Lato-Heavy

I have a feeling that this might be a longshot for instant approval, however, I am adding support for a cleaner, open-source font called Lato-Heavy. I will continue work on this branch in order to provide support for both the original RuneLite fonts and Lato-Heavy.

I dont think straight replacing the runescape fonts with something else will ever be added. You would have better chance with just adding support for new fonts. But also, it is design decision to use RuneScape fonts everywhere to stay with the look of the game, using other font will just look way off.


Support for imx93?

We are happy to accept contributions, so far we have no internal plan or resources to support this P/N.


Test bundling clean up - remove possibility to run on many devices

Almost a year ago, we had a very different vision for Patrol CLI.
This requirement doesn't make sense anymore, because Patrol 1.0 happened and test bundling happened. Currently, once the app is installed and started, Patrol CLI's role ends.
So now we have lots of test orchestration-related code that is not used at all (mainly in test_runner.dart and devices.dart).
In my opinion, Patrol CLI shouldn't care about orchestration at all. It is not its job. There are existing tools that already do orchestration well, e.g. Marathon Test Runner.

@mateuszwojtczak @jBorkowska Yesterday we talked about printing a deprecation warning when patrol test is called with more than a single device.
After thinking about it again, I'm against it. We want to get rid of this functionality anyway, and since it'll be released in 2.0, breaking changes are OK.

Deprecation warning has been added in #1318.


F4 does not continue search after replace

VSCode Version: 1.37.1
OS Version: Win 10 64 bit German

Steps to Reproduce:

CTRL + SHIFT + F; enter some criteria and search you folder
Click the tenth hit and replace the finding. The search result is removed from the view
press F4 and observe that the search does not continue with the hit that was the eleventh before but starts over at the first, instead.
I'm in the process of replacing calls to  htmleditformat by EncodeForHTMLAttribute. I want to leave some occurrences as they are, for now, and therefore step through the search result carefully.
Currently, I track manually where I was and continue by clicking on the search result I believe to be the next in line.

I'd like F4 to continue with what was the next match and not starting over again.

already covered by an existing one

https://github.com/microsoft/vscode/issues/20467 indeed looks familiar.


x/tools/go/expect: test fails when run from the module cache

The test for golang.org/x/tools/go/expect fails when run from another module.
A go.mod file was added to the package's testdata directory in CL 216838. However, that cuts off the testdata directory from the rest of the module: there is no special handling for go.mod files in testdata directories (see #27852). The missing testdata directory causes the test to fail when it is run from anywhere other than a clone of the tools repository — notably, including when it is run from the module cache, including as a dependency of any other module.
$ go version
go version devel +0951939f Fri Jul 17 19:09:40 2020 +0000 linux/amd64

$ go test golang.org/x/tools/go/expect
--- FAIL: TestMarker (0.00s)
    --- FAIL: TestMarker/testdata/test.go (0.00s)
        expect_test.go:57: open testdata/test.go: no such file or directory
    --- FAIL: TestMarker/testdata/go.mod (0.00s)
        expect_test.go:57: open testdata/go.mod: no such file or directory
FAIL
FAIL    golang.org/x/tools/go/expect    0.012s
FAIL

-- go.mod --
module example.com

go 1.15

require golang.org/x/tools v0.0.0-20200720150256-cf97b7f4a4c1 // indirect

CC @stamblerre @ridersofrohan @ianthehat

Probably the correct fix for this and for #40310 will be to have go.mod.in files in the testdata directories, and then just write them out to the temporary directories during the actual tests.


Showing negative

Not sure what happened but I went to craft my first set of bloods for the day and the overlay is showing a negative number

@rmb938 This is currently being worked on, and should be fixed soon.

https://github.com/Waldxn/ZeahRCTracker/commit/745ca8747b6eba4e43f2ec13d1ed1123466e9c40
Fixed your issue with this commit @rmb938.

Awesome thanks!
On Wed, Sep 6, 2023, 6:53 PM Waldxn @.***> wrote:

745ca87
https://github.com/Waldxn/ZeahRCTracker/commit/745ca8747b6eba4e43f2ec13d1ed1123466e9c40
Fixed your issue with this commit @rmb938 https://github.com/rmb938.
—
Reply to this email directly, view it on GitHub
https://github.com/Waldxn/ZeahRCTracker/issues/3#issuecomment-1709269725,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEE6IP5FC2TXG7AJNUNAQTXZEEGXANCNFSM6AAAAAA25PBJGY
.
You are receiving this because you were mentioned.Message ID:
@.***>


Gather information on how is willed to contribute

created a sheet to gather the information

https://docs.google.com/spreadsheets/d/1SXX4F3i2vIZmMxgD4HtmiiUY1fB3OwPc_xziOoO_Zpk/edit#gid=0


Allow wildcard fields in FragmentReplacement

Assuming I have the following GraphQL type:
type AudioListen implements Activity {
  id: ID!
  user: User!
  audio: Audio!
}

I'd like to be able to add a wildcard FragmentReplacement
export const fragmentReplacements: FragmentReplacement[] = [
  {
    field: '*',
    fragment: '... on AudioListen { user { id } }',
  },
];

So that the user ID is always fetched if any of the fields are fetched.

Hey @smkhalsa,
Could you share the chunk of code where you need it? I think we just have to turn the problem around a bit to get it working.

@maticzav I'm not sure what exactly you're asking for.
As mentioned above, I'd like to be able to use the * wildcard in FragmentReplacements so that certain fields are always included in the result.
Expanding on the above example, if I had the following query:
query {
  getAudioListen(id:"123") {
    id
    audio {
      id
    }
  }
}

Even though my query doesn't include any selections for user, I'd still want the response to include the user.id so that it can be used in a graphql-shield rule.

Each rule accepts a fragment option that you may use to specify which fields it relies on. Based on where you use the rule, graphql-shield will generate the fragment replacement that you later forward to server.
Check out the docs here


Update circe-core, circe-parser, ... to 0.14.8

About this PR
📦 Updates

io.circe:circe-core
io.circe:circe-parser
io.circe:circe-refined

from 0.14.6 to 0.14.8
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "io.circe" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "io.circe" }
}]

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

Superseded by #503.


django.template.exceptions.TemplateSyntaxError: Invalid Same Error : template name in 'extends' tag: ''. Got this from the 'current_module.base_template' variable.

I saw this issue was created before, but the solutions presented did not help me. I ran "python manage.py startmodule reportdashboard" just to narrow down my issue. I uncommented all of the code provided with the "startmodule" command, but I am still getting the same error.
Internal Server Error: /ReportDashboard/mymodel/ Traceback (most recent call last):   File "C:\Users\snyderd1\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\handlers\exception.py", line 35, in inner     response = get_response(request)   File "C:\Users\snyderd1\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\handlers\base.py", line 158, in _get_response     response = self.process_exception_by_middleware(e, request)   File "C:\Users\snyderd1\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\handlers\base.py", line 156, in _get_response     response = response.render()   File "C:\Users\snyderd1\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\response.py", line 106, in render     self.content = self.rendered_content   File "C:\Users\snyderd1\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\response.py", line 83, in rendered_content     content = template.render(context, self._request)   File "C:\Users\snyderd1\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\backends\django.py", line 61, in render     return self.template.render(context)   File "C:\Users\snyderd1\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\base.py", line 175, in render     return self._render(context)   File "C:\Users\snyderd1\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\base.py", line 167, in _render     return self.nodelist.render(context)   File "C:\Users\snyderd1\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\base.py", line 943, in render     bit = node.render_annotated(context)   File "C:\Users\snyderd1\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\base.py", line 910, in render_annotated     return self.render(context)   File "C:\Users\snyderd1\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\loader_tags.py", line 132, in render     compiled_parent = self.get_parent(context)   File "C:\Users\snyderd1\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\loader_tags.py", line 122, in get_parent     raise TemplateSyntaxError(error_msg) django.template.exceptions.TemplateSyntaxError: Invalid template name in 'extends' tag: ''. Got this from the 'current_module.base_template' variable.
Any help would be appreciated. Thanks.
reportdashboard.zip

This could happen of you directly include a frontend view. Frontend views could be used only as part of frontend module and all urls included as a single frontend.urls entry.

I've been banging my head on this all morning. That was exactly the issue. Thanks for the fast response!

помогите плз

This could happen of you directly include a frontend view in a url config. Frontend views could be used only as part of frontend module and all urls included as a single frontend.urls entry.

Hello,
I have been playing with viewflow and have bump into the same error, and reading your answer i haven't been able to resolve the issue for weeks now. Please If you got time kindly review my attached code.
djangotut-viewflow-main.zip

This could happen of you directly include a frontend view in a url config. Frontend views could be used only as part of frontend module and all urls included as a single frontend.urls entry.

Hello,
I have been playing with viewflow and have bump into the same error, and reading your answer i haven't been able to resolve the issue for weeks now. Please If you got time kindly review my attached code.
djangotut-viewflow-main.zip

it's happens b/c module urls.py was directly include into global url config.

it's happens b/c module urls.py was directly include into global url config.


Updates classroom creation details

The PR updates the classroom creation details in the LaCE-onboarding-guide wiki page.

Thanks @Nik-09, looks great!
One request: could you please delete the old images (after verifying they're not used any more)? Thanks.

@seanlip Done, PTAL


Localization

https://lingui.dev
https://blog.nimblepros.com/blogs/localization-aspnet-core-api
https://crowdin.com

OrchardCore.Localization.PortableObject
dotnet tool install --global OrchardCoreContrib.PoExtractor
https://docs.orchardcore.net/en/main/docs/reference/modules/Localize/


Jest integration tests with auth'd GET REST calls

Jest preferred
Add read-only API key/secret as github secret
Build latest version and assert successful auth'd GET requests using those credentials

Fixed in #26


TypeError: csvParser.getEol is not a function

I am trying to every row  by using the function "record_parsed". It is giving me the error "TypeError: csvParser.getEol is not a function"
Here is the code I am using
var fs = require("fs");
var converter=new require("csvtojson").Converter({
    constructResult:false,
    workerNum:4,
    eol: '\n'
});
var fileStream = fs.createReadStream("./app/controllers/file.csv");
csvConverter.on("record_parsed",function(resultRow,rawRow,rowIndex){
    console.log(resultRow); //here is your result json object
});
fileStream.pipe(converter);

Please note that it works fine when I use "end_parsed" technique which emits json once parsing of whole file is done. Also I omitted the eol parameter from configuration to check if it works, but not succeeded.
Kindly let me know about the solution.

Hi,
I cannot reproduce this issue. I think it is specific to your data.
Can you please upload the csv file you have problem with to https://fileota.com and share me the link?
Also what version of csvtojson you are using?
~Keyang

Close due to no activity


config.ts build fails with newest release

Before submitting your bug report

[X] I believe this is a bug. I'll try to join the Continue Discord for questions
[X] I'm not able to find an open issue that reports the same bug
[X] I've seen the troubleshooting guide on the Continue Docs

Relevant environment info
- OS: MacOS Sonoma 14.6 (M1 Pro)
- Continue: 0.8.45
- IDE: VSCode

Description
My previously-working config.ts has stopped working in the latest release. Rolling back to 0.8.44 fixes the issue.
The following message appears in VSCode web devtools:
Build error. Please check your ~/.continue/config.ts file: TypeError [ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING]: A dynamic import callback was not specified.

mainThreadExtensionService.ts:78 [Continue.continue]Parsing failed
mainThreadExtensionService.ts:79 Error: Parsing failed
	at _Parser.parse (vscode-file://vscode…tension.js:89161:81)
	at _ImportDefinitionsService._getFileInfo (vscode-file://vscode…tension.js:90067:28)
	at async PrecalculatedLruCache.initKey (vscode-file://vscode…tension.js:88017:25)

Not sure if this helps, but I noticed that none of the files in ~/.continue have been updated recently (with the exception of folders like index and sessions). Not sure if you attempt to manage those across releases somehow.
To reproduce
Attempt to load extension (via Reload Window, etc)
Log output
No response

Hey @mjmaurer , mind sharing your config.ts/config.json? We made some updates to tsconfig in this release that might be what's causing this issue.

Sure no problem @Patrick-Erichsen
config.ts
//// <reference types="/Users/mmaurer7/.continue/types/core/index.d.ts" />
export function modifyConfig(config: Config): Config {
  const anthropicKey = process.env.ANTHROPIC_API_KEY;
  if (anthropicKey) {
    config.models.push({
      title: "Claude 3.5 Sonnet",
      provider: "anthropic",
      model: "claude-3-5-sonnet-20240620",
      apiKey: anthropicKey,
    });
    console.info("Antropic loaded");
  } else {
    console.error("Missing ANTHROPIC_API_KEY");
  }
  const codestralKey = process.env.CODESTRAL_API_KEY;
  if (codestralKey) {
    const codstral: ModelDescription = {
      title: "Codestral Latest",
      provider: "mistral",
      model: "codestral-latest",
      apiKey: codestralKey,
    };
    config.models.push(codstral);
    config.tabAutocompleteModel = codstral;
    console.info("Codestral loaded");
  } else {
    console.error("Missing CODESTRAL_API_KEY");
  }
  const voyageKey = process.env.VOYAGE_API_KEY;
  if (voyageKey) {
    config.embeddingsProvider = {
      provider: "openai",
      model: "voyage-code-2",
      apiBase: "https://api.voyageai.com/v1/",
      apiKey: voyageKey,
    };
    console.info("Voyage loaded");
  } else {
    console.error("Missing VOYAGE_API_KEY");
  }
  const openAiKey = process.env.OPENAI_API_KEY;
  if (openAiKey) {
    config.models.push({
      title: "GPT 4",
      provider: "openai",
      model: "gpt-4",
      apiKey: openAiKey,
    });
    config.models.push({
      title: "GPT 4o",
      provider: "openai",
      model: "gpt-4o",
      apiKey: openAiKey,
    });
    console.info("OpenAI loaded");
  } else {
    console.error("Missing OPENAI_API_KEY");
  }

  return config;
}

config.json
{
    "models": [],
    "customCommands": [
        {
            "name": "test",
            "prompt": "{{{ input }}}\n\nWrite a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
            "description": "Write unit tests for highlighted code"
        },
        {
            "name": "check",
            "description": "Check for mistakes in my code",
            "prompt": "{{{ input }}}\n\nPlease read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant:\n- Syntax errors\n- Logic errors\n- Security vulnerabilities\n- Performance issues\n- Anything else that looks wrong\n\nOnce you find an error, please explain it as clearly as possible, but without using extra words. For example, instead of saying 'I think there is a syntax error on line 5', you should say 'Syntax error on line 5'. Give your answer as one bullet point per mistake found."
        }
    ],
    "allowAnonymousTelemetry": false
}

Neat use case for config.ts!
Thanks for sharing though. Will look into this tomorrow 👍

I caught the same error when I was trying to set up a custom model. I tried to paste the code from this instruction, but there are no new models in the list.
https://docs.continue.dev/setup/configuration#defining-a-custom-llm-provider

Does this still happen with Pre-Release 0.9.145?

Does this still happen with Pre-Release 0.9.145?

yes, it is still happen with v0.9.195 pre-release

I just wanted to mention that I experienced the same problem with my custom context provider after updating the extension to 0.8.45.
Reverting to 0.8.44 solved the problem for me too.

For folks experiencing this issue, would you be able to share the Node.js version being used by your VS Code? (in the "About - VS Code" menu in the upper left on your Mac when in VS Code)

I'm on Windows and my custom context providers built in the config.ts are no longer showing up. I can't find anything in any Continue-related logs/output that would explain why they aren't showing up.
Here is my VS Code's "About" dialog contents:
Version: 1.92.0 (user setup)
Commit: b1c0a14de1414fcdaa400695b4db1c0799bc3124
Date: 2024-07-31T23:26:45.634Z
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.22631

Version: 1.92.0 (Universal)
Commit: b1c0a14de1414fcdaa400695b4db1c0799bc3124
Date: 2024-07-31T23:26:45.634Z (1 wk ago)
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 23.6.0

It occurred with sample config from the doc.
Version: 1.92.1
Commit: eaa41d57266683296de7d118f574d0c2652e1fc4
Date: 2024-08-07T20:16:39.455Z (1 day ago)
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 23.6.0

Error in the dev tools console:
[Extension Host] Build error. Please check your ~/.continue/config.ts file: TypeError [ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING]: A dynamic import callback was not specified.

@mjmaurer @migs911 @AlrikOlson @fry69 - this should be resolved with https://github.com/continuedev/continue/pull/1975.
Previously we were targeting CommonJS in the core package, which transpiled the dynamic import used in our config loading, but we recently moved to targeting ESNext and now need to explicitly transpile dynamic imports when packaging the extension.
Apologies for the bug, and thanks all for your help troubleshooting!
This fix will be included in the next pre-release later today.

Current Pre-Release 0.9.196 contains this fix, please test and confirm it the problem is solved.

Current stable versions >=0.8.46 (and Pre-Release >=0.9.196) contain this fix, please test and confirm if the problem is solved (or not).

Just upgraded to 0.8.46 and things seem to be working again for me. Thanks for getting the fix out so fast!


Use TC REST 9.0 API for obtaining build type of build dependencies

Intentional or not, TC REST 9.0 doesn't allow guestAuth gets of vcs-root
Added basic HTTP authentication

I don't want to require authentication.  This would be way too much friction for something that is only outputed in comments.  It just isn't worth it for VCS information.  I commented out the vcs information.
I was expecting the upgrade in the API to be much worse.  I spent time yesterday going through each xml document returned to see the differences.  In the end, it would have probably been easier to just run it and see what broke.


feat: Allow config options via publicRuntimeConfig

When deploying an application over the container, it is necessary to config the options via publicRuntimeConfig.

Thanks


Add Remaping support

Pass the intermediate source map to the instrumenter that can be used to remap the coverage report to the original source. Requires istanbuljs/istanbul-lib-instrument#23. A more detailed explanation can be found in istanbuljs/istanbul-lib-source-maps#4
Fixes #22, #7, karma-runner/karma-coverage#109 and handles #25

The required changes have been accepted... The PR is good to go

@deepsweet  Is the PR good to go from your perspective? Would allow me to switch back to your official version.

👍


Failure to apply a lot of changes in one pass

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Affected Resource(s)
All during Create/Update/Delete operations
Terraform Configuration Files
pastebin link - 390 lines, 3 variables
Debug Output
5 error(s) occurred:

* artifactory_local_repository.maven_release: 1 error(s) occurred:

* artifactory_local_repository.maven_release: PUT https://code0x58test.jfrog.io/code0x58test/api/repositories/x-libs-release-local: 400 [{Status:400 Message:Could not merge and save new descriptor [org.jfrog.common.ExecutionFailed: Last retry failed: exceeded number of retries 5. Not trying again (Should update revision 252)]
}]
* artifactory_local_repository.maven_snapshot: 1 error(s) occurred:

* artifactory_local_repository.maven_snapshot: PUT https://code0x58test.jfrog.io/code0x58test/api/repositories/x-libs-snapshot-local: 400 [{Status:400 Message:Could not merge and save new descriptor [org.jfrog.common.ExecutionFailed: Last retry failed: exceeded number of retries 5. Not trying again (Should update revision 252)]
}]
* artifactory_local_repository.rpm: 1 error(s) occurred:

* artifactory_local_repository.rpm: GET https://code0x58test.jfrog.io/code0x58test/api/repositories/x-rpm-local: 400 [{Status:400 Message:Bad Request}]
* artifactory_remote_repository.npm: 1 error(s) occurred:

* artifactory_remote_repository.npm: PUT https://code0x58test.jfrog.io/code0x58test/api/repositories/x-npm-remote: 400 [{Status:400 Message:Could not merge and save new descriptor [org.jfrog.common.ExecutionFailed: Last retry failed: exceeded number of retries 5. Not trying again (Should update revision 252)]
}]
* artifactory_virtual_repository.pypi: 1 error(s) occurred:

* artifactory_virtual_repository.pypi: GET https://code0x58test.jfrog.io/code0x58test/api/repositories/x-pypi: 400 [{Status:400 Message:Bad Request}]

Expected Behavior
I'd expect it to succeed like when it was smaller, or as it does after a couple of applies.
Actual Behavior
Artefactory can't keep up. It looks like there's a race to save the config which is worked around with server side retries, but that doesn't work when too many changes occur at once.
Steps to Reproduce

terraform apply

Important Factoids
I suspect it's possible to do something like set MaxConnsPerHost to 1 on the transport of the HTTP client, that way an instance of the terraform provider shouldn't be introducing the races that it otherwise would.
Work arounds include repeating terraform apply until the state converges, and running terraform apply --parallelism=1 which isn't super as other non-Artefactory providers will suffer.
There is a server side config option mentioned here that sets the number of retries, while not a solution, it should be a lead for reading up if needed.

I tried a crude patch to limit MaxConnsPerHost, but it didn't fix it:
diff --git a/pkg/artifactory/provider.go b/pkg/artifactory/provider.go
index cb41084..6f10fcd 100644
--- a/pkg/artifactory/provider.go
+++ b/pkg/artifactory/provider.go
@@ -62,16 +62,21 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) {
        password := d.Get("password").(string)
        token := d.Get("token").(string)

+       t := http.DefaultTransport.(*http.Transport)
+       t.MaxConnsPerHost = 1
+
        var client *http.Client
        if username != "" && password != "" {
                tp := artifactory.BasicAuthTransport{
-                       Username: username,
-                       Password: password,
+                       Username:  username,
+                       Password:  password,
+                       Transport: http.DefaultTransport,
                }
                client = tp.Client()
        } else if token != "" {
                tp := &artifactory.TokenAuthTransport{
-                       Token: token,
+                       Token:     token,
+                       Transport: http.DefaultTransport,
                }
                client = tp.Client()
        } else {

Duplicate of #9. The suggested workaround is to set parallelism to 1.
JFrog also provided an alternative solution, they recommended increasing this property to artifactory.central.config.save.number.of.retries=20 in artifactory.system.properties. With this you can keep terraform multithreaded however we have noticed some infrequent errors with access related resources can occur when doing batch operations (such as users, groups, permissions).
I have looked at client side throttling in the past, but I think the ideal solution would be retries with exponential backoff, this would have to be added to every resource. This is not a priority however since the issue is worked around easily.


[CORE-4255] fix ssl read error

Mark connection as EOF if SSL_ERROR_SYSCALL is returned during an SSL_read and errno == 0 and the OpenSSL error stack is empty.

Force push 43a3440:

Adjusted the comment


Replace Elasticsearch with Opensearch

Since we are trying to deprecate Mini soon, this PR tries to make as minimal changes as possible. Therefore there are lots of places that elasticsearch and kibana terms are still in use.

Moved to https://github.com/snowplow/snowplow-mini/pull/369


No access to connections for users with role "editor"

Hi,
im using sqlpad in docker (latest version).
I have set as admin a connection to a MariaDB-Database. For the admin it works: I can access to the database and so on.
I created a further user with the role "editor". I also creates an "access" for this user and for the database. But if I log in with this user, I cannot see any database connections and I cannot choose database connections.
Even if I create an access "Every Connection" for "everyone" this editor-user cannot see any conenctions.
So what Im doing wrong?
EDIT:
If I click on "Queries" I can find the connection I set up. So obviously the "chose connection"-field for "editor"-users is missing.
EDIT2:
Admin View:

Editor View:

Same thing here.

Same thing here.

Sorry @dgorender @m50434 just getting to this. For editors the dropdown is not shown if only 1 connection is present.
Does running a query work?
I'll have to see if I can reproduce with a fresh environment.
I'm thinking that maybe we render something else instead of a dropdown for this instance to inform what database is connected.

Sorry @dgorender @m50434 just getting to this. For editors the dropdown is not shown if only 1 connection is present.
Does running a query work?
I'll have to see if I can reproduce with a fresh environment.
I'm thinking that maybe we render something else instead of a dropdown for this instance to inform what database is connected.

Sorry for the confusion with this. In next version there will be a connection name rendered if there is not an option to select a connection, which only occurs if the user is an editor and has access to only 1 connection..

@rickbergfalk actually we did that intentionally. Why would you display a connection name if there are no options to select from? I think the use case here is that of "personalization" (i.e. different sqlpad instances look the same) which should be handled differently.
If possible I'd prefer the ability to remove the clutter.

Ref #662

Reopening for discussion...
@eladeyal-intel I remember the hiding was done intentionally, but it didn't occur to me that it might be confusing to the end user.
Hiding the dropdown might make sense if the SQLPad instance is known to only connect to 1 specific database, but in the event where multiple database connections exist, and the end user only has access to 1 of them, removing the thing that indicates which database they are connected can be confusing.
As you bring up, if there are multiple single-connection instances running, the user needs some indication as to which instance they are connected to.
Any thoughts how this information could be conveyed if not by showing the connection name near the database schema button?

Ok to close


onChangeFullscreen event different on android and ios

there is a typo in the onChangeFullscreen handler. On iOS the event contains the paremeter isFullScreen and on android it is names e.isFullscreen (without capital S). This is very confusing.

@MrLoh Could not discover the error. They are both isFullscreen


Removed duplicate Code

same code at Line 1005 to 1007
if (isset($data['__options_variants']) && $data['__options_variants']['replace']) {
$this->removeArticleDetails($article);
}

1. Why is this change necessary?
Clean and smooth code?
2. What does this change do, exactly?
Nothing just clean up
3. Describe each step to reproduce the issue or behaviour.
4. Please link to the relevant issues (if any).
5. Which documentation changes (if any) need to be made because of this PR?
6. Checklist

[ ] I have written tests and verified that they fail without my change
[ ] I have squashed any insignificant commits
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[ ] I have read the contribution requirements and fulfil them.

Hello,
thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/issues/SW-24287
Please use this issue to track the state of your pull request.

Hey @Grizaster, thank you very much for your contribution! 💙


Adds LR decay scheduler.

Adds schedulers.add_argparse_args
Refactors _get_lr_scheduler

I added some other functions to schedulers, to support converting from yoyodyne argparse args, to the torch scheduler args. We may also want to consider exposing the interval and frequency of schedule updates to the CLI. In this way, the total_decay_steps for the decay scheduler could be total_decay_iters, and depend on whether you request that the scheduler potentially update every step or epoch.
Also -- when I run my local black, it seems to modify most files, so I reverted that and just used my flake8 config. Is there anywhere I can see the linting setup for this repo, and apply it to my local?
Addresses #28 28

Thanks for this Adam.
Re: the black config stuff, the config it runs is here.
Re: this design, I wonder if it would be easier if you just wrapped the Torch thing and renamed things as you feel? That ought to get rid of at least _map_scheduler_kwargs?  Then we could make our scheduler constructors ignore **kwargs too (like def __init__(arg_i_care_about: T, **kwargs): ...), and we don't need filter_scheduler_kwargs either, I think. However it is extremely possible if I am missing something here.
I don't really understand how to use this either. I wonder if we can do more with clear help strings here. (Sadly the Torch source code is not very helpful.)

Re: this design, I wonder if it would be easier if you just wrapped the Torch thing and renamed things as you feel? That ought to get rid of at least _map_scheduler_kwargs? Then we could make our scheduler constructors ignore **kwargs too (like def init(arg_i_care_about: T, **kwargs): ...), and we don't need filter_scheduler_kwargs either, I think. However it is extremely possible if I am missing something here.

No I think this does sound better. I will do it this way (probably wont get to it until tmrw).

I don't really understand how to use this either. I wonder if we can do more with clear help strings here. (Sadly the Torch source code is not very helpful.)

Is this wrt torch schedulers?

Re: this design, I wonder if it would be easier if you just wrapped the Torch thing and renamed things as you feel? That ought to get rid of at least _map_scheduler_kwargs? Then we could make our scheduler constructors ignore **kwargs too (like def init(arg_i_care_about: T, **kwargs): ...), and we don't need filter_scheduler_kwargs either, I think. However it is extremely possible if I am missing something here.

No I think this does sound better. I will do it this way (probably wont get to it until tmrw).

Cool. I think this would just be straight inheritance---tweaking the __init__ and that's it.

Is this wrt torch schedulers?

Yeah. I wonder if we need some docs about how to use the two schedulers we've enabled. Maybe that's all that's necessary. I also was having trouble understanding the flag help but also the docs in the torch.optim module itself for this class,

The internet says the issue with CircleCI will resolve if you log out of CircleCI and then log back in with GitHub credentials.

The internet says the issue with CircleCI will resolve if you log out of CircleCI and then log back in with GitHub credentials.

I think it wasn't even set up in my fork. Have now done so (after logging in via github).

CircleCI stuff is working now (either because something I did or something you did, not sure). Can you fix these?
./yoyodyne/schedulers.py:6:1: F401 'inspect' imported but unused
./yoyodyne/schedulers.py:128:80: E501 line too long (102 > 79 characters)
./yoyodyne/schedulers.py:134:80: E501 line too long (117 > 79 characters)

May need to run black on that file too after the fact. Other than that LGTM again.

This is weird.
(yoyodyne) (base) adamwiemerslage ~/nlp-projects/morphology/yoyodyne $ black --line-length=79 yoyodyne/schedulers.py
All done! ✨ 🍰 ✨
1 file left unchanged.

This is weird.

It just doesn't break apart strings for you, as you see...wish it did.


Motion detection switch

I would love to see a motion detection switch, and It would be a great help if we could set automation with a motion detection toggle.
Like turn on motions detection when no one at home.
It would be nice if we could get a notification regarding motions that have been detected.

Hello; this feature is already there.


Take care of deploying CertManager

With the new architecture the controller provides a mutation and validation Webhook endpoint. The Webhook must be secured via a certificate in order to be used by Kubernetes.
As a result of that, CertManager is going to become a dependency of Kubewarden. This is going to be used to create and renew this certificate.
The helm chart should take care of installing CertManager.
Acceptance criteria

[ ] The values.yaml file has a new boolean flag that enable/disable the installation of CertManager
By default installing Kubewarden via our helm chart leads to the deployment of CertManager too
If desired, the user can set this flag to false. This will prevent our helm chart from deployment CertManager
[ ] The documentation of our helm chart is updated to reflect this dependency and the usage of this new flag
[ ] The quickstart documentation is updated to reflect this dependency and the usage of this new flag

From cert-manager docs:

Be sure never to embed cert-manager as a sub-chart of other Helm charts; cert-manager manages non-namespaced resources in your cluster and care must be taken to ensure that it is installed exactly once.

I agree with that, plus cert-manager needs its own CRDs, that are cluster wide.
I believe we should not try to install cert-manager as part of our chart, and merely create a cert-manager issuer for self-signed certs, and values to pass the production cert.
We could create the webhook-secret-cert on our own, provided that the user passes the cert and key.

yes, I agree. I don't think it's a good idea to embed cert-manager and add these CRDs in our chart. We can point to cert-manager documention for its installation (similar to what others are doing https://docs.konghq.com/kubernetes-ingress-controller/1.3.x/guides/cert-manager/#set-up-cert-manager). Then we just create the Issuer and Certificate in our helm chart. Actually I am creating Issuer and Certificate in https://github.com/kubewarden/helm-charts/issues/31 in order to make webhooks work when installing kubewarden with helm (assuming cert-manager is already installed).
We could also create a self-signed cert and use it in the webhooks if user does not want to install cert-manager or just to have a quick way of installing and trying kubewarden.


Some question about the coarse

hi,
I have some questions about the coarse supervision
in superbvision.py
1、about mask
if 'mask0' in data:
grid_pt0_i = mask_pts_at_padded_regions(grid_pt0_i, data['mask0'])
grid_pt1_i = mask_pts_at_padded_regions(grid_pt1_i, data['mask1'])

Where is the mask obtained? The data is color ，depth， pose and internal reference
2、  check if mutual nearest neighbor
w_pt0_c_round = w_pt0_c[:, :, :].round().long()
nearest_index1 = w_pt0_c_round[..., 0] + w_pt0_c_round[..., 1] * w1
w_pt1_c_round = w_pt1_c[:, :, :].round().long()
nearest_index0 = w_pt1_c_round[..., 0] + w_pt1_c_round[..., 1] * w0
I don’t quite understand this step, can you give me some interpretation?
3、warp grids
# create kpts in meshgrid and resize them to image resolution
grid_pt0_c = create_meshgrid(h0, w0, False, device).reshape(1, h0w0, 2).repeat(N, 1, 1)    # [N, hw, 2]
grid_pt0_i = scale0 * grid_pt0_c
grid_pt1_c = create_meshgrid(h1, w1, False, device).reshape(1, h1w1, 2).repeat(N, 1, 1)
grid_pt1_i = scale1 * grid_pt1_c
how create kpts(key points)?
Hope to answer, thank you

Hi,

The mask is not necessary when training ScanNet, since all image pairs will be resized to 640x480.
Given warped points at coarse-level, we use i = y*W + x to transfer (x, y) position into flattened index. The operation is performed for both directions of image0-to-image1 and image1-to-image0.
Check this kornia documentation.

thanks a lot！！
In detail, how to compute the overlap score of ScanNet image pairs with dense depths and relative poses？
Is there a corresponding processing file？

 We followed SuperGlue for this part. However, since the code is coupled with some internal infrastructure, we don’t have recent plans to release the code currently.

Can you give me some tips, I want to make my own data set for training

Can you give me some tips, I want to make my own data set for training

Please follow the instructions in the SuperGlue paper.


(Feature Request) Import / Export

Top work on the builder plugin peeps!
Would it be possible to add the import / export traits via the Builder plugin?

Yes, we will do it eventually. But it's considered to be a low priority task. Feel free to post a pull request implementing this feature. Thanks.

Cheers, I will try and have a crack at it

Hi @alekseybobkov
I've got so far with implementing this feature. However, I've never done a pull request before and I've also got a little stuck with the following error when accessing Import page:
Call to undefined method October\Rain\Database\QueryBuilder::getImportFilePath()
How should I proceed in order to resolve this?

OK, sorted the above out, however I don't know how to refresh the model list ( my solution creates scaffolds for the Import and Export models ) after I create the necessary models, so you have to refresh the page for them to appear. Any ideas?
Finally still clueless as to how to perform a pull request :(

hi @seanthepottingshed
here is a tutorial about Pull request : https://yangsu.github.io/pull-request-tutorial
I can also help you to do it. Feel free to contact me on github.

@pvullioud Nice one, you are a LEGEND

Any update about this ? Would be great to be able to facilitate the import / export process of a model with the builder plugin, like for reordering


Blank Project Manager

Godot version:
3.1.1 Stable
OS/device including version:
WIndows 10 Home 64 Bit 16GB RAM
Intel Core i7-7700HQ 2.80 GHz
nVidia 1050 Ti (Driver Version: 436.02)
Issue description:
Project Manager window was completely blank. It functions as it should, but you can't see what you're clicking.
Steps to reproduce:
Open Godot
Minimal reproduction project:

Attempting to run my game give the same result. A blank window.

It's something to do with my video card. When I run the app using my integrated Intel HD 630 it works fine.


Relics - Check use of StSLib's CLICKABLE_DESCRIPTIONS() (from Discord's gkjzhgffjh#4772)

"[#ee0000]Right [#ee0000]click [#ee0000]on [#ee0000]it [#ee0000]to [#ee0000]use.
If you use the rightclickrelic interface from StSLib you can use CLICKABLE_DESCRIPTIONS()[0] instead."

Checked, won't use by now.


Store all enum values of an enum type in the artifact serialization

Currently, the value set of an enum type is not carried on the artifact serialization.

If this information of all possible values of an enum type is stored with the artifact, then we can render them on the UI so that the user can know (without referencing back to the source code):

what the possible values of this enum type are.
which of these enum values the target artifact is.

Implementation-wise, we can either add it somewhere in type_serialization or redesign the content of json_summary


How do you override / turn off fullTemplateTypeCheck?

Type of Issue
[ ] Bug Report
[X] Feature Request

Description
I'm wondering how you can override / turn-off fullTemplateTypeCheck? I have a few third party libraries that aren't yet updated to work for Angular 6 and I need to have this setting turned off to get my library to compile. Changing angularCompilerOptions.fullTemplateTypeCheck to false in lib/ts/conf/tsconfig.ngc.json gets things to compile, but I'd like to know how to do this without trying to change my node_modules folder.
$ node_modules/.bin/ng-packagr --version
ng-packagr: 3.0.1
@angular/*: 6.0.3
typescript: 2.7.2
rxjs: x.y.z
node: x.y.z
npm/yarn: x.y.z

Please include all version numbers that might be relevant, e.g. third-party libraries

You’d need to use the Ng-packagr API.
You can find an example here: https://github.com/dherges/ng-packagr/blob/master/integration/samples/api/ng-packagr-api.js

How would you reference the API in your package.json file?

You can use ts-node or node directly.
You’d do: “build”: node ./ng-packagr-api.js
On Tue, 12 Jun 2018 at 02:52, andrewling89<EMAIL_ADDRESS>wrote:

How would you reference the API in your package.json file?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/dherges/ng-packagr/issues/923#issuecomment-396431344,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQv-WpS1mCpdFEq9kjtzpoePrRTwCTTQks5t7xDOgaJpZM4UZ9s_
.


Forward all clicks option issue (Right Click)

[x] I have read the FAQ.
[x] I have searched in existing issues.

Environment

OS: Windows 10
scrcpy version: 1.18
installation method: Zip containing .exe
device model: Xiaomi Redmi Note 5
Android version: 9

Hello! As I would like to use mouse right-click to open context menu instead of Back button, I've been trying to read
https://github.com/Genymobile/scrcpy/issues/1958
https://github.com/Genymobile/scrcpy/issues/1613
https://github.com/Genymobile/scrcpy/issues/1302
I saw that there is a option --forward-all-clicks and tried to launch with it, but then every mouse clicks change to a normal click, even middle-button... I also saw that --right-click=XXX in #1302 and change XXX to inject, but I didn't really understand if it was implemented.
Am I doing something wrong? Or, is there any other way to work with this right-click?

I saw that there is a option --forward-all-clicks and tried to launch with it, but then every mouse clicks change to a normal click, even middle-button...

Actually, if you press right-click or middle-click, it correctly injects right-click or middle-click. Just your device reacts the same way on these clicks (Android apps initially were not intended to handle right clicks).
It still differs slightly on some components. For example, a right-click on a textfield/textarea should open a contextual menu (at least, on my device, that's what it does).

Well, apparently my device really don't support right-click context menu, via this tool at least, but I don't think it would via OTG either :/
Indeed, if I click and hold with right click at text, the action of menu context doesn't appear, showing that the system indeed interpetates it differently from left-click, but not the right way... Thank you for the help though


Minor refactoring of parse_subarray_map_step and test, not completed

@zonca Could you take a look at my progress on ParseSubarrayMapStep? It fails in this loop:
https://github.com/oirlab/liger_iris_pipeline/blob/d1cd12c53ee5ab2a216e0790d1bb59488f9a06ce/liger_iris_pipeline/parse_subarray_map/parse_subarray_map_step.py#L49-L50
result is a LigerIrisImage and result.meta has no attribute subarr_map to store a list of xstart, ystart, xsize, etc. The schemas are consistent with this. There is result.meta.subarray, but it is designed for one subarray; result.meta.subarray = each works for a single dict.
Can a single LigerIrisImage contain multiple subarrays at this stage? Eventually we should consider that subarrays are only relevant for IRIS, but maybe not just yet.

@astrobc1 reading https://oirlab.github.io/iris-pipeline/parse_subarray_map/index.html it seems like the purpose of the step is to create those fields.
we definitely had subarray map at:
https://github.com/oirlab/liger_iris_pipeline/blob/bce4533eb5dd0eb872e0b0394a78e1cbf0b24a67/iris_pipeline/datamodels/schemas/iris_image.schema.yaml#L17-L21
my bad, I lost that field in the refactoring, it defintely was there, see https://github.com/oirlab/liger_iris_pipeline/blob/bce4533eb5dd0eb872e0b0394a78e1cbf0b24a67/iris_pipeline/datamodels/schemas/tmt_core.schema.yaml#L1979-L1996
I now restored it.

I think we were able to have multiple subarrays, but I don't remember exactly how it worked, let me look into that and report back here.

@astrobc1 actually no, each file only has 1 subarray,
see for example https://github.com/oirlab/liger_iris_pipeline/blob/master/liger_iris_pipeline/tests/test_merge_subarrays.ipynb
so I think subarray map is defined in the "Full frame" to keep track of the subarrays, but the subarrays are not actually in that file but in separate fits files.

example of subarray is at https://figshare.com/articles/dataset/TMT-IRIS_raw_science_frame_subarray/11953512

@astrobc1 there are some examples and explanation around page 60 of the design document


Picking wrong format as "best"

Hi,
I think I have found an edge case where youtube-dl doesn't detect the highest quality format. It should be noted that this is a very unusual video there the highest resolution is 2160p.
I'm using youtube-dl version 2<IP_ADDRESS>.
I realise there are more reported issues on this topic, but I'm still putting in a report as I hope this provides extra information that might be valuable. (As in, it's not really a judgment case as whether do download a webm or mp4 when they are identical sizes, as reported in #3482.)
When I list the formats using
youtube-dl -F --verbose "https://www.youtube.com/watch?v=udAL48P5NJU"

I get this
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-F', '--verbose', 'https://www.youtube.com/watch?v=udAL48P5NJU']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2<IP_ADDRESS>
[debug] Python version 2.7.3 - Linux-3.2.0-4-amd64-x86_64-with-debian-7.7
[debug] exe versions: avconv 0.8.16-6, avprobe 0.8.16-6, ffmpeg 0.8.16-6, ffprobe 0.8.16-6, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] udAL48P5NJU: Downloading webpage
[youtube] udAL48P5NJU: Extracting video information
[youtube] udAL48P5NJU: Downloading DASH manifest
[info] Available formats for udAL48P5NJU:
format code extension resolution  note
139         m4a       audio only  DASH audio   48k , audio@ 48k (22050Hz), 1.20MiB (worst)
171         webm      audio only  DASH audio  113k , audio@128k (44100Hz), 2.57MiB
140         m4a       audio only  DASH audio  129k , audio@128k (44100Hz), 3.19MiB
172         webm      audio only  DASH audio  167k , audio@256k (44100Hz), 3.75MiB
141         m4a       audio only  DASH audio  255k , audio@256k (44100Hz), 6.33MiB
278         webm      256x144     DASH video  138k , webm container, VP9, 15fps, video only, 2.09MiB
160         mp4       256x144     DASH video  111k , 15fps, video only, 2.60MiB
242         webm      426x240     DASH video  186k , 30fps, video only, 2.89MiB
133         mp4       426x240     DASH video  265k , 30fps, video only, 5.99MiB
243         webm      640x360     DASH video  310k , 30fps, video only, 5.67MiB
134         mp4       640x360     DASH video  605k , 30fps, video only, 11.92MiB
244         webm      854x480     DASH video  590k , 30fps, video only, 10.77MiB
135         mp4       854x480     DASH video 1129k , 30fps, video only, 24.88MiB
247         webm      1280x720    DASH video 2128k , 30fps, video only, 26.87MiB
136         mp4       1280x720    DASH video 2234k , 30fps, video only, 50.17MiB
248         webm      1920x1080   DASH video 6555k , 30fps, video only, 57.81MiB
137         mp4       1920x1080   DASH video 4407k , 30fps, video only, 94.93MiB
271         webm      2560x1440   DASH video 57251k , 30fps, video only, 549.30MiB
264         mp4       2560x1440   DASH video 10047k , 30fps, video only, 223.53MiB
313         webm      3840x2160   DASH video 161626k , VP9, 30fps, video only, 1.32GiB
272         webm      3840x2160   DASH video 161626k , 30fps, video only, 1.33GiB
266         mp4       3840x2160   DASH video 22306k , h264, 30fps, video only, 487.68MiB
17          3gp       176x144
36          3gp       320x240
5           flv       400x240
43          webm      640x360
18          mp4       640x360
22          mp4       1280x720    (best)

I suspect that formats 272 or 313 probably should be selected as best.

As indicated by the output, those formats are video only, i.e. do not contain audio. Most of our users (including myself) prefer a 720p video with audio to a 2160p video without.
You can use -f bestvideo if you are fine with videos without sound, or -f bestvideo+bestaudio to download the best video and the best audio format and merge them together. Since this requires external software (ffmpeg/avconv) and results in a couple of artifacts (for example you won't be able to play the video while it's downloading), this is not yet the default, although it certainly may be one day (patches welcome!).

Aha, I didn't understand that aspect of "best". Yep, seems perfectly reasonable - thanks for helping out.


Fix draw order lookup in Intellisense

This patch fixes the Intellisense lookup which currently fails to sort the items by drawing order because Desmos removed a property from Calc.
The property removed was the Calc.controller.listModel.drawOrder. It's changed to Calc.controller.listModel.drawLayers[...].drawOrder. I am not sure why drawLayers is an array instead of an object, but I opened several graphs and they all had only one element. Maybe it's future proofing for later, but whatever the case I hardcoded the zero in the intellisense plugin.

 I could cause the ordering to be unstable. I think a simple reduction should suffice.

I think that should be it. If you need another change let me know.

Now I'm wondering why Intellisense uses the draw order at all. Shouldn't it just use index order in the expressions list (@radian628?)?. Now that they're distinct, this actually matters. That would simplify this sorting code.

I was so focused on leaving the code as unaltered, I didn't stop to think. Yeah, now (more than before) would make more sense to sort by index.

Oh, here is a think I did not consider. @radian628 , the intellisense menu gets updated each time it is invoked (by typing), right?
I ask because if it doesn't then I just introduced indexes that can go stale.


Make my own katalam

I think I could make a system that would serve as a shitty replacement for katalam. This would work with text documents and a loop that would constantly check when new players would be added and so on. It would also post the player list in host channel before the op.
(This would also include working on operation reminders.)

Do you want to leave that for version 2? I'd rather we finish up our existing issues to get version 1 / project 1 done.

It doesn't really matter when we work on issues and when we implement them in my opinion.

That's true, the order that one could do these issues is arbitrary. But I'd like to be able to use the features in version 1 earlier than the features in version 2. That's why I'd like to prioritize the simpler commands in version 1 then work on more complex features in version 2.

It has been made, check PR https://github.com/Uncle-Sagbag/Kakapo/pull/42


I am now test use the sharding-proxy ,but i cann't use "explain" command to see the Implementation plan

I am now test use the sharding-proxy ,but i cann't use "explain" command to see the Implementation plan

proxy is not support "explain" command???????

We have no plan to implement explain command now.
Can you consider about provide a pull request to implement this?

If no response more than 7 days and we cannot reproduce it on current information, we will close it.


test: Don't wait for network to schedule test-verifier

The test-verifier pod needs to run when Cilium is uninstall and therefore shouldn't wait for the network to be ready to be scheduled to a node.
Fixes: #12658
Fixes: #14071

test-4.9

Hmm, interesting. I thought that having a pod in host netns doesn't require the toleration you added.

Yeah, me too. But #14071 has the pod failing to get scheduled in CI a couple times and the only toleration the pod has that could prevent that is node.kubernetes.io/unreachable AFAICS.


[Bug] Llama-3.1-70B-Instruct-q3f16_1-MLC model running across two GPUs with tensor_parallel_shards=2

Grettings to all
🐛 Bug

To Reproduce
Steps to reproduce the behavior:

python3 -m mlc_llm serve HF://mlc-ai/Llama-3.1-70B-Instruct-q3f16_1-MLC --overrides "tensor_parallel_shards=2"

Output error: ValueError: The linear dimension 16384 has 409 groups under group size 40. The groups cannot be evenly distributed on 2 GPUs.
Possible solutions: reduce the number of GPUs, or use quantization with a smaller group size.
Is it possible to run a 3-bit version of the MLC-LLM model using multiple GPUs?
Thanks in advance!

q3 might not suitable for tensor_parallel :(

Hi @shahizat, as the error message has suggested, under 3-bit quantization we cannot divide groups evenly by half and thus for this case it is not supported.


feat: Ensure EFS is owned by the posix_user to avoid permission issues

Description
When specifying a user for running the container, e.g. using the 100:1000 Atlantis user on the default image, the aws_efs_access_point is correctly configured with said posix_user, but the ownership of the root directory is left as the default root:root. This can result in different permission issues, one of which is described in https://github.com/runatlantis/atlantis/issues/2221. By specifying the creation_info, we ensure that the user provided as the executing posix user also owns the directory. If desired, this change can be put behind a feature variable.
Motivation and Context
The issue described in https://github.com/runatlantis/atlantis/issues/2221 is the primary motivation for this change.
Breaking Changes
No breaking changes as such, but this will force recreation of an existing aws_efs_access_point and thus the aws_ecs_task_definition.
How Has This Been Tested?

[ ] I have updated at least one of the examples/* to demonstrate and validate my change(s)
[ ] I have tested and validated these changes using one or more of the provided examples/* projects
[x] I have executed pre-commit run -a on my pull request

@affelaffen I applied this change locally and rebuilt my ECS cluster, EFS volume and EFS Access point and I am still encountering the unsafe repository is owned by someone else issue.
Any suggestion here?

@affelaffen I applied this change locally and rebuilt my ECS cluster, EFS volume and EFS Access point and I am still encountering the unsafe repository is owned by someone else issue.
Any suggestion here?

Do you run the module with user = "100:1000"?

I did - with and without. Each time deleting everything in AWS. I can run
it all again tomorrow but I would end up in 1 of 3 possible situations:

The original issue - git complaining about an unsafe repo
The container would not start because of permission issues
The container would start but Atlantis could not run a plan because of
permission issues

I will have to run it again tomorrow and get more specifics.
The way I have worked around the issue is to use ephemeral container
storage - not ideal but was the only way to move forward.
On Mon, Jun 13, 2022 at 11:26 PM Brian Hansen @.***>
wrote:

@affelaffen https://github.com/affelaffen I applied this change locally
and rebuilt my ECS cluster, EFS volume and EFS Access point and I am still
encountering the unsafe repository is owned by someone else issue.
Any suggestion here?
Do you run the module with user = "100:1000"?
—
Reply to this email directly, view it on GitHub
https://github.com/terraform-aws-modules/terraform-aws-atlantis/pull/287#issuecomment-1154768094,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABOGUJTLMOED4PGGZUQ2HTVPAQ2DANCNFSM5YTXZYUA
.
You are receiving this because you commented.Message ID:
@.***
com>

Since I am using a slightly modified entrypoint script, I did not experience this issue. I tried with a completely new setup and the default image and also ran into the issue with permissions within the /home/atlantis folder. I modified the aws_efs_access_point path to point  directly to the home folder instead, and this seems to have solved the issue.

Since I am using a slightly modified entrypoint script, I did not experience this issue. I tried with a completely new setup and the default image and also ran into the issue with permissions within the /home/atlantis folder. I modified the aws_efs_access_point path to point directly to the home folder instead, and this seems to have solved the issue.

@affelaffen confirmed this works - thanks!

Thank you all for the fix and confirmation that it works!

This PR is included in version 3.17.0 :tada:

This is a breaking change - if you have been running this previously, and have mounted / as your path, changing it to /home/atlantis will result in losing all your previous checkouts and plans. In order to fix it, you need to create a new /home/atlantis in your existing mount, then copy everything over, ensuring permissions are updated


ticking memory connection

Issue description:when ı put a pipe or cable game crashing (ticking memory connection)
ı try other releases but there not initializing
ı try to change java
Version :
Forge: 1.7.10 - <IP_ADDRESS>4 latest one
Mekanism: 1.7.10-<IP_ADDRESS>1 latest one
Other relevant version:
If a (crash)log is relevant for this issue, link it here:
[gist/pastebin
crash-2017-07-30_17.28.45-server.txt
fml-client-latest.log.txt
/etc link here]
/etc link here]

Sorry but 1.7.10 isn't supported anymore.

Not sure what your pack requirements are for forge but i use these versions and i do not have issues. Might help, might not.
forge-1.7.10-<IP_ADDRESS>2-1.7.10
ForgeMultipart-1.7.10-<IP_ADDRESS>5-universal
Mekanism-1.7.10-<IP_ADDRESS>


Add links to dcp-help slack channel

Slack link is now on the help and contact page on the portal as well as the header.