Integrated terminal running zsh crash Visual Studio Code

Describe the bug
When I open the integral terminal in Visual Studio Code it will crash the rendering window and keep crashing even after reloading the window.
Further,if close Visual Studio Code and reopen it tries to reopen the closed window with the terminal ,but instead it goes in the  above crash loop.
Here the log from running from the terminal:
code --verbose
(code:31953): Gtk-WARNING **: 13:40:53.440: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version

(code:31953): Gtk-WARNING **: 13:40:53.440: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version
(code:31953): Gtk-WARNING **: 13:40:53.440: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version
Gtk-Message: 13:40:53.462: Failed to load module "appmenu-gtk-module"
Fontconfig warning: "/etc/fonts/fonts.conf", line 86: unknown element "blank"
[31984:0722/134053.711704:ERROR:sandbox_linux.cc(379)] InitializeSandbox() called with multiple threads in process gpu-process.
[main 2019-07-22T11:40:53.716Z] Starting VS Code
[main 2019-07-22T11:40:53.718Z] from: /nix/store/npcabikb04y5x0g7bp7aprij2jhparij-vscode-1.36.1/lib/vscode/resources/app
[main 2019-07-22T11:40:53.718Z] args: { _: [],
  diff: false,
  add: false,
  goto: false,
  'new-window': false,
  'reuse-window': false,
  wait: false,
  version: false,
  help: false,
  'list-extensions': false,
  'show-versions': false,
  verbose: true,
  status: false,
  'prof-startup': false,
  'disable-extensions': false,
  'disable-gpu': false,
  logExtensionHostCommunication: false,
  'skip-getting-started': true,
  'skip-release-notes': false,
  'sticky-quickopen': false,
  'disable-restore-windows': false,
  'disable-telemetry': false,
  'disable-updates': false,
  'disable-crash-reporter': false,
  'skip-add-to-recently-opened': false,
  'unity-launch': false,
  'open-url': false,
  nolazy: false,
  issue: false,
  'file-write': false,
  'file-chmod': false,
  'driver-verbose': false,
  force: false,
  'prof-code-loading': false }
[main 2019-07-22T11:40:53.721Z] Resolving machine identifier...
[main 2019-07-22T11:40:53.722Z] Resolved machine identifier: c97f5c7070f36f059478f952a2340e546a3a95606dfc982e4c6b373dd510b57a
[main 2019-07-22T11:40:54.057Z] update#ctor - updates are disabled by user preference
[main 2019-07-22T11:40:54.074Z] [storage state.vscdb] open(/home/paki/.config/Code/User/globalStorage/state.vscdb, retryOnBusy: true)
[main 2019-07-22T11:40:54.074Z] lifecycle (main): phase changed (value: 2)
[main 2019-07-22T11:40:54.074Z] windowsManager#open
[main 2019-07-22T11:40:54.247Z] lifecycle (main): phase changed (value: 3)
[main 2019-07-22T11:40:54.248Z] telemetry/optInStatus { optIn: true }
[main 2019-07-22T11:40:54.249Z] telemetry/machineIdFallback { usingFallbackGuid: false }
[main 2019-07-22T11:40:54.524Z] getShellEnvironment: running on CLI, skipping
[main 2019-07-22T11:40:54.527Z] [storage state.vscdb] Trace (event): SELECT * FROM ItemTable
[main 2019-07-22T11:40:54.531Z] [storage state.vscdb] getItems(): 70 rows
[main 2019-07-22T11:40:54.632Z] [storage state.vscdb] updateItems(): insert(Map(2) {telemetry.lastSessionDate => Mon, 22 Jul 2019 11:38:17 GMT, telemetry.currentSessionDate => Mon, 22 Jul 2019 11:40:54 GMT}), delete(Set(0) {})
[main 2019-07-22T11:40:54.633Z] [storage state.vscdb] Trace (event): BEGIN TRANSACTION
[main 2019-07-22T11:40:54.633Z] [storage state.vscdb] Trace (event): INSERT INTO ItemTable VALUES ('telemetry.lastSessionDate','Mon, 22 Jul 2019 11:38:17 GMT'),('telemetry.currentSessionDate','Mon, 22 Jul 2019 11:40:54 GMT')
[main 2019-07-22T11:40:54.634Z] [storage state.vscdb] Trace (event): END TRANSACTION
[31953:0722/134054.909582:INFO:CONSOLE(1412)] "%cTRACE", source: file:///nix/store/npcabikb04y5x0g7bp7aprij2jhparij-vscode-1.36.1/lib/vscode/resources/app/out/vs/workbench/workbench.main.js (1412)
[31953:0722/134055.101830:INFO:CONSOLE(1412)] "%cTRACE", source: file:///nix/store/npcabikb04y5x0g7bp7aprij2jhparij-vscode-1.36.1/lib/vscode/resources/app/out/vs/workbench/workbench.main.js (1412)
[31953:0722/134055.103292:INFO:CONSOLE(1412)] "%cTRACE", source: file:///nix/store/npcabikb04y5x0g7bp7aprij2jhparij-vscode-1.36.1/lib/vscode/resources/app/out/vs/workbench/workbench.main.js (1412)
[31953:0722/134055.108637:INFO:CONSOLE(1412)] "%cTRACE", source: file:///nix/store/npcabikb04y5x0g7bp7aprij2jhparij-vscode-1.36.1/lib/vscode/resources/app/out/vs/workbench/workbench.main.js (1412)
[31953:0722/134055.108716:INFO:CONSOLE(1412)] "%cTRACE", source: file:///nix/store/npcabikb04y5x0g7bp7aprij2jhparij-vscode-1.36.1/lib/vscode/resources/app/out/vs/workbench/workbench.main.js (1412)
[31953:0722/134055.277708:INFO:CONSOLE(1412)] "%cTRACE", source: file:///nix/store/npcabikb04y5x0g7bp7aprij2jhparij-vscode-1.36.1/lib/vscode/resources/app/out/vs/workbench/workbench.main.js (1412)
[31953:0722/134055.358822:INFO:CONSOLE(1412)] "%cTRACE", source: file:///nix/store/npcabikb04y5x0g7bp7aprij2jhparij-vscode-1.36.1/lib/vscode/resources/app/out/vs/workbench/workbench.main.js (1412)
[main 2019-07-22T11:40:55.359Z] IPC#vscode-workbenchReady
[main 2019-07-22T11:40:55.359Z] windowsService#isFocused 1
[main 2019-07-22T11:40:55.360Z] windowsService#whenSharedProcessReady
[main 2019-07-22T11:40:55.361Z] windowsService#getRecentlyOpened 1
[31953:0722/134055.363757:INFO:CONSOLE(1412)] "%cTRACE", source: file:///nix/store/npcabikb04y5x0g7bp7aprij2jhparij-vscode-1.36.1/lib/vscode/resources/app/out/vs/workbench/workbench.main.js (1412)
[31953:0722/134055.400326:INFO:CONSOLE(1412)] "%cTRACE", source: file:///nix/store/npcabikb04y5x0g7bp7aprij2jhparij-vscode-1.36.1/lib/vscode/resources/app/out/vs/workbench/workbench.main.js (1412)
[main 2019-07-22T11:40:55.439Z] menubarService#updateMenubar 1
[main 2019-07-22T11:40:55.441Z] windowsService#getRecentlyOpened 1
[31953:0722/134055.443155:INFO:CONSOLE(1412)] "%cTRACE", source: file:///nix/store/npcabikb04y5x0g7bp7aprij2jhparij-vscode-1.36.1/lib/vscode/resources/app/out/vs/workbench/workbench.main.js (1412)
[31953:0722/134055.443195:INFO:CONSOLE(1412)] "%cTRACE", source: file:///nix/store/npcabikb04y5x0g7bp7aprij2jhparij-vscode-1.36.1/lib/vscode/resources/app/out/vs/workbench/workbench.main.js (1412)
[31953:0722/134055.443215:INFO:CONSOLE(1412)] "%cTRACE", source: file:///nix/store/npcabikb04y5x0g7bp7aprij2jhparij-vscode-1.36.1/lib/vscode/resources/app/out/vs/workbench/workbench.main.js (1412)
[31953:0722/134055.443242:INFO:CONSOLE(1412)] "%cTRACE", source: file:///nix/store/npcabikb04y5x0g7bp7aprij2jhparij-vscode-1.36.1/lib/vscode/resources/app/out/vs/workbench/workbench.main.js (1412)
[31953:0722/134055.443260:INFO:CONSOLE(1412)] "%cTRACE", source: file:///nix/store/npcabikb04y5x0g7bp7aprij2jhparij-vscode-1.36.1/lib/vscode/resources/app/out/vs/workbench/workbench.main.js (1412)
[main 2019-07-22T11:40:55.449Z] windowsService#startCrashReporter
[31953:0722/134055.468676:INFO:CONSOLE(1412)] "%cTRACE", source: file:///nix/store/npcabikb04y5x0g7bp7aprij2jhparij-vscode-1.36.1/lib/vscode/resources/app/out/vs/workbench/workbench.main.js (1412)
[31953:0722/134055.531486:INFO:CONSOLE(1412)] "%cTRACE", source: file:///nix/store/npcabikb04y5x0g7bp7aprij2jhparij-vscode-1.36.1/lib/vscode/resources/app/out/vs/workbench/workbench.main.js (1412)
[main 2019-07-22T11:40:55.532Z] windowsService#getRecentlyOpened 1
[main 2019-07-22T11:40:55.597Z] windowsService#setRepresentedFilename 1
[31953:0722/134055.599228:INFO:CONSOLE(3343)] "%c[Extension Host] %cdebugger listening on port 29319", source: file:///nix/store/npcabikb04y5x0g7bp7aprij2jhparij-vscode-1.36.1/lib/vscode/resources/app/out/vs/workbench/workbench.main.js (3343)
[31953:0722/134055.751324:ERROR:channel.cc(642)] Invalid message size: 842019379
[31953:0722/134055.751370:ERROR:render_process_host_impl.cc(4533)] Terminating render process for bad Mojo message: Broker host received malformed messag
[31953:0722/134055.751393:ERROR:bad_message.cc(25)] Terminating renderer for bad IPC message, reason 123
[main 2019-07-22T11:40:56.118Z] [VS Code]: render process crashed!
[main 2019-07-22T11:40:56.186Z] telemetry/windowerror { type: 2 }
[main 2019-07-22T11:41:05.724Z] Lifecycle#window.on('closed') - window ID 1
[main 2019-07-22T11:41:05.724Z] Lifecycle#onWillShutdown.fire()
[main 2019-07-22T11:41:05.735Z] Lifecycle#app.on(window-all-closed)
[main 2019-07-22T11:41:05.735Z] Lifecycle#app.on(before-quit)
[main 2019-07-22T11:41:05.735Z] Lifecycle#onBeforeShutdown.fire()
[main 2019-07-22T11:41:05.736Z] Lifecycle#app.on(will-quit)
[main 2019-07-22T11:41:05.737Z] [storage state.vscdb] close()

