JBEAP-6722 DeploymentScannerTestCase intermittently failing

EAP 7.1 Jira: https://issues.jboss.org/browse/JBEAP-6722
WFLY Jira: https://issues.jboss.org/browse/WFCORE-1911
Fixing intermittent failures.

Core - Full Integration Build 4004 outcome was FAILURE using a merge of ea8319c7c93fd76717f85124a5c75238f8f48587
Summary: Tests failed: 1 (1 new), passed: 3615, ignored: 110 Build time: 00:49:50
Failed tests
org.jboss.as.test.integration.domain.mixed.eap630.MixedDomainDeployment630TestCase: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: Could not start container
	at org.jboss.as.test.integration.domain.management.util.DomainLifecycleUtil.awaitServers(DomainLifecycleUtil.java:451)
	at org.jboss.as.test.integration.domain.management.util.DomainLifecycleUtil.start(DomainLifecycleUtil.java:253)
	at org.jboss.as.test.integration.domain.mixed.MixedDomainTestSupport.startAndAdjust(MixedDomainTestSupport.java:175)
	at org.jboss.as.test.integration.domain.mixed.MixedDomainTestSupport.start(MixedDomainTestSupport.java:93)
	at org.jboss.as.test.integration.domain.mixed.MixedDomainTestSuite.getSupport(MixedDomainTestSuite.java:96)
	at org.jboss.as.test.integration.domain.mixed.MixedDomainTestSuite.getSupport(MixedDomainTestSuite.java:59)
	at org.jboss.as.test.integration.domain.mixed.eap630.MixedDomain630TestSuite.initializeDomain(MixedDomain630TestSuite.java:44)
	at org.jboss.as.test.integration.domain.mixed.eap630.MixedDomainDeployment630TestCase.beforeClass(MixedDomainDeployment630TestCase.java:38)
