Feature Request: Unstage Changes on Current Line

Description
Description
I would like to request a feature that allows users to unstage changes on the current line where the cursor is focused. This functionality would complement the existing stage_hunk, reset_hunk, and undo_stage_hunk functions by providing more granular control over staging and unstaging changes.
Proposed Solution
A new function, unstage_hunk, could be introduced with the following behavior:

Unstages changes on the line where the cursor is focused.
If the line is part of a hunk, only the changes on that specific line are removed from the staging area, while the rest of the hunk remains staged.

Thank you for considering this feature request. I believe it would be a valuable addition to the gitsigns.nvim plugin, enhancing its utility and user experience.

I tried it nothing changed in two modes normal or visual
_map("n", "<leader>gs", gs.stage_hunk, "Stage hunk")
_map("v", "<leader>gs", function() gs.stage_hunk({ vim.fn.line("."), vim.fn.line("v") }) end, "Stage hunk")

https://github.com/lewis6991/gitsigns.nvim/assets/47378309/0d58fd7b-67bd-4f85-904a-7bbd6497c15a

You need to pull in the latest changes to include https://github.com/lewis6991/gitsigns.nvim/commit/b8cf5e8efaa0036d493a2e2dfed768c3a03fac73

Sorry, but I don't understand what I should do. Do you mean I need to update the plugin?

Yes. Make sure to always have the latest version installed before raising issues on a tracker.

Sorry for not paying attention.
I did the update and it worked, but there's a problem in visual mode where 'unstage' doesn't work

Yeah unstage does not work in visual mode
                map("v", "<leader>sh", function()
                    gs.stage_hunk({ vim.fn.line("."), vim.fn.line("v") })
                end)

@lewis6991 this should be reopen?

That won't fix it. A PR might.


Add name to /about

@julia7hk

Closed in https://github.com/GunnWATT/watt/commit/9e8aebcd926a639d67fc8c12744086dca3b237fb :D


can not search extensions

Issue Type: Bug
cant type the search words in the input
VS Code version: Code 1.40.0 (86405ea23e3937316009fc27c9361deee66ffbf5, 2019-11-06T17:02:13.381Z)
OS version: Windows_NT x64 10.0.18362
Remote OS version: Linux x64 3.10.0-862.14.4.el7.x86_64

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz (8 x 1992)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: enabledrasterization: enabledskia_renderer: disabled_offsurface_control: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
7.85GB (1.02GB free)

Process Argv

Screen Reader
no

VM
0%

Item
Value

Remote
SSH: dev

OS
Linux x64 3.10.0-862.14.4.el7.x86_64

CPUs
Intel(R) Xeon(R) Gold 61xx CPU (4 x 2494)

Memory (System)
7.64GB (0.19GB free)

VM
0%

Extensions (31)

Extension
Author (truncated)
Version

vscode-language-pack-zh-hans
MS-
1.40.2

remote-containers
ms-
0.83.0

remote-ssh
ms-
0.47.2

remote-ssh-edit
ms-
0.47.2

remote-wsl
ms-
0.40.2

vscode-remote-extensionpack
ms-
0.17.0

vscode-icons
vsc
9.5.0

jinja
who
0.0.8

yaml2json
ahe
0.0.3

gitstash
art
3.1.0

bala-bks-kubernetes-snippets
bal
0.2.2

vscode-linkerd
bha
0.1.4

githistory
don
0.4.6

gitlens
eam
10.1.2

code-runner
for
0.9.14

kubernetes-snippets
ipe
0.1.9

MagicPython
mag
1.1.0

git-graph
mhu
1.18.0

vscode-language-pack-zh-hans
MS-
1.40.2

kind-vscode
ms-
0.0.2

vscode-kubernetes-tools
ms-
1.0.6

python
ms-
2019.10.44104

VSNotebooks
pav
1.4.4

emoji
Per
0.0.3

vscode-yaml
red
0.5.3

trailing-spaces
sha
0.3.1

swdc-vscode
sof
1.2.0

json2yaml
tux
0.2.0

nodejs-devops-extension-pack
vym
0.0.1

gitblame
wad
3.0.1

vscode-wakatime
Wak
2.2.1

(1 theme extensions excluded)

the search input is the black area and too small!

and canot search by enter

I know how it happened. when i use  sougou input to typing chinese word, I change to type english words， then it happaned, and I must restart the vs code for work. If i type english chars directly, it is ok. so this is a bug for chinese input.

A bug of vscode. the extesions' search input area has been changed sometimes.

@rebornix Are you familiar with this input method? Could you please try to repro?

I know how it happened. when i use sougou input to typing chinese word, I change to type english words， then it happaned, and I must restart the vs code for work. If i type english chars directly, it is ok. so this is a bug for chinese input.

@whitefirer can you help understand how you switch to English mode when using Sougou IME? I can't reproduce this issue on Windows and in Chinese or English mode. Besides, can you reproduce this issue in the editor?

@rebornix I use the SouguoWuBi，
Download Page url is http://wubi.sogou.com/
default input is Chinese，I type words just like this:

My  setting:

Type "git" with Chinese input，and then press 'Ctrl+SPACE' change to english input


feat: get all API for embedded

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows conventional commit format
[x] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

The code looks great, could you revert changes in packake-lock.json or any reason we should keep those changes?

You should also run yarn format. CI is failing.

@bachhm-dev ci is failing with lint, can you run lint first?

:tada: This PR is included in version 0.7.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


📎 add support for graphql-tag formatting

Description
We just started using biome over prettier/eslint, and loving it overall! This is the first thing we've found we miss from prettier as we use gql template expressions across our project.
The request: just as prettier does, it would be very useful to be able to format graphql-tag's gql tagged template expressions.
Eg:
gql`
  query GetSomething {
    getSomething {
      foo
    }
  }
`;

We don't support GraphQL, and it's not in our roadmap yet.
You can upvote https://github.com/biomejs/biome/discussions/297 in the meantime. If it reaches enough votes we will consider it

Thanks for the response, have upvoted that issue!

I believe this issue should be reopened, as GraphQL is now supported.

Even though GraphQL is supported, Biome formatter doesn't support embedded formatting yet. Check https://github.com/biomejs/biome/issues/3334
Also, we open tasks (issues that start with 📎 ) when it's planned and have the resources to do it.


Version bumping for 0.8.0 final release

0.8.0rc0 --> 0.8.0

@tensorflow-jenkins test this please

The update to the os_setup.md should have waited until the wheels were uploaded.  The docs are currently wrong ...


Table on click callback are not working

Hi,
I was trying the library for the first time and chart are loading very fast and awesome. All the implementations are done on streamlit.
So I was trying implement tables, for some reason func calling is not getting called.
is it a issue with Streamlit or anything i'm missing the library.
I've use this example code and try load the chart using chart.load() function instead of show():
https://github.com/louisnw01/lightweight-charts-python/blob/34ce3f7199b894e53b9cb07fc78adfb728eb2edf/docs/source/tables.md?plain=1#L83-L118

Hey @AnveshMora,
Unfortunately Streamlit is static, meaning data cannot be passed to and from and the charts cannot be updated after calling load.
See here.
Louis


Title: in To Do list > My progress button + complete button

Is your feature request related to a problem? Please describe.
you can add My progress button + complete task button. so user can track it. how many task he/she done yet now. please assign issue to me as contributor to GSSoC 2024.
Describe the solution you'd like.
add My progress button + complete task button. my progress button store user progress in their local machine using js
Describe alternatives you've considered.
you can ignore also, but i recomand to add it
Add any other context or screenshots about the feature request here.
No response

@Vipullakum007 Thank you for providing your insight but it is not required as of now.


Neo keyboard layout: Some Keys stopped working

VSCode Version: Code 1.11.0 (9122ec4b1068bd391e41974f46a4b54c1b9c90f9, 2017-04-05T21:13:24.700Z)
OS Version: Linux x64 4.4.0-72-generic

Steps to Reproduce:

Install and activate Neo keyboard layout
Open any source file in VS code
Put cursor somewhere in the file
Press M4 key and hold. Press s key (see image)
Instead of the cursor moving left, nothing happens

In the previous version of VSCode (1.10.2 8076a19fdcab7e1fc1707952d652f0bb6c6db331) this worked just fine .

Same issue for me. Issue keywords because I didn't find this issue at first: layer 4 arrow keys neo2 german keyboard layout.
Worked fine in 1.10, doesn't work in 1.11.
The shortcut editor in VSCode seems to identify the combination in the keyboard above as [IntlBackslash] i

It is not broken on windows and VSCode 1.11.0.
However, keymapping there is done by autohotkey which intercepts key presses and emits its own - AFAIK this is handled differently in linux.

I just ran git bisect . The first bad commit seems to be https://github.com/Microsoft/vscode/commit/d10239639bf9beaa6ea34125319103de3dce43cd (@alexandrudima )
# bad: [9122ec4b1068bd391e41974f46a4b54c1b9c90f9] Fix styling of release notes (fixes #23948)
# good: [8076a19fdcab7e1fc1707952d652f0bb6c6db331] debug: save all untitled non dirty files before debug start
git bisect start '1.11.0' '1.10.2'
# good: [40fecfaa77f01672e8a147be71f6f7ccb9cf8a12] fix mixin
git bisect good 40fecfaa77f01672e8a147be71f6f7ccb9cf8a12
# good: [9d2e0611f7f7750f02ec72c4d18a20b69c5bf8cf] #18095 :lipstick:
git bisect good 9d2e0611f7f7750f02ec72c4d18a20b69c5bf8cf
# bad: [7c223972367b8ade5362d738606f3b910d0fbb42] Fixes #19235: Wording in tasks warning message
git bisect bad 7c223972367b8ade5362d738606f3b910d0fbb42
# good: [378231183e815c8e8e6a73ad04fc40ec5058fdc5] Promise cancellation is slow. Use a timer instead since this may run many times.
git bisect good 378231183e815c8e8e6a73ad04fc40ec5058fdc5
# good: [f70b0b3ecb7f276c811b0f18c7a0bec3b03c11a6] Fixes #22069: Define extension story for tasks
git bisect good f70b0b3ecb7f276c811b0f18c7a0bec3b03c11a6
# bad: [4ad4bd0d8011a5db5e2bea4543b7efb03d482aad] :bug: add commit box message
git bisect bad 4ad4bd0d8011a5db5e2bea4543b7efb03d482aad
# bad: [9003dbc3f5f2b87cb3cc4a3418030dbdc45ac0a3] Add IKeybindingService.resolveUserBinding
git bisect bad 9003dbc3f5f2b87cb3cc4a3418030dbdc45ac0a3
# bad: [968da131589845b43c0d00141b41b2bb366a84e8] Improve the ScanCode -> KeyCode guessing strategy
git bisect bad 968da131589845b43c0d00141b41b2bb366a84e8
# bad: [969cbdfea05beda1a38d4082698b87f239fc2384] Renames
git bisect bad 969cbdfea05beda1a38d4082698b87f239fc2384
# bad: [8a33db65efdd3ed4c76d01cb76c3ef658caf16db] Add Inspect Key Mapppings action
git bisect bad 8a33db65efdd3ed4c76d01cb76c3ef658caf16db
# bad: [0ebecd5ca915ed33ea747cafe2c99572c52904b5] Merge branch 'master' into alex/keybinding
git bisect bad 0ebecd5ca915ed33ea747cafe2c99572c52904b5
# bad: [d10239639bf9beaa6ea34125319103de3dce43cd] First cut at integrating keyboard mappers
git bisect bad d10239639bf9beaa6ea34125319103de3dce43cd
# first bad commit: [d10239639bf9beaa6ea34125319103de3dce43cd] First cut at integrating keyboard mappers