To Reproduce
Steps to reproduce the behavior:

Open Visual Studio Code
Open the integrated terminal
Wait for VSC to recognize the frozen window and offer to reload it
VSC keep crashing each time we click on "reload"

Expected behavior
The integrated terminal appears,runs smoothly
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Metadata

system: "x86_64-linux"
host os: Linux 5.1.16, NixOS, 19.09pre185259.362be9608c3 (Loris)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.2.2
channels(root): "nixos-19.09pre185259.362be9608c3"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
-nixpkgs.vscode
# a list of nixos modules affected by the problem
module:

What type of shell is your account configured with? I'm using the same version of VSCode and it works fine to spawn bash shells inside of it.
Or maybe it's one of the extensions that is causing a problem.
Maintainers: @eadwu @synthetica

I've already checked,I get the same problem by deleting VSC's extension and configuration directories in my home
On 23/07/19 11:00, zimbatm wrote:
What type of shell is your account configured with? I'm using the same version of VSCode and it works fine to spawn bash shells inside of it.
Or maybe it's one of the extensions that is causing a problem.
Maintainers: @eadwuhttps://github.com/eadwu @Syntheticahttps://github.com/Synthetica
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/NixOS/nixpkgs/issues/65261?email_source=notifications&email_token=ABU4KH3SJXDAHFOXDQOI4ELQA3CD7A5CNFSM4IFXZWT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2SNW7I#issuecomment-514120573, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABU4KH7SXAUPRLYJUKQGDH3QA3CD7ANCNFSM4IFXZWTQ.

On further checks,I found that SHELL=/bin/sh code does not give me problems. I have
echo $SHELL
/run/current-system/sw/bin/zsh

It seems that SHELL=$(which zsh) code again present problems

readlink $(which zsh)
/nix/store/5l5hrigqi363qdyi71wf13qwcm0iamg1-zsh-5.7.1/bin/zsh

$ nix-store --realize /nix/store/5l5hrigqi363qdyi71wf13qwcm0iamg1-zsh-5.7.1
$ SHELL=/nix/store/5l5hrigqi363qdyi71wf13qwcm0iamg1-zsh-5.7.1/bin/zsh code

then inside of vscode:
x1% echo $SHELL
/nix/store/5l5hrigqi363qdyi71wf13qwcm0iamg1-zsh-5.7.1/bin/zsh

Did you try and remove your .zsh config yet?

That did the trick.I have
DEFAULT_USER=paki
### Added by Zplugin's installer
source '/home/paki/.zplugin/bin/zplugin.zsh'
autoload -Uz _zplugin
(( ${+_comps} )) && _comps[zplugin]=_zplugin
### End of Zplugin's installer chunk

# module_path+=( "/home/pasquale/.zplugin/bin/zmodules/Src" )

setopt promptsubst
zplugin ice wait"0" lucid
zplugin snippet OMZ::lib/git.zsh
plugins=(
  git command-not-found common-aliases compleat debian
  dircycle django extract git-extras perl
  pip python pylint sudo systemd colored-man-pages vscode
  man mercurial
)
for i in $plugins
{
  zplugin ice wait"0" lucid
  zplugin snippet OMZ::plugins/$i/$i.plugin.zsh
}
zplugin light  "zdharma/zconvey"
github=(
  "mollifier/cd-gitroot"
  "gmatheu/zsh-plugins"
  "MichaelAquilina/zsh-you-should-use"
  "Valodim/zsh-_url-httplink"
  "zdharma/fast-syntax-highlighting"
  #"aperezdc/zsh-fzy"
  "Tarrasch/zsh-bd"
  "AlexGascon/pipenv-oh-my-zsh"
  "joepvd/zsh-hints"
  "psprint/ztrace"
  "aramboi/zsh-ipfs"
  "zpm-zsh/ssh"
  "joow/youtube-dl"
  "zsh-users/zsh-history-substring-search"
  #"psprint/zsh-editing-workbench"
)
for i in $github
{
  zplugin ice wait"0" lucid
  zplugin light $i
}

source ~/.zplugin/plugins/zsh-users---zsh-history-substring-search/zsh-history-substring-search.zsh
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down

POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir dir_writable vcs virtualenv root_indicator)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(command_execution_time status background_jobs todo  )
zplugin load romkatv/powerlevel10k


Validation of produces can cause trouble with empty bodies

When I'm building an API, I'm likely to thing JSON-first, so I'll set my consumes and produces as a top-level declaration. However, there are times where a POST can return an empty body, not just an empty set of {} braces.
Express, for example, assigns a Content-Type of text/plain in this situation. Either swagger-tools should inject the appropriate Content-Type, such as application/json, or else it should skip Content-Type validation of empty bodies (or it could remove the Content-Type all together). One edge cases to consider is whether an Accepts header has been passed, in which case, it might make sense to return the Content-Type that the client has asked for with the empty body.

One more approach would be to override the produces in the spec to be text/plain. While pedantically correct, this is an unexpected requirement and places too much burden on the designer to discover and correct the issue.

I don't see swagger-tools ever injecting the Content-Type of a response as that is the responsibility of the API author.  I realize the problem here but I just don't think swagger-tools is where the fix should be.  Since the Swagger document describes how the API works, either it should be updated to reflect that the API could return text/plain so you don't have to update your controller to do the right thing or the controller needs to set the Content-Type itself.
My first inclination was to just disable validating the Content-Type for void responses and to do this would be a very simple fix.  (Note: We already do not do response content validation for void responses because there is no schema to use to validate the response content, which happens to be nothing here.)  But from the perspective that the Swagger document describes how an API will respond, just disabling the validation of Content-Type didn't feel right because it allows your Swagger document to say that it responds with a Content-Type of X but your API is actually returning a Content-Type of Y.
The whole idea of swagger-tools' response validation is to ensure that your response, all of it so not just the response content, adheres to what you've defined in your Swagger document.  This isn't about being "pedantically correct", it's about ownership and none of swagger-tools' middleware ever gets involved in crafting/altering a response so I don't see it starting now.
Of course, I'll keep this open to read the rebuttal but I just wanted to explain this for those following along.

Not that this is relevant to empty bodies... but I wonder where all this leaves things like 500 errors generated outside of our control? Will we always be potentially open to getting a response validation error that really only masks another error? Or is there a dictate that the Swagger must always include a generic "unknown error" definition and the app must always register an error handler to ensure that format? Or is there some other solution?

Well, all errors are not really masked.  Sure, the "response validation" error message is the one printed whenever you rely on the default error handler but all errors introduced or encountered by swagger-tools are printed to console when debugging is enabled.  Whenever we wrap res.end we are wrapping the lowest-level API that handles sending responses so it's impossible to know if the response was due to some error or a route handler response.
I'm sure we can come up with something.

The original issue is not something I think I want to budge on.

When I'm working in a contract-first workflow, if the controller I define returns a null response, and I've declared that my operation produces: application/json, but then the server doesn't return application/json as the Content-Type, it is confusing to me as to why that happened.
Is it ever a problem when a server returns an empty body under the guise of application/json? Perhaps Express is getting in the way? It seems to be adding the text/plain, which is conflicting with the contract validation.
I can respect that swagger-tools doesn't craft/alter the response—in which case maybe this is a swagger-node rather than swagger-tools problem?

Now that the registration of the json error handler in swagger node works properly, perhaps this will be less of an issue for you?

I agree but it's your server that isn't returning the proper Content-Type.  You own the controller and the logic required to adhere to your Swagger contract.

@theganyo Probably not as this is an empty response.  @earth2marsh's controller just calls res.end(); but does not set the Content-Type to application/json but his Swagger document says the API this handler adheres to returns application/json.  Express' default is text/html and since that is not one of the valid options, there are two options:

Update the Swagger document produces where applicable to have text/html in it
Update the controller for this API to set the Content-Type to application/json

This is unrelated to error handling.

Right. Ok. So we really need to decide what purpose the validate response actually serves in the context of a live API. It seems that it's a debugging tool only that one wouldn't want to turn on except at that point. Perhaps, even, it should just a warning on the server instead of an error that ever would be propagated to the client.

It's definitely up for discussion.  Let me start a new thread and get others involved.

Have this discussion moved somewhere else? If so, could someone point me to it, please?

The Swagger way of doing this is that if you intend to have an empty body, you should have a response without the schema property set.  Right now, we're following what Swagger suggests and we didn't really talk more about it.


The algorithm to generate report names does not generate unique names

Here is a repo that is being tested on multiple operating systems (ubuntu-latest, macos-latest, and windows-latest),
https://github.com/lextudio/sharpsnmplib/runs/4499386025?check_suite_focus=true
and you can see the reports from Ubuntu and macOS have the same name so in the end only one report is showed.
The algorithm should be improved such as adding the job name to report names.

@lextm Apologies for the massive delay. I have added a new optional REPORT_PREFIX input. This can be any string that you provide from your workflow.


Also export sendErrorToSlack function

Would be great to also export sendErrorToSlack function in case we would like to manually send an error (outside of express) to slack, using the same nice formatting.
Thanks!

Thanks for your feedback! I have published the new version of this module. If you have any ideas, feel free to make pull request for any additional features.

Awesome, thanks!


2020 m1 macbook pro weird errors everywhere

(instantmesh) me@myshit InstantMesh-main % python run.py configs/instant-mesh-large.yaml examples/hatsune_miku.png --save_video --no_rembg
Intel MKL WARNING: Support of Intel(R) Streaming SIMD Extensions 4.2 (Intel(R) SSE4.2) enabled only processors has been deprecated. Intel oneAPI Math Kernel Library 2025.0 will require Intel(R) Advanced Vector Extensions (Intel(R) AVX) instructions.
Intel MKL WARNING: Support of Intel(R) Streaming SIMD Extensions 4.2 (Intel(R) SSE4.2) enabled only processors has been deprecated. Intel oneAPI Math Kernel Library 2025.0 will require Intel(R) Advanced Vector Extensions (Intel(R) AVX) instructions.
/Users/me/opt/anaconda3/envs/instantmesh/lib/python3.10/site-packages/transformers/utils/generic.py:311: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
torch.utils._pytree._register_pytree_node(
Seed set to 42
Loading diffusion model ...
Loading pipeline components...:  25%|████████████████████████▊                                                                          | 2/8 [00:00<00:01,  5.49it/s]The config attributes {'dropout': 0.0, 'reverse_transformer_layers_per_block': None} were passed to UNet2DConditionModel, but are not expected and will be ignored. Please verify your config.json configuration file.
Loading pipeline components...: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:06<00:00,  1.27it/s]
Loading custom white-background unet ...
Traceback (most recent call last):
File "/Users/me/Desktop/InstantMesh-main/run.py", line 109, in
state_dict = torch.load(infer_config.unet_path, map_location='cpu')
File "/Users/me/opt/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/serialization.py", line 998, in load
with _open_file_like(f, 'rb') as opened_file:
File "/Users/me/opt/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/serialization.py", line 445, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/Users/me/opt/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/serialization.py", line 426, in init
super().init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'ckpts/diffusion_pytorch_model.bin'

