VSCode Crashes Right After the Launch

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.90.0
89de5a8d4d6205e5b11647eb6a74844ca23d2573
x64
OS Version: Ubuntu 18.04.6 LTS

VSCode was working fine but then it suddenly stopped working after I restarted my machine. Every time I clicked on the icon or ran code, the window opened but then it crashed immediately.
I tried completely uninstalling (sudo snap remove code and deleted ~/.config/Code as well as ~/.vscode directory) and reinstalling (sudo snap install code --classic) but no luck :crying_cat_face:
Steps to Reproduce:

Either click on the VSCode icon or run code in a terminal.
The VSCode window will pop up and it will crash immediately

Here is the highlight of the code --verbose command:
$ code --verbose
[0606/123106.283605:ERROR:directory_reader_posix.cc(43)] opendir /home/USER/.config/Code/Crashpad/attachments/7918b9fd-8d91-42d8-acfb-1d29cadf354a: No such file or directory (2)
[13620:0606/123106.379532:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable.
[main 2024-06-06T16:31:06.468Z] [File Watcher (node.js)] Request to start watching: /home/USER/.config/Code/User (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>),/home/USER/.config/Code/User/settings.json (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>)
libGL error: failed to create dri screen
libGL error: failed to load driver: iris
[main 2024-06-06T16:31:06.486Z] Starting VS Code
.
.
.
read out of range
[0606/123107.074588:ERROR:process_memory_range.cc(75)] read out of range
[0606/123107.074591:ERROR:process_memory_range.cc(75)] read out of range
[13620:0606/123107.187815:ERROR:gpu_process_host.cc(993)] GPU process exited unexpectedly: exit_code=133
[13620:0606/123107.187829:WARNING:gpu_process_host.cc(1364)] The GPU process has crashed 1 time(s)
[13791:0606/123107.306511:WARNING:sandbox_linux.cc(418)] InitializeSandbox() called with multiple threads in process gpu-process.
[13620:0606/123107.309456:WARNING:gpu_process_host.cc(1015)] Reinitialized the GPU process after a crash. The reported initialization time was 104 ms
[0606/123107.320486:ERROR:process_memory_range.cc(75)] read out of range
[0606/123107.320500:ERROR:process_memory_range.cc(75)] read out of range
.
.
.

.
.
.
[0606/123107.926274:ERROR:process_memory_range.cc(75)] read out of range
[0606/123107.926281:ERROR:process_memory_range.cc(75)] read out of range
[main 2024-06-06T16:31:07.931Z] [SharedProcess] IPC ready
[main 2024-06-06T16:31:07.931Z] Main->SharedProcess#connect: connection established
[main 2024-06-06T16:31:07.945Z] [File Watcher (node.js)] Request to start watching: /home/USER/.config/Code/User (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>),/home/USER/.config/Code/User/settings.json (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>)
[main 2024-06-06T16:31:07.946Z] [File Watcher (node.js)] Started watching: '/home/USER/.config/Code/User'
[main 2024-06-06T16:31:07.947Z] [File Watcher (node.js)] Started watching: '/home/USER/.config/Code/User/settings.json'
[main 2024-06-06T16:31:07.978Z] [SharedProcess] Overall ready
[13620:0606/123107.979711:INFO:CONSOLE(655)] "%cTRACE color: #888 Renderer->SharedProcess#connect: connection established", source: vscode-file://vscode-app/snap/code/160/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js (655)
[main 2024-06-06T16:31:07.992Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[main 2024-06-06T16:31:08.013Z] [File Watcher (node.js)] Request to start watching: /home/USER/.vscode/extensions (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>),/home/USER/.vscode/extensions/extensions.json (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>)
[main 2024-06-06T16:31:08.014Z] [File Watcher (node.js)] Started watching: '/home/USER/.vscode/extensions'
[main 2024-06-06T16:31:08.015Z] [File Watcher (node.js)] Started watching: '/home/USER/.vscode/extensions/extensions.json'
[13620:0606/123108.059105:ERROR:gpu_process_host.cc(993)] GPU process exited unexpectedly: exit_code=133
[13620:0606/123108.059119:WARNING:gpu_process_host.cc(1364)] The GPU process has crashed 5 time(s)
[main 2024-06-06T16:31:08.151Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[14003:0606/123108.161188:WARNING:sandbox_linux.cc(418)] InitializeSandbox() called with multiple threads in process gpu-process.
[13620:0606/123108.162480:WARNING:gpu_process_host.cc(1015)] Reinitialized the GPU process after a crash. The reported initialization time was 0 ms
[main 2024-06-06T16:31:08.166Z] menubarService#updateMenubar 1
[0606/123108.173115:ERROR:process_memory_range.cc(75)] read out of range
[0606/123108.173131:ERROR:process_memory_range.cc(75)] read out of range
.
.
.
[0606/123108.175902:ERROR:process_memory_range.cc(75)] read out of range
[0606/123108.175906:ERROR:process_memory_range.cc(75)] read out of range
[main 2024-06-06T16:31:08.196Z] Terminal profile not validated zsh [ 'zsh' ]
[main 2024-06-06T16:31:08.196Z] Terminal profile not validated tmux [ 'tmux' ]
[main 2024-06-06T16:31:08.197Z] Terminal profile not validated fish [ 'fish' ]
[main 2024-06-06T16:31:08.197Z] Terminal profile not validated pwsh [ 'pwsh' ]
[13620:0606/123108.334412:ERROR:gpu_process_host.cc(993)] GPU process exited unexpectedly: exit_code=133
[13620:0606/123108.334427:WARNING:gpu_process_host.cc(1364)] The GPU process has crashed 6 time(s)
[13620:0606/123108.334438:FATAL:gpu_data_manager_impl_private.cc(448)] GPU process isn't usable. Goodbye.
[0606/123108.343726:ERROR:process_memory_range.cc(75)] read out of range
[0606/123108.343751:ERROR:process_memory_range.cc(75)] read out of range
.
.
.
[0606/123108.349758:ERROR:process_memory_range.cc(75)] read out of range
[0606/123108.349782:ERROR:process_memory_range.cc(75)] read out of range

/duplicate

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!

Solution:
code --in-process-gpu
source: https://github.com/microsoft/vscode/issues/214478#issuecomment-2152929978

See also https://github.com/microsoft/vscode/issues/212494


[Issue-2703] Extension - Adjust showing/validating address on Earning actions

Related issue: #2703
This PR will effect to 6 screen.

Earn
Cancel Unstake
ClaimReward
Unbond
Withdraw
Confirmation stake

🚀 Deployed on https://pr-3179--sw-web-runner.netlify.app


Error in embedding_proxy.py

After running embedding proxy by embedding_proxy.py:
python embedding_proxy.py --port 11435 --host http://localhost:11434
I changed the  api_base parameter to embedding proxy in settings.yaml :
embeddings:
  async_mode: threaded # or asyncio
  llm:
    api_key: ${GRAPHRAG_API_KEY}
    type: openai_embedding # or azure_openai_embedding
    model: nomic-embed-text:latest
    api_base: http://localhost:11435/v1

Then I tried to run indexing by the new index_app.py, it failed at the end stage.
2024-07-29 22:41:23,311 - api - INFO - ❌ create_final_community_reports
2024-07-29 22:41:23,311 - api - INFO - None
2024-07-29 22:41:23,324 - api - INFO - ⠋ GraphRAG Indexer
2024-07-29 22:41:23,324 - api - INFO - ├── Loading Input (InputFileType.text) - 1 files loaded (0 filtered) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00 0:00:00
2024-07-29 22:41:23,324 - api - INFO - ├── create_base_text_units
2024-07-29 22:41:23,324 - api - INFO - ├── create_base_extracted_entities
2024-07-29 22:41:23,324 - api - INFO - ├── create_summarized_entities
2024-07-29 22:41:23,324 - api - INFO - ├── create_base_entity_graph
2024-07-29 22:41:23,324 - api - INFO - ├── create_final_entities
2024-07-29 22:41:23,324 - api - INFO - ├── create_final_nodes
2024-07-29 22:41:23,324 - api - INFO - ├── create_final_communities
2024-07-29 22:41:23,324 - api - INFO - ├── join_text_units_to_entity_ids
2024-07-29 22:41:23,324 - api - INFO - ├── create_final_relationships
2024-07-29 22:41:23,324 - api - INFO - ├── join_text_units_to_relationship_ids
2024-07-29 22:41:23,325 - api - INFO - └── create_final_community_reports❌ Errors occurred during the pipeline run, see logs for more details.
2024-07-29 22:41:23,361 - watchfiles.main - INFO - 1 change detected
2024-07-29 22:41:23,646 - api - ERROR - Indexing failed

There are some error in the embedding proxy:
INFO:     <IP_ADDRESS>:51300 - "POST /v1/embeddings HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 399, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
    return await self.app(scope, receive, send)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__
    raise exc
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/routing.py", line 756, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/routing.py", line 776, in app
    await route.handle(scope, receive, send)
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/routing.py", line 297, in handle
    await self.app(scope, receive, send)
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/routing.py", line 77, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/routing.py", line 72, in app
    response = await func(request)
               ^^^^^^^^^^^^^^^^^^^
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/fastapi/routing.py", line 278, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/GraphRAG-Local-UI/embedding_proxy.py", line 44, in create_embedding
    total_tokens += result["usage"]["total_tokens"]
                    ~~~~~~^^^^^^^^^
KeyError: 'usage'

It seems there is no data of usage coming from Ollma (model: nomic-embed-text:latest).

https://github.com/ollama/ollama/blob/main/docs/api.md#generate-embeddings
As you can see , there is no usage data from Ollma Embeddings API:
Request
curl http://localhost:11434/api/embed -d '{
  "model": "all-minilm",
  "input": "Why is the sky blue?"
}'

Response
{
  "model": "all-minilm",
  "embeddings": [[
    0.010071029, -0.0017594862, 0.05007221, 0.04692972, 0.054916814,
    0.008599704, 0.105441414, -0.025878139, 0.12958129, 0.031952348
  ]]
}

Request (Multiple input)
curl http://localhost:11434/api/embed -d '{
  "model": "all-minilm",
  "input": ["Why is the sky blue?", "Why is the grass green?"]
}'

Response
{
  "model": "all-minilm",
  "embeddings": [[
    0.010071029, -0.0017594862, 0.05007221, 0.04692972, 0.054916814,
    0.008599704, 0.105441414, -0.025878139, 0.12958129, 0.031952348
  ],[
    -0.0098027075, 0.06042469, 0.025257962, -0.006364387, 0.07272725,
    0.017194884, 0.09032035, -0.051705178, 0.09951512, 0.09072481
  ]]
}

After running embedding proxy by embedding_proxy.py: python embedding_proxy.py --port 11435 --host http://localhost:11434
I changed the api_base parameter to embedding proxy in settings.yaml :
embeddings:
  async_mode: threaded # or asyncio
  llm:
    api_key: ${GRAPHRAG_API_KEY}
    type: openai_embedding # or azure_openai_embedding
    model: nomic-embed-text:latest
    api_base: http://localhost:11435/v1

Then I tried to run indexing by the new index_app.py, it failed at the end stage.
2024-07-29 22:41:23,311 - api - INFO - ❌ create_final_community_reports
2024-07-29 22:41:23,311 - api - INFO - None
2024-07-29 22:41:23,324 - api - INFO - ⠋ GraphRAG Indexer
2024-07-29 22:41:23,324 - api - INFO - ├── Loading Input (InputFileType.text) - 1 files loaded (0 filtered) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00 0:00:00
2024-07-29 22:41:23,324 - api - INFO - ├── create_base_text_units
2024-07-29 22:41:23,324 - api - INFO - ├── create_base_extracted_entities
2024-07-29 22:41:23,324 - api - INFO - ├── create_summarized_entities
2024-07-29 22:41:23,324 - api - INFO - ├── create_base_entity_graph
2024-07-29 22:41:23,324 - api - INFO - ├── create_final_entities
2024-07-29 22:41:23,324 - api - INFO - ├── create_final_nodes
2024-07-29 22:41:23,324 - api - INFO - ├── create_final_communities
2024-07-29 22:41:23,324 - api - INFO - ├── join_text_units_to_entity_ids
2024-07-29 22:41:23,324 - api - INFO - ├── create_final_relationships
2024-07-29 22:41:23,324 - api - INFO - ├── join_text_units_to_relationship_ids
2024-07-29 22:41:23,325 - api - INFO - └── create_final_community_reports❌ Errors occurred during the pipeline run, see logs for more details.
2024-07-29 22:41:23,361 - watchfiles.main - INFO - 1 change detected
2024-07-29 22:41:23,646 - api - ERROR - Indexing failed

There are some errors in the embedding proxy:
INFO:     <IP_ADDRESS>:51300 - "POST /v1/embeddings HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 399, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
    return await self.app(scope, receive, send)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__
    raise exc
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/routing.py", line 756, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/routing.py", line 776, in app
    await route.handle(scope, receive, send)
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/routing.py", line 297, in handle
    await self.app(scope, receive, send)
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/routing.py", line 77, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/starlette/routing.py", line 72, in app
    response = await func(request)
               ^^^^^^^^^^^^^^^^^^^
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/fastapi/routing.py", line 278, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/miniconda3/envs/graphrag/lib/python3.11/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/GraphRAG-Local-UI/embedding_proxy.py", line 44, in create_embedding
    total_tokens += result["usage"]["total_tokens"]
                    ~~~~~~^^^^^^^^^
KeyError: 'usage'

It seems there is no data of usage coming from Ollma (model: nomic-embed-text:latest).
My error is similar to yours, probably a format verification error

  return EmbeddingResponse(
      object="list",
      data=embeddings,
      model=request.model,
      usage={},
  )

when i use this command to query 'python3 -m graphrag.query --data ./indexing/output/20240802-172944/artifacts --method local --community_level 2 "What are the top themes in this story?"'

@JayWu890225 Did you solve the problem ? I have same issue

i also have the problem like : HTTP Request: POST http://localhost:11435/embeddings "HTTP/1.1 404 Not Found"

@JayWu890225 Did you solve the problem ? I have same issue

actually i did not find root casue of this issue.
I changed some code in embed method - embedding.py.
    for chunk in token_chunks:
        try:
            embedding, chunk_len = self._embed_with_retry(text, **kwargs)
            chunk_embeddings.append(embedding)
            chunk_lens.append(chunk_len)

@JayWu890225 Did you solve the problem ? I have same issue

actually i did not find root casue of this issue.
I changed some code in embed method - embedding.py.
    for chunk in token_chunks:
        try:
            embedding, chunk_len = self._embed_with_retry(text, **kwargs)
            chunk_embeddings.append(embedding)
            chunk_lens.append(chunk_len)

I found solution here
https://github.com/microsoft/graphrag/issues/451#issuecomment-2220861232


Window returned to normal size from max after entering Neovim

After entering Neovim, the maximized window will return to normal size automatically.
The same problem doesn't exist in terms of vim8.0
I consider wsl-terminal as the best wsl terminal on Windows, but this issue is really annoying sometimes.

Hi @HankelBao, with a really really really long delay. I took over this repo not long ago. Do you still have this problem?
I am a vim user and not so familiar with neovim(beside what I know from vim).
Do you use the GUI version of Neovim or the terminal version? I tried the terminal version and I cannot reproduce it.

closing this issue as there is no reply :)


