Steam crashes on launch

Describe the bug
steam.sh[6511]: Running Steam on nixos 24.05 64-bit
steam.sh[6511]: STEAM_RUNTIME is enabled automatically
setup.sh[6589]: Steam runtime environment up-to-date!
steam.sh[6511]: Steam client's requirements are satisfied
tid(6643) burning pthread_key_t == 0 so we never use it
[2024-01-25 14:28:44] Startup - updater built Jan 13 2024 00:51:43
[2024-01-25 14:28:44] Startup - Steam Client launched with: '/home/kuper/.local/share/Steam/ubuntu12_32/steam'
01/25 14:28:44 Init: Installing breakpad exception handler for appid(steam)/version(1705108172)/tid(6643)
[2024-01-25 14:28:44] Loading cached metrics from disk (/home/kuper/.local/share/Steam/package/steam_client_metrics.bin)
[2024-01-25 14:28:44] Failed to load cached hosts file (File 'update_hosts_cached.vdf' not found), using defaults
[2024-01-25 14:28:44] Using the following download hosts for Public, Realm steamglobal
[2024-01-25 14:28:44] 1. https://cdn.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2024-01-25 14:28:44] Verifying installation...
[2024-01-25 14:28:44] Verification complete

Steam logging initialized: directory: /home/kuper/.local/share/Steam/logs

XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xf0cc47c0
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xf0cc2fa0
steamwebhelper.sh[7085]: Runtime for steamwebhelper: defaulting to /home/kuper/.local/share/Steam/ubuntu12_64/steam-runtime-heavy
steamwebhelper.sh[7085]: glibc >= 2.34, partially disabling sandbox until CEF supports clone3()
CAppInfoCacheReadFromDiskThread took 0 milliseconds to initialize
Steam Runtime Launch Service: starting steam-runtime-launcher-service
Steam Runtime Launch Service: steam-runtime-launcher-service is running pid 7173
bus_name=com.steampowered.PressureVessel.LaunchAlongsideSteam
src/steamUI/steamuisharedjscontroller.cpp (545) : Failed creating offscreen shared JS context
src/steamUI/steamuisharedjscontroller.cpp (545) : Failed creating offscreen shared JS context
01/25 14:29:34 Init: Installing breakpad exception handler for appid(steam)/version(1705108172)/tid(6643)
assert_20240125142934_28.dmp[7344]: Uploading dump (out-of-process)
/tmp/dumps/assert_20240125142934_28.dmp
assert_20240125142934_28.dmp[7344]: Finished uploading minidump (out-of-process): success = yes
assert_20240125142934_28.dmp[7344]: response: CrashID=bp-ec5a9d20-922a-4d0c-a3e8-371292240125
assert_20240125142934_28.dmp[7344]: file ''/tmp/dumps/assert_20240125142934_28.dmp'', upload yes: ''CrashID=bp-ec5a9d20-922a-4d0c-a3e8-371292240125''
[2024-01-25 14:31:10] Background update loop checking for update. . .
[2024-01-25 14:31:10] Checking for available updates...
[2024-01-25 14:31:10] Downloading manifest: https://cdn.steamstatic.com/client/steam_client_ubuntu12?t=58964695
[2024-01-25 14:31:10] Manifest download: send request
[2024-01-25 14:31:11] Manifest download: waiting for download to finish
[2024-01-25 14:31:12] Manifest download: finished
[2024-01-25 14:31:12] Download skipped: /client/steam_client_ubuntu12?t=58964695 version<PHONE_NUMBER>, installed version<PHONE_NUMBER>, existing pending version 0
[2024-01-25 14:31:12] Nothing to do

Steps To Reproduce
Steps to reproduce the behavior:

Launch steam from terminal

Screenshots

Additional context
The options in the screenshot did not solve this problem.
Steam.nix
{ pkgs, ... }: {
  programs.steam.enable = true;
  programs.gamescope.enable = true;
  environment.systemPackages = with pkgs; [
    (steam.override {
      extraPkgs = pkgs: with pkgs; [ pango harfbuzz libthai ];
    })
  ];
}

Notify maintainers
@jagajaga
@jonringer
Metadatat
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.72, NixOS, 24.05 (Uakari), 24.05.20240113.9b19f5e`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

got same iissue

Same issue as well
nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.52-valve19, NixOS, 24.05 (Uakari), 24.05.20240306.9df3e30`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - nixpkgs: `/nix/store/gig8j85kj7ybjy3ksn6k3aich8j2k59y-source`

I had a similar signature, it turned out to be dangling symlinks  ~/.local/share/fonts and ~/.local/share/icons that bwrap was complaining about. Removing those fixed it.
FWIW, here is what ~/.local/share/Steam/logs/steamwebhelper.log from a good run looks like:
steamwebhelper.sh[100988]: === Sat Mar 30 09:33:12 PM PDT 2024 ===
steamwebhelper.sh[100988]: Starting steamwebhelper under bootstrap sniper steam runtime at /home/jack/.local/share/Steam/ubuntu12_64/steam-runtime-sniper
x86_64-linux-gnu-capsule-capture-libs: warning: Dependencies of libnvidia-pkcs11.so.550.67 not found, ignoring: Missing dependencies: Could not find "libcrypto.so.1.1" in LD_LIBRARY_PATH "/lib64:/lib32:/steamrt/amd64/lib/x86_64-linux-gnu:/steamrt/amd64/lib:/steamrt/amd64/usr/lib/x86_64-linux-gnu:/steamrt/amd64/usr/lib:/steamrt/i386/lib/i386-linux-gnu:/steamrt/i386/lib:/steamrt/i386/usr/lib/i386-linux-gnu:/steamrt/i386/usr/lib:/run/opengl-driver/lib:/run/opengl-driver-32/lib:/nix/store/n6iy5fhpmlcj5pip44qgh3gl2mxg49yd-pipewire-1.0.4-jack/lib", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
x86_64-linux-gnu-capsule-capture-libs: warning: Dependencies of libnvidia-pkcs11.so.550.67 not found, ignoring: Missing dependencies: Could not find "libcrypto.so.1.1" in LD_LIBRARY_PATH "/lib64:/lib32:/steamrt/amd64/lib/x86_64-linux-gnu:/steamrt/amd64/lib:/steamrt/amd64/usr/lib/x86_64-linux-gnu:/steamrt/amd64/usr/lib:/steamrt/i386/lib/i386-linux-gnu:/steamrt/i386/lib:/steamrt/i386/usr/lib/i386-linux-gnu:/steamrt/i386/usr/lib:/run/opengl-driver/lib:/run/opengl-driver-32/lib:/nix/store/n6iy5fhpmlcj5pip44qgh3gl2mxg49yd-pipewire-1.0.4-jack/lib", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
x86_64-linux-gnu-capsule-capture-libs: warning: Dependencies of libnvidia-pkcs11.so.550.67 not found, ignoring: Missing dependencies: Could not find "libcrypto.so.1.1" in LD_LIBRARY_PATH "/lib64:/lib32:/steamrt/amd64/lib/x86_64-linux-gnu:/steamrt/amd64/lib:/steamrt/amd64/usr/lib/x86_64-linux-gnu:/steamrt/amd64/usr/lib:/steamrt/i386/lib/i386-linux-gnu:/steamrt/i386/lib:/steamrt/i386/usr/lib/i386-linux-gnu:/steamrt/i386/usr/lib:/run/opengl-driver/lib:/run/opengl-driver-32/lib:/nix/store/n6iy5fhpmlcj5pip44qgh3gl2mxg49yd-pipewire-1.0.4-jack/lib", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
pressure-vessel-wrap[101008]: W: "/run/current-system/sw/bin/getent" is unlikely to appear in "/run/host"
pressure-vessel-wrap[101008]: W: Found more than one possible libdrm data directory from provider
exec ./steamwebhelper --no-sandbox -lang=en_US -cachedir=/home/jack/.local/share/Steam/config/htmlcache -steampid=96893 -buildid=1709846872 -steamid=x -logdir=/home/jack/.local/share/Steam/logs -uimode=7 -startcount=1 -steamuniverse=Public -realm=Global -clientui=/home/jack/.local/share/Steam/clientui -steampath=/home/jack/.local/share/Steam/ubuntu12_32/steam -launcher=0 -no-restart-on-ui-mode-change --enable-smooth-scrolling --password-store=basic --log-file=/home/jack/.local/share/Steam/logs/cef_log.txt --disable-quick-menu --disable-features=DcheckIsFatal
[0331/043313.309600:ERROR:context.cc(100)] The browser_subprocess_path directory (./steamwebhelper) is not an absolute path. Defaulting to empty.
[0331/043313.326263:WARNING:crash_reporting.cc(278)] Failed to set crash key: UserID with value: 0
[0331/043313.326333:WARNING:crash_reporting.cc(278)] Failed to set crash key: BuildID with value:<PHONE_NUMBER>
[0331/043313.326346:WARNING:crash_reporting.cc(278)] Failed to set crash key: SteamUniverse with value: Public
[0331/043313.326350:WARNING:crash_reporting.cc(278)] Failed to set crash key: Vendor with value: Valve
[0331/043313.326354:WARNING:crash_reporting.cc(278)] Failed to set crash key: Platform with value: Linux
[0331/043313.326913:INFO:crash_reporting.cc(239)] Crash reporting enabled for process: browser
[0331/043313.327823:WARNING:task_impl.cc(32)] No task runner for threadId 0
[0331/043313.328598:WARNING:task_impl.cc(32)] No task runner for threadId 0
[0331/043313.345246:WARNING:crash_reporting.cc(278)] Failed to set crash key: UserID with value: x
[0331/043313.345306:WARNING:crash_reporting.cc(278)] Failed to set crash key: BuildID with value:<PHONE_NUMBER>
[0331/043313.345311:WARNING:crash_reporting.cc(278)] Failed to set crash key: SteamUniverse with value: Public
[0331/043313.345315:WARNING:crash_reporting.cc(278)] Failed to set crash key: Vendor with value: Valve
[0331/043313.345328:WARNING:crash_reporting.cc(278)] Failed to set crash key: Platform with value: Linux
[0331/043313.345320:WARNING:crash_reporting.cc(278)] Failed to set crash key: UserID with value: x
[0331/043313.345367:WARNING:crash_reporting.cc(278)] Failed to set crash key: BuildID with value:<PHONE_NUMBER>
[0331/043313.345372:WARNING:crash_reporting.cc(278)] Failed to set crash key: SteamUniverse with value: Public
[0331/043313.345376:WARNING:crash_reporting.cc(278)] Failed to set crash key: Vendor with value: Valve
[0331/043313.345386:WARNING:crash_reporting.cc(278)] Failed to set crash key: Platform with value: Linux
[0331/043314.376982:INFO:crash_reporting.cc(262)] Crash reporting enabled for process: gpu-process
[0331/043314.424479:WARNING:sandbox_linux.cc(385)] InitializeSandbox() called with multiple threads in process gpu-process.
[0331/043314.503357:WARNING:crash_reporting.cc(278)] Failed to set crash key: UserID with value: x
[0331/043314.503422:WARNING:crash_reporting.cc(278)] Failed to set crash key: BuildID with value:<PHONE_NUMBER>
[0331/043314.503426:WARNING:crash_reporting.cc(278)] Failed to set crash key: SteamUniverse with value: Public
[0331/043314.503430:WARNING:crash_reporting.cc(278)] Failed to set crash key: Vendor with value: Valve
[0331/043314.503433:WARNING:crash_reporting.cc(278)] Failed to set crash key: Platform with value: Linux
[0331/043314.503904:INFO:crash_reporting.cc(239)] Crash reporting enabled for process: utility
Forced create but already created for SharedObjectEvent