@covalspace Hi, please download the model checkpoints from the model card first and put them under the ckpts folder.

Hi sorry I don't know what any of this means. I downloaded the zip extracted and followed the readme. I don't have a ckpts folder and don't know what checkpoints are. I'm assuming these are the model checkpoints?
instant_mesh_base.ckpt
1.25 GB
LFS
upload
1 day ago
instant_mesh_large.ckpt
1.51 GB
LFS
upload
1 day ago
instant_nerf_base.ckpt
1.25 GB
LFS
upload
1 day ago
instant_nerf_large.ckpt
1.51 GB
LFS
upload
1 day ago
where should the ckpts folder be?

@covalspace The ckpts folder should be under the source directory of this project,, i.e., /path/to/InstantMesh/ckpts/, please create it yourself. After downloading the reconstruction model and the diffusion unet, their model paths should be /path/to/InstantMesh/ckpts/instant_mesh_large.ckpt and /path/to/InstantMesh/ckpts/diffusion_pytorch_model.bin.
By the way, run.py can download the required models automatically now. You can pull the newest code so that you don't need to care about the model path anymore.

AssertionError: Torch not compiled with CUDA enabled
idk what the issue is I was able to run tripoSR so  idk

this issue is not complete

TripoSR supports torch-cpu, that's probably why you can run it with a MacBook but not for this one...


Check if Shared/RedirectToLogin.razor can be removed

Validate login and logout components and clean up

removed, will be released in next version


KON-288 Throw KoAssertionFailedException Instead Of KoCheckFailedException

Should assertArchitecture also throw KoAssertionFailedException? If so, is this an API breaking change?


Keypad can be partly obscured on small screens.