Unicode error for file read

The code was working fine and suddenly starting giving me errors. If I run it in the console, it runs without any errors which leads me to believe that there is a bug with spyder.
afinnfile = open(r"C:/Users/Dhruv/Documents/GitHub/datasci_course_materials/assignment1/AFINN-111.txt","r")
The line above is the code that is causing the error.

The bug seems to be fixed.


Increase the interval

i discovered that the game is somewhat fast from my perspective though, so i changed the interval to 1000/10 instead of 15

Makes sense to me, thank you!


Python Script Bug

In command_overview_main.py, the script fails because there are emojis in the actual README.md.
Fixes:

Change the raw emoji into unicode so it can be read like normal
Introduce some emoji library to help with parsing the data

Removed the emojis from the main README to resolve the problem, will re-open this issue if I decide to add even more emojis and actually need to support the emoji parsing.


Fix #273

I notice if I set the timeout on the sequentially call to 100, the error goes away. If I manipulate the sequentially timeout between 20-100, a different number of values get emitted, e.g. if I set it to 20, 1, 2, 3, and 8 are emitted. It appears to be dropping the intervening values based on the delay of the later call.

Found the problem. Looks like the hack around Kefir.constant in AbstractPool didn't subscribe to the next source in the list.


Add support for linking to an external shiny live app

With rmarkdown, the app source can be outside of the code cell using:

```{r}
shiny::shinyAppDir(
  "path/to/shiny/app/"
)
```

Would it be possible to get a similar file name directive for shinylive? As it stands, something like:
```{shinylive-r}
#| standalone: true
#| viewerHeight: 600

shiny::shinyAppDir(
  "path/to/shiny/app/"
)
```

or
```{shinylive-r}
#| standalone: true
#| viewerHeight: 600
#| shinyAppDir: path/to/shiny/app/
```

Note: This isn't quite the same as support for the ## file:  directive (not yet implemented for R) that allows for breaking up a code cell inside of Quarto. This request focuses more on external apps vs. internal/embedded apps.

Note: This isn't quite the same as support for the ## file:  directive (not yet implemented for R) that allows for breaking up a code cell inside of Quarto.

Hi @coatless, I'm having a hard time parsing this sentence. As far as I can tell, there are two things you might mean by ## file: directive:

The shinylive quarto extension comment for adding external files into the shinylive-r or shinylive-python chunk.
The knitr chunk option #| file: for including an external file.

I think you might mean the first option, which is implemented for shinylive-r chunks, but you might mean the second, which is not implemented for the shinylive extension in general. After that, I'm not sure which Quarto feature "allows for breaking up a code cell"...?

That said, it would be helpful for the shinylive extension to allow users to pull in the chunk contents from a file, e.g. using a file chunk option, or via a directory, possibly using app_dir as the chunk option name.

👋 @gadenbuie
Sorry for the confusion.
The ask here is to be able to take any external R Shiny App (.app/ui.R + server.R) and incorporate it into the shinylive-r code cell. As it stands, the current approach is to keep a standalone test file for R and, then, copy + paste it verbatim into a {shinylive-r} cell.
The knitr option of #| file:  is one way to approach solving that issue. The other is parsing a shinyAppDir() function call in an shinylive-r cell. In the final code cell, I was suggesting an easier parse approach for the directory specification since that does not require executing code in the cell to unfold the app via shinyAppDir().

Regarding the ## file: attribute, I mentioned that to emphasize that I wasn't looking for an in-script option for embedding the script (e.g. no ## file: ui.R and ## file: server.R.
Though, for r-shinylive the ## file: is not fully implemented. Consider the following modifications from the py-shinylive index.qmd example:
---
title: "Embed image file attribute shinylive-r"
format:
  html:
    resources:
      - shinylive-sw.js
filters:
  - shinylive
---

```{shinylive-r}
#| standalone: true
#| components: [editor, viewer]
#| layout: vertical
#| viewerHeight: 400
## file: app.R
library(shiny)

ui <- fluidPage(
  titlePanel("Hello Shiny!")
)

server <- function(input, output) {

}

# Create Shiny app ----
shinyApp(ui = ui, server = server)

## file: www/logo.png
## type: binary
[encoded data, 5584 characters]
```

@coatless thanks for the explanation -- I would expect binary embedded files to work, so I've move that part of the discussion to a new issue: #40.
I certainly agree that it'd be useful to be able to embed an entire app via it's directory and my personal preference is for a chunk option.
By the way, I recently added a command to the CLI in the Python py-shinylive package to create shinylive URLs from local files or to decode shinylive URLs. Given a directory structure like
.
├── app.R
└── images
    ├── basic.txt
    └── logo.png