for findability, to transcribe the error message in the screenshot:

Steamwebhelper is not responding
steamwebhelper, a critical Steam component, is not responding. The Steam UI will not be usable.


A very small image with very fast build

After reading 5x Faster Rust Docker Builds with cargo-chef. Indeed, it was faster. But still produce big image. So I decide to use scratch as base image.
cargo-chef combined with scratch is awesome.
ARG BASE_IMAGE=rust:1.52-slim-buster
ARG VCS_REVISION

FROM $BASE_IMAGE as planner
WORKDIR app
RUN cargo install cargo-chef --version 0.1.20
COPY . .
RUN cargo chef prepare  --recipe-path recipe.json

FROM $BASE_IMAGE as cacher
WORKDIR app
RUN cargo install cargo-chef --version 0.1.20
COPY --from=planner /app/recipe.json recipe.json
RUN cargo chef cook --release --recipe-path recipe.json

FROM $BASE_IMAGE as builder
WORKDIR app
COPY . .
# Copy over the cached dependencies
COPY --from=cacher /app/target target
COPY --from=cacher $CARGO_HOME $CARGO_HOME
# We need static linking for smaller image.
RUN rustup target add x86_64-unknown-linux-musl
ARG VCS_REVISION
# `cargo build` doesn't work in static linking, need `cargo install`
RUN VCS_REVISION=$VCS_REVISION cargo install --target x86_64-unknown-linux-musl --path .

FROM scratch
WORKDIR app
COPY --from=builder /usr/local/cargo/bin/awesomeapp .
CMD ["./awesomeapp"]

Size comparison, with these dependencies:
rocket = { git = "https://github.com/SergioBenitez/Rocket", rev = "3a7559e", default-features = false }
rocket_contrib = { git = "https://github.com/SergioBenitez/Rocket", rev = "3a7559e" }
serde = { version = "1.0", features = ["derive"] }

scratch : 8.63MB
rust:1.52-slim-buster: 629MB
rust:1.52: 1.24GB

Hi @azzamsa!
Using scratch as base will indeed give you a tiny image, but it requires changing the toolchain target which is not always desired or possible.
I am happy to add a mention to the README but this is not the default configuration I'd recommend for everybody.

Yes. x86_64-unknown-linux-musl also still in 2 tier support.
Thank you for cargo-chef.

Have you tried using e.g. ubuntu or debian:slim as an output image? They are glibc-based, but much smaller than rust image (and rust toolchain is not needed in runtime anyway).

@MikailBag nice idea. I tried to use FROM debian:buster-slim as runtime the end result was 77.4MB.
So, to recap again.

scratch : 8.63MB
debian:buster-slim: 77.4MB
rust:1.52-slim-buster: 629MB
rust:1.52: 1.24GB

Sorry for the noise, but another option is gcr.io/distroless/cc, which is 20MB according to docker history

Why, I never heard of it. It's very awesome!
Using gcr.io/distroless/base-debian10 won't work, it needs a musl binary. However using gcr.io/distroless/cc-debian10 works.
The former produced 27.3MB image (however it doesn't work), the latter produced 29.3MB image.

scratch : 8.63MB
distroless/cc-debian10: 29.3MB
debian:buster-slim: 77.4MB
rust:1.52-slim-buster: 629MB
rust:1.52: 1.24GB

@LukeMathWalker I think the WORKDIR app is not needed in the last build. I just copy the binary from builder.
I tried to remove it, and the image still works. Should I make a PR?

I prefer to segregate the artifacts copied into the base image into their own folder - it makes things clearer if you end up SSH-ing into a container. You can use the root directory as well, it's a style preference.


code is not displayed correctly

my code is:
// 18.2.0
import { useEffect } from "react"
// 11.8.0
import hljs  from 'highlight.js'
// 5.0.5
import { marked } from "marked";
// 1.0.2
import { markedHighlight } from "marked-highlight";
// 1.0.1
import { mangle } from "marked-mangle";

export default function Index() {

  useEffect(() => {
    marked.use({ headerIds: false,}, mangle(), markedHighlight({
      langPrefix: 'hljs language-',
      highlight(code, lang) {
        const language = hljs.getLanguage(lang) ? lang : 'plaintext';
        return hljs.highlight(code, { language }).value;
      }
    }));
    let res = marked.parse('# Marked in the browser\n\nRendered by **marked**.\n```java\nInteger a = 3;\n```\n');
    console.log(res)
    document.getElementById('test-m').innerHTML = res;
  }, [])
  return (
    <>

    </>
  )
}

result:

Can you help me point out where I am wrong?

Seems like it is something with react. Removing react seems to make it work.
https://runkit.com/embed/uq1ebjn57tfp

The same problem exists with Svelte. The deprecated way still works perfectly fine:
marked.setOptions({
  highlight: function(code, language) {
    const validLanguage = hljs.getLanguage(language) ? language : 'plaintext';
    return hljs.highlight(code, { language: validLanguage }).value;
  }
});

Content:
```elixir
IO.puts("Hello, world!")
```

Generates:

IO.puts("Hello, world!")

The new way:
marked.use(markedHighlight({
  langPrefix: 'hljs language-',
  highlight(code, lang) {
    const language = hljs.getLanguage(lang) ? lang : 'plaintext';
    return hljs.highlight(code, { language }).value;
  }
}));

Content:
```elixir
IO.puts("Hello, world!")
```

Generates:

<span class="hljs-title class_">IO</span>.puts <span class="hljs-string">&quot;Hello, world!&quot;</span>

Can you create a repo that reproduces this?

So, it's a weird thing. While trying to reproduce it in a new repo, I realized where it's happening, and it appears to be unrelated to the new way or the legacy way.
The code is here: https://github.com/icebaker/myapp
Here's what's going on: If you update your code while your server is in development mode, the page automatically updates to reflect your changes. But for some reason, this seems to mess up the code. A simple page refresh brings things back to normal. I've captured this in a video:
https://github.com/markedjs/marked-highlight/assets/113217272/d051b61b-fc21-48c6-a8e6-148713e3397c
Note that, for some reason, this only happens with marked (legacy or new way). If I'm using highlight.js purely, it does not mess up the rendering.

This looks like an issue in svelte. marked returns the correct html so there is nothing we can change in marked or marked-highlight to fix this.

Alright, digging deeper into debugging, I've discerned the root cause. Indeed, it's a problem linked to the new technique, yet it doesn't pertain to marked-highlight. Instead, the issue stems from the shift from setOptions to use.
With setOptions, we have the capability to invoke it multiple times, and it will invariably replace the existing option.
On the other hand, with use, if it's invoked a second time, it will append the extension twice. If invoked yet again, it's added a third time, and so forth.
That's the reason it "incorrectly" renders the code—it applies a highlight onto an already highlighted portion.
When dealing with setOptions:
marked.setOptions({highlight: ...});
marked.parse(code);
// IO.puts("Hello, world!")

marked.setOptions({highlight: ...});
marked.parse(code);
// IO.puts("Hello, world!")

marked.setOptions({highlight: ...});
marked.parse(code);
// IO.puts("Hello, world!")

When dealing with marked.use:
marked.use(markedHighlight({...}));
marked.parse(code);
// IO.puts("Hello, world!")

marked.use(markedHighlight({...}));
marked.parse(code);
// IO.puts("Hello, world!")

marked.use(markedHighlight({...}));
marked.parse(code);
// <span class="hljs-title class_">IO</span>.puts(<span class="hljs-string">&quot;Hello, world!&quot;</span>)

The easiest way to simulate this behavior:
import hljs from 'highlight.js';
import * as marked from 'marked';
import { markedHighlight } from 'marked-highlight';

const extension = markedHighlight({
  langPrefix: 'hljs language-',
  highlight(code, lang) {
    const language = hljs.getLanguage(lang) ? lang : 'plaintext';
    return hljs.highlight(code, { language }).value;
  }
});

marked.use(extension);
marked.use(extension);
marked.use(extension);

marked.parse(code);

I'm believe that most modern reactive frameworks like React and Svelte reported here, have this tendency of calling things multiple times. Just using the same component twice on the same page, or hopping from one page to another in a Single Page Application, could trigger this accumulation of extensions because of the use behavior.
So, my suggestion would be to tweak this approach to make it more compatible with modern frameworks. I think we're likely to see more of this type of issue in the future.
Here are some potential approaches that come to mind:

We could mention explicitly in the documentation that invoking use twice will register your extension twice, leading to its invocation twice over the same content recursively. However, I don't see this as a viable long-term solution. It might prompt people to devise various workarounds to manage this in reactive applications, such as developing a kind of singleton or global control to ensure use is registered only once.

We could make marked instantiable. Currently, marked is global, meaning if two areas import it and set different extensions for the same task, but with varying configurations, both will be invoked, creating conflicting outputs. I think this could be a solid long-term approach. It provides isolation and flexibility for utilizing different instances of marked in the same application, configured differently for distinct purposes. Implementing this, while ensuring backward compatibility, may be a challenge.

We could provide a mechanism for users to easily identify if an extension is already registered (globally). Could we offer identifiers to extensions to prevent them from being added more than once? For example:

marked.use('extension-a', highlightExtension);
marked.use('extension-b', highlightExtension);

Or:
marked.use({...highlightExtension, ...{id: 'extension-a'}});
marked.use({...highlightExtension, ...{id: 'extension-b'}});

Thoughts?

See https://github.com/markedjs/marked/issues/907

Thanks for sharing; this is great context!
So, for those struggling to get this working with reactive frameworks, the simple workaround is just to encapsulate marked into a singleton, and you're good to go:
import * as marked from 'marked';
import { markedHighlight } from 'marked-highlight';
import hljs from 'highlight.js';

const Marked = {
  instantiated: false,

  setup: () => {
    marked.setOptions({ mangle: false, headerIds: false });

    marked.use(
      markedHighlight({
        langPrefix: 'hljs language-',
        highlight(code, lang) {
          const language = hljs.getLanguage(lang) ? lang : 'plaintext';
          return hljs.highlight(code, { language }).value;
        }
      })
    );

    Marked.instantiated = true;
  },

  instance: () => {
    if (!Marked.instantiated) Marked.setup();

    return marked;
  }
};

export default Marked;

And then:
import Marked from 'Marked';

const html = Marked.instance().parse(code);

Here's the "fix" in the demo repo: commit d59f1a6

Ya or use marked.setOptions(marked.getDefaults()) to reset the options at the beginning.

yah, first render is correct, but rerender is not because marked-highlight decodes the part of the code that has already been decrypted. LoL
my crazy solution. This not working if markdown has class 'hljs'
marked.use(
  markedHighlight({
    langPrefix: 'hljs language-',
    highlight(code, lang) {
      if(code.includes('class="hljs') return // 🤣🤣🤣 that crazy
      const language = hljs.getLanguage(lang) ? lang : 'plaintext';
      return hljs.highlight(code, { language }).value;
    }
  })
);

This should be fixed with https://github.com/markedjs/marked/pull/2831

Should be fixed in marked v5.1.0


while editing subsection view of json doc, cursor always moves to the end of doc

Describe the bug
While editing subsection view of json doc, cursor always moves to the end of doc.
To Reproduce
Create doc/window with json that has sub-objects/dict, ie:
{
    "a": {
        "s": {
            "hello": 2
        }
    }
}

On the left side (in the above JSON example) click the > { } s part.
Then on the right start editing the "hello" part of the subview (ie: only a part of the json is visible due to clicking the > { } s part.
The cursor jumps to bottom of document after every time you type a single character.
Expected behavior
Cursor stays where it is at so you can continue typing.
Screenshots
Place cursor in middle of "hello":

I typed a capital T and cursor the moved to bottom of document:

Desktop (please complete the following information):

OS: MacOS 13.2.1
Browser Safari
Version 1.9.0 (25)

It’s a known issue.
I’m planing a new version in which the edition on the right pane will no longer automatically being reflected on the left pane. It should solve the many problems, this one included, resulting from the syncing between both panes.

I actually like that feature, it's kind of sad your removing it.


adds the ability to download scoped packages

Description
adds the ability to download scoped packages
Motivation and Context
fixes #146
How Has This Been Tested?
yes tests have been added
Screenshots (if appropriate):

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)

Checklist:

[x] My code follows the code style of this project.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

you get a green build 🍏 you get a green build 🎄 😄

@burjua you can install it using the git ssh url npm install git://github.com/gabrielcsapo/local-npm.git#master


Implement gq<motion> code formatting command for motions

I'm not familiar with the procedure -- is there anything I need to do get this merged?

No, everything is fine. We're going to make a release in a few days, so, for now, it's a feature freeze. I've labeled this PR as "merge approved" and it'll be merged right after the release.

Related bug: https://youtrack.jetbrains.com/issue/VIM-1053


some bugs with bulk_load function

There may be some bugs with bulk_load function, when bulk_load size isn't very great (so the root node will be a leaf node at this time).
int main(int argc, char** argv) {
  size_t bulk_cnt = std::stol(argv[1]);

  Tree<uint64_t, uint64_t>* index = generate_index<uint64_t, uint64_t>();
  auto values = new std::pair<uint64_t, uint64_t>[bulk_cnt];
  for(size_t i = 0; i < bulk_cnt; i++) {
    values[i].first = i;
    values[i].second = i;
  }

  index->bulk_load(values, bulk_cnt);

  for(size_t i = 0; i < bulk_cnt; i++) {
    size_t value;
    if(index->search(i, &value)) {
      if(value != i) std::cout << "Error find: " << i << value << std::endl;
    } else {
      std::cout << "Fail find: " << i << " " << value << std::endl;
    }
  }

  my_alloc::BasePMPool::ClosePool();
  return 0;
}

hi，Have you solved this problem? I also encountered the same problem. During the bulk_load process, a segfault occurred. After checking, I found that the segfault occurred in the delete_node function.
void bulk_load(const V values[], int num_keys) {
if (stats_.num_keys > 0 || num_keys <= 0) {
return;
}
delete_node(root_node_); // delete the empty root node from constructor(segment fault)
thx！


ReferenceError: Cannot access 'thisLayer' before initialization

Hi there,
Thanks for providing this package, it makes developing After Effects libraries with TypeScript much easier :)
Unfortunately I get an error when importing the package inside Jest unit tests:
ReferenceError: Cannot access 'thisLayer' before initialization

Having a look at your code I saw that you define thisLayer after the declaration of the Layer class, but thisLayer is also used to set the parent of a layer in the Layer constructor (line 851 in index.js). This seems to cause the error.
I am using your template create-expression-lib where Jest unit tests are included. In the index.test.ts file you are mocking this package, but from the docs this should not be necessary: https://github.com/motiondeveloper/create-expression-lib#testing

If I do the same mocking in my Jest tests as in index.test.ts I can get rid of the error. But of course the mocked constructors only return undefined values, so my tested logic fails :/ Any hint on how this package should/can be used in Jest tests would be great :)

Hey @coeing, thanks for bringing this up!
I encountered this a while ago, getting the exact error you did, but thought I had solved it with the current mocking strategy:
jest.mock('expression-globals-typescript', () => ({
  Layer: jest.fn(),
  Comp: jest.fn(),
  Property: jest.fn(),
}));

As you pointed out though, it looks like I only got rid of the error without fixing the issue 😅 My bad!
I used a different mocking solution in eKeys you can check out here: https://github.com/motiondeveloper/eKeys/blob/master/src/index.test.ts
Which seemed to work in that situation, but am not sure it's the way to go - if you're able to try it out and let me know if it works in your situation that would be great.
I'll take a look at getting testing working in the template setup and let you know what I find. I'm pretty new at testing and Jest so sorry for the confusion!
As you said:

Having a look at your code I saw that you define thisLayer after the declaration of the Layer class, but thisLayer is also used to set the parent of a layer in the Layer constructor (line 851 in index.js). This seems to cause the error.

Might be a good place to start. I always thought the error came from the thisLayer definition in index.ts but you might be right in that it comes from the lib - weird that typescript didn't error but Jest does on it.
Thanks!!

I also realized it's worth clarifying (should do this in the readme too) - since this is only a mock implementation of the expressions API, it only mocks the API itself and not the implementation.
So while this is great for writing expressions, and testing your own code (like we do with ekeys), anything that relies on the expressions API outputs (for example wiggle, etc) won't be able to be tested with Jest, you'd have to do it in Ae.

That does give me the idea of getting Jest working within Ae though, which might be handy...

Otherwise I'd have to recreate the entire functionality of the API, which would be a lot 😬
Hopefully that makes sense, just wanted to clarify going forward.

Fixed the use of thisLayer in the package source in the latest release, but not sure if it will fix it.
https://github.com/motiondeveloper/expression-globals-typescript/releases/tag/v3.2.2

Hi @timhaywood ,
Thanks a lot for the quick response :)
I am no expert with Jest as well, but gathered some experience during my recent projects. As you say: Your package already mocks the objects that will be available in After Effects. So it should not be necessary to have a jest.mock call. I will try your version 3.2.2 and let you know if it works with that change :)

