Most features stopped working on 2021.3.3

Issue Type: Bug
symbol under cursor is not highlighted, autocompletion is "Loading..." forever, if False blocks are not greyed out, etc.
i can't find any remotely relevant error messages in any of the logs, so let's hope the autoreporter attaches something useful
downgrading to 2021.3.2 restores all functionality
Extension version: 2021.3.2
VS Code version: Code 1.54.3 (2b9aebd5354a3629c3aba0a5f5df49f43d6689f8, 2021-03-15T10:55:24.277Z)
OS version: Linux x64 5.4.0-70-generic

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 2800)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offopengl: enabled_onprotected_video_decode: unavailable_offrasterization: disabled_softwareskia_renderer: enabled_onvideo_decode: disabled_softwarevulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
1, 2, 1

Memory (System)
15.53GB (7.19GB free)

Process Argv
. --no-sandbox --crash-reporter-id 0fa4fd55-8423-48c9-a007-bdcaf5801901

Screen Reader
no

VM
0%

DESKTOP_SESSION
mate

XDG_CURRENT_DESKTOP
MATE

XDG_SESSION_DESKTOP
mate

XDG_SESSION_TYPE
x11

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
pythonvspyt700cf:30270857
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry244:30276681
pythonvsdeb440:30248342
pythonvsded773:30248341
pythonvspyt875:30259475
pythonvsnew554cf:30281909
pythontbcf:30265426
pythonvspyt943:30280189
openwslfolder:30282073
vspre833:30267464
pythonptprofiler:30281270
vshan820:30276952

I faced the same issue with 2021.3.3, pylance has stopped working

Without the trace logs our bug template asks for, it's not really possible to look into this. Can you please enable trace logging and attach the logs?
See https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#filing-an-issue for a copy of the instructions.

well i should have known to do that ... but the bug reporter from inside vscode does not show the template. Would it be possible to do something about it?
Anyway, unfortunately these logs don't show anything particularly interesting either:
language server trace log
[Info  - 10:31:08] Pylance language server 2021.3.3 (pyright be28f16e) starting
[Info  - 10:31:08] Server root directory: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.3/dist
[Info  - 10:31:08] No configuration file found.
[Info  - 10:31:08] Setting pythonPath for service "trezor-firmware": "/home/matejcik/projekty/prace/trezor-firmware/.venv/bin/python"
Search paths found for configured python interpreter:
  /usr/lib/python3.8
  /usr/lib/python3.8/lib-dynload
  /home/matejcik/projekty/prace/trezor-firmware/.venv/lib/python3.8/site-packages
  /home/matejcik/projekty/prace/trezor-firmware/python/src
[Warn  - 10:31:08] stubPath /home/matejcik/projekty/prace/trezor-firmware/typings is not a valid directory.
[Info  - 10:31:08] Assuming Python version 3.8
[Info  - 10:31:08] Assuming Python platform Linux
[Info  - 10:31:08] Searching for source files
[Info  - 10:31:08] Auto-excluding /home/matejcik/projekty/prace/trezor-firmware/.venv
[Info  - 10:31:09] Auto-excluding /home/matejcik/projekty/prace/trezor-firmware/python/.tox/py36
[Info  - 10:31:09] Auto-excluding /home/matejcik/projekty/prace/trezor-firmware/python/.tox/py37
[Info  - 10:31:09] Auto-excluding /home/matejcik/projekty/prace/trezor-firmware/python/.tox/py38
[Info  - 10:31:09] Auto-excluding /home/matejcik/projekty/prace/trezor-firmware/python/.tox/py39
[Info  - 10:31:09] Background analysis(1) root directory: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.3/dist
[Info  - 10:31:09] Background analysis(1) started
Background analysis message: setConfigOptions
IntelliCode model /home/matejcik/.vscode/extensions/visualstudioexptteam.vscodeintellicode-1.2.12/cache/E61945A9A512ED5E1A3EE3F1A2365B88F8FE_E4E9EADA96734F01970E616FAB2FAC19
Loading ONNX runtime...
Loaded ONNX runtime. Creating IntelliCode session...
2021-03-31 09:31:09.979405470 [I:onnxruntime:, inference_session.cc:226 operator()] Flush-to-zero and denormal-as-zero are off
2021-03-31 09:31:09.979475391 [I:onnxruntime:, inference_session.cc:233 ConstructorCommon] Creating and using per session threadpools since use_per_session_threads_ is true
2021-03-31 09:31:10.007574234 [I:onnxruntime:, inference_session.cc:1107 Initialize] Initializing session.
2021-03-31 09:31:10.007600251 [I:onnxruntime:, inference_session.cc:1132 Initialize] Adding default CPU execution provider.
2021-03-31 09:31:10.010721777 [I:onnxruntime:, reshape_fusion.cc:37 ApplyImpl] Total fused reshape node count: 0
2021-03-31 09:31:10.011190730 [I:onnxruntime:, reshape_fusion.cc:37 ApplyImpl] Total fused reshape node count: 0
2021-03-31 09:31:10.018129962 [V:onnxruntime:, inference_session.cc:893 TransformGraph] Node placements
2021-03-31 09:31:10.018151589 [V:onnxruntime:, inference_session.cc:895 TransformGraph] All nodes have been placed on [CPUExecutionProvider].
2021-03-31 09:31:10.018330017 [V:onnxruntime:, session_state.cc:76 CreateGraphInfo] SaveMLValueNameIndexMapping
2021-03-31 09:31:10.018382503 [V:onnxruntime:, session_state.cc:122 CreateGraphInfo] Done saving OrtValue mappings.
2021-03-31 09:31:10.018654831 [I:onnxruntime:, session_state_utils.cc:103 SaveInitializedTensors] Saving initialized tensors.
2021-03-31 09:31:10.018731533 [I:onnxruntime:, session_state_utils.cc:177 SaveInitializedTensors] [Memory] SessionStateInitializer statically allocates 35748096 bytes for Cpu

2021-03-31 09:31:10.039429764 [I:onnxruntime:, session_state_utils.cc:219 SaveInitializedTensors] Done saving initialized tensors
2021-03-31 09:31:10.041757392 [I:onnxruntime:, inference_session.cc:1282 Initialize] Session successfully initialized.
Created IntelliCode session.

fwiw i tried to toggle different Python interpreters, nothing helped either

for comparison, here is a working log from 2021.3.2.
this line is conspicuously missing from the new one; presumably things stop at that
[Info  - 10:34:23] Found 4792 source files

pylance 2021.3.2 trace log
[Info  - 10:34:22] Pylance language server 2021.3.2 (pyright 85309906) starting
[Info  - 10:34:22] Server root directory: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist
[Info  - 10:34:22] No configuration file found.
[Info  - 10:34:22] Setting pythonPath for service "trezor-firmware": "/home/matejcik/projekty/prace/trezor-firmware/.venv/bin/python"
Search paths found for configured python interpreter:
  /usr/lib/python3.8
  /usr/lib/python3.8/lib-dynload
  /home/matejcik/projekty/prace/trezor-firmware/.venv/lib/python3.8/site-packages
  /home/matejcik/projekty/prace/trezor-firmware/python/src
