[No QA][TS migration] Migrate 'getOSAndName' lib to TypeScript

Details

Fixed Issues

$  https://github.com/Expensify/App/issues/24863
Tests

[x] Verify that no errors appear in the JS console

Offline tests

QA Steps

[x] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] If we are not using the full Onyx data that we loaded, I've added the proper selector in order to ensure the component only re-renders when the data it is using changes
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR author checklist, including those that don't apply to this PR.

Screenshots/Videos

Web
https://github.com/Expensify/App/assets/91068263/a68ba499-6ff0-4572-b882-1757eacd46db

Mobile Web - Chrome
https://github.com/Expensify/App/assets/91068263/b5468acf-41cc-4485-ac0c-81bfbd7952c5

Mobile Web - Safari
https://github.com/Expensify/App/assets/91068263/67375b4d-202a-4c25-b6d0-32d7a5590428

Desktop
https://github.com/Expensify/App/assets/91068263/cb06a353-f5cb-47b3-aa47-e9d26d028d24

iOS
https://github.com/Expensify/App/assets/91068263/f82b5064-ff8d-49fd-9758-e16eb5802041

Android
https://github.com/Expensify/App/assets/91068263/a69d5f30-d3bb-4e13-bfee-22bee0208332

@kowczarz can you also add as reviewer whoever is supposed to do the checklist?

@madmax330 I've tagged it as ready for review in TS migration spreadsheet so someone from Callstack will do this.

Reviewer Checklist

[x] I have verified the author checklist is complete (all boxes are checked off).
[x] I verified the correct issue is linked in the ### Fixed Issues section above
[x] I verified testing steps are clear and they cover the changes made in this PR

[x] I verified the steps for local testing are in the Tests section
[x] I verified the steps for Staging and/or Production testing are in the QA steps section
[x] I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)

[x] I checked that screenshots or videos are included for tests on all platforms
[x] I included screenshots or videos for tests on all platforms
[x] I verified tests pass on all platforms & I tested again on:

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