I need some time to understand this keyboard layout. I will ping you in the coming days if you'd be kind enough to help me out. It is unlike anything I've seen.
Workaround to switch VS Code to dispatch based on key code again. Add the following setting:
"keyboard.dispatch": "keyCode" and restart VS Code

I have the same issue on Debian/Jessie.

https://github.com/Microsoft/vscode/issues/25797
I have problems with the backspace.

Hi, I have the same problem. Yesterday the workaround worked for me, but today it's not working anymore. It works for around 2 seconds after editor startup, then my basic keys don't work anymore. :thinking:
I'm not sure if I did something stupid, but do have any idea why this could be?

@zommerfelds The first thing I would check are the settings.json. Is the "keyboard.dispatch" duplicated in there, is the setting overwritten by a workspace setting when opening a folder, etc.
The next thing to look at is opening an editor and running F1 > Developer: Inspect key mappings. Does it print "FallbackKeyboardMapper dispatching on keyCode" (an indicator that the setting was applied).
If this is not a problem with the settings, i.e. the confirmation that dispatching is done on keyCode is there, then I'd try looking into what Electron/Chromium/the OS sends our way when you press a specific key: Please hover over the input box and take a screenshot:

Hi @alexandrudima, thanks for the detailed answer.
cat ~/.config/Code/User/settings.json:
{
    "keyboard.dispatch": "keyCode"
}

If I open the editor and go to File => Preferences => Settings, I see the same contents for USER SETTINGS as above, and {} for WORKSPACE SETTINGS, so that should be fine.
F1 > Developer: Inspect key mappings gives me:
Layout info:
{
	"model": "pc105",
	"layout": "de,ch",
	"variant": "neo,",
	"options": "grp:menu_toggle",
	"rules": "evdev"
}
FallbackKeyboardMapper dispatching on keyCode

Raw mapping:
...

For the keybindings I get:
If I want to type "a":

If I want to type "(":

In Neo, the A is where the D key would be in QWERTY, and ( is CapsLock+J in QUERTY.
I can use the arrow keys in 4th layer in Neo just fine, but not for example the digits. Backspace works. Enter doesn't work. Ctrl+Z works for undo (in Neo).
Also, as I said earlier, everything works for the first few seconds while Vscode is starting up, then it stops working.
Let me know if I can help in some other way. It would be awesome if I could start using Vscode again :)

Thanks @alexandrudima ! Changing "keyboard.dispatch": "code" to "keyboard.dispatch": "keyCode" in File->Preferences->Settings helped me to get the m4 layer keys (escape key, navigation keys, backspace, delete, numbers) working.

Issue is still present in current VS Code:

VS Code version: Code 1.20.0 (c63189deaa8e620f650cc28792b8f5f3363f2c5b, 2018-02-07T17:10:15.949Z)
OS version: Linux x64 4.13.0-32-generic

I've also had trouble using the Neo-Layout with VS Code 1.201 under Ubuntu 17.10 (Linux 4.13.0-36-generic). Without the `"keyboad.dispatch": keyCode' - switch I was able to type with Neo2 but couldn't even use CTRL + C and CTRL + V  as it would map back to the default layout (triggering CTRL + R and CTRL + W, respectively).

I do map my keyboard with XKB program to use modified dvorak keyboard.
I use ralt_switch option, which used to switch right alt key to function as meta key or extra modifier.
I do enable keyCode setting in VSCode Insider.
Below are my XKB setup sample

The RAlt (aka Meta key) + s recognized by VS as End key. +Good
but when I supposed to do ctrl+End key with Ctrl+RAlt (Meta)+s it recognized as Ctrl+s which will save the document. -Bad
Guess what happen when I tried to jump some words by pressing Ctrl+Right aka Ctrl+RAlt (Meta)+n several times.
I suppose Ctrl modifier does not play nice with extra modifier (or keyCode-ed modifier) like meta key or Mod4.
Even Ctrl+Shift+RAlt (Meta)+s does save as too.

I am on Linux.
Version 1.21.1
Commit 79b44aa704ce542d8ca4a3cc44cfca566e7720f1
Datum 2018-03-14T14:46:30.761Z
Shell 1.7.9
Renderer 58.0.3029.110
Node 7.9.0
Architektur x64
Unfortunately the keyboard.dispatch workaround seems not to work for me as well - at least not good enough. I can use the re-purposed CapsLock (Mod3) to insert programmers symbols like /,\,[,] and so forth within the editor, but not in Shortcuts like shift+/ which translates to pressing the physical buttons of shift+capslock+s
Trying to re-assign shortcuts with Mod3 shows unknown

It seems like @sakasistem mentioned, there seems to be issues with a certain sequence of modifier keys.

shortcuts like shift+/ are total BS and should not exist.
It should be either ? and let the layout decide what modifiers are needed to type that character, or a layout independend shift + scancode_slash. In the first opetion I would simply type ? (no matter where  I put that on my layout and what modifiers I need to press), and in the second one I would just type a capital J and because of scancodes that would just match the key.

Much like with krux02, I had to type 'Ctrl+ü' and 'Ctrl+k' for undo and redo, respectively, but I was able to find the appropriate "keyboard.dispatch" setting and that seems to have solved the problem.
OS: Ubuntu 18.04 LTS
VSCode:
Version 1.23.1
Commit d0182c3417d225529c6d5ad24b7572815d0de9ac
Date 2018-05-10T16:04:33.747Z
Shell 1.7.12
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64

Linux here, not using an unusual keyboard layout, I only remapped Caps Lock to Backspace via XkbOptions, and that didn't work either. Switching to keyCode made it work. I guess this affects any kind of key mapping.

For me the colon : spontaneously stopped working in Visual Studio Code 1.32.3 on macOS 10.14.3. The key combination in Neo2 is caps lock + ; (on qwerty). Setting keyboard.dispatch to keyCode helped.

Another neo2 user here ;) Stumbled across the backspace-not-working issue within the first few minutes of using VSCode. Luckily the workaround works like a charm so far!
Nevertheless it would be great if this bug was fixed some day ;)

The workaround from https://github.com/microsoft/vscode/issues/24043#issuecomment-292334048 works for the backspace functionality ( :+1: ) but moving one word forwards/backwards and deleting one word in front or behind the cursor still doesn't work :confused: , i.e. Ctrl + Alt Gr + w (in qwerty layout / keys on keyboard) should delete one word left of the cursor but just pastes the clipboard, which would be Ctrl + w (in qwerty layout / keys on keyboard) which is Ctrl + v.
It seems like the Alt Gr key press is just ignored when pressing the Ctrl key.
I'm using Arch Linux with the latest updates.
Can I provide more info to help resolve this issue?

I'm new to VS Code and I use the KOY layout (with some adaptions) on Linux (setxkbmap de koy). Same problem as with Neo2: I can type a hyphen by pressing CapsLock+L in the editor. But shortcuts containing CapsLock don't work (like zooming out with Ctrl+- = Ctrl-CapsLock-L).
The keybindings issues page recommends running F1 > Developer: Inspect key mappings if nothing else helps.
With the standard German layout (setxkbmap de), I get this for the L key:
	"KeyL": {
		"value": "l",
		"withShift": "L",
		"withAltGr": "ł",
		"withShiftAltGr": "Ł"
	}

With KOY (setxkbmap de koy), I get:
	"KeyL": {
		"value": "n",
		"withShift": "N",
		"withAltGr": "n",
		"withShiftAltGr": "N"
	},