Describe the bug
On small screens the offset of the keypads can cause these to be partly invisible; esp enter/escape. See also [#187
](https://github.com/ImpulseAdventure/GUIslice-Builder/issues/187)
Device hardware
ESP32 with a small TTGO
Expected behavior
At least some attempt to keep the keypad on teh screen.

@dirkx Already supported in the Builder by way of edit-options->KeyPadAlpha or KeyPadNum.
Paul--

@Pconti - and that helps a lot - but may still make sense to limit/shift the sizes to screen size.


feat: 616 frontend main page

New dashboard screen;
Grant access flow pages redesigned with the new design system;
Removed footer;
Updated header;
profile component created (#648);
sidebar component created;
new notifications (#653)

I got this error in the console after I logged in

I got this error in the console after I logged in

I think I also hit this error... but not too sure, I quickly turns to other action so didn't look into it.

I'm actually don't like the big space here, maybe there is a reason I don't know. But we could chat about this and work for a bette dynamic solution to leave the space for messages. thanks!!

I am not sure if it is just on my browser display or else.... first impression on viewing the app dashboard the first time locally, I suddenly feel the font on label seems quite small and lighter that I might need to pay more attention to read.
Maybe due to the BC San font default is like that? Should we make it slightly larger or darker? Not quite sure where is that's the issue for others.
Just a feedback, probably was design that way...

Just for best practice and clean code, when we write import and define variables, let's group them in order.
For example, for import statements:

import from vue for any package goes first
import component from the ui library goes next (primevue component first, function next)
import component from our local folder goes next
then we import any local service call, api, state
then we import type

When we define variables, we group them a bit. For example, let's put confirm and confirmRemoveMessage together so we know they are related. Put variables for api service and user role assignment ones together, so we know they are related as well. Otherwise if put them whatever, it's hard for us to review and understand the code in the future.

I got type warning on this one

Thinking of consistency, maybe let's have

wondering if we remove the bottom border of the last row on purpose?

When no user role assignments found for a selected application, this error message is not correct.

let's merge the main branch as well to keep up to date

In the case I couldn't verify a forest client id, should submit button be disabled?

Looks like in the code we don't support search by identity type. We could consider support this search or update the displayed message

Wondering when we click on the data table header for sorting, the column size will change...

Wondering when we assign a duplicate role, shall we get "Role already assigned to user." error message? This one looks a little bit general.

I assume we'll always get a default select for the user's domain, but sometimes I get this situation

um.... I'm actually don't like the big space here, but I know it's in the design system. Maybe we could confirm with Olga. thanks!

Would you prefer to have the table right below the dropdown? Actually we need to have some space there for the notifications to appear.

We need to add the following to the frontend/src/assets/styles/styles.scss file, to override the font family for component
.p-component  {
font-family: map.get(typeFamily.$type-family, 'sans');
}

I got this error in the console after I logged in

This is fixed.

In the case I couldn't verify a forest client id, should submit button be disabled?

This has been fixed.

I got type warning on this one

Replacing it back to .sort gives one code smell in Sonar Cloud.

This part of dashboard is broken for user:
(When user did not select application but clicked Grant Access)

This is also broken for the user (See my comment about 401/403/409 that I felt Toast Message Component might not be working for previous all cases):
This is the case for http status 403 (Unauthorized operation).

This is also broken for the user (See my comment about 401/403/409 that I felt Toast Message Component might not be working for previous all cases):
This is the case for http status 403 (Unauthorized operation). 401 Error for Toast message is also broken but is a bit trickier to find.

@J0taFerreira could you please investigate this and provide some screenshots in case it is working as expected? Thank you.

Get this warning when grant a user access

I guess this is the error 409 case, when the user already have the role, we need to tell the correct error message

feel this is not aligned... let's do a quick fix for this for now, and we could worry about the style later
/*----------- data table pagnition ---------------*/
.p-datatable .p-paginator-bottom .p-dropdown .p-dropdown-label.p-inputtext {
    padding-top: 7px;
}

this color doesn't look right....

This part of dashboard is broken for user:
(When user did not select application but clicked Grant Access)

This will need further investigation because it might need to refactor the sideNav component to support disabling links after component loading.

I'll create a ticket for this one, and Nick you can confirm with Olga to see if want to disable the grant access button when there is no application selected. #733

Thank you for the ticket Catherine! This will need to be fixed as soon as we can (as mentioned on the ticket before next release). Thanks.

This is also broken for the user (See my comment about 401/403/409 that I felt Toast Message Component might not be working for previous all cases): This is the case for http status 403 (Unauthorized operation). 401 Error for Toast message is also broken but is a bit trickier to find.

The 401/403 errors are still there as I can reproduced.
I discussed with @MCatherine1994  and created this ticket: #735.

Catherine has approved it so no need for my approval but did verify few critical ones.
I also chatted with Catherine that I also feel maybe it is better to let this PR go but our dev environment will not be in a good standing for the FAM frontend to be released. We should address several bugs as soon as we can, deploy to dev after that and let Olga or others to test and find bugs until the level we feel it is good for users. @gormless87


Fix issue around NOLINT

See commits merged at Google:

https://github.com/google/styleguide/commit/a3c36d93d236c8c4c1d8263e99edf70d24a043f4
https://github.com/google/styleguide/commit/af8c84341d1f0df6d646650bd79cb68c6724aa55

PR in #23


Doc updates for shared mailbox support

This tracks any doc updates required for recent changes to support shared mailbox.

Merged in - https://github.com/alcionai/corso/pull/3231


Drop postUrl as a config requirement

As discussed in #7 already, here is my suggested solution.
If postUrl is omitted in the configuration, the dropzone.js specific attribute autoProcessQueue is set to false and the url is set to some random string so that dropzone.js is not complaining.
Note that this is only one possible solution.
Since dropzone.js requires a defined configuration variable url we need to define something at least.
Another option would be to leave the configuration to the user and let him set url for itself (as it can either be a function or a string).
Though we would need to allow the react-dropzone-component user to set autoProcessQueue as a prop on our component.

Looks good to me, thank you very much!


kiex and GitHub API rate limit

Hello.
Travis CI recently started using kiex to manage multiple Elixir versions.
Currently, kiex makes anonymous GitHub API calls to get the list of known releases. If this API call fails, it simply gives up. This is a problem with popular service like Travis CI, since the rate limit of 60 per hour will be easily exceeded. This manifests in issues like https://github.com/travis-ci/travis-ci/issues/3269.
It is desirable to add a mechanism to pass the user OAuth token whenever user agent is used, so that we get a higher rate limit (5000/hour). Also, in the face of such an API call failure, kiex should fail somewhat gracefully, notifying the user that the API call failed, instead of "Unknown Elixir" (because kiex doesn't know which version is known and which is unknown).
I'm happy to work on a PR, if such a behavior is desirable.

Sounds great @BanzaiMan.  Not sure how the user agent is used for the OAuth.  I normally passed in environment variables.
My testing was in docker containers and never exceeded the limits so I never even went with env variables.


OBS TQ didn't validate

When Abel demoed gA OBS TQ failed to validate

In DCS QA (as of this week), there is no tq_OBS.tsv file.
But in production, there is. It will be there next week when QA refreshes over the weekend. So in production, the obs-tq file will validate:

This does raise an interesting question... The manifest is marked as "OK" since the project section points to the "content" folder where the current markdown files are. And since the folder exists, I don't flag that as a problem.
Perhaps I should, at least during this transition to TSV period.
Thoughts?

@birchamp forgot to tag you on my post above.


Cannot build app in android studio..resource not found error

I have directly imported your package in android studio but it gives several errors on build. This is one of such error:
Error:(18, 58) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_check_to_on_mtrl_015').
this is my app build.gradle..other projects with similar gradle file works fine
buildToolsVersion '23.0.0'
compileSdkVersion 23
minSdkVersion 10
targetSdkVersion 23
compile 'com.android.support:design:23.0.0'
compile 'com.android.support:appcompat-v7:23.0.0'
compile 'com.android.support:recyclerview-v7:23.0.0'
compile 'com.android.support:cardview-v7:23.0.0'
compile 'com.android.support:palette-v7:23.0.0'
compile 'com.github.ozodrukh:CircularReveal:1.1.0'
compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'

Clean project and rebuild it for me. Or File> Invalidate Caches and restart. If it still doesn't work, then let me know.

Did that several times. just importing the project gives me error without any changes to it.

after downloading the repository as zip and importing in android studio it worked. Its crazy sometimes.
Thanks for this template. Can you also show how to maintain single nav drawer throughout app like for multiple activities. or should I use single activity with nav drawer and multiple fragments for content. Any material guideline for this scenario.

With the new support library versions, a lot of these default resource references are now marked private.
Which means you can no longer reference them. Pass in your own Drawable resource.
For maintaining a Navigation Drawer across activities, make those Activities extend DrawerActivity.

How do I get ActionBar to work for my app? I am using API 23 and all my action bars have disappeared.

@snetts You need to use the new Toolbar widget. You can check any of my Activity files to see how its done.

Thanks @Suleiman19 . Let me get this Toolbar working.


Bundle with esbuild

I have been able to bundle DataTable and its buttons extension into a single JS file using esbuild.
However I am not yet able to export jQuery and DataTable otherwise than by setting them on window. Note sure if there is a better workaround?

I've just pushed a commit that should fix it, I believe what you were missing was --format=esm :)

Awesome thank you François!


only include pvc in volume mounts at stage restore of a pod

This PR trim downs volumes and volume mounts to only PVCs while restoring pods in stage migration. Needed for the PR
Changes include:

swapping container images with stage pod image and adding the command sleep to make the application pod look like stage pod
trimming down the list of PVC to only the volumes that are required to copy over for containers of the pod.

LGTM


Author link is red link to a wrong user

Summary:
Take a look at this please https://commons.wikimedia.org/wiki/Special:ListFiles/Ww9980 , e.g. https://commons.wikimedia.org/wiki/File:20191001_梅江站.jpg .
This user's name is Ww9980, but the author field is [[User:WFan|WFan]] , linking to a different (and in this case non-existent) username.
This should not happen!
Commons app version:
This file was uploaded via Mobile Android App (Commons mobile app) 2.10.2~66e1539a1.
Would you like to work on the issue?
No. I cant code.

Is this an issue with the app @misaochan @nicolas-raoul ?

Wow, interesting, I have never encountered or heard of this issue. But for this user it does look like it happened. Strange...

I'll do a bit of investigation into this and see what I can find.

I think someone might need to look in the database to check some of the values. A couple of things looked like they might not always return the expected username or at least they might return different values at different times:
1 : You can get either the user name or raw user name.
2 : I'm not sure when multiple accounts would exist for this method but it will always use the first one returned. It's not clear if that's going to be the right one or not and this is where the uploaded name will come from.

Did the orignal author turned on the "Use custom author name" in the app Settings and uploaded an image with a custom name?

@AntSYau Might be! Would you mind trying?  It did result in different Author names on the website.

Interesting!
Do you want to try and fix this issue? If yes I can assign it to you.

I think I can give it a try, but I'm still learning Android programming so it may take more time...

Take your time, but please just let us know about your progress every few days at least. Thanks! :-)

Ok~ I'll try my best

I reconsidered this issue, and found that this may be a feature instead of a bug... If an user choose to upload media with custom name, it should means that the user wants to redirect viewers to another page instead of his own main page. And in this case, that page doesn't exist. I feel like we can only alert user that he is using a custom name, but if he chooses to proceed, there is really nothing we can do... Or maybe we can test if the page linked to that custom name really exists, but that's beyond my abilities :(

No I consider this a bug, at least with the current UI messages. I turned custom author name on and set it to my full name Jan Ainali. I expected it to upload with the author set to [[User:Ainali|Jan Ainali]], but instead it got uploaded with [[User:Jan Ainali|Jan Ainali]]. From mobile, that should be much more common than actually uploading some other user's images.

No I consider this a bug, at least with the current UI messages. I turned custom author name on and set it to my full name Jan Ainali. I expected it to upload with the author set to [[User:Ainali|Jan Ainali]], but instead it got uploaded with [[User:Jan Ainali|Jan Ainali]]. From mobile, that should be much more common than actually uploading some other user's images.

Ok it seems I got it wrong :( I'll look into it. Thanks!

I found the problem. In fr.free.nrw.commons.settings.SettingsFragment.getPageContents(), both username and display name are referenced to the same creator variable, whose value is either authorName preference field or sessionManager.getAuthorName(), depends on whether Custom Author Name is on/off.
public String getPageContents(Context applicationContext) {
    StringBuilder buffer = new StringBuilder();
    buffer
            .append("== {{int:filedesc}} ==\n")
            .append("{{Information\n")
            ...
            .append("|author=[[User:").append(creator).append("|").append(creator).append("]]\n");
    ...
}

I plan to add a creator_username variable alongside creator, and append these variables in getPageContents() seperately.
Sorry for taking this long, I had to deal with mid term exams🙃

This just happened to me here: https://commons.wikimedia.org/wiki/File:Wittenburgergracht_night.jpg

Hello, is there any update on this issue? Just had this exact problem yesterday.
@AntSYau @nicolas-raoul

@AntSYau Are you still working on this?


Enablement of AFF-based object handler for object type SAJC

fixes issue #1580

@ThomasPloski can you help adding a test in https://github.com/abapGit-tests ?

Empty repo with start with https://github.com/abapGit-tests/SAJC

@ThomasPloski


FastQuit

CurseForge link
https://www.curseforge.com/minecraft/mc-mods/fastquit
CurseForge Mod Distribution
Allowed
Modrinth link
https://modrinth.com/mod/fastquit
Source/other link
https://github.com/KingContaria/FastQuit
Mod file size
21.86 KB
License
(any other license)
What it does
Makes leaving a singleplayer world faster, continuing the saving process in the background. Safety precautions are taken to ensure it works even if you try to quit the game etc
Why should it be in the modpack
Allows the user to skip the world leaving waiting screen and do something else faster, e.g. joining a server or changing settings.
Why shouldn't it be in the modpack
Needs more testing to ensure safety precautions are fine
Additional details
No response

file size has increased quit a bit (to ~78KB) mainly because of added icon file and MixinExtras implementation

Have used this mod for quite some time now. Has worked without any issues so far.


Closing widgets causes the whole window to flicker

When I close a message widget in the demo (last item on the left), the entire window sometimes flickers white.

Good catch. It's because of container resize event. It should either has fixed size or use some kind of placeholder.

Closing, as there is no such example in the new version. The showcase widget has been replaced by the Message control.


Connection properties assume tls connection

Correct the current logic that an ssl context is not set when ssl parameters are input.
Improve the current logic to reference the parameter ssl: bool to determine of ssl is to be configured or not.

Improved the general handling of connection properties, added defaults for host names, ports etc. also added support for ssl: bool input to dictionary based connection parameters.


Add signature validation

It looks like the current sample is vulnerable to spoofing. The function should validate the signature on every request: https://azure.github.io/azure-webpubsub/references/protocol-cloudevents.html#web-pubsub-service-atrribute-extension
https://github.com/benc-uk/chatr/blob/67e124127304b05dba73356f3ebae9a8419464e6/api/eventHandler/index.js#L43

Good catch, this is probably one of the downsides of using my own HTTP trigger rather than the Function extensions & bindings/triggers for Web PubSub
But I couldn't find a way to get them to work in a Static Web App
I'll see if I can tighten this up

I think it’s totally valid to use your own http function. There’ll be an input binding that will do this work for you that should be available in a few months to simplify this a lot.
In the meantime it would be great to update this sample in case someone copies it. Maybe just adding a comment near that userId line that indicates this is missing would be helpful. Thanks for putting this together!


CLI: add a flag to exit with non-zero code only for fixable vulnerabilities

Is your feature request related to a problem? Please describe.
When using pip-audit in CI pipelines, there is no point in failing [exiting with non-zero code] for finding unfixable vulnerability in dependencies.
Describe the solution you'd like
--only-fixable flag (or something similar) to ignore vulnerabilities where no fixed version is available in the database.
Describe alternatives you've considered
A solution would be to run pip-audit, trap its exit code. If it fails run pip-audit --fix and trap its exit code. If it succeeds, exit 1. Otherwise, run diff on input and output lists and return its exit code.
Additional context
I know that I can trap the exit code all together, filter a single vulnerability ID, or set my CI job to allow failure. But as far as I can see, none of them can replicate this exact behavior.

Thanks for the request @MFTabriz!
Could you say a bit more about your use case here? Are you running pip-audit --fix in your CI?
Note that pip-audit does not currently "fail" if it can't fix a vulnerability: it exits with a non-zero exit code, but the overall operation completes successfully (in terms of patching what it can). The non-zero exit code is purely there to indicate that something other than "no vulnerabilities found" happened.
If your goal is to ignore runs of pip-audit --fix where no changes are made, my (initial) recommendation would be to suppress the exit code entirely and instead check (via git or similar) whether pip-audit has made any file changes. But I may also be able to offer a better recommendation with more context here 🙂

Hi @woodruffw! Thanks for quick response. I edited the issue to distinguish between a non-zero exit code and failing.
I’m running pip-audit in a CI job. The goal of this job is to report when a vulnerability in the dependencies is discovered so that the maintainers can update the dependencies. pip-audit exists with non-zero code even when there is no fixed version of a vulnerable dependency is available. In these cases usually there is no action by our developers / maintainers is required.
In "Describe alternatives you've considered" section above I just described how that behavior can be "roughly" mimicked.

I think we don't want to change the current behavior here, and we're somewhat conservative about adding new flags at the moment (since each new flag needs to be handled in both "audit" and "fix" modes, and needs to be reconciled with long term pip integration goals). That being said, I'm CCing @di here to see if his opinion differs 🙂

I totally get it! If it need too much effort to implement or maintain, there is no point in adding yet another flag.

In terms of another workaround: have you tried suppressing the error code and parsing the output produced by the --format=json option? That output should include whether a fix version is available, meaning that you'll be add some logic to fail the CI job only if a fixable vulnerability is found.

This sounds like a good idea! I’ll give it a try and add my final solution here.

Thanks for the issue!

In these cases usually there is no action by our developers / maintainers is required.

Just calling out that one action that could be required in these cases is a downgrade to a version that isn't affected by the vulnerability -- there could be action required, regardless of whether a fix is available.

I think we don't want to change the current behavior here, and we're somewhat conservative about adding new flags at the moment (since each new flag needs to be handled in both "audit" and "fix" modes, and needs to be reconciled with long term pip integration goals).

I think I'm in agreement here. Generally I think this library should be noisy when a new vulnerability is found, and allow the user to tune it per vulnerability as necessary (i.e. via --ignore-vuln).
That said, I do think there's an interesting edge case when --ignore-vuln and --fix are used together: right now (I believe) we ignore potential fixes if they're being ignored, but it seems like in your case you might prefer to ignore specific vulnerabilities that haven't been remediated yet, but have --fix create fixes for them if/when they are remediated, is that correct?

That said, I do think there's an interesting edge case when --ignore-vuln and --fix are used together: right now (I believe) we ignore potential fixes if they're being ignored, but it seems like in your case you might prefer to ignore specific vulnerabilities that haven't been remediated yet, but have --fix create fixes for them if/when they are remediated, is that correct?

Yes! That would be ideal.

This needs jq to work but should be good enough for most users:
test -z "$(pip-audit -r requirements.txt --format=json 2>/dev/null | jq '.dependencies[].vulns[].fix_versions[]')"

Thanks for providing that snippet @MFTabriz!
If you're willing, I'd be happy to merge a PR that adds that to a new section under the "Tips and Tricks" part of the README 🙂

Awesome. If you don't mind submitting that PR, I'll be able to review it today. Otherwise, it'll probably take me a few days to find the time to do it 🙂


Delete deprecated files and bump version

Questions
Answers

Description?
In order to comply with https://github.com/PrestaShop/PrestaShop/issues/34578, modules must use controllers instead of direct calls to PHP files. This is already done for a long time in this module. This just removes the deprecated files and bumps the version.

Type?
refacto

BC breaks?
yes

Deprecations?

Fixed ticket?

Sponsor company

How to test?
No need, the file is not used.

Hello @Hlavtox,
It's good for me! :tada:
Thanks!

Thank you @paulnoelcholot! :-)


stdenv: default unpack can unpack bzip2 as well

Running tar xf foo.bz2 will successfully decompress without explicitly passing
the tar options, just like the others in this list.
Since it often produces smaller archives without significantly increasing
compression or decompression time, we may want to use it more often.

Motivation for this change
Things done

[X] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

Per tip from @samueldr on IRC, all bz2 tarballs should be named *.tar.bz2, which will be caught by the *.tar.* clause in the conditional already; hence we don't need the explicit clause for bz2.


[hotfix] Remove incorrect savepoint path check

The validation for valid lastSavepoint path is obsolete and can actually cause issues when trying to resume a job after a last-state suspend operation.
With the current logic upgradeMode mostly affects how the job is suspended and not how they are restored, as the way the job was suspended directly affects what state is available for restore.
The only exception is stateless restore which directly forces empty state, otherwise the job will always use the last state available (in other words, last-state restore is implicit)

cc @wangyang0918


Error while running a downloaded model from Rasa X locally

Rasa version: 1.9.5
Rasa X version (if used & relevant): 0.29.3
Operating system (windows, osx, ...): linux, osx
Issue:
I downloaded a model from Rasa X using this API https://api/projects/{project_id}/models/{model} because I wanted to test it with a splitter test set locally. The downloaded file is a *.gz file which cannot even be started with rasa shell -m *.gz. After I renamed it to *.tar.gz it seemed like it started but then I got the following error.
Error (including full traceback):
2020-06-30 15:26:31 INFO     root  - Connecting to channel 'cmdline' which was specified by the '--connector' argument. Any other channels will be ignored. To connect to all given channels, omit the '--connector' argument.
2020-06-30 15:26:31 INFO     root  - Starting Rasa server on http://localhost:5005
2020-06-30 15:26:35 INFO     rasa.nlu.components  - Added 'SpacyNLP' to component cache. Key 'SpacyNLP-de'.
2020-06-30 15:26:36 INFO     rasa.nlu.components  - Added 'SpacyNLP' to component cache. Key 'SpacyNLP-de'.
2020-06-30 15:26:36 ERROR    rasa.core.agent  - Could not load model due to File '/var/folders/7y/5xc2cj1j4g17nkcv3ks7cr680000gn/T/tmptqpo046b/nlu/component_7_DIETClassifier.index_tag_id_mapping.pkl' does not exist..
Bot loaded. Type a message and press enter (use '/stop' to exit):
Experienced exception while trying to serve
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/rasa/utils/io.py", line 137, in read_file
    with open(filename, encoding=encoding) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/var/folders/7y/5xc2cj1j4g17nkcv3ks7cr680000gn/T/tmptqpo046b/nlu/component_7_DIETClassifier.index_tag_id_mapping.pkl'

Command or request that led to error:
rasa shell -m *.gz

Thanks for the issue, @rctatman will get back to you about it soon!
You may find help in the docs and the forum, too 🤗


chore(demo): sort fix for page and minAge

Fixes https://github.com/taiga-family/taiga-ui/issues/9468

@iriiv npm run prettier -- --write


[BUG/Help] No compiled kernel found

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
Explicitly passing a revision is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision.
Explicitly passing a revision is encouraged when loading a configuration with custom code to ensure no malicious code has been contributed in a newer revision.
Explicitly passing a revision is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision.
No compiled kernel found.
Compiling kernels : /root/.cache/huggingface/modules/transformers_modules/local/quantization_kernels_parallel.c
Compiling gcc -O3 -fPIC -pthread -fopenmp -std=c99 /root/.cache/huggingface/modules/transformers_modules/local/quantization_kernels_parallel.c -shared -o /root/.cache/huggingface/modules/transformers_modules/local/quantization_kernels_parallel.so
Load kernel : /root/.cache/huggingface/modules/transformers_modules/local/quantization_kernels_parallel.so
Setting CPU quantization kernel threads to 8
Using quantization cache
Applying quantization to glm layers
Running on local URL:  http://<IP_ADDRESS>:7860
To create a public link, set share=True in launch().
START /usr/bin/chromium-browser "http://<IP_ADDRESS>:7860/"
[15356:15356:0515/173606.067595:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
xdg-open: no method available for opening 'http://<IP_ADDRESS>:7860/'
Expected Behavior
No response
Steps To Reproduce
在尝试int4版本时遇到的问题
Environment
- OS:centos
- Python:3.7
- Transformers:4.26.1
- PyTorch: 1.10.1
- CUDA Support True

Anything else?
No response

Is there an existing issue for this?

[x]  I have searched the existing issues

Current Behavior
Explicitly passing a revision is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision. Explicitly passing a revision is encouraged when loading a configuration with custom code to ensure no malicious code has been contributed in a newer revision. Explicitly passing a revision is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision. No compiled kernel found. Compiling kernels : /root/.cache/huggingface/modules/transformers_modules/local/quantization_kernels_parallel.c Compiling gcc -O3 -fPIC -pthread -fopenmp -std=c99 /root/.cache/huggingface/modules/transformers_modules/local/quantization_kernels_parallel.c -shared -o /root/.cache/huggingface/modules/transformers_modules/local/quantization_kernels_parallel.so Load kernel : /root/.cache/huggingface/modules/transformers_modules/local/quantization_kernels_parallel.so Setting CPU quantization kernel threads to 8 Using quantization cache Applying quantization to glm layers Running on local URL: http://<IP_ADDRESS>:7860
To create a public link, set share=True in launch(). START /usr/bin/chromium-browser "http://<IP_ADDRESS>:7860/" [15356:15356:0515/173606.067595:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. xdg-open: no method available for opening 'http://<IP_ADDRESS>:7860/'
Expected Behavior
No response
Steps To Reproduce
在尝试int4版本时遇到的问题
Environment
- OS:centos
- Python:3.7
- Transformers:4.26.1
- PyTorch: 1.10.1
- CUDA Support True

Anything else?
No response
已经解决了

@qihangf 怎么解决的呢？

@qihangf 怎么解决的呢？

参考  https://github.com/THUDM/ChatGLM-6B#环境安装


Don’t crash SSR

I'm currently using a conditional to opt out on the server. But it would be less risky if on node it just performs a pass through.
I've also had some problems with jest clear timers getting stuck in a infinite loop if MTS is used on one of those unit tested components
It could be useful if node_env is set to test, do something like resolve a promise with a setTimeout. This may also help with other things like some of my tests "fail" because X function I'm spying on wasn't called fast enough.

Yeah it can be mitigated outside the library via an abstraction. But in general its nice to have universal compatibility or something like
typeof window === "undefined" then just call the callback right away instead
An abstraction would totally work, or perhaps even an export from this lib for like universalYield

Quick question. Are you using React and server-side rendering together with it? How does yieldControl() is called while rendering? Can you give sample code?

Usually I just short circuit it during SSR so it always runs immediately. I also already can support async on my renders. So I have fetch calls any other side effects the server picks up and handles.

I will be implementing this.

This is now implemented. Calling main-thread-scheduling in tests will return a Promise.resolve().


TileMap editor background visibility issues RELOADED

Tested versions

Reproducible in 4.4.dev3

System information
Linux
Issue description
Reopen of this issue -> https://github.com/godotengine/godot/issues/84192 that was closed due to the author "ban".

Steps to reproduce
None
Minimal reproduction project (MRP)
None

There is a proposal godot-proposals/issues/9870
Same proposal has a short term solution linked to the asset library


Fix doc.yml

Since there is no main module, I decided to make theindex.html the doc entry file.

I think the gh-pages branch still needs to be selected for deployment.


Creating new class methods behaves wierdly

Open a .jar file, and then open a class within that jar.
Edit the assembly for a new method.
Try to create a new method, by prepending:
.method .private test ()V
A:
    aload this
    pop
    return
.end

This will give an error: Cannot resolve usage of 'this' to end label!
Now do the same, but postpend the method.
It "works" to save the assembly.
Close the assembly.
Now inspect the decompilation of that class, and try to find that method...
It will not be there.
Now open the assembly again: The newly created method has vanished into nothingness.

Closing as this has since been resolved in 4.X


Fix grammar/typos

Checklist

[x] tests are passing with cargo test.
[ ] tests and/or benchmarks are included
[x] documentation is changed or added
[x] commit message is clear

Always happy to help!


Wrong battery capacity

For some reason, waybar is reporting the wrong % remaining on my battery. At the time of writing this, it says 77.33% yet:
~ upower -i /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               SMP
  model:                DELL GPM0365
  serial:               437
  power supply:         yes
  updated:              Tue 21 May 2019 18:27:14 BST (31 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              75.126 Wh
    energy-empty:        0 Wh
    energy-full:         76.9614 Wh
    energy-full-design:  97.0026 Wh
    energy-rate:         12.2664 W
    voltage:             12.587 V
    time to empty:       6.1 hours
    percentage:          97%
    capacity:            79.3395%
    technology:          lithium-ion
    icon-name:          'battery-full-symbolic'
  History (charge):
<PHONE_NUMBER>	97.000	discharging
  History (rate):
<PHONE_NUMBER>	12.266	discharging

Battery config:
    "battery": {
        "bat": "BAT0",
        "states": {
            // "good": 95,
            "warning": 30,
            "critical": 15
        },
        "format": "{icon} {capacity}%",
        // "format-good": "", // An empty format will hide the module
        "format-full": "Charged  {icon}",
        "format-icons": ["", "", "", "", ""]
    },

What about cat /sys/class/power_supply/BAT0/capacity?

 ~ cat /sys/class/power_supply/BAT0/capacity
78
 ~ upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep percentage
    percentage:          78%

That percentage almost matches though the design capacity of the battery though. Almost:
Waybar reported 66.86%. Upower says:
    energy-full:         76.9614 Wh
    energy-full-design:  97.0026 Wh
    capacity:            79.3395%
    percentage:          83%

So 79.3395% of 83% is 65.851461713

Time to full is also wrong. Waybar says 1h17m, upower says 26m

If waybar report a decimal digit that's because it makes an average of several batteries capacities.
Did you have multiple batteries?

No, just 1 battery:
~ ls --color -la /sys/class/power_supply
total 0
drwxr-xr-x  2 root root 0 May 22 12:46 .
drwxr-xr-x 74 root root 0 May 21 18:31 ..
lrwxrwxrwx  1 root root 0 May 22 12:46 AC -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/AC
lrwxrwxrwx  1 root root 0 May 22 12:46 BAT0 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT0

Even waybar can't report a decimal number since capacity is stored in a unsigned int :o

So now my battery is full. Battery capacity ( actual capacity / design capacity) is reported by the system as                79.3395%. Waybar is currently reporting 79.34%. It's a hell of a coincidence though.

It's fixed itself. wtf?
I also had a look at the code for it. I can't explain how it was happening. It's clearly looking at the files I've been catting above.

If you're not able to reproduce it anymore i'll close this issue, is that all right with you?

I'll do it just now. This is very puzzling.


resize_image parameter fix in build_model()

Fixes #6

Tom, we could accept this but it breaks for my version. Maybe we should define a function that tries the previous case and excepts to this one? Would you write that?

Sure - I can wrap this change so it works for both of us later today. (FWIW - I'm using the current master branch version of TensorFlow.)

yeah, I just checked yours is the most modern way to do it.
thanks for the change though (I'll wait to finish my thesis before updating any software again :D )

OK, I finally had time to wrap this right. This works for me, try it and let me know what you think.

hey, thanks for the pull. i'm getting this unfortunately with your branch:
Jonathans-MacBook-Pro:subpixel jgoldsmith$ python main.py --dataset celebA --is_train True --is_crop True
{'batch_size': 64,
 'beta1': 0.5,
 'checkpoint_dir': 'checkpoint',
 'dataset': 'celebA',
 'epoch': 25,
 'image_size': 128,
 'is_crop': True,
 'is_train': True,
 'learning_rate': 0.0002,
 'sample_dir': 'samples',
 'train_size': inf,
 'visualize': False}
Traceback (most recent call last):
  File "main.py", line 58, in <module>
    tf.app.run()
  File "/Library/Python/2.7/site-packages/tensorflow/python/platform/app.py", line 30, in run
    sys.exit(main(sys.argv))
  File "main.py", line 39, in main
    dataset_name=FLAGS.dataset, is_crop=FLAGS.is_crop, checkpoint_dir=FLAGS.checkpoint_dir)
  File "/Users/jgoldsmith/projects/subpixel/model.py", line 58, in __init__
    self.build_model()
  File "/Users/jgoldsmith/projects/subpixel/model.py", line 64, in build_model
    self.up_inputs = tf.image.resize_images(self.inputs, [self.image_shape[0], self.image_shape[1]], tf.image.ResizeMethod.NEAREST_NEIGHBOR)
  File "/Library/Python/2.7/site-packages/tensorflow/python/ops/image_ops.py", line 769, in resize_images
    raise ValueError('new_height must be a scalar integer')
ValueError: new_height must be a scalar integer

maybe reverse the order of the tries? i'm also on tensorflow==0.10.0rc0 btw

Hi @goldsmith - at a glance it appears that you are running the current Tetrachrome master branch and not my resize_fix branch. (this is based on the stacktrace - line 64 matches what is currently there and not what I have on that line). Can you confirm?
If so, you can merge in my branch or just temporarily paste in the 3-4 lines from the diff to get this working.

thanks for the contribution!


Feature/1build-file-flag

Relative Tickets:
https://github.com/gopinath-langote/1build/issues/192

Implement base logic for all sub commands to use -f / --f (file flag).
Add to current execution logic; changes directory during 1build
exec actions.
Removed short-hand force flag for 'delete' (-f) as it conflicts with
global (-f/--f) for new file flag.

@gopinath-langote I've pushed an update to address your review. :+1:

@gopinath-langote I've pushed an update to address your review :+1:

@TimDurward Did you get time to work on this?

@TimDurward any updates on this?

thanks for the PR.
With the interest of time - I have already implemented this feature. Looking forward to see PRs from you on other issues.


External displays without HiDPI and laptop with HiDPI

Hi,
I'm using a Chromebook with a HiDPI (Chromebook pixel 2)  using the configuration from the wiki (option 1 and 4) https://github.com/dnschneid/crouton/wiki/Chromebook-Pixel
for the xiwi apps without any problem
But when i connect an external display without HiDPI, the same configuration is applied so the apps look huge. Is there a way to apply different configurations for different displays?

AFAIK X11 only allows one DPI setting for all monitors. Wayland allows different DPI settings per monitor with the latest gnome-shell but I can't figure out how to get Wayland on crouton to run the full desktop environment.


Fails to parse a record in an inline list

Given the input:
 [ '  hello  world  ' : 3 ]

I expect the parser to produce:
Ast.List_ [ Ast.Record_ (Dict.fromList [("  hello  world  ", Ast.Int_ 3)])]

Can you add tests for empty and populated inline lists please?


Automatic OCR of any Machine Text

As a repository manager,
I would like all textual content to automatically or on-demand be run through OCR,
so that full-text content may be indexed and searched and made available ad plain-text for download.
File types to be OCR/indexed include: TIFF, PDF, Word, Open Office, HTML, XML
Ann P.

Libraries' has a PrimeOCR server that could be used for this activity. (As an alternative to tesseract.) PrimeOCR has an API that can be used. http://www.primerecognition.com/prime_ocr.htm and http://www.primerecognition.com/docs/PrimeOCR_manual.pdf

We may not want something to receive OCR for reasons of information security. (Indexing may raise the risk-level by making it easier to find.) Should this be a flag on a per-work basis?

https://www.abbyy.com/en-us/recognition-server/


strange behavior when replace the image

Hi I have 2 button
each button replace the image in the viewer on click
my code onclick is:
            viewer1.close();

            var tileSource={
                            type: 'image',
                            url:  img . // replaced on click
           }

           viewer1.open(tileSource);

the problem is that when click on the button it show the previous image for 1-2 second and then replace the image
is there a way ti insure that its will not happen ? to clean the viewer or something
tried with viewer.close - does not work for me
thx a lot

So the previous image remains for a few seconds while the new image loads, and you'd prefer the previous image to go away while the new one loads? Strange, I would think that viewer1.close() would have accomplished that.
I tried to reproduce locally, but my sample images load too quickly; it's pretty much instantaneous. Do you have a link or a codepen of your issue I could take a look at?
Another possibility, since you're using the image tileSource type and so there's only one tile to load, is to pre-load that image in your browser before the user clicks the button. It should then be cached in memory and OSD will get it right away.


fix: env vars must be parsed to int

When reading from os.environ, they are all string by default. A parsing is needed.

@rutujasurve94 Can you confirm this is good fix? Looks good to me, but this is your area :)

Looks good, thanks for this PR.


Memory leak??

It seems to me that this demo has a built in memory leak. We pass three matrices into and back from the python routine as ndarrays. But inside the routine, we do three mallocs without frees. This can't be right.
OK, there is another big issue. We first allocate memory using malloc_matrix(), but then we write over the array pointers. This guarantees a memory leak.
I don't think this can be correct.
I'm going to merge my simplified version of the code into the main branch, so we can all see this what's going on, and figure out what is the correct way to do this.

Fixed the memory leak by allocating and deallocating pointer array within the C subroutine.


DOC: Slerp the SphericalVoronoi docstring

the Examples section of the SphericalVoronoi
docstring now leverages geometric_slerp to produce
a much more realistic/accessible 3D plot of the
Voronoi regions on the sphere

Before:

After:

Here's the current devdocs version: https://scipy.github.io/devdocs/generated/scipy.spatial.SphericalVoronoi.html?highlight=sphericalvoronoi#scipy.spatial.SphericalVoronoi
Hopefully this new version looks nice in the docstring render as well (seems better locally at least).

refguide check failure is real--need to fix when I get time

This is a nice improvement.

Revised based on feedback from @pmla and the CI.

I think this is good for merging when the checks have passed. Was there a problem with the CI?

CI is all green now--with 1 core dev approval and DOC change only will just self-merge.


[Bug] local_visualizer.py同时可视化3D检测信息和2D检测信息时会被2D检测信息覆盖

Prerequisite

[X] I have searched Issues and Discussions but cannot get the expected help.
[X] I have read the FAQ documentation but cannot get the expected help.
[X] The bug has not been fixed in the latest version (dev-1.x) or latest version (dev-1.0).

Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
1.x branch https://github.com/open-mmlab/mmdetection3d/tree/dev-1.x
Environment
sys.platform: linux
Python: 3.7.13 (default, Mar 29 2022, 02:18:16) [GCC 7.5.0]
CUDA available: True
numpy_random_seed:<PHONE_NUMBER>
GPU 0,1,2,3,4,5,6,7: NVIDIA A100-SXM4-40GB
CUDA_HOME: /usr/local/cuda
NVCC: Cuda compilation tools, release 11.3, V11.3.109
GCC: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
PyTorch: 1.12.1
PyTorch compiling details: PyTorch built with:

GCC 9.3
C++ Version: 201402
Intel(R) oneAPI Math Kernel Library Version 2021.4-Product Build 20210904 for Intel(R) 64 architecture applications
Intel(R) MKL-DNN v2.6.0 (Git Hash 52b5f107dd9cf10910aaa19cb47f3abf9b349815)
OpenMP 201511 (a.k.a. OpenMP 4.5)
LAPACK is enabled (usually provided by MKL)
NNPACK is enabled
CPU capability usage: AVX2
CUDA Runtime 11.3
NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86;-gencode;arch=compute_37,code=compute_37
CuDNN 8.3.2  (built against CUDA 11.5)
Magma 2.5.2
Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=11.3, CUDNN_VERSION=8.3.2, CXX_COMPILER=/opt/rh/devtoolset-9/root/usr/bin/c++, CXX_FLAGS= -fabi-version=11 -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -DEDGE_PROFILER_USE_KINETO -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Werror=cast-function-type -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=1.12.1, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=OFF, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF,

TorchVision: 0.13.1
OpenCV: 4.8.0
MMEngine: 0.8.2
MMDetection: 3.1.0
MMDetection3D: 1.2.0+0f9dfa9
spconv2.0: False
Reproduces the problem - code sample

截图这几行代码，保存2d信息的路径和保存3d信息的路径是一样的，这样3d结果就会被2d覆盖
Reproduces the problem - command or script
见上述问题表述
Reproduces the problem - error message
无报错信息
Additional information
No response

It looks like you are right, would you like to PR to fix this problem by using different suffix for 3d and 2d results saving?

OK，I will have a try

#2682 PR here

Prerequisite

[x]  I have searched Issues and Discussions but cannot get the expected help.
[x]  I have read the FAQ documentation but cannot get the expected help.
[x]  The bug has not been fixed in the latest version (dev-1.x) or latest version (dev-1.0).

Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
1.x branch https://github.com/open-mmlab/mmdetection3d/tree/dev-1.x
Environment
sys.platform: linux Python: 3.7.13 (default, Mar 29 2022, 02:18:16) [GCC 7.5.0] CUDA available: True numpy_random_seed:<PHONE_NUMBER> GPU 0,1,2,3,4,5,6,7: NVIDIA A100-SXM4-40GB CUDA_HOME: /usr/local/cuda NVCC: Cuda compilation tools, release 11.3, V11.3.109 GCC: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 PyTorch: 1.12.1 PyTorch compiling details: PyTorch built with:

GCC 9.3
C++ Version: 201402
Intel(R) oneAPI Math Kernel Library Version 2021.4-Product Build 20210904 for Intel(R) 64 architecture applications
Intel(R) MKL-DNN v2.6.0 (Git Hash 52b5f107dd9cf10910aaa19cb47f3abf9b349815)
OpenMP 201511 (a.k.a. OpenMP 4.5)
LAPACK is enabled (usually provided by MKL)
NNPACK is enabled
CPU capability usage: AVX2
CUDA Runtime 11.3
NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86;-gencode;arch=compute_37,code=compute_37
CuDNN 8.3.2  (built against CUDA 11.5)
Magma 2.5.2
Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=11.3, CUDNN_VERSION=8.3.2, CXX_COMPILER=/opt/rh/devtoolset-9/root/usr/bin/c++, CXX_FLAGS= -fabi-version=11 -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -DEDGE_PROFILER_USE_KINETO -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Werror=cast-function-type -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=1.12.1, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=OFF, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF,

TorchVision: 0.13.1 OpenCV: 4.8.0 MMEngine: 0.8.2 MMDetection: 3.1.0 MMDetection3D: 1.2.0+0f9dfa9 spconv2.0: False
Reproduces the problem - code sample
 截图这几行代码，保存2d信息的路径和保存3d信息的路径是一样的，这样3d结果就会被2d覆盖
Reproduces the problem - command or script
见上述问题表述
Reproduces the problem - error message
无报错信息
Additional information
No response

你这个问题解决了嘛


Cli/env vars lambda sample

Description of Bug Fix
After this bug fix the file header with environment variables is generated in the lambda examples.

Enabled EJS templates for Lambda function trigger flow.

Added feature to display environment variables on the screen after completion of step.

Fixed code to update top-level header after environment variables are added.

Issue
Storage env vars not added to lambda function
Fixes #7718
Description of how you validated changes

manually tested steps in https://dev.to/mtliendo/create-a-resume-uploader-using-aws-amplify-2e17
Unit tests.

Checklist

[x] PR description included
[x] yarn test passes
[x] Tests are changed or added
[x] Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #7785 (20181e7) into master (57eeae5) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #7785   +/-   ##
=======================================
  Coverage   52.71%   52.71%
=======================================
  Files         550      550
  Lines       27702    27702
  Branches     5361     5361
=======================================
  Hits        14604    14604
  Misses      12115    12115
  Partials      983      983

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 57eeae5...20181e7. Read the comment docs.


Make contributors unique in Release notes

PR Summary
Code change to select unique author IDs
PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

Breaking changes

[x] None
OR
[ ] Experimental feature(s) needed

[ ] Experimental feature name(s):

User-facing changes

[x] Not Applicable
OR
[ ] Documentation needed

[x] Issue filed: #12877

Testing - New and feature

[ ] N/A or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

Tooling

[ ] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
OR
[ ] I have considered the user experience from a tooling perspective and enumerated concerns in the summary. This may include:

Impact on PowerShell Editor Services which is used in the PowerShell extension for VSCode (which runs in a different PS Host).
Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.
Impact on PSScriptAnalyzer (which provides linting & formatting in the editor extensions).
Impact on EditorSyntax (which provides syntax highlighting with in VSCode, GitHub, and many other editors).

Thanks!

There is also an issue where the message doesn't make sense if there are no external contributors.


Write README

write readme with basic usage guide for internal users to get started

resolved by #32 #30


Create sortSam.cwl

It belongs to picard toolkit

The same problem with outputs/glob and OUTPUT= argument

@portah changes incorporated

SO= or SORT_ORDER= ?

@portah it actually works with both prefixes.
Is it a way to add "or" in a prefix ?


Describe approach to RPC

#152  👈 (View in Graphite)
main

This stack of pull requests is managed by Graphite. Learn more about stacking.


Player can bound super-far when dashing

[ ] Tie into NashMove FloorZ check because it's probably a more thorough solution.

[ ] Cancel dash when in air.

Bug report for #12  (dashing) Believe this is related to the way NashMove bleeds acceleration when on the ground. If can't use NashMove's check for some reason, will need to come up with working check of my own.

Closing this as it relates to unmaintained code that won't be present in the refactor


Get the last processed message in a group or in a partition

In my case I only have 1 topic with 1 partition, 1 producer and 1 consumer.
In case the consumer fails, I want to be able to restart it and process all the messages since the last processed one. To achieve this I could re-process all the messages since OffsetOldest until I find one which has not been processed yet.
Is there a way to determine which was the oldest message non-processed by a (any) consumer of a topic/partition/group?

I've look at calling MarkOffset() and CommitOffset() after receiving every message, but I am not sure how to retrieve the oldest non committed offset.
In case I use the method 1., how do I check the marked metadata of a specific offset?

Is this a viable usage of kafka and sarama-cluster?
Thank you

I've look at calling MarkOffset() and CommitOffset() after receiving every message, but I am not sure how to retrieve the oldest non committed offset.

You only need to call MarkOffset as CommitOffset will be called automatically every Config.Consumer.Offsets.CommitInterval (see https://godoc.org/github.com/Shopify/sarama#Config)

I want to be able to restart it and process all the messages since the last processed one. To achieve this I could re-process all the messages since OffsetOldest until I find one which has not been processed yet.

That's exactly what sarama-cluster does for you. It will query Kafka for the latest processed offset of the specified consumer group ID and resume automatically, no manual intervention needed. Please see https://kafka.apache.org/documentation/#intro_consumers.


Return status code 400 from function to indicate bad request

Fixed 200 status code problem from #22

I think we should refactor api.py a bit to decouple the function for connexion from what the handler needs.

Could be done in a separate PR, IMO

Rebase confilict fixed by #31


Restoring Branch cannot work

Description
No response
Gitea Version
main(1d92d0cf0f1799d6d6b167f9b0b5e8140b5d43ea)
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots

Git Version
No response
Operating System
No response
How are you running Gitea?
Build Gitea development version
Database
None

Fix incorrect link-action event target #25306


unexpected '>' in markdown input with '<'

VSCode Version:
OS Version:

Steps to Reproduce:

create a markdown file.
input with '<'
it will auto fill with ">" without to be expected.

Is there any config to ban this behaviour?

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

This is by-design since markdown supports HTML content
Disable auto closing brackets if you don't want this behavior

@mjbvz  thanks, I know.
But sometimes I want to write  1 < 2 in markdown, it'll be auto filled with 1 <>, then I must delete the > then input 2, it'll be depressed.


add energized list

https://energized.pro/#packs
https://github.com/EnergizedProtection/block#packs-2

Thanks @KonoromiHimaries  I'll consider it, but previously when I tested the EnergizedProtection list is caused issues.


swc reuses _variable name when importing different modules with same filename in CommonJS

Describe the bug
When a single file imports multiple different files with the same filenames, and swc uses interopRequireDefault, it reuses the same local variable to store both, when it should use a different local variable.
For example when a single file imports ./foo/bar and ./baz/bar, they are both named bar so the local variable used for both is _bar.
Input code
I can reproduce using the JS API:
const swc = require('@swc/wasm');
swc.transformSync(`
  import A from "./foo/a";
  import B from "./bar/a"
`, {
  module: {type: 'commonjs'}
})

The output is:
"use strict";
var _a = _interopRequireDefault(require("./foo/a"));
var _a = _interopRequireDefault(require("./bar/a"));
function _interopRequireDefault(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}

Config
N/A
Expected behavior
Since the 2 imported modules are different, the local variable should be different as well.  tsc emits code like this:
const a_1 = __importDefault(require("./foo/a"));
const a_2 = __importDefault(require("./bar/a"));

Version
The version of @swc/wasm: 1.2.58
Additional context
Add any other context about the problem here.

Does swc today have a mechanism to request unused variable names in top-level scope?  Can this be accomplished with the hygiene pass?  It looks like hygiene is concerned with finding collisions between identifiers in the input code, whereas imports are stored on hidden variables that do not appear anywhere in the input source.

You can use private_name! macro to create a such identifier.
hygiene pass will convert it to actual unused identifier at the end.

I see, thanks.  It looks like the identifiers are being created today with local_name_for_src.  Sometimes it is being wrapped in private_ident!; sometimes not.  I'll try adding the missing private_ident! calls and see if that fixes it.


TLS handshake failed

When I connect to my Heroku app it show this error
[2021-05-23 08:47:45] [connect] Successful connection
[2021-05-23 08:47:45] [error] handle_transport_init received error: TLS handshake failed
[2021-05-23 08:47:45] [info] asio async_shutdown error: asio.ssl:336462231 (shutdown while in init)

I'm using the sioclient_tls and defined the SIO_TLS on the code, but it is still not working.

Fixed by #310


Internal MLonCode meetups

Parent objective:  #42
Progress: 0%
The difference from the official meetups: lower quality of slides and speaking, hardcore complexity which targets the ML team members. Thus it is more to a research review/overview session. Nobody is invited from the outside.
Relates to https://github.com/src-d/feature-idea/issues/8

[ ] [P2] Organize and conduct the internal MLonCode meetups once a month

There was an attempt https://github.com/src-d/backlog/issues/1213 but we never made it.


python3Packages.autopep8: patch for pycodestyle-2.10.0

Description of changes
This adjusts autopep8 to fetch from GitHub so it can be patched (patch does not apply cleanly to PyPI source tarball), and a test that had to be disabled because it was fetched from PyPI is re-enabled since it could work now (and as far as I understand, pulling from git is generally preferred for Python packages in nixpkgs for test reasons)
This lets the package now build successfully with the recent pycodestyle 2.10.0 bump in #203378
Closes #205733
Ref hhatto/autopep8#659 and hhatto/autopep8#661
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

nixpkgs-review
Result of nixpkgs-review pr 205803 run on x86_64-linux 1

20 packages built:

cmake-format
cmake-language-server
python310Packages.autopep8
python310Packages.django_silk
python310Packages.pyls-flake8
python310Packages.pyls-isort
python310Packages.pyls-spyder
python310Packages.pylsp-mypy
python310Packages.python-lsp-black
python310Packages.python-lsp-server
spyder (python310Packages.spyder)
python39Packages.autopep8
python39Packages.django_silk
python39Packages.pyls-flake8
python39Packages.pyls-isort
python39Packages.pyls-spyder
python39Packages.pylsp-mypy
python39Packages.python-lsp-black
python39Packages.python-lsp-server
python39Packages.spyder

Thanks!

a Question from my side: Do we also need a backport for that? There is also autopep8 in v2.0.0 for pythonPackages310 in 22.11 and at least one machine, which should be on that is failing on building autopep with the same error as in the gist as far as i can tell.

I checked to make sure #203378 was not backported, since that is what caused the breaking change. It also looks like Hydra is still building it fine for 22.11: https://hydra.nixos.org/job/nixos/release-22.11/nixpkgs.python310Packages.autopep8.x86_64-linux
Are you sure that machine is on nixos-22.11?

You are right, it's my mistake. The machine is on 22.11 but the failing version is pulled by another flake, which does follow the unstable channel. So it's my bad. Thanks for double checking and clarification


Update

Originally posted by @akarys92 in https://github.com/Uniswap/v3-new-chain-deployments/pull/1

Hướng dẫn tiếp cài g đặt ?


Crash During Launch [1.20.1]

Describe the bug
Crash during launch.
Steps to reproduce

Install Sinytra and Forgified API with my modset
Launch

...
Logs
https://pastebin.com/nLnDD4e1
Additional context
I'm using a modset with only Forge mods so I guess one or more are incompatible.
Forge 47.2.6 with Sinytra Beta 26, Forgified Fabric API 0.90.7+1.10.2+1.20.1, Connector Extras 1.7

https://pastebin.com/uYpiAdNf
For me Beta 25 gives (I think) the exact same log except for an earlier crash if Shield Overhaul (Forge) is installed. The attached log is after it is removed with Beta 25.

Wanted to add that random mixin failures also happens with Andromeda/Dark Matter. Looks like remapping broke in 26.
Fields are no longer properly remapped: in 25: field_40859 is f_243839_ and in 26: field_40859 is field_40859

Remove Connector Extras. That should fix your issue.

Remove Connector Extras. That should fix your issue.

https://pastebin.com/nx7vX8LY
Removing Connector Extras results in the shield overhaul crash. Removing shield overhaul as well results in (I think) the same original crash. Attached

This is the final error in the log. I'll provide any additional info or test if needed.

latest.log
Same issue in Beta 27. (Connector Extras disabled still)

Forge 47.2.6
Sinytra Beta 27
Forgified Fabric API 0.90.7
The Pure Suffering <IP_ADDRESS>R
crash-2023-11-27_18.04.40-fml.txt
latest.log
Forge 47.2.6
Sinytra Beta 27
Forgified Fabric API 0.90.7
Architectury 9.1.12
Truly Modular API 1.0.6
Truly Modular Archery 1.1
Truly Modular Armory 1.0
Truly Modular Arsenal 1.0
crash-2023-11-27_18.07.48-client.txt
latest.log

Downgrade to version 47.1.3

Downgrade to version 47.1.3
Still crashes with only ffapi, sinytra and one of the two on 47.1.3

Truly Modular
crash-2023-11-28_09.37.44-client.txt
latest.log
The Pure Suffering Mod
crash-2023-11-28_09.39.23-fml.txt
latest.log

Remove the mod Miapi

And any mods that require that API

The crash was caused by missing Caelus API. So Truly Modular works with only its prereqs, Sinyta/ffapi. There is some incompatibility with it though with other mods in the mix. I sent detail in a new issue specifically regarding Truly Modular series. I have a modset that works with sinytra/ffapi but breaks when Truly Modular is added. If sinytra/ffapi is removed  Truly Modular works.

ok then do it alright. That should fix your isues.


Check if the file which should be uploaded is a csv file

I'm submitting a ...

[x] bug report
[ ] feature request
[ ] code improvement request

Expected behavior
How should it work (with the bug fixed or the feature implemented)?
ViroCon should check if the file is a csv. If it is not a .csv the user should get a message that only .csvs are accepted.
Screenshot
Actual behavior
How does it currently work (with the bug causing problems or without the feature)?
ViroCon accepts all kind of files (for example .pdf or .txt). These files are then tried to by read like csvs. If it can be read like a .csv ViroCon proceeds if it cannot read it (e.g. pdf) it throws an error. Nevertheless a Django model for the measurement file is created.
Screenshot

Steps to reproduce the problem (how to see the actual behavior)

Go to upload measurement file
Upload a pdf
See the error and then go to overview of measurement files (there is the entry for the data set)

Done by Kai.


Login Problem

When i try to my console says:
POST http://localhost/login.php 500 (Internal Server Error)
Uncaught TypeError: Cannot read properties of null (reading 'getElementsByClassName')
at window.particlesJS (particles.js:1495:30)
at xhr.onreadystatechange (particles.js:1531:16)

@Maxhu787

Fixed, git pull and try it again ;)


[BUG] How is Juergen's surname spelt?

Current Behavior
Just looking in the Contributors.md file and see that Jurgen's surname is spelt differently from his userid.  Is it correct?
Expected Behavior
Just checking it is correct for the end of year presentation

Jürgen Hemelt

I made a typo error in CONTRIBUTORS.md so needs updating. can correct now - or if you are mid-update...

I can fix - did not want it fix it so it was consistent and wrong :)


Cannot draw straight lines using Shift+Pencil

Duplicate of https://github.com/1j01/jspaint/issues/61


[Bug report]: Beta 6 - Ledger profile is broken if Shimmer app is not available right after setup

Platform
Desktop
Version
beta 6
Description
The profile associated to my Ledger does not open.
After showing the Checking node health screen it goes back to show the list of profiles
Expected behaviour
Open the Profile
Actual behaviour
I inset the PIN, after showing the Checking node health screen it goes back to show the list of profiles
The error: Something went wrong. is shown
Can the issue reliably be reproduced?
Yes
Steps to reproduce the issue
Option 1

Set up a new profile
Select Shimmer
Select Testnet
Select Restore Shimmer profile
Select Use Ledger device
Set profile name
Set PIN
Confirm Yes, I've installed these apps
Open the Shimmer app on the Ledger Nano and click continue

After clicking Continue, close the Shimmer app on the Ledger
Click on Finish setup

Checking node health and Generating accounts is shown, right after that Firefly goes back to the profile screen.
Error message Something went wrong. is shown
When you click on the profile Something went wrong. is shown
No further action is possible with that profile

Operating System
Linux
Diagnostics
Version
Language: en
Platform: linux
Platform Version: 5.15.60-1-MANJARO
Platform Architecture: x64
CPU Count: 24
Total Memory: 64231.6 MB
Free Memory: 45295.7 MB

Developer Profile
Yes
Profile Type
Hardware (Ledger)
Staking
No response
Crash Status
None of the above
Error Messages
Something went wrong.

Error Logs

Duplicate declaration

[X] I have searched the issues tracker this issue and there is none

Code of Conduct

[X] I agree to follow this project's Code of Conduct

We added a message that the user should NOT close/disconnect their ledger app while creating their new profiles, since we have to interact with the ledger device during profile creation.


deterministic threaded rng + chunked car bugfix

Codecov Report

Merging #47 (24ec8c9) into main (61ad09a) will decrease coverage by 0.15%.
The diff coverage is 0.00%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@            Coverage Diff             @@
##             main      #47      +/-   ##
==========================================
- Coverage   14.72%   14.58%   -0.15%
==========================================
  Files           8        8
  Lines        1066     1063       -3
==========================================
- Hits          157      155       -2
+ Misses        909      908       -1

Files
Coverage Δ

src/model.jl
49.39% <0.00%> (-0.61%)
:arrow_down:

src/profiles.jl
0.00% <0.00%> (ø)

src/co_broadband.jl
0.00% <0.00%> (ø)

src/lrg.jl
0.00% <0.00%> (ø)

src/radio.jl
8.39% <0.00%> (ø)

src/cib.jl
20.88% <0.00%> (ø)

src/util.jl
29.18% <0.00%> (-0.18%)
:arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


themeStyle not working

I am using the theme with blowdown, however I am not able to change the themeStyle to "dark". I installed autoprefixer and postcss-cli via terminal (on a Mac). Is there anything else I need to do to enable the .sass files to work? or is this feature not available when creating the website using blowdown?

This was resolved, R had conflicting versions of Hugo installed. Once I deleted, and reinstalled, Blogdown worked without any issue.


Deprecation warning

Hi!
Got following warning today:
(node:7092) [ESLINT_LEGACY_OBJECT_REST_SPREAD] DeprecationWarning:
The 'parserOptions.ecmaFeatures.experimentalObjectRestSpread' option is deprecated.
Use 'parserOptions.ecmaVersion' instead. (found in "plugin:es-beautifier/standard")

Can it be fixed in the next release?

Thanks for reporting. Will fix it soon.

https://www.npmjs.com/package/es-beautifier/v/1.2.0


Review conda-forge automated tools

Based on #533.
The default version of conda-forge bots doesn't cover the scenario where a new version of our PyPI package includes an update of dependencies (see e.g. https://github.com/conda-forge/fractal-server-feedstock/pull/1).
This may be fixed/mitigated with bot-configuration changes, e.g. as in https://github.com/conda-forge/fractal-server-feedstock/commit/452337278b18c0dbdac7e9d354663b35bc4663be.
Once we verify that it works, the change needs to be propagated to the three feedstocks (server&client already exists, tasks should appear soon).

This may be fixed/mitigated with bot-configuration changes, e.g. as in https://github.com/conda-forge/fractal-server-feedstock/commit/452337278b18c0dbdac7e9d354663b35bc4663be.

This worked as expected, see e.g. the autogenerated changes in https://github.com/conda-forge/fractal-server-feedstock/pull/2/files.
Closing.