------- Stdout: -------
[Host Controller]  [0m [0m10:13:57,621 INFO  [org.jboss.as.domain.controller] (management task-10) WFLYHC0026: Unregistered remote slave host "slave" [0m
 [0m10:13:59,180 INFO  [org.jboss.modules] (main) JBoss Modules version 1.6.0.Beta3
 [0m [0m10:13:59,371 INFO  [org.jboss.as.process.Host Controller.status] (main) WFLYPC0018: Starting process 'Host Controller'
 [0m[Host Controller]  [0m10:13:59,707 INFO  [org.jboss.modules] (main) JBoss Modules version 1.6.0.Beta3 [0m
[Host Controller]  [0m [0m10:13:59,923 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.7.Final [0m
[Host Controller]  [0m [0m10:13:59,970 INFO  [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: WildFly Full 11.0.0.Alpha1-SNAPSHOT (WildFly Core 3.0.0.Alpha16-SNAPSHOT) starting [0m
[Host Controller]  [0m [0m10:14:00,269 INFO  [org.jboss.as.domain.management] (Controller Boot Thread) WFLYDM0136: Registered OpenSSL provider [0m
[Host Controller]  [0m [0m10:14:00,404 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/host=master/core-service=management/management-interface=native-interface' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. [0m
[Host Controller]  [0m [0m10:14:00,406 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/host=master/core-service=management/management-interface=http-interface' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. [0m
[Host Controller]  [0m [0m10:14:00,463 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'permgen-size' in the resource at address '/host=master/jvm=default' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. [0m
[Host Controller]  [0m [0m10:14:00,463 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'max-permgen-size' in the resource at address '/host=master/jvm=default' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. [0m
[Host Controller]  [0m [0m10:14:00,486 INFO  [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0003: Creating http management service using network interface (management) port (9990) securePort (-1) [0m
[Host Controller]  [0m [0m10:14:00,490 INFO  [org.xnio] (MSC service thread 1-5) XNIO version 3.4.1.Final [0m
[Host Controller]  [0m [0m10:14:00,496 INFO  [org.xnio.nio] (MSC service thread 1-5) XNIO NIO Implementation Version 3.4.1.Final [0m
[Host Controller]  [0m [0m10:14:00,510 INFO  [org.jboss.as.patching] (MSC service thread 1-4) WFLYPAT0050: WildFly Full cumulative patch ID is: base, one-off patches include: none [0m
[Host Controller]  [0m [33m10:14:00,525 WARN  [org.jboss.as.domain.management.security] (MSC service thread 1-5) WFLYDM0111: Keystore /store/work/tc-work/5768cf3a0bee5b47/full/testsuite/mixed-domain/target/domains/MixedDomain630TestSuite/master/configuration/application.keystore not found, it will be auto generated on first use with a self signed certificate for host localhost [0m
[Host Controller]  [33m [0m [0m10:14:00,526 INFO  [org.jboss.remoting] (MSC service thread 1-2) JBoss Remoting version 5.0.0.Beta12 [0m
[Host Controller]  [0m [0m10:14:00,557 INFO  [org.wildfly.security] (MSC service thread 1-2) ELY00001: WildFly Elytron version 1.1.0.Beta17 [0m
[Host Controller]  [0m [0m10:14:00,596 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) WFLYRMT0001: Listening on [::1]:9999 [0m
[Host Controller]  [0m [0m10:14:01,452 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/profile=default/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. [0m
[Host Controller]  [0m [0m10:14:01,502 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/profile=ha/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. [0m
[Host Controller]  [0m [0m10:14:01,520 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/profile=full/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. [0m
[Host Controller]  [0m [0m10:14:01,538 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/profile=full-ha/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. [0m
[Host Controller]  [0m [0m10:14:01,751 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://[::1]:9990/management [0m
[Host Controller]  [0m [0m10:14:01,751 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0054: Admin console is not enabled [0m
[Host Controller]  [0m [0m10:14:01,752 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 11.0.0.Alpha1-SNAPSHOT (WildFly Core 3.0.0.Alpha16-SNAPSHOT) (Host Controller) started in 2319ms - Started 47 of 51 services (18 services are lazy, passive or on-demand) [0m
INFO  [org.jboss.as.test.integration.domain.management.util.DomainLifecycleUtil] HostController started in 2884 ms
[Host Controller]  [0m [33m10:14:02,745 WARN  [org.jboss.as.messaging] (management-handler-thread - 1) WFLYMSG0071: There is no resource matching the expiry-address jms.queue.ExpiryQueue for the address-settings #, expired messages from destinations matching this address-setting will be lost! [0m
[Host Controller]  [33m [0m [33m10:14:02,746 WARN  [org.jboss.as.messaging] (management-handler-thread - 1) WFLYMSG0072: There is no resource matching the dead-letter-address jms.queue.DLQ for the address-settings #, undelivered messages from destinations matching this address-setting will be lost! [0m
[Host Controller]  [33m [0m [0m10:14:03,195 INFO  [org.jboss.as.controller.management-deprecated] (management-handler-thread - 2) WFLYCTL0028: Attribute 'default-stack' in the resource at address '/' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. [0m
[Host Controller]  [0m [0m10:14:03,501 INFO  [org.jboss.as.controller.management-deprecated] (management-handler-thread - 4) WFLYCTL0028: Attribute 'stack' in the resource at address '/' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. [0m
[Host Controller]  [0m [0m10:14:03,581 INFO  [org.jboss.as] (MSC service thread 1-1) WFLYSRV0050: WildFly Full 11.0.0.Alpha1-SNAPSHOT (WildFly Core 3.0.0.Alpha16-SNAPSHOT) stopped in 21ms [0m
[Host Controller]  [0m [0m10:14:03,582 INFO  [org.jboss.as] (MSC service thread 1-1) WFLYSRV0049: WildFly Full 11.0.0.Alpha1-SNAPSHOT (WildFly Core 3.0.0.Alpha16-SNAPSHOT) starting [0m
[Host Controller]  [0m [0m10:14:03,599 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/host=master/core-service=management/management-interface=native-interface' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. [0m
[Host Controller]  [0m [0m10:14:03,599 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/host=master/core-service=management/management-interface=http-interface' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. [0m
[Host Controller]  [0m [0m10:14:03,601 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'permgen-size' in the resource at address '/host=master/jvm=default' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. [0m
[Host Controller]  [0m [0m10:14:03,601 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'max-permgen-size' in the resource at address '/host=master/jvm=default' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. [0m
[Host Controller]  [0m [0m10:14:03,605 INFO  [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0003: Creating http management service using network interface (management) port (9990) securePort (-1) [0m
[Host Controller]  [0m [0m10:14:03,609 INFO  [org.jboss.as.patching] (MSC service thread 1-6) WFLYPAT0050: WildFly Full cumulative patch ID is: base, one-off patches include: none [0m
[Host Controller]  [0m [33m10:14:03,615 WARN  [org.jboss.as.domain.management.security] (MSC service thread 1-6) WFLYDM0111: Keystore /store/work/tc-work/5768cf3a0bee5b47/full/testsuite/mixed-domain/target/domains/MixedDomain630TestSuite/master/configuration/application.keystore not found, it will be auto generated on first use with a self signed certificate for host localhost [0m
[Host Controller]  [33m [0m [0m10:14:03,617 INFO  [org.jboss.as.remoting] (MSC service thread 1-6) WFLYRMT0001: Listening on [::1]:9999 [0m

retest this please

@kabir sorry, commit message updated


Workaround an upstream nom bug

This commit works around Geal/nom#843 where the API of the nom crate
changes based on feature selection, meaning we need to be compatible
even if another crate in the crate graph enables a feature.
Ideally this'd be fixed in upstream nom, and it looks like it will in
the next major version! For now a local catch-all directive should help
out.

Thanks for fixing this so quickly!


Fix apostrophes

don’t or don't. I see we have the latter.
If it doesn't affect how the user sees it then.


Refactoring + More tests

Q
A

Is bugfix?
❌

New feature?
❌

Breaks BC?
❌

Fixed issues
#102 #114

👍


chore: refactor datasource import flow to add support for transaction in pg

Description
Automation
/ok-to-test<EMAIL_ADDRESS>:mag: Cypress test results

[!TIP]
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9747160944
Commit: 239a42fe414c0ef1161e39b8bec4b07225224c01
Cypress dashboard.
Tags: @tag.Git

Communication
Should the DevRel and Marketing teams inform users about this change?

[ ] Yes
[ ] No

Summary by CodeRabbit

New Features

Introduced dry run capabilities for datasources, allowing users to save and test their configurations without affecting live data.

Enhancements

Updated the import and save processes to handle dry run queries, providing an additional layer for testing datasource configurations before finalizing them.

@AnaghHegde changes LGTM for now but have we tested the flow with duplicate name entities?
Steps:

Create workspace 1 and add 2 datasources:
a. mongodb
b. mongodb #1
Create application1 and add pages and queries attached to above datasources.
Create workspace2
Create test_application and add a datasource with name mongodb
Export and import application1 from step 2 to workspace2

Are we seeing failures because of duplicate key exception?

/build-deploy-preview -skip-tests=true


fpga: add support for Arria10 DCP 1.0

Added DCP 1.0 Arria10 region and compress AFU ids
to the mapping collection to be able to work with
DCP 1.0 bitstreams.
This is also an enabler for FPGA demo that uses compress.aocx,
which is not compilable by aoc compiler from DCP 1.1

Codecov Report

Merging #119 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master    #119   +/-   ##
======================================
  Coverage    79.7%   79.7%
======================================
  Files          10      10
  Lines        1212    1212
======================================
  Hits          966     966
  Misses        223     223
  Partials       23      23

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c54b5e1...471ef9b. Read the comment docs.


[IOTDB-133] Fix other mistaken links in documents

There are still some other mistaken links.

Thanks ~!


support newtype

a example:
#[delegate]
trait IState {
    fn initState(&self);
    fn initState2(&self);
}
#[derive(Delegate, Default)]
pub struct Stateful(#[to(IState)] State);

error: proc-macro derive panicked
  --> crates/ui_provider/src/lib/state.rs:29:10
   |
29 | #[derive(Delegate, Default)]
   |          ^^^^^^^^
   |
   = help: message: called `Option::unwrap()` on a `None` value

I'll take care of it soon❕

Released v0.0.2
This release includes support for newtype patterns.
https://github.com/elm-register/auto-delegate/releases/tag/v0.0.2


Make RustConnection use a nonblocking stream

This is my attempt at fixing #408. This PR makes RustConnection use a nonblocking stream. This allows poll_for_event() to actually try to read something without blocking.
An open problem is: What to do on Window? I guess we need some safe API to call WSAPoll or something like it. Besides that, I think this is actually relatively okay. I was hoping to also fix #222, but that is left as future work.
Suggestions on how to make this nicer are welcome.
Suggestions on what to do with Windows are especially welcome.
Suggestions on how to introduce generic types are also welcome (#417).

Superseded by #420


Angular 7 load multiple app

awesome will get support to angular 7.
I was going through the instruction and start loading my applications. I am able to build and load the application through index.html but it load only single application base on base href.
https://github.com/CanopyTax/single-spa-angular/blob/master/README.md
I am new to single-spa so not sure what are the options to register multiple application:
singleSpa.registerApplication('spa1', window.spa1.default, location => true);
singleSpa.registerApplication('spa2', window.spa2.default, , location => location.pathname.indexOf("/spa2") >= 0);

fond a solution

👍 see related #41


Physics Picking Events happen in SubViewport without area restrictions of SubViewportContainer

Godot version
v4.0.alpha.custom_build [31b3bda36]
System information
Debian 11, Vulkan
Issue description
Prerequisite:

SubViewportContainer with rect_clip_content = true

SubViewport (blue area)

Area2D + CollisionShape2D (gray + red area)

A CollisionShape2D within a SubViewport receives Mouse-events on positions that are not visible in the viewport.
I would expect to receive MouseEnter and MouseExit events at the border of the gray area, however current behavior is that the events trigger in the following way:

Enter event at the border of the red area
Exit event at the border of the red+gray+blue area

This is related to #28833, but not a duplicate, because this issue is based on_unhandled_input, while the other is based on _gui_input.
The reason for this issue is, that _unhandled_input is propagated by SubViewportContainer to its SubViewport, even if the position of the event is outside of the SubViewportContainer.
This issue can be solved by ensuring that SubViewportContainer propagates events with a position property to its SubViewports _unhandled_input only if the event happens within the area of the SubViewportContainer. The combination of PR #57894 + #58334 fixes this problem.
Steps to reproduce

Load and run MRP
Move mouse over the border of the red area
View Console output

Minimal reproduction project
ViewportPhysicsClip.zip

Please move to 4.1 since the according PR was also moved to 4.1


Packagist no longer has different version based of tags

Visiting the packagist page https://packagist.org/packages/d11wtq/boris for this package only shows the dev-master version, even though there is a multitude of tags in the Git repository. Is it normal that they have disappeared? Do they need to be resynced?
It's breaking third party packages that I depend on in my build process.
Many thanks

I'm having the exact same problem and I'm deploying a huge app right now ...

Hmm, sounds strange.. I just tried clicking the "update" button on packagist. Can you try it now?

Yeah that's better they are all back now. Building correctly.
Thanks


Allow to override driud archive filename

it's necessary to change archive filename to upgrade to next druid version

:ok:


Fixes and features

Summary by CodeRabbit

New Features

Introduced the StakingRewards component to allow users to view and claim staking rewards.
Added utility functions for rounding numbers and formatting addresses.

Documentation

Updated the package name and import paths to @zeta-chain/universalkit in the README for a Next.js app setup.

Chores

Changed the package name from @fadeev/swap to @zeta-chain/universalkit and reset the version to 1.0.0 in package.json.
Updated dependencies in package.json for improved functionality and performance.

@coderabbitai review


Link Updates

Since you're using https for most of the libraries, I updated the leaflet and jquery links to also use https.  This should make it easier for anybody trying to run bootleaf as https.
Also updated the metadata link for the boroughs, since they've changed it to a pdf.

:+1: Thanks!


[CODEC-250] correcting handling of special character between equal letters for cologne phonetic

Fix for CODEC-250 for handling of special characters between equal letters for cologne phonetic.
"Test-test" and "testtest" should result in the same value according to cologne phonetic.

PR no longer required, since it has been fixed in a different way. See CODEC-250 for more details.


Consider tweaking precedence of is operator

From Michel Hermier:
> IO.print(true == 10 is Num)
false
> IO.print(10 is Num == true)
true

This seems a bit unintuitive. Should we change the precedence of the RHS to make this more symmetric?

Yep, it looks like it needs higher precedence.


[DMD 2.079.0+, Windows] Investigate DUB/linker missing _stdin (and more)

Oddly enough, DUB on my Windows machine acts weirdly when using x86_mscoff/x86_64:

_stdin missing reference
__D4core4stdc5stdio7putcharFNbNiNeiZi missing reference

Solution: Move away from core.stdc.* and re-extern what we need.

Blocked on stdin.

This issue was resolved in commit 9a4e5c7fa2dd6c94282db2d15954f5a748a287ef. See ddc.d for more details.


multi-node multi-gpu with time constraint and model checkpointing

Hi,
I am using a multi-node multi-gpu cluster which has a scheduled time limit of 6 hours for the SLURM jobs.
Is there any quick sample code to understand how to use multi-node and multi-gpu and checkpoint and resume after 6 hours automatically?
Any suggestions would be helpful.
Thanks!

This should help:
https://pytorch-lightning.readthedocs.io/en/latest/slurm.html
in particular the section about auto-resubmit.

@awaelchli Thank you for the link. A follow-up question: How to make sure that it starts from where it left off, checkpointing should help, right?

Yes, it's supposed to restart from checkpoint. I have never tried it myself, but we're looking into adding multi-node testing so we can guarantee this works smoothly in all cases.

I see, thanks for your reply, and yes, built-in multi-node support would be great.


FileNotFoundError: SAM seems to be trying to interpret local file as a url? (Segment Anything integration)

I started my Label Studio container with:
docker run -it -p 8080:8080 -v /mydata:/label-studio/data --env LABEL_STUDIO_LOCAL_FILES_SERVING_ENABLED=true --env LABEL_STUDIO_LOCAL_FILES_DOCUMENT_ROOT=/label-studio/data/images heartexlabs/label-studio

And I started Segment Anything with the following docker-compose.yml (with the access token added):
version: "3.8"

services:
  segment_anything_model:
    container_name: segment_anything_model
    image: heartexlabs/label-studio-ml-backend:sam-master
    build:
      context: .
      shm_size: '4gb'
      args:
        TEST_ENV: ${TEST_ENV}
    deploy:
      resources:
        limits:
            memory: 8G
        reservations:
            memory: 4G
# Add this to pass through 1 GPU
            devices:
              - driver: nvidia
                count: 1
                capabilities: [gpu]
    environment:
      # specify these parameters if you want to use basic auth for the model server
      - BASIC_AUTH_USER=
      - BASIC_AUTH_PASS=
      # Change this to your model name: MobileSAM or SAM
      - SAM_CHOICE=MobileSAM
      - LOG_LEVEL=DEBUG
      # Enable this to use the GPU
      # - NVIDIA_VISIBLE_DEVICES=all
      # specify the number of workers and threads for the model server
      - WORKERS=1
      - THREADS=8
      # specify the model directory (likely you don't need to change this)
      - MODEL_DIR=/data/models

      # Specify the Label Studio URL and API key to access
      # uploaded, local storage and cloud storage files.
      # Do not use 'localhost' as it does not work within Docker containers.
      # Use prefix 'http://' or 'https://' for the URL always.
      # Determine the actual IP using 'ifconfig' (Linux/Mac) or 'ipconfig' (Windows).
      - LABEL_STUDIO_HOST=http://<IP_ADDRESS>:8080
      - LABEL_STUDIO_ACCESS_TOKEN=***REMOVED***

    ports:
      - 9090:9090
    volumes:
      - "./data/server:/data"
    environment:
      - NVIDIA_VISIBLE_DEVICES=all

Which I then ran with a command prompt, in that directory, with the command of docker compose up --build.
Everything runs fine with no errors - the model registers and validates fine - but when I go to actually try to do a prediction, the following happens in the SAM docker container and I get no prediction back:
segment_anything_model  | Point coords are [[2040, 1356]], point labels are [1], input box is None
segment_anything_model  | [2024-06-02 12:18:30,316] [ERROR] [label_studio_ml.exceptions::exception_f::53] Traceback (most recent call last):
segment_anything_model  |   File "/usr/local/lib/python3.8/site-packages/label_studio_ml/exceptions.py", line 39, in exception_f
segment_anything_model  |     return f(*args, **kwargs)
segment_anything_model  |   File "/usr/local/lib/python3.8/site-packages/label_studio_ml/api.py", line 69, in _predict
segment_anything_model  |     response = model.predict(tasks, context=context, **params)
segment_anything_model  |   File "/app/model.py", line 51, in predict
segment_anything_model  |     predictor_results = PREDICTOR.predict(
segment_anything_model  |   File "/app/sam_predictor.py", line 202, in predict
segment_anything_model  |     return self.predict_sam(img_path, point_coords, point_labels, input_box, task)
segment_anything_model  |   File "/app/sam_predictor.py", line 173, in predict_sam
segment_anything_model  |     self.set_image(img_path, calculate_embeddings=False, task=task)
segment_anything_model  |   File "/app/sam_predictor.py", line 86, in set_image
segment_anything_model  |     image_path = get_local_path(
segment_anything_model  |   File "/usr/local/lib/python3.8/site-packages/label_studio_tools/core/utils/io.py", line 121, in get_local_path
segment_anything_model  |     raise FileNotFoundError(
segment_anything_model  | FileNotFoundError: Can't resolve url, neither hostname or project_dir passed: /data/upload/1/80cf6086-1LookingAwayOrig.JPG. You can set LABEL_STUDIO_URL environment variable to use it as a hostname.
segment_anything_model  |
segment_anything_model  | Traceback (most recent call last):
segment_anything_model  |   File "/usr/local/lib/python3.8/site-packages/label_studio_ml/exceptions.py", line 39, in exception_f
segment_anything_model  |     return f(*args, **kwargs)
segment_anything_model  |   File "/usr/local/lib/python3.8/site-packages/label_studio_ml/api.py", line 69, in _predict
segment_anything_model  |     response = model.predict(tasks, context=context, **params)
segment_anything_model  |   File "/app/model.py", line 51, in predict
segment_anything_model  |     predictor_results = PREDICTOR.predict(
segment_anything_model  |   File "/app/sam_predictor.py", line 202, in predict
segment_anything_model  |     return self.predict_sam(img_path, point_coords, point_labels, input_box, task)
segment_anything_model  |   File "/app/sam_predictor.py", line 173, in predict_sam
segment_anything_model  |     self.set_image(img_path, calculate_embeddings=False, task=task)
segment_anything_model  |   File "/app/sam_predictor.py", line 86, in set_image
segment_anything_model  |     image_path = get_local_path(
segment_anything_model  |   File "/usr/local/lib/python3.8/site-packages/label_studio_tools/core/utils/io.py", line 121, in get_local_path
segment_anything_model  |     raise FileNotFoundError(
segment_anything_model  | FileNotFoundError: Can't resolve url, neither hostname or project_dir passed: /data/upload/1/80cf6086-1LookingAwayOrig.JPG. You can set LABEL_STUDIO_URL environment variable to use it as a hostname.

I've checked similar issues and I believe this is a new issue (though I may be entirely wrong). Could anyone help me out with this? Thanks so much!!

After poking around for a bit, I found this which suggests that maybe I have to use an absolute path instead of a relative path - give me a second to see if this fixes the issue

Still getting the same error :(
segment_anything_model  | Point coords are [[2040, 1356], [1883, 1408]], point labels are [0, 1], input box is None
segment_anything_model  | [2024-06-02 13:20:00,785] [ERROR] [label_studio_ml.exceptions::exception_f::53] Traceback (most recent call last):
segment_anything_model  |   File "/usr/local/lib/python3.8/site-packages/label_studio_ml/exceptions.py", line 39, in exception_f
segment_anything_model  |     return f(*args, **kwargs)
segment_anything_model  |   File "/usr/local/lib/python3.8/site-packages/label_studio_ml/api.py", line 69, in _predict
segment_anything_model  |     response = model.predict(tasks, context=context, **params)
segment_anything_model  |   File "/app/model.py", line 51, in predict
segment_anything_model  |     predictor_results = PREDICTOR.predict(
segment_anything_model  |   File "/app/sam_predictor.py", line 202, in predict
segment_anything_model  |     return self.predict_sam(img_path, point_coords, point_labels, input_box, task)
segment_anything_model  |   File "/app/sam_predictor.py", line 173, in predict_sam
segment_anything_model  |     self.set_image(img_path, calculate_embeddings=False, task=task)
segment_anything_model  |   File "/app/sam_predictor.py", line 86, in set_image
segment_anything_model  |     image_path = get_local_path(
segment_anything_model  |   File "/usr/local/lib/python3.8/site-packages/label_studio_tools/core/utils/io.py", line 121, in get_local_path
segment_anything_model  |     raise FileNotFoundError(
segment_anything_model  | FileNotFoundError: Can't resolve url, neither hostname or project_dir passed: /data/upload/1/80cf6086-1LookingAwayOrig.JPG. You can set LABEL_STUDIO_URL environment variable to use it as a hostname.
segment_anything_model  |
segment_anything_model  | Traceback (most recent call last):
segment_anything_model  |   File "/usr/local/lib/python3.8/site-packages/label_studio_ml/exceptions.py", line 39, in exception_f
segment_anything_model  |     return f(*args, **kwargs)
segment_anything_model  |   File "/usr/local/lib/python3.8/site-packages/label_studio_ml/api.py", line 69, in _predict
segment_anything_model  |     response = model.predict(tasks, context=context, **params)
segment_anything_model  |   File "/app/model.py", line 51, in predict
segment_anything_model  |     predictor_results = PREDICTOR.predict(
segment_anything_model  |   File "/app/sam_predictor.py", line 202, in predict
segment_anything_model  |     return self.predict_sam(img_path, point_coords, point_labels, input_box, task)
segment_anything_model  |   File "/app/sam_predictor.py", line 173, in predict_sam
segment_anything_model  |     self.set_image(img_path, calculate_embeddings=False, task=task)
segment_anything_model  |   File "/app/sam_predictor.py", line 86, in set_image
segment_anything_model  |     image_path = get_local_path(
segment_anything_model  |   File "/usr/local/lib/python3.8/site-packages/label_studio_tools/core/utils/io.py", line 121, in get_local_path
segment_anything_model  |     raise FileNotFoundError(
segment_anything_model  | FileNotFoundError: Can't resolve url, neither hostname or project_dir passed: /data/upload/1/80cf6086-1LookingAwayOrig.JPG. You can set LABEL_STUDIO_URL environment variable to use it as a hostname.

This is like #443 except the images are already imported using the GUI and it still doesn't work.
Any advice?

On a whim I tried docker run -it -p 8080:8080 -v C:\\labelstudiodata:\\label-studio\\data --env LABEL_STUDIO_LOCAL_FILES_SERVING_ENABLED=true --env LABEL_STUDIO_LOCAL_FILES_DOCUMENT_ROOT=C:\\data\\media heartexlabs/label-studio and that didn't work either unfortunately

Have you tried to set LABEL_STUDIO_URL and LABEL_STUDIO_API_KEY ?
I see you used HOST and ACCESS_TOKEN, but it is better to try url and api_key.

WOW that did it! For others who come across this issue, I just changed LABEL_STUDIO_HOST and LABEL_STUDIO_ACCESS_TOKEN to LABEL_STUDIO_URL and LABEL_STUDIO_API_KEY respectively and it worked first try! Thanks @makseq!


Install menu fix

Removes the 'none' option from the install menu, and instead adds code to check for no option selected (prompting the user to ask if they'd like to return to the install menu), whilst keeping function of the cancel button.

Okay yep, that's a good idea and I think how I managed it back in December. Done :+1:


Add additional temperature sensor to IP thermostats

This allows e.g. the new 'area' card to show the temperatue, since it
can't read the climate values, and offers less need for fiddling with
template sensors.
Tested locally, seems to work good enough.

Thank you,

Isn't ist true for all thermostats? Or really only IP thermostats...

I can add it.

... and humidity

I actually don't like it that much to add entities which aren't needed by everyone. And as stated above, it can be done with template sensors if the need for temperature sensors is present. That's a bit like the virtual channels or RSSI etc.. In my opinion it's actually Home Assistant that should be capable of working with climate entities in this context anyways. Maybe this already is working for other integrations and there's just something missing (apart from the sensor entity).

I don't know if if get your point. We already have humidity as separate sensor for IP (your proposal).What is the difference to temperature?
When it comes to diagnostic entities like OPERATING_VOLTAGE, RSSI_DEVICE, RSSI_PEER, DUTYCYCLE, DUTY_CYCLE, SABOTAGE. They will be created, but are disabled by default.
Also virtual channels are disabled by default.
So what should we do?

I don' get the point either. Home Assitant is moving forward to give the user the best experience without having to deal with to much technical stuff (e.g. creating a template sensor just to show the temperature!). I personally also missed those entities and don't wont to deal with extra configs. If it is not required for personal preferences. I can just disable entities I don't care about. That way is much easier than forcing someone manually create things.

Technical background from hahomematic:
We do not create any extra entities in hahomematic for temperature and humidity. The same hm_entities are used for climate and sensor. So there is no extra load/work in hahomematic.
There is only a marker, if an entity should be created in HA or not.

My point is, that climate entities already expose the temperature in their own way. Having a dedicated temperature sensor is a duplication of an already available value. For humidity this is different, as climate entities don't expose that (in the UI, just as attributes). So in this case the additional sensor makes sense.
I'm obviously coming from an UI-centered perspective here. And I'm fine with this PR being merges. I just wanted to voice my concern that this (shouldn't) be necessary in the first place. I've been collecting temperature statistic into Influx for years with just the climate entities. So adding another entity just for a new UI-feature that does not (yet) support climate entities seems a bit "drastic" to me. Lets say in one of the upcoming HA releases climates were supported for this feature as well, would the temp-sensor still be needed? The temperature of climate entities can also be used in automations etc.. So if it's then obsolte, removing it would be a breaking change.
Again, I'm not strictly against this. I just wanted to share my opinion that - at least for the single new feature - the real solution would be to add climate-support for the area cards.

Obviously i'm coming from a backend-centered perspective here :wink:.
I don't know what will be in HA in the future but we should not be in fear of a breaking change, but it should be announced early as soon this is stable enough or part of HA.
The current HA UI gives a simple way to disable unwanted entities or to create a customized UI.
Even if I sometimes take the opposite view, every exchange of views is worthwhile.

Again, I'm not strictly against this. I just wanted to share my opinion that - at least for the single new feature - the real solution would be to add climate-support for the area cards.

I entirely agree on the point that for my rather selfish motivation for this PR, it would have been the cleaner way to 'just' patch the area card to support climate entities.
But in general, as @itn3rd77 noted, HA has the problem of hiding some features behind patterns that, while easy too look up, are annoying to implement; for example: feeding climate values to things just reading entity states. Yes, there's solutions, but they're all the kind of barrier that's mostly there to appeal to the (totally understandable) technical side of things instead of the UX.
Especially with HA moving to a "just click everything, don't worry with the YAML" approach, I think that having things more accessible to use easily is a bit more important than being less quirky in dealing with the implementation.
The best way to solve this specific limitation would just be to allow entity-like access to e.g. sensors included in complex entities like climate (or even things like media_player), or something along those lines. And, of course, with a very long (if any) turnaround for a feature request. :)


drag and drop media

is there any talk of an enhancement allowing for drag and dropping of images and videos?
thanks!

That would be great, but we don't have it right now @Jbarget!

@ricobl if i get it done i can open a PR
are you open to PRs?

Sure! We're open to pull requests.
What do you want? Drag-and-drop of media files or some kind of block reordering? Do you have a solution in mind?

drag n drop of media files, saw this so might try and integrate that

Cool, we would like to integrate Megadraft with draft-js-plugins. This would allow using this plugin and many others.
I've experimented with it here: https://github.com/globocom/megadraft/tree/poc-draftjs-plugins
It's not clear to me how the draft-js-dnd-plugin plugin handles the upload. How does it send files to the backend? Is there a callback?

found this library that seems to make use of the draft-js-plugins

Looks good @Jbarget!

@Jbarget @ricobl Hi all!
Is this issue in work or just waiting for PR?

Hey @lgordey, sorry for the delay...
I don't know about @Jbarget, but our people at @globocom is not working on this.
I did a little experiment on this branch trying to integrate with draft-js-plugins, looks like it works but there are some design decisions needed to go forward with this.
The integration would probably allow the usage of the draft-js-dnd-plugin.

https://github.com/vacenz/last-draft (based heavily on Megadraft) has some cool drag-and-drop functionality, worth checking out for those who want to add the functionality

It would be nice to be able to drag/drop/re-order any component in the editor, including text blocks?

It would be great to have that feature @chachra! Do you have something in mind? Would you like to submit a pull request?

I do have something in mind. I am a bit confused between this project, draft.js (what it builds on), draft plugins and slate ( https://github.com/ianstormtaylor/slate ) - was on hacker news yesterday.
So it might take me some time till I get my head around.
I really like how Wagtail (Django CMS) did StreamField. Basically rather than one large WYSIWYG editor where its easy to get things messed up, styles mixed etc. they broke it up into "blocks" each of which you can think of a "plugin" and then these can be added in order, moved around, edited, previewed etc. - https://www.youtube.com/watch?v=oUJNweMWwVQ
In a editor I think users expectations are to do quick editing, and not think of blocks. But from an architecture perspective blocks make sense. The way megadraft examples are is very close I think and I like that megadraft out of the box has a nicer ui / ux etc. as well.
Your thoughts welcome as well @ricobl :-)

Hi @chachra!
I don't know about Wagtail's StreamField or about Slate but I can try to help you with the others.
DraftJS is a framework for building text editors, it has no user interface and no plugin system, only extension points.
Megadraft is built on top of DraftJS, adding the toolbars and a plugin system for atomic blocks.
And draft-js-plugins is a generic plugin system also built on top of DraftJS. There are plans to integrate Megadraft with draft-js-plugins so we can use the best of both.

Thanks for background @ricobl - I u/s now. Slate is here: https://github.com/ianstormtaylor/slate
Doesn't seem as active or good looking out of the box as megadraft is...

Cool, thanks for sharing @chachra!
And thanks for the good looking! 👍

Any new for this feature ?

No news @BafS, would you like to give it a try and send a PR?

I will see, for the moment I compare different options :)

It would be nice to be able to drag/drop/re-order any component in the editor, including text blocks? @chachra

Any new for this feature ? @BafS

Hi, Andre Gavino from @globocom here! We are working on the block reordering functionality and will soon release a first version. Follow issue #266


Non core entity types are not retrieved

Describe the bug
Entities of the type profile are not obtained when using the fetch method. Trying to retrieve them using the farm.fetch('profile', 'common') without success.
To Reproduce
Steps to reproduce the behavior:

Initiate a farmos object, a farm which includes the desired profile--common schema is ourscitest. Here is the schema.
Fetch all entities.
If you try to call the methods associated with core types such as log, they work, but there's nothing similar for profile.

Sorry! I meant the schema. I used entity across the whole issue, but I really meant the schema for those en entity types.

Hey, sorry I haven't found a chance to connect synchronously. Best to email me if you want to schedule something, or I can just respond here.
I just tried this test again on my local machine, and it still works for me:
https://github.com/farmOS/farmOS.js/blob/7e2bc255ca64061ccbb8838a3bae228adf2f8e16/test/profile-support.js#L30-L38
The only changes I made to farmOS.js on top of main are the test itself, which I originally wrote way back when first testing these profile entities, plus 7e2bc25 to reflect the changes in #67. And main has only 2 commits (a non-code commit, 63c0479, and a bit of extra testing added, 98d2b39) ahead of the latest version 2.0.0-beta.16, which I released back in February to include the changes for subrequests #83.
My farmOS installation is version 2.x-dev, with the farm_profile and farm_profile_common modules installed. I think it was last updated March 2022, but maybe something has changed server-side since then, either in the modules or farmOS core?
@mstenta, any guesses if something might have changed on that end? And what's the best way to pin down the specific version/commit on my local?

Hmm nothing has changed that would affect the ability to fetch common profile schema... not that I can think of anyway. :thinking:


Investigate GraphQL

@rubensayshi this could be the best way to move forward once it is standardized.
Especially in relation to complex queries where all you want is the minimal amount of relevant data.

hmm interesting idea

A good video for explaining GraphQL.

Probably not going to happen


feature about default filters

Is your feature request related to a problem? Please describe.
1、Enable special route to disable default filters.
2、Route created by RouteLocatorBuilder should contains default filters.
3、If special route already define a GatewayFilter,the same GatewayFilter in the default filters will not work.
Describe the solution you'd like
application.yaml
spring:
  cloud:
    gateway:
      default-filters:
        - AddResponseHeader=X-Response-Default-Red, Default-Blue
        - PrefixPath=/v5
      routes:
        - id: test-default-filters
          uri: http://localhost:5230
          // disable default filters
          enable-default-filters: true
          predicates:
            - Path=/api/test/**
          filters:
            - PrefixPath=/iot

Describe alternatives you've considered
RouteDefinition add one field named "enable-default-filters" and default value is true.This filed can configure through yaml of code when define route.
Additional context
Current problems
1、how default-filters work not very consistent
spring:
  cloud:
    gateway:
      default-filters:
        - AddResponseHeader=X-Response-Default-Red, Default-Blue
        - PrefixPath=/v5
      routes:
        - id: test-default-filters
          uri: http://localhost:5230
          enable-default-filters: true
          predicates:
            - Path=/api/test/**
          filters:
            - PrefixPath=/iot

when curl http://localhost:8080/api/test will redirect to /iot/api/test.But the follow configure to  /v5/api/test.
spring:
  cloud:
    gateway:
      default-filters:
#        - AddResponseHeader=X-Response-Default-Red, Default-Blue
        - PrefixPath=/v5
      routes:
        - id: test-default-filters
          uri: http://localhost:5230
          enable-default-filters: true
          predicates:
            - Path=/api/test/**
          filters:
            - PrefixPath=/iot

2、when use fluent api define route,default filters not works
spring:
  cloud:
    gateway:
      default-filters:
        - AddResponseHeader=X-Response-Default-Red, Default-Blue
        - PrefixPath=/v5
      routes:
        - id: test-default-filters
          uri: http://localhost:5230
          enable-default-filters: true
          predicates:
            - Path=/api/test/**
          filters:
            - PrefixPath=/iot

@Bean
public RouteLocator defaultFilters(RouteLocatorBuilder builder) {
	return builder.routes()
			.route("fluent-api-route", f -> f.path("/route/**")
					.uri("http://localhost:9090"))
			.build();
}

call spring cloud gateway api：/actuator/gateway/routes get the below response：
    {
        "predicate": "Paths: [/route/**], match trailing slash: true",
        "route_id": "fluent-api-route",
        "filters": [],
        "uri": "http://localhost:9090",
        "order": 0
    }

I believe this is a duplicate

Is it a duplicate of #263?

@ryanjbaxter
I partly agree with you, second feature about: "Route created by RouteLocatorBuilder should contains default filters" is duplicate of #263,but I think other two feature also need.In my local repository i have already realize this feature,but I am still thinking about a better implementation of this.Spring Cloud Gateway will accept this feature?

OK.
The best thing to do is to open one issue per feature, that way we can track them separately.  I would suggest you close this issue and create two new issues for the other features you need.
And yes we do accept contributions from users.  If you open an issue you can then create a PR for that issue and we can review the implementation.

Filters are a list. You can have multiple filters of the same kind in one route so I don't think we want to replace default filters. I'm also hesitant to add a feature to disable default filters for a specific route. If it's not a default only include it where needed.

I agree with this design:Filters are a list and can contains multiple filters of the same kind.But we must guarantee same kind of filter executed in order and the order not changed.Current implement can't guarantee this,for example:
Route defined in application.yaml
spring:
  cloud:
    gateway:
      default-filters:
        - AddResponseHeader=X-Response-Default-Red, Default-Blue
        - PrefixPath=/v1
      routes:
        - id: default-filter
          uri: http://localhost:5225
          predicates:
            - Path= /gateway/liveness
          filters:
            - PrefixPath=/v5

This route definition will be like this:
[
    {
        "predicate": "Paths: [/gateway/liveness], match trailing slash: true",
        "route_id": "default-filter",
        "filters": [
            "[[AddResponseHeader X-Response-Default-Red = 'Default-Blue'], order = 1]",
            "[[PrefixPath prefix = '/v5'], order = 1]",
            "[[PrefixPath prefix = '/v1'], order = 2]"
        ],
        "uri": "http://localhost:5225",
        "order": 0
    }
]

PrefixPath filter defined by “default-filter” will be executed before default filter.But when i remove “AddResponseHeader” filter from default filter this order will be changed.
route definition in application.yaml with delete AddResponseHeader from default-filters
spring:
  cloud:
    gateway:
      default-filters:
        - PrefixPath=/v1
      routes:
        - id: default-filter
          uri: http://localhost:5225
          predicates:
            - Path= /gateway/liveness
          filters:
            - PrefixPath=/v5

This route definition will be like this:
[
    {
        "predicate": "Paths: [/gateway/liveness], match trailing slash: true",
        "route_id": "default-filter",
        "filters": [
            "[[PrefixPath prefix = '/v1'], order = 1]",
            "[[PrefixPath prefix = '/v5'], order = 1]"
        ],
        "uri": "http://localhost:5225",
        "order": 0
    }
]

PrefixPath filter defined by default-filters will executed before route's filter.
PS：as ryanjbaxter said i will close this issue and open new one about this.

Route created by RouteLocatorBuilder should contains default filters is duplicate of #263


Update _ome.py

This change is for custom-date format like "%Y/%m/%d %H:%M:%S" (our nd2 files include such kinds of date format representing the acquisition date). This change might be for minor language user.

thanks @rysk-t.  can you give me a literal string example of the type of date you have in your file?  I might actually upstream the fix to ome-types.  but in the meantime, you also need to import datetime here for tests to pass

found a better solution for extracting datetime in #226

Thanks for your reply, and sorry for my lazy PR.
The example acquisiton-date string of our system is "2023/06/13  15:03:43".
I believe this string style is unique to the Japanese system. However, considering that the developer of the nd2 file (Nikon) is a Japanese company, the influence is not so small.


.ima property/object not available on videojs instance.

Hi 👋 !
I hope this isn't a too newbt question but I am trying to develop some custom functionality by modifying the PlayerWrapper.prototype object in the player-wrapper.js file.
After installing the dependencies and running the rollup command, everything seems to compile just fine but the .ima object that defines the functionality of your plugin is null. What I mean by this is that the .ima object is not available in the videojs instance I create. Is there something that I'm missing? I already tried out your plugin and it works perfectly but I need to add some custom functionality to it that I just can't add via monkey patching in this case. It's something I need to do directly in the source file.
Help please,
Hector

Hello @Nonchalantcode ,
I do not think IMA support will be able to advise on how to manually add custom code into the plugin.
However, if you see the plugin as lacking a feature, please expand on that as a feature request for the plugin, and I can look into adding support in a future release.
Thank you,
Jackson
IMA SDK team

Hi @Kiro705 ,
Thank you so much for taking the time to answer. I'm kinda new to using VideoJS and it's ecosystem (including your excellent plugin) but after reading more of videojs's docs on plugin development I found out that the reason the changes I had done to the code of the plugin were correct, and the reason the .ima property wasn't available on my videojs instance at the moment was because the plugin hadn't been fully registered. So it was just a matter of listening to the pluginsetup:ima event to fire on the videojs instance (which is when the plugin is fully registered).
Thanks again,
Hector


StringIO error during pip3 installation

I'm not sure if the release on pip is python3 compatible:
smime-0.0.1 md5: 4ee2f26429865f398767c2a07f83352c
$ sudo pip3 install smime
The directory '/home/ubuntu/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/ubuntu/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting smime
  Downloading smime-0.0.1.tar.gz (62kB)
    100% |████████████████████████████████| 71kB 4.4MB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-jpt8pz6l/smime/setup.py", line 16, in <module>
        version=__import__('smime').__version__,
      File "/tmp/pip-build-jpt8pz6l/smime/smime/__init__.py", line 7, in <module>
        from .encrypt import encrypt
      File "/tmp/pip-build-jpt8pz6l/smime/smime/encrypt.py", line 8, in <module>
        from .rsa import RSAPublicKey
      File "/tmp/pip-build-jpt8pz6l/smime/smime/rsa.py", line 4, in <module>
        from smime.crypto import cert
      File "/tmp/pip-build-jpt8pz6l/smime/smime/crypto/cert.py", line 9, in <module>
        from smime.crypto import pem
      File "/tmp/pip-build-jpt8pz6l/smime/smime/crypto/pem.py", line 4, in <module>
        import StringIO
    ImportError: No module named 'StringIO'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-jpt8pz6l/smime/

Hello @ruffsl,
On my side I've got:

@ruffsl, I've just managed to upload a new version 0.0.3 which shall work on your side as well.

Closing due to inactivity. Reopen if you still find any problems on your side.

Installation from pip is now working just fine,
Thanks @balena !


WIP ARROW-222: Prototyping an IO interface for Arrow, with initial HDFS (libhdfs) client wrapper

To avoid the proliferation of bespoke IO implementations, Arrow would benefit from a standard API for exposing filesystems or blob stores to Arrow data adapters. In the short term, this will impact the arrow/parquet-cpp bridge that is in development.

There's a bunch of things that still need unit tests here
The build isn't working yet; I will fix that when I can
I introduced the boost::filesystem dependency (which was being used in the libhdfs shim apparatus). Having some amount of boost in arrow seems inevitable, so I'm not sure it's worth fighting it
I need to add documentation on the use of the HDFS interface -- it requires setting environment variables so that JNI libraries will load and pick up the right $CLASSPATH

would this be a good review to test out the Gerrit workflow?

Seems like a good idea let me see if I can get that set up today.

As an idle thought on libhdfs; since libhdfs3 was designed to be ABI-compatible with libhdfs (not sure if this is still true), we might be able to let users switch between the shared library used without any other code being the wiser. Some users may prefer to use libhdfs for supportability or security reasons.

@emkornfield I've posted the patch to a new gerrit project here:
https://gerrit.cloudera.org/#/c/3428/
If you create an account on https://gerrit.cloudera.org I can add you to the arrow-team group on there. I find the gerrit UI super ugly but it gets better (and the keyboard shortcuts are nice once you learn them)

I was able to login via github oauth to gerrit.  Does this setup what is needed so you can add me to the project?

I don't see anything yet -- can you set up your name and e-mail address (+ an SSH public key), see http://getkudu.io/docs/contributing.html

I think only your name and email is necessary at this time

Argh, so just to make life more difficult, the boost in Ubuntu Trusty does not have its static libraries compiled with -fPIC (and so the linker is failing the build). I've been using the Impala toolchain boost where -fPIC is used for everything
https://github.com/cloudera/native-toolchain/blob/master/init.sh#L175
And this thankfully works without a hitch. Somehow Kudu is statically linking system boost (http://getkudu.io/docs/installation.html#ubuntu_from_source, and see its CMakeLists.txt)
I'm able to repro this error locally by switching to all system libraries. Any ideas let me know

I switched things to do dynamic linking to the boost library dependencies, which is ... not great. I'm creating a JIRA about it


[SQA] [TC-BINFO-1.1] ClusterRevision value missmatch in Basic Information Cluster

Problem
As per Spec, ClusterRevision attribute value should be 2 but currently getting ClusterRevision value as 1 in SDK .
Expected behavior: ClusterRevision value as 2
Actual behavior: ClusterRevision value as 1
Steps to reproduce
./chip-tool  basicinformation read cluster-revision 1 0
System configuration
Chip-tool - RPI-4, 8GB RAM
DUT - RPI - RPI-4, 8GB RAM
Platform : Onnetwork
Commit-ID:a33249db16d3bb351038e68d997db4c0ba5d003c
Dut application: all-clusters-app
Spec Reference:-
https://github.com/CHIP-Specifications/connectedhomeip-spec/blob/master/src/service_device_management/BasicInformationCluster.adoc#revision-history
Log:
TC-BINFO-1.1.txt

This issue is resolved in latest tot master - bfa05804ac3c224c9e70921a857ffcac32ccc7f4 .


element Id is not allow here?

i download the project ,opened it using intellij idea ,which occurs an error as in the picture. what's rong with the pom.xml file.

Looks like a typo - it should be <serverId>, although this plugin is only used for deploying artifacts, which is only something the project admins can do, so this shouldn't affect anything for you other than be sightly annoying.
I will fix this with my next PR.

thank you !!! @sappenin  , turned it into   works  well。


Fields should inherit deprecation status

Bug Report
It doesn't affect the primary request, but the backstory here is API evolution: an intentionally overridable base class field needed to be renamed.  Derived classes are spread across packages, so we can't perform this change atomically. To avoid a breaking change, we introduce a field with the new name and mark the old one deprecated.  Unfortunately the deprecation status does not get inherited by fields declared in derived classes.  So derived classes are left unaware of the deprecation status.
🔎 Search Terms

deprecated strikethrough field initializer
🕗 Version & Regression Information

This is the behavior in every version I tried.  Technically you could call this a feature request.

⏯ Playground Link
Playground link with relevant code
💻 Code

class Base {
  /** @deprecated Please don't use this field! */
  count = 0;
}

class ConstructorUsage extends Base {
  constructor () {
    super();
    this.count = 1;
       //^^^^^ good: strikethrough 👍
  }
}

class FieldUsage extends Base {
  count = 2;
//^^^^^ bad: no strikethrough 👎
}

🙁 Actual behavior
Usage of the deprecated field does not trigger strikethrough formatting in FieldUsage.  This is because the new declaration is treated as non-deprecated.  It has not inherited the deprecated status.
🙂 Expected behavior
We should see strikethrough formatting when FieldUsage accesses the deprecated count field.
  count = 2;

I'm a little iffy on how to reason about this, because if the message was
class Base {
  /** @deprecated No longer present in all classes; check to see if you have a Derived2 first */
  count = 0;
}
class Derived1 extends Base {
}
class Derived2 extends Base {
  count = 3;
}

then marking the derived class field as deprecated too is a problem.

Fair.  I found an alternative using the never type, so feel free to close if this isn't a clear win.
  /** @deprecated Use count2 instead of count */
  private count = 0 as never;

It even works with type-only fields, so can be used to pick up errors in future even when the value-land code has gone away, to guide users away from creating a field that will never be read by the base class.
  /** @deprecated Use count2 instead of count */
  declare private count: never;


Found module with error

Hi!
I've been away from lora prototyping...
The bug
When I try to start the object, I quickly get a "failure, code -4" in the Transmit, Setting and Recive sketch. I observed (#KITELIB_DEBUG) that he "Found SX127x!" if I initiate between SX1276 ~ 9.
With the others I have, after ten attempts "failure, code -2".
To Reproduce
The code
LoRa Module
ESP32 Module
D18 as  CLK
D19 as MISO
D23 as MOSI
D32 as CS
D34 as D0
D35 as D1
Expected
I was hoping it would work as it normally does with Esp8266 + v1.1.0.

MCU: ESP32 DEVKITV1
LoRa module type SX1276
Arduino IDE version 1.8.5
Library version 5.0.0

Could you help me investigate?

So the begin() method returns -4 for you?

Yes. But it finds the module if I declare it as 76~79. And after returning the error, dies in "while(true)".

That extremely weird: -4 is ERR_PACKET_TOO_LONG. I checked and the only place in the entire library that can return this is the transmit mtehod.
You mentioned that you tried uncommenting the #define KITELIB_DEBUG macro. Can you post the whole Serial output when running with the macro uncommented?

Basically, three things can go wrong with the begin method:

It won't find the chip (version number in register doesn't match the expected) - error code -2
SPI write fails - error code -16
Some of the arguments provided by user is incorrect

The debug output is:

"Found SX127x!
failed, code -4
Weird...

So it's not a failed SPI write - that would have printed bunch more information about the register that failed.
I'm going to try with my ESP32, see what I can figure out.

I found out what is the issue, there are two parts to it:

There's a mistake in the way module classes inherit common methods, so when the begin method is executed for class SX1276, it calls configuration methods from class SX1278 (instead of SX1276).
The reason the returned code was -4 is that the returned codes get ORed together at one point. Since more than one configuration method failed, this is what happened: -12 | -8 = -4

There's also another problem: on ESP32, there seems to be some inconsistence in float constants. For example, the 7.8 passed to begin method becomes 7.8000001907, while 7.8 inside setBandwidth method is interpreted as 7.8000000000. No idea why, but apparently I'm going to compare the float values properly, i.e. not exact match, but within small range.

All three bugs should be fixed in release 5.0.1. Thanks for reporting!

Good! This kind of inconsistency in the variables is pretty crazy. I'm having serious issues with int at attiny85. The library has progressed a lot, good work!


👌 IMPROVE: Lingo + Typos + Formatting

This PR improves the lingo, addresses some typos, and formatting issues were also fixed. Good luck with your work and open source! 👍

Merged! :smile: Thanks a lot! Sir for your Contribution.


Do not use utfc_ptr2char_len() when printing until NUL

I haven't found a way to test this change.

Also use ternary operators to reduce a bit of indent.


high file size

I have a babylon project with a webpack config which is very similar to yours but when i'm compiling files to dist, my babylonBundle.js is strangely heavier than it have to be. (4.9 Mo).
Do you have an idea of this ?
webpack.common.js :
const path = require('path');
const fs = require('fs');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyPlugin = require('copy-webpack-plugin');
const {
    CleanWebpackPlugin
} = require('clean-webpack-plugin');

// App directory
const appDirectory = fs.realpathSync(process.cwd());

module.exports = {
    entry: {
        app: path.resolve(appDirectory, "src/index.ts"),
    },
    output: {
        filename: 'js/babylonBundle.js',
    },
    resolve: {
        extensions: ['.ts', '.js']
    },
    module: {
        rules: [{
                test: /\.(js|mjs|jsx|ts|tsx)$/,
                loader: 'source-map-loader',
                enforce: 'pre',
            },
            {
                test: /\.tsx?$/,
                loader: 'ts-loader'
            },
            {
                test: /\.(png|jpg|gif|env|glb|stl|obj|mtl)$/i,
                use: [{
                    loader: 'url-loader',
                }, ],
            },
        ]
    },
    plugins: [
        new CleanWebpackPlugin(),
        new HtmlWebpackPlugin({
            inject: true,
            template: path.resolve(appDirectory, "public/index.html"),
        }),
        new CopyPlugin({
            patterns: [
                { from: 'assets', to: 'assets' },
            ],
        }),
    ],
    // Just for ammo
    node: {
        fs: 'empty'
    }
}

that mainly depends on your imports. Are you import the entire directory, or just specific modules? Are you using the UMD module, or the es6 package?

Hello @RaananW, I'm making the project with @akaadream. We're using the ES6 package (with TypeScript), imports are like this:
import { Scene, ArcRotateCamera, Vector3, AbstractMesh, float } from "@babylonjs/core"

If you want tree shaking to kick in you will need to import the files from their individual directories, since babylon packages have side effects (code executed in es6 modules) in them. This is the reason your package size stays so big - it is loading the entire framework.

Thanks for the quick answer!
Ok so like this :
import { Engine } from "@babylonjs/core/Engines/engine";
import { Scene } from "@babylonjs/core/scene";
import { ArcRotateCamera } from "@babylonjs/core/Cameras/arcRotateCamera";

Exactly like that :-)


[Standards site]: Fix color contrast and apostrophe

The problem
Standards site needs a few updates for color contrast and proper apostrophe
The solution
1. Color contrast

[ ] Update link color to $inverse-link if using white or g10 theme; or link-02 if using g90 or g100 theme.

[ ] Background color also doesn't look quite right compared to IDL color values (#061f80 is not an IDL hex code). Update to #001d6c

Note carbon uses a white link with underline, which we could do as well.

2. Fix apostrophe

[ ] Please fix to use the curly apostrophe

Application/website
https://www.ibm.com/standards/web/
Business priority
Medium Priority = upcoming release but is not pressing
What time frame would this ideally be needed by (if applicable)
No response
Examples
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate issues

This was merged and completed!


Search by CVE and index extra fields

This PR fixes some issues with the simple search and includes some enhancements:
Fixes:

Workaround to be able to search for CVE (see #1092 #2081)
Allow search by finding id (i.e. for those seeing a JIRA issue with a Defect Dojo id in it)

Enhancements:

Add fields to indexing to allow them to search them:

'id', 'title', 'cve', 'url', 'severity', 'description', 'mitigation', 'impact', 'steps_to_reproduce',
                                 'severity_justification', 'references', 'sourcefilepath', 'sourcefile', 'hash_code', 'file_path',
                                 'component_name', 'component_version', 'unique_id_from_tool'

Because this PR updates the django-watson config for the Finding model, a index rebuild is needed. I thought about adding the rebuild as a migration. But that could lead to seriously long migrations for larger instances.
Please let me know any suggestions on how to handle this. For now I've added some upgrade notes to the docs: https://github.com/DefectDojo/Documentation/pull/107

Adding Documentation tag to remind whoever releases next to add a note about checking the docs for reindexing help.


Add support for filebeat and tags in flog

@jt-kloudfuse - I've only added tags support for logfmt, filebeat and JSON formats. Lemme know if you want me to add to all of them. It's just a matter of including them in the message.

Let's add for all of them.

Done.


Download a package with all the dependencies

How can I download a package with all the dependencies? For example, I want to download Microsoft.AspNetCore with all the dependencies.

Currently to have to do that manually.

It will be nice to have this feature for the situations where you have to build an application off-line (in an enterprise environment for example). Imagine to download all dependencies for Microsoft.AspNetCore for example and the dependencies of dependencies etc.

Yes, some functionality to "flatten" the dependency tree would be great!

Had Some more experience with nuget explorer. Some way of right click on dependency and suggest to have then choices like:

merge into package (1 level)
merge recursively into packages

For such functionality I am willing to fund upto eur 250 since it saves labor efforts.

Closing as this is outside the scope of NuGet Package Explorer. To download all of the packages at once, you can use dotnet restore or msbuild /t:restore on project, and it'll download all of the packages to your userprofile cache directory.


fmt8: init at 8.0.1

Motivation for this change
A package I maintain depends on the latest version of fmt, so I thought it would be nice to have this available in nixpkgs.
As shown in https://github.com/NixOS/nixpkgs/pull/127742, this fmt update breaks a fair few packages. Others seem to function just fine, but we don't want regressions on master.
To fix this, I've temporarily created an fmt8 attribute, which has the most up to date version as of writing this. In the future we would want to fix these breakages, and have the fmt attribute refer to the most up to date version. But for now, I hope this is fine.
Things done

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[X] 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/)
21.11 Release Notes (or backporting 21.05 Relase notes)

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

[X] Fits CONTRIBUTING.md.

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

1 package built:

fmt8

Result of nixpkgs-review pr 129378 at 51d45dc5 run on x86_64-linux 1

1 package built successfully:

fmt8 (fmt_8)

1 suggestion:

warning: unused-argument
Unused argument: fetchpatch.
Near pkgs/development/libraries/fmt/default.nix:1:33:
  |
1 | { lib, stdenv, fetchFromGitHub, fetchpatch, cmake
  |                                 ^


Fix typo README.md

Description of the change

Fixed typo in the README.md
Existing or Associated Issue(s)
N/A

Additional Information

N/A
Checklist

[ ] Chart version bumped in Chart.yaml according to semver.
[ ] Variables are documented in the values.yaml and added to the README.md. The pre-commit utility can be used to generate the necessary content. Use pre-commit run -a to apply changes.
[ ] JSON Schema template updated and re-generated the raw schema via pre-commit hook.
[ ] List tests pass for Chart using the Chart Testing tool and the ct lint command.

Please bump the version of the chart to 2.2.2 to make it pass tests
https://github.com/janus-idp/helm-backstage/blob/729b2f6764d792ce14d8cb4a2564952852736a5d/charts/backstage/Chart.yaml#L45


Error Message When Trying to Submit Expense for Newly Created Collective

Describe the bug
When we create a new collective and do not assign it to any fiscal host or make it an independent collective, trying to submit a expense will result in an error. While a fiscal host is needed to transfer funds, it would be nice to show a more user friendly error in this case.
To Reproduce
Steps to reproduce the behavior:

Create a new collective
Go to the collective page
Click on the submit expense link and try to submit an expense
See error

Expected behavior
A clear indication of what is wrong and why the expense flow isn't working should be shown to the user. Alternatively we can hide the "Submit Expense" button for a collective who has no fiscal host.
Screenshots
submit-expense.webm

This is also reported in https://opencollective.freshdesk.com/a/tickets/331486

Another instance https://opencollective.freshdesk.com/a/tickets/334849


"Ver" is being converted to "VE" - should be "VER"

Several words ending in "ER" are being converted to "É" instead of "ERRE" and should be added to the unittests

Commit 0d386b3731bff34368af98a6f06ec158c1a4ae84 addresses "VER" but there are still other words that should be converted differently, such as "CANCER" (KANS) which would not be distinguished properly  from "cancerre" (KANSER)

Continuing as #5 5


Create Automated Testing

pgTAP (http://pgtap.org/) might be an option.

Done or no longer relevant.


add tab form

@javierarce could you take a look?

ping @javierarce

Except for a comment I added, the rest looks 👍


chore(RHTAPWATCH-350): add sop link to alert QuotaExceeded

Adding link to SOP to provide instructions for dealing with the alert.

/lgtm


Backspace too hungry

The function doom/delete-backward-char misbehaves when the point is at the beginning of the line and next to the closing brace. For instance, in emacs-lisp mode type:
(Some example text
|)

With | as your cursor, hit backspace. This deletes all of the text in the braces. This is particularly annoying when you're typing out a list in emacs-lisp and you hit enter by accident.
The errant code is core/autoload/editor.el:200:203
I have it commented out but I imagine you'd want to change it to only delete back to the nearest non-whitespace character.

Ah, I've had the fix for this sitting in my local repo for a while. Forgot I hadn't pushed it! It should be fixed now.


Clear unsaved cardsort1 data [LEI-302]

Refs: https://openscience.atlassian.net/browse/LEI-302
Purpose
If a user sorts cards on the cardsort1 page, then clicks the "Previous Page" button to
go to the previous page, and then clicks the "Continue" button to go back to the cardsort1 page, they should see 90 cards at the top to be sorted and three empty buckets to sort them into. Instead, the buckets still contain the previously sorted cards.
Summary of changes
When a user clicks the "Previous Page" button on the cardsort1 page, clear the sorted cards.
Testing notes
Steps to reproduce:

On the first cardsort page, sort at least one card. Notice the number of cards left decreases.
Click the "Previous Page" button
Click the "Continue" button to return to the cardsort page
Notice that the number of cards left is 90, but the sorted cards still re-appear.

Idea looks sound; I'll trust that Saman did functional review on this one and move it forward for QA.


UAT | Judgement Workflow

Incorrect judgement workflow - Status shows an pending stamping as against published

@atulgupta2024 @subhashini-egov

This was shared with Mani and Rajat on 5th August @manimaarans @storm20198
https://egov-talk.slack.com/archives/C06QTSJN83V/p1722841867697609

Issue is fixed, please find the reference
https://jam.dev/c/e336f788-3341-4da1-ac64-f654bc675ac0

This Issue is fixed and working as expected in UAT


Query history can get incorrect query text

Type a query in an editor
Run the query
Immediately delete some characters from the query

When the query history item shows in the view it will often have incorrect text, with some of the letters that were deleted being gone.
The root cause here is that query history gets the text range from the core and then uses the VS Code APIs to get the actual text. But because the event isn't sent until after the query is finished executing we run into a race condition where the extension host document state has been updated in that time and so when the event is received the text it tries to get has already been updated.
A couple of potential solutions :

Send query text in original event. This was tried but quickly can run into perf issues with large queries. Potential workaround would be to send query text directly if it's small enough, otherwise send range (which still leaves us with race condition for large queries)
Use queryStart to capture the text and then on queryStop use that text. There's still potential for a race condition but it's much smaller since queryStart is kicked off much sooner. To do this we'd need to add some sort of "query ID" that's incremented for each query to be able to uniquely identify each query as it's ran (otherwise multiple queries running in parallel could cause messages to be incorrectly used)

Could we add an API listener for when query execution is called for, but before the query is executed?  This could be used by query history but would also be useful in creating extensions that parse the query text and potentially intercept statements such as UPDATE/DELETE without a where clause.

That's what 2 is suggesting - I'm trying that out now since we already send this event whenever a query is started.
The intercepting statements thing is definitely interesting as we've discussed before - but for that to truly be powerful I think we'd want to add additional features like being able to veto execution in some scenarios (which isn't something that query history would care about). And doing that would require a lot more changes and consideration for how to do that correctly.


Inconsistent graphs using memcached with clustered graphite

Hello, I'm getting inconsistent results when memcached is enabled across my 4 node cluster. Each node has 4 caches behind 1 relay. Graphite performs as expected with memcached disabled (commenting out MEMCACHE_HOSTS), albeit with higher cpu usage. The issue occurs both when picking 1 node and having the remaining nodes use it's memcached instance and when each node has it's own memcached instance.
Please note the time at the top right of the images, this is occurring between refreshes. This isn't limited to collectd metrics, but collectd's metrics don't contain my domain name. The cluster is running at REPLICATION_FACTOR = 2.
1: http://i.imgur.com/HWLm1bw.png
2: http://i.imgur.com/OwFEPB1.png
3: http://i.imgur.com/jSOavnl.png
4: http://i.imgur.com/xi2f8zU.png
These pictures were taken from only 1 node, however all nodes show identical results, even when each has it's own memcached instance. All the nodes are sharing the same mysql db so that I can use the same dashboards across all the nodes as I load balance between them.
On branch 0.9.x 5a4b3be420fad31fddcd883a71e5b2c8fc5f2296

Only your frontend render host(s) should use memcached. You should not use it with any of your backend graphite-web instances. If you're running multiple frontend webs, use a shared memcached across all of them.

I think we need to include that warning in release notes for 0.9.13, I'l
make a PR
I'm also wondering why local memcached is not working. @bmhatfield, what do
you think?
6:59, вт, 13.01.2015, Jason Dixon<EMAIL_ADDRESS>
Closed #1102
https://github.com/graphite-project/graphite-web/issues/1102.
—
Reply to this email directly or view it on GitHub
https://github.com/graphite-project/graphite-web/issues/1102#event-217880987
.

Was this behavior experienced before #1010 and #1026? Or is it new since upgrading?
When tracing this out for the issue filed with 1010, I'm not sure what would lead to this. There's an interaction somewhere that I haven't picked up on.

@deniszh @bmhatfield You should expect inconsistencies when using memcached on backend nodes (in a multi-node cluster). This is not surprising. We should absolutely have documentation explaining how to use memcached properly but this report does not signify any sort of regression in my mind.

@bmhatfield - as far as I understand @arma26 have same problems as @lamont in https://github.com/graphite-project/graphite-web/issues/1022. I'm also see no difference between enabling and disabling memcache, but if it breaks something after upgrade to 0.9.13 we need to warn users then...
@obfuscurity - I was quite sure that we need to disable shared memcached and single memcached instance works fine. But if not - it's also OK, we just need to include something like "Change in clustering: if you are using clustering graphite with REPLICATION_FACTOR >= 2 you need to disable memcache caching" in release notes.
Is it good idea to do so? I think it will spare some questions and github issues after release...

The issue was resolved when I disabled memcache across all storage nodes and spun up a 5th graphite-web instance with memcache enabled.

Will someone please explain why memcached caching should be disabled on clustered graphite with replication factor >= 2?

Well, it depends on how your cluster is setup. Mine was two tier with  front-end webui nodes that list a bunch of backend storage nodes in the cluster, but the backend nodes are unaware of each other.
Patch 1010 changed from fetching individual metrics from each backend (after a parallel "what metrics does this backend have that satisfy this wildcard query") to asking for the raw series results to the original wildcard query against each backend. That caused results returned from backend node A to be cached and visible to backend node B. So when all backend nodes shared the same memcache cluster, you'd start getting the same results from each node in the backend. I doubt the replication factor matters, it was just that the designer of patch 1010 didn't anticipate a global memcache pool, and there was no good reason for me to have one.
I changed it so that each backend node used only a local memcache store and everything was fine. You want the local memcache store so that the expensive /metrics/find requests are cached for a few minutes between all the processes serving web requests on the backend. If the proposal is to namespace the request cache with the local node address, that seems like a good solution as well, both for the problem I had and any future ones.


[WFCORE-1108]:  Wildfly 9.0.1 Final fails next day with WFLYDS0032: Failed to list files in directory.

Using java.nio.file.Files to get better exceptions thus understand this kind of strange behaviour.
Jira: https://issues.jboss.org/browse/WFCORE-1108

I put the 3.x label on this because at this point we can't make changes like this in 2.x without a JBEAP.

I've put Ready for Merge on this. Please configure your IDE though to not make unrelated whitespace/codestyle changes.

Hi Team,
I met this issue in my project meanwhile we use jboss version is "Red Hat JBoss Enterprise  7.0.2 GA"
For this issue , when will be fixed? which jboss version would fix this issue?
In other words, how to avoid this issue through other configuration?


Link directly to #redux on Reactiflux

Tag Redux Toolkit's docs too?

Done https://github.com/reduxjs/redux-toolkit/pull/855


Portable version?

Is it possible to make a portable version?
It doesn't allow to install without admin rights. Any reason for this?
I've tried extracting the installer and I have a folder with the contents, but running "Zazu.exe" does nothing.

I believe it needs admin rights because I haven't signed it. I'll be updating this in the future.
What is a portable version?

Portable is an application that you download, extract and run, without installing... Most of them doesn't require admin rights. I think it's called "portable" because people use to run them from USB sticks.
Thanks for the answer, I look forward into testing it! I'll try at home (where I have admin access) later.

Yes, I think the new packaging system will create those, when that gets released I'll ping you.

Portable means as well, that the configuration is kept inside the application folder and not in some $HOME-subfolder.

I'm in for a portable version as well! 👍

@blainesch I made a quick change to the app/lib/configuration.js file
        const cwd = process.cwd()     const portableHome = path.join(cwd, 'portable')     if (require('fs').existsSync(portableHome)) {       process.env.ZAZU_HOME = portableHome     }
I think the code is pretty straight forward.
Should I throw that into a PR?
What it has as a requirement would be a simple .zip-file instead of an installation.

@schmic I'm working on a branch now that will output a zip file. How would you recommend building  two versions of the app? Pr's totallys welcome [:

@blainesch For packaging I'd use electron-packager

This was released in v0.4.0


The result of packageDmg can't start, error msg is : LSOpenURLsWithRole() failed with error -10810

I use default scrip to packageDmg, and i get a dmg, i double click this dmg and move the app to /Applications dir
But i can't start this app and see msg is: LSOpenURLsWithRole() failed with error -10810
Then I give permissions like this, but the error msg is the same.
I don't know if the reason is i don't signed the application, but i have open mac install condition by use sudo spctl --master-disable
I don't have an developer account and I will try to apply it to sign the app later.
Here is my build.gradle scrip, and I can afford more informations if needs.
import org.jetbrains.compose.compose
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
    kotlin("jvm") version "1.4.30"
    id("org.jetbrains.compose") version "0.3.1"
}

group = "me.bear"
version = "1.0"

repositories {
    jcenter()
    mavenCentral()
    maven { url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev") }
}

dependencies {
    testImplementation(kotlin("test-junit"))
    implementation(compose.desktop.currentOs)
    implementation("org.eclipse.jgit:org.eclipse.jgit:<IP_ADDRESS>409260305-r")
}

tasks.test {
    useJUnit()
}

tasks.withType<KotlinCompile>() {
    kotlinOptions.jvmTarget = "11"
}

compose.desktop {
    application {
        mainClass = "MainKt"
        nativeDistributions {
            targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
            packageName = "XXX"
            packageVersion = "1.0.0"
        }
    }
}

@RubiTree so far I can't reproduce the issue. Does the issue reproduces with the default template? E.g. your build config + the following source:
// Main.kt
fun main() = Window {
    var text by remember { mutableStateOf("Hello, World!") }

    MaterialTheme {
        Button(onClick = {
            text = "Hello, Desktop!"
        }) {
            Text(text)
        }
    }
}

What version of macOS, xcode and Java do you use?

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Container::when does not work for handling Jobs.

Laravel Version: 5.6.12
PHP Version: 7.2.1
Database Driver & Version: Not relevant

Description:
I want to contextually bind a service to the handle method of a Job. When
Steps To Reproduce:

Have a Job that takes a service defined as an interface.
Bind a service contextually to the job.

$this->app->when(Job::class)->needs(Contract::class)->give(function () { return Concrete(); });

Result
The queue worker endlessly tries to process the message, failing and then retrying. It was not easy to determine this was the problem either. When wiring cannot be resovled I don't expect it to be handled the same way "failed job processing" is handled.

I may be wrong, but I believe the contextual binding only applies to constructor injection.
I know it isn't exactly what you're looking for, but check out this PR. It may help.

@devcircus that does the trick. There's no documentation for that feature it seems and the IDE helpers didn't hint that method, so I had no clue. But, besides that I think think the error in resolving the job should not result in a retry loop.

@devcircus I'll try to send in a PR to the docs for this because this hasn't been documented it seems.
@frankdejonge you're right. I'll update the docs to clarify this in the contextual binding section and link to the new docs which I'm going to send in for the referenced PR.
You're also right that the retry perhaps isn't wanted for a container resolving issue. Do you perhaps know which exception is thrown? We might be able to catch it and properly handle it.

@frankdejonge nvm. Just saw https://github.com/laravel/framework/issues/23599 :)

@devcircus @frankdejonge it's not documented at least: https://github.com/laravel/docs/commit/d17e70151139a8e41e1cd7fe809af110d693a201
Will further investigate this issue as soon as I get to it.

The PR seeks that references this bug seeks to resolve this issue. The specific case for jobs is something that I run into regularly.
@devcircus seems to disagree with my approach, please share your thoughts in the PR if you can.

@nmokkenstorm the actual issue here is that the worker endlessly retries the job for a container resolver failure.

@driesvints I'm aware that that's why the issue was raised. The cause of the specific failure however, is a problem I've encountered before, and am trying to solve in the PR.

There is not really an issue. The retry loop isn't endless when tries is set:

There are situations when retrying would indeed be warranted for example if the constructor of the injected service connects to an external resource like Redis and fails to resolve because Redis is down. I'm not saying that is great design but in that case retry would be warranted.


Can't load groovy library

I am trying to load groovy library via language manager by providing full path to its jar, but it does not work. The groovy plugin starts but it can't resolve any class in that jar. Java jars in the same notebook are resolved just fine.
It could be connected to #4903 since there are extension modules inside jar.

thanks for the report if you can provide a specific example (eg the jar) it would help.

Here is small top level jar:
groovymath-0.4.0 - SNAPSHOT.jar.zip
It depends on Commons Math, but Commons Math should be included in beaker class path.

and what code should work after the jar is loaded?

At least import. Last time I checked I could not see any classes from this jar. I can't check right now. Will write an example as soon as I can.


Warn about not-supported ChannelOption when bootstrap Channels.

Motivation:
We not warned about not-supported ChannelOptions when set the options for the ServerChannel.
Modifications:

Share code for setting ChannelOptions during bootstrap

Result:
Warning is logged when a ChannelOption is used that is not supported during bootstrap a Channel. See also [#6192]

Cherry-picked into 4.1 (fac0ca8) and 4.0 (018c6ecd7a0ebe4aa9fcbb3b01b682d047c9bd19)


Request Validate as Rules

Is there any way to automatically bring on the validate rules into the docs?
I noticed it is able to recognize automatically the rules() on Login controller, but not the validate on the Register controller (on Laravel Breeze)
 public function store(Request $request): Response
    {
        $request->validate([
            'name' => ['required', 'string', 'max:155'],
            'email' => ['required', 'string', 'lowercase', 'email', 'max:155', 'unique:'.User::class],
            'password' => ['required', 'confirmed', Rules\Password::defaults()],
            'avatar' => ['nullable', 'string'],
        ]);

Nope. Needs to have the injected class as per the design pattern


homebrew cask?

hi @z-------------, it would be great to get this uploaded to https://caskroom.github.io/ so it can be installed in the CLI via brew cask install cpod. thanks!

Hi- any news of this? Would love this! Thank you

@thejohnha I am currently without my MacBook (its ram died) so I am unable to test a cask.


adjust API to changes in SwiftPM

motivation: stay with the times
changes:

use observability system instead of diganostics engine
some APIs in SwiftPM are now throwing, adjust to this change

@swift-ci please test

@swift-ci please test


请问有没有登入的账号密码啊

我想登如账号密码进去看看里面的内容

这两天会更新一下 mock
在 2024-05-20 17:35:26，WangJunEffortEdition @.***> 写道：
我想登如账号密码进去看看里面的内容
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>


Create a tutorial on how to deploy the Chrony charm

Overview
Create a tutorial on how to deploy the Chrony charm
Checklist

[x] The charm style guide was applied
[x] The contributing guide was applied
[x] The changes are compliant with ISD054 - Managing Charm Complexity
[x] The documentation is generated using src-docs
[x] The documentation for charmhub is updated
[x] The PR is tagged with appropriate label (urgent, trivial, complex)

@erinecon Could you please help to take a look at this chrony tutorial? Thanks!


Refactor RB to inherit from experiment class

What is the expected behavior?
Add the following experiments:

[x] Standard RB Experiment
[x] RB utils
[x] Interleaved RB
[x] CNOT-Dihedral RB
[x] Interleaved CNOT-Dihedral RB
[x] Purity RB

Depends on merging the Experiment base classes from #514

Future plans:

Simultaneous RB experiments, running various RB patterns (by using joint experiment classes), including a possibility for alignment.
Correlated RB (#434)
Leakage RB (#480, #496)
Add measurement error mitigation for certain RB experiments (purity, leakage and correlated)

Future plans:

Simultaneous RB experiments, running various RB patterns (by using joint experiment classes), including a possibility for alignment.
Correlated RB (#434)
Leakage RB (#480, #496)
Add measurement error mitigation for certain RB experiments (purity, leakage and correlated)

Moving to qiskit-experiments


Hosting costs?

@lazerwalker do we have concerns with hosting costs? We're tossing up screenshots in the Showcase and the Peglin dev asked if we can include a video. The video works out fine with regards to layout, but it's 2.4 MB and I just wondered if I should be checking on the image sizes, so we don't get hit with a surprise bill.

Not an issue at all. We're hosting the frontend on GitHub Pages, which is 100% free, and we're nowhere near their gigantic invisible limits for what 'unlimited' means.


Fix(Revit) : fatal crash in Revit and speed upgrade for large receive operations

Description & motivation
When sending the revit sample arch model to Speckle and then trying to receive it again, you'll probably end up with your revit having crashed. This is a result of a pesky face hosted element that is somehow corrupting the document (perhapse we are picking the wrong face for the element?). This is easily fixed by just rolling back the transaction, however our connector is currently only using a single transaction.
This PR wraps every attempted baking operation in a subtransaction and then either commits or rolls it back depending on if any exceptions were thrown.
It also commits the transaction (different than the subtransactions) for every 50 objects that are baked because this dramatically increases the speed of the receive operation. Unfortunately this does have a downside of making dialogues pop up in the middle of receive operations if something goes wrong with the transaction commiting. However, we can fix this in the future.

Changes:

Subscribe to the unhandled exceptions and log those
Transactions are now handled by a TransactionManager object.

Every transaction happens within a Revit "SubTransaction" so that it can be rolled-back on failure
every 50 objects, we are commiting the open Transaction. This is what leads to the bulk of the receive operation speed enhancement
moved the "ExecuteInTemporaryTransaction" functionality from the schedule partial class to be part of the transaction manager

To-do before merge:

Screenshots:

Validation of changes:
all integration tests still pass, however no new ones have been added.

Checklist:

[x] My pull request follows the guidelines in the Contributing guide?
[x] My pull request does not duplicate any other open Pull Requests for the same update/change?
[x] My commits are related to the pull request and do not amend unrelated code or documentation.
[x] My code follows a similar style to existing code.
[ ] I have added appropriate tests.
[ ] I have updated or added relevant documentation.

References

Updating branch from dev to have CI pass