[Error - 10:34:22] stubPath /home/matejcik/projekty/prace/trezor-firmware/typings is not a valid directory.
[Info  - 10:34:22] Assuming Python version 3.8
[Info  - 10:34:22] Assuming Python platform Linux
[Info  - 10:34:22] Searching for source files
[Info  - 10:34:22] Auto-excluding /home/matejcik/projekty/prace/trezor-firmware/.venv
[Info  - 10:34:23] Auto-excluding /home/matejcik/projekty/prace/trezor-firmware/python/.tox/py36
[Info  - 10:34:23] Auto-excluding /home/matejcik/projekty/prace/trezor-firmware/python/.tox/py37
[Info  - 10:34:23] Auto-excluding /home/matejcik/projekty/prace/trezor-firmware/python/.tox/py38
[Info  - 10:34:23] Auto-excluding /home/matejcik/projekty/prace/trezor-firmware/python/.tox/py39
[Info  - 10:34:23] Found 4792 source files
[Info  - 10:34:23] Background analysis(1) root directory: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist
[Info  - 10:34:23] Background analysis(1) started
Background analysis message: setConfigOptions
Background analysis message: setTrackedFiles
IntelliCode model /home/matejcik/.vscode/extensions/visualstudioexptteam.vscodeintellicode-1.2.12/cache/E61945A9A512ED5E1A3EE3F1A2365B88F8FE_E4E9EADA96734F01970E616FAB2FAC19
Background analysis message: markAllFilesDirty
Background analysis message: ensurePartialStubPackages
Background analysis message: setFileOpened
Background analysis message: getSemanticTokens full
[BG(1)] getSemanticTokens full at /home/matejcik/projekty/prace/trezor-firmware/core/src/trezor/utils.py ...
[BG(1)]   parsing: /home/matejcik/projekty/prace/trezor-firmware/core/src/trezor/utils.py (67ms)
[BG(1)]   parsing: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 4ms] (137ms)
[BG(1)]   binding: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/builtins.pyi (46ms)
[BG(1)]   binding: /home/matejcik/projekty/prace/trezor-firmware/core/src/trezor/utils.py (5ms)
[BG(1)]   parsing: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/gc.pyi [fs read 0ms] (8ms)
[BG(1)]   binding: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/gc.pyi (1ms)
[BG(1)]   parsing: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/sys.pyi [fs read 0ms] (8ms)
[BG(1)]   binding: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/sys.pyi (4ms)
[BG(1)]   parsing: /home/matejcik/projekty/prace/trezor-firmware/core/mocks/generated/trezorutils.pyi [fs read 0ms] (2ms)
[BG(1)]   binding: /home/matejcik/projekty/prace/trezor-firmware/core/mocks/generated/trezorutils.pyi ...
[BG(1)]     parsing: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/typing.pyi [fs read 0ms] (31ms)
[BG(1)]     binding: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/typing.pyi (19ms)
[BG(1)]   binding: /home/matejcik/projekty/prace/trezor-firmware/core/mocks/generated/trezorutils.pyi (51ms)
[BG(1)]   parsing: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi [fs read 0ms] (18ms)
[BG(1)]   binding: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi (2ms)
[BG(1)]   parsing: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stubs/typing-extensions/typing_extensions.pyi [fs read 0ms] (5ms)
[BG(1)]   binding: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stubs/typing-extensions/typing_extensions.pyi (5ms)
[BG(1)]   parsing: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/abc.pyi [fs read 0ms] (4ms)
[BG(1)]   binding: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/abc.pyi (1ms)
[BG(1)]   parsing: /home/matejcik/projekty/prace/trezor-firmware/core/mocks/uos.pyi [fs read 0ms] (0ms)
[BG(1)]   binding: /home/matejcik/projekty/prace/trezor-firmware/core/mocks/uos.pyi (1ms)
[BG(1)]   parsing: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/types.pyi [fs read 0ms] (28ms)
[BG(1)]   binding: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/types.pyi (8ms)
[BG(1)]   parsing: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/_importlib_modulespec.pyi [fs read 0ms] (2ms)
[BG(1)]   binding: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/_importlib_modulespec.pyi (1ms)
[BG(1)]   parsing: /home/matejcik/projekty/prace/trezor-firmware/core/mocks/micropython.pyi [fs read 1ms] (3ms)
[BG(1)]   binding: /home/matejcik/projekty/prace/trezor-firmware/core/mocks/micropython.pyi (0ms)
[BG(1)] getSemanticTokens full at /home/matejcik/projekty/prace/trezor-firmware/core/src/trezor/utils.py (616ms)
Background analysis message: getSemanticTokens range
Loading ONNX runtime...
Loaded ONNX runtime. Creating IntelliCode session...
2021-03-31 09:34:24.804706327 [I:onnxruntime:, inference_session.cc:226 operator()] Flush-to-zero and denormal-as-zero are off
2021-03-31 09:34:24.804774259 [I:onnxruntime:, inference_session.cc:233 ConstructorCommon] Creating and using per session threadpools since use_per_session_threads_ is true
2021-03-31 09:34:24.831947705 [I:onnxruntime:, inference_session.cc:1107 Initialize] Initializing session.
2021-03-31 09:34:24.831976102 [I:onnxruntime:, inference_session.cc:1132 Initialize] Adding default CPU execution provider.
2021-03-31 09:34:24.835085434 [I:onnxruntime:, reshape_fusion.cc:37 ApplyImpl] Total fused reshape node count: 0
2021-03-31 09:34:24.835569873 [I:onnxruntime:, reshape_fusion.cc:37 ApplyImpl] Total fused reshape node count: 0
2021-03-31 09:34:24.842620703 [V:onnxruntime:, inference_session.cc:893 TransformGraph] Node placements
2021-03-31 09:34:24.842636391 [V:onnxruntime:, inference_session.cc:895 TransformGraph] All nodes have been placed on [CPUExecutionProvider].
2021-03-31 09:34:24.842793846 [V:onnxruntime:, session_state.cc:76 CreateGraphInfo] SaveMLValueNameIndexMapping
2021-03-31 09:34:24.842843568 [V:onnxruntime:, session_state.cc:122 CreateGraphInfo] Done saving OrtValue mappings.
2021-03-31 09:34:24.843122028 [I:onnxruntime:, session_state_utils.cc:103 SaveInitializedTensors] Saving initialized tensors.
2021-03-31 09:34:24.843206822 [I:onnxruntime:, session_state_utils.cc:177 SaveInitializedTensors] [Memory] SessionStateInitializer statically allocates 35748096 bytes for Cpu

2021-03-31 09:34:24.863334846 [I:onnxruntime:, session_state_utils.cc:219 SaveInitializedTensors] Done saving initialized tensors
2021-03-31 09:34:24.865116699 [I:onnxruntime:, inference_session.cc:1282 Initialize] Session successfully initialized.
Created IntelliCode session.
[BG(1)] getSemanticTokens range 31:0 - 145:23 at /home/matejcik/projekty/prace/trezor-firmware/core/src/trezor/utils.py (11ms)
Background analysis message: analyze
[BG(1)] analyzing: /home/matejcik/projekty/prace/trezor-firmware/core/src/trezor/utils.py ...
[BG(1)]   checking: /home/matejcik/projekty/prace/trezor-firmware/core/src/trezor/utils.py (49ms)
[BG(1)] analyzing: /home/matejcik/projekty/prace/trezor-firmware/core/src/trezor/utils.py (49ms)
Background analysis message: resumeAnalysis
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
[FG] parsing: /home/matejcik/projekty/prace/trezor-firmware/core/src/trezor/utils.py (105ms)
[FG] parsing: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 6ms] (168ms)
[FG] binding: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/builtins.pyi (51ms)
[FG] binding: /home/matejcik/projekty/prace/trezor-firmware/core/src/trezor/utils.py (7ms)
[FG] parsing: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi [fs read 1ms] (26ms)
[FG] binding: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi (3ms)
[FG] parsing: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/typing.pyi [fs read 3ms] (53ms)
[FG] binding: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/typing.pyi (11ms)
[FG] parsing: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stubs/typing-extensions/typing_extensions.pyi [fs read 2ms] (5ms)
[FG] binding: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stubs/typing-extensions/typing_extensions.pyi (1ms)
[FG] parsing: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/sys.pyi [fs read 0ms] (9ms)
[FG] binding: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/sys.pyi (8ms)
[FG] parsing: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/types.pyi [fs read 0ms] (21ms)
[FG] binding: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/types.pyi (4ms)
[FG] parsing: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/_importlib_modulespec.pyi [fs read 0ms] (1ms)
[FG] binding: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/_importlib_modulespec.pyi (1ms)
[FG] parsing: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/abc.pyi [fs read 0ms] (1ms)
[FG] binding: /home/matejcik/.vscode/extensions/ms-python.vscode-pylance-2021.3.2/dist/typeshed-fallback/stdlib/abc.pyi (0ms)
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange

in general, yes. In python sources, I don't think so but I'll need to verify

Given the large number of files, are you running pylance in workspace mode, as opposed to the default openFilesOnly mode?
There may be a fix that affects you in today's release, but there may be another lurking symlink issue. It doesn't really matter what the symlink is, we're likely going to encounter it during import resolution, file scanning, etc. I'm guessing there's some broken link or other strange problem that's breaking the file scanning.

Can you retry with 2021.3.4, which we've just released?

I confirm a similar problem on 2021.3.4 in openFilesOnly mode
My workspace contains a symlink to huge folder with notebooks (ln -s /some/path notebooks) and it hangs Pylance. Last 2 messages in the log are:
[Info  - 7:58:20 AM] Searching for source files
[Warn  - 7:58:28 AM] Skipping recursive symlink "/home/akhti/src/rep/notebooks/hey/root/bin/X11" -> "/usr/bin"

A few additional data points:

It works if I delete the symlink
Adding **/notebooks to all excludes (files.exclude, search.exclude) doesn't help
Setting "search.followSymlinks": false doesn't help

Can you retry with 2021.3.4, which we've just released?

2021.3.4 fixes the problem for me.
for the record, i'm in the default openFilesOnly mode

For me as well 2021.3.4 fixes the issue with pylance

Thanks for confirming the fix.
@akhti That doesn't seem like exactly the same issue; it appears as though you have a symlink to /usr itself... I can't see that being what you intended.
Those "excludes" and "search" settings are for VS Code itself, and are not used for any analysis options. I'm not aware of any LS that reuses VS Code's UI/search options for its own configuration.
Can you try creating a pyrightconfig.json in your project and configure excludes there? See https://github.com/microsoft/pyright/blob/master/docs/configuration.md for info.
I'm sort of surprised we search for source files when in openFilesOnly mode, honestly. I'd think we'd avoid that step and rely on file opens to look for things, and that sounds like a bug to me.
Would you consider filing a new issue with your case so we can treat it separately? It sounds like those who reported this issue originally are fixed, so I want to be able to handle your case and close this.

@jakebailey adding excludes to pyrightconfig.json helped. Thanks a ton!

I'm sort of surprised we search for source files when in openFilesOnly mode, honestly. I'd think we'd avoid that step and rely on file opens to look for things, and that sounds like a bug to me.

This is by design, not a bug. We need that to do "find all references", "go to symbols in workspace", auto-import, etc. We need to understand what files comprise the project.

I think we may want to look into that in the future for improvement, then. MPLS was lazy in that when you tried to find references, it'd do a scan of files in the workspace for files containing the string you were referring to, and then ensure they are open and present in the analysis. That's potentially better, though doesn't really fix the "I symlinked /usr" case.
Symbols/auto-import we get from indexing, and use the analysis data if present. Not so much in pyright, though.
In any case, the original issue here is fixed, so I'll close this.

Symbols/auto-import we get from indexing