Unfortunately your change breaks the Layer constructor completely because it creates an infinite loop by calling itself (this.parent = new Layer()). You can easily test it with this unit test:
describe("Layer", () => {
  describe("constructor", () => {
    it("constructor should create a new instance", () => {
      const layer = new Layer();
      expect(layer).not.toBeUndefined();
    });
  });
});

Makes sense, thanks @coeing !

@coeing Layer constructor should be fixed in the latest release:
https://github.com/motiondeveloper/expression-globals-typescript/releases/tag/v3.2.3
Will get back onto tackling the actual testing issue again now, thanks for all your help! 👍

@timhaywood Thanks, will try the new release soon :) Right now our After Effects scripts I use your library for are in an early phase and a first version is currently under review. But when I continue their development I might fork your package and send you some pull requests that might be useful for other devs, too :)


Adds failing test for #93

This adds a failing test for https://github.com/whitlockjc/json-refs/issues/93
The last assertion fails.

New resolver (being committed today) fixes this.


Aws documentation

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/mango-prb/566/
Test PASSed.


Runnable samples

There are four samples, each in their own directory:

Spring PetClinic with MySQL (./samples/spring-petclinic)
Controlled Resource (./samples/controlled-resource)
Overridden Type and Provider (./samples/overridden-type-provider)
Multiple Bindings (./samples/multi-binding)

Signed-off-by: Scott Andrews<EMAIL_ADDRESS>

Originally from https://github.com/vmware-tanzu/servicebinding/tree/main/samples


🍒[5.9] Fix pointer auth issues for discarding task group operation pointer

In case we decide this is a good approach and actually solves the issue, preparing a cherry pick here...
Original PR: https://github.com/apple/swift/pull/65220

This actually was green already but I wrongly closed the PR...
We have now confirmed this DOES fix the issue.

@swift-ci please test

Very interesting bug @ktoso! I sadly have no idea how to fix the issue of getting signed pointers for the () -> () case but I just wanted to chime in since I don't know if we should go forward with the current proposed fix.
This changes the API of the addTask method where one can now write the following code and not get any warnings
await withDiscardingTaskGroup() { group in
    group.addTask {
        return 1 // This currently produces a warning since the return type is Void
    }
}

Would love if we could find another way to fix the arm64e issue without changing the API

Yeah that's unfortunate, thanks for mentioning this @FranzBusch -- I'll still see if we can do something about it perhaps


Update lodash

Hopefully I didn't miss any function changes.

Let's have 2 :+1: on this one, it's quite a dangerous PR and needs to be tested fairly well :-)
Thanks a lot for this @xPaw!

Can @JocelynDelalande, @YaManicKill or @wizardfrag self-assign this one please? :-)
(I guess that's where organization teams are interesting :p)

As I'm not myself doogfooding shout, I'm not useful for that kind of review that requires testing in real conditions, for some time, using all features to see where it may crashe.

(Taking ownership and first review then)
So far so goo, @xPaw, but I left you a few comments inline :-)
Also, just wondering, did you try something like https://github.com/lodash/lodash-migrate to migrate? Not that we should blindly rely on that, but that might give you some extra confidence that nothing was forgotten.
Thanks!

Also, just wondering, did you try something like https://github.com/lodash/lodash-migrate to migrate?

I did just now, it didn't seem to complain.

:+1:

Cool, looks good to me.
:+1: Merging.


Add estimated delivery date

This option is available in very many places these days

Lol already exists as a field


Update pypi sha

This PR updates the pypi sha for the version 0.0.62. When we bumped the version the sha changed and that build failed.  Am I right  to assume that we don't need to change the build version if the old one failed?

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


Component theme switcher

Some component libraries (like Primer) offer multiple themes for their components.
To help with previewing components in themed libraries, it should be pretty straightforward to add a 'component theme' dropdown that allows selecting a theme from a configurable list. The name of the selected theme is then passed down to the preview template so that different stylesheets (or classes) can be negotiated in whichever manner works best for the parent project.
Primer currently have one such example of a switcher like this in their Storybook.
(originally suggested by @joelhawksley over email)