Apparently, VS Code doesn't get the higher levels of the layout right!
Some additional technical information about this keyboard layout family (neo, adnw, koy, bone):
In the German default layout, AltGr is mapped to ISO_Level3_Shift (in Linux). In Neo2 (and alike), AltGr is mapped to ISO_Level5_Shift and CapsLock is mapped to ISO_Level3_Shift.
So I think, we should see in the output of > Developer: Inspect key mappings either
	"KeyL": {
		"value": "n",
		"withShift": "N",
		"withAltGr": "-",

(because CapsLock replaces AltGr in Neo2 in terms of being the new ISO_Level3_Shift key)
or
	"KeyL": {
		"value": "n",
		"withShift": "N",
		"withAltGr": "5",

(because you get a "5" when you press the physical AltGr key plus the L key).
I hope, this helps you VS Code developers better understanding our problem.

It seems like the Alt Gr key press is just ignored when pressing the Ctrl key.

I'm having the same problem. Marking single letters via Shift + RightArrow works when I enter the RightArrow via AltGr + E, But using Ctrl + Shift + RightArrow with the Neo-layout dispatches Ctrl + Shift + E instead.
I've used the key recording functionality and get with dispatch method code:

Pressing Shift + AltGr + E would first display shift + alt, then turns into shift + right.
Pressing Ctrl + Shift + AltGr + E first displays ctrl + shift + alt, then turns into ctrl + shift + e

and with method keyCode:

Pressing Shift + AltGr + E would first display shift + oem_8, then turns into shift + right.
Pressing Ctrl + Shift + AltGr + E first displays ctrl + shift + oem_8 ctrl+shift+e

The same happens when just using Ctrl + AltGr +E which becomes ctrl + e instead of ctrl + right.
For this specific issue, would it perhaps be a feasible workaround to just mark a certain key as dead? I don't need VSCode to listen to AltGr at all, it should only process the keycode that gets dispatched when pressed in combination.
My layout info:
"layout": {
		"model": "pc105",
		"layout": "de,de,gb",
		"variant": "neo,,",
		"options": "grp_led:scroll,altwin:alt_super_win",
		"rules": "evdev"
	}

I had the same problem as described here multiple times, where holding control or similar keys makes certain keys in level 4 of the neo layout unusable and executes unwanted shortcuts.
My fix/workaround
What has worked for me in Ubuntu 18.04 and fixed all these problems, is to run setxkbmap -layout de -variant neo after startup and each wakeup. It seems to work with either setting for keyboard.dispatch (keyCode or code).
Startup
In "Startup Application Preferences"->Add enter setxkbmap -layout de -variant neo like this and save
Wakeup
With sudoedit /lib/systemd/system-sleep/setxkbmap add
#!/bin/bash
case $1 in
  post)
    DISPLAY=:1 ; export DISPLAY
    su $USER -c "sleep 1; setxkbmap -layout de -variant neo"
  ;;
esac

Instead of $USER add your user.
Everywhere else I have found DISPLAY=:0 suggested, but that didn't work for me. Then I tried the value I got from echo $DISPLAY (:1), which worked.
If it doesn't work, try with a longer delay (e.g. instead of sleep 1;, use sleep 3;)

I hope this helps others!

I had a problem with the escape key on Neo's layer 4 not working (you can see it in the pic in the OP next to the M4 key in the second-to-bottom row, the little ☒). This feature is very handy for us Vim users because it allows us to actuate the escape key, which we do frequently, without reaching all the way to the top-left corner of the keyboard (some non-Neo users like to bind it to capslock for that reason). Unfortunately, this was the only key combination that didn't work in VsCode.
Changing "keyboard.dispatch" to "keyCode" in the settings, as suggested in this thread, fixed it. Thanks to @malteahl and @alexdima.
Version: 1.50.1
Commit: d2e414d9e4239a252d1ab117bd7067f125afd80a
Date: 2020-10-15T10:42:48.064Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: <IP_ADDRESS>-electron.0
OS: Linux x64 (X11)

Same issue with backspace.

VSCode Version: (1.57.1, 507ce72a4466fbb27b715c3722558bb15afa9f48, 2021-06-17T13:28:32.912Z)
OS Version: macOS Big Sur 11.4
Keyboard layout: Neo2 (qwertz)

After installing the latest VSCode version, the exclamation mark ! on layer 3 stopped working for me in VSCode.
Steps to reproduce:

Open any source file in VSCode
Press Mod3 and hold. Press z (see picture below)
Instead of inserting an exclamation mark, nothing happens.

This is independent from the setting in keyboard.dispatch.

@dominikmn I found a workaround for your issue. CMD + Mod3 + Z triggers the View: Toggle Word Wrap shortcut (CMD + Z). If you unset that shortcut, the exclamation mark works again.

Yeah! Thanks a lot!

Sadly, as of today, Neo Layout (and variants; I use Bone) are still barely usable with VSCode. It's impossible to use shortcuts with most special chars - I only ever used Layer 3, but Layer 3 mod'ed keys are always incorrectly detected as their layer 1 counterpart. (Typing works normally - I am very grateful for that!)
I tried

Keyboard: Dispatch = code and keyCode
(keyCode seems to have been applied because my Developer: Inspect Key Mappings displaysUser Resolved Keybindings (unique only):

FallbackKeyboardMapper dispatching on keyCode

Running setxkbmap -layout de -variant bone before start, during run, with and without restart of VSCode
Running code --disable-extensions --user-data-dir /tmp/tmp.rOF1qb6XBy
I tested the archlinux official OSS build and the unofficial flathub package
As per Wiki, I removed any other keyboard layout from my desktop environment, only Bone still left.

The way the keypress Ctrl+/ is always dispatched is the following:
2024-01-13 14:28:44.728 [info] [KeybindingService]: / Received  keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 17, key: Control
2024-01-13 14:28:44.728 [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 5 ('Ctrl')
2024-01-13 14:28:44.729 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2024-01-13 14:28:44.733 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-01-13 14:28:44.734 [info] [KeybindingService]: \ Keyboard event cannot be dispatched
2024-01-13 14:28:44.734 [info] [KeybindingService]: / Received  keydown event - modifiers: [ctrl], code: CapsLock, keyCode: 225, key: AltGraph
2024-01-13 14:28:44.734 [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: CapsLock, keyCode: 0 ('unknown')
2024-01-13 14:28:44.734 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2024-01-13 14:28:44.864 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-01-13 14:28:44.864 [info] [KeybindingService]: | Resolving ctrl+T
2024-01-13 14:28:44.865 [info] [KeybindingService]: \ From 1 keybinding entries, matched workbench.action.showAllSymbols, when: no when condition, source: built-in.
2024-01-13 14:28:44.865 [info] [KeybindingService]: / Received  keydown event - modifiers: [ctrl], code: KeyS, keyCode: 84, key: /
2024-01-13 14:28:44.866 [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: KeyS, keyCode: 50 ('T')
2024-01-13 14:28:44.866 [info] [KeybindingService]: | Resolving ctrl+T
2024-01-13 14:28:44.866 [info] [KeybindingService]: \ From 1 keybinding entries, matched workbench.action.showAllSymbols, when: no when condition, source: built-in.
2024-01-13 14:28:44.866 [info] [KeybindingService]: + Invoking command workbench.action.showAllSymbols.

If there's any way I could help with developing a fix, a workaround or anything that would remedy those (in my opinion severe) limitations, please let me know. I don't want to switch layout again and am willing to help. (Although I don't really know any substantial JavaScript or Electron)
key_mapping_vscode.txt


WIP use parent::offset*() methods when moving items arround in insertAt()

Work in Progress... do no merge!
since we only move already existing items arround, we directly call into SplFixedArray::offset* methods.
that way we get arround additional overhead this class adds with overridden offset* methods.

lets see whether travis builds are green...

btw, with all performance improvements, please target 2.12 LTS, not master

ker@dus:~/github/FriendsOfPHP/PHP-CS-Fixer λ git du
diff --git a/src/Tokenizer/Tokens.php b/src/Tokenizer/Tokens.php
index 4a428dff..08b5b405 100644
--- a/src/Tokenizer/Tokens.php
+++ b/src/Tokenizer/Tokens.php
@@ -877,10 +877,12 @@ public function insertAt($index, $items)

         $oldSize = \count($this);
         $this->changed = true;
+        $this->blockEndCache = [];
         $this->setSize($oldSize + $itemsCnt);

         for ($i = $oldSize + $itemsCnt - 1; $i >= $index; --$i) {
-            $this[$i] = $this->offsetExists($i - $itemsCnt) ? $this[$i - $itemsCnt] : new Token('');
+            $oldItem = $this->offsetExists($i - $itemsCnt) ? parent::offsetGet($i - $itemsCnt) : new Token('');
+            parent::offsetSet($i, $oldItem);
         }

         for ($i = 0; $i < $itemsCnt; ++$i) {
@@ -888,7 +890,8 @@ public function insertAt($index, $items)
                 throw new \InvalidArgumentException('Must not add empty token to collection.');
             }

-            $this[$i + $index] = $items[$i];
+            $this->registerFoundToken($items[$i]);
+            parent::offsetSet($i + $index, $items[$i]);
         }
     }

?

btw, with all performance improvements, please target 2.12 LTS, not master

after I get the build green, I will do that. thx for the guidance.
your patch looks perfect, thx. dont know what I did wrong though, but who cares ;-).
thx

resubmitted with a new merge base
https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/4049

FYI, for future - github allows you to change target of your PR, no need to recreate PRs to change their targets ;)

I tried to change it, but it resulted in a lot of unrelated commits within the branch

besides the retarget in github you typically need some git rebase magic as well, not to worry for now though :)


Indent detection

Generated doc comments always seem to use tabs for indentation, even if the rest of the file uses spaces:

Actually, it obeys the "editor.insertSpaces" setting.  That said, I agree it should use the same indent as the function being documented.  I'll fix that.

Thanks! :)


addEventListener

I think it would be nice if it were possible to use this with .addEventListener as well as with .on. While .on is a common thing when working with libraries, in a vanilla JS context, it feels odd.

I don't think this is a sufficient argument to merit an alias/ expanding the API surface. Perhaps as a break change (removing on, and adding addEventListener) if there is ever such.


Change hydromancer ice block

Changed to a cloud ability that stops melee units from attacking. Channeled.

Channeled ability. Storm cloud. Creste a dummy storm cloud that fires lightning bolt to targets in range.

Cloud has a passive immolation damage against air unit near it


Chore/versions

@fastluca when will I learn to switch the repo first... But I'll get there. Happy new year...


ROCapsules use remote netkan