and after installing shinylive with pip install shinylive, you could run
shinylive url encode app.R images/*
#> https://shinylive.io/r/editor/#code=NobwRAdghgtgpmAXAAjFADugd...

to create the shinylive URL for that app bundle. You can pipe this output back into shinylive url decode to decode the app, which is helpfully printed using the quarto chunk syntax:
shinylive url encode app.R images/* | shinylive url decode

## file: app.R
library(shiny)

ui <- fluidPage(
  titlePanel("Hello Shiny!")
)

server <- function(input, output) {

}

# Create Shiny app ----
shinyApp(ui = ui, server = server)

## file: images/basic.txt
Just plain text

## file: images/logo.png
## type: binary
iVBORw0KGgoAAAANSUhEUgAAACgAAAAuCAYAAABap1twAAAABGdB...

Obviously this isn't as convenient as an actual chunk option, but it might help you out until are able to develop the new feature.

By the way, for text app files, Quarto's include directive works really well:
Instead of this (which doesn't work)

```{shinylive-r}
#| standalone: true
#| viewerHeight: 600

shiny::shinyAppDir(
  "path/to/shiny/app/"
)
```

You can use this

```{shinylive-r}
#| standalone: true
#| viewerHeight: 600

{{< include "path/to/shiny/app/" >}}
```

I just created a new Quarto extension that provides a base64 shortcode to fill in the last missing gap here: adding base64 encoded files to Shinylive.
Using that extension, you can now do this:
```{shinylive-r}
#| standalone: true
#| viewerHeight: 600

## file: app.R
{{< include "path/to/shiny/app/app-example.R" >}}

## file: www/photo.png
## type: binary
{{< base64 "path/to/shiny/app/www/photo.png" >}}
```

For more complicated apps, I think we'd like to lean on shinylive::export() or shinylive.export() so that we can coordinate where the assets live. Maybe we could add a shortcode {{< shinylive-app-r "app/dir" ... >}}.


Binance smart chain

Hi,
This is possible to run this project on Binance Smart Chain ?
Thanks

Yes, we need to update the hardhat.config and constants.js with both testnet and mainnet BSC.

Nice, thanks for your response, I try to use BSC testnet but I have this error in typescript :

I don't understand this error

@daftpump not sure if anyone has BSC deploy experience, I would check the Telegram channel and do a Stack Overflow question. Error looks specific to BSC.

@daftpump have you resolved this? I am going to close this for now.

Nice, thanks for your response, I try to use BSC testnet but I have this error in typescript :
I don't understand this error

Same..

I think we should reopen this. issue, I cant find any information about how to fix this this issue.
I have the same error than @hoodlerio.
constants.js ->
{
  ethereum: {
    name: "ethereum",
    color: "#ceb0fa",
    chainId: 1,
    price: "uniswap",
    rpcUrl: `https://mainnet.infura.io/v3/${INFURA_ID}`,
    blockExplorer: "https://etherscan.io/",
  },
  binance: {
    name: "binance",
    color: "#2bbdf7",
    price: "uniswap:0x418D75f65a02b3D53B2418FB8E1fe493759c7605",
    chainId: 56,
    rpcUrl: "https://bsc-dataseed.binance.org/",
    blockExplorer: "https://bscscan.com",
  }
,....```

And inside networks: {} of hardhatconfig ->

binance: {
  url: "https://bsc-dataseed.binance.org/",
  gasPrice:<PHONE_NUMBER>,
  chainId: 56,
  accounts: {
    mnemonic: mnemonic(),
  },
},


Pdb refactor

There are a few comments here that need to be addressed before completing the pull request. Let me know if you have questions.


Bug: Heroes mode broken in 4.1

Reported:

Problem:

Solution:
Add the Trait back in via BBG with INSERT OR IGNORE

Closed by https://github.com/iElden/BetterBalancedGame/commit/5853333b054f297546d74a8802be60774f6fecc5


Disable HTTPs?

As Needl's sole purpose is to generate random traffic so it can be captured and stored, shall we disable HTTPs project wide? i.e when searching Google.
Thoughts?

I feel like forcing using HTTP on what would typically be HTTPS would be an easy way for an ISP to pick out which traffic is fake and most of the storage of your browsing history by your ISP is really only ever the domain level as they are expecting HTTPS traffic.

Fair point. Will close for now.


Modified linux and mac instructions for 5.6.0 RTW

Coverage remained the same at 72.4% when pulling 3cd33ab80dbee2b81f07d523cbd843bc69b59ac2 on david-puglielli:5.6.0-RTW-doc-update into 3b9739a6c260642ba6eee1d1d4bc8096d6000582 on Microsoft:dev.

Yes, it's identical except for the links.

Codecov Report

Merging #926 into dev will decrease coverage by 0.06%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##              dev     #926      +/-   ##
==========================================
- Coverage   80.51%   80.44%   -0.07%
==========================================
  Files          25       25
  Lines        7753     7753
==========================================
- Hits         6242     6237       -5
- Misses       1511     1516       +5

Impacted Files
Coverage Δ

...php-7.1.26-src/ext/pdo_sqlsrv/shared/core_stmt.cpp
75.16% <0%> (-0.48%)
:arrow_down:

Continue to review full report at Codecov.

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


[Brackets auto-update Windows] Update notification button works only once and then stops working if user is not connected to internet.

Description
Update notification button works only once and then stops working if user is not connected to internet.
Steps to Reproduce

Launch brackets 1.13.
Disconnect internet.
Click on Update Notification Button.
Error dialogue appears asking user to connect to internet.
Click on OK.
Again click on Update Notification Dialogue.
The button does not work.

Expected behavior: A message should be given to user stating "Close all the instances of Brackets to begin updating Brackets".
Actual behavior: Update notification button works only once and then stops working if user is not connected to internet.
Versions
Windows 10 64 Bit
Release 1.13 build 1.13.0-17624

This is still reproducible in Release 1.14 build 1.14.0-17639.


[DO NOT MERGE] Auto PR to update dependencies of pilot

This PR will be merged automatically once checks are successful.
none

@istio-testing: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/pilot-presubmit.sh
3c28f72978e6bc7e36a561a301d7a2b9ad8d686c
link
/test pilot-presubmit

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


When using multiple benchmarks earlier ones affect the ones coming later

I reported this against criterion, reporting it here as well, I have tested it using gauge and the same problem persists as expected.
I have the following benchmarks in a group:
        bgroup "map"
          [ bench "machines" $ whnf drainM (M.mapping (+1))
          , bench "streaming" $ whnf drainS (S.map (+1))
          , bench "pipes" $ whnf drainP (P.map (+1))
          , bench "conduit" $ whnf drainC (C.map (+1))
          , bench "list-transformer" $ whnf drainL (lift . return . (+1))
          ]

The last two benchmarks take significantly more time when I run all these benchmarks in one go using stack bench --benchmark-arguments "-m glob ops/map/*".
$ stack bench --benchmark-arguments "-m glob ops/map/*"

benchmarking ops/map/machines
time                 30.23 ms   (29.22 ms .. 31.04 ms)

benchmarking ops/map/streaming
time                 17.91 ms   (17.48 ms .. 18.37 ms)

benchmarking ops/map/pipes
time                 29.30 ms   (28.12 ms .. 30.03 ms)

benchmarking ops/map/conduit
time                 36.69 ms   (35.73 ms .. 37.58 ms)

benchmarking ops/map/list-transformer
time                 84.06 ms   (75.02 ms .. 90.34 ms)

However when I run individual benchmarks the results are different:
$ stack bench --benchmark-arguments "-m glob ops/map/conduit"

benchmarking ops/map/conduit
time                 31.64 ms   (31.30 ms .. 31.86 ms)

$ stack bench --benchmark-arguments "-m glob ops/map/list-transformer"

benchmarking ops/map/list-transformer
time                 68.67 ms   (66.84 ms .. 70.96 ms)

To reproduce the issue just run those commands in this repo. The repo works with gauge.
I cannot figure what the problem is here. I tried using "env" to run the benchmarks and putting a "threadDelay"  for a few seconds and a "performGC" in it but nothing helps.
I am now resorting to always running each benchmark individually in a separate process. Maybe we can have support for running each benchmark in a separate process in criterion itself to guarantee isolation of benchmarks, as I have seen this sort of problem too often. Now I am always skeptical of the results produced by criterion.

There are two ways to solve the problem:

Figure out the cause of interference among benchmarks and fix that.
Provide an option to run benchmarks in a non-interfering isolated manner i.e. run each benchmark in a separate process.

I am not able to figure out the real cause of interference but I have solution along the lines of the second option mentioned above. This solves the problem generically and with more confidence irrespective of how the Haskell runtime or garbage collector behaves. The isolated process must run only the minimal function being benchmarked and nothing else so that there is no interference by anything else.
When we run more than one benchmark, we invoke gauge once more as a separate process with just one benchmark selected. The report generated by this run is kept in a file. The file is created and filename is passed by the parent process when invoking. The parent process then consumes this output file to generate a combined report or to show the output to the user.
There are a few issues/things to be taken care of in invoking a child process:

We need to identify how we were invoked and invoke the child using the same executable, arguments
We will need a way to identify that we are the child process so that we do not recurse again, this will need a command line flag (may be hidden from users).
Command line arguments for invoking the child will have to be edited, replacing the argument identifying the set of benchmarks to be run by a single benchmark.

Let me know if this sounds reasonable or if this should be fixed outside the library. If we fix it in a wrapper then we will need the core executable to generate a list of all benchmarks requested by the user which the wrapper can then request it to execute one at a time. We will also need a way to pass on core library arguments from the wrapper.
Another point to consider is whether we may want this as a default behavior in future to make the tool more reliable by default. In that case this should perhaps be implemented in the core library. Also this will add a dependency on at least unix and at most process for process creation.
I want to emphasize that it is important to fix because the first thing required of a benchmarking library is reliability, other features do not matter as much.

I am modularizing to separate the running and analysis parts as much as possible. This will make running in a separate process easier. I will send a PR soon. Let me know if this is ok or not ok or interferes with any pending work you may have.
One of the reasons I am suspecting for the variance in later benchmarks could be due to the GC overhead generated by the previous benchmarks as well as the analysis of the previous benchmark. A performGC is done after each iteration but I guess that only triggers GC and does not guarantee finishing of all the pending work we may have an overhead carried over to the next benchmark.
Also even when running in a separate process we should perhaps always throw away the first measurement because it starts with zero gc overhead and the rest of the iterations start with a potential gc overhead, making the first one always an outlier.

Related to the GC thing, I just made some similar mental note about the GC issues. I'm currently adding some debugging print to see what's the behavior like
I'm trying to modernize and lower the cost of the measurements part at the moment, so if possible keep this part as is, it would make things easier.
One thing that I'm planning to do soon, is to dump all the data as measured without analysing anything. I think it will make it easier to process this data dump or to understand the behavior seen if we have the raw data available conveniently

It seems it is already doing what I was suggesting i.e. discarding the first measurement:
runBenchmark bm timeLimit = do
  runBenchmarkable_ bm 1
  start <- performGC >> getTime

One thing that I'm planning to do soon, is to dump all the data as measured without analysing

That's sort of what I did too! Let me push the code as a PR and you can take a look if that tallies with what you have in mind or you can build on that if you have not already made your changes.

sure that sounds good, I've got distracted with passing time measurement in Double into Word64 to avoid Double issues. Also removing some of the unrelastic assumption about the time measuring (no need to mension femtosecond anywhere :P), measuring in nanoseconds and doing our "floating" calculation in 100s or 10s of picoseconds.

Added PR #3 . The results are pretty good with the change, it drastically reduces variance and standard deviation. And the later benchmark results are not inflated anymore.
The --measure-with option is a bit clumsy but I could not come up with a better portable solution. Let me know if you can think of any improvements.
The change adds dependencies on directory, process, unix and Win32, let me know if that's ok or you have a way to remove them.
I am open to any improvements/feedback.

Fixed by PR #3.


Unable to install from git URL, getting ENOTFOUND error

So yeah I was trying to install this repo I made just so I could get this code in via bower as it's currently only hosted on npm, the react-router folks don't have a bower.json file and I am working on an app that is currently still in ES5 land.
Anyway, I created this repo and couldn't install it by just having "react-router-umd": "https://github.com/rohan-deshpande/react-router-umd.git#master" in my app's bower.json file.
It would resolve, but then tell me the package was not found. I had to register the package with bower to get it to work. Is this expected behaviour? I was under the impression that you could install from a git repo url without the package being registered, indeed this is how I have done it at companies where gitlab was in use for private repositories.
Output of bower -v && npm -v && node -v:
1.7.9
1.4.23
v0.10.31

Describe the results you received:
bower install react-router-umd
bower not-cached    https://github.com/rohan-deshpande/react-router-umd.git#master
bower resolve       https://github.com/rohan-deshpande/react-router-umd.git#master
bower checkout      react-router-umd#master
bower resolved      https://github.com/rohan-deshpande/react-router-umd.git#e3fd880626
bower ENOTFOUND     Package react-router-umd not found

Describe the results you expected:
That the package would be found and installed.

When I run bower install react-router-umd it installed that package.

Yes, I had to register it to get it to work. I was under the impression that this should work even if the package has not been registered with bower.

@rohan-deshpande without registering the package you would need to install it this way:
bower install https://github.com/rohan-deshpande/react-router-umd.git#master.
Otherwise registering is the way to go 👯
Good to close? :)

Well umm that doesn't really fix the issue because that's exactly what I had above, except that it was in my bower.json instead of directly calling install. I don't see how that should make a difference though?

Sorry, read the issue half-assed. What you want to do in your bower.json is give it a name just like you did.. That's expected to work indeed and does work for me.
  "dependencies": {
    "test": "https://github.com/rohan-deshpande/react-router-umd.git#master"
  }

Yeah, it will work now because I registered it, but it wasn't working before and that was why I made the issue. Anyway if you want to close go ahead. Was pretty weird though.

Hey @rohan-deshpande, thanks for the report.
I just tried reproducing this with my own github bower project "bower-test". This is a trivial project that has not been published. I was able to successfully install it from the command line.
Test 1 - Passed
bower install -S https://github.com/evanjbowling/bower-test.git#master

Output:
bower install -S https://github.com/evanjbowling/bower-test.git#master
bower not-cached    https://github.com/evanjbowling/bower-test.git#master
bower resolve       https://github.com/evanjbowling/bower-test.git#master
bower checkout      bower-test#master
bower resolved      https://github.com/evanjbowling/bower-test.git#30707fdfe0
bower install       bower-test#30707fdfe0

So that didn't seem to be the problem. The bower.json created was:
{
  "name": "test-1",
  "homepage": "",
  "authors": [
    "Evan Bowling<EMAIL_ADDRESS>  ],
  "description": "",
  "main": "",
  "license": "MIT",
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ],
  "dependencies": {
    "bower-test": "https://github.com/evanjbowling/bower-test.git#master"
  }
}

Test 2 - Failed
I then deleted my "bower_components" directory and ran:
bower install bower-test

Output:
bower install bower-test
bower not-cached    https://github.com/evanjbowling/bower-test.git#master
bower resolve       https://github.com/evanjbowling/bower-test.git#master
bower checkout      bower-test#master
bower not-cached    https://github.com/EvandroLG/bower-test.git#*
bower resolve       https://github.com/EvandroLG/bower-test.git#*
bower resolved      https://github.com/evanjbowling/bower-test.git#30707fdfe0
bower ECMDERR       Failed to execute "git ls-remote --tags --heads https://github.com/EvandroLG/bower-test.git", exit code of #128 remote: Repository not found. fatal: repository 'https://github.com/EvandroLG/bower-test.git/' not found

Additional error details:
remote: Repository not found.
fatal: repository 'https://github.com/EvandroLG/bower-test.git/' not found

This was unexpected. Notice how it changed my username in the URL to "EvandroLG". I don't have a good answer for that yet.
Test 3 - Passed
After this, I tried one more install:
bower install

Output:
bower install
bower not-cached    https://github.com/evanjbowling/bower-test.git#master
bower resolve       https://github.com/evanjbowling/bower-test.git#master
bower checkout      bower-test#master
bower resolved      https://github.com/evanjbowling/bower-test.git#30707fdfe0
bower install       bower-test#30707fdfe0

bower-test#30707fdfe0 bower_components/bower-test

This suggests to me that if you had just run bower install before, then it would have worked. But I'm still confused about "Test Case 2"...

this seems to work with bower.json @eventualbuddha
the bower install bower-test doesn't work because bower registry points to /github.com/EvandroLG/bower-test and that doesn't exist indeed


Recursively copy symlinks instead of copying the symlink for lbf haskell

Following some slack discussion, we noticed that on some people's computers we can't build certain derivations from lbf haskell because their computer couldn't follow a symlink.
So, this PR will copy the symlink recursively instead.

Can you do a quick scan and see if other nix libs do this? Thanks!!!

Super interesting!
In other parts of lambda-buffers, we do something like
cp -r autogen/* <blah blah>

see
- https://github.com/mlabs-haskell/lambda-buffers/blob/790393bd5b0766a82811bdb52afc00803f624a63/extras/lbf-nix/lbf-typescript.nix#L245
- https://github.com/mlabs-haskell/lambda-buffers/blob/790393bd5b0766a82811bdb52afc00803f624a63/extras/lbf-nix/lbf-rust.nix#L138
- https://github.com/mlabs-haskell/lambda-buffers/blob/790393bd5b0766a82811bdb52afc00803f624a63/extras/lbf-nix/lbf-purescript.nix#L76
so we really copy the files over instead of symlinking them. So, we should have no problems there.
But I did some more digging in nixpkgs, and I couldn't find an instance where someone copied the symlink and dumped the copy in $out. Indeed, it's more common for people to simply just symlink what they want i.e., something like
# Either of the following should be fine
ln -s $(readlink autogen) $out/src
ln -s ${lbfBuilt} $out/src

It kinda makes me wonder -- was copying the symlink the problem and would "re-creating" the symlink have fixed it as well? I feel like these should be the same though >.<.
If it's of any consolation, the solution in this PR which "deep copies symlinks in $out" does happen in nixpkgs so maybe there is a reason that I'm not seeing for why people don't copy symlinks to $out e.g.  https://github.com/NixOS/nixpkgs/blob/641d3aeeab9bff18b3cb6afe0e721949d1194468/pkgs/stdenv/linux/make-bootstrap-tools.nix#L87


Some fixes with Linux Support

Fixing build.js with added a option to proccess.platform, for New NodeJS Version.
Changing ico to png icon for the app (Fixe a Error with builds with Linux)
Cleanify somes files (Simply Space/Idents)

For the pleasure of helping ;)
Cordially,
Anaïs


Tracking issue: finalize execution trace generation in the VM

Goal(s)
Our main goal is to finalize trace generation in the processor so that everything that happens during execution is in the trace.
Details
In particular, we want to finalize the kernel ROM trace and we want to support new instructions.
### Must have
- [x] Trace generation for [kernel ROM](https://github.com/0xPolygonMiden/miden-vm/issues/231#issuecomment-1180007490) lookups
- [ ] https://github.com/0xPolygonMiden/miden-vm/issues/884

### Nice to have
- [ ] https://github.com/0xPolygonMiden/miden-vm/issues/728

Must haves were completed in #939 and #887.


Adding to ElectronNET.Host

Hi,
I recently started using Electron.NET, and I'm looking to add functionality to one of the JavaScript files in ElectronNET.Host/api. I'm doing this because it appears that not all of the electron-js events are currently available, so I'm adding one, and I was planning on offering it as a contribution if it worked.
I made my changes in a TypeScript file and compiled it in vscode, and the changes are reflected in the JS file, which I believe the TS files compile into.
I made corresponding changes in ElectronNET.API so that this functionality would be accessible from C#. I've built the API project in vs proper, ran the nuget script, got the package, that's fine.
I've got a project I'm consuming this from, and when I look inside obj/Host/api in my own consumer project, the JS files are not showing my changes, so the modifications I made in ElectronNet.Host are not available. I don't know how I'm supposed to get these changes into my consumer project.
Can anyone tell me what I'm missing here? What is the process for getting these JS files in the ElectronNET.Host project into my consumer app?

Hey
To do this, you must store the JavaScript files in the following file:
ElectronNET.CLI/Commands/Actions/DeployEmbeddedElectronFiles.cs
You can then use the generated DLL from the CLI project roughly as follows:
dotnet "C:\Users\Gregor\source\repos\Electron.NET\ElectronNET.CLI\bin\Debug\netcoreapp3.0\dotnet-electronize.dll" start
Write to me privately via Gitter. I am very happy to help you.
Thanks for your contribution.


⚠ RPC server - Figment Solana has degraded performance

In 435932c, RPC server - Figment Solana ($FIGMENT_SOLANA_RPC_URL) experienced degraded performance:

HTTP code: 429
Response time: 336 ms

Resolved: RPC server - Figment Solana performance has improved in bcd5d79.


239 plot trips and routes real

Description

This PR merges in additional functionality that allows for a user to plot the trip/routes counts across a timerseries.
Additional functionality includes calculating the x day rolling average across the timeseries in favour of plotting the raw data, along with drawing a dashed line onto the plot indicating a specific date (passed by the user - optional).
Fixes #239
Motivation and Context

Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

Test configuration details:

OS: Windows 10
Python version: Python 3.9.13
Java version: N/A
Python management system: MiniConda

Advice for reviewer

Checklist:

[x] My code follows the intended structure of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

Additional comments

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (92a8e2c) 97.71% compared to head (bc75e18) 97.79%.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #251      +/-   ##
==========================================
+ Coverage   97.71%   97.79%   +0.08%
==========================================
  Files          21       21
  Lines        1838     1906      +68
==========================================
+ Hits         1796     1864      +68
  Misses         42       42

Flag
Coverage Δ

unittests
97.79% <100.00%> (+0.08%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


How to sort projects in the README ?

I'm creating this issue to ask the community how to sort projects in the README.
At the moment, I kinda sorted by my own feelings, setting Electron first then alternative is a lowkey popularity ranking (based on Stars/Forks and my own perception). I'm looking for an objective way to sort everything.
Here's my proposal:
Sort by (Stars + 10 * Forks) descending, but, web based frameworks firsts (Electron, nw, tauri, wails, etc.) and then other kind of frameworks (Flutter, MAUI, etc.).
I'm also thinking of maybe splitting this benchmark in two, one for web based frameworks (here) and one for XAML or other languages based ones.
What are your opinions on these ideas ?

Hi!
Sorry, I completly forgot to respond...
Thanks for your feedback!
I think I will modify the README writer to implement this auto-sorting on writhing then :)


feat(pixels): add my new pixel

Checklist

[ ] I ran npm test locally and it passed without errors.

[ ] I only edited the _data/pixels.json file.

[ ] I entered the username in the pixels.json that I'm also using to create this pull request.
[ ] I acknowledge that all my contributions will be made under the project's license.

Adding pixel


Verify Email URL Issue

When you receive a Verify Email, you receive the following. Seemly the %%VERIFYURL%% is a bug, or is this in setup? Thanks
Your email needs to be verified before your ticket can be submitted. Please click the link below to verify your email.
%%VERIFYURL%%
Sincerely,

What version are you currently using? 1.7.0 or 2.0.0 beta?

And I just ran a test on my test instance, and it worked just fine:

Dear Name,
Your email needs to be verified before your ticket can be submitted. Please click the link below to verify your email.
http://my domain/verifyemail.php?key=d6eaccdd7fd85c3f0dec1b3077c5311680886233511c95a315c82c08457bfb7be628c4e37b4074604b2e6c8ed046ba17e793e914c5e4e7002b8ccdc4df690223
Sincerely,
My Web site

Issue closed due to inactivity. Please re-open if need be.


Error installing rancher to ACK using helm

What kind of request is this (question/bug/enhancement/feature request):
bug
Steps to reproduce (least amount of steps as possible):
Installing rancher to ACK using helm
❯ helm install rancher rancher-stable/rancher \
 --namespace cattle-system \
 --set hostname=rancher.my.org
Error: chart requires kubeVersion: < 1.20.0 which is incompatible with Kubernetes v1.18.8-aliyun.1

Result:
Other details that may be helpful:
kubernetes version：v1.18.8-aliyun.1
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI):
Installation option (single install/HA):

Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported):
Machine type (cloud/VM/metal) and specifications (CPU/memory):
Kubernetes version (use kubectl version):

Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.1", GitCommit:"c4d752765b3bbac2237bf87cf0b1c2e307844666", GitTreeState:"clean", BuildDate:"2020-12-19T08:38:20Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"18+", GitVersion:"v1.18.8-aliyun.1", GitCommit:"94f1dc8", GitTreeState:"", BuildDate:"2021-01-10T10:14:01Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}

Docker version (use docker version):

(paste the output here)

@sunny0826 Do you have the Rancher's latest released charts - v2.5.5 ? We have fixed this issue in rancher 2.5.5. Please do an helm update and install the chart, let us know if you still see an issue.

@sunny0826 Do you have the Rancher's latest released charts - v2.5.5 ? We have fixed this issue in rancher 2.5.5. Please do an helm update and install the chart, let us know if you still see an issue.

I pulled this chart and the information is as follows.

I pulled this chart and the information is as follows.

That's the older chart. Can you refresh your repro to get an updated chart?
Helm repo update and then try again?

That's the older chart. Can you refresh your repro to get an updated chart?
Helm repo update and then try again?

I've updated the helm repo, is this indeed the repo?
rancher-stable

I've updated the helm repo, is this indeed the repo?
rancher-stable

Fixes should be available in 2.5.5 from both rancher-stable and rancher-latest repo

Fixes should be available in 2.5.5 from both rancher-stable and rancher-latest repo

I noticed that I am using the official repo of cn rancher, could you please check if this repo is up to date?
http://rancher-mirror.oss-cn-beijing.aliyuncs.com/server-charts/stable

I noticed that I am using the official repo of cn rancher, could you please check if this repo is up to date?
http://rancher-mirror.oss-cn-beijing.aliyuncs.com/server-charts/stable


A block input doesnt reappear in sidebar when the connection to this block is removed.

https://gyazo.com/3c0bbba54f5c691a3e12bc09b3f4eb05.gif

The same behavior appears with the "Expression" block when a point is added/removed


Help Batch transcription

Hi, I need help to use this API in Java, the documentation is messy and not good explain.
https://eastus2.cris.ai/swagger/ui/index#!/Custom32Speech32transcriptions58/CreateTranscription
https://docs.microsoft.com/en-us/azure/cognitive-services/Speech-Service/batch-transcription#authorization-token
https://github.com/PanosPeriorellis/Speech_Service-BatchTranscriptionAPI
I got a lot of errors, and in the swagger/Documentation doesn't explain the errors.
Request:
curl -X POST \
  https://eastus2.cris.ai/api/speechtotext/v2.0/transcriptions \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: xxxxxxxxxxx' \
  -H 'Postman-Token: c6268411-9c63-4eed-924f-eb5dde913fa4' \
  -H 'cache-control: no-cache' \
  -d '{
  "recordingsUrl": "xxxxx",
  "models": [],
  "locale": "en-US",
  "name": "audioFedeTest",
  "description": "An optional description of the transcription.",
  "properties": {
    "ProfanityFilterMode": "Masked",
    "PunctuationMode": "DictatedAndAutomatic"
  }
}'

If I try from Swagger I got this error:
403
{"code":"Forbidden","message":"No permission to access this resource."}

If I try on Postman I got this error:
200
<!DOCTYPE html>
<html dir="ltr" class="" lang="en">
    <head>
        <title>Sign in to your account</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=yes">
        <meta http-equiv="Pragma" content="no-cache">
        <meta http-equiv="Expires" content="-1">
        <meta name="PageID" content="ConvergedSignIn" />
        <meta name="SiteID" content="" /> .......

If I try on Curl on the terminal, I got this error:
{"code":"Unauthorized","message":"Authentication is required to access the resource."}

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

ID: 73fb7e76-fb80-c420-2efe-e3ca3a27b749
Version Independent ID: 07a42557-deb3-e4b3-3f14-f26a27be49c2
Content: Use the Azure Batch Transcription API
Content Source: articles/cognitive-services/Speech-Service/batch-transcription.md
Service: cognitive-services
GitHub Login: @PanosPeriorellis
Microsoft Alias: panosper

@asyba Thanks for your feedback! We will investigate and update soon on it.

@asyba Hi, sorry for your experience? May I ask if you have a SpeechServices.S0 key for it or you are using a key in standard pricing?
If you didn't use a standard pricing, please go to portal.azure.com -> + Create a resource (top left of the screen) -> Now search for and select "Speech" -> Create -> here select the correct data center, and select S0 as pricing tier.From the created resource you can then get the Key.
Please tell me if you still have challenge on it.

@asyba We will now proceed to close this thread. If there are further questions regarding this matter, please respond here and @YutongTie-MSFT and we will gladly continue the discussion.


CI error: TypeError: dataclass_transform() got an unexpected keyword argument 'field_specifiers'

Describe the bug
While installing the dependencies, the CI raises a TypeError:
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/runpy.py", line 183, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/runpy.py", line 142, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/runpy.py", line 109, in _get_module_details
    __import__(pkg_name)
  File "/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/site-packages/spacy/__init__.py", line 6, in <module>
    from .errors import setup_default_warnings
  File "/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/site-packages/spacy/errors.py", line 2, in <module>
    from .compat import Literal
  File "/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/site-packages/spacy/compat.py", line 3, in <module>
    from thinc.util import copy_array
  File "/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/site-packages/thinc/__init__.py", line 5, in <module>
    from .config import registry
  File "/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/site-packages/thinc/config.py", line 2, in <module>
    import confection
  File "/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/site-packages/confection/__init__.py", line 10, in <module>
    from pydantic import BaseModel, create_model, ValidationError, Extra
  File "pydantic/__init__.py", line 2, in init pydantic.__init__
  File "pydantic/dataclasses.py", line 46, in init pydantic.dataclasses
    # | None    | Attribute is set to None.               |
  File "pydantic/main.py", line 121, in init pydantic.main
TypeError: dataclass_transform() got an unexpected keyword argument 'field_specifiers'

See: https://github.com/huggingface/datasets/actions/runs/3793736481/jobs/6466356565
Steps to reproduce the bug
pip install .[tests,metrics-tests]
python -m spacy download en_core_web_sm

Expected behavior
No error.
Environment info
See: https://github.com/huggingface/datasets/actions/runs/3793736481/jobs/6466356565

I still getting the same error :
python -m spacy download fr_core_news_lg import spacy .

@MFatnassi, the fix made by this PR only works for our Continuous Integration testing environment.
Note that datasets does not depend on spacy.


Distinct

Hi, is it possible to get 'distinct' records through a rest call (e.g. With the mongoose distinct())? Is possible to Perhaps add it via a before hook?
E.g. If I have a collection full of books, and I want to get just the names of all distinct Authors

You could add your own query parameter and make the model call based on that query in the hook, setting hook.result similar to this:
app.service('users').before({
  find(params) {
    if(params.query.$distinct) {
      return this.Model.find().distinct().then(data => {
        hook.result = data;
        return hook;
      });
    }
  }
});

Thanks so much for the quick response @daffl - By doing it this way, is my understanding correct that it would do 2 DB queries, where the second is unneeded?

No. If you set the result in a before hook the original database call is not going to happen.

Wow, great to know. Thanks again!
I'll give it a go

Hi @daffl - I ended up creating a hook like this, which seems to work a treat:
/*
 * Distinct Search - can only be 1 distinct at a time
 * - allows you to URI query like: books?$distinct=author
 * ============================================================
 */