I just stumbled across this today. This would really be a great addition. We probably also would like to use the concept for switching languages (currently we use params per component).

@jalyna that's good to hear - I'm planning on implementing it in as generic a way as possible so that it can be used for themes or languages or any other kind of persistent user-controlled setting. I'll try to let you know when there is something to test out :-)

👋🏻 Dropping by on this to hopefully had some insight on where we are with support for it and what would be useful from the library. Maybe a more general plugin framework would work here?
Our color modes work with a set of data attributes to determine theme, etc. I added support for these in our previews here https://github.com/primer/view_components/pull/1451
I think the bit we're missing is some way to add a param option to the top toolbar that would be persisted across previews.

This would allow us to take that data and apply it on the preview templates.

Hey @jonrohan @jalyna - I thought I'd have a bit of a bash on this and it turned out to be reasonably straightforward to implement something that I think should work for your use cases.
Rather than introducing an entirely new concept I've instead extended the display options feature to provide 'dynamic display options' that you can configure as you like to suit your requirements.
There is more detail in the PR and some first-pass documentation here - I'd be very interested in getting your feedback if you were able to take a look at it!
If you wanted to give it a test you can install directly from the dynamic-display-options branch as follows:
gem 'lookbook', git: 'https://github.com/allmarkedup/lookbook.git', branch: 'dynamic-display-options'

Let me know what you think if you get a chance to take it for a spin.

Hey all - I've just released v1.2 which has added support for 'dynamic' preview options to let you add things like language or theme switchers to you Lookbook instances.
Documentation is here but if you have any questions if/when you try it out just let me know.
Many thanks to @jonrohan for testing and feedback of this new feature!

Thank you so much 👏🏻 . I anticipated this feature for a while.
I think I found a small issue (sorry for not testing earlier):
Since we have 3 options, we will see the dropdown version of the options which does not autoselect the current option (even though it seems to be stored):
https://user-images.githubusercontent.com/5362483/196119430-a16177ee-255a-4a48-be52-26fddfc57d44.mov
This forbids me to return to the original value (e.g. light)
config.lookbook.preview_display_options = {
  theme: %w[light dark],
  locale: %w[en de ja],
  css_bundle: %w[legacy tailwind]
}

@jalyna thanks for the bug report and video example! I've just released v1.2.1 which should fix the issue. It's not ideal as it results in the dropdown menu closing after a change but I wanted to get a quick fix out and I'll work on making it a bit more user-friendly when I have a little more time.
Let me know how you get on and if it fixes the issue for you :-)

No problems @jalyna, glad it's working out for you :-)


[Bug]: System unresponsive while executing class SpawnProcess in context.py

Describe the bug
Anomalib library is installed.
Copy-pasted the code listed in "Training" section of Anomalib webpage. Program is running however there is no output.
Debugging the code with breakpoints indicate system becoming unresponsive while executing class SpawnProcess in context.py (C:\users\admin\anaconda3\envs\anomalib_env\lib\multiprocessing\context.py line 332).
Appreciate help in overcoming the issue.
Dataset
MVTec
Model
PatchCore
Steps to reproduce the behavior
Debugging the code with breakpoints in context.py (C:\users\admin\anaconda3\envs\anomalib_env\lib\multiprocessing\context.py line 332).
OS information
Win 64-bit operating system, x64-based processor
Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz   2.11 GHz
16.0 GB (15.8 GB usable)
Python version 3.12.3
Anomalib version 1,0.1
PyTorch version 2.2.3
Expected behavior
Training of the model.
Screenshots
No response
Pip/GitHub
pip
What version/branch did you use?
No response
Configuration YAML
Suggest the local folder and name of YAML file required.

Logs
No logs.

Code of Conduct

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

What you are describing is unrelated to anomalib. You have tracked the "error" down to a process that is happening in pythons multiprocessing package.
Can you please show the exact code you are executing and the exact output?

Executing the following code. Code shared in [1],
from anomalib.data import MVTec
from anomalib.models import Patchcore
from anomalib.engine import Engine
datamodule = MVTec()
model = Patchcore()
engine = Engine()
engine.fit(datamodule=datamodule, model=model)
Executing the above code line by line in debug mode. System becomes unresponsive while executing line number 337 in context.py [2]. Executing a bit further the system becomes unresponsive in line number 95 in popen_spawn_win32.py [3]. Screenshots attached.

https://anomalib.readthedocs.io/en/v1.0.1/markdown/get_started/anomalib.html
C:\users\admin\anaconda3\envs\anomalib_env\lib\multiprocessing\context.py
C:\users\admin\anaconda3\envs\anomalib_env\lib\multiprocessing\popen_spawn_win32.py

Can you try to run the code outside of spyder? In a simple console e.g.

@skaderbe, what you are sharing is not part of anomalib. Maybe you could set num_workers=1 in your datamodule to avoid multiprocessing when debugging

Closing this as it is not a bug. Feel free to re-open if you think it is still an issue. Thanks

Can you try to run the code outside of spyder? In a simple console e.g.

Installed Python 3.11.9.
Installed Anomalib and associated libraries
Downloaded MVTec datasets
Executing the training code from Anomalib webpage leaves the system unresponsive.

Closing this as it is not a bug. Feel free to re-open if you think it is still an issue. Thanks

Followed advice suggested by @alexriedel1 . However still the problem persists. Request to kindly re-open the issue and advise an solution. Thanks.

@skaderbe you could try datamodule = MVTec(num_workers=1) when debugging your code. You could create Q&A in discussions but this is not a bug or issue


Issue with LMI HMC M3F3 EXTRACTION

Hello Team,
Actually we have an issue with LMI HMC Mef3 extraction when they platform team is trying to run the mef3 data the extraction line was broken not present on the mef3 data and these scripts have to run on IBMi 7.3 QSH (K shell environment) and the last line is never produced and perl is not in the environment.
HMC data.zip
Kindly help us to get this issue resolved as early as possible.
Please find the debug log and mef3 data for your reference.

Hi, I don't understand what you're talking about so I think this is not the repository you're looking for :)

Hello Robin,
when we extract the mef3 data we will get the signature line in the last right but here we haven't received any signature line.

Hello Team,
Please close the ticket the issue is solved.


Add ericcitaire as developper of docker-java-api after plugin adoption

See https://groups.google.com/forum/#!msg/jenkinsci-dev/KpNOqLLW9b8/GV_p3r25BAAJ

Description

Plugin repository : https://github.com/jenkinsci/docker-java-api-plugin
Plugin adoption request : https://groups.google.com/forum/#!msg/jenkinsci-dev/KpNOqLLW9b8/GV_p3r25BAAJ

CC : @ydubreuil @ndeloof @oleg-nenashev
Submitter checklist for changing permissions

Always

[x] Add link to plugin/component Git repository in description above

For a newly hosted plugin only

[ ] Add link to resolved HOSTING issue in description above

For a new permissions file only

[ ] Make sure the file is created in permissions/ directory
[ ] artifactId (pom.xml) is used for name (permissions YAML file).
[ ] groupId / artifactId (pom.xml) are correctly represented in path (permissions YAML file)
[ ] Check that the file is named plugin-${artifactId}.yml for plugins

When adding new uploaders (this includes newly created permissions files)

[x] Make sure to @mention an existing maintainer to confirm the permissions request, if applicable
[x] Use the Jenkins community (LDAP) account name in the YAML file, not the GitHub account name
[x] Make sure to @mention the users being added so their GitHub account names are known if they require GitHub merge access (see below).
[x] All newly added users have logged in to Artifactory at least once

Reviewer checklist (not for requesters!)

[ ] Check this if newly added person also needs to be given merge permission to the GitHub repo (please @ the people/person with their GitHub username in this issue as well). If needed, it can be done using an IRC Bot command
[ ] Check that the $pluginId Developers team has Admin permissions while granting the access.
[ ] In the case of plugin adoption, ensure that the Jenkins Jira default assignee is either removed or changed to the new maintainer.
[ ] If security contacts are changed (this includes add/remove), ping the security officer (currently @daniel-beck) in this pull request. If an email contact is changed, wait for approval from the security officer.

There are IRC Bot commands for it

restarted the CI


[BugFix] BE crashed on invalid JSON input with jsonpath

What type of PR is this：

[x] bugfix
[ ] feature
[ ] enhancement
[ ] refactor
[ ] others

Which issues of this PR fixes ：

Fixes #https://github.com/StarRocks/starrocks/issues/10804
Problem Summary(Required) ：

The JSONReader does not return an error when the input is invalid JSON and with jsonpath, leading to the BE crash.
This PR divides the return error of JsonFunctions::extract_from_object as 2 types:

NotFound: The key is not found.
DataQualityError: the input is invalid.
When JsonFunctions::extract_from_object returns NotFound, the next key will continue to be looked up in the object. When the DataQualityError is returned, the input is valid, and the JSONReader would return the error directly.

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] I have added user document for my new feature or new function

run all

run starrocks_admit_test


[Remote Cluster State] Move remote cluster state related settings to node attrs

Description

Remote Store related settings were moved to node attrs as part of https://github.com/opensearch-project/OpenSearch/issues/8623
Remote Cluster state introduced another cluster settings. We need to move this cluster settings to node attrs as well.