Indexing relies on understanding which files are in the project too, so I don't see any way that we can get around this scan. It's a very cheap thing to do (assuming we've eliminated symlink bugs that result in infinite loops :) ). It normally takes a fraction of a second even for large code bases, so I don't worry about doing it upfront.


BUG: POST a callback with 2nd webhook or queue results in 500

Describe the bug
The POST {{notification-api-url}}/service/{{service-id}}/callback route returns a 500 Internal Server error when trying to add a second type of callback_channel to a service that already has that type of callback.The service should return a proper type of error message stating that you can have one "callback_channel": "webhook" and one "callback_channel": "queue" per service. You can have one of each, but you cannot have two or more of either.
To Reproduce
Steps to reproduce the behavior:
On a service that already has a callback with "callback_channel": "webhook"

Use Postman to exercise the route POST {{notification-api-url}}/service/{{service-id}}/callback with a "callback_channel": "webhook" in the payload
See response from the route that is a 500 Internal Server Error

Repeat with callback_channel as queue for a service that already has one.
Expected behavior
I expect that when we know why a route would not create an object, that we would return an appropriate http status code (409? 403?) and error message, such as "A webhook already exists for this service" or similar.
GIVEN a service already has a webhook/queue callback configured
WHEN you try to add the same type of callback to the same service via the POST {{notification-api-url}}/service/{{service-id}}/callback in postman
THEN I should receive the applicable error code and a descriptive error message of the issue
SO I understand that this is not an acceptable configuration option

@cris-oddball Can you give this a title please?

Initial review passed, PM review completed. I added and AC statement to the ticket. No further questions.

@cris-oddball I would think we need this ticket to have the QA label on it, right? To validate the error is returned as expected and nothing else is impacted?

Hey team! Please add your planning poker estimate with Zenhub @cris-oddball @EvanParish @ianperera @jakehova @justaskdavidb2 @k-macmillan @kalbfled @ldraney

Applicable work to enp-api.


will not deploy to heroku

will not deploy to heroku - working on fixing /debugging/ finding out why

note - multiple deploys and assistance was sought from all 4 tutors and our instructional team.  I did a lot of research on this myself.


Use clang's effective llvm triple for IR generation

Instead of using the target that was passed to the driver. Use the target from
the clang importer that might have been changed by clang (i.e armv7 to thumbv7
on darwin)
rdar://32599805

@swift-ci Please test

Build failed
Swift Test OS X Platform
Git Sha - 2d58f08142fa075820388f755aef5419af23e752

Build failed
Swift Test Linux Platform
Git Sha - 2d58f08142fa075820388f755aef5419af23e752

stdlib/NSStringAPI+Substring.swift also failed here https://ci.swift.org/job/oss-swift-pr-test/1229/

@swift-ci Please smoke test os x

@swift-ci Please smoke test linux

@swift-ci Please test source compatibility


How to enable LAN connections to socks5 server on windows client? 中文回答也行

Hey guys!
I'm trying to allow my LAN devices to connect to my hysteria client (windows10-64) over socks.
With the default socks config:
"socks:" listen <IP_ADDRESS>:1080
The socks server only works locally.
With the address changed to the local IP
"socks:" listen <IP_ADDRESS>:1080
It works but with tons of errors (EOF errors and socks errors).
I also tried socks_outbound and bind_outbound but these parameters are ignored by the client. I'm running the 1.3.2 amd64 client.
What's the right way to enable lan connections on windows? (I'd rather not use v2rayN because I'm already using it doing something else. Besides, what's the point of daisy chaining socks5 proxies anyway?)
Thanks!

تعديل عنوان الاستماع إلى 0: 0: 0: 0
Jan 19, 2023 18:25:32 alcatraz-zz @.***>:

Hey guys!
I'm trying to allow my LAN devices to connect to my hysteria client (windows10-64) over socks.
With the default socks config:
"socks:" listen <IP_ADDRESS>:1080
The socks server only works locally.
With the address changed to the local IP
"socks:" listen <IP_ADDRESS>:1080
It works but with tons of errors (EOF errors and socks errors).
I also tried socks_outbound and bind_outbound but these parameters are ignored by the client. I'm running the 1.3.2 amd64 client.
What's the right way to enable lan connections on windows? (I'd rather not use v2rayN because I'm already using it doing something else. Besides, what's the point of daisy chaining socks5 proxies anyway?)
Thanks!
—
Reply to this email directly, view it on GitHub[https://github.com/apernet/hysteria/issues/551], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AKGBAYCGPMPUKDMJOMQFTRDWTEJBXANCNFSM6AAAAAAUAEXOQU].
You are receiving this because you are subscribed to this thread.[Tracking image][https://github.com/notifications/beacon/AKGBAYHUWN2DYWMCLG7S5B3WTEJBXA5CNFSM6AAAAAAUAEXOQWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHFYUQHTA.gif]

تعديل عنوان الاستماع إلى 0: 0: 0: 0 Jan 19, 2023 18:25:32 alcatraz-zz @.***>:
…
Hey guys! I'm trying to allow my LAN devices to connect to my hysteria client (windows10-64) over socks. With the default socks config: "socks:" listen <IP_ADDRESS>:1080 The socks server only works locally. With the address changed to the local IP "socks:" listen <IP_ADDRESS>:1080 It works but with tons of errors (EOF errors and socks errors). I also tried socks_outbound and bind_outbound but these parameters are ignored by the client. I'm running the 1.3.2 amd64 client. What's the right way to enable lan connections on windows? (I'd rather not use v2rayN because I'm already using it doing something else. Besides, what's the point of daisy chaining socks5 proxies anyway?) Thanks! — Reply to this email directly, view it on GitHub[#551], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AKGBAYCGPMPUKDMJOMQFTRDWTEJBXANCNFSM6AAAAAAUAEXOQU]. You are receiving this because you are subscribed to this thread.[Tracking image][https://github.com/notifications/beacon/AKGBAYHUWN2DYWMCLG7S5B3WTEJBXA5CNFSM6AAAAAAUAEXOQWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHFYUQHTA.gif]

Thank you for replying. I don't quite understand. Do you mean?
"socks" ( "listen" = <IP_ADDRESS>:1080

🤫 you got it
Jan 19, 2023 22:38:09 alcatraz-zz @.***>:

تعديل عنوان الاستماع إلى 0: 0: 0: 0 Jan 19, 2023 18:25:32 alcatraz-zz<EMAIL_ADDRESS>…[#]
Hey guys! I'm trying to allow my LAN devices to connect to my hysteria client (windows10-64) over socks. With the default socks config: /"socks:" listen <IP_ADDRESS>:1080/ The socks server only works locally. With the address changed to the local IP /"socks:" listen <IP_ADDRESS>:1080/ It works but with tons of errors (EOF errors and socks errors). I also tried /socks_outbound/ and /bind_outbound/ but these parameters are ignored by the client. I'm running the 1.3.2 amd64 client. What's the right way to enable lan connections on windows? (I'd rather not use v2rayN because I'm already using it doing something else. Besides, what's the point of daisy chaining socks5 proxies anyway?) Thanks! — Reply to this email directly, view it on GitHub[#551[https://github.com/apernet/hysteria/issues/551]], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AKGBAYCGPMPUKDMJOMQFTRDWTEJBXANCNFSM6AAAAAAUAEXOQU]. You are receiving this because you are subscribed to this thread.[Tracking image][https://github.com/notifications/beacon/AKGBAYHUWN2DYWMCLG7S5B3WTEJBXA5CNFSM6AAAAAAUAEXOQWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHFYUQHTA.gif]
Thank you for replying. I don't quite understand. Do you mean?
"socks" ( "listen" = <IP_ADDRESS>:1080
—
Reply to this email directly, view it on GitHub[https://github.com/apernet/hysteria/issues/551#issuecomment-1397077863], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AKGBAYHP6CBKK7Q37JS5NDTWTFGVBANCNFSM6AAAAAAUAEXOQU].
You are receiving this because you commented.[Tracking image][https://github.com/notifications/beacon/AKGBAYDZL5VNZWNKC556GLDWTFGVBA5CNFSM6AAAAAAUAEXOQWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSTIW3WO.gif]


Releasing memory?

Once xarray (or dask) has loaded some array into memory, is there any way to force the memory to be released again? Or should this never be necessary?
For example, what would be the best workflow for this case: I have several large arrays on disk. Each will fit into memory individually. I want to do some analysis on each array (which produces small results), and keep the results in memory, but I do not need the large arrays any more after the analysis.
I'm wondering if some sort of release() method would be useful, so that I could say explicitly "can drop this DataArray from memory, even though the user might have modified it". My proposed workflow for the case above would then be something like:
da1 = ds["variable1"]
result1 = do_some_work(da1) # may load large parts of da1 into memory
da1.release() # any changes to da1 not already saved to disk are lost, but do not want da1 any more

da2 = ds["variable2"]
result2 = do_some_work(da2) # may load large parts of da2 into memory
da2.release() # any changes to da2 not already saved to disk are lost, but do not want da1 any more

... etc.

Hi, If results1 is already evaluated, just replace
"da1.release()" with "del da1".
Python should automatically release the memory

OK, I think I've answered my own question. Looks like dask can handle this workflow already, something like:
# do_some_work does not call `.load()` or `.compute()` anywhere
result1a, result1b, result1c = dask.compute(do_some_work(ds["variable1"])

result2a, result2b, result2c = dask.compute(do_some_work(ds["variable2"])

... etc.

I do still wonder if there might be any case where .release() might be useful...

Thanks @lanougue, but what if I might want to re-load da1 again later, ie. if da came from some Dataset da = ds["variable"], I want to leave ds in the same state as just after I did ds = open_dataset(...)? Wouldn't del da remove "variable" from ds? Or maybe not free any memory if ds still has a reference to the DataArray?

Afaik "release" happens during garbage collection, so deleting things with del is the way to go.
I have also been using cluster.restart()  to start from scratch

Thanks @lanougue, @dcherian I think I see the simple answer now: use a deepcopy first, to leave the Dataset as is, then del the DataArray when finished with it, e.g.
da1 = ds["variable1"].copy(deep=True)
... do stuff with da1 ...
del da1

da2 = ds["variable2"].copy(deep=True)
... do stuff with da2 ...
del da2

... etc.

Sorry for the noise, but at least I will be glad of something to search for next time I forget how to do something like this!


Can I print UTF-8 characters?

I saw that there is the charset configuration, but where do I find which ones are compatible? Needed to print utf8 characters, such as "ãáàõ"

Example: Vinícius Araújo

Use charset: "iso-8859-1" in the printCustom, to make accentuation.

is there for arabic

is there for arabic

windows-1256 worked with me

charset: "gbk"

is there for arabic

windows-1256 worked with me

how? ...show me gist of code

I saw that there is the charset configuration, but where do I find which ones are compatible? Needed to print utf8 characters, such as "ãáàõ"

same problem here... any solution? UTF8, iso-8859-1 and windows-1256 not work for me

I saw that there is the charset configuration, but where do I find which ones are compatible? Needed to print utf8 characters, such as "ãáàõ"

same problem here... any solution? UTF8, iso-8859-1 and windows-1256 not work for me

Same problem, tried all charset above:
String txt = "Juárez";
bluetooth.printCustom(txt, Size.bold.val, Align.left.val, charset:" iso-8859-1")

á is not printed at all or a rare symbol


Added a readable HTML test report to Bluepill

BPHTMLReportWrite takes the NSXMLDocument object which is the JUnit report
and generate an HTML page with a JS file.
Added a Unit test

Can you please rebase on master to fix CI?


feat(projects): add swiper to project item

Features

Adds swiper to project item with [Swiper]
Adds directive to setup [Swiper]

Refactors

Improve breakpoints SCSS

Swiper

Current dependencies on/for this PR:

main

PR #10   👈

This comment was auto-generated by Graphite.


Update private key

What is this PR doing?
This PR updates the aggregator private key: PRIVATE_KEY_AGG in ./aggregator/.env.example. Previously, this private key belonged to the first account that the hardhat node provides. This has been updated to the private key from the 3rd account in the account list that hardhat provides.
How can these changes be manually tested?
These changes have been tested by running bls wallet locally, attempting to send transactions, and observing there is no nonce too low errors.
Does this PR resolve or contribute to any issues?
A periodic nonce mismatch issue occurs when the aggregator tries to submit a batch. This is because the private key used by the aggregator is the same as the default contract deployer. This change swaps this aggregator private key for another one so there is no longer a clash.
Error:

Checklist

[x] I have manually tested these changes
[x] Post a link to the PR in the group chat

Guidelines

If your PR is not ready, mark it as a draft
The resolve conversation button is for reviewers, not authors

(But add a 'done' comment or similar)

Tests failing, looking into this now


[WIP] A simple MSM engine

Useful to simulate OPS given an MSM matrix. There is a notebook that explains it.
Still experimental

Awesome, thanks!

Little updates. It works in memory now and has some helpers that make it faster...

Adding a comment from our Skype call yesterday: this PR will be split into two parts, one that really does the simple MSM engine, and which will be part of the 1.1 "engines" release, and one that does the fancier OOM stuff, which is more experimental and will be for a later release.


Contributing.md

Create CONTRIBUTING.md

Please add content section above.

Please add content section above.


WIP: Use ruff

Depends on #32.

[X] Run ruff fixes automatically
[ ] Integrate into github actions
[ ] Do some manual fixes?

Depends on #32.

[x]  Run ruff fixes automatically
[ ]  Integrate into github actions
[ ]  Do some manual fixes?

@josephmckinsey why not set up a pre-commit config instead?


Introduce Data Record: Packet

As a user, I want to have data container for other packets, so I can group packets together (e.g. DTC Number + DTC Status - DTC Status is actually packed of DTC Status bit where each have specific meaning), so I can easily use grouped data.
Important: Packets might sometimes occur varing number of times (e.g. response to 0x1902FF request, might contain from 0 to X packets with DTC Numer + DTC Status).

#6 must be completed prior this one


As a user, I want to be able to view my chat history with another user

This story should include a GET endpoint, documentation, and unit tests.
I imagine that given two userId's, this endpoint would search the database for the last n messages between the two users and return their messageID's.

I'll get started on this one.


resolve value is undefined when chaining then method

I am getting an undefined value in my onFulFilled method when chaining the then method.

Yes. then() returns a promise for the value returned, excpetion thrown, or promise resolved by onFulfilled or onRejected. Chaining is different than branching.

Ok, got it.  Thank you for the quick response.


Gave answer to "Should set a screen without opening the menu" issue

Added setScreenByIndex.
E.g. SimpleHiddenDrawerProvider.of(context).setScreenByIndex(1, false)

functionality available in the version 2.0.0.


make analytics.Client more thread-safe

It's still not fully thread-safe, since we depend on being able to
append properties to it in klothomain; but for individual sends, it is.
We do this by separating out the client from the payload. Each time we
send a new message, we create a new payload, populate it with default
stuff from the client, modify that paylod (which is thread-local) and
send it.
This PR has two commits (at least for rev1):

ff5d15bc7937c837be9ba997e25dbad62d95bc30 adds some simple unit tests for the analytics client, but doesn't affect prod at all
9ef7fd0ce692546d7200d2c23b94a07ce76e1d64 is the main part of this PR

note in particular the change to client_test.go line 91: when we send analytics directly (not via the logger hook), we now send "status": "info" where we didn't before

Followup to #281.
Standard checks

Unit tests: added
Docs: n/a
Backwards compatibility: adds a status field to analytics; see above

I found myself getting a bit lost as I was writing this (much of it yesterday, when I was a bit foggy), so please do take a look to see if I did something wonky in terms of an awkward internal API or struct usage. It's probably due to piecemeal evolving code, rather than a principled stance on code structure.


Add the name prop to the Toggle component so it can be used in the FormGroup

 (1) Add the "name" prop to the Toggle component so it can be used in the FormGroup


added (my) two plugins to the list

Description of changes
Added my plugins to the list
Things done

Built on platform(s)

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

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

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

[ ] 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.05 Release Notes (or backporting 22.11 Release notes)

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

[ ] Fits CONTRIBUTING.md.

please use the update script instead
pkgs/applications/editors/vim/plugins/update.py --add Industrial/vim-smartbw --add Industrial/vim-smartbd

Okay. I tried running it but got HTTP Error 429: too many requests, Retrying in 3 seconds... pretty quickly. and it kept increasing the timeout so I think the script is trying to update faster then the timeout allows.

Worked with a API token from Github.


Build Whitaker Lab website

Build github pages website at whitakerlab.github.io.
Guide: https://help.github.com/articles/user-organization-and-project-pages/

Boom! Done! Still needs a little more information but it's built in jekyll: https://github.com/WhitakerLab/whitakerlab.github.io 🎉 ✨ 😀


nuitka-1.6.6 worked successfully on msys64 but now nuitka-2.4.11 (latest) fails

Hello Kay.
I have been checking out the the history of running nuitka on the msys64 environment Windows 10 Pro Version 22H2 os build 19045.5131.
I would like to present the following results of building a "Hello World" example in a wxPython GUI with nuitka as follows 👎
Nuitka Version 1.6.6  which also successfully builds and executes the wxPython GUI
The following nuitka-1.6.6.zip has the full details.
nuitka-1.6.6.zip
Nuitka Version 1.8.3  which successfully builds and executes the wxPython GUI
The following nuitka-1.8.3.zip has the full details.
nuitka-1.8.3.zip
Nuitka Version 2.1.6 which also successfully build but fails to execute due failure to import "wx data"
The following nuitka-2.1.6.zip has the full details.
nuitka-2.1.6.zip
Nuitka Version 2.4.11 which fails to build and creates a "crash-report"
The following nuitka-2.4.11.zip has the full details.
nuitka-2.4.11.zip
I am available to help resolve this issue.
I am just one of the many thousands of Embedded Systems Developers who are using msys64 as a great Windows
environment and would love to have the protection the nuitka commercial offers.
Cheers Noel Diviney.

I made more assertions, to address that normpath doesn't work as expected on MSYSt64 MinGW, but as is happens I addressed an old issue the other day and saw a lot of assertions myself for #2628 so that's probably going to do it for you too.

Part of the 2.5.1 release.


Using Castable with CastsAttributes on a value object, is flattening the attributes array on the model

Laravel Version
10.10
PHP Version
8.2.9
Database Driver & Version
MYSQL
Description
Encountered a weird one here, code below:
abstract class Credentials implements Arrayable, Castable
{
    public static function castUsing(array $arguments): CastsAttributes
    {
        return new class implements CastsAttributes
        {
            public function get(Model $model, string $key, mixed $value, array $attributes): Credentials
            {
                return Credentials::factory($model->mechanism, $value);
            }

            public function set(Model $model, string $key, mixed $value, array $attributes): array
            {
                if (!($value instanceof Credentials)) {
                    throw new \InvalidArgumentException('Provided credentials must be an implementation of Credentials class.');
                }

                return $value->toArray();
            }
        };
    }

    static public function factory(string $mechanism, \stdClass $value): Credentials
    {
        return new EmailCredentials($value->email, $value->password);
    }
}

class EmailCredentials extends Credentials
{
    public function __construct(private string $email, private string $password) {}

    public function toArray(): array
    {
        return [
            'email' => hash('SHA512', $this->email),
            'password' => Hash::make($this->password),
        ];
    }
}

I'll explain the class first. I'm testing out the possibility of setting up authenticators as its own table. Each authenticator has a type of credentials (email and password, email only, facebook.etc.)
The abstract credentials class manages the casting of those attributes from the children of Credentials.
Everything is working fine, however - I find that the set method (from the docs) is actually returning the array to the base $attributes property on the model, rather than keeping it as part of the credentials property.
Steps To Reproduce
Setup a value object htat imkplements Castable, returning a CastsAttributes implementation.
Have the set method return an array as per normal. You'll see that the array is flatted on the model.

I found the issue - it's in setClassCastableAttribute. On line 1134:
$this->attributes = array_replace(
    $this->attributes,
    $this->normalizeCastClassResponse($key, $caster->set(
        $this, $key, $value, $this->attributes
    ))
);

It's my understanding that my credentials property should be setting the 'credentials' key, not merging it's result with the the main model attributes array.

public function set(Model $model, string $key, mixed $value, array $attributes): array
{
    if (!($value instanceof Credentials)) {
        throw new \InvalidArgumentException('Provided credentials must be an implementation of Credentials class.');
    }

    // if $key is always credentials, try
    // return ['credentials => $value->toArray()];
    return [$key => $value->toArray()];
}

If you return an array like that, Laravel will understand you want to set multiple attributes, as the code sample in the docs which decodes an Address into address_line_one and address_line_two attributes.
reference: https://laravel.com/docs/10.x/eloquent-mutators#value-object-casting
There is a note in the docs of cases like yours, but the value object being encoded should implement both Illuminate\Contracts\Support\Arrayable AND JsonSerializable interfaces. (and in uppercase and bold to highlight that requirement
In your case, you could try this:
abstract class Credentials implements Arrayable, Castable, \JsonSerializable
{
    public static function castUsing(array $arguments): CastsAttributes
    {
        return new class implements CastsAttributes
        {
            public function get(Model $model, string $key, mixed $value, array $attributes): Credentials
            {
                return Credentials::factory($model->mechanism, $value);
            }

            public function set(Model $model, string $key, mixed $value, array $attributes): array
            {
                if (!($value instanceof Credentials)) {
                    throw new \InvalidArgumentException('Provided credentials must be an implementation of Credentials class.');
                }

                // IMPORTANT: return the value object, not the call to ->toArray()
                // otherwise the properties will be merged as individual attributes
                return $value;
            }
        };
    }

    static public function factory(string $mechanism, \stdClass $value): Credentials
    {
        return new EmailCredentials($value->email, $value->password);
    }
}

class EmailCredentials extends Credentials
{
    public function __construct(private string $email, private string $password) {}

    public function toArray(): array
    {
        return [
            'email' => hash('SHA512', $this->email),
            'password' => Hash::make($this->password),
        ];
    }

    public function jsonSerialize()
    {
        return $this->toArray();
    }
}

I never used it like this, but there is an important thing to note, on the anonymous class set() method, return the value object instead of calling its ->toArray() method.

Okay, closing - I realised I should be returning a string not an array - when an array is returned, it flattens it to the model.

@rodrigopedra haha, very quick - I discovered my issue same time as you responded. Also - thanks for the suggestion on the jsonSerialize - that will also clean it up a little bit.
Cheers! :)

no worries =) I hit the send button just to realize you figured out a solution.
Cheers!

@rodrigopedra unfortunately I can't just return the value object - it doesn't recognise it as a valid value. Pretty sure I have to convert to a json string.

Try fixing the return type, I had overseen, so PHP should be complaining
public function set(Model $model, string $key, mixed $value, array $attributes): array
// REMOVE THIS-----------------------------------------------------------------^^^^^^^

If your value object implements \Illuminate\Support\Contracts\Arrayable it should work:
https://github.com/laravel/framework/blob/4989e6de076688ade265e2f1970ab6f0c1b60fcb/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php#L315-L317


Add ability to change current language

Change current language
Right now there is no way to change the current language used by the user.
Implementation proposition

We can add a select with all available languages on the user profile
See if we need to use the langKey stored by JHipster on the user object

Will be fixed in #78


implement serialize/deserialize for Duration type in accordance with protobuf JSON spec

Fixes #60.

Many thanks for putting this together! I will try to cut a new release in the next few weeks where this can included.

One of the checks failed because rustc 1.70 is required. I just updated master to Prost 0.12.3 which also sets MSRV to 1.70.0. This should fix the failure. Can you merge/rebase your branch so the checks can pass?

sorry I missed the notification from your earlier message! Let me know if there’s anything I can do here.


[ANCHOR-553] Bump node version to 20

Get rid of the deprecate node 14

Something went wrong with PR preview build please check

Something went wrong with PR preview build please check

Something went wrong with PR preview build please check

Something went wrong with PR preview build please check


Maintain horizontal position on vertical movement

Issue Type: Feature Request
I am in the process of moving to Visual Studio Code from TextPad, and while I have found that Code supports most of the TextPad capabilities, there is one small additional feature I would like to see.
In TextPad, when you move between lines, the cursor maintains the vertical position that it had when it moved to the previous line, if possible.
Thus if the cursor is ac character position 10  when you moved to the current line, if you move up or down, it will remain at position 10 regardless of where it moved to while you were editing the current line. This is very helpful in many cirumstances, particularly as it treats end and beginning of line as special cases,for instance allowing you to mve through a file with the cursor going automatically to the end of each line.
If there is already an option to support this behaviour, I have not yet managed to find it. If not, I would commend it for inclusion as an option in a future release.
VS Code version: Code 1.46.1 (cd9ea6488829f560dc949a8b2fb789f3cdc05f5d, 2020-06-17T21:13:20.174Z)
OS version: Windows_NT x64 10.0.19041

https://github.com/microsoft/vscode/issues/96809#issuecomment-638852638 seems slightly related, detailing how to get a way of making the cursor stick with the end of the line. But not a duplicate.

Thread here about wanting this feature in another editor pointed to an extension for that editor which implemented the feature. Maybe a VS Code extension would be feasible.

@mjkalba Would binding the following keybindings for end and shift+end work for you?
    { "key": "end",       "command": "cursorEnd",       "when": "textInputFocus", "args": {"sticky":true} },
    { "key": "shift+end", "command": "cursorEndSelect", "when": "textInputFocus", "args": {"sticky":true} },

I’m a Code newbie, so I would have to try it to know, but I doubt it meets the full requirement, which is for the cursor position to be sticky at any position in a line, with end of line being a special case irrespective of line length.
It needs to be able to provide the following functionality.
You position the cursor at character 15 on a line. You then type 5 characters so that the cursor is now at character 20. You move down (or up) to the next line. The cursor automatically positions to character 15.
The special case for end of line is that if you explicitly position the cursor to the end of a line, moving up or down will position the cursor at the end of the line moved to, regardless of its length.

You position the cursor at character 15 on a line. You then type 5 characters so that the cursor is now at character 20. You move down (or up) to the next line. The cursor automatically positions to character 15.

@mjkalba  This is honestly the first time I hear of this request for a code editor. Let's track this as a feature request.

It is a standard feature of Textpad, which is a fine editor, but only works on Windows, hence my interest in moving to Code.


uncaught Error: Could not find module root given file: "app://./js/chunk-vendors.a960702b.js". Do you have a package.json file?

stacktrace:

Uncaught Error: Could not find module root given file: "app://./js/chunk-vendors.a960702b.js". Do you have a package.json file?
at Function.getRoot (bindings.js:211)
at bindings (bindings.js:82)
at Object.0e66 (ref.js:5)
at webpack_require (bootstrap:84)
at Module.cd49 (app.f8c3ff0a.js:1)
at webpack_require (bootstrap:84)
at Object.0 (app.f8c3ff0a.js:1)
at webpack_require (bootstrap:84)
at checkDeferredModules (bootstrap:45)
at bootstrap:221

i am using https://github.com/nklayman/vue-cli-plugin-electron-builder to pack my electron app.
all my bussiness-related codes are packed together and can be accessed with customed app protocol.
file system structure:
|-- omitted...
|-- js
|   |-- omitted...
|   |-- chunk-vendors.a960702b.js
|   `-- chunk-vendors.a960702b.js.map
|-- node_modules
|   |-- bindings
|   |-- omitted...
`-- package.json

i dived inside bindings code, and it seems lack of supporting this kind of customized  protocol such as app.
do i have to bring in a app-uri-to-path module and use customized version of node-bindings?
any suggestion?

@bruceauyeung
I have encountered this problem with you. What is your solution?


injecting html over ajax

hi ive been trying to inject some html code received with ajax but i keep getting a null value
code is here, cant seem to get it right with github markdown
https://bpaste.net/show/b7b8a1aeca9b

Try <template is="juicy-html" content$=[[item.excerpt]]></template>
juicy-html is a vanilla custom element, that listens to the mutations of the content attribute.
To use it with Polymer, you need to set the attribute value using Polymer's $= notation (read more here: https://www.polymer-project.org/1.0/docs/devguide/data-binding.html#attribute-binding

thanks that solved my problem


Fail to load swagger-ui assets

Hi @domaindrivendev,
First of all: I love rswag as it saves me a ton of typing and keeping stuff in sync. Thank for your effort and time spent on this. 👍
I have one issue with loading the swagger-ui assets in production environment. They get precompiled as I see all of them having digest, but the index.html.erb links them without the digest.
Im using rails <IP_ADDRESS> and rswag 1.0.3
I generated my own index.html.erb file via 'rails g rswag:ui:custom' and also tried to turn the link and script tags into rails stylesheet_link_tag and javascript_include_tag. This changed nothing.
all asset configs in my environments/production.rb:
config.assets.compile = false
config.assets.js_compressor = :uglifier
Any pointers what I'm missing or an idea how to fix this?

@sziep - thanks for the support.
To keep things simple, I wanted to take the swagger-ui assets in their raw form, which I believe to be prod-ready, minified etc., and dump them into the "vendor" folder of the Rswag::Ui::Engine without transforming to use any rails-specific conventions for assets. This way, upgrades will be very simple.
This alone works well in dev environments because the asset pipeline is smart enough to look into Engine vendor folders for asset requests. However, in prod the asset pipeline is typically disabled. So, these assets need to be copied to the hosting app's "public" folder on asset precompile. I accomplished this with the following snippet in rswag/ui/engine.rb:
class Engine < ::Rails::Engine
  isolate_namespace Rswag::Ui

  initializer 'rswag-ui.initialize' do |app|
    if app.config.respond_to?(:assets)
      app.config.assets.precompile += [ 'swagger-ui/*' ]
    end
  end
end

So, the assets are being flagged for precompile, but really just as a means of getting them copied into the app's "public" folder. There's actually no difference between the digest and non-digest versions.
I guess this isn't ideal because now there's duplicated assets on your server (maybe there's a better way of accomplishing this) but from a functional perspective I don't expect there to be a negative impact using the non-digest versions.

Alright, I understand your reason behind this. The thing is, I don't get any non-digest versions generated. Only assets with digest ending are up in my asset folder

Ahh - well that is a problem. I need to figure out an alternative then

@sziep - I've found a solution that should resolve this but before I go ahead and push it out, it would be great if you try it with your custom index.erb as a kind of live test? Basically, just use a combination of ERB and the asset_path helper to resolve all urls in your template as follows:
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Swagger UI</title>
  <link rel="icon" type="image/png" href="<%= asset_path 'swagger-ui/images/favicon-32x32.png' %>" sizes="32x32" />
  <link rel="icon" type="image/png" href="<%= asset_path 'swagger-ui/images/favicon-16x16.png' %>" sizes="16x16" />
  <link href="<%= asset_path 'swagger-ui/css/typography.css' %>" media='screen' rel='stylesheet' type='text/css'/>
...

This worked for me in dev/test and production rails environments with the digest version being used in the latter

It did not exactly work for me, but this may due to my setup with docker. I have found a way to make it work for me. I ditch the precompiled assets in public folder and copy them from the gem source. Its not the most elegant solution, but its part of the docker image building and I can live with it for now.
Thank you for your time and effort.
Have a nice day

Fair enough. It would be helpful though to know why the proposed fix isn't working for you as it's not clear to me why running in a Docker container could be the cause.
If there's an issue, I'd like to get to the bottom of it. Thanks

Hi There! First, thanks for this awesome gem, it's really neat and useful. I pretty much have the same issue, using docker and nginx to serve the static assets - I can see that the swagger-ui assets are getting precompiled, but do not end up in the docker volume I use to serve the assets, and I have no idea why - I've tried a few different things to no avail. so @sziep I'd be very grateful if you could tell me in a bit more detail how you manage to solve this issue!


Extraction of Gcloud/Istio Proxy Halt Methods

Description
Changes proposed in this pull request:

Extraction of GCloud/Istio halt methods for reausing it in https://github.com/kyma-project/control-plane/pull/1925

Related issue(s)

/test pre-main-control-plane-reconciler-e2e  pre-main-control-plane-reconciler-e2e-latest-release pre-main-control-plane-reconciler-upgrade-kyma2-latest-to-main-gardener


ObsidianTemplate command results in error with telescope

🐛 Describe the bug
:ObsidianTemplate command results in the following error:
Error executing Lua callback: ...k/packer/start/telescope.nvim/lua/telescope/mappings.lua:179: bad argument #1 to 'lower' (string expected, got table)
[C]: in function 'lower'
	...k/packer/start/telescope.nvim/lua/telescope/mappings.lua:179: in function 'map'
	...pack/packer/start/obsidian.nvim/lua/obsidian/command.lua:275: in function 'attach_mappings'
	...k/packer/start/telescope.nvim/lua/telescope/mappings.lua:187: in function 'apply_keymap'
	...ck/packer/start/telescope.nvim/lua/telescope/pickers.lua:540: in function 'find'
	...ker/start/telescope.nvim/lua/telescope/builtin/files.lua:245: in function 'v'
	...ker/start/telescope.nvim/lua/telescope/builtin/files.lua:458: in function 'v'
	...cker/start/telescope.nvim/lua/telescope/builtin/init.lua:476: in function 'find_files'
	...pack/packer/start/obsidian.nvim/lua/obsidian/command.lua:283: in function 'choose_template'
	...pack/packer/start/obsidian.nvim/lua/obsidian/command.lua:285: in function 'func'
	...pack/packer/start/obsidian.nvim/lua/obsidian/command.lua:549: in function <...pack/packer/start/obsidian.nvim/lua/obsidian/command.lua:548>

I disabled the telescope plugin and run the command with fzf-lua. This time the file selection window appeared correctly but template insertion didn't occur.
Versions
❯ nvim --version
NVIM v0.8.3
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@Monterey
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/Cellar/neovim/0.8.3/share/nvim"
Run :checkhealth for more info
❯ nvim --headless -c 'lua print(require("obsidian").VERSION)' -c q
1.8.0

FYI @s-cassidy, maybe you can figure this out?
@mertnuhoglu can you tell me which commit of telescope you're on? I'll try to reproduce.

I've also run into this issue, the commit of telescope I'm on is b79cd6c88b3d96b0f49cb7d240807cd59b610cd8 and obsidian commit 26af6981d3217b27704c93b1dd90b22d9bd5e18e, both are just what vim plugged downloaded upon running PlugUpdate. Nvim version for me is NVIM v0.9.0-dev-1265+g410dc3349.

I have a similar error when running :ObsidianTemplate command:

This is my config:
return {
    "epwalsh/obsidian.nvim",
    lazy = true,
    event = "VeryLazy",
    dependencies = {
        "nvim-lua/plenary.nvim",
        "hrsh7th/nvim-cmp",
        "nvim-telescope/telescope.nvim",
    },
    opts = {
        dir = "~/Documents/notes/notes", -- no need to call 'vim.fn.expand' here

        -- Optional, if you keep daily notes in a separate directory.
        daily_notes = {
            folder = "Agenda",
        },

        -- Optional, completion.
        completion = {
            nvim_cmp = true, -- if using nvim-cmp, otherwise set to false
        },

        -- Optional, customize how names/IDs for new notes are created.
        -- Optional, for templates (see below).
        templates = {
            subdir = "Templates",
            date_format = "YY.MM.DD — dddd",
            time_format = "HH:mm",
        },

        -- Optional, customize how names/IDs for new notes are created.
        note_id_func = function(title)
            return title
        end,

        finder = "telescope.nvim",
    },
    config = function(_, opts)
        require("obsidian").setup(opts)

        -- Optional, override the 'gf' keymap to utilize Obsidian's search functionality.
        -- see also: 'follow_url_func' config option above.
        vim.keymap.set("n", "gd", function()
            if require("obsidian").util.cursor_on_markdown_link() then
                return "<cmd>ObsidianFollowLink<CR>"
            else
                return "gd"
            end
        end, { noremap = false, expr = true })
    end,
}

I have the same error:
[Obsidian] ...ocal/share/nvim/lazy/obsidian.nvim/lua/obsidian/util.lua:465:
...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:308:
Attach mappings must always return a value. `true` means use default mappings, `false` means only use attached mappings

Versions:
$ nvim --version

NVIM v0.10.0-dev-29+g436e0147f
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wvla -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -fno-common -Wno-unused-result -Wimplicit-fallthrough -fdiagnostics-color=always -fstack-protector-strong -DUNIT_TESTING -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -I/home/lpanebr/build/neovim/.deps/usr/include/luajit-2.1 -I/usr/include -I/home/lpanebr/build/neovim/.deps/usr/include -I/home/lpanebr/build/neovim/build/src/nvim/auto -I/home/lpanebr/build/neovim/build/include -I/home/lpanebr/build/neovim/build/cmake.config -I/home/lpanebr/build/neovim/src -I/usr/include -I/home/lpanebr/build/neovim/.deps/usr/include -I/home/lpanebr/build/neovim/.deps/usr/include -I/home/lpanebr/build/neovim/.deps/usr/include -I/home/lpanebr/build/neovim/.deps/usr/include -I/home/lpanebr/build/neovim/.deps/usr/include -I/home/lpanebr/build/neovim/.deps/usr/include

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/share/nvim"

$ nvim --headless -c 'lua print(require("obsidian").VERSION)' -c q
1.10.0

The same bug, here the fix https://github.com/epwalsh/obsidian.nvim/pull/137

@lpanebr @nikbrunner @mertnuhoglu could you check with new version, this bug was fixed in #137

Hi there,
yes it works! The only thing I am wondering about is that the placeholders don't get replaced. I don't know if this should work or not.
After insert it looks like this:
##  [[{{date:YY.MM.DD — dddd}}]]

> {{date:HH:mm}}

...

@nikbrunner I have a same problem due to Obsidian datetime format (https://momentjs.com/docs/#/displaying/format/).
Now Obsidian.nvim supports only {{date}} {{time}} and {{title}}. So I plan to create separate daily journal template for obsidian.nvim

Hi there, yes it works! The only thing I am wondering about is that the placeholders don't get replaced. I don't know if this should work or not.
After insert it looks like this:
##  [[{{date:YY.MM.DD — dddd}}]]

> {{date:HH:mm}}

...

This is correct; at the moment it only replaces the basic variables. If you set the date and title format in the Obsidian.md template settings you can set the format without including the format string in the template. Then you can set the format in obsidian.nvim config using lua syntax. The same template should work for both -- it's only if you want different date/time formats for different templates that you need to format it in the template itself.
Converting moment.js date/time formats for full parity with obsidian.md is something I've started

it works. Thanks!

Getting something similar:
Error executing Lua callback: ...te/pack/packer/start/obsidian.nvim/lua/obsidian/init.lua:443: attempt to index field 'opts' (a nil value)
stack traceback:
        ...te/pack/packer/start/obsidian.nvim/lua/obsidian/init.lua:443: in function '_run_with_finder_backend'
        ...pack/packer/start/obsidian.nvim/lua/obsidian/command.lua:297: in function 'func'
        ...pack/packer/start/obsidian.nvim/lua/obsidian/command.lua:672: in function <...pack/packer/start/obsidian.nvim/lua/obsidian/command.lua:671>

my conf:
require("obsidian").setup({
    -- Required, the path to your vault directory.
    dir = "~/tjroot/obsidian/paradigm-shifted",

    -- Optional, if you keep notes in a specific subdirectory of your vault.
    notes_subdir = "forrest-floor",

    -- Optional, set the log level for obsidian.nvim. This is an integer corresponding to one of the log
    -- levels defined by "vim.log.levels.*" or nil, which is equivalent to DEBUG (1).
    log_level = vim.log.levels.DEBUG,

    daily_notes = {
        -- Optional, if you keep daily notes in a separate directory.
        folder = "diaries",
        -- Optional, if you want to change the date format for daily notes.
        date_format = "%Y-%m-%d"
    },

    disable_frontmatter = true,

    templates = {
        subdir = "extra/templates",
        date_format = "%Y-%m-%d-%a",
        time_format = "%H:%M"
    },
})

Filepath to templates:

Got the same bug. Pined the package to https://github.com/epwalsh/obsidian.nvim/releases/tag/v1.11.0 and it works now. Seems a future commit re-introduced the bug again

@ngunyimacharia sorry about that, my last PR introduced the issue. Should be fixed now on main.

Works well now, thank you for fixing this @epwalsh. Great work 🙌🏿

Works for me now too :) Excellent!

Is there any update on the fix for @mertnuhoglu's  original problem? I'm getting the same issue.
Error executing Lua callback: ...k/packer/start/telescope.nvim/lua/telescope/mappings.lua:288: bad argument #1 to 'lower' (string expected, got table)
stack traceback:
        [C]: in function 'lower'
        ...k/packer/start/telescope.nvim/lua/telescope/mappings.lua:288: in function 'map'
        ...pack/packer/start/obsidian.nvim/lua/obsidian/command.lua:318: in function 'attach_mappings'
        ...k/packer/start/telescope.nvim/lua/telescope/mappings.lua:296: in function 'apply_keymap'
        ...ck/packer/start/telescope.nvim/lua/telescope/pickers.lua:561: in function 'find'
        ...r/start/telescope.nvim/lua/telescope/builtin/__files.lua:305: in function 'v'
        ...r/start/telescope.nvim/lua/telescope/builtin/__files.lua:533: in function 'v'
        ...cker/start/telescope.nvim/lua/telescope/builtin/init.lua:510: in function 'find_files'
        ...pack/packer/start/obsidian.nvim/lua/obsidian/command.lua:327: in function 'choose_template'
        ...pack/packer/start/obsidian.nvim/lua/obsidian/command.lua:330: in function <...pack/packer/start/obsidian.nvim/lua/obsidian/command.lua:307>
        .../pack/packer/start/obsidian.nvim/lua/obsidian/client.lua:487: in function '_run_with_finder_backend'
        ...pack/packer/start/obsidian.nvim/lua/obsidian/command.lua:306: in function 'func'
        ...pack/packer/start/obsidian.nvim/lua/obsidian/command.lua:743: in function <...pack/packer/start/obsidian.nvim/lua/obsidian/command.lua:742>

obsidian.nvim
Versions
OS: Windows 10
using WSL Ubuntu:22.04
uname -r : <IP_ADDRESS>-microsoft-standard-WSL2
nvim --version
NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by runner@fv-az178-366

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/share/nvim"

Run :checkhealth for more info

nvim --headless -c 'lua print(require("obsidian").VERSION)' -c q
1.15.0

On telescope commit 76ea9a898d3307244dce3573392dcf2cc38f340f (have to use old version for nvim 0.8)

@TristanLeclair this is a compatibility issue with old versions of Telescope. I've fixed this in #230.


Unable to use SCP using PSCP

What steps will reproduce the problem?
1. Add PSCP for using SCP
2. Try to connect

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
On the left hand side I can see my local machine console, however on the right
hand side, I am unable to view the remote machine. Instead an error message
"Process Timed Out XXxxx" is displayed. Has anyone integrated PSCP and used it

Please provide any additional information below.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 5 Jul 2013 at 11:54
Attachments:

Error.docx

Closing this issue but all hope is not lost! We still want to help.
See: https://github.com/jimradford/superputty/wiki/Legacy-Imported-Issues on how to help us to help you!


Keep the last directory structure after close the preview window

Is your feature request related to a problem? Please describe.
First i am in the first directory structure and then use the goto-preview plugin to only show the preview buffer.
And the I close the preview buffer, unfortunatelly, the last directory structure has changed and every time I must open the directory again and again.
Describe the solution you'd like
keep the last directory structure after close the preview window?
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Can you clarify what you mean by directory structure? Can you provide a screenshot or video showing the problem?

First，I have open a working directory and open some cpp file into buffers.
when i use goto-preview to find a definition which the file is not in the currect working directory. As the result, the working directory will be changed.
Finally, I close the goto-preview flowting window, the working directory has been changed, and only in the parent directy of the focused buffer.

First，I have open a working directory and open some cpp file into buffers.
when i use goto-preview to find a definition which the file is not in the currect working directory. As the result, the working directory will be changed.
Finally, I close the goto-preview flowting window, the working directory has been changed, and only in the parent directy of the focused buffer.

Was this issue resolved? Was it a non-issue?

not resolved:
ex: I am in the A/B/C/demo.cpp, the demo.cpp has a reference call to D/called.cpp.
use the goto-preview, the directory will be changed to the D/call.cpp.
when close the goto-preview, the directory will be changed to the C/demo.cpp, that's a trouble.
every time, I need to open the directory to A/B/C/demo.cpp

I see. This has nothing to do with goto-preview. You probably have some other plugin changing the your cwd to whatever the directory of the newly opened buffer is. Goto preview merely navigates you to the new buffer, it does not touch your cwd.

I got it. Thanks for your help. and i find the root cause:
the nvim-tree.lua has option in the setup block, like
updata_focused_file = {
enable = true,
update_cwd = true,
ignore_list = {},
}
After set the "update_cwd" to false, this issue is gone.


from_proto and to_proto was added to HiveOfflineStore

Hello @yrbahn ,
Thanks for your pull_request, I am still working on some refactoring, and going to make the first release in a couple of days.
I'm afraid I can not merge your pull request, since quite some changes happened on the main branch.
Will poke you if main branch become stable.
Thanks again.


feat: Extend fork activation blocks data with Arbitrum data

Fixes #7098
This PR aims to extend fork activations block data with Arbitrum hard fork values. Since Arbitrum upgrades happen on a timestamp-based manner, the first block on the update timestamp is supplied as the block value. ArbOS 11 is the upgrade for including Shanghai, and ArbOS 20 is the upgrade for including Cancun.
I've found some irregularities between the provided timestamps and the on-chain data, but my questions to the Arbitrum team was not answered, so I went with the provided dates by the Arbitrum foundation.
I have put these values behind a feature flag called "arbitrum", please let me know if this is not needed.
The provided update timestamps can be found in https://docs.arbitrum.foundation/network-upgrades#network-activation-statuses.

We don't support Arbitrum yet so not sure we should include this?

Hey! I've updated the PR, but is it as you requested? Should I comment out all code about Arbitrum or not?

thanks, I resolved the conflicts and merged in #7305
wasn't able to push to your main directly


Improve robustness of heatmap test.

The animation frame was mocked after an animation frame might have been requested, which could lead to a failure to step through animations properly.

Current coverage is 81.80% (diff: 100%)

Merging #615 into master will increase coverage by 0.01%

@@             master       #615   diff @@
==========================================
  Files            83         83
  Lines          7563       7563
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           6186       6187     +1
+ Misses         1377       1376     -1
  Partials          0          0

Powered by Codecov. Last update 1aa8c38...cf24d6f

We need to run mockAnimationFrame before there is a chance that something calls requestAnimationFrame.  map.draw can do that, and this was being mocked after that.

We need to run mockAnimationFrame before there is a chance that something calls requestAnimationFrame. map.draw can do that, and this was being mocked after that.

Okay thanks not sure how to test the failed case but the explanation makes sense to me.
LGTM :+1:


Updated index.d.ts with ResourceType to ResourceTypes

Hi, a little out of the blue, but a request to make a change to the bundled index.d.ts file we had requested be added a couple of months ago. Thank you!

Thanks @wmtst8 @sklose.
We should have merged this much quicker, sorry for the confusion

Pre-release 1.11.0-beta.7 was published with the change.
Thanks again!

Thank you.


Representation issue in README.md

The figure workflow in the README.md is only loaded correctly in the preview. This problem appears in Firefox, Chrom, and Safari as far as I know.

thanks for bringing this to our attention!
We will investigate!

Good point! I updated the figure and now it should be displayed correctly...


Description is dependent on leading sequence length

Example:
>>> s1 = "TAACAATGGAACTTTTTTTTTTTTTTTTTTTTTTTTTTTGCCATTAGA"
>>> s2 = "TAACAATGGATCTTTTTTTTTTTTTTTTTTTTTTTTTGCCATTAGA"
>>> print(describe_dna(s1,s2))
[11_12del;14T>C]

Now add 1000 leading nucleotides to each sequence:
>>> s1a = 1000 * "A" + s1
>>> s2a = 1000 * "A" + s2
>>> print(describe_dna(s1a,s2a))
1011_1014delinsTC

The description has changed from two variants to a single variant.

I think that is the intended behavior. Partly, this is done because of performance issues on very large (whole chromosome) strings. More interesting is the information theoretical aspect; changes are more significant in smaller strings. The delins is the trivial way to describe a variant. Also note that the resulting description in the second example is indeed smaller: [1011_1012del;1014T>C] vs. 1011_1014delinsTC. Although the reverse is not true: [11_12del;14T>C] vs. 11_14delinsTC.
The splitting and combining of variants can be adjusted using the weighting scheme (requires re-compilation); adding more weight to the trivial description will separate the variants in the second example.


Through2 needs callback

https://googlecloudplatform.github.io/gcloud-node/#/docs/v0.25.1/bigquery/job
In this example, through2.obj needs the callback call?
var through2 = require('through2');
var fs = require('fs');

job.getQueryResults()
  .pipe(through2.obj(function (row, enc, next) {
    this.push(JSON.stringify(row) + '\n');
//next(); is missing from docs
  }))
  .pipe(fs.createWriteStream('./test/testdata/testfile.json'));

Good catch! Any chance you're free to do a PR?

Fixed by #964


acorn proton information is wrong

i was around when the first rumours of the proton came out. it was a dual 6502 design with the first core acting as a front end, handling all of the io, and the second core being headless offering a large memory for the time, communication over a dedicated io bus between the two.
when the bbc micro initiative asked for designs, acorn realised that this proton design was a good fit, exceeding the requirements, with two problems, it was too expensive, and it would not be ready on time. they solved this by extracting the front end design, but keeping the tube second processor bus, so they could add the 6502 second processor later, which they did as an add on unit.
this had the unexpected advantage that they could later add other processors by leveraging the strength of the design.
the initial design for what became the model A did not include a number of pieces of hardware as standard, while having the circuitry on the motherboard. missing hardware included the speech synthesiser, the floppy disk interface, and a significant amount of the initial ram design.

Heya grokitall, I assume you're talking about this object? https://collections.museumsvictoria.com.au/items/396845
if it is, I will try and get it to the relevant people to correct on the website :)

that is the one.
i am not aware specifically of something sold as a bbc proton, but the
acorn proton was designed to be the successor of the acorn atom.
when the bbc decided to create a computer, and put out a call for
proposals, the people at acorn realised that they already had an unbuilt
design which massively exceeded the specs.
this was then cut down to fit with the specs in a way which could be
implemented fast (under a week), while still allowing the original design
to be constructed as a super set of the design they submitted.
as an interesting side point, sinclair lost out because they were well
known for pushing the tech just that little bit too far, making their
previous devices too unreliable.
this definitely looks like the right article, but the device shown looks
like a standard bbc micro case. without seeing a visual of the pcb, i could
not even guess which version.
at a time when the competition was the commodore pet, and the 1k zx81, the
original design for the proton called for 2 6502 processors, the second
containing 64k of ram. it also had lots of completely unique io
capabilities, most of which were on the model a circuit board, but had not
had the driver software written due to time constraints.
On Tue, 22 Oct 2024, 03:22 Michael Mason, @.***> wrote:

Heya grokitall, I assume you're talking about this object?
https://collections.museumsvictoria.com.au/items/396845
if it is, I will try and get it to the relevant people to correct on the
website :)
—
Reply to this email directly, view it on GitHub
https://github.com/museumsvictoria/collections-online/issues/50#issuecomment-2428076595,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BMKCABI2HHGVZUZBUG3OOW3Z4WZGHAVCNFSM6AAAAABQLMGJ42VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRYGA3TMNJZGU
.
You are receiving this because you authored the thread.Message ID:
@.***>

Thanks for the fascinating information :)
I've passed this on to our public enquiries team who should be in touch shortly.  If its ok with you I will close this as an issue as the public enquiry system is probably a better place to converse.
Thanks again!

fine, i only contacted you this way as it seemed all the data for the
webpages was in the repo, and i could not find any other method of contact.
On Thu, 24 Oct 2024, 01:28 Michael Mason, @.***> wrote:

Thanks for the fascinating information :)
I've passed this on to our public enquiries team who should be in touch
shortly. If its ok with you I will close this as an issue as the public
enquiry system is probably a better place to converse.
Thanks again!
—
Reply to this email directly, view it on GitHub
https://github.com/museumsvictoria/collections-online/issues/50#issuecomment-2433880738,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BMKCABKRAFD6JISYRNTAPCLZ5A5MLAVCNFSM6AAAAABQLMGJ42VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZTHA4DANZTHA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Opening a SQL script file in ADS with characters with diacritical marks (e.g., Castañeda) mangles those characters. When pasting the file from, say, notepad all is well

Azure Data Studio Version: 1.44.1 (system setup)
OS Version: 22H2 Build 22621.1928

Steps to Reproduce:

File - Open File - SQL file containing strings with characters, some of which have diacritical marks such as the ñ in Castañeda
3.The script file opens but the characters with diacritical marks are mangled
Open the file in notepad and copy and paste in new query window. all is well

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

Hi @pmossel
Please check your file encoding for script file or you can try creating a new file with default (UTF8) encoding in ADS.
I was able to open/save SQL script with diacritical marks just fine.


How To disable a editing feature?

When I coding,the config make some default action that I don't want.

for example with python:

`
def for_test():
def gen_test1(min, max):
l = []
if min > 0 and max > 0  and max > min:
`
I finished gen_test1 function first.
Then I need add for_test before 'gen_test1' function.
When I wrote 'for_test():', and press enter key,
the next function code become like before.

another example with lua ,the default action that I want to disable it.

function Scene:test () end
How Can I disable the default blank ?

Your comment has lost the indentation, so it's not clear what you mean, sorry. You can use ``` to  properly escape  multi-line  code examples. The lua example is also not clear: I can type that code snippet without problems.

Line breaks affect the following code layout
2.function Scene:test () to become function Scene:test()

I just can't duplicate that. I type function Scene:test (), then return, and the line is left unchanged.

Will, Maybe config something different between us


youtube-dl error (json problem?)

Checklist

[X] I'm reporting a broken site support
[X] I've verified that I'm running youtube-dl version 2019.11.05
[X] I've checked that all provided URLs are alive and playable in a browser
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones

Verbose log
login as: root
<EMAIL_ADDRESS>password:
Last failed login: Tue Nov 12 23:38:43 EST 2019 from <IP_ADDRESS> on ssh:notty
There were 423 failed login attempts since the last successful login.
Last login: Tue Nov 12 21:02:56 2019 from <IP_ADDRESS>
[root@soappirat ~]# youtube-dl --version
2019.11.05
[root@soappirat ~]# youtube-dl -v https://www.youtube.com/watch?v=KSBGBd9IY0U&list=PLV-jnXv3eCNOmWsu169vgjCTB92pePa27&index=2&t=37s
[1] 14694
[2] 14695
[3] 14696
[root@soappirat ~]# [debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.youtube.com/watch?v=KSBGBd9IY0U']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.11.05
[debug] Python version 2.7.5 (CPython) - Linux-3.10.0-693.2.2.el7.x86_64-x86_64-with-centos-7.7.1908-Core
[debug] exe versions: ffmpeg 2.8.15, ffprobe 2.8.15
[debug] Proxy map: {}
[youtube] KSBGBd9IY0U: Downloading webpage
[youtube] KSBGBd9IY0U: Downloading video info webpage
[youtube] {18} signature length 107, html5 player vflu-qpOO
[youtube] {22} signature length 107, html5 player vflu-qpOO
[youtube] {43} signature length 107, html5 player vflu-qpOO
[youtube] {137} signature length 107, html5 player vflu-qpOO
[youtube] {248} signature length 107, html5 player vflu-qpOO
[youtube] {136} signature length 103, html5 player vflu-qpOO
[youtube] {247} signature length 107, html5 player vflu-qpOO
[youtube] {135} signature length 107, html5 player vflu-qpOO
[youtube] {244} signature length 103, html5 player vflu-qpOO
[youtube] {134} signature length 107, html5 player vflu-qpOO
[youtube] {243} signature length 103, html5 player vflu-qpOO
[youtube] {133} signature length 107, html5 player vflu-qpOO
[youtube] {242} signature length 103, html5 player vflu-qpOO
[youtube] {160} signature length 103, html5 player vflu-qpOO
[youtube] {278} signature length 107, html5 player vflu-qpOO
[youtube] {140} signature length 107, html5 player vflu-qpOO
[youtube] {251} signature length 103, html5 player vflu-qpOO
[youtube] KSBGBd9IY0U: Downloading MPD manifest
[debug] Default format spec: bestvideo+bestaudio/best
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on u'https://manifest.googlevideo.com/api/manifest/dash/expire/1573641868/ei/LIrLXf-1GIbD1wKR776oBg/ip/<IP_ADDRESS>/id/29204605df486345/source/youtube/requiressl/yes/playback_host/r5---sn-5hne6nsk.googlevideo.com/mm/31%2C29/mn/sn-5hne6nsk%2Csn-5hnekn7d/ms/au%2Crdu/mv/u/mvi/4/pl/24/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/mt/1573619887/fvip/5/fexp/23842630/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Citag/sig/ALgxI2wwRAIgRSu6JMJ-MJ9mBJPP2xBxOWfVP-F0m0_M6ijnQNgEe-oCIE1CvbXPp9nAbVokRzJ22hiFwwUFI-2JAMSfGq2M3Pk2/lsparams/playback_host%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl/lsig/AHylml4wRAIgD5GZhqnNM3tnCCdMJyEMnFz6z8jx85Kk2o-R-ib_1xcCIDGYH_MQhRd5M_KYNmde3cclCfcNSihOabxO3mmGYVlr'
[dashsegments] Total fragments: 503
[download] Destination: Santa Barbara, Ep# 1   M073084-KSBGBd9IY0U.f137.mp4
[download]  60.4% of ~552.56MiB at 15.67MiB/s ETA 00:48^C
[2]-  Done                    list=PLV-jnXv3eCNOmWsu169vgjCTB92pePa27
[3]+  Done                    index=2
[download] 100% of 551.69MiB in 02:51
[debug] Invoking downloader on u'https://manifest.googlevideo.com/api/manifest/dash/expire/1573641868/ei/LIrLXf-1GIbD1wKR776oBg/ip/<IP_ADDRESS>/id/29204605df486345/source/youtube/requiressl/yes/playback_host/r5---sn-5hne6nsk.googlevideo.com/mm/31%2C29/mn/sn-5hne6nsk%2Csn-5hnekn7d/ms/au%2Crdu/mv/u/mvi/4/pl/24/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/mt/1573619887/fvip/5/fexp/23842630/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Citag/sig/ALgxI2wwRAIgRSu6JMJ-MJ9mBJPP2xBxOWfVP-F0m0_M6ijnQNgEe-oCIE1CvbXPp9nAbVokRzJ22hiFwwUFI-2JAMSfGq2M3Pk2/lsparams/playback_host%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl/lsig/AHylml4wRAIgD5GZhqnNM3tnCCdMJyEMnFz6z8jx85Kk2o-R-ib_1xcCIDGYH_MQhRd5M_KYNmde3cclCfcNSihOabxO3mmGYVlr'
[dashsegments] Total fragments: 269
[download] Destination: Santa Barbara, Ep# 1   M073084-KSBGBd9IY0U.f251.webm
[download] 100% of 31.96MiB in 01:23
[ffmpeg] Merging formats into "Santa Barbara, Ep# 1   M073084-KSBGBd9IY0U.mkv"
[debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:Santa Barbara, Ep# 1   M073084-KSBGBd9IY0U.f137.mp4' -i 'file:Santa Barbara, Ep# 1   M073084-KSBGBd9IY0U.f251.webm' -c copy -map '0:v:0' -map '1:a:0' 'file:Santa Barbara, Ep# 1   M073084-KSBGBd9IY0U.temp.mkv'
Deleting original file Santa Barbara, Ep# 1   M073084-KSBGBd9IY0U.f137.mp4 (pass -k to keep)
Deleting original file Santa Barbara, Ep# 1   M073084-KSBGBd9IY0U.f251.webm (pass -k to keep)

[1]+  Done                    youtube-dl -v https://www.youtube.com/watch?v=KSBGBd9IY0U
[root@soappirat ~]# https://www.youtube.com/watch?v=KSBGBd9IY0U&list=PLV-jnXv3eCNOmWsu169vgjCTB92pePa27&index=2&t=37s

Description
WRITE DESCRIPTION HERE
I have a site (soappirat.es) that uses Kernel Video Sharing (KVS) script. When I try to import a video using the KVS YouTube Grabber plugin, the log reports the following error: "ERROR: video page gives unexpected error:Invalid response from youtube-dl."
When I emailed KVS support about the issue, I was told it was a youtube-dl bug. When I use youtube-dl from the command line using the "-v" flag--you see the output above. According to KVS: "It indeed works in download mode, but doesn't provide valid JSON content when using --dump-json option. KVS grabbers work in 2 steps, they first analyze the parsed info to identify whether the parsed video is OK, then start downloading it. This particular video fails during the 1st phase. The created JSON is not valid and can't be parsed, e.g. you can see that when you open it with Firefox for example, which has built-in JSON parser.
If this issue is fixed in youtube-dl, KVS grabber should work fine."
I tried to run youtube-dl -v --dump-json [youtube URL], but the output exceeds my command windows capacity to hold it all.
jdr

You've been already answered.

What? No I have NOT been answered.
The last time I was told that I am either using an outdated version of youtube-dl, which I am NOT; or my IP has been banned by youtube, which it has NOT; or it is a problem with the script, KVS. I have spoken with KVS and according to them, again, the created JSON isn't valid and can't be parsed.
I provided all of this in the message above. Why ask for all that information and just ignore it? Can you at least confirm that you know for a fact the JSON creation process employed by youtube-dl has NOT been compromised at all?
jdr

Once again: you must provide verbose log that clearly demonstrates the problem not the log of a successful run.