exports.searchDistinct = function () {
  return function (hook) {
    let query = hook.params.query;

    // Must be a before hook
    if (hook.type !== 'before') {
      throw new Error('The \'searchDistinct\' hook should only be used as a \'before\' hook (hooks.searchDistinct).');
    }

    // Throw error when no field is provided - eg. just users?$distinct
    if (query.$distinct === '') {
     throw new Error('Missing $distinct: Which field should be distinct? (hooks.searchDistinct)');
    }

    let distinctValue = query.$distinct || null;
    if (distinctValue == null) return hook;

    // Remove $distinct param from query (preventing errors)
    delete query.$distinct;

    return new Promise((resolve, reject) => {
      this.Model.find(query).distinct(distinctValue)
        .then(data => {
          hook.result = {
            total: data.length || 0,
            data,
          };
          resolve();
        }).catch(err => reject(err));
    });
  }
}

Awesome, thank you for sharing!
Oh, btw, you can probably just return this.Model.aggregate(args) instead of having to create a wrapper promise.

Thanks @daffl - that's true - although I have the wrapper promise so that I can alter the hook.result to include a total and if needed, later on extend to include $skip and $limit for example.

What I meant is that you can write the same thing like this:
/*
 * Distinct Search - can only be 1 distinct at a time
 * - allows you to URI query like: books?$distinct=author
 * ============================================================
 */