Related Issues
Resolves #9813

Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[ ] Commits are signed per the DCO using --signoff
[ ] Commit changes are listed out in CHANGELOG.md file (See: Changelog)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Test Failures
org.opensearch.index.codec.MultiCodecMergeIT.testForceMergeMultipleCodecs  -- flaky test https://github.com/opensearch-project/OpenSearch/issues/9872
[org.opensearch.search.profile.query.QueryProfilerIT.testProfileQuery {p0={"search.concurrent_segment_search.enabled":"true"} p1=true}](https://build.ci.opensearch.org/job/gradle-check/24853/testReport/junit/org.opensearch.search.profile.query/QueryProfilerIT/testProfileQuery__p0___search_concurrent_segment_search_enabled___true___p1_true_/) --- flaky test https://github.com/opensearch-project/OpenSearch/issues/9869

org.opensearch.remotestore.SegmentReplicationWithRemoteStorePressureIT.testAddReplicaWhileWritesBlocked

is also flaky as mentioned here: https://github.com/opensearch-project/OpenSearch/issues/8279


fix(dataGrid): header unscrollable in infinite scroll

Closes #5948
WIP
noticed the last column is not resizable and doesn't expand in the infinite scroll story
What did you change?
packages/ibm-products-styles/src/components/Datagrid/styles/_datagrid.scss
packages/ibm-products/src/components/Datagrid/Datagrid/DatagridVirtualBody.tsx
How did you test and verify your work?
storybook

closing in favour of a better approach in another pr


Update Edit API handles namespaced attributes poorly

The Update event could use an update, since the current handling of namespaced attribute updates is both cumbersome and - in one edge case - insufficient.
Currently attributes are grouped by (unprefixed) name and attach an extra namespaceURI parameter to the value:
const update: Update = {
  element,
  attributes: { attrName: { namespaceURI: 'https://example.org/myNS', value: 'attrValue' } }
}

The cumbersome aspect is that namespaceURI is quite long to type.
The functionally insufficient aspect is that this disallows setting two different attributes from two different namespaces if they happen to be named the same, e.g. if I wanted to simultaneously set both the svg:x attribute and the sxy:x attribute from the SVG and IEC 61850-6 Annex C.1 namespaces, respectively.
I suggest changing this part of the API by separating namespaced from non-namespaced attributes in the update event like so:
const updateV2: UpdateV2 = {
  element,
  attributes: { attrName: 'attrValue' } // non-namespaced attrs only
  attributesNS: { 'https://example.org/myNS': { attrName: 'attrValue' } }
}

resulting in a new type
export type UpdateV2 = {
  element: Element;
  attributes: Partial<Record<string, string | null>>;
  attributesNS: Partial<Record<string, Partial<Record<string, string | null>>>>;
};

Since this project is still in alpha, I think the new type could actually replace the current Update type without too much trouble, which seems preferable to me. If this does not happen until the first stable version of open-scd-core is released, I would then tend more to adding a new UpdateV2 type in addition to the old one and consequently supporting the deprecated legacy API til kingdom come.

If I understand correctly an example with more attributes could look like this?
updateV2: UpdateV2 = {
  element,
  attributes: { attrName: 'attrValue' } // non-namespaced attrs only
  attributesNS: {
    'https://example.org/myNS': {
       attrName1: 'attrValue1',
       attrName2: 'attrValue2',
    },
    'https://example.org/userNS': {
       name: 'John',
       age: '42',
    }
  }
}

probably one object would look weird right? so just one attributes object and an empty key string would be the non-namespaces attribues
updateV2: UpdateV2 = {
element,
attributes: {
'': { // non-namespaced attrs only
attrName: 'attrValue'
}
'https://example.org/myNS': {
attrName1: 'attrValue1',
attrName2: 'attrValue2',
},
'https://example.org/userNS': {
name: 'John',
age: '42',
}
}
}

probably one object would look weird right? so just one attributes object and an empty key string would be the non-namespaces attribues

Yeah empty would look weird I think. I liked attributes and attributesNS because it mirrors the Web API's naming with setAttribute and setAttributeNS and is therefore a bit mnemonic for the Web API methods that we actually invoke upon receiving the events in question.

Oh yes. That makes sense!


[NuGet.org Bug]:

Impact
I'm unable to use NuGet.org
Describe the bug
I am using Visual Studio 2022 for Devlopment.I am facing issue starting from 29th March 2024 that i can't restore Nuget packages.I tried all possible options and it is not working ..Can someone look on this issue
PM> dotnet restore
Determining projects to restore...
Failed to download package 'System.Linq.Async.6.0.1' from 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg' is not valid.
End of Central Directory record could not be found.
Failed to download package 'Microsoft.Extensions.Logging.5.0.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging/5.0.0/microsoft.extensions.logging.5.0.0.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging/5.0.0/microsoft.extensions.logging.5.0.0.nupkg' is not valid.
End of Central Directory record could not be found.
Failed to download package 'Microsoft.Extensions.WebEncoders.2.0.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg' is not valid.
End of Central Directory record could not be found.
Failed to download package 'Microsoft.Extensions.Logging.5.0.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging/5.0.0/microsoft.extensions.logging.5.0.0.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging/5.0.0/microsoft.extensions.logging.5.0.0.nupkg' is not valid.
End of Central Directory record could not be found.
Failed to download package 'System.Linq.Async.6.0.1' from 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg' is not valid.
End of Central Directory record could not be found.
Failed to download package 'Microsoft.Extensions.WebEncoders.2.0.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg' is not valid.
End of Central Directory record could not be found.
Failed to download package 'Microsoft.Extensions.Logging.5.0.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging/5.0.0/microsoft.extensions.logging.5.0.0.nupkg'.
An error occurred while sending the request.
The response ended prematurely. (ResponseEnded)
Failed to download package 'Microsoft.Extensions.WebEncoders.2.0.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg'.
An error occurred while sending the request.
The response ended prematurely. (ResponseEnded)
Failed to download package 'System.Linq.Async.6.0.1' from 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg' is not valid.
End of Central Directory record could not be found.
Failed to download package 'Microsoft.Extensions.Logging.5.0.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging/5.0.0/microsoft.extensions.logging.5.0.0.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging/5.0.0/microsoft.extensions.logging.5.0.0.nupkg' is not valid.
End of Central Directory record could not be found.
Failed to download package 'Microsoft.Extensions.WebEncoders.2.0.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg' is not valid.
End of Central Directory record could not be found.
Failed to download package 'System.Linq.Async.6.0.1' from 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg' is not valid.
End of Central Directory record could not be found.
Failed to download package 'Microsoft.Extensions.Logging.5.0.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging/5.0.0/microsoft.extensions.logging.5.0.0.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging/5.0.0/microsoft.extensions.logging.5.0.0.nupkg' is not valid.
End of Central Directory record could not be found.
Failed to download package 'Microsoft.Extensions.WebEncoders.2.0.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg' is not valid.
End of Central Directory record could not be found.
Failed to download package 'System.Linq.Async.6.0.1' from 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg' is not valid.
End of Central Directory record could not be found.
C:\Program Files\dotnet\sdk\8.0.202\NuGet.targets(169,5): error : Failed to download package 'Microsoft.Extensions.WebEncoders.2.0.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg'. [C:\CCSDXP\ccs-dxp\src\Dxa.sln]
C:\Program Files\dotnet\sdk\8.0.202\NuGet.targets(169,5): error : The nupkg at 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg' is not valid. [C:\CCSDXP\ccs-dxp\src\Dxa.sln]
C:\Program Files\dotnet\sdk\8.0.202\NuGet.targets(169,5): error :   End of Central Directory record could not be found. [C:\CCSDXP\ccs-dxp\src\Dxa.sln]
C:\Program Files\dotnet\sdk\8.0.202\NuGet.targets(169,5): error : Failed to download package 'Microsoft.Extensions.Logging.5.0.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging/5.0.0/microsoft.extensions.logging.5.0.0.nupkg'. [C:\CCSDXP\ccs-dxp\src\Dxa.sln]
C:\Program Files\dotnet\sdk\8.0.202\NuGet.targets(169,5): error : The nupkg at 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging/5.0.0/microsoft.extensions.logging.5.0.0.nupkg' is not valid. [C:\CCSDXP\ccs-dxp\src\Dxa.sln]
C:\Program Files\dotnet\sdk\8.0.202\NuGet.targets(169,5): error :   End of Central Directory record could not be found. [C:\CCSDXP\ccs-dxp\src\Dxa.sln]
C:\Program Files\dotnet\sdk\8.0.202\NuGet.targets(169,5): error : Failed to download package 'System.Linq.Async.6.0.1' from 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg'. [C:\CCSDXP\ccs-dxp\src\Dxa.sln]
C:\Program Files\dotnet\sdk\8.0.202\NuGet.targets(169,5): error : An error occurred while sending the request. [C:\CCSDXP\ccs-dxp\src\Dxa.sln]
C:\Program Files\dotnet\sdk\8.0.202\NuGet.targets(169,5): error :   The response ended prematurely. (ResponseEnded) [C:\CCSDXP\ccs-dxp\src\Dxa.sln]
Failed to restore C:\CCSDXP\ccs-dxp\src\Dxa.Test\Dxa.Test.csproj (in 16.88 sec).
Failed to restore C:\CCSDXP\ccs-dxp\src\dxa.web\Dxa.Web.csproj (in 14.39 sec).
PM> dotnet restore
Determining projects to restore...
Failed to download package 'System.Linq.Async.6.0.1' from 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg' is not valid.
End of Central Directory record could not be found.
Failed to download package 'Microsoft.Extensions.WebEncoders.2.0.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg' is not valid.
End of Central Directory record could not be found.
Failed to download package 'System.Linq.Async.6.0.1' from 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg' is not valid.
End of Central Directory record could not be found.
Failed to download package 'Microsoft.Extensions.WebEncoders.2.0.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg' is not valid.
End of Central Directory record could not be found.
Failed to download package 'System.Linq.Async.6.0.1' from 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg' is not valid.
End of Central Directory record could not be found.
Failed to download package 'Microsoft.Extensions.WebEncoders.2.0.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg' is not valid.
End of Central Directory record could not be found.
Failed to download package 'System.Linq.Async.6.0.1' from 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg' is not valid.
End of Central Directory record could not be found.
Failed to download package 'Microsoft.Extensions.WebEncoders.2.0.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg' is not valid.
End of Central Directory record could not be found.
Failed to download package 'Microsoft.Extensions.WebEncoders.2.0.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg'.
An error occurred while sending the request.
The response ended prematurely. (ResponseEnded)
Failed to download package 'System.Linq.Async.6.0.1' from 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg'.
The nupkg at 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg' is not valid.
End of Central Directory record could not be found.
C:\Program Files\dotnet\sdk\8.0.202\NuGet.targets(169,5): error : Failed to download package 'Microsoft.Extensions.WebEncoders.2.0.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg'. [C:\CCSDXP\ccs-dxp\src\Dxa.sln]
C:\Program Files\dotnet\sdk\8.0.202\NuGet.targets(169,5): error : The nupkg at 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.webencoders/2.0.0/microsoft.extensions.webencoders.2.0.0.nupkg' is not valid. [C:\CCSDXP\ccs-dxp\src\Dxa.sln]
C:\Program Files\dotnet\sdk\8.0.202\NuGet.targets(169,5): error :   End of Central Directory record could not be found. [C:\CCSDXP\ccs-dxp\src\Dxa.sln]
C:\Program Files\dotnet\sdk\8.0.202\NuGet.targets(169,5): error : Failed to download package 'System.Linq.Async.6.0.1' from 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg'. [C:\CCSDXP\ccs-dxp\src\Dxa.sln]
C:\Program Files\dotnet\sdk\8.0.202\NuGet.targets(169,5): error : The nupkg at 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg' is not valid. [C:\CCSDXP\ccs-dxp\src\Dxa.sln]
C:\Program Files\dotnet\sdk\8.0.202\NuGet.targets(169,5): error :   End of Central Directory record could not be found. [C:\CCSDXP\ccs-dxp\src\Dxa.sln]
Failed to restore C:\CCSDXP\ccs-dxp\src\dxa.web\Dxa.Web.csproj (in 13.33 sec).
Failed to restore C:\CCSDXP\ccs-dxp\src\Dxa.Test\Dxa.Test.csproj (in 13.33 sec).
Repro Steps
Please try any issue on below one   The nupkg at 'https://api.nuget.org/v3-flatcontainer/system.linq.async/6.0.1/system.linq.async.6.0.1.nupkg' is not valid.
End of Central Directory record could not be found.
Expected Behavior
All the packages should be restored automatically
Screenshots
No response
Additional Context and logs
No response

Thank you for filing the issue. It looks like a connectivity issue rather than a NuGetGallery bug. Please try with a different connection. If the problem still persists, then please file a support request through https://www.nuget.org/policies/Contact.


could you please public  the code of fine-tune.py from mae and the training log？

Hi @DDKdakuan , sorry for the late reply. For fine tuning MAE we used the same script as linear, i.e. linear_XX_MAE.py (there's a --fine_tune  argument). You could also adapt the fine tuning script of official MAE, which replaces the optimizer with AdamW, and optionally uses "mixup/cutmix" augmentation. For fair comparison among methods, we didn't use "mixup/cutmix". And for the optimizer, I tested SGD similar as AdamW in our case.


add ratelimiting

First iteration of ratelimiting
Ref https://github.com/kubeshop/kusk-gateway/issues/24
For now configuration looks like this:
    x-kusk:
      rate_limit:
        max_tokens: 2
        tokens_per_fill: 2
        fill_interval: 60
        per_connection: false
        response_code: 429

thanks @povilasv - can you give a short description of how these configuration-properties work!?

@olensmar
every single request consumes a token. You specify how many max tokens your API can handle, and how often to refill them:
      rate_limit:
        max_tokens: 2
        tokens_per_fill: 2
        fill_interval: 60
        per_connection: false
        response_code: 429

For instance this configuration allows 2 requests every minute :)
Note: that this is not intended to be merged! I'm planning to refactor this to more user friendly open-api extension.


Chrome and Webview renderers freeze when 'screen-off' is used

Android Q Beta 5, Pixel 2 XL, scrcpy 1.10

I can confirm on Android Q on a Pixel 2 XL with the newest version of scrcpy.
The page just displays as blank as long as the flag is used.

see #836

That's unfortunate, but there is probably nothing scrcpy can do :/


Added LoraSx1262 Radio Library

Added LoraSx1262 Radio Library, containing bare-bones functions for Arduino Uno R3 and Arduino Uno R4.

@ArduinoBot Released and tagged!


Update package.json

Summary of Changes
Created dependency resolutions to fix the following dependabot alerts.
https://github.com/uptane/uptane.github.io/security/dependabot/1
https://github.com/uptane/uptane.github.io/security/dependabot/2
Related Issue
Closes #113
Checklist

[x] I have read and followed the project's contribution guidelines, including code style and commit message conventions.
[x] My code is well-documented, and I've updated relevant documentation.
[ ] I have added or updated test cases to ensure the code's functionality.
[x] I have tested these changes on my local environment.
[x] All tests pass, and there are no new linting errors.
[x] I have reviewed and proofread my code and the changes.
[x] The branch is up-to-date with the base branch.

Screenshots (if applicable)
Attach any screenshots or images related to the changes.
Additional Context
Add any additional context or information that might be helpful for reviewers.
Reviewer(s)
@mention any specific reviewers or tag relevant team members.

@Abhijay007 @JustinCappos I created a pull request to fix those pesky dependency vulnerabilities from dependabot. Everything looks to be working fine after following the suggestion of manually updating the trim and got packages.

@Abhijay007 according this this it is best practice to version your yarn.lock.
https://stackoverflow.com/questions/39990017/should-i-commit-the-yarn-lock-file-and-what-is-it-for

Ya according to this It's LGTM
On Mon, 30 Oct 2023, 21:15 Philip Lapczynski, @.***>
wrote:

@Abhijay007 https://github.com/Abhijay007 according this this it is
best practice to version your yarn.lock.
https://stackoverflow.com/questions/39990017/should-i-commit-the-yarn-lock-file-and-what-is-it-for
—
Reply to this email directly, view it on GitHub
https://github.com/uptane/uptane.github.io/pull/114#issuecomment-1785500829,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APLHP3UHSYPI63AG5PUPH7TYB7DRFAVCNFSM6AAAAAA6WDWGBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBVGUYDAOBSHE
.
You are receiving this because you were mentioned.Message ID:
@.***>

Here is the docu from the official yarn site about it...
Check into source control
All yarn.lock files should be checked into source control (e.g. git or mercurial). This allows Yarn to install the same exact dependency tree across all machines, whether it be your coworker’s laptop or a CI server.
Framework and library authors should also check yarn.lock into source control. Don’t worry about publishing the yarn.lock file as it won’t have any effect on users of the library.
See https://yarnpkg.com/blog/2016/11/24/lockfiles-for-all/.

Ya this makes much sense now, thanks for sharing we can keep the yarn.lock
files
On Mon, 30 Oct 2023, 21:22 Philip Lapczynski, @.***>
wrote:

Here is the docu from the official yarn site about it...
Check into source control
All yarn.lock files should be checked into source control (e.g. git or
mercurial). This allows Yarn to install the same exact dependency tree
across all machines, whether it be your coworker’s laptop or a CI server.
Framework and library authors should also check yarn.lock into source
control. Don’t worry about publishing the yarn.lock file as it won’t have
any effect on users of the library.
See https://yarnpkg.com/blog/2016/11/24/lockfiles-for-all/.
—
Reply to this email directly, view it on GitHub
https://github.com/uptane/uptane.github.io/pull/114#issuecomment-1785514655,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APLHP3QZWNR7S4HIDZP4SUTYB7EKZAVCNFSM6AAAAAA6WDWGBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBVGUYTINRVGU
.
You are receiving this because you were mentioned.Message ID:
@.***>


Missing CSS files in external

The following files are not available:
support/css/external/Inconsolata.css
support/css/external/Open+Sans.css.css
support/css/external/Montserrat.css

wolf2 folder is also missing

I've pushed the missing CSS files to the repo. I missed them when I was compiling the initial release.

I'll leave this issue open for now in case there are other supporting files that slipped under the radar.

Thanks!
Is this release in sync with the web site? PeptideAnnotator.js  is different. does this fix any bugs?

Modifications.txt is in unix file format.
loadMods from PeptideAnnotator.js expects a DOS file format to split with \r\n


computers are getters

and add a property in a "computed" object.
all in-place modifications clear this object

fixed in 06b999eb3a92e5fd1f94d7a05bdef871f601b963


[eval] set up components to be used by sxs evals

update components that will be shared with sxs evals to take props instead of using context

thanks for the review!


[SMASH] Results returned by retired endpoint differ between "new" and "old" versions of SMASH

OS
Your OS: Linux Mint 20.2
Versions
The db-sync version : tag: 12.0.0-pre3
db-sync-node-extended/bin/cardano-db-sync-extended --version
cardano-db-sync-extended 12.0.0 - linux-x86_64 - ghc-8.10
git revision 6e594658780bcd21b94808861177db1284aa168d

PostgreSQL version: 12.8
Build/Install Method
The method you use to build or install cardano-db-sync:
cardano-db-sync and smash were built with nix using official instruction docs.
 I repeated them today and I got 893 lines for new smash and 887 for old. The diff shows 5 pools that are only retired on new smash:
0c0e3830ec345fef257a98eaa24d3f221b1bb777595c3b1f5cefc7fe
24b9368615d54bbc3f4204818159c042a2085e01c5cdd119e2ac92c7

Was old smash fully synced in your examples?
I believe so. At that time it was at:

[smash-node:Info:60] [2021-10-31 12:34:09.23 UTC] Cardano.Db tip is at slot 41147138, block 3029762

which gives epoch 165, and it was not pulling any new data then.
However after starting it today and waiting for some time I see this number has changed:
curl --header "Content-Type: application/json" http://localhost:3100/api/v1/retired | jq . > old_smash_retired_pools.json

cat old_smash_retired_pools.json | wc -l
863

I think it will grow and probably reach the number you mentioned above (887).
Hmm, so it looks OK and those entries on old SMASH shouldn't be really retired.

I verified that new smash returns the correct results.
The diff shows 6 pools that are only retired on new smash:

0c0e3830ec345fef257a98eaa24d3f221b1bb777595c3b1f5cefc7fe
24b9368615d54bbc3f4204818159c042a2085e01c5cdd119e2ac92c7
3264bc4a13f433d70d97981fac2b8bb153457dc8b27f35d17de5f435
5a4ea6bd3472f3b1a2a9e0017b642fee6f8f317993d33335bc676b6e
71d4c756ad50463d75bc31a4f418a0619f377786696c768740131ff0
92885623f518d96b7d7e1a7fc9aeecebaa5501dc25df956a2c99da74

These pools should be retired but don't appear as such on old smash. Actually al above pools expired on epoch 122, so maybe some systematic issue in old smash.
and 4 pools only retired on old smash:

331e12b25988de55f70a56ee89c10f38f69dd006eb50894d3304702a
ac61417525f7b803bf3b7b93bd218aace588996a23a3505b6ea04a08
8602dfd6dfdd9a23cc7774845c97a9aea0f4ae0ee3b645606deaa864
ff333b3efd1406d92bb7d37b6bb2aef3cd08b2ba17222b9e0d4b41d6

Pools that are retired only on old smash are instances of https://github.com/input-output-hk/smash/issues/186
I also verified that the differences in Artur's example work properly for new smash.

Closing this as differences were caused by incorrect behavior of old SMASH.


Fix linter warning related to c_stdlib_version

Fix linter warning https://github.com/conda-forge/rerun-sdk-feedstock/pull/42#issuecomment-2138124253 , unless someone really cares about 10.12 compatibility (that went EOL ~5 years ago, see https://endoflife.date/macos).
Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

fyi @ruben-arts @jleibs this is a minor fix, it is ok for you to merge? thanks!


Add codebase use for loadtest

Add a new perf folder which contains the code with the code to run the locust server.
Add associated documentation on it.

on ne fait un test de charge que pour "/chains/main/blocks/head", est-ce qu'on pourrait tester d'autres choses avec locust ?

@lachhebo The review need to be done in english because the Tezos community is not only composed with French people 😄
This is the only url that we could test because we are testing the read url. (I dont know if there are other free to use url that we could use to made test due to my lack of knowledge of the Tezos blockchain :/ )


Kills and Deaths Counts

hello I want to add multiple kills and deaths count system on the server. for example, I want to separate it as KILLS, KILLSNPC and KILLSPLAYER. KILLSPLAYER is running, but the reason I added KILLSNPC NOT WORKING WHAT HAPPENS?
Murder Kills;
case CPC_KILLS: sVal.FormatVal( m_wMurders ); return true;
case CPC_KILLS: 			m_wMurders = (word)(s.GetArgVal()); 			pChar->NotoSave_Update(); 			return true;
in r_WriteChar
if ( m_wMurders ) 		s.WriteKeyVal("KILLS", m_wMurders);
in CworldImport
IMPFLAGS_CHARS
			else if ( s.IsKey("KILLS" ) && pChar->m_pPlayer ) 			{ 				pChar->m_pPlayer->m_wMurders = (word)(atoi(pArg)); 			}
in CcharPlayer_Props.tbl
ADD(KILLS,			"KILLS")
in CcharPlayer
	m_wDeaths = m_wMurders = 0;
	m_wDeathsNPC = m_wMurdersNPC = 0;
	m_wDeathsPlayer = m_wMurdersPlayer = 0;

it works when I add the same for KILLSPLAYER but not when I add it for KILLSNPC.

No problem when I do the same for deaths.
DEATHS, DEATHSPLAYER, DEATHSNPC
the problem only occurs when adding KILLSNPC.
console output ;
22:36:ERROR:Undefined keyword 'killsnpc'

In CCharPlayer_Props.tbl you need to make sure the it's sorted in alphabetically, if not it doesn't see the command.

Evet, alfabetik sıraya göre yapınca sorun çözüldü. Teşekkür ederim.


Refs/heads/sarathsanthosh8078 patch 1

new programme

thank you very usefull

thank you

thank you useful knowledge


Even Better TOML default configuration

Where do I find Even Better TOML's default configuration?
From what I can tell, it is different from taplo-cli's dafult configuration, which appears to be the one described here: https://taplo.tamasfe.dev/configuration/formatter-options.html
Here is my reason for thinking this. The following file was formatted with Even Better TOML: https://github.com/trailofbits/test-fuzz/blob/44a6c11b0610d4b6c7fdd2c9f55137a0cd23e4ea/test-fuzz/Cargo.toml
But if you format it with taplo-cli, the indentation of lines 38 and 39 changes to 2 spaces.

Thanks for the question!
Given you talk about Even Better TOML I'm assuming you're using VS Code as your editor. I'm not familiar with it, but it probably has some general settings for LSP client requests, in particular for textDocument/formatting, in particular for its options, and in particular the value of tabSize which is probably 4 by default. That's the default in Emacs for TOML files (and that's what is used by eglot to fill that option in the LSP client request). There's probably a way to change this settings somewhere in VS Code and it's probably called "Tab Size".

Thanks very much for your reply, @ia0.

I'm assuming you're using VS Code as your editor.

That's correct.

I'm not familiar with it, but it probably has some general settings for LSP client requests...

Please forgive my naiveté, but it sounds like your saying the VS Code extension should use the same default configuration as taplo-cli, but that some of those settings may be overridden by the LSP infrastructure?
If that's correct, could you please point me to the code where that would generally occur? I'm presuming that by looking at that code, it should be possible to enumerate (or at least get a sense for) which settings could be overridden(?).

Please forgive my naiveté, but it sounds like your saying the VS Code extension should use the same default configuration as taplo-cli, but that some of those settings may be overridden by the LSP infrastructure?

No, there's no overriding. Let's decompose what happens when you want to format from VS Code:

VS Code will build some formatting options with at least 2 fields: tabSize (Size of a tab in spaces) and insertSpaces (Prefer spaces over tabs). This is where you get the value 4 for tabSize.
VS Code will build a formatting request with those options and send it to taplo.
Taplo will read the request and respond with how to format the document.

When using taplo-cli, there is no formatting options, so taplo-cli has its own internal values, which don't need to be the same as LSP clients like VS Code, and in this case (same with Emacs) they disagree. Taplo uses 2 spaces by default (configurable in the taplo.toml file).
There's sadly no way to have a single configuration for both because of how LSP is designed (the 2 fields above are required so VS Code has to take a decision). If your editor is configurable like Emacs, you could in theory read the taplo.toml yourself and update tabSize but that's crazy. The simplest option (and that's what I do) is to tell VS Code (Emacs in my case) that for TOML files (or all files if you want) the tab size is 2 and not 4. Alternatively, you can tell Taplo to use 4.

Thanks for the detailed explanation!


Fix logging of password reset failures

Always log the validation errors when a password reset fails. Before, these were only being logged if the user's details had been persisted to the database. I suspect this was never true, because the record had just failed validation and so was never in a persisted state when this check was run.
We're currently trying to debug why a user cannot log into Signon, and these event logs are missing even though the user has reported validation errors and we can see that they have visited the password reset page.
It's not clear from the original commit (fe7ff13) why this check was necessary.

Here's what it looks like in the logs:

I'm going to merge this to see if it helps us debug the problem for this user. I've tested valid and invalid password resets and haven't seen any problems so I think it's safe to deploy.
@rubenarakelyan - let me know if you have any suggestions or ideas about why that line was there.

I have no idea why that condition was there but it makes sense to remove it since invalid data will never be persisted anyway. I wonder if it was an attempt to filter out errors other than ones to do with invalid data...

I have no idea why the condition was there but it makes sense to remove it since invalid data will never be persisted anyway. I wonder if it was an attempt to filter out errors other than ones to do with invalid data...


Investigate more performant scriptable terrain culling

Explorer Alpha build version:
Main
Issue Description:
A large portion of our frame time  is spent culling, more specifically the trees. In the capture:

All other foliage is disabled
The lod bias is increased, this reduces the overall number of trees so performance is improved

Ultrimately the LOD BIAS does not solve the problem since it is related to the culling of each tree.

Capture:
https://drive.google.com/file/d/1d77pRMMyi3OnIVkGyEs4myqC6l2ddARp/view?usp=sharing
Steps to reproduce:

Jump in
Disable everything but trees
Streaming OFF
Fire up the profiler
Look at the highest usage of frame time

The culling is internal to unity, I would not invest much time here since it is already very fast


PowerRename doesn't integrate on default context menu of windows 11

Microsoft PowerToys version
0.63.0
Running as admin

[X] Yes

Area(s) with issue?
PowerRename
Steps to reproduce
PowerRename is no longer displayed in the default context menu of windows 11 after the last update, however it is still displayed in the extended menu... I guess in a next update this will be fixed?

✔ Expected Behavior
No response
❌ Actual Behavior
No response
Other Software
No response

Thank you for your report!
Yes, you are right. We are going to fix this in the next release.

Thank you for your report! Yes, you are right. We are going to fix this in the next release.

Thank so much for reply! I'll be waiting for next release or update
Muchas gracias por la pronta respuesta, estaré esperando la siguiente actualizacion

/dup #21017


RANGER-4043: Fix 'getent group' command when enumerate groups is enabled

What changes were proposed in this pull request?
'getent group' command incorrectly used with 2 parameters which caused command to return null instead of group info. Corrected the command usage
Original command: String[] cmd = new String[] {"bash", "-c", command + " '" + group + "'"};
Results in: bash -c getent group test_group1 'test_group1' - incorrect
New changed command: String[] cmd = new String[] {"bash", "-c", command };
Results in: bash -c getent group test_group1 - correct
How was this patch tested?
ranger.usersync.group.enumerategroup property set to "root,wheel,daemon"
Obtained logs suggest getent command successfully got executed:
2023-03-01 21:11:58,625 DEBUG org.apache.ranger.unixusersync.process.UnixUserGroupBuilder: Executing: [bash, -c, getent group root]
2023-03-01 21:11:58,630 DEBUG org.apache.ranger.unixusersync.process.UnixUserGroupBuilder: bash -c getent group root for group root returned root:x:0:
2023-03-01 21:11:58,630 DEBUG org.apache.ranger.unixusersync.process.UnixUserGroupBuilder: Executing: [bash, -c, getent group wheel]
2023-03-01 21:11:58,639 DEBUG org.apache.ranger.unixusersync.process.UnixUserGroupBuilder: bash -c getent group wheel for group wheel returned wheel:x:10:jenkins
2023-03-01 21:11:58,639 DEBUG org.apache.ranger.unixusersync.process.UnixUserGroupBuilder: Executing: [bash, -c, getent group daemon]
2023-03-01 21:11:58,647 DEBUG org.apache.ranger.unixusersync.process.UnixUserGroupBuilder: bash -c getent group daemon for group daemon returned daemon:x:2:
2023-03-01 21:11:58,647 DEBUG org.apache.ranger.unixusersync.process.UnixUserGroupBuilder: Done adding extra groups

Verified the obtained log results by executing commands such as "bash -c getent group daemon" which returned consistent results as logs.

Please resolve the jira.


Basic support for Confluent's  KafkaAvroSerializer / KafkaAvroDeSerializer

Basic support to serialize and deserialize with Confluent's proprietary 5-byte prefix.
The prefix will be added if the key or value serializer is set to io.confluent.kafka.serializers.KafkaAvroSerializer.
The prefix will be removed if the key or value deserializer is set to io.confluent.kafka.serializers.KafkaAvroDeserializer.
Configuration example:
var properties = new Map();
properties["schema.registry.url"] = "http://localhost:8081";
properties["key.serializer"] = "io.confluent.kafka.serializers.KafkaAvroSerializer";
properties["value.serializer"] = "io.confluent.kafka.serializers.KafkaAvroSerializer";
properties["key.deserializer"] = "io.confluent.kafka.serializers.KafkaAvroDeserializer";
properties["value.deserializer"] = "io.confluent.kafka.serializers.KafkaAvroDeserializer";

The property schema.registry.url is required to use a serializer of type io.confluent.kafka.serializers.KafkaAvroSerializer.
A new produce and consume function has been added (each accepts the new properties argument):
produceWithProps(producer, messages, properties, keySchema, valueSchema);
consumeWithProps(consumer, 1, properties, keySchema, valueSchema);
Note: I ported a sub-set of the existing functionality of the Confluent Java client. This code will be obsolete once Confluent adds Schema Registry support for their Go client.  At the time of writing, the Go client does not support Schema Registry: https://docs.confluent.io/platform/current/clients/index.html

I'm not familiar with Go - I still have to figure out how to unit test the stuff.

@mostafa: Thanks for the feedback - I will update the PR in the upcoming week.

I incorporated your feedback. I also switched to a JSON-based configuration model to be in sync with the approach for the auth configuration.
What do you think about having one big configuration JSON for auth and everything else?

@fmck3516 I was actually thinking about the same thing, but then thought that it's out of scope of this PR or mine. So maybe the next PR would focus on refactoring, cleanups and better configuration management. I also have the idea to refactor metric collection and error handling. Sorry for too much information! :rofl:

@fmck3516 I was actually thinking about the same thing, but then thought that it's out of scope of this PR or mine.
That makes sense - one step at a time.

So maybe the next PR would focus on refactoring, cleanups and better configuration management. I also have the idea to refactor metric collection and error handling. Sorry for too much information! 🤣
One thing I would like to add to the wishlist: A suite of regression tests that is executed automatically.


Detecting only holidays recognized in the banking/financial industry

Hello. I have a requirement for detecting only holidays that are recognized in the banking/financial industry. A colleague and I would like to add support for this type of detection. Is this something that you would consider adding the your open-source package if we were to provide you with a solution?

Hi, thank you for your contribution.
This is truely interesting!
What is difficult, IMHO, is applying it to all country holidays we've collected until now (or at least a good part of them).
Do you think it would be feasible?
Thank you again, cheers
dr-p


AAD: app to app-permissions is not created properly

Hi,
I'm using this library to register 2 applications (a web api, and a windows10-UWP client app) into my AAD.
I first create the web api as followed:
`
Application appObject = new Application { DisplayName = displayName };
appObject.IdentifierUris.Add(identifierUri);
appObject.ReplyUrls.Add(replyURL);
appObject.Homepage = replyURL;
        appObject.AvailableToOtherTenants = false;

        appObject.GroupMembershipClaims = "All";
        appObject.ObjectType = "Application";

        // created Keycredential object for the new App object
        PasswordCredential pwdCredential = new PasswordCredential
        {
            StartDate = DateTime.UtcNow,
            EndDate = DateTime.UtcNow.AddYears(2),
            Value = secret,
        };
        appObject.PasswordCredentials.Add(pwdCredential);

        var AADAccess = new RequiredResourceAccess();
        AADAccess.ResourceAppId = "00000002-0000-0000-c000-000000000000";

        AADAccess.ResourceAccess.Add(new ResourceAccess()
        {
            //"Read directory data"
            Id = Guid.Parse("5778995a-e1bf-45b8-affa-663a9f3f4d04"),
            Type = "Role,Scope",
        });
        AADAccess.ResourceAccess.Add(new ResourceAccess()
        {
            //"Sign in and read user profile"
            Id = Guid.Parse("311a71cc-e848-46a1-bdf8-97ff7156d8e6"),
            Type = "Scope",
        });
        AADAccess.ResourceAccess.Add(new ResourceAccess()
        {
            //"Access the directory as the signed-in user"
            Id = Guid.Parse("a42657d6-7f20-40e3-b6f0-cee03008a62a"),
            Type = "Scope",
        });
        appObject.RequiredResourceAccess.Add(AADAccess);

        activeDirectoryClient.Applications.AddApplicationAsync(appObject).Wait();

`
This creates the application just fine, it also implicitly creates an "user_impersonation"-claim.
I then retrieve this user_impersonation-claim's Id (and the app id) as followed:
var webapiClientId = tenantWebApp.AppId; var webapiUserAccessClaimId = tenantWebApp.Oauth2Permissions.Where(s => s.Value == "user_impersonation").Select(s => s.Id).FirstOrDefault();
This application is now visible in the management portal in the AAD. Everything in the "Configuration"-tab looks fine.
Then I create the client application as followed:
`
Application appObject = new Application { DisplayName = displayName };
appObject.ReplyUrls.Add("ms-app://TEMP/");
appObject.ObjectType = "Application";
appObject.PublicClient = true; //"Native Client App"
appObject.AvailableToOtherTenants = true;
        //  Add the proper rights to the AAD
        var AADAccess = new RequiredResourceAccess();
        AADAccess.ResourceAppId = "00000002-0000-0000-c000-000000000000";

        AADAccess.ResourceAccess.Add(new ResourceAccess()
        {
            //"Sign in and read user profile"
            Id = Guid.Parse("311a71cc-e848-46a1-bdf8-97ff7156d8e6"),
            Type = "Scope",
        });
        appObject.RequiredResourceAccess.Add(AADAccess);

        //  Add the proper rights to the Tenant Web API
        var AADAccess2 = new RequiredResourceAccess();
        AADAccess2.ResourceAppId = webapiClientId;

        AADAccess2.ResourceAccess.Add(new ResourceAccess()
        {
            //Our "user_impersonation"-claim.
            Id = webapiUserAccessClaimId,
            Type = "Scope",
        });
        appObject.RequiredResourceAccess.Add(AADAccess2);

        activeDirectoryClient.Applications.AddApplicationAsync(appObject).Wait();

`
As you can see, the client application is given access to the web api by the "user_impersonation"-claim.
Now, when verifying this in the management portal, the application is present. HOWEVER, in the "configuration"-tab, near the bottom with "permissions to other applications", I see this:
"          Delegated Permissions: 0"
instead of "          Delegated Permissions: 1"
I can't open the dropdown at "Delegated Permissions" and can't select the user_impersonation-claim.
Now, the funny thing is, when I go to the web api's configuration in the AAD and change anything (e.g. add a reply url "http://tmp") and press "Save". The client's permissions are now OK !
Is there anything I'm missing or am I doing something in the wrong order?
EDIT: hmm, I'm not used to github's comments, how can I format the code better?

I'm facing similar issues in trying to automate the provisioning of two Azure AD Apps (an API & headless client of the API).  I'm using the active-directory-dotnet-graphapi-console example to try to piece this together.
I can't seem to get past the activeDirectoryClient.Oauth2PermissionGrants.AddOAuth2PermissionGrantAsync(permissionObject).Wait(); call in the Create New Permission region.  At first I got exceptions about having an invalid ResourceID.  When I changed the ResourceId to 00000002-0000-0000-c000-000000000000 per what I'm seeing when I download manifest files for Apps I configure manually via the portal, the invalid ResourceId exception was replaced with a generic an error has occurred exception.
Were you able to get any further with this?
Thanks!

I've noticed that the OAuth's permission was automatically created by the underlying API for me. (I tried to create an "user_impersonation"-permission manually at first, but couldn't. It threw some error (I don't recall the specific message), but if I omitted that, a user_impersonation-grant was automatically created for my web-app.
I was then able to retrieve this by calling:
Guid webapiUserAccessClaimId = tenantWebApp.Oauth2Permissions.Where(s => s.Value == "user_impersonation").Select(s => s.Id).FirstOrDefault();
with "tenantWebApp" is an "Application" object from the graph api.
In order to actually grant access to (for example) the AAD, I had to add a RequiredResource (as you can also see in my code in the original post). Perhaps you need to do this, instead of adding it to the OAuth2PermissionGrants ?
My actual problem (that I still need to 'refresh' the web app in AAD by editing and saving it) still remains unsolved. For now, we shipped it with this workaround.

@RCTycooner I am also having the similar issue and wonder when this will be resolved "My actual problem (that I still need to 'refresh' the web app in AAD by editing and saving it) still remains unsolved. "
Here is my observations:

Created the App with RequiredResource using Graph api but noticed that no corresponding ServicePrincipal was created.
Thought that may be the reason so created the SP for the appId from #1 and with same display name.
Still got 403
had to go to portal and edit something (e.g identifierUrls) and save.

Wonder what other object(s) gets created behind the scene here. I compared the application manifest (after creating it via api #1) with the one after saving the same application in AAD (#4) did not see any difference there. This is a show stopper for us at this moment and causing issues for lot of our/your customers. Love to hear about a work-around (w/o needing to go to AAD portal).

Hi @pallablahiri-okta, got your ping on my site. I have no idea if this issue is being worked on or not. I'm still using the above workaround myself.
If I hear anything about this, I'll let you know here.

@RCTycooner Thanks!  Any updates from MSFT would be highly appreciated  @vibronet   can you please comment on this.

@RCTycooner I guess I found the reason.  "you can't register a new application using the Graph API from an unregistered client."  find more details here http://stackoverflow.com/questions/23133014/connect-to-azure-to-create-an-application-registration. AAD portal is a registered client so it works.

Hi @pallablahiri-okta, I'm actually using a registered client.

Minor update about my findings for this bug:

Forcing an update via the new portal (portal.azure.com) does NOT work! Only updates via the old portal (manage.windowsazure.com) work, but I fear that one of these days it'll be decomissioned...
There's a button on the new portal via AD --> app registrations -->  --> required permissions --> "Grant Permissions". This looks like it is related to this issue, but pressing it does NOT solve this issue for me.
Similar to the above button, there's this url: https://login.microsoftonline.com/.onmicrosoft.com/adminconsent?client_id=&state=12345&redirect_uri=
This doesn't work for me either.

Is there any new information about this issue available? I'd like to get this fixed before the old portal is no longer available...

Fixed this by doing two things differently:

In order to read the logged in users groups, we need access to the Microsoft Graph. You can do this programmatically by adding the following Required Resource:
          var graphAccess = new RequiredResourceAccess()          {              ResourceAppId = "00000003-0000-0000-c000-000000000000"          };          //Read directory and Read all groups (don't know which one is which, whatever)          graphAccess.ResourceAccess.Add(new ResourceAccess()          {              Id = Guid.Parse("7ab1d382-f21e-4acd-a863-ba3e13f7da61"),              Type = "Role",          });          graphAccess.ResourceAccess.Add(new ResourceAccess()          {              Id = Guid.Parse("5b567255-7703-4780-807c-7be8301ae99b"),              Type = "Role",          });

Grant admin consent via the following URL: https://login.microsoftonline.com/{0}/oauth2/authorize?client_id={1}&response_type=code&redirect_uri={2}&nonce=1234&resource=https://graph.windows.net&prompt=admin_consent
{0} = YourAAD (e.g. AAD.onmicrosoft.com)
{1} = The clientId for the application receiving the above resource-access.
{2} = A callback url on your web app.

Apparently, the old portal assigned this access and the consent implicitly. That explained why the above workaround works...


Generics should be based on models

Please see: http://dl.acm.org/citation.cfm?id=2738008 by Barbara Liskov:

The support for generic programming in modern object-oriented programming languages is awkward and lacks desirable expressive power. We introduce an expressive genericity mechanism that adds expressive power and strengthens static checking, while remaining lightweight and simple in common use cases. Like type classes and concepts, the mechanism allows existing types to model type constraints retroactively. For expressive power, we expose models as named constructs that can be defined and selected explicitly to witness constraints; in common uses of genericity, however, types implicitly witness constraints without additional programmer effort.

I think what they did there is pretty cool - I'm sorry if this is the incorrect place to stop but I couldn't find a place to comment in /proposals and I didn't find an appropriate issue here.

The top of https://github.com/golang/proposal/blob/master/design/15292-generics.md has a line:
"Discussion at https://golang.org/issue/15292"
Feel free to copy your comment to #15292


Cancel intertial scroll when changing between primary/alt screen

Discussed in https://github.com/ghostty-org/ghostty/discussions/3838

Originally posted by ComplexPlane December 28, 2024
I noticed that when using a Macbook trackpad's inertial scrolling inside a TUI application, if a scroll is started and then the app is quit right after, the scroll inertia carries over to the scrollback buffer. This happens specifically for me when scrolling up (fingers moving down) in a Lazygit window and then hitting q. This doesn't seem to happen in Kitty so I guess it's preventable?
Ghostty
https://github.com/user-attachments/assets/351a4625-20d5-4579-bf26-afbc624d5e9e
Kitty
https://github.com/user-attachments/assets/98a37fa7-5d48-4170-b812-9a6ec59d2297

@mitchellh Can i pick this up if its unpicked?