[x] If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
[x] I verified proper code patterns were followed (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I verified that this PR follows the guidelines as stated in the Review Guidelines
[x] I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Web
https://github.com/Expensify/App/assets/20051562/c7f4e52d-528a-4338-a1ce-659d7164ae8c
https://github.com/Expensify/App/assets/20051562/811830d1-f933-4524-a712-7a7be4baee79

Desktop
https://github.com/Expensify/App/assets/20051562/b0607427-d4e7-4e99-80bc-332e183a439d

Mobile Web - Chrome
https://github.com/Expensify/App/assets/20051562/049e541a-74af-4428-8492-d4e3132b1035

Android
https://github.com/Expensify/App/assets/20051562/debdde18-eccb-4458-824f-3fde50e9c40f

Mobile Web - Safari
https://github.com/Expensify/App/assets/20051562/9fac4eca-0acb-4cdc-ae33-5234ab4d4e36

iOS
https://github.com/Expensify/App/assets/20051562/92d4b7be-0564-4976-a485-3fb545658e9a

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging by https://github.com/madmax330 in version: 1.3.75-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by https://github.com/mountiny in version: 1.3.75-12 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
failure ❌

🕸 web 🕸
success ✅

🚀 Deployed to staging by https://github.com/madmax330 in version: 1.3.76-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


api: moving the k-v store to common

As discussed on https://github.com/envoyproxy/envoy/issues/18034
Risk Level: medium
Testing: n/a
Docs Changes: n/a
Release Notes: n/a

CI failure expected.  PTAL!

LGTM. @adisuissa if we force merge, the API compatibility check won't cause in future problems?

Just as a reply to your question:
the breaking change script always compares the current changes against the non-local HEAD (uses https://github.com/envoyproxy/envoy/blob/main/tools/git/last_github_commit.sh to fetch that commit sha), so it should be ok.


4.1 Mono Regression - Export via CLI is broken (not saving all required resources)

Godot version
v4.1.stable.mono
System information
Windows 11
Issue description
The automated build system I set up (via Gitlab CI/CD) for exporting my game is no longer working in 4.1.
The .pck file generated during export is orders of magnitude smaller than I'd expect, and the game doesn't get past the first frame of the splash screen due to the lack of resources. I've noticed the savepack part of the export process seems to skip some steps...
savepack: begin: Packing steps: 102
        savepack: step 2: Storing File: res://build/springdash.ico
        savepack: step 102: Storing File: res://.godot/global_script_class_cache.cfg
        savepack: step 102: Storing File: res://icons/spring_dash.png
        savepack: step 102: Storing File: res://.godot/uid_cache.bin
        savepack: step 102: Storing File: res://project.binary

Exporting through the UI works as expected, but exporting via CLI (e.g. via something like godot4 --export-release windows-64bit export/test.exe) results in the issue described above.
Steps to reproduce

Setup a basic project that relies on some resources (e.g. an image) in Godot 4.1 (or use the one provided)
Export via the UI and notice that it works
Export via the CLI and notice that it doesn't, and the .pck file is either not present or much smaller than expected

Minimal reproduction project
export-cli.zip

Tested locally on Linux with the MRP, it seems to export fine for me:
$ Godot_v4.1-stable_linux.x86_64 --headless --export-release "Windows Desktop" export/test.exe
Godot Engine v4.1.stable.official.970459615 - https://godotengine.org

WARNING: Custom cursor shape not supported by this display server.
     at: cursor_set_custom_image (servers/display_server.cpp:480)
reimport: begin: (Re)Importing Assets steps: 2
        reimport: step 1: icon.svg
WARNING: Resources Modification: Could not start rcedit executable. Configure rcedit path in the Editor Settings (Export > Windows > rcedit), or disable "Application > Modify Resources" in the export preset.
     at: add_message (editor/export/editor_export_platform.h:175)
savepack: begin: Packing steps: 102
        savepack: step 2: Storing File: res://.godot/exported/133200997/export-3070c538c03ee49b7677ff960a3f5195-main.scn
        savepack: step 52: Storing File: res://.godot/imported/angry_stoat.png-bfae575bd6d10b21bd2f792e5f0e0912.ctex
        savepack: step 52: Storing File: res://angry_stoat.png.import
        savepack: step 102: Storing File: res://main.tscn.remap
        savepack: step 102: Storing File: res://.godot/global_script_class_cache.cfg
        savepack: step 102: Storing File: res://icon.svg
        savepack: step 102: Storing File: res://.godot/uid_cache.bin
        savepack: step 102: Storing File: res://project.binary
savepack: end
WARNING: Project export for preset "Windows Desktop" completed with warnings.
     at: _fs_changed (editor/editor_node.cpp:1006)
reimport: end
ERROR: 3 RID allocations of type 'N18RendererCanvasCull4ItemE' were leaked at exit.
ERROR: 1 RID allocations of type 'PN13RendererDummy14TextureStorage12DummyTextureE' were leaked at exit.
ERROR: 6 RID allocations of type 'PN18TextServerAdvanced22ShapedTextDataAdvancedE' were leaked at exit.
ERROR: 1 RID allocations of type 'PN18TextServerAdvanced12FontAdvancedE' were leaked at exit.
WARNING: ObjectDB instances leaked at exit (run with --verbose for details).
     at: cleanup (core/object/object.cpp:2045)
ERROR: Resources still in use at exit (run with --verbose for details).
   at: clear (core/io/resource.cpp:489)

The generated .exe and .pck seem to work as expected (I see the angry stoat :)).

@DillonSteyl Can you try the same steps on 4.1 dev/beta/RCs? You can download them here.

That's interesting. I managed to get it to work using "Export selected resources (and dependencies)" as the export mode, and selecting all of the resources explicitly.
None of the other export modes I've tried will do it for me when I'm using the CLI, so maybe related to how resources are "discovered"?

CC @godotengine/dotnet

@Calinou The regression was introduced in dev4. Exporting works as expected in dev3 and prior.

dev4 only contains one C#/.NET related change of note: https://github.com/godotengine/godot/pull/72619

Reverting that seems to fix the issue, not sure how it is related.

Update: just removing the EditorFileSystem::update() calls also fixes it.

That was going to be my guess. The MRP has the export filter EXPORT_SELECTED_SCENES which tries to find the dependencies from the selected scenes using EditorFileSystem, right? If so, maybe updating it causes it to somehow lose knowledge of other files.
But in the .NET module we are only calling EditorFileSystem::update_file with paths to script files (presumably only C# scripts). So I don't understand how this can affect PNG files.

it calls them probably for the editor tools scripts, notably for those scripts get_path() returns an empty string which then presumably breaks things in update_file

I see, we should probably avoid calling it for editor scripts since they are not part of the project. And also, maybe EditorFileSystem::update_file should have ERR_FAIL_COND(p_file.is_empty());.

I don't think we can (easily) avoid that since this is also part of the initial load and these scripts still need to work like scripts, or the editor just breaks.

I think what you've done in https://github.com/godotengine/godot/pull/79173 is good enough, since we only update EFS to update global classes and the only C# scripts that can be global classes must have a path.


GHCR: actions/delete-package-versions@v4

DEVOPS PULL REQUEST
Related Issue

Follow-up #6024 and this PR.

Changes Proposed

This PR changes the GitHub Actions workflow to delete any untagged container images for the following: backend, cypress, database, frontend, frontend-lighthouse, and nginx.

Additional Information

The change to actions/delete-package-versions@v4 allows us to delete container images without needing a personal access token. Previously, we were using the snok/container-retention-policy@v2 action, which wouldn't work without a PAT.
This only deletes untagged images, which is a huge improvement over nothing, but future work would allow us to clean up all images by filtering tags. That functionality is on the radar of delete-package-versions folks.

Testing

Reviewers can verify this PR by checking on the GitHub Actions tab following the merge. Ensure there is a reduction or absence of untagged container images in the repository. The workflow runs once every day at 00:00.

Checklist for Primary Reviewer
Infrastructure

[ ] Consult the results of the terraform-plan job inside the "Terraform Checks" workflow run for this PR. Confirm that there are no unexpected changes!

Security

[ ] Changes with security implications have been approved by a security engineer (changes to  authentication, encryption, handling of PII, etc.)
[ ] Any dependencies introduced have been vetted and discussed

Cloud

[ ] Oncall has been notified if this change is going in after-hours
[ ] If there are changes that cannot be tested locally, this has been deployed to our Azure test, dev, or pentest environment for verification

Documentation

[ ] Any changes to the startup configuration have been documented in the README

Looks good!
I went here to see how many untagged images for particular containers we have https://github.com/orgs/CDCgov/packages?ecosystem=container&tab=packages&ecosystem=container&q=prime-simplereport
Some I couldn't even load the page like frontend container since I am assuming we have so many images 😅
I was able to open frontend-lighthouse: https://github.com/CDCgov/prime-simplereport/pkgs/container/prime-simplereport%2Ffrontend-lighthouse/versions?filters[version_type]=tagged
Based on this PR, after it is merged, I should only see tagged ones left and 10 of the last untagged images right?

That's exactly what I would expect after this is merged and runs at the scheduled time.

Looks good!
I went here to see how many untagged images for particular containers we have https://github.com/orgs/CDCgov/packages?ecosystem=container&tab=packages&ecosystem=container&q=prime-simplereport
Some I couldn't even load the page like frontend container since I am assuming we have so many images 😅
I was able to open frontend-lighthouse: https://github.com/CDCgov/prime-simplereport/pkgs/container/prime-simplereport%2Ffrontend-lighthouse/versions?filters[version_type]=tagged
Based on this PR, after it is merged, I should only see tagged ones left and 10 of the last untagged images right?

That's exactly what I would expect after this is merged and runs at the scheduled time.

Awesome I will keep my eyes out for this 👀

@alismx following up on this -- I'm seeing this is failing: https://github.com/CDCgov/prime-simplereport/actions/runs/6634378624/job/18023713248  Wanted to flag this for you!

@emyl3 Thank you for calling this out! I'm planning on looking into it today.


Including MenuItemStaticURLType as menu_item_type no longer displays value field

Hey folks!
In between version 7.0.6 and 7.0.9, something was changed in such a way that including Outl1ne\MenuBuilder\MenuItemTypes\MenuItemStaticURLType as a menu_item_type no longer displays any value field. In 7.0.6 it added a URL field, which in 7.0.9 is missing, making it unusable (as it then fails the required "value" validation).
Was something changed in such a way that refactoring is required? If so, what would be the appropriate steps to do so?
If this is a bug, please do feel free to let me know if you require additional details and I'll make sure to provide them.
For posterity, this is applicable in version 7.0.9, possibly earlier, but works fine in version 7.0.6. The Nova version is 4.12.14.
Thank you!

Hey, @Senexis!
Thanks for reporting, fixed this issue in release 7.0.10.


Call Actions in another action

@ljavierrodriguez I literally just did this for a student of mine yesterday! You beat me to the punch haha

Perfect! 😄


xCrawl.crawlFile 函数不能完美的兼容linux

Bug 预期
https://github.com/dext7r/puppeteer/blob/master/src/utils/bilibili.ts#L45

在window下是可以直接新建這個目錄并写入的。
但是在linux报错如下
Run pnpm task

><EMAIL_ADDRESS>task /home/runner/work/puppeteer/puppeteer
> npx ts-node ./src/serve

Start crawling - name: page, mode: async, total: 1
Id: 1 - Crawl does not need to sleep, send immediately
Crawl the final result:
  Success - total: 1, ids: [ 1 ]
    Error - total: 0, ids: [  ]
Start crawling - name: file, mode: async, total: 9
Id: 1 - Crawl does not need to sleep, send immediately
Id: 2 - Crawl does not need to sleep, send immediately
Id: 3 - Crawl does not need to sleep, send immediately
Id: 4 - Crawl does not need to sleep, send immediately
Id: 5 - Crawl does not need to sleep, send immediately
Id: [6](https://github.com/dext7r/puppeteer/actions/runs/4793322343/jobs/8525664251#step:6:7) - Crawl does not need to sleep, send immediately
Id: [7](https://github.com/dext7r/puppeteer/actions/runs/4793322343/jobs/8525664251#step:6:8) - Crawl does not need to sleep, send immediately
Id: [8](https://github.com/dext7r/puppeteer/actions/runs/4793322343/jobs/8525664251#step:6:9) - Crawl does not need to sleep, send immediately
Id: [9](https://github.com/dext7r/puppeteer/actions/runs/4793322343/jobs/8525664251#step:6:10) - Crawl does not need to sleep, send immediately
Error: ENOENT: no such file or directory, mkdir
    at Object.mkdirSync (node:fs:1396:3)
    at /home/runner/work/puppeteer/puppeteer/node_modules/.pnpm/x-crawl@6.0.1_typescript@4.9.5/node_modules/x-crawl/dist/index.js:46:[10](https://github.com/dext7r/puppeteer/actions/runs/4793322343/jobs/8525664251#step:6:11)
    at Array.reduce (<anonymous>)
    at mkdirDirSync (/home/runner/work/puppeteer/puppeteer/node_modules/.pnpm/x-crawl@6.0.1_typescript@4.9.5/node_modules/x-crawl/dist/index.js:43:[12](https://github.com/dext7r/puppeteer/actions/runs/4793322343/jobs/8525664251#step:6:13))
    at fileSingleResultHandle (/home/runner/work/puppeteer/puppeteer/node_modules/.pnpm/x-crawl@6.0.1_typescript@4.9.5/node_modules/x-crawl/dist/index.js:951:7)
    at /home/runner/work/puppeteer/puppeteer/node_modules/.pnpm/x-crawl@6.0.1_typescript@4.9.5/node_modules/x-crawl/dist/index.js:[13](https://github.com/dext7r/puppeteer/actions/runs/4793322343/jobs/8525664251#step:6:14)5:[21](https://github.com/dext7r/puppeteer/actions/runs/4793322343/jobs/8525664251#step:6:22)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 3) {
  errno: -2,
  syscall: 'mkdir',
  code: 'ENOENT'
}
Error: The operation was canceled.

最小可重复的例子
import xCrawl from 'x-crawl';
import path from 'path';
import fs from 'fs/promises';

const bilibiliXCrawl = xCrawl({ mode: 'async' });
export function getCurrentDate(separator: string = '-') {

  // 调用 crawlFile API 爬取图片
  await bilibiliXCrawl.crawlFile({
    targets: [...urls],
    // storeDir: `./bilibili/${getCurrentDate('/')}`,
    storeDir,
  });
  // 关闭页面
  page.close();

  // 关闭浏览器
  browser.close();
}

报错信息
Error: ENOENT: no such file or directory, mkdir
x-crawl 版本
"x-crawl": "^6.0.1"
Node 版本
18
包管理器
pnpm
包管理器版本
7.13.2

你好，我感觉这是权限问题。crawlFile API 内部是使用 fs.mkdirSync 创建文件夹的

你可以试试 fs.mkdirSync 创建一个文件夹看看是否可以

你好，有没有看见 crawlFile 创建的文件夹

你好，有没有看见 crawlFile 创建的文件夹

linux 跑 https://github.com/coder-hxl/x-crawl#detailed-target-array-config---crawlfiledetailtargetconfig 直接报错，storeDir 为 upload/2023/04/25  文件夹upload/2023/04/25 不存在，但是文件夹如果只有一级可以直接保存文件并新建这个文件夹。

最小化复现案例如下 https://github.com/dext7r/puppeteer/blob/x-crawl-crawlFile/src/utils/bilibili.ts
日志如下action log
Run pnpm task

><EMAIL_ADDRESS>task /home/runner/work/puppeteer/puppeteer
> npx ts-node ./src/serve
Start crawling - name: page, mode: async, total: 1
Id: 1 - Crawl does not need to sleep, send immediately
Crawl the final result:
  Success - total: 1, ids: [ 1 ]
    Error - total: 0, ids: [  ]
Start crawling - name: file, mode: async, total: 9
Id: 1 - Crawl does not need to sleep, send immediately
Id: 2 - Crawl does not need to sleep, send immediately
Id: 3 - Crawl does not need to sleep, send immediately
Id: 4 - Crawl does not need to sleep, send immediately
Id: 5 - Crawl does not need to sleep, send immediately
Id: [6](https://github.com/dext7r/puppeteer/actions/runs/4794171737/jobs/8527284181#step:6:6) - Crawl does not need to sleep, send immediately
Id: [7](https://github.com/dext7r/puppeteer/actions/runs/4794171737/jobs/8527284181#step:6:8) - Crawl does not need to sleep, send immediately
Id: [8](https://github.com/dext7r/puppeteer/actions/runs/4794171737/jobs/8527284181#step:6:9) - Crawl does not need to sleep, send immediately
Id: 9 - Crawl does not need to sleep, send immediately
Error: ENOENT: no such file or directory, mkdir
    at Object.mkdirSync (node:fs:1396:3)
    at /home/runner/work/puppeteer/puppeteer/node_modules/.pnpm/x-crawl@6.0.1_typescript@4.9.5/node_modules/x-crawl/dist/index.js:46:[10](https://github.com/dext7r/puppeteer/actions/runs/4794171737/jobs/8527284181#step:6:11)
    at Array.reduce (<anonymous>)
    at mkdirDirSync (/home/runner/work/puppeteer/puppeteer/node_modules/.pnpm/x-crawl@6.0.1_typescript@4.9.5/node_modules/x-crawl/dist/index.js:43:[12](https://github.com/dext7r/puppeteer/actions/runs/4794171737/jobs/8527284181#step:6:13))
    at fileSingleResultHandle (/home/runner/work/puppeteer/puppeteer/node_modules/.pnpm/x-crawl@6.0.1_typescript@4.9.5/node_modules/x-crawl/dist/index.js:951:7)
    at /home/runner/work/puppeteer/puppeteer/node_modules/.pnpm/x-crawl@6.0.1_typescript@4.9.5/node_modules/x-crawl/dist/index.js:[13](https://github.com/dext7r/puppeteer/actions/runs/4794171737/jobs/8527284181#step:6:14)5:[21](https://github.com/dext7r/puppeteer/actions/runs/4794171737/jobs/8527284181#step:6:22)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 4) {
  errno: -2,
  syscall: 'mkdir',
  code: 'ENOENT'
}

@h7ml 感谢您的 Bug 反馈，该 Bug 将在 v7 版本中修复

v7 版本已经发布，可以试试看


[Summer 2021] Implement stubs and models for pymssql

Implement stubs and models for MySQL library: PyMsSQL
Information on how to add models to Pysa can be found at: https://pyre-check.org/docs/pysa-basics
This might require addition of stubs: https://pyre-check.org/docs/pysa-tips/#stubs

Closed via https://github.com/facebook/pyre-check/commit/55f993d8f7afb31642a02c91563387979dd1f02c


the imp module is deprecated

the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp

-p 3.9

-p 3.9
it's still not working for me

Same here


Helmchart: Maybe i missunderstod everything but shouldn't ttl be honored for misses as well

Testing a bit and have a fairly default helm setup with:
.:53 {
errors
log
health {
lameduck 5s
}
ready
k8s_gateway "" {
apex k8s-gateway.default
ttl 30
}
prometheus <IP_ADDRESS>:9153
loop
reload
loadbalance
}
Expected:
I would have expected a cache 30 to be in that config as well (or cache 15 to follow the standard of half success ttl

I used to have it in helm chart at some point but removed it for some reason. I can't clearly remember, but I think the logic was that this plugin (k8s_gateway) is doing map lookups so it doesn't necessarily need another layer of caching.
Are you saying there are scenarios when cache may be needed?

Hi, no I’d prefer no caching. Just that the helm chart gave me caching that I didn’t want. But if I understand correctly, this should not be installed by helm?

yeah, unless there's a bug, cache should not enabled by help. https://github.com/ori-edge/k8s_gateway/blob/master/charts/k8s-gateway/templates/configmap.yaml

So when the gateway plugin fail to answer, coreds default value for cache of 3600 seconds is used :(.                         IN      A
;; AUTHORITY SECTION:
.            3600    IN      SOA     k8s-gateway.default.. hostmaster.k8s-gateway.default.. 12345 7200 1800 86400 3600
;; Query time: 20 msec
;; SERVER: <IP_ADDRESS>#53(<IP_ADDRESS>)
;; WHEN: sön jun 20 16:36:05 CEST 2021
;; MSG SIZE  rcvd: 179

ah, I see. so if anyone tries to access the banana domain before there's an ingress for it, it gets the NXDOMAIN and caches it for 3600 seconds.
What do you see as an acceptable solution in this case? Would you want to be able to override this TTL to some lower value?

I think it would make sense to go with ttl or half of ttl as seems to be standard

I've lowered it to the same value as gcp/aws use on their SOA records, which is 60.  feel free to re-open if it's still an issue.


Error SA1650 : CSharp.Documentation incorrectly spelled words

Got hundreds of the error SA1650 : CSharp.Documentation : The documentation text within the param tag contains incorrectly spelled words: xxx (e.g. url) across multiple files

I don't see this error when compiling. Can you please provide steps to reproduce?

I simply open and build the solution to get the errors (no change no customization). I did the research and had to put the following tag in C:\xRM-Portals-Community-Edition\Build\StyleCop\StyleCopSettings_Strict.xml to make the error go away:

False

Which version of Visual Studio are you using? e.g. I'm using 2017 Update 3, here is what I see in the help > about screen:

Also, are you compiling in Debug or Release configuration?

Might be the issue:

Yes, using Visual Studio 2015 is likely the issue. Visual Studio 2017 is listed as a requirement in the build instructions. Please try again with Visual Studio 2017.

Closing this issue given previous comment, feel free to comment here further if necessary.

I have installed the StyleCop extension for both Visual Studio 2015 and Visual Studio 2017, but am having trouble getting it to show the same errors. Could you give some steps for how you've installed and are running StyleCop? Some screenshots would help.

This will be addressed by switching from StyleCop Classic to the newer recommended StyleCopAnalyzers in issue #34.


Add wiki workflows

Pull Request
Issue
Issue #, if available:
Description
Description of changes:
License
By submitting this pull request, I confirm that my contribution is made under the terms of the projects associated license.

Will you also copy the existing wiki mardown into the repo? 🤞


Grand Theft Auto IV crashing for every 5-10 minutes

Software information
Grand Theft Auto IV, Medium-High Settings preset. 1080p Resolution. (32-bit)
System information

GPU: Intel Iris Xe Graphics (8GB VRAM)
Driver: <IP_ADDRESS>99
Wine version: N/A
DXVK version: 2.2

###My take on the problem
The game is opening through Vulkan API as my driver and graphic device can support the Vulkan version. The DIrectX9 version is still very crappy. It runs around 20fps in 900p resolution and still has some graphic issues (ex. vehicle disfiguration on crashing). The game when opening through Vulkan runs smoothly, but within 5-10 minutes, it crashes like hell, that too when we are supposed to do a story mission. I have used the latest version of DXVK, and I couldn't figure out why exactly the game was crashing. The settings preset which I have used rough takes around 412MB of VRAM, keeping Shadow Quality in Medium (the shadows are way too graphic intensive). I just started the game without DXVK, and the game didn't crash. Although the quality and the performance of the game is compromised at an extent but, I think the DXVK community needs to look on this. It's such a nice game and very well-known for the graphics and physics, it hurts me to play the game with so many issues (especially when I'm very close to complete a story mission). The same is happening with the latest version v.2.5.1.
Here is the log file of v2.2.
GTAIV_d3d9.log
GTAIV_dxgi.log
Thank you.

Is the log from a time it crashed? There isn't any interesting output in it.
I'll note that GTA IV is probably one of the most tested games with dxvk in general and we are not aware of any general crash issue. The only reports we've had recently are from Intel Windows users like youself or random Windows setup shenanigans. Also note that Windows is not officially a supported platform.
None of us have a setup with both Intel and Windows to test with so i suspect it would likely be better for you to make a issue here instead https://github.com/IGCIT/Intel-GPU-Community-Issue-Tracker-IGCIT

There is nothing to suggest when we don't know why it crashes. The best i can do is to link you to the Third-party software section in the Windows wiki.
As said i think it would better to report it via the link above.

Trying it.

i have same issue, maybe the card doesnt DirectX 9 game properly

Yeah, it's a good one. But it stutters a lot while gameplay, maybe when loading textures and fixing light or compiling shaders. But it does crash on cutscenes.

Oh it crash after 1 hours but im not get stuffers

The mod linked is just dxvk 2.4 and some game launch parameters fwiw.

@Freerubuk Please tell me what else do you do for running the game smooth.

Honestly i don’t know any im quit gta 4 because of that

It will likely get fixed faster if someone reported it to Intel https://github.com/IGCIT/Intel-GPU-Community-Issue-Tracker-IGCIT

Author of this post report it yesterday tho

Hey guys. I have a doubt. Does every .dll from x32 folder should be added to the game directory or just the one which the DirectX API calls for?... I have added all the .dll files from the latest DXVK, and it works fine. No stutters, smooth gameplay. But it does crash after an hour of gameplay.

Driver is crashing or timing out
err:   DxvkDevice: waitForIdle: Operation failed
err:   DxvkSubmissionQueue: Command submission failed: VK_ERROR_DEVICE_LOST

Is there anything to resolve it?

No because we don't know what the problem is. Best to wait and see what Intel says

Does dxwrapper work guys? Im lazy to test

Dxwrapper has nothing to do with dxvk.
And until https://github.com/IGCIT/Intel-GPU-Community-Issue-Tracker-IGCIT/issues/872 gets handled, you can try to lower the settings for chances you may get a longer playrun.

The game doesn't crash when using native API. When I use dxwrapper, the game doesn't even open. I have tried even other wrappers. Nothing seemed to work at all.

I wish gta 4 have good performance and get remastered

When can we expect a GTA IV remaster?

There are a thousand and one guides about getting gta 4 to go faster (even though the biggest cheat is probably just to use a windows older than 1607~1703). And then you can try d912pxy, dgvoodoo and even wined3d I guess.
But for the love of god, stick this to dxvk and nothing else here?
As said above, try to see if you can correlate any setting or thing to the crasbes (DXVK_HUD=full may also help with clues).
Otherwise just wait for intel to find dev time for it.

Guys. My problem is fixed. I used Magpie FSR with DXVK and it doesn't crash. I feel very happy that in so many years,it's the first time I've played GTA IV without stuttering, without crashing. I am just loving it. Thank you guys for your input. Much appreciated.

Thanks you for answer i must try it now!

Finally time to install gta 4 with fusionfix

Hey @turboZd3v1l what your setting in magpie

Bro how to use this

This is probably the first time in my life where I feel like "restrict comments" would make sense..

I used Magpie FSR with DXVK and it doesn't crash.

If just so it wasn't that this is very odd. Is it a matter of having *very much* lowered the resolution, or actually playing it in windowed mode?

@mirh Bruh... I just wondered if FSR mode will work or not. Although only some gamers use Magpie and it eventually works with every D3D9 game or even older on the newer PC.

How to use this program @turboZd3v1l

@Freerubuk Just download Magpie v0.11.1 64 bit

https://github.com/JamesCJ60/AMD-APU-Tuning-Utility/releases/tag/4.0.3
Use this link and download it.

@turboZd3v1l add gta 4 then keep it default then run gta 4?

Oh

Maybe i try this Tommrow im gonna sleep bye

This isn't a chatroom guys. Please keep the offtopic to a minimum

Ok i try thiz Tommrow

I really feel like we crossed the line of pointlessness and this can be closed.

Maybe


pythonPackages.pytest-instafail: init at 0.4.2

Motivation for this change
Package not yet available in nixpkgs
Things done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

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

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

3 packages built:

python37Packages.pytest-instafail
python38Packages.pytest-instafail
python39Packages.pytest-instafail

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

3 packages built:

python37Packages.pytest-instafail
python38Packages.pytest-instafail
python39Packages.pytest-instafail

Please do not rebase PRs on master when not fixing merge conflicts or there is a good reason for it.

Please do not rebase PRs on master when not fixing merge conflicts or there is a good reason for it.

This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 110138 run on x86_64-linux 1

3 packages built:

python37Packages.pytest-instafail
python38Packages.pytest-instafail
python39Packages.pytest-instafail

This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 110138 run on x86_64-linux 1

3 packages built:

python37Packages.pytest-instafail
python38Packages.pytest-instafail
python39Packages.pytest-instafail

This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 110138 run on x86_64-darwin 1

3 packages built:

python37Packages.pytest-instafail
python38Packages.pytest-instafail
python39Packages.pytest-instafail

This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 110138 run on x86_64-darwin 1

3 packages built:

python37Packages.pytest-instafail
python38Packages.pytest-instafail
python39Packages.pytest-instafail


Add new python examples for the Pimoroni Pico Unicorn Pack.

New examples

Name
Preview

Digital Clock

Digital Rain

DVD Bouncer

Emergency

Fireflies

Fireplace

Fireworks

Flashlight Torch

Lava Lamp

Lightning

Plasma

Raindrops

SOS (Morse Code)

Snowfall

Warp Speed

Wave

Fixed up previous linting issues with flake8 and formatting with black. Ready for a new build, hopefully the next passes. Thanks!


Aurora unable to initialize devices after reboot after fresh install

Expected Behaviour
Logitech & Razer devices should say connected. When connected the profile switcher works fine
Actual Behaviour
After fresh installing aurora LED's work correctly, and devices are connected. After a system reboot, the devices say "Not Initialized". They will not start. I can restart aurora as many times as I want, the only thing that resolves the issue is uninstalling and reinstalling aurora.
Reproduction steps
Install aurora, confirm that devices are connected. Reboot computer, now aurora will say not initialized on all devices. Clicking start does nothing. Uninstalling aurora and deleting all user data fixes the issue until the next reboot. Note, you need to delete the user data, otherwise it won't initialize the devices.
When I try to start the devices, this is all I see in the log:
[INFO] 17:22:13: Device, Logitech, was initialized
[INFO] 17:22:13: Device, Logitech, was shutdown
and
[INFO] 17:21:42: Razer device, Initialized
[INFO] 17:21:42: Device, Razer, was initialized
[ERROR] 17:21:42: Roccat device, Exception! Message:System.Exception: No devices connected
at Aurora.Devices.Roccat.RoccatDevice.Initialize() in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\Roccat\RoccatDevice.cs:line 213
[INFO] 17:21:42: Device, Roccat, was not initialized
[INFO] 17:21:42: Device, Razer, was shutdown
Frequency
Everytime
Aurora Version:
0.81 (stable, and bleeding edge)
Previously an Issue?
Don't Know

Do you have the desktop profile disabled?

I've tried it on and off. I've also tried going in and out of games. Selecting the profiles from in aurora which when it works, shows a sample. Basically it seems like once the app is restarted after the install it just doesn't interact with my devices anymore.

Bit of an update. So it looks like the problem is turning off the desktop profile. It looks like I have to have the desktop profile on when aurora starts. If I don't, the game detection doesn't work, and even if I turn on the desktop profile it won't work until I restart aurora.

@diogotr7

Do you have the desktop profile disabled?
I have the same issue. If Aurora lighting on desktop is disabled, the devices don't initialize when a game is launched. If I repeatedly quit and relaunch Aurora, it starts working correctly once in a while until the next reboot.


Can't open CodeAction error for attachShadow

After registering a CodeAction and trying to click the light-bulb which appears in the editor this is outputted to the console:
Exception was thrown at line 331, column 571 in ms-appx-web://258ac4a1-cff0-4f92-9a16-26577934a89f/Monaco/monaco-editor/min/vs/editor/editor.main.js
0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'attachShadow'

Would instead expect the command menu to appear (but it doesn't).
monaco-editor version: 0.21.3
Browser: UWP WebView (Edge Legacy)
OS: 20H2 19042.1110
Playground code that reproduces the issue: Is there a way to load the playground with a specific version of Monaco? Code from this comment is the example: https://github.com/microsoft/monaco-editor/issues/1890#issuecomment-886996311
It's working fine in playground with latest Monaco in latest Edge, but not within a WebView component. As far as I'm aware version 21.3 is the last version to support that browser. However, WebView with Edge Legacy should still be under support with the OS/Windows SDK.
It appears this may be trying to use the Shadow DOM? However, that's not an Edge Legacy feature that's available. So what is the last version tested and supported with Legacy Edge?

Edge Legacy is no longer supported. The changelog document contains the relevant information regarding that.
attachShadow throws because the editor has began using shadow DOM for the context menu. This can be disabled using an option called useShadowDOM which can be set to false to disable this.

@alexdima the version I was using 0.21.3 was shipped two months before the end for Edge Legacy support, but still enabled the Shadow DOM which would have been unsupported.
The useShadowDOM flag wasn't added until two months after the version you said would no longer support Edge Legacy. So neither of those things helps.
At least WebView2 is coming to UWP now though... https://github.com/microsoft/microsoft-ui-xaml/issues/5610


[Suggestion] Make anti-curse algorithm optional

Since current anti-curse algorithm can't deal with languages other than english, can we make it optional?
i.e., new Hashids('', 0, 'abcdefghijklmnopqrstuvwxyz', false) (pass false for disabling these checks,  backward compatible with the current api).
[OFF-TOPIC]
Now, besides of that, I have some questions I want to address here instead of creating new issues.

If I pass a reduced alphabet, am I incrementing the collision chances? If so, does incrementing the padding or providing a longer salt mitigates that issue? I personally think that removing some letters is a better "anti-curses" algorithm because it may require less CPU and isn't bound to a single language.
I did some jsperf for encoding and decoding, and found out that encoding process is not really cheap, but decoding is quite fast. So if I am hashing ids on-the-fly for a large collection of items I just pulled from a db query, that's going to add a lot of overhead to the request. So I'm saving the generated hash along with the record (on a non-indexed column), so I have to encode only at insert time, and then I decode on the fly so the db queries still make use of the autoincrementing id (index).
Now... reading this https://github.com/ivanakimov/hashids.php/issues/22 its suggested to use a case-sensitive collation for that table, which is not possible for my case since I'm using a full-text index on the same table. So I was thinking on removing all the lowercase letters from the provided alphabet, now it gets me to the previous question again... Any advice or suggestion?

Custom separators are already a feature request in https://github.com/ivanakimov/hashids.js/issues/17

With any kind of alphabet you should not encounter id collisions from the same constructor.
Not sure what your actual issue is -- the case-sensitive suggestion is to notify users that ids are case-sensitive by default. If you have all lowercase or uppercase in your alphabet, you don't have to worry about it at db-level then.


interpreter fails with automaton

Hi Daniel,
Attached is the example of a lustre code contains an automaton.
I run the command
kind2 -xml  test3.lus  --enable interpreter --timeout 60
I get the following error
 <Stream
       name="state" <Log class="fatal" source="parse">
                      Runtime error in interpreter: File "lustre/lustrePath.ml", line 1243, characters 18-24: Assertion failed
                    </Log>

I am only interested to check if the lustre code is correct syntactically.
Do you know of another option rather than the one I used to check a Lustre file is accepted by Kind2?
If not, is the above error can be easily fixed from your side?
Thanks,
Hamza
test3.txt

Hi Hamza,
The current version of the interpreter does not support Lustre code that includes automata. If you are only interested in checking if your input model is accepted by Kind 2, you can run the tool without providing any property (like in your attached model) and making sure slicing is disabled:
kind2 --slice_nodes false test3.lus
Hope this helps you,
Daniel

Hi Daniel,
Thanks for answering.
The command will still look to prove properties inside the file.
I will avoid using automaton as it appears I can use merge instead in my example.
Thanks,
Hamza


activeTab does not find merge editors

To reproduce:
search globally for
private async runGitMerge(diff3: boolean): Promise<void> {

and put a breakpoint in that method
Open a merge conflict:
{
    "languageId": "typescript",
    "base": "\trenderTemplate(container: HTMLElement): ITreeExplorerTemplateData {\n\t\tcontainer.classList.add('custom-view-tree-node-item');\n\n\t\tconst",
    "input1": "\trenderTemplate(container: HTMLElement): ITreeExplorerTemplateData {\n\t\tcontainer.classList.add('custom-view-tree-node-item');\n\n\t\tconst icon = DOM.append(container, DOM.$('.custom-view-tree-node-item-icon'));\n\n\t\tconst",
    "input2": "\trenderTemplate(container: HTMLElement): ITreeExplorerTemplateData {\n\t\tcontainer.classList.add('custom-view-tree-node-item');\n\n\t\tconst checkboxContainer = DOM.append(container, DOM.$(''));\n\t\tconst",
    "result": "\trenderTemplate(container: HTMLElement): ITreeExplorerTemplateData {\n\t\tcontainer.classList.add('custom-view-tree-node-item');\n\n\t\tconst",
    "initialResult": ""
}

And trigger this command:

We closed this issue because we are unable to reproduce the problem with the steps you describe. Chances are we've already fixed your problem in a recent version of VS Code. If not, please ask us to reopen the issue and provide us with more detail. Our issue reporting guidelines might help you with that.
Happy Coding!


[CodeCompletion] Deduplicate results in ExprContextInfo

Using canonical types. Otherwise Optional<T> and T? aren't considered the same.
Also in unresolved member completion, if the expected context types are T? and T, don't get results from T twice.
rdar://problem/71063455

@swift-ci Please smoke test


Drop function doesn't lead to tetronimo moving to lowest possible point.

The drop function is currently usable, however there are bugs.
When there are no tetronimos at the bottom of the screen, the tetronimo will drop to 1 block above the bottom of the playfield. This is not so much of a UX issue, as it doesn't interrupt the feel of the game.
When there are tetronimos, the dropped tetronimo will often ignore them and settle within the dropped tetronimos. This is a UX issue, and one which I need to figure out the logic behind.
Relevant file : lambdalumps/src/IO/Drop.hs

@AveryLychee fixed this! Closing.

I'm still having this issue with your version of drop. Is it functioning ok on your machine?

I've just realised that this is due to there being two different definitions of drop!

Need to update the arrowized version of drop too. Will get on this,


add hidden property in RankFieldConfig interface

This is a band-aid fix which doesn't address the underlying issue, which is that this type doesn't reflect the source-of-truth type. As I suggested in the linked issue, a more appropriate fix would be export interface RankFieldConfig extends SingleFieldSet { … }

Forgive me for my ignorance, but how do I implement this fix?

@michaelmannucci Bump to the latest version of @sanity/orderable-document-list.

@ryami333 Thanks for the quick reply. I am on "@sanity/orderable-document-list": "^1.2.1",, is that not latest?


Fix horse spawn egg spawning variants

In Vanilla, horse spawn eggs only spawn the variants that spawn naturally; in Glowstone++, there's a chance they spawn zombie horses, too.

Thank you for your contribution!


Chantools for postgres

This is not an issue, but I cannot find a discussion tab for this project so I will ask my question here.
I am interested to perform a chantools dropchannelgraph but for a postgres-backed lnd. Is there any way to do this? I tried browsing through the postgres db especially the channeldb_kv to see if I can understand the contents but it is just a key-value table with binary (not human readable) data in the key and value columns.
If you can share maybe a SQL delete statement that I can run to get a similar effect to chantools dropchannelgraph it would be appreciated. Thanks.

There is no easy way to do this yet. Dropping the channel graph does mean removing certain top-level KV buckets (which could be done with an SQL query). But to get the node working again, the node's own channels need to be re-inserted into the graph afterwards, otherwise things won't work properly. And that can only be done with the custom business logic implemented in chantools. So I'll need to add the ability for chantools to connect to a remote Postgres DB to perform the operation. But I don't think I'll have time to do that any time soon...

+1 for general postgres support


epic: investigate and design a tracing API for the cairo vm ts

look at VMs, i.e. EVMs,
NPM packages for tracing and error tracing

This is not linked to the VM trace (prover mode)

@Eikix can you give more context ? or we close this?

Ah yes, I wonder how we can replicate the concept of Cairo trace for Cairo VM TS
The fact that you get a precise error trace when hitting a CairoVM error in Python. Moreover, I wonder if it can come directly decoded

Ah yes, I wonder how we can replicate the concept of Cairo trace for Cairo VM TS
The fact that you get a precise error trace when hitting a CairoVM error in Python. Moreover, I wonder if it can come directly decoded

Are you talking about what the --show_trace flag outputs  in the python VM cli? If so, the JS error already display the call stack leading to the error
But if we're talking about where it failed on the Cairo program, such as
cairo_programs/cairo_0/bad_programs/bad_range_check_builtin.cairo:4:5: Error at pc=0:2:
Value<PHONE_NUMBER>666131213697322783095070105623107215331596699973092056135872020480, in range check builtin 0, is out of range [0,<PHONE_NUMBER>20938463463374607431768211456).
    assert [range_check_ptr] = -1;
    ^****************************^

For Error at pc=0:2, we can add a try catch clause in the vm step() to log at which PC it failed and then throw
A meaningful error message is doable by adding an error message to the super('') constructor of each error class (e.g. error: Value ${value} in range_check builtin is out of range [0, ${bound}])
For the link to the Cairo program, is it done through the debug_info of the compilation artifacts, instruction_locations maps the (relative) PC (0:2 => "2") to the instruction location. The inst field gives the path to the cairo program + start/end lines and columns of the instruction.

Assuming the Cairo file is available in the context of execution, adding a debug attribute to the VM (optional in the config ?) would allow to show which Cairo statement induced the error. Don't know if something changes with more complex cases (w/ hints, nested call to imported libraries) but as is, it can be implemented without too much hassle imo
"2": {
  "accessible_scopes": [
    "__main__",
    "__main__.main"
  ],
  "flow_tracking_data": {
    "ap_tracking": {
      "group": 0,
      "offset": 1
    },
    "reference_ids": {
      "__main__.main.__temp0": 1,
      "__main__.main.range_check_ptr": 0
    }
  },
  "hints": [],
  "inst": {
    "end_col": 35,
    "end_line": 4,
    "input_file": {
      "filename": "cairo_programs/cairo_0/bad_programs/bad_range_check_builtin.cairo"
    },
    "start_col": 5,
    "start_line": 4
  }
},


Fixed #408: The error checking statements were using the wrong variable names in the fs.read() example in doc.

This pull request fixes the typo in the error checking statements in the docs for fs.read().

🚢 it!!

This should be shipped in the latest version.


Only "I'm not seeing anything...“

I am not a native English speaker, so I try to make the translation software understand me.
I tried the submodule you created, and when I tried to click on the 'How do I look' topic, Monica only told me she couldn't see anything.
I tried to do some things myself, such as

click on Restart MASM, then Test Packet but the pingtime doesn't change anything. And the status is closed.

open MASM.exe before MAS starts (is this what the console means?) : Throwing error [Winerror 10054] The remote host is forcing an existing connection to close.

Open MASM.exe after MAS
starts but before the display screen, the pingtime is 4419ms, and the status is Closed. I continue to click Restart MASM and ping usually 1-3ms, but after a few seconds the MASM status changes to closed

As you can see, the MAS I'm using is a translated version, so I tried the original English version again. But the status changed to Unable to create socket

I don't really know how to troubleshoot the problem, hopefully these things will be useful :)

Uh... It looks like I made a mistake in the first picture. Maybe this issue should only have two screenshots.

Looks like you're using older version of the submod, which is correct as new versions have issues that still need to be fixed.
New version has an option which allows manually opening MASM.exe by yourself to work (thus not saying "Subprocess closed").
However, this project has been on hiatus for some time (again) and I can't tell when I'll get enough motivation to work on it.

Uh... Well, have a nice life :)

OK, I tried to update to the latest version and it is still working fine. So another question - can I translate your Submod into Chinese and post it on a Chinese site? I will mark your name and original website :)

I'm having the same problem. Pls, tell me how you fixed it.

OK, I tried to update to the latest version and it is still working fine. So another question - can I translate your Submod into Chinese and post it on a Chinese site? I will mark your name and original website :)

You can, sorry I didn't notice your comment sooner. I have no issues with this.

I'm having the same problem. Pls, tell me how you fixed it.

Could you tell me the steps you have taken to installing the Submod?

Well, I literally did the same thing that they said; I restarted the MASM manually. It keeps saying no face-data found.

When I ping, it keeps saying, "Failed to prepare data"

Well, I literally did the same thing that they said; I restarted the MASM manually. It keeps saying no face-data found.

When I ping, it keeps saying, "Failed to prepare data"

Hm.. You have installed the MASM binary correct? You should be able to find MASM.exe inside game/Submods/MAS-Additions/MASM/ folder.

I just said that I had Restart MASM on.

I did

It's a bit difficult to do debugging like this through GitHub issues, do you have Discord? Send me a DM, I can't say when I'll be available, but I'll answer when I have time. DatHorse#9516

I added you more than an hour ago.

I added you more than an hour ago.

I sent you a message, seems like timezones are gonna be a little problematic, I'll be staying up later now so I can hopefully catch you online.

Closing as stale, not sure what outcome was, if not fixed by new changes new issue can be created.


新增参数取模条件运算

为保持原有的字段与结构，使用value字段进行表明：取模数|符合条数的余数（多条件使用,分割）

would you please recommit this pr to v0.7.0-dev branch which all new features will be released in.
BTW, it could be better to rewrite commit message in English.

👌


Fix url markdown

https://voxeolabs.atlassian.net/browse/SSDK-1776

Deploy preview for hopeful-hamilton-4090b9 ready!
Built with commit 786b19d603fe8c1d82b412bafd6f67a0759ec5cc
https://deploy-preview-681--hopeful-hamilton-4090b9.netlify.com

@adamweeks, is this still waiting to be deployed?

@tahanson-cisco yes, we are having some issues getting deployments going, but we are actively working on it

@tahanson-cisco the fix has been merged to master but this has been updated to just have a test to confirm the fix. You should be able to tell the client to check /latest


Audio Device Error w/ Pulse Audio on WSL

Upon running the final command to finishing setting up, I'm stuck on this error.
~/wisdom-tree(main) » python3 main.py                shared memfd open() failed: Function not implemented ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default Traceback (most recent call last):   File "main.py", line 11, in <module>     mixer.init() pygame.error: ALSA: Couldn't open audio device: No such file or directory
Does wisdom-tree only work on linux based operated systems? I assume it just can't find an audio driver compatible with WSL.

I haven't tested on WSL, but wisdom tree does work on Windows, so you don't need to use WSL.


Feature engineering

Working on https://github.com/mapbox/gabbar/issues/37

Training dataset

The Area Under the Curve (AUC) represents a model’s ability to discriminate between positive and negative classes. An area of 1.0 represents a model that made all predictions perfectly. An area of 0.5 represents a model that is as good as random.

AUC score: 0.8

Validation dataset

AUC score: 0.7

Predicted good
Predicted harmful

Labelled good
1750
151

Labelled harmful
541
140

             precision    recall  f1-score   support

      False       0.76      0.92      0.83      1901
       True       0.48      0.21      0.29       681

avg / total       0.69      0.73      0.69      2582

Testing dataset

Predicted good: 25,385
Predicted harmful: 219


Add visual on the "generator" and maybe others....

Reason/Context
When going to AsyncAPI.com/tools I can see some quick instructions on how to get started which is great, but I feel it would help me understand with some visuals.
To give you an example, the generator.
https://www.asyncapi.com/tools/generator
After talking to @jonaslagoni I know what the generator and templates do, but I feel if there was a simple cool looking diagram on this page I would of got it straight away.
Ignore how rubbish this looks, but if we can get somebody do help with the design maybe we could give more a visual impact on what the generator does.
Example (ignore how bad it looks)

If we had this designed or even better svg animated ;), might be helpful (and pretty cool!)

I think diagrams and interactiveness are always good to explain things and make it nicer to digest knowledge. I can help to review the diagram, but for sure won't be able to create it in such professional way 😄 we need help

@derberg  Hi sorry I was inactive for some days because of a hackathon I was unable to continue.
Is this issue still active

@Jitulteron7 no worries mate. I don't think anyone is working on this one

Adding design labels here as I think it could be useful to have a designer in this issue to help with the visual design of the diagram

@Florence-Njeri since you are working on more complex diagram for generator documentation, you think you are able to provide a much smaller, condensed, easier version of it, with mermaid, as input

Hey @derberg, yes sure

@derberg can I take this?

@octonawish-akcodes sure thing. In Generator docs in the website you will find diagrams that @Florence-Njeri create last year. Just for this task I guess better to simplify them and make it visually appealing as more important here is to have it pretty than useful 😆

@derberg, how far with what was the conclusion to this?

conclusion is that we need nice diagram but nobody created it yet

I would like to do this,and this is my first time doing something like this,I hope someone helps with my queries in the process.

you guys want like this

@derberg @boyney123 PTAL

@Mayaleeeee can you please share a feedback

@Mayaleeeee can you please share a feedback

Sure!
Thanks for the pinging.

Summarising things down
For this issue we need a diagram and just need to implement it in the code

cc @Mayaleeeee  @sambhavgupta0705

cc @Mayaleeeee

This looks good to me
I think we can start implementing it

@TenzDelek do you want to work on this issue?

sure, will raise a pr soon .. @sambhavgupta0705


Multiply upload

Hi everyone.
I made this script:
<?php

...

class UploadCommand extends UserCommand
{

    ...

    public function execute()
    {
        $message = $this->getMessage();
        $chat    = $message->getChat();
        $chat_id = $chat->getId();
        $user_id = $message->getFrom()->getId();
        $text    = trim($message->getText(true));

        $update = json_decode($this->update->toJson(), true);

        $pdo = DB::getPdo();

        $keyboard = new Keyboard(
            ['🔙 Cancel']
        );

        $data = [
            'chat_id' => $chat_id,
            'reply_markup' => $keyboard->setResizeKeyboard(true)->setOneTimeKeyboard(false)->setSelective(false),
            'parse_mode' => 'Markdown',
        ];

        if ($chat->isGroupChat() || $chat->isSuperGroup()) {
            $data['reply_markup'] = Keyboard::forceReply(['selective' => true]);
        }

        $this->conversation = new Conversation($user_id, $chat_id, $this->getName());
        $notes = &$this->conversation->notes;
        !is_array($notes) && $notes = [];

        $state = 0;
        if (isset($notes['state'])) {
            $state = $notes['state'];
        }
        $result = Request::emptyResponse();

        switch ($state) {
            case 0:
                if ($message->getPhoto() === null) {
                    $notes['state'] = 0;
                    $this->conversation->update();

                    $data['text'] = '*Upload your picture.*';

                    $result = Request::sendMessage($data);
                    break;
                }

                    $doc = call_user_func([$message, 'get' . ucfirst($message->getType())]);
                    ($message->getType() === 'photo') && $doc = end($doc);
                    $notes['photo_id'] = $doc->getFileId();

            case 1:
                $this->conversation->update();

                $file = Request::getFile(['file_id' => $notes['photo_id']]);

                if ($file->isOk()) {
                    Request::downloadFile($file->getResult());

                    $data['text'] = "Your fileID is {$notes['photo_id']}";
                } else {
                    $msg = [
                        'chat_id' => $chat_id,
                        'text' => 'Upload error!',
                    ];
                    Request::sendMessage($msg);
                }

                $this->conversation->stop();
                Request::sendMessage($data);

                $update['message']['text'] = '/start';
                $result = (new StartCommand($this->telegram, new Update($update)))->preExecute();
                break;
        }

        return $result;
    }
}

And I want to upgrade my script. So, if I send 5 photos for one, I need to upload all 5 photos and get ID of files with reply from bot. Is it possible? It seems to me, that I need to remove a Conversation-structure from Command, but I don't know, how to implement it correctly?
Thanks in advance!

You mean sending 5 photos in 1 message?
Your bot will still receive individual updates for each one. You'll have to link them together in the conversation notes for example.

Hi, @noplanman , thanks for your answer.
I mean more than 1 photo. 2, 4, 10...
We can send 1 album with 5 photos or send 5 photos without grouping. But I can not understandt, how can I cath this. So it's an example:

Your conversation needs to stay in the same state until the user sends some kind of "Finished" message.

You could add a message after each link saying that you can send next image to generate new link or press /done to finish. Could also use callback buttons here.

@noplanman thank you! I made it so and it works!
<?php

...

class UploadCommand extends UserCommand
{

    ...

    public function execute()
    {
        $message = $this->getMessage();
        $chat    = $message->getChat();
        $chat_id = $chat->getId();
        $user_id = $message->getFrom()->getId();
        $text    = trim($message->getText(true));

        $update = json_decode($this->update->toJson(), true);

        $pdo = DB::getPdo();

        $keyboard = new Keyboard(
            ['🔙 Cancel']
        );

        $data = [
            'chat_id' => $chat_id,
            'reply_markup' => $keyboard->setResizeKeyboard(true)->setOneTimeKeyboard(false)->setSelective(false),
            'parse_mode' => 'Markdown',
        ];

        if ($chat->isGroupChat() || $chat->isSuperGroup()) {
            $data['reply_markup'] = Keyboard::forceReply(['selective' => true]);
        }

        $this->conversation = new Conversation($user_id, $chat_id, $this->getName());
        $notes = &$this->conversation->notes;
        !is_array($notes) && $notes = [];

        $state = 0;
        if (isset($notes['state'])) {
            $state = $notes['state'];
        }
        $result = Request::emptyResponse();

        switch ($state) {
            case 0:
                if ($message->getPhoto() === null) {
                    $notes['state'] = 0;
//                    $this->conversation->update();

                    $data['text'] = '*Upload your picture(-s)*';

                    if ($text === '🔙 Cancel') {
                        $notes['state'] = 0;
                        $this->conversation->stop();

                        $update['message']['text'] = '/start';
                        $result = (new StartCommand($this->telegram, new Update($update)))->execute();
                        break;
                    }

//                    $result = Request::sendMessage($data);
                    Request::sendMessage($data);
//                    break;
                }

                $doc = call_user_func([$message, 'get' . ucfirst($message->getType())]);
                ($message->getType() === 'photo') && $doc = end($doc);
                $notes['photo_id'] = $doc->getFileId();

                $file = Request::getFile(['file_id' => $notes['photo_id']]);

                if ($file->isOk()) {
                    Request::downloadFile($file->getResult());

                    Request::sendMessage([
                        'chat_id' => $chat_id,
                        'reply_to_message_id' => $message->getMessageId(),
                        'disable_web_page_preview' => true,
                        'text' => "Your fileID is {$notes['photo_id']}",
                    ]);

                } else {
                    $msg = [
                        'chat_id' => $chat_id,
                        'text' => 'Upload error!',
                    ];
                    Request::sendMessage($msg);
                }
        }

        return $result;
    }
}

Great @MyZik
By the way, I would encourage you to use the available reply helpers, to make your code simpler and less error-prone:
// instead of this:
$msg = [
    'chat_id' => $chat_id,
    'text' => 'Upload error!',
];
Request::sendMessage($msg);

// use this:
$this->replyToChat('Upload error!');


Right-click Explorer Extension not visible with 24.12

After upgrading 24.11.1 (x64 version on Windows 11) to 24.12, the right-click MediaInfo option in Windows Explorer no longer appears. I checked MediaInfo Preferences, and the Explorer extension preference is still ticked. I uninstalled 24.12 and installed 24.11.1, and the right-click MediaInfo option re-appears. Upgrade again to 24.12 and it disappears.

Please test this dev snapshot.
There is a discussion about that at https://github.com/MediaArea/MediaInfo/issues/994.

Does it not appear on the new context menu of the classic one or both? Have you tried restarting Windows and waiting a few minutes?
What does Get-AppxPackage MediaInfo return?

Actually, what I have discovered is that with 24.12, it's only for video files (mkv or mp4 extension) that I no longer see a right-click MediaInfo option. The right-click option is still there for image files (jpg, tif, bmp).
Running Get-AppxPackage MediaInfo
Name              : MediaInfo
Publisher         : CN=MEDIAAREA.NET, O=MEDIAAREA.NET, L=Curienne, S=Auvergne-Rhône-Alpes, C=FR
Architecture      : Neutral
ResourceId        :
Version           : <IP_ADDRESS>
PackageFullName   : MediaInfo_<IP_ADDRESS>_neutral__0z25jj8eabac0
InstallLocation   : C:\Program Files\WindowsApps\MediaInfo_<IP_ADDRESS>_neutral__0z25jj8eabac0
IsFramework       : False
PackageFamilyName : MediaInfo_0z25jj8eabac0
PublisherId       : 0z25jj8eabac0
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
IsPartiallyStaged : False
SignatureKind     : Developer
Status            : Ok

it's only for video files (mkv or mp4 extension) that I no longer see a right-click MediaInfo option.

Something unexpected going on again. MediaInfo's shell extension handles all supported file extensions in the same way.

For me both 24.12 and the snapshot above shows context menu entry in Fire Explorer, but they don't show up in Directory Opus, as mentioned in #994.

For me, both 24.12 and the snapshot above shows context menu entry in Fire Explorer, but they don't show up in Directory Opus, as mentioned in #994.

You should report to Directory Opus developers. It is not handling shell extensions that have a list of file extensions. It does not show context menu entry for Microsoft Photos and Paint or Mp3tag too. Directory Opus only supports shell extensions that appear for all filetypes at the moment.


No result when performing "Test your scale set"

The IP did not resolve. I also tried to PING it and it dropped the packet.

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

ID: d1954e40-761b-9aaa-47e4-66a4f906f60b
Version Independent ID: b7456079-ba57-a969-42b4-0234c214cc07
Content: Tutorial - Create a virtual machine scale set for Windows in Azure
Content Source: articles/virtual-machines/windows/tutorial-create-vmss.md
Service: virtual-machine-scale-sets
GitHub Login: @cynthn
Microsoft Alias: cynthn

Let me know if the JSON schema will help.

@tapialuism Your issue could be related to this one: https://github.com/MicrosoftDocs/azure-docs/issues/15286
Can you please confirm if you are seeing the same issue.

@tapialuism Any update on this one?

@tapialuism Can you please share the details as asked above? thanks.

Hello Karishma,
Sorry, I have been unavailable. I will give it another go shortly.
Thanks for the follow up.
On Thu, Sep 27, 2018 at 11:54 AM Karishma Tiwari - MSFT <
<EMAIL_ADDRESS>wrote:

@tapialuism https://github.com/tapialuism Can you please share the
details as asked above? thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/15368#issuecomment-425204398,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ApBWaPC6v17O-oy8RFBRc0lEt65_AJqrks5ufR70gaJpZM4Wy2Wh
.

The error I am getting in the browser is "Cannot find server". I attached
the json.
On Thu, Sep 27, 2018 at 1:16 PM Luis Tapia<EMAIL_ADDRESS>wrote:

Hello Karishma,
Sorry, I have been unavailable. I will give it another go shortly.
Thanks for the follow up.
On Thu, Sep 27, 2018 at 11:54 AM Karishma Tiwari - MSFT <
<EMAIL_ADDRESS>wrote:

@tapialuism https://github.com/tapialuism Can you please share the
details as asked above? thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/15368#issuecomment-425204398,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ApBWaPC6v17O-oy8RFBRc0lEt65_AJqrks5ufR70gaJpZM4Wy2Wh
.

@tapialuism Your issue is same as #15286. Network security group has to be created and assigned to the VNET subnet, with inbound port 80 open, for this tutorial to function properly. We are working on updating the docs, till then please follow as stated above. Thanks.

Thank you for creating this issue @tapialuism
I have a fix for this issue and I'll add it to the docs soon.
#please-close


Low Priority warning createClass usage

I get this error (react 15.1.0)
Warning: Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://fb.me/react-create-class

actually still not fixed, i just cleaning up my opened stalled github issue list 🙏


Add LoongArch CPU support

Add STRESSAPPTEST_CPU_LOONGARCH definition.
Implement cpuid(), GetFeatures(), FastFlush() and GetTimestamp() or LoongArch.
Eliminate "WARNING: Unsupported CPU ..." or similar warnings on LoongArch.
update config.sub and config.guess for LoongArch

Gentle ping.

Rebased code and config separately, and bumped version number. Thanks for the commit!


feat: new script to validate file names separately from standardising

example input file can be found at: s3://linz-workflow-artifacts/2023-04/19-test-mdavidson-check-duplicates-grp-50-q6s46/test-mdavidson-check-duplicates-grp-50-q6s46-aws-list-1283280238/list.tgz
Can be tested using docker by copying the json file to /scripts and running:
docker build . -t topo-imagery

docker run -v ${HOME}/.aws/credentials:/root/.aws/credentials:ro -e AWS_PROFILE topo-imagery python check_duplicates.py --file-list /scripts/file_list.json --scale 5000 | pjl

This takes too long, will be rewritten in argo-tasks


Unselect item in Treeview not working

Describe the bug
Unselect a TreeView item with @bind-ActivatedValue not work.
TryMudBlazor
https://try.mudblazor.com/snippet/GuQFOJOKIsLSvJXE
Screenshots

Thats not a final solution about this, but with #5856, we have Select method to select and activate an item programmatically and properly.

I believe this is working in v6.19.1 with SelectedValue binding
https://try.mudblazor.com/snippet/wOwyYxwZqHUiWdTU


Form - Little Help

I´m trying to insert the form values in Database, but I can´t finish it well..
What I have:
Page 1: Contains the smartwizard with  and in the bottom of the page
<script type="text/javascript"> function submitform() {   document.new_user.submit(); } </script>
Then when i create my "new_user.php" page i need to check if the Smartwizard Finish button was clicked before I insert the values in DB. How can I do that?
Thanks in Advance

You can use jquery to manipulate the form data before submit it to the server page.
<form name="my_form" id="myForm" onsubmit="return false;">
    <input type="text" name="form_field_1" value="" />
    <input type="text" name="form_field_2" value="" />
    ...
    <button type="submit" id="btnSubmit">Send</button>
</form>

And the JS in the end of the page
jQuery(document).ready(function(){
    jQuery("btnSubmit").click(function(event){
        event.preventDefault();

        // Do what do you want
        // If you want a AJAX Submit
        var formData = jQuery("#myForm").serialize();
        jQuery.ajax('the/server/page', {
            type: "POST",
            data: formData,
            dataType: "json",
            success: function(response) {
                // do something
            }
        });
    });
});

In server side you can do something like it:
<?php

// Single
$field1 = $_POST['form_field_1'];
$field2 = $_POST['form_field_2'];

....

// If you ave a validate class
$form = new MyFormValidationClass($_POST);

if ( $form.validate() ) {
    // do something
}

// The jQuery AJAX submit is expecting some JSON return you can send in PHP this way

echo json_encode(array(
    'status' => 'success or error',
    'data' => 'some data to manipulate in form after the submition'
));

I hope it help you.

Hi samuelrbo,
Thank you very much for your help!

Is your problem solve? You can see the documentation of the libraries that we use on the wizard https://github.com/mstratman/jQuery-Smart-Wizard

Dear christianesperar,
It´s ok now. Thank you both for your help!
Best Regards,
Diogo


rga_tree_split.edit is called twice in one edit.

What happened:
// src/document/crdt/rga_tree_split.ts
public edit(~) {
        console.log('***************call edit*****************');
        ~

// Console in webpack.dev or CodePair for each text edit
YORKIE I: [PP] c:"23975d5e-2494-4874b-c1ab-0c96637229b"
 sync d:"codepairs$n9quc", push:1 pull:0 cp:serverSeq=1, clientSeq=1
rga_tree_split.ts:484 **************call edit***************
rga_tree_split.ts:484 **************call edit***************
logger.ts:63 YORKIE I: [PP] c:"23975d5e-2494-4874b-c1ab-0c96637229b"
 sync d:"codepairs$n9quc", push:1 pull:0 cp:serverSeq=2, clientSeq=2

I found this problem during debugging of range deletion bugs.
this problem exists from older version(at least 0.2.7), but where the splayNodes are not deleted(2 of https://github.com/yorkie-team/yorkie-js-sdk/pull/312) it had no effect because the already generated edit is overwritten with the same edit.
But on this version, the splayNodes are actually deleted from treeByIndex, then the second edit access to a node that has already been deleted and causes invalid index access and runtime errors.
I don't know if this is caused of yorkie-js-sdk or just listener design of codepair. but there's a same problem in webpack dev server in js-sdk, so I reported here.
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:

Operating system:
Browser and version:
Yorkie version (use yorkie version):
Yorkie JS SDK version:

I'm confused if this is normal behavior. I will look into it more and report it again.


Diverging from primitive behavior in overflowing shift

The rust docs say the following about overflowing shift:

If the shift value is too large, then value is masked (N-1) where N is the number of bits, and this value is then used to perform the shift.
(Source: https://doc.rust-lang.org/std/primitive.u64.html#method.overflowing_shl)
And you can see this via the following code:

#[allow(arithmetic_overflow)]
fn main() {
    let a: u64 = 500;
    let b = a << 119;
    println!("{}", b);
}

Which prints<PHONE_NUMBER>9481984000.
On the other hand in the implementation here zeros will be returned: https://github.com/RustCrypto/crypto-bigint/blob/36dbb69a73cfdba1eef90e10a8424cde39602e3b/src/uint/shl.rs#L18

cc @mikelodder7

FYI to achieve the same behavior as libstd we can just add n = n % (Limb::BIT_SIZE * LIMBS) at the start of that function


Update README

This is mostly a clean-up PR. It's opened up a number of questions for me, though, which I'll file as issues or emails.
For now this just brings this repo's readme closer to https://github.com/w3c/vc-test-suite-implementations/

@BigBlueHat This needs to be rebased on main branch, thanks.


removed basemap thumbnail resources and changed ui to listview

This sample was breaking every time a new default basemap option was introduced. We also have so many options that having a button for each covered most of the map.
I removed the thumbnail resources and changed the UI to use a simple listview.
No need to change this on master since the last release doesn't have all those basemap types.

@john0005 Can you review?

Looks good. Will also need to update the Picture and how to use section in the README.


Sample: 14.nlp-with-dispatch

Depends on #740, #741

@Batta32 I'll take this one since I'm caught up on other items this week.

Sure @LeeParrishMSFT ! Thanks for the information 😊.


Remark change &reg into ® in URL

At each instance of the & reg element, remark transforms it to ®, even in URLs.
Input is :
[example 1](http://www.example.com?param=1&region=here)
http://www.example.com?param=1&region=here
`http://www.example.com?param=1&region=here`

Output is :
[example 1](http://www.example.com?param=1®ion=here)
<http://www.example.com?param=1®ion=here>
`http://www.example.com?param=1&region=here`

I think it should have an exception on URL formatting.

That has to do with non-terminated entities being allowed in HTML, but we can switch to nonTerminated: false in our usage of parse-entities.
That’s a breaking change though, so I’ll bundle that up with other breaking changes!


master --> live

Docs Build status updates of commit 0149828:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/closepseudoconsole.md
:white_check_mark:Succeeded
View

docs/createpseudoconsole.md
:white_check_mark:Succeeded
View

docs/creating-a-pseudoconsole-session.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Brain.java:61-63: After Russian language is done and teste...

The puzzle 181-ca416da0 in src/main/java/com/amihaiemil/charles/github/Brain.java (lines 61-63) has to be resolved: After Russian language is done and tested, let's start using it. It should be added bellow, right after English and everything should work after that.
The puzzle was created by Mihai Emil Andronache on 19-Jan-17.
Estimate: 30 minutes, role: DEV.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code.

This issue is obsolete now, as we will refactor the brain and it will only speak english, and it won't work with regexes anymore as they are hard to mantain and explain. We'll keep it simple: english and containing words instead or regex...

The puzzle 181-ca416da0 has disappeared from the source code, that's why I closed this issue.


Buy SOV promo change

please could we update the offer to reflect 30K SOV and remove the end date of 30 May


Refactor expirable modules so it uses a hash in the module's name.

This is not feasible, since the TaskManager will always recompute the task even if the dataset didn't change. We need to think of a better refactor.


[question] where to edit the website files?

i want to make minor edits to the website files on my pi, but where are they located if you just used apt-get/pip

If you run 'mopidy deps' it'll show you the directory. Usually something like /usr/local/python2.7/dist-packsges/mopidy-moped/blah.file

found the folder but the tpl files don't seem to be there? where are they located?

bump :)

Those files are not included in the release. So you need to follow the Development instructions and then run sudo pip install . from within the cloned directory to get Mopidy to use your customised files (or pip install --editable . if you want to avoid having to do that last step after every change).

am i missing something or is there no way to change the end html in a file somewhere?

If you follow the  Development instructions and build your own version with grunt, the built files can be found in the /dist directory.


AzureAdJoined

Should add a comment that AzureAdJoined shows as YES for either

Azure AD Joined Devices
Hybrid Joined Devices

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

ID: b9f81d74-8dcb-e644-9647-0d1d0817f975
Version Independent ID: e249cc9d-2120-8868-dbca-bc3b85f38b4b
Content: Troubleshooting hybrid Azure Active Directory joined devices
Content Source: articles/active-directory/devices/troubleshoot-hybrid-join-windows-current.md
Service: active-directory
Sub-service: devices
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@danmyhre

Hey @danmyhre thanks for letting us know about this, I've gone ahead and put this in the doc, please let us know if you have anymore thoughts regarding this issue, otherwise I'll be closing this out by end of day tommorrow


worth using --enable-alt-array-implementation in bash 5.2+?

I read over the short release notes for bash 5.2 since I noticed it's recently become the default in nixpkgs and noticed the following:
u. There is an alternate array implementation, selectable at `configure' time,
   that optimizes access speed over memory use (use the new configure
    --enable-alt-array-implementation option).

I haven't played with the feature yet, but IIRC stdenv and other shell builders make extensive use of arrays--so it might be interesting to see what this speed/performance tradeoff is like at nixpkgs-scale?

openSUSE has
https://github.com/bmwiedemann/openSUSE/commit/ac02cc0f225644e6190b0b0ab89458156507a19f

Disable alternate array implementation as it eats a lot of memory


🌐 Initialize new language Korean for translations

related to #2017
I accept this suggestion: https://github.com/tiangolo/fastapi/pull/2014#issuecomment-687610306
This PR is to add a new language, Korean.

Any updates..?
This PR is to initialize/setup Korean translation, not even real translations.

Awesome! Thanks! :rocket: :tada:


WIP - update stored file metadata to include a range

This is a work in progress and not quite finished but is getting close. Some of the tests and functionality are still broken but I wanted to get a draft PR submitted so people can start reviewing the direction I am headed.
This updates the file metadata column in the metadata table so that file references are no longer just a path but also include a range. The field is now serialized as Json. We will need to handle upgrades/backwards compatibility at some point but for now this just changes everything to Json.
Some of the things that are still broken include table import/export as the metadata needs to be fixed there, and I think clone might be broken too. I tried to fix several of the tests include scan server tests, external compactions but some things may still be broken as I have not run all the tests.
The plan is to finish getting everything polished here when I get some time so tests are passing and then work on some integration tests.

The sunny IT build is finally passing, I kicked off a full build to see what else is broken.

I stopped the full IT build as I saw several test failures and it was slowing down the build. I went ahead and fixed the ones that popped up so far and re-kicked off another build.

Test run showed 8 failures, I fixed them and kicked off another full build, hopefully everything passes now.

@keith-turner - The full ITs all passed so this is ready for a review from you to see what you think. I'll leave it as a draft PR for now but can switch it if you think it looks ok but I'm sure there are some things that need fixing. The next step would be to write an IT to test out adding ranges to the metadata table and reading them with the iterator.

As part of the elasticity work we created a few tables (like this one) and these were really helpful in thinking through things.  I was wondering if it would be useful to create a table for these range changes and was thinking about something like the following.

 I was wondering if it would be useful to create a table for these range changes and was thinking about something like the following.
 It should make it much easier to verify correctness and to test if we document what needs to care about certain things. As I start to write tests I can reference this to make sure things look good.

I've started working on ITs to show that the metadata can be read properly and fencing works. There's a few tests here so far showing contiguous and disjointed ranges work: https://github.com/cshannon/accumulo/blob/accumulo-1327-itest/test/src/main/java/org/apache/accumulo/test/functional/FileMetadataIT.java
I'm going to continue working on the tests, I plan to add tests to show compaction will work and also splits, etc. The test branch is based off of this current PR/branch so will eventually be based off of no-chop-merge branch when this PR is merged in.
After some more tests which should be done soon, I plan to start prototyping dropping the chop compactions and updating merge to use ranges. The majority of this work appears to be in TabletGroupWatcher in the mergeMetadataRecords method.

I added compaction to the tests and compaction seems to work correctly with the simple tests, here is some output showing before and after: https://gist.github.com/cshannon/67a72d3075c07992eb64a36e64ecbcda
I started testing out splits and split doesn't seem to be correct. When I wrote a test that had fenced rfiles in metadata and then I added splits, the output seems to be not right for the resulting new metadata. So I plan to look into the split code usage for the ranges later this week and also I will test out GC as well.

@cshannon I had meant to create a PR for 883d3d8b32faf839b98b6f3a604bc0d3f8813302, but accidentally pushed it directly to the no chop branch.  Let me know if you have any feedback for that.  Also I was wondering where you would recommend I put a unit test for StoredTabletFile.

@cshannon I was also wondering if the validation is needed in any other places than where I added it in 883d3d8b32faf839b98b6f3a604bc0d3f8813302

@cshannon I had meant to create a PR for 883d3d8, but accidentally pushed it directly to the no chop branch. Let me know if you have any feedback for that. Also I was wondering where you would recommend I put a unit test for StoredTabletFile.

This looks good but I think we can probably just move the validation to AbstractTabletFile so I can  move it. I had already added some validation but this looks better. For a test, we can probably just created a StoredTabletFile test class that lives next to where ReferencedTabletFileTest is.