exports.searchDistinct = function () {
  return function (hook) {
    let query = hook.params.query;

    // Must be a before hook
    if (hook.type !== 'before') {
      throw new Error('The \'searchDistinct\' hook should only be used as a \'before\' hook (hooks.searchDistinct).');
    }

    // Throw error when no field is provided - eg. just users?$distinct
    if (query.$distinct === '') {
     throw new Error('Missing $distinct: Which field should be distinct? (hooks.searchDistinct)');
    }

    let distinctValue = query.$distinct || null;
    if (distinctValue == null) return hook;

    // Remove $distinct param from query (preventing errors)
    delete query.$distinct;

    var args = [
      { $match: query || {} },
      { $group: {
        _id: "$" + distinctValue,
        total: { $sum: 1 }
      }}
    ];

    return this.Model.aggregate(args)
      .then(data => {
        hook.result = {
          total: data.length || 0,
          data,
        };

        return hook;
      });
  }
}

I found that especially when dealing with other calls that return a promise there is usually no need to create a new promise with new Promise((resolve, reject) => {})

Ah hah! Very helpful, thank you!

I'm going to try and keep this in mind for reference in case we want to roll this into some common hooks. cc/ @feathersjs/core-team

I've tagged this as a todo for myself.
Please comment on any enhancements, changes, etc you have in mind.