We've had a remote netkan for a while but apparently no one ever PR'd NetKAN to update to point to it... :(

Once again I forgot to strip the eleventy-million recs, so inflate was gonna take forever.

Thanks for the update. :+1: A few points that aren't worth holding it up:

resources.homepage formerly was a link to the KSP-RO Discord, and it's not in the new metanetkan. It might be nice to keep this so users can find you.
You can use YAML for the remote metanetkan if you like.

Ah yeah lemme fix the homepage thing, thanks. Also I just copied RSS's metanetkan which is why it's in YAML and was spec version 1.12.
The remote I guess we could convert over, but for now I'll leave in json? It doesn't really matter to me anyway, and I don't think anyone else in RO has strong opnions?
Cheers!


Map museum pins

Museums now appear in all shows on map
Fixes cluster size for clusters of 5 and less shows to be the same size

#trivial

merge on green


Icon request: stop sign (road sign)

Icon with text "STOP" in octagon.
For restricted areas.

I think the octagon icon would work well for this use case (https://github.com/colebemis/feather/blob/master/icons/core/octagon.svg). When we implement a tagging system, we can add a stop tag to octagon.


Can I transform final Monolog request to curl string and log it somewhere?

Monolog 2
Hi. I'm trying to understand - Why I can't receive request from Monolog on my server(everything fine from local machine).
Because of that I want to transform Monolog request into cUrl string and execute it directly from server machine (I think that such request can be blocked on server side by firewall or something like that)
For initialisation I'm using next code
protected function init()
    {
        parent::init();

        $config = Factory::getInstance()->getConfigurationForInstallation('monolog');
        $host = $config->getHost();
        $port = $config->getPort();

        $handler = new SyslogUdpHandler($host, $port);
        $formatter = new LogstashFormatter('portal-log');
        $handler->setFormatter($formatter);

        $this->log = new Logger('portal-logger');
        $this->log->pushHandler($handler);
    }

and call with  $this->log->addRecord(Logger::ERROR, '[PORTAL] ' . $message, []);
How can I catch final result of such request and reproduce it on server?
P.S. I will be grateful for any other recommendation for my situation (server not send but local machine - OK)

I don't think curl supports the Syslog UDP protocol.


Spelling errors in rule names: no-unamed-features no-unamed-scenarios

I think the correct spelling should be no-unnamed- instead of no-unamed.

You're right, I can't spell T_T

I could submit a PR for this.

@nene  I'll fix right now


How Can I start up dext app when I login to Mac

I installed dext app and dext is really good. But When I launch dext app,  I have to lauch it  manually. For example "Open Finder > select dext app" or " Opne spotlight and  type dext". Are there anyway to startup automatically.

hey @anipro
This is a missing feature at the moment.

The harsh truth is that @vutran and I haven't been good at showing this project any love the past year.
At the moment I'm writing a draft where I'm proposing which parts of dext we need to focus our energy to ensure that dext itself, and all plugins that comes with it are much richer on a technical stand point.
I personally hope we can address your point soon. as this is something I would consider a valuable feature. thank you for submitting this issue! 💟

@anipro you can drag the icon on System Preferences > Users & Groups > Current User/Login Items


Merge workspace settings with CLI settings

Summary
This PR adds the structs and logic necessary to respect settings from the workspace. It's a ton of code, but it's mostly mechanical. And, believe it or not, I pulled out a few refactors in advance to trim down the code and complexity.
The highlights are:

All CLI arguments are now Option, so that we can detect whether they were provided (i.e., we can't let Clap fill in the defaults).
We now have a *Settings struct for each command, which merges the CLI and workspace options (e.g., PipCompileSettings).

I've only implemented PipCompileSettings for now. If approved, I'll implement the others prior to merging, but it's very mechanical and I both didn't want to do the conversion prior to receiving feedback and realized it would make the PR harder to review.

Ah shoot. Misunderstood how Option<bool> works. Need to reconsider this.

Ok taking this from here to merge is gonna be a lot of tedious work, to add settings structs for all commands.

A mere 1,200 lines...


Error on Controller Response Test

Having trouble connecting to wemos mini. Have flashed v11 onto it both manually and via fermtrack. Wemos is connected to wifi and can add as new device, however no temperature readings available via lcd on fermtrack and connection debug reports error on Controller Response Test (all other tests successful). Wifi connection strong.

Device error log snippet:
Aug 03 2018 21:32:00   Connection type WiFi selected.  Trying TCP serial (WiFi)
Aug 03 2018 21:32:00   Connecting to BrewPi tempcontroller.local (via <IP_ADDRESS>) on port 23
Aug 03 2018 21:32:07   Successfully connected to controller.
Aug 03 2018 21:32:07   Notification: Script started, with no active beer being logged
Aug 03 2018 21:32:17   Checking software version on controller...
Aug 03 2018 21:32:17   Found BrewPi v0.2.4, running commit 00000000, running on an ESP 8266 on port <IP_ADDRESS>:23
Aug 03 2018 21:32:17   BrewPi version received was 0.2.4 which this script supports in 'legacy' branch mode.
Aug 03 2018 21:32:17   Bound to TCP socket on port 2111, interface localhost
Aug 03 2018 21:32:18   Installed devices received: []
Aug 03 2018 21:32:20   Available devices received: [{"x": 1, "h": 1, "b": 0, "p": 16, "d": 0, "f": 0, "i": -1, "c": 1, "t": 0}, {"x": 1, "h": 1, "b": 0, "p": 14, "d": 0, "f": 0, "i": -1, "c": 1, "t": 0}, {"x": 1, "h": 1, "b": 0, "p": 13, "d": 0, "f": 0, "i": -1, "c": 1, "t": 0}]

http://i347.photobucket.com/albums/p480/Neil_Milne/1EC3FB8E-2D90-4664-8F8E-2D71D61D46CC_zpskzqzqgnj.jpeg
http://i347.photobucket.com/albums/p480/Neil_Milne/A5A9D701-BA50-49CA-8157-4A3EFB4325AC_zps3nzsrwpf.jpeg

Update - user error, pins weren't assigned properly for sensors. Sensors now read beer & fridge temp OK. The controller response test still errors out, but doesn't appear to affect temperature readings.

The controller response test error sounds like a bug. I made some changes to the way that additional telnet connections work for controllers - let me dig into the code a bit and see whether or not this test needs to be either tweaked or removed.

hey @Wobbly74 how did you fix your issue ? i have exacty the same problem I have the Temp sensor connected to D6 on the wemos mini. I can see I2C messages on my oscilliscope hitting that pin (from two DS18B20 with a 4.7K resistor) but no tempriture sensor details appear on the lcd or fermentrack web. I have two sensors connected on my bread board the only thing I have not done is connect the Relays for the fridge & heater because I want to test the temp sesnsors 1st and those are output pins so should not make a difference to the firmware when testing the temp sensors!

I fixed in as much as I got the temperature readouts ok but the test never worked ok (haven't tried it again since though). My pin assignments were incorrect which was what caused the problem in the first place.


fix(store): delete column itemIds when payload itemIds is empty

This fixes a bug when you drag an item from one column to another but the item persists in another view because Firebase on child changed listener returns null for empty array.
This causes the visual bug of duplicate item is 2 columns.

Codecov Report

Merging #374 (9be779d) into master (628e7c7) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #374   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           64        64
  Lines          694       696    +2
  Branches       106       107    +1
=========================================
+ Hits           694       696    +2

Impacted Files
Coverage Δ

src/store/columnsSlice.ts
100.00% <100.00%> (ø)

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 628e7c7...9be779d. Read the comment docs.


85 scenario set default time zone for all joined people in a public chat

Issues

https://github.com/team-work-tools/team-work-telegram-bot/issues/85
https://github.com/team-work-tools/team-work-telegram-bot/issues/90

Details

closes https://github.com/team-work-tools/team-work-telegram-bot/issues/85
closes https://github.com/team-work-tools/team-work-telegram-bot/issues/90

@team56_daily_meeting_bot europe

There may be other commands that use the inline mode.
Currently, the bot expects input right after the bot username.

Need to change this to
@team56_daily_meeting_bot set_time_zone Enter your local time, date, country, or continent

Some lines aren't completely visible. Break them.

There may be other commands that use the inline mode.
Currently, the bot expects input right after the bot username.

Need to change this to
@team56_daily_meeting_bot set_time_zone Enter your local time, date, country, or continent

Telegram only allows to set placeholder text right after the bot tag. We can't display different placeholders for different commands.


Builtin Uniforms

[x] u_map_position (priority for eraser map)
[x] u_time
[x] u_resolution

All good, will merge!

Err hang on, why aren't we adding all of the built-ins?
https://github.com/tangrams/tangram-docs/blob/gh-pages/pages/shaders.md#built-in-uniforms

We already had a chat about it.
I wanted to first get the priority ones in for eraser map.


Support arbitrary data to be looped from one debug session to a restarted session

I noticed that we sometimes have to hardcode a "port" in a launch config if we want to use the same port in restarted debug sessions. Here is an example from the MERN Starter Recipe (see https://github.com/weinand/vscode-recipes/tree/master/MERN-Starter):
"protocol": "inspector",
"runtimeExecutable": "nodemon",
"runtimeArgs": [
    "--inspect=9222"
],
"port": 9222,
"restart": true,

The ugly thing about this is the redundancy (and potential inconsistency) between the protocol, runtimeArgs, and port attributes. If the value of protocol is changed to legacy, the values for runtimeArgs and port must be changed as well, otherwise a problematic inconsistency will occur.
It would be preferable if we could just use this:
"protocol": "inspector",
"runtimeExecutable": "nodemon",
"restart": true,

In this case the debug adapter picks a random port and passes it with the correct 'inspect' or 'debug' option to the runtime.
The problem is how this "port" can be looped from the DA back to VS Code and then to the next session.
I suggest that we support a generic mechanism for passing arbitrary data from one debug session to the next by extending the type of the restartattribute of the TerminatedRequest from "boolean" to "any".
VS Code will loop this restart value unmodified and uninterpreted from one session to a restarted next session as the (already existing) __restart attribute of the launchRequest.

@isidorn I've modified the DAP for this.

@roblourens I've verified that node-debug2 still works after this protocol- and frontend-change.
You might want to adapt node-debug2. Here is what I did:
In node-debug I'm now sending the debug port as part of the TerminatedEvent:
			if (this._restartMode && !this._inShutdown) {
				this.sendEvent(new TerminatedEvent({ port: this._port }));
			} else {

and in the launchRequest handler I'm the __restart attribute as follows:
		if (args.__restart && typeof args.__restart.port === 'number') {
			this._attach(response, args.__restart.port, undefined, args.timeout);
			return;
		}

This should be hooked up on the vscode side right? When I send TerminatedEvent with an object, __restart doesn't come back on the launch config object. Even with 'legacy', as a result, nodemon debugging is not working very well unless the port is specified.

Actually this works in 1.12, filing an isseu

When using the "inspector" protocol the restarts stops on entry: https://github.com/Microsoft/vscode-node-debug2/issues/114


Declaring a dynamic variable results in no new output

Describe the bug
Start with the following program at https://try.dot.net:
using System;

public class Program
{
  public static void Main()
  {
    Console.WriteLine(DateTime.Now);
    object obj = 1;
    Console.WriteLine(obj.GetType());
    Console.WriteLine(obj);
  }
}

That works fine. Now, make the following change to the line where obj is declared:
    dynamic obj = "hi";

Click the "Run" button again. The displayed output does not change.  You'll still see the type as System.Int32, the value as 1, and the previous timestamp.
Did this error occur while using dotnet try or online?

[ ] dotnet-try
[x] online

What kind of error was it?

[ ] User Interface (UI):  For example the output never displayed
[ ] Service Error: For example "The service is temporarily unavailable. We are working on it"
[x] Other:

Screenshots
If applicable, add screenshots to help explain your problem.
Please complete the following:

OS

[X] Windows 10
[ ] macOS
[ ] Linux (Please specify distro)
[ ] iOS
[ ] Android

Browser

[ ] Chrome
[X] Edge
[ ] Safari

cc @rchande , @jongalloway  @diego

@BillWagner Thanks for filing. This appears to be a specific issue with dynamic--we'll follow up with mono team.


High quality terrain doesn't look like high-quality？

Hello, the high-quality terrain I generated does not appear to be of high quality, and the triangles can be clearly seen. Is there a problem with my command line?
python -m infinigen.datagen.manage_jobs --output_folder outputs/ExportUSDC_01_arctic_high_quality --num_scenes 1 --specific_seed 0 --configs arctic.gin high_quality_terrain.gin --pipeline_configs local_256GB.gin monocular.gin blender_gt.gin export.gin --pipeline_overrides LocalScheduleHandler.use_gpu=False

We fixed it in the new release. Specifically, as we added in the doc, use -p fine_terrain.mesher_backend="OcMesher".


Move radians, signum, sin, sinh and sqrt functions to datafusion-functions crate

Which issue does this PR close?
Closes #9860.
What changes are included in this PR?
radians, signum, sin, sinh and sqrt functions are moved to datafusion-functions crate.
Are these changes tested?
Yes, all scalar.slt based radians, signum, sin, sinh and sqrt functions' tests are passed.
Are there any user-facing changes?
No

🤔  there seems to be one more CI failure related to this PR

Thanks for the review. CI failure has been addressed.

🚀  -- thanks @Weijun-H  and @erenavsarogullari ❤


[SMALLFIX] Fix missing configuration doc and template

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/10392/
Test PASSed.

LGTM module one question

@aaudiber Addressed your comments. thanks!

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/10393/
Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/10394/
Test PASSed.

@aaudiber PTAL?

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/10395/
Test PASSed.

thanks for these improvements ... I left some minor comments

@jsimsa I addressed your comments. PTAL

LGTM

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/10404/
Test PASSed.


Disable vec constructor from non-compatible components

It might seem strange to use 1-element vectors, but I have a template class for the 2- and 3-element case, so I thought I'd re-use the code also for scalar case.
Anyway, my problem reduces to this code example:
#include "gml/vec.hpp"

struct myvec : gml::vec<double, 1> {};

int main()
{
  myvec a;
  gml::vec<double, 1> b(a);  // ERROR
  auto c = static_cast<gml::vec<double, 1>>(a);  // ERROR
}

Which causes this compiler error:
gml/vec.hpp:58:18: error: cannot convert ‘const myvec’ to ‘double’ in initialization
   data_{ args... }

It works fine when changing all occurrences of 1 to e.g. 2.
The problem seems to be this constructor:
https://github.com/ilmola/gml/blob/fe4627f7b35a04693cf38d6f564885fa2b183b4f/include/gml/vec.hpp#L52-L61
... which seems to be a better match in my case (for N == 1) than the default copy constructor (which I would like to be called), but of course it fails because the types are incompatible.
I tried to solve this by checking if the type is convertible.
This works for me but it may not be the best way to solve this.
It would probably be enough to only check this if N == 1.

I've added a second commit (d3fab4fd1f5c752bbb3f2ea0186d36af25c4b0e9) that checks all parameters instead of just the first.
This shouldn't make too much difference (except for the compiler messages in case of an error), but this seems more symmetrical to me.
@ilmola Feel free to choose whichever variant you prefer.


Flash thirdparty firmware

Hello!
I have multiple smart plugs of the same type and one of them is running an older firmware version(1.0) and my others are running (1.2). I connected to an outlet with the version 1.2 and grabbed the bin file it created of that firmware(1MB). Am I now able to connect the outdated firmware outlet and flash this new version into it? If so, how? Please let me know the commands.

In short, no, that's not what this framework is designed for. The point of tuya-convert is to overwrite Tuya firmware with your own choice of custom firmware.
Technically you might be able to extract the userbin from 0x01000 or 0x81000 and it might work on another Tuya device, but why would you want to do that? If you want to upgrade your Tuya firmware to a later Tuya firmware, just use the vendor app.

Okay. Thank you a lot for the info!
Does this "vendor" app exist on iPhone(AppStore) or where can I find it?

The vendor app is whatever app you use to control the device. Each brand might have their own version, but they are all based off of the SmartLife app published by Tuya. Any Tuya based device should work with the SmartLife app AFAIK.

The vendor app is whatever app you use to control the device. Each brand might have their own version, but they are all based off of the SmartLife app published by Tuya. Any Tuya based device should work with the SmartLife app AFAIK.

Yes. I use Smart Life to control the current outlets. These outlets do not have a brand as I purchased them on eBay and there is no company name printed on them. The instructions that are included tells me to use Smart Life and no other app.
It's not possible to update via Smart Life, right? What are my options? Should I try flashing the firmware that is a backup for the 1.2 device as an alternative firmware for the 1.0 device? Do you think it will work? The size of the bin is 1M.

You can absolutely use SmartLife to update your device firmware, if an update is available. I certainly do not recommend trying to force another device's stock firmware to a different device. At best, you'll get the same update as you would through SmartLife. At worst, you will brick your device.

You can absolutely use SmartLife to update your device firmware, if an update is available. I certainly do not recommend trying to force another device's stock firmware to a different device. At best, you'll get the same update as you would through SmartLife. At worst, you will brick your device.

How do I do that? I can only find "control firmware" in the Smart Life app and that only tells me the current version of the device. No button to update.
Screenshot: https://i.gyazo.com/ab433ee095229857f00b900d454b351e.png

Sorry, I don't read the language. If you can't find an update option there may not be an update available. Is there a reason you need to run version 1.2?
The intention of this project is to install custom firmware, not to update vendor firmware. Custom firmware allows you to take security and privacy into your own hands, detach from cloud dependence, and implement functionality however you see fit, often above and beyond what stock firmware can do. If you are interested in these benefits, look into Sonoff-Tasmota or Espurna as two popular options. tuya-convert can help you install these onto your device.
For any other purpose I do not advise you to use this software. You will likely end up with a device you can't use with Tuya or at all.

Sorry, I don't read the language. If you can't find an update option there may not be an update available. Is there a reason you need to run version 1.2?
The intention of this project is to install custom firmware, not to update vendor firmware. Custom firmware allows you to take security and privacy into your own hands, detach from cloud dependence, and implement functionality however you see fit, often above and beyond what stock firmware can do. If you are interested in these benefits, look into Sonoff-Tasmota or Espurna as two popular options. tuya-convert can help you install these onto your device.
For any other purpose I do not advise you to use this software. You will likely end up with a device you can't use with Tuya or at all.

The reason I want to upgrade is that I need to press the device one extra time to be able to toggle it in SmartLife. For the 1.2 firmware, you can toggle it without going "into" the device.
I have placed the firmware 1.2 in the files folder with the name firm.bin. Would you mind telling me the command to flash it from a file in files folder? And if it breaks it's fine as I have 10 of these outlets.

This is not a valid use case of tuya-convert and outside the scope of what I can support. If you decide to proceed you need to figure out yourself how to create a compatible firmware binary.


Assessment description box

Increase character/word limit on assessment description. This also applies to objects.
New Assessment > Description.
New Observing System/Data Product/Application/Societal Benefit Area > Description.
Recommend doubling or tripling the character limit.

@Sherwin-14 if you're interested, this might be another one to tackle. I would want to know from @MattF-NSIDC if it will cause issues with storage space, though, and, Matt, what you would recommend for a new character limit. If these are preset fields, like in a Google form, I'd recommend changing it from a "short answer" to a "long answer" field. Does that make sense?

@hazelshapiro this doesn't cause me any concerns storage space, let's go with whatever limit feels appropriate to you. Does 4x sound OK?

Great, in that case, let's do 5x so we can accommodate a few longer answers if needed

5x

How about 8x? I like multiples of 2 ;)
@hazelshapiro important to note, now that we're in production we must set up data migrations before our next release. The time cost might be a day, two on the outside.

Yes I would love to! Will take a look into it.

Resolved in #301

Thank you!

5x

How about 8x? I like multiples of 2 ;)
@hazelshapiro important to note, now that we're in production we must set up data migrations before our next release. The time cost might be a day, two on the outside. This ticket impacts the data model (see labels). We can only release changes that don't impact the datamodel without needing a migration.
Edit to add: Future migrations won't re-incur the same setup cost.

Does this mean that this change won't be deployed until we have our next dedicated development time? Just want to make sure I understand. What about deploying the gray nodes update? @mfisher87

Correct, this change would be impossible to deploy before we figure that problem out. The gray node change is possible to deploy before then, but it does take a nominal amount of time.


log2ram  (saves reads and writes in mem cards expanding their life)

git clone https://github.com/azlux/log2ram.git
cd log2ram
chmod +x install.sh
sudo ./install.sh

not going to bother


Please Explain matchengine config.json properties [Question]

prec_save
prec_show in assets
and
prec in market object.

prec_save precision saved in database
prec_show precision used for display
prec in market object is the precision for the market

Still unable to figure what exactly is "precision"

1.31 2 precisions
3.1231 4 precisions
so if you set the precision to 4 as example, then the user can't place an order with 5 decimals.

Great, Thanks a lot. @iamsrivastava you can close it.


Error: Cannot find module 'get-port'

Your Environment

verdaccio version: 6.0.0-6-next.54
node version 18.13.0
package manager: npm 8.19.3
os: linux
platform: npm

Describe the bug
When using the runServer function from the verdaccio nodejs api, the process exits immediatly with an error Error: Cannot find module 'get-port'.
// index.js
import { runServer } from "verdaccio";

To Reproduce

See https://github.com/SimonSiefke/verdaccio-bug
Expected behavior

Verdaccio can be imported without errors.
Screenshots, server logs, package manager log

This is the output when running node index.js:
node:internal/modules/cjs/loader:1039
  const err = new Error(message);
              ^

Error: Cannot find module 'get-port'
Require stack:
- /tmp/verdaccio-bug/node_modules/verdaccio/build/server/registry.js
- /tmp/verdaccio-bug/node_modules/verdaccio/build/server/index.js
- /tmp/verdaccio-bug/node_modules/verdaccio/build/index.js

Configuration File (cat ~/.config/verdaccio/config.yaml)

Environment information

Environment Info:
System:
OS: Linux 5.19 Ubuntu 22.10 22.10 (Kinetic Kudu)
CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
Binaries:
npm: 8.19.3 - ~/.nvm/versions/node/v18.13.0/bin/npm
Browsers:
Chrome: 109.0.5414.74
Debugging output

$ NODE_DEBUG=request verdaccio display request calls (verdaccio <--> uplinks)
$ DEBUG=verdaccio* verdaccio enable extreme verdaccio debug mode (verdaccio api)
$ npm -ddd prints:
$ npm config get registry prints:

Contribute to Verdaccio

[ ] I'm willing to fix this bug 🥇

Thanks I also noticed, on my lists. Are you testing v6 or how did you get there if I may ask.

Vscode highlights deprecated code with strike-through.

I was trying to update that code to the latest version (v6) - but it's not urgent or anything. :)

Thanks for raising it, it helps to improve the software, currently I am trying to improve 5.x versions so can take the best of 6.x versions, less those errors 😅.

Vscode highlights deprecated code with strike-through.

I was trying to update that code to the latest version (v6) - but it's not urgent or anything. :)

You can use also another API which is available in v5 similar to v6 , check https://verdaccio.org/docs/verdaccio-programmatically/#using-the-module-api
 const {runServer} = require('verdaccio');
    const app = await runServer(); // default configuration
    const app = await runServer('./config/config.yaml');
    const app = await runServer({ configuration });
    app.listen(4000, (event) => {
      // do something
    });

Same shape, it was added in order to facilitate v6 migration, the other one is deprecated should be not longer used.


Unique Number-III

🚀 Feature
Given an array that contains all elements occurring 3 times, but one occurs only once. Find that unique element.
Input  : arr[] = {6, 2, 5, 2, 2, 6, 6}
Output : 5
Have you read the [Contributing Guidelines on Pull Requests]
Yes
Motivation
I want to solve this issue as a part of CH20.
Pitch
We can use bitwise AND to find the unique element in O(n) time and constant extra space.
Assignees

@ishi0301: C++
@ritvij14 : Java
@narayan2111 : Python

@HarshCasper @Abhijit2505 @iamrajiv @atarax665 @SKAUL05. I would like to implement this in C++ as a part of CH20.Please assign me this issue. Thank you!

I would like to try this in java for CH20.

I would like to work on this issue in python

I would like to try this in C

I would like to solve this problem

I would like to take this in python

I would like to do this in C#

this issue is  assigned to me but my name is not showing in  Assignees @iamrajiv

We are logging the scores for the Contributor's Hack 2020. If you have one or more than one PR merged during the program, make sure to fill this form

Hi...I would like to work on the java version of this issue....Can I do it??

@ayushgaur03 You can check the description above, I have already done it and my PR is merged, in any issue if the description has a language with someone's name written after it that means it has been already assigned to that person.


[Frontend] Re-add FrontendObserver methods

These observer methods were used by external clients. Since we no longer
have the granularity between diagnostics and optimization, they're
rolled into a new observer callback, performedSILProcessing.
This (effectively) reverts commit 7b43e1d04debfaea6ee2e75cac820c0b3cd95d85.

@swift-ci please smoke test

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - 57031dd18838f6f207568e65b549359bbab63b90

Build failed
Swift Test Linux Platform
Git Sha - 57031dd18838f6f207568e65b549359bbab63b90


Dragging sortable options onto a target

Is it possible to use Sortable to drag an option onto a drop target (and make the drop target respond appropriately)? e.g. to delete a item from the list and drag it onto a 'garbage can'?

Is it possible to use Sortable to move an item to a certain place, and only under this condition the movement carried out an item?

This is necessary when there is a need to build a multi-level tree.

It may have implemented an example of nested tree?


Bug in UploadsAPI

Hi,
I'm trying to request an uploadDestination from the API and creating following params:
client := selling_partner.New(config)

transport := client.ClientTransport(
	context.Background(),
	selling_partner.Debug(),
)

uploadsClient := uploads.New(transport, nil)

uploadParams := uploads.NewCreateUploadDestinationForResourceParams()
uploadParams.SetContentMD5(hex.EncodeToString(sum))
uploadParams.SetContentType(stringPtr("image/png"))
uploadParams.SetMarketplaceIds([]string{"A1PA6795UKMFR9"})
// This leads to the issue:
uploadParams.SetResource("aplus/2020-11-01/contentDocuments")

res, err := uploadsClient.CreateUploadDestinationForResource(uploadParams)

The dump from enabled debug shows me this:
2024/09/23 11:44:09 DEBUG: Request Signature:
---[ CANONICAL STRING  ]-----------------------------
POST
/uploads/2020-11-01/uploadDestinations/aplus%2F2020-11-01%2FcontentDocuments
...

As you can see, the resource part in path gets URL encoded, which leads to an error "Access to requested resource is denied.".
I saw in code that the resource param is treated as a pathParam and passed to github.com/go-openapi/runtime
When I temporarily just change the line in github.com/go-openapi/runtime/client/request.go:L321 and remove the url.PathEncode wrap, the final POST url now does not encode the resource parameter and the CreateUploadDestinationForResource() call works without issues.
Sorry for the long explanation. I'm not sure if this should be treated as a bug in renabled/amzn-sp-api-go (as in the parameter shouldn't be passed as pathParam anyway) or if this should be reported to go-openapi/runtime OR if I understood something wrong and do something wrong.
What do you think?

Sorry for the very later reply. Problem with Amazon API is that they make changes all the time, to look into your problem, have you tried the next branch?

Thanks for your reply and don't worry about the delay, we all have lives :)
No I did not try the the next branch but I guess I can do that in the next few days

I saw that you merged next and released a new version.
Can confirm that the issue still exists in v0.24.10

I also made the same mistake. How did you solve it


Including arbitrary data in schema json

First check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to FastAPI but to Pydantic.
[X] I already checked if it is not related to FastAPI but to Swagger UI.
[X] I already checked if it is not related to FastAPI but to ReDoc.
[X] After submitting this, I commit to one of:

Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.
I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.
Implement a Pull Request for a confirmed bug.

Example
from fastapi import FastAPI, Request
from pydantic import BaseModel, Field

class ExampleModel(BaseModel):
    title:       str
    overview:    str = Field("", extra_arg="testtest")

    class Config:
        schema_extra = {
            "example": {
                "test": "test",
            },
            "notexample": {
                "test": "test",
            }
        }

app = FastAPI()

@app.get("/testroute/", response_model=ExampleModel)
async def testroute():

    print(ExampleModel.schema())
    print(ExampleModel.schema_json())
    print(app.openapi())

    return {'title': 'test', 'overview': 'test'}

Description

Open the browser and call the endpoint /testroute/.
Or visit /openapi.json
The extra argument (test_arg) to the overview Field is returned by schema() and schema_json().
However the extra argument (test_arg) to the overview Field is not returned in the OpenAPI schema.
The example key in schema_extra is returned in the OpenAPI schema.
However the notexample key in schema_extra is not returned in the OpenAPI schema.

The docs at field-additional-arguments say: "you can also declare extra info for the JSON Schema by passing any other arbitrary arguments to the function" and "The same way, you could add your own custom extra info that would be added to the JSON Schema for each model, for example to customize a frontend user interface, etc." which is what I am attempting to do.
The extra information is present when getting the schema from the pydantic class itself, but once it's passed through fastapi the extra information has been removed. It seems like only keys that fastapi/openapi is expecting are exported (such as example or format), but others are not. However doesn't that contrast with documentation statements above?
Thank you.
Environment

OS: Ubuntu: 18.04
Python: 3.6.9
FastAPI Version: 0.60.1

I was also misleaded by the doc and hoped to have the following working :
@app.get("/something")
def something(
        cache_control: str = Header(
            default=None,
            examples={
                "no-cache": {"value": "no-cache"},
                "": {value": ""},
                "no-store": {value": "no-store"}
            }
        )
    ):
    ...

``

A work around in my case was to implement the Extending OpenAPI example and brute force my values into the dictionary at that point:
openapi_schema["components"]["schemas"]["blah"]["properties"]["field"]["custom"] = "data"
This works, however feels messy. It would be nice to understand why exactly custom field information disappears as the docs do seem misleading about this point.

Shouldn't this be marked as a bug rather than a question? I have the same problem and according to the docs that you cited this should work.

I agree that the docs are misleading. In case you're just looking to define additional fields in valid JSON Schema in the schema_extra, here's how it can be accomplished in your example:
from typing import Dict, Any

from fastapi import FastAPI
from pydantic import BaseModel

class ExampleModel(BaseModel):
    title:       str
    overview:    str

    class Config:
        @staticmethod
        def schema_extra(schema: Dict[str, Any]) -> None:
            schema["example"] = {
                "test": "test",
            }
            schema["properties"]["notexample"] = {
                "title": "Not Example",
                "type": "integer"
            }

app = FastAPI()

@app.get("/testroute/", response_model=ExampleModel)
async def testroute():

    print(ExampleModel.schema())
    print(ExampleModel.schema_json())
    print(app.openapi())

    return {'title': 'test', 'overview': 'test'}

The new field will then show up in the docs and openapi.json. Using a callable for schema_extra so that an entry to properties can be added instead of overwriting existing ones is documented in the Pydantic docs.

Even so Pydantic allows custom metadata in the JSON Schema, FastAPI seems to only allow properties defined in the SchemaBase Model. All extra arguments are ignored at the creation of the OpenAPI schema here since they are not part of the SchemaBase Model.
Adding extra arguments to properties is a possible workaround since properties is part of the SchemaBase Model. Unfortunately, this is not really compatible with Pydantic's support of extra arguments. So, I think this part of the documentation - you can also declare extra info for the JSON Schema by passing any other arbitrary arguments to the function - is not possible with the current FastAPI version.


insufficient permissio for adding an object to repository database .git/objects

Extension version: .26
VSCode Version: 1.56.2
OS: Debian 10 Buster

Steps to Reproduce:

Click on Commit in the project
2.Get error message insufficient permissions for adding an object to repository database .git/objects
Have checked all the files, all have the correct user and group assigned
Have been using git from vscode for months now from the terminal in vscode without issue, same file permissions
With authentication change on GitHub requiring a personal access token I decided to install the GitHub Pull Requests and Issues extension and see if that would automate the personal access token process
Have looked through numerous online discussions regarding this error, but all old, and not regarding this extension
But funny work around. I can add and commit using terminal, and then push using the extension.

The work around mentioned above worked only once. Not sure why it worked at all. I have gone back to using terminal with personal access token.

@mtyeager can you share a screenshot of where you "click on commit in the project"?


Show reverse dependencies on the package page

When using wheel and twine to upload a package, PyPI and Warehouse will have information about the dependencies of said package. It would be very nice to be able to look up the reverse relationship, the dependents, on the package's listing in Warehouse.

This regressed with the move to Pyramid.

We have this featured in the new UI and @dstufft has created a new issue (#789) to cover the technical integration, so I am going to close this now.


PTEUDO-1562 rewrite migration logic of controller

- fix grant/revoke superuser
- support gcp alloydb roles
- pass cloud into dbclient pkg calls
- ignore sql revoke errors on non-cloud dbs
- separate kubectl client for finding cloud based master credentials
- push sql updatepassword when credentials are denied
- always set status when existing reconcileNewDB
- persist source user creds to secret at end of newdb for migration
- bind psql containers to host IP so they can talk to each other
- refactor ways credentials are divined from cluster
- move mock sql roles into testdb runner
- systemfunctions cleanup logic and logs
- ignore errors during dbproxy shutdown

Running this to see how we're doing on reliable helm tests
count=0; while make undeploy deploy helm-test; do ((count+=1)); done; echo "Command failed after $count successful executions"


Improve functionallity of Table Schema Catalog website

We want to automate the adding-a-new-table-schema-process as much as possible.
The idea is to reduce the steps needed for a new table schemas to be added as much as possible so that it is easier for both contributor and maintainer.
Goal [1]:

adding a new table schema section in the catalog.json and
creating a PR
should be everything the Contributor is expected to do.

Goal [2]:

reviewing + merging the PR and
running a script new-schemas.js
should be everything the Maintainer is expected do.

Goal [3]: everytime when you run the script:

new directory gets added
name of the directory = name of the table schema, low-cased and separated by -
a new README.md gets added to the newly added directory
content gets added to the new README based on the updated catalog.json file
4.1. frontmatter gets automatically generated
4.2. <Schema/> component gets automatically added

Acceptance

[x] a script that for each new table-schema added to the catalog.json

[x] creates new directory
[x] adds README.md
[x] generates frontmatter

[x] the contributor only needs to edit catalog.json and send PR
[x] the maintainer only needs to review and merge the PR and run a script

Tasks

[x] brainstorm on best, easiest and shortest pipeline / adding-a-new-table-schema-process.
--> see description above
[x] write a script in node.js that does the job
[x] test it
[x] push the changes

FIXED.
the script is called new-schemas.js and is in https://github.com/frictionlessdata/schema-catalog/tree/master/site/catalog


react-bootstrap querry  using datetime and station names

Using dropdown and datetime menus to formulate a querry from front-end

Reviewed and looks okay!


Includes temporal measurements

Allows for temporal measurements to be captured if a flag, "report-temporal-data" is specified as "true" in the json config, and a number of temporal measurements, "num-temp-measurements" is given. In this case, the simulation draws that number of random observation times between the start of the epidemic and the present and at each time reports the time, the rzero, the current prevalence and the cumulative infections to date.

Aha, also, we should document the new variables in the config in the config/readme.org file so we have a record of this.


Should use TX TIME LIMIT instead of PACKET LIMIT to control test duration

Discovered a bug in xoa2889 where it uses P_TXPACKETLIMIT to control the test duration. This leads to a similar problem in xoa2544 that when the port speed is high, packet size is small, and duration is large, the packet count value can explode the limit of what P_TXPACKETLIMIT/PS_TXPACKETLIMIT allows. For example, using a 100G port with 64-byte frame size, 30 seconds duration will result in about 4400 million packet, way off the limit of the 32-bit signed integer of the BXMP command.
In 2544, we have stopped using packet limit to control test duration, but only uses time limit. Could you also change 2889 in the same way?

those port rate limit options was base on calculated packets limit, can i convert all of them base on rate fraction?
@leonardhyu

@fpfeng I don't get the question. Let's talk about it in the meeting tmr.


Add support for the latest v37 rustdoc JSON format.

Fascinating, GitHub appears to have merged this PR but not marked it as merged or closed...


duperemove: 0.14 -> 0.14.1

Changes: https://github.com/markfasheh/duperemove/releases/tag/v0.14.1
Description of changes

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

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

1 package built:

duperemove


Changed Insider Builds messaging

Coverage increased (+0.003%) to 61.233% when pulling c1af35126d3075fa57d2dd587c4fdf583d2eafde on waderyan/update-insiders-messaging into 26135c9a308b4d3e77c92f545ac2cd92d36be71c on master.

@waderyan this message is much better!


Allow enabling layers at Device level

Fixes https://github.com/discosultan/VulkanCore/issues/25

Looks good to me on paper; I haven't had a chance to test.

ppEnabledLayerNames is deprecated and ignored.
So this one doesn't make sense tho.
https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/VkDeviceCreateInfo.html

The only reason for the change is to make it possible to define those layers in case someone is targeting a very early version of Vulkan runtime. Note that it's documented as deprecated and also not exposed in the constructor signature.

I see, maybe marking the EnabledLayerCount and EnabledLayerNames with Deprecated attribute would help that approach.

Not a bad idea - the field should be marked with an [Obsolete("Reason")] attribute.


New version: OpenWhisperSystems.Signal version 6.39.1

Pull request has been created with WinGet Automation :rocket:
Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:


[Bug] Weblog links don’t work when using non-weblog.lol routes

#Beta #Software

This now works as intended! Weblogs can be served from weblog.lol or any of the built-in omg.lol routes and all links will function correctly.


Google cloud storage upload not throwing exception when internent conection is lost during upload

Hi, when uploading file to GCS using .NET library, if internet connection is lost, upload just stops and that's it. It would make sense to throw exception if upload has been unresponsive for specified period of time. Could such feature be added to future .NET library versions?

Could you provide a short but complete example of this, including the package and version you're depending on? (There are two storage libraries for .NET - Google.Cloud.Storage.V1, which is a wrapper around Google.Apis.Storage.v1.) Last time I tried something similar (when a different issue was reported) it threw the exception I expected it to.
Note that the ResumableUpload code unfortunately doesn't throw an exception directly - but it returns an IProgress which contains the relevant exception. That can't be changed now, for backward compatibility reasons. But if you use the result of the IProgress appropriately, you should be fine.

This is code I use:
        try
        {
            var cloudObject = new Google.Apis.Storage.v1.Data.Object
            {
                Bucket = "MyBucket"
                Name = "MyFile"
            };
            var memoryStream = new MemoryStream();
            var storage = StorageClient.Create();
            await storage.UploadObjectAsync(cloudObject, memoryStream, options: new UploadObjectOptions { ChunkSize = 4 * 262144 });
        }
        catch (Exception)
        {
            throw;
        }

and package details in the attached picture:

Okay, I'll try to reproduce the error with that code. What exactly do you observe? Does the task just not complete at all (so the await hangs, effectively)?

Yes, my program just hangs on await. Program is fully responsive, but code after await in never executed, it is just waiting for the upload to finish.

Apologies for not coming back to this before. I thought I'd added a comment already, but I must have been distracted. (Or tried to add the comment before re-enabling the network...)
Currently the code you've provided wouldn't compile. It's easy to make it compile, but then it's only uploading an empty object, so it's hard to make the network fail during that upload.
In my tests using your code, if I tried the code without a network connection, it fails immediately.
If you could provide a complete example which genuinely demonstrates the issue, that would really help. Note that you can provide a cancellation token to UploadObjectAsync, so while I would definitely expect it to fail at some point anyway (just due to an underlying HttpClient exception), you can effectively provide your own deadline by providing new CancellationTokenSource(TimeSpan.FromMinutes(1)).Token, for example.

Any more information about this? Without more information I'm afraid we won't be able to proceed any further - I'll close the issue if we haven't heard anything by the end of the week.

Closed due to lack of further information. We can reopen if we get more information.

Hello,  I can attest to the same behavior when uploading files to GCS. If I try to upload file without network connection, code fails immediately, however if I disconnect from network in the middle of upload, it just freezes on await, no exception is thrown. (In some case it throws WebException, but it happens after 5-10, sometimes even more minutes.) I would like to know if it is normal behavior or there is some setting that could be used to control after how long inactive period task should be cancelled. Yes, I read your reply about providing my own CancellationTokenSource , but I would first like to address the underlying issue to see if it can be solved. I can provide full working example if you need. Also, this is my first post here and I am not sure if I this issue can be reopened or I need to add new issue?

@matsCacka If you can provide us with the minimum full working example that'd be great. We can try to reproduce. I'm reopenning for the time being becuse it does seem to be exactly the same behaviour initially described.

@amanda-tarafa, hi, I have attached small sample, please change file path to some file on your system and try to disconnect from network in the middle of the upload.
GcsSample.zip
.

Thanks, looking into it, I'll report back here when I know more.

@matsCacka I haven't been able to reproduce this issue nor by using your code, or very similar code on a console app instead of WPF. What I've done:

I'm uploading a ~17 MB file that uploads fine when I don't cut the internet connection (by pulling the cable) in roughly 4 minutes.
If I pull the cable and then start either your WPF app or my Console app, it fails inmediately after with the following exception:

System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote name could not be resolved: 'oauth2.googleapis.com'
   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
   at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---
   at Google.Cloud.Storage.V1.StorageClientImpl.UploadHelper.CheckFinalProgress() in /_/apis/Google.Cloud.Storage.V1/Google.Cloud.Storage.V1/StorageClientImpl.UploadObject.cs:line 198
   at Google.Cloud.Storage.V1.StorageClientImpl.UploadHelper.<ExecuteAsync>d__7.MoveNext() in /_/apis/Google.Cloud.Storage.V1/Google.Cloud.Storage.V1/StorageClientImpl.UploadObject.cs:line 174
--- End of stack trace from previous location where exception was thrown ---

With both WPF and console apps, if I pull the cable after the upload has started, either roughly at the beginning, the middle or the end of the upload, it always fails in less that 1minute with the following exception:

System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote name could not be resolved: 'storage.googleapis.com'
   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
   at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---
   at Google.Cloud.Storage.V1.StorageClientImpl.UploadHelper.CheckFinalProgress() in /_/apis/Google.Cloud.Storage.V1/Google.Cloud.Storage.V1/StorageClientImpl.UploadObject.cs:line 198
   at Google.Cloud.Storage.V1.StorageClientImpl.UploadHelper.<ExecuteAsync>d__7.MoveNext() in /_/apis/Google.Cloud.Storage.V1/Google.Cloud.Storage.V1/StorageClientImpl.UploadObject.cs:line 174
--- End of stack trace from previous location where exception was thrown ---

This is the expected behaviour in all cases.
As a side, a note about your test code: You don't need to read the file into a MemoryStream and pass that to the UploadObjectAsync method. You can pass the FileStream directly:
using (var file = File.OpenRead(@"your-file-path"))
{
    var storage = StorageClient.Create();
    await storage.UploadObjectAsync(cloudObject, file);
}

Unless you can provide more information that helps us reproduce this issue, there's little we can do.

@matsCacka, This issue might actually be down to Windows version, network card, or some other environment factors. Have you tried running that sample app in different environments? Does it consistently hangs for you? Could you try posting the file without using the library, directly using an HttpClient, pulling the cable and seeing if that fails or hangs?
If that's the case, there's not much we can do at the client library side, we rely on the HttpClient reaction to the lack of connectivity, if for some reason, HttpClient is not throwing then we can't tell that something went wrong. Using a cancellation token as @jskeet suggested in this previous comment might really be the cleanest solution for you.

@matsCacka I'll close this issue now since we strongly suspect this is not a problem with the client library but with the environment your app is being run in. Do please add a new comment if you think otherwise.


increasing code coverage issue #46

TODO

[x] Use cargo fmt
[x] Add necessary tests
[x] Add changelog entry
[x] Update default config/theme in README (if applicable)
[x] Update man page at lsd/doc/lsd.md (if applicable)

hi @michabs, thanks for contributing, you code seems not passing the test, you can run test locally by

Shalom.
I know.
I was wondering if you can assist me with this issue:
trying to write a test that set the color of colorstring from Color
This is a code snippet
let colors = Colors::new(color::ThemeOption::Default);
assert_eq!(
" directory".to_string().with(colors. <???> ),
10x
On Thu, Jul 13, 2023 at 6:34 AM Wei Zhang @.***> wrote:

hi @michabs https://github.com/michabs, thanks for contributing, you
code seems not passing the test, you can run test locally by
—
Reply to this email directly, view it on GitHub
https://github.com/lsd-rs/lsd/pull/862#issuecomment-1633496061, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAZXNWKA6G7FADEFYLT2E43XP5UD5ANCNFSM6AAAAAAZTEM2XA
.
You are receiving this because you were mentioned.Message ID:
@.***>

hi @michabs, sorry for the late reply, please feel free to ask any questions.
you can refer to https://github.com/lsd-rs/lsd/blob/master/src/color.rs#L204C12-L204C20 and use it like https://github.com/lsd-rs/lsd/blob/8acaabec723cdd71b498212c8a47ac952d022738/src/meta/symlink.rs#L60,
or refer to https://github.com/lsd-rs/lsd/blob/8acaabec723cdd71b498212c8a47ac952d022738/src/meta/symlink.rs#L59C2-L59C2 to create a ColoredString directly.
please let me know if I misunderstood your question or if it did not help.


patch riak k8s riak config to pass all riak replicas to the DLService

… (instead of just the service name)
This patch passes all riak replica addresses to the DataLayerService, so that it can form its own cluster view with those replicas.
Currently, the riak service URL is passed to the DataLayerService, such that its cluster view consists of only a single riak node. As a result, it falls back to eventual consistency instead of going for strong consistency for KV pairs.

Thanks!
For the headless service part, riak.yaml spec already has "ClusterIP: None". On the other hand, datalayer.yaml does not have that. Did you mean that it should be removed?

Thanks!
I agree that the scaling problems will still persist. This is only supposed to ensure that the DLService starts aware of all the riak replicas so that it can choose the consistency model.
I think we should handle the scaling up/down riak/DLService as a separate issue.

Ok, I didn't see that part; I'll add it.
That said, for the datalayer, the service name is always "datalayer". Shouldn't we also make it depend on the ?

The riak changes look fine.
Regarding the "datalayer" service name change to include release name. This will require changes to atleast 3 to 4 files. I would suggest we handle that in a separate issue.

Great, thanks!
I'll merge this now.


Sentry not working in Flutter Web

I added the Sentry as per the documentation in my code.
https://pub.dev/packages/sentry_flutter
Flutter version 2.10.0

If I give the project DNS (URL) then the app won't start correctly and keep loading.
If I do not give any project DNS (URL) as an empty string it works perfectly for me.

Please provide a solution so I can run Flutter web with the sentry.

@vinay416 https://getsentry.github.io/sentry-dart/ is deployed on every release and it works just fine, mind providing logs or more context? SDK code snippet?
Also please update your bug report with the bug template https://github.com/getsentry/sentry-dart/issues/new?assignees=&labels=&template=BUG_REPORT.md

@marandaneto Can you please your code snippet for sentry flutter web?

@marandaneto Can you please your code snippet for sentry flutter web?

This is the repo and it's open-source.

Please provide a minimal reproducible example in case there's something wrong, and I will happily reopen the issue.


Allow ingress routes for hostnames without a TLD defined

Describe the solution you'd like
I'd like to be able to create an ingress route with a simple hostname, (instead of|as well as) a fully qualified domain name.
For example, assigning an ingress route on any of the following names:
g
grafana
grafana.example.com

This is useful for services on a local LAN with a search domain configured because Envoy won't respond for services if the fully qualified name doesn't match exactly, and in a search path lookup, the TLD is not appended to the request.
Anything else you would like to add:
The following CRD validator seems to work as I'd like and preserves the current validation logic:
fqdn:
  type: string
  pattern: ^([a-zA-Z0-9]{1,})$|^([a-zA-Z0-9]+(-[a-zA-Z0-9]+)*\.)+[a-z]{2,}$

It also manages to not crash the API server, which is ... um... better than previous experiments.
Environment:

Contour version: 0.6.0
Kubernetes version: (use kubectl version): v1.12.1
Kubernetes installer & version: kubeadm v1.12.1
Cloud provider or hardware configuration: homelab mixed amd64 and arm32/64.
OS (e.g. from /etc/os-release):
NAME="Ubuntu"
VERSION="18.04.1 LTS (Bionic Beaver)"

Thank you for your request. I believe I understand what you are asking for.
The concern I have with this approach is not the complexity of regex, that's the callers decision, but the differences between regex implementations.
For example, few know that the ingress.http.path spec is actually a regex; and its scoped to be a javascript style regex. Envoy also supports a pattern matcher but it is a different regex implementation for which 90% of the time the differences are not important, until they are because it does something strange.
I don't want to expose regexes where I don't have to because that will also mean specifying a regex dialect, and that ties us to Envoy's pattern matcher very closely and really paints us into a corner if Envoy ever decide to change their regex engine -- heck, maybe they fix a bug and we have users who using the previous behaviour.
Can we come up with some other simple pattern language that will suffice? Would *.yourcomain.com work for you?

Understood and acknowledged. I had to brush up on the various implementation differences to come up with the suggestion, so I immediately started to share the concern.
I'm not sure I totally understand your suggestion, but I think you're recommending something like {myhost}.mydomain.int as the value of fqdn, and use {myhost} as the hostname for an additional envoy 'cluster'* config?
If so, the config would be simpler. And even if it's opt in behavior, it would be easier to maintain. So SGTM.

??? I forget envoy's terms

What it sounds like you're asking for is the alias feature we removed from
the ingressroute document just before 0.6.
In a sentence, aliases let you add extra host names for a single ingress
route root. This used to be an extra field on the vhost spec, but was
removed in favor of using delegation,
https://github.com/heptio/contour/blob/master/docs/ingressroute.md#virtualhost-aliases
On 14 October 2018 at 12:55, Joseph Bironas<EMAIL_ADDRESS>wrote:

Understood and acknowledged. I had to brush up on the various
implementation differences to come up with the suggestion, so I immediately
started to share the concern.
I'm not sure I totally understand your suggestion, but I think you're
recommending something like {myhost}.mydomain.int as the value of fqdn,
and use {myhost} as the hostname for an additional envoy 'cluster'*
config?
If so, the config would be simpler. And even if it's opt in behavior, it
would be easier to maintain. So SGTM.

??? I forget envoy's terms

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/heptio/contour/issues/755#issuecomment-429589739, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAAcA-HvvfVRxH-GORQtPiIaHhDhtBE4ks5ukpmJgaJpZM4Xa1bm
.

Taking a brief look through the PRs that removed aliases -- on the surface it looks like they were using a pattern similar to the fqdn validator. That would limit their usefulness for the "hostname without a TLD" use case.

I'm sorry, I think I misunderstood your original request. My apologies.
What I believe you are asking for is a modification to the crd validation
rules. This seems reasonable.
On 14 October 2018 at 15:31, Joseph Bironas<EMAIL_ADDRESS>wrote:

Taking a brief look through the PRs that removed aliases -- on the surface
it looks like they were using a pattern similar to the fqdn validator.
That would limit their usefulness for the "hostname without a TLD" use case.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/heptio/contour/issues/755#issuecomment-429595768, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAAcAypEsqfBxiAUmfQOg-_GuTCt4zsjks5ukr4PgaJpZM4Xa1bm
.

/cc @youngnick I think this is a similar issue to #1117. If you can look at adjusting the validation to allow a single [a-z]+ without a trailing period that should be fine.
@josebiro as a workaround you can edit the CRD validation to remove the the regex, we’ll take whatever you publish to the FQDN field and pass to Envoy, it’s your responsibility that that hostname makes sense in your environment.


Popeye Scanner Parser addition.

Description
This feature adds Popeye scanner parser. For more information about the parser, please take a look to the related documentation.
Documentation
Documentation included in docs/content/en/integrations/parsers/file/popeye.md
Checklist

[x] Features/Changes should be submitted against the dev.
[x] Your code is flake8 compliant.
[x] Your code is python 3.11 compliant.
[x] If this is a new feature and not a bug fix, you've included the proper documentation in the docs at https://github.com/DefectDojo/django-DefectDojo/tree/dev/docs as part of this PR.
[x] Add applicable tests to the unit tests.

Looking for some more approvals on this - it's been sitting a while @cneill @blakeaowens

@damiencarol Are you good with this?