Hello
I need to create a hook like this one to rethinkdb database adapter. How can I do it?
thanks.

I solved my problem
`module.exports = function (options = {}) {
return function distinct(hook) {
let query = hook.params.query;
// Must be a before hook
if (hook.type !== 'before') {
  throw new Error('El hook \'distinct\' sólo puede usarse como hook \'before\' (hooks.distinct).');
}

// Throw error when no field is provided - eg. just users?$distinct
if (query.$distinct === '') {
  throw new Error('$distinct no encontrado: ¿Qué campo debería ser distinto? (hooks.distinct)');
}

let distinctValue = query.$distinct || null;
console.log('distinctValue', distinctValue);
if (distinctValue == null) return hook;

// Remove $distinct param from query (preventing errors)
delete query.$distinct;

// Add only the field we are searching for
query = Object.assign({ $select: distinctValue },query)

const rethinkdbQuery = this.createQuery(query);
const r = this.options.r;

// In our case, disable pagination
hook.params.paginate = false;

// Update the query with an additional `distinct` condition
hook.params.rethinkdb = rethinkdbQuery.distinct();

return hook;

}
};`

I solved y problem like this.
`module.exports = function (options = {}) {
return function distinct(hook) {
let query = hook.params.query;
// Must be a before hook
if (hook.type !== 'before') {
  throw new Error('El hook \'distinct\' sólo puede usarse como hook \'before\' (hooks.distinct).');
}

// Throw error when no field is provided - eg. just users?$distinct
if (query.$distinct === '') {
  throw new Error('$distinct no encontrado: ¿Qué campo debería ser distinto? (hooks.distinct)');
}

let distinctValue = query.$distinct || null;
console.log('distinctValue', distinctValue);
if (distinctValue == null) return hook;

// Remove $distinct param from query (preventing errors)
delete query.$distinct;

// Add only the field we are searching for
query = Object.assign({ $select: distinctValue },query)

const rethinkdbQuery = this.createQuery(query);
const r = this.options.r;

// In our case, disable pagination
hook.params.paginate = false;

// Update the query with an additional `distinct` condition
hook.params.rethinkdb = rethinkdbQuery.distinct();

return hook;

}
};`


Should organizations wait for cargo vet aggregate to exist before submitting PRs to registry.toml?

I'm starting an audit file that would currently live at https://raw.githubusercontent.com/zcash/zcash/master/qa/supply-chain/audits.toml which is at the "top level" of our repository tree, but it would likely be replaced with a file in an automated repository once cargo vet aggregate means we can split our audits across several repos.
Put another way, is registry.toml always queried live (modulo cargo vet --locked), or is it baked into the compiled cargo-vet binary? The former means that registry URLs can just be updated or replaced without needing redirects (which are at a minimum non-trivial for hosted git repos). The latter would mean organizations need to be more careful about how registry URLs are migrated.

The plan is for it to be queried live rather than baked into the binary, but that's purely for the "suggestion" part. Once somebody decides they want to start importing that audit set, they'll add the URL directly to their config.toml, at which point migrations will start to become an issue.
It may be a moot point though, because registry fetching and suggestions aren't implemented yet, and will likely be implemented after cargo vet aggregate.

cargo vet aggregate has now been implemented in main, so I've opened #347 with our aggregated audit set. This issue can probably be closed after the next published release.

Thanks! We can probably go ahead and close it now, since aggregate itself has shipped. Still need to implement registry suggestions themselves though.


Doubt about the final saved parameter values of the model for the private test

First of all, thank you for sharing the code. But I have a small question. The final saved parameter values of the model for the private test correspond to the parameters of the convolution network when the model has the highest detection accuracy on the (Private test)dataset. However, in practical applications, the test set cannot be obtained in advance, so the accuracy of the test set is not convincing. I think that the validation set (Public Test) should be used as a reference standard. The final parameter value of the model used for the test set(private test) is corresponding to the parameters of the convolution network when the model has the highest detection accuracy on the validation set(Private test). I think this is more reasonable.Private test is only used during the final test.

Yes, you are correct. But we also find that the best ckpt in validation set also performs best in test set.

Thank you for your reply. But there is a difference between the validation set and the test set, so the best ckpt of validation set may be not corresponding to the best performance on test set.And after trying for several times,I find that the model performs about 72.6%(not reach 73%) on test set with the best ckpt of validation set.I tryed for 5 times and took the average value of the results.I venture to think that using this value as the final test accuracy may be more rigorous.

Yes, you are correct.

Ok, thank you for your prompt reply.


--bing flag minor change

Use ctrl + e instead of alt + d if the --bing flag is present, this ensures that every search attempt uses the default search engine set in the browser.
Function of each:
Ctrl + e: Opens the address bar and uses the default search engine for the query
Alt + d: Opens the address bar (can enter links)
Just a minor change to fix a minor problem. There can be times wherein a search term could be a name of a website. For example, when the query is youtube, the address bar would auto-append .com to it and just open YouTube; when using Ctrl + e, it uses the default search engine, which is Bing in this case, to search for youtube and not go to youtube.com

Thanks, this is a good catch. I don't use Edge or Bing, so I didn't know about this "feature".

Heya! Just added your suggestions to my latest commit.
Chrome and Firefox both use this keyboard shortcut for opening address bar using the default search engine, so I think there won't be any problems for most people.

@znarfm Can you change the PR base branch to develop? Wanting to incorporate this in the next release.

I have changed the base branch of this PR from master to develop as requested.


Critical issue, when ads-manager is inside an iframe, then message not handled

When ads-manager is inside an iframe, then message not handled (the issue was found when ads-manager in DFP iframe)

fixed post message when ads-manager is inside an iframe.

added http://localhost:8081/iframe.html
check with VPAID creative -> https://v.adserve.tv/pg/vast-vpaid.xml


Multiarch build

Hi,
I needed this container to run on my Raspberry PI 3 and added the necessary changes to build it for multiple architectures. I also added some config files so the images can be build automatically by travis or a gitlab runne.r

Thanks for the PR


describe_maintenance_windows action has not been implemented

Reporting Bugs
moto version 1.3.14 installed with pip in a virtualenv on python3 / ubuntu. Using python3 mocks.
The following simple test fails
from moto import mock_autoscaling, mock_ec2, mock_ssm
import unittest

class EC2HelperTests(unittest.TestCase):

    def setUp(self):
        for vv in ['AWS_ACCESS_KEY_ID', 'AWS_SECRET_ACCESS_KEY', 'AWS_SECURITY_TOKEN', 'AWS_SESSION_TOKEN']:
            os.environ[vv] = 'testing'

    def tearDown(self):
        for vv in ['AWS_ACCESS_KEY_ID', 'AWS_SECRET_ACCESS_KEY', 'AWS_SECURITY_TOKEN', 'AWS_SESSION_TOKEN']:
            os.environ.pop(vv)

    @mock_ssm
    def test_get_maintenance_window(self):
        region = 'us-east-1'

        patch_region.return_value = region
        patch_instance_id.return_value = 'fake-instance'

        ssm_client = boto3.client('ssm', region_name=region)

        response = ssm_client.describe_maintenance_windows(
            Filters=[
                {
                    'Key': 'Name',
                    'Values': [
                        "fake-maintenance-window-name",
                    ]
                },
            ],
        )

with the following exception
Traceback (most recent call last):
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/moto/core/models.py", line 88, in wrapper
    result = func(*args, **kwargs)
  File "/usr/lib/python3.6/unittest/mock.py", line 1183, in patched
    return func(*args, **keywargs)
  File "/data/code/pix4d/berlin-infra/fields_cloud_data_sync/couchbase-ami/pix4d-scripts/couchbase_tools/pix4d_couchbase_tools/tests/test_cb_node.py", line 102, in test_get_maintenance_window
    "fake-maintenance-window-name",
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/botocore/client.py", line 316, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/botocore/client.py", line 622, in _make_api_call
    operation_model, request_dict, request_context)
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/botocore/client.py", line 641, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/botocore/endpoint.py", line 137, in _send_request
    success_response, exception):
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/botocore/endpoint.py", line 256, in _needs_retry
    caught_exception=caught_exception, request_dict=request_dict)
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/botocore/hooks.py", line 356, in emit
    return self._emitter.emit(aliased_event_name, **kwargs)
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/botocore/hooks.py", line 228, in emit
    return self._emit(event_name, kwargs)
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/botocore/hooks.py", line 211, in _emit
    response = handler(**kwargs)
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/botocore/retryhandler.py", line 183, in __call__
    if self._checker(attempts, response, caught_exception):
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/botocore/retryhandler.py", line 251, in __call__
    caught_exception)
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/botocore/retryhandler.py", line 269, in _should_retry
    return self._checker(attempt_number, response, caught_exception)
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/botocore/retryhandler.py", line 317, in __call__
    caught_exception)
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/botocore/retryhandler.py", line 223, in __call__
    attempt_number, caught_exception)
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/botocore/retryhandler.py", line 359, in _check_caught_exception
    raise caught_exception
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/botocore/endpoint.py", line 197, in _do_get_response
    responses = self._event_emitter.emit(event_name, request=request)
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/botocore/hooks.py", line 356, in emit
    return self._emitter.emit(aliased_event_name, **kwargs)
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/botocore/hooks.py", line 228, in emit
    return self._emit(event_name, kwargs)
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/botocore/hooks.py", line 211, in _emit
    response = handler(**kwargs)
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/moto/core/models.py", line 272, in __call__
    request, request.url, request.headers
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/moto/core/responses.py", line 197, in dispatch
    return cls()._dispatch(*args, **kwargs)
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/moto/core/responses.py", line 295, in _dispatch
    return self.call_action()
  File "/data/code/pix4d/sandbox/venv_enterprise/lib/python3.6/site-packages/moto/core/responses.py", line 393, in call_action
    "The {0} action has not been implemented".format(action)
NotImplementedError: The describe_maintenance_windows action has not been implemented

Actual result
Exception raised with a NotImplementedError message.
Expected result

successful call to ssm_client.describe_maintenance_windows without exception raised
filter working on the set of maintenance windows:

first call returns an empty set of maintenance windows
second call (after having manually created the maintenance windows) has an active filter with a behaviour close to the one of aws-cli/boto

Thanks for raising this @raffienficiaud - marking this as an enhancement


Added metric r^2 / r-squared

Hi @lvwerra I added r-squared  metric. https://github.com/huggingface/evaluate/pull/395
Can you share the reformatter code?

Looks awesome! First, make sure you have black,isort and flake8:
pip install  "evaluate[dev]"

Then you can run:
make style && make quality

Hope this helps!

I think it's ok! can you check ☺ @lvwerra

Quality and style pass the test! 👍

@lvwerra  Didn't pass the rest of the tests I wonder if something went wrong

Let's discuss on the PR directly :)

It would be nice if you could guide me on this. I haven't slept for 18 hours so I can't focus much right now :)


Read from stdin

Would be helpful for the linter to support reading markdown from stdin, as linters like ESLint allow. Currently trying to integrate the project into https://github.com/w0rp/ale

I think the correct location for this is the CLI project, so will defer to your issue there: https://github.com/igorshubovych/markdownlint-cli/issues/32
If this project needs changes, I will make them as part of that work.
Thanks!


Workflow expression window disappears

Describe the Bug with repro steps

Go to a Logic app in the new view.
Click on an action and fill out a parameter value
Use the expression window to write a workflow expression for that parameter value (dateDifference(............))
Click on a different application window to reference something (Json payload in vs code that you are referencing etc)
Click the expression editor window in the logic app to continue editing the expression.
Expression editor window and the logic you wrote disappear.

What type of Logic App Is this happening in?
Consumption (Portal)
Are you using new designer or old designer
New Designer
Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg
No
Workflow JSON
No response
Screenshots or Videos
No response
Browser
edge
Additional context
No response
AB#25243457

@megamax34 - Are you not able to click on the expression added earlier and see the expression window with the value?

This looks like a new feature, since we never persisted what the user is writing in the expression window unless they click on Add/Update button. this was to make sure we only save correct expressions, if we need to persist it then we need to think if we need to show the persisted value in editor even if it is opened in different parameter or action, or show some kind of warning to user that data will be erased before we auto close it.

A warning may be good; however, would we want to store the expression even when the user clicks on a separate parameter? This seems like it can cause some confusion especially if the user assumed the editor is closed when leaving the editor. Maybe something useful that can be done is instead keep a single global store of the expression editor state - and to add a button to update the editor to the last expression value

this from a developer standpoint would be easier as well, just cause each editor has its own token picker, so to keep track of each token picker state would be more difficult than just having a single global state

So the issue was I had a json payload in a different application (Vs code)
that I was referencing while writing this expression. I had the expression
window open and half of the expression written but then I needed to
reference a separate Json payload in vscode. I clicked vscode and selected
the next file tab to reference the second json payload. In the portal I
could still see the expression window open but when I clicked to the
expression window to continue editing the expression it closed. No matter
where I clicked on the page or even if I just selected the browser itself
the expression window would close every time deleting the expression I had
in there. The expression window was auto closing anytime I left context of
the browser and went back. This does not happen in the OG logic app. The
expression window should only close if I click on the logic app canvas.
I am enjoying the new view though.
On Fri, Sep 22, 2023 at 9:24 PM preetriti1 @.***> wrote:

@megamax34 https://github.com/megamax34 - Are you not able to click on
the expression added earlier and see the expression window with the value?
[image: image]
https://user-images.githubusercontent.com/48265693/270079658-5e02e2d7-fae2-4a1a-babd-c44e75554b61.png
—
Reply to this email directly, view it on GitHub
https://github.com/Azure/LogicAppsUX/issues/3373#issuecomment-1732169898,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGKZUAHEKZED3YW7IEAP3TDX3Y26PANCNFSM6AAAAAA5DLYEB4
.
You are receiving this because you were mentioned.Message ID:
@.***>

@megamax34 looking at this, it seems like it's happening due to the designer being an Iframe in azure portal, which is causing the designer to blur when switching application windows- closing the token picker/ expression editor. I think we can mitigate it for now by adding a paste option for your last expression - then create another github issue to see if we can propagate and not blur the editor

Will be fixed in this https://github.com/Azure/LogicAppsUX/pull/3636 change - expect it to be released in all regions 11/17


Provide reliable/reproducable builds for Scala 3

Currently blocked by https://github.com/lampepfl/dotty/issues/17330. In the meantime should document that artifacts for Scala 3 are not reproducible.

Found another case of non determinism, issue filed at https://github.com/lampepfl/dotty/issues/18248


Please add a docker compose file

Hello Team,
would be great if there was the option to install this via docker compose.

Not important for now


Docker build error🐛

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
dark@jikan-rest:/var/www/jikan-rest$ sudo docker build -t jikan-rest:nightly .
[+] Building 2.7s (12/12) FINISHED
 => [internal] load .dockerignore                                                                                0.2s
 => => transferring context: 338B                                                                                0.0s
 => [internal] load build definition from Dockerfile                                                                                0.1s
 => => transferring dockerfile: 2.68kB                                                                                0.0s
 => [internal] load metadata for docker.io/jikanme/jikan-rest-php:latest                                                                                0.7s
 => [1/8] FROM docker.io/jikanme/jikan-rest-php:latest@sha256:76301fa37b56ba47fca65508f5a49386f0109ae68451b8afb97e0b992163ca0e                                                                               0.0s
 => [internal] load build context                                                                                0.1s
 => => transferring context: 19.32kB                                                                                0.0s
 => CACHED [2/8] RUN SET -ex     && apt-get update && apt-get install -y --no-install-recommends  openssl  git  dos2unix  unzip   wget  && wget -q "https://github.com/aptible/supercronic/releases/downloa  0.0s
 => CACHED [3/8] WORKDIR /app                                                                                0.0s
 => CACHED [4/8] COPY --chown=jikanapi:jikanapi ./composer.* /app/                                                                                0.0s
 => CACHED [5/8] RUN if [ -z "$GITHUB_PERSONAL_TOKEN" ]; then echo "** GITHUB_PERSONAL_TOKEN is not set. This build may fail due to github rate limits.";     else composer config github-oauth.github.com   0.0s
 => CACHED [6/8] RUN composer install -n --no-dev --no-cache --no-ansi --no-autoloader --no-scripts --prefer-dist                                                                                0.0s
 => CACHED [7/8] COPY --chown=jikanapi:jikanapi . /app/                                                                                0.0s
 => ERROR [8/8] RUN set -ex     && composer update jikan-me/jikan     && composer dump-autoload -n --optimize     && chmod -R 777 /tmp/composer/cache     && chmod -R a+w storage/     && chown -R jikanapi  1.6s
------
 > [8/8] RUN set -ex     && composer update jikan-me/jikan     && composer dump-autoload -n --optimize     && chmod -R 777 /tmp/composer/cache     && chmod -R a+w storage/     && chown -R jikanapi:jikanapi /app     && chmod +x docker-entrypoint.php     && chmod +x docker-entrypoint.sh:
#0 0.512 + composer update jikan-me/jikan
#0 0.845 Loading composer repositories with package information
#0 1.260 Failed to clone the git@github.com:pushrbx/lumen-roadrunner.git repository, try running in interactive mode so that you can enter your GitHub credentials
#0 1.266
#0 1.280 In Git.php line 484:
#0 1.280
#0 1.280   Failed to execute git clone --mirror -- 'git@github.com:pushrbx/lumen-roadr
#0 1.280   unner.git' '/tmp/composer/cache/vcs/git-github.com-pushrbx-lumen-roadrunner
#0 1.280   .git/'
#0 1.280
#0 1.280   Cloning into bare repository '/tmp/composer/cache/vcs/git-github.com-pushrb
#0 1.280   x-lumen-roadrunner.git'...
#0 1.280   error: cannot run ssh: No such file or directory
#0 1.280   fatal: unable to fork
#0 1.280
#0 1.280
#0 1.281 update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>...]
#0 1.281
------
Dockerfile:48
--------------------
  47 |
  48 | >>> RUN set -ex \
  49 | >>>     && composer update jikan-me/jikan \
  50 | >>>     && composer dump-autoload -n --optimize \
  51 | >>>     && chmod -R 777 ${COMPOSER_HOME}/cache \
  52 | >>>     && chmod -R a+w storage/ \
  53 | >>>     && chown -R jikanapi:jikanapi /app \
  54 | >>>     && chmod +x docker-entrypoint.php \
  55 | >>>     && chmod +x docker-entrypoint.sh
  56
--------------------
ERROR: failed to solve: process "/bin/sh -c set -ex     && composer update jikan-me/jikan     && composer dump-autoload -n --optimize     && chmod -R 777 ${COMPOSER_HOME}/cache     && chmod -R a+w storage/     && chown -R jikanapi:jikanapi /app     && chmod +x docker-entrypoint.php     && chmod +x docker-entrypoint.sh" did not complete successfully: exit code: 1

Expected Behavior
No response
Steps To Reproduce
No response
Environment
- OS: Debian 10
- Docker version: 23.0.0, build e92dd87

Anything else?
No response

You hit a rate limit from github. You must set a github personal token to be able to build the image.
Example:
docker build --build-arg GITHUB_PERSONAL_TOKEN=<your token here> -t jikan-rest:nightly .

I was able to build a Docker image, but there were already other problems with the application


blog-tutorial-consolidated

closes #397
Summary

Consolidates blog tutorials into one and frames it more as a general Nextjs/Contentlayer approach to writing blogs etc.

Changes

docs/blog-section-tutorial.md

@rufuspollock Please let know if this is what you had in mind for the blog tutorial


Warning for blueprint.xml

When scanning we get a warning that we don't check for authentication on our blueprints/blueprint.xml endpoint.  However enabling authentication on our end is a problem, as it seems Confluence does not send the authentication header when accessing this endpoint.  If we enable authentication we get the following error from ACE:
{ ctx: {} } Authentication verification error (401):  Could not find authentication data on request

I thought I had accounted for this, as I have a local test app that exposes a page template via a blueprint.xml.
Could you please include an app key, url to your app's descriptor, or a marketplace link for an example app that fails this check? I'll take a look at it for you.

@seanmarpo information requested is in a CDAC message.


Implementing a struct called ErrorCodes which serves as a static Dict…

…ionary to look up corresponding error descriptions in string format to the provided error codes (Int values). Also adding tests.

Great, thanks @MatthiasKreileder! 😊 We just need a couple of things to tidy up the tests.

is there a reason you commented out the manifest entry for TimeoutTests? We still want to run those on Linux
please add an entry like that for ErrorCodesTests as well
then add an entry into LinuxMain.swift in the Tests folder

These should make tests run on both platforms.
Regarding the feature - could you also integrate it into the Error initializer? Whenever a new error is getting created with a code, we want to supply this looked-up string as part of the error's description. I can help with that once you have the test stuff above ready.
(Just for reference: this fixes #47)


doc: Improve docs for --files-from et al

What does this PR change? What problem does it solve?
Makes the documentation for --files-from, --files-from-verbatim and --files-from-raw more clear, explicit and coherent.
Was the change discussed in an issue or in the forum before?
Not at all!
Checklist

[x] I have read the Contribution Guidelines
[x] I have enabled maintainer edits for this PR
[ ] I have added tests for all changes in this PR
[x] I have added documentation for the changes (in the manual)
[ ] There's a new file in changelog/unreleased/ that describes the changes for our users (template here)
[ ] I have run gofmt on the code in all commits
[x] All commit messages are formatted in the same style as the other commits in the repo
[x] I'm done, this Pull Request is ready for review

Fixed, should be ready for merging then :)


Change theme programmatically in WinUI 3 preview 3 desktop application

I'm trying to change the theme of the app programmatically
App.Current.RequestedTheme = themes.SelectedIndex == 0 ? ApplicationTheme.Dark : ApplicationTheme.Light;
but I'm getting an exception

System.NotSupportedException
HResult=0x80131515
Message=Specified method is not supported.
Source=WinRT.Runtime
StackTrace:
at WinRT.ExceptionHelpers.ThrowExceptionForHR(Int32 hr)
at ABI.Microsoft.UI.Xaml.IApplication.global::Microsoft.UI.Xaml.IApplication.set_RequestedTheme(ApplicationTheme value)
at Microsoft.UI.Xaml.Application.set_RequestedTheme(ApplicationTheme value)
at FlexGridExplorer.MainWindow.OnSelectionChanged(Object sender, SelectionChangedEventArgs e) in C:\Projects\GrapeCity\c1-netcore\WinUI\Samples\Grid\FlexGridExplorer\FlexGridExplorer\MainWindow.xaml.cs:line 26
at ABI.Microsoft.UI.Xaml.Controls.SelectionChangedEventHandler.<>c__DisplayClass10_0.<Do_Abi_Invoke>b__0(SelectionChangedEventHandler invoke)
at WinRT.ComWrappersSupport.MarshalDelegateInvoke[T](IntPtr thisPtr, Action`1 invoke)
at ABI.Microsoft.UI.Xaml.Controls.SelectionChangedEventHandler.Do_Abi_Invoke(IntPtr thisPtr, IntPtr sender, IntPtr e)

I also tried changing the theme of the root element of the main windows, but the controls don't update accordingly.

Hi @arivoir, use the UIElement's RequestedTheme property instead of Application.RequestedTheme  to change the theme dynamically in Desktop WinUI 3.
Here you can find sample:
https://github.com/microsoft/WinUI-3-Demos/blob/081c65edefd38514e867a71f1b54f910647257f4/src/Build2020Demo/DemoBuildCs/DemoBuildCs/DemoBuildCs/MainWindow.xaml.cs#L138
Hope this helps. Closing the discussion.

That worked, but before I needed to add a background to the root element. Apparently changing the theme of the root doesn't change the background, which I guess belong to the window
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"


[enhancement]: Colour picker should be able to pick colours from outside the bounding box by default without a switch

Is there an existing issue for this?

[X] I have searched the existing issues

Contact Details
No response
What should this feature add?
Currently you can't pick colours from outside the bounding box without turning off the canvas setting Limit Strokes to Box. This setting shouldn't dictate the colour picker behaviour.
Alternatives
No response
Additional Content
No response

I see that it actually can, but the picker cursor disappears, signaling otherwise.

This is implemented in Canvas v2, color picker works anywhere


Increase ownership timeout

See discussion: https://groups.google.com/forum/#!topic/elixir-ecto/1ntidVW_qro
We need to decide if we are increasing this on db_connection or ecto side.

is there a workaround in the mean time?
I think I'm seeing it with Ecto 1.1.4 and Postgrex 0.11.0

This is specific to Ecto 2.0 so you are likely seeing something else. :)

I think it would be nice t have the same defaults in db_connection as ecto to keep things simple and a good decision in one is going to be a good decision in another. What would the timeout be increased to? :infinity? A non-infinity timeout is currently the default so that any leaks get caught.

@fishcakez it depends. If we can improve the error message, I think we would be fine with a timeout of 15 or 30 seconds, because we can use the error to say "your timeout is low, please increase it". Otherwise, I would go for something closer to 120 seconds or possibly infinity.

Beyond 15 seconds leak may not get caught so I think we would be better to improve this error message and perhaps other DBConnection.Error messages.

Done in DBConnection.


Cargo should run doc tests before integration tests

In the process of refactoring I'd like to focus on a single module, making the needed changes to get all the module's tests passing again, then work my way to getting all the integration tests working again. Currently I need to comment out the integration tests to do this, or run with --no-fail-fast.

The exact sequencing of tests in theory shouldn't matter too much, but we should definitely allow cargo test --doc

I disagree that the order of running tests doesn't matter. It implies a sort of flow for fixing and refactoring tests. It seems weird to tell people to fix their integration tests before they have a working library.

Hm perhaps, although we do always support filters in terms of matching the test name to skip running any integration test and go straight to doc tests.
Unfortunately the way Cargo composes multiple test suites isn't necessarily the best right now (e.g. it's not configurable like this)

Problem with filtering is that it requires them to build first. I want to be able to fix my doc tests before thinking about integration.

Right that's what cargo test --doc is useful for because you say you only want to test the --doc target, nothing else.

This sounds like cargo test --doc is sufficient, please reopen if I'm mistaken. Thanks!


no such file directory

getting this error while installing
zsh: ./install.sh: bad interpreter: /bin/bash^M: no such file or directory

Hii @w3b0wl
Please check readme.md file
Thanks,
R0X4R


enable bind:value for svelte

I would like to request to add bind:value support for text and other input types:
Issue: https://forum.framework7.io/t/how-to-bind-a-value-to-svelte-input/9656

It seems like this change set breaks a lot of the coding conversions. Lots of double quotes instead of single quotes for example.
I too would like the components to support bind syntax.

closing as it is supported in v6