[SUPPORT] Hudi 0.11.0 HoodieDeltaStreamer failing to start with error : java.lang.NoSuchFieldError: DROP_PARTITION_COLUMNS

Tips before filing an issue

Have you gone through our FAQs?

Join the mailing list to engage in conversations and get faster support at<EMAIL_ADDRESS>

If you have triaged this as a bug, then file an issue directly.

Describe the problem you faced
I have pulled the 0.11.0 release branch and trying to build and run hudi. Earlier I was running 0.10.1 with spark 3.1.3 and able to run it without any issues.
With 0.11.0 , I am facing the error which I mentioned in stack trace.
To Reproduce
Steps to reproduce the behavior:

git pull origin release-0.11.0
mvn clean install -DskipTests -Dspark3.2 -Dscala-2.12
./spark-submit  --jars packaging/hudi-spark-bundle/target/hudi-spark3.2-bundle_2.12-0.11.0.jar  --class org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer hudi/packaging/hudi-utilities-slim-bundle/target/hudi-utilities-slim-bundle_2.12-0.11.0.jar --props file://hudi/properties/kafka.properties --schemaprovider-class org.apache.hudi.utilities.schema.FilebasedSchemaProvider --source-class org.apache.hudi.utilities.sources.JsonKafkaSource --target-base-path gs://xxx/ --target-table hudi.xxx --op INSERT --table-type COPY_ON_WRITE --source-ordering-field time --continuous  --transformer-class org.apache.hudi.utilities.transform.AddDateHourColumnTransformer --source-limit 150

Expected behavior
Delta streamer to start and run and consume and write data.
Environment Description

Hudi version : 0.11.0

Spark version : 3.2.1

Hive version :

Hadoop version : 3.3

Storage (HDFS/S3/GCS..) : gcs

Running on Docker? (yes/no) : no

Additional context
Built the hudi project using maven and trying to run the jar.
val DROP_PARTITION_COLUMNS: ConfigProperty[Boolean] = HoodieTableConfig.DROP_PARTITION_COLUMNS in DataSourceOptions.scala file is failing to resolve the static field in HoodieTableConfig.java
Stacktrace

Exception in thread "main" java.lang.NoSuchFieldError: DROP_PARTITION_COLUMNS
	at org.apache.hudi.DataSourceWriteOptions$.<init>(DataSourceOptions.scala:488)
	at org.apache.hudi.DataSourceWriteOptions$.<clinit>(DataSourceOptions.scala)
	at org.apache.hudi.DataSourceWriteOptions.RECONCILE_SCHEMA(DataSourceOptions.scala)
	at org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer.combineProperties(HoodieDeltaStreamer.java:160)
	at org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer.<init>(HoodieDeltaStreamer.java:130)
	at org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer.<init>(HoodieDeltaStreamer.java:115)
	at org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer.main(HoodieDeltaStreamer.java:549)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
	at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:955)
	at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:180)
	at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:203)
	at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:90)
	at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:1043)
	at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:1052)
	at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
22/05/04 10:21:34 INFO ShutdownHookManager: Shutdown hook called

@yihua @nsivabalan please suggest on this scenario.. where could be the possible issue.

@BalaMahesh i've tried to reproduce this issue using your steps, and i'm not able to -- DeltaStreamer is starting as expected. Can you please provide full Spark Driver log (feel free to strip out all sensitive info from it)?

@alexeykudinkin  This is the full command and logs
./spark-submit  --jars packaging/hudi-spark-bundle/target/hudi-spark3.2-bundle_2.12-0.11.0.jar  --class org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer packaging/hudi-utilities-slim-bundle/target/hudi-utilities-slim-bundle_2.12-0.11.0.jar --props file:////hudi/properties/gl_started.properties --schemaprovider-class org.apache.hudi.utilities.schema.FilebasedSchemaProvider --source-class org.apache.hudi.utilities.sources.JsonKafkaSource --target-base-path gs://xx/hudi/gl_cow/ --target-table hudi.gl_cow --op INSERT --table-type COPY_ON_WRITE --source-ordering-field time --continuous  --transformer-class org.apache.hudi.utilities.transform.AddDateHourColumnTransformer --source-limit 150
22/05/04 10:21:25 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
log4j:WARN No appenders could be found for logger (org.apache.hudi.utilities.deltastreamer.SchedulerConfGenerator).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties
22/05/04 10:21:26 INFO SparkContext: Running Spark version 3.2.1
22/05/04 10:21:26 INFO ResourceUtils: ==============================================================
22/05/04 10:21:26 INFO ResourceUtils: No custom resources configured for spark.driver.
22/05/04 10:21:26 INFO ResourceUtils: ==============================================================
22/05/04 10:21:26 INFO SparkContext: Submitted application: delta-streamer-hudi.gl_cow
22/05/04 10:21:26 INFO ResourceProfile: Default ResourceProfile created, executor resources: Map(cores -> name: cores, amount: 1, script: , vendor: , memory -> name: memory, amount: 1024, script: , vendor: , offHeap -> name: offHeap, amount: 0, script: , vendor: ), task resources: Map(cpus -> name: cpus, amount: 1.0)
22/05/04 10:21:26 INFO ResourceProfile: Limiting resource is cpu
22/05/04 10:21:26 INFO ResourceProfileManager: Added ResourceProfile id: 0
22/05/04 10:21:26 INFO SecurityManager: Changing view acls to: xx
22/05/04 10:21:26 INFO SecurityManager: Changing modify acls to: xx
22/05/04 10:21:26 INFO SecurityManager: Changing view acls groups to:
22/05/04 10:21:26 INFO SecurityManager: Changing modify acls groups to:
22/05/04 10:21:26 INFO SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users  with view permissions: Set(xx); groups with view permissions: Set(); users  with modify permissions: Set(xx); groups with modify permissions: Set()
22/05/04 10:21:26 INFO deprecation: mapred.output.compression.codec is deprecated. Instead, use mapreduce.output.fileoutputformat.compress.codec
22/05/04 10:21:26 INFO deprecation: mapred.output.compress is deprecated. Instead, use mapreduce.output.fileoutputformat.compress
22/05/04 10:21:26 INFO deprecation: mapred.output.compression.type is deprecated. Instead, use mapreduce.output.fileoutputformat.compress.type
22/05/04 10:21:26 INFO Utils: Successfully started service 'sparkDriver' on port 49423.
22/05/04 10:21:26 INFO SparkEnv: Registering MapOutputTracker
22/05/04 10:21:26 INFO SparkEnv: Registering BlockManagerMaster
22/05/04 10:21:26 INFO BlockManagerMasterEndpoint: Using org.apache.spark.storage.DefaultTopologyMapper for getting topology information
22/05/04 10:21:26 INFO BlockManagerMasterEndpoint: BlockManagerMasterEndpoint up
22/05/04 10:21:26 INFO SparkEnv: Registering BlockManagerMasterHeartbeat
22/05/04 10:21:26 INFO DiskBlockManager: Created local directory at /private/var/folders/6w/4y9hyhmj4d15hdqlnd74rp5c0000gp/T/blockmgr-2c16d6dd-7a31-44da-b728-bc8bfe8c11e7
22/05/04 10:21:26 INFO MemoryStore: MemoryStore started with capacity 366.3 MiB
22/05/04 10:21:26 INFO SparkEnv: Registering OutputCommitCoordinator
22/05/04 10:21:27 INFO Utils: Successfully started service 'SparkUI' on port 8090.
22/05/04 10:21:27 INFO SparkUI: Bound SparkUI to <IP_ADDRESS>, and started at http://xx-x0-2:8090
22/05/04 10:21:27 INFO SparkContext: Added JAR file://packaging/hudi-spark-bundle/target/hudi-spark3.2-bundle_2.12-0.11.0.jar at spark://xxx-x0-2:49423/jars/hudi-spark3.2-bundle_2.12-0.11.0.jar with timestamp<PHONE_NUMBER>168
22/05/04 10:21:27 INFO SparkContext: Added JAR file:packaging/hudi-utilities-slim-bundle/target/hudi-utilities-slim-bundle_2.12-0.11.0.jar at spark://xx-x0-2:49423/jars/hudi-utilities-slim-bundle_2.12-0.11.0.jar with timestamp<PHONE_NUMBER>168
22/05/04 10:21:27 INFO Executor: Starting executor ID driver on host xx-x0-2
22/05/04 10:21:27 INFO Executor: Fetching spark://xx-x0-2:49423/jars/hudi-spark3.2-bundle_2.12-0.11.0.jar with timestamp<PHONE_NUMBER>168
22/05/04 10:21:27 INFO TransportClientFactory: Successfully created connection to xx-x0-2/<IP_ADDRESS>:49423 after 36 ms (0 ms spent in bootstraps)
22/05/04 10:21:27 INFO Utils: Fetching spark://xx-x0-2:49423/jars/hudi-spark3.2-bundle_2.12-0.11.0.jar to /private/var/folders/6w/4y9hyhmj4d15hdqlnd74rp5c0000gp/T/spark-0552e0b7-1da6-4a5e-b1a7-3e440743cddb/userFiles-f4a62876-1c52-41f9-91e9-a0a8efa42b86/fetchFileTemp2640123694101165597.tmp
22/05/04 10:21:27 INFO Executor: Adding file:/private/var/folders/6w/4y9hyhmj4d15hdqlnd74rp5c0000gp/T/spark-0552e0b7-1da6-4a5e-b1a7-3e440743cddb/userFiles-f4a62876-1c52-41f9-91e9-a0a8efa42b86/hudi-spark3.2-bundle_2.12-0.11.0.jar to class loader
22/05/04 10:21:27 INFO Executor: Fetching spark://xx-x0-2:49423/jars/hudi-utilities-slim-bundle_2.12-0.11.0.jar with timestamp<PHONE_NUMBER>168
22/05/04 10:21:27 INFO Utils: Fetching spark://xx-x0-2:49423/jars/hudi-utilities-slim-bundle_2.12-0.11.0.jar to /private/var/folders/6w/4y9hyhmj4d15hdqlnd74rp5c0000gp/T/spark-0552e0b7-1da6-4a5e-b1a7-3e440743cddb/userFiles-f4a62876-1c52-41f9-91e9-a0a8efa42b86/fetchFileTemp7928452199573881385.tmp
22/05/04 10:21:27 INFO Executor: Adding file:/private/var/folders/6w/4y9hyhmj4d15hdqlnd74rp5c0000gp/T/spark-0552e0b7-1da6-4a5e-b1a7-3e440743cddb/userFiles-f4a62876-1c52-41f9-91e9-a0a8efa42b86/hudi-utilities-slim-bundle_2.12-0.11.0.jar to class loader
22/05/04 10:21:27 INFO Utils: Successfully started service 'org.apache.spark.network.netty.NettyBlockTransferService' on port 49425.
22/05/04 10:21:27 INFO NettyBlockTransferService: Server created on xx-x0-2:49425
22/05/04 10:21:27 INFO BlockManager: Using org.apache.spark.storage.RandomBlockReplicationPolicy for block replication policy
22/05/04 10:21:28 INFO BlockManagerMaster: Registering BlockManager BlockManagerId(driver, xx-x0-2, 49425, None)
22/05/04 10:21:28 INFO BlockManagerMasterEndpoint: Registering block manager xx-x0-2:49425 with 366.3 MiB RAM, BlockManagerId(driver, xx-x0-2, 49425, None)
22/05/04 10:21:28 INFO BlockManagerMaster: Registered BlockManager BlockManagerId(driver, xx-x0-2, 49425, None)
22/05/04 10:21:28 INFO BlockManager: Initialized BlockManager: BlockManagerId(driver, xx-x0-2, 49425, None)
22/05/04 10:21:28 WARN DFSPropertiesConfiguration: Cannot find HUDI_CONF_DIR, please set it as the dir of hudi-defaults.conf
22/05/04 10:21:28 WARN DFSPropertiesConfiguration: Properties file file:/etc/hudi/conf/hudi-defaults.conf not found. Ignoring to load props file
22/05/04 10:21:34 INFO SparkUI: Stopped Spark web UI at http://xx-x0-2:8090
22/05/04 10:21:34 INFO MapOutputTrackerMasterEndpoint: MapOutputTrackerMasterEndpoint stopped!
22/05/04 10:21:34 INFO MemoryStore: MemoryStore cleared
22/05/04 10:21:34 INFO BlockManager: BlockManager stopped
22/05/04 10:21:34 INFO BlockManagerMaster: BlockManagerMaster stopped
22/05/04 10:21:34 INFO OutputCommitCoordinator$OutputCommitCoordinatorEndpoint: OutputCommitCoordinator stopped!
22/05/04 10:21:34 INFO SparkContext: Successfully stopped SparkContext
Exception in thread "main" java.lang.NoSuchFieldError: DROP_PARTITION_COLUMNS
	at org.apache.hudi.DataSourceWriteOptions$.<init>(DataSourceOptions.scala:488)
	at org.apache.hudi.DataSourceWriteOptions$.<clinit>(DataSourceOptions.scala)
	at org.apache.hudi.DataSourceWriteOptions.RECONCILE_SCHEMA(DataSourceOptions.scala)
	at org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer.combineProperties(HoodieDeltaStreamer.java:160)
	at org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer.<init>(HoodieDeltaStreamer.java:130)
	at org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer.<init>(HoodieDeltaStreamer.java:115)
	at org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer.main(HoodieDeltaStreamer.java:549)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
	at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:955)
	at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:180)
	at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:203)
	at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:90)
	at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:1043)
	at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:1052)
	at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
22/05/04 10:21:34 INFO ShutdownHookManager: Shutdown hook called
22/05/04 10:21:34 INFO ShutdownHookManager: Deleting directory /private/var/folders/6w/4y9hyhmj4d15hdqlnd74rp5c0000gp/T/spark-629bf96a-39b1-4764-9c9b-8a3075506818
22/05/04 10:21:34 INFO ShutdownHookManager: Deleting directory /private/var/folders/6w/4y9hyhmj4d15hdqlnd74rp5c0000gp/T/spark-0552e0b7-1da6-4a5e-b1a7-3e440743cddb

I am trying to run 0.11.0 with the same config used for 0.10.1. Earlier it used to be hudi-utilities-bundle that we run, but now it is changed to hudi-utilities-slim-bundle along with hudi-sparkx.y-bundle . Somewhere the code recompilation/library versions are screwed is what I am feeling. But it is giving me hard time to figure that out.

@alexeykudinkin.  Apologies for the trouble, I accidentally placed hudi-hadoop-mr-bundle-0.10.1.jar in my spark class path earlier and HoodieTableConfig is being picked from that location and not able to find latest compiled class. I am closing this issue. Thanks for the your comments.


[Material] Tesselation and displacement compatibility

Release Type: Official Release/GitHub (please choose appropriate option)
Version: <IP_ADDRESS>-beta2-0615
Platform(s): Windows
PROJECT LINK for DEBUG: https://gofile.io/?c=BBQZmd
Describe the bug

Cannot use normal maps alongside displacement maps at the domain stage, the material disappears.
Displacement maps, after tesselation with edge fixing so the object doesn't split, mess up the textures in the uv set.
Displacement maps after tesselation, make faces disappear from the camera view as it gets closer/further away to the edges of the rendered screen.

To Reproduce

Open the project, check the different objects seen in the screenshots, you'll see the issues I mention.

ScreenShots
Tesselation+Displacement working fine except for the face issue, mentioned in #3. It's without normal, if I add normal I get across issue 1.

Issue #2, the texture is messed up, if I remove displacement and tesselation, the texture looks ok.

#3, with camera away it seems ok.

#3, with camera close by faces are removed.

With vertex stage tesselation, I can add the normal map, but the object breaks apart.

But if I set it to domain stage #1 happens.

Consider not attaching files from an external IP address, it is unsafe. I personally would never click on such links.

edited

I have started to take a look at these issues and found the following so far:

Seems to be caused by the use of world space normal in the displacement shader (See MaterialDisplacementMapFeature.cs), I tried changing it to use the mesh normal instead which is incorrect but does cause the material to render. As to why it behaves like this, no clue so far :)
I think this is because vertices outside the viewport are clipped in ComputeClippingGroup3 (TessellationFlat.sdsl)

I have also noticed that the tessellation feels very "unstable", this is especially noticeable when having a tessellated plane, everything moves around a lot as the camera is moved.

Regarding the clipping of faces(problem number 3 in the original post):
The problem is that the faces are clipped during the tessellation phase after which the displacement phase moves them around and back into view. I've temporarily disabled the clipping in the tesselation and that does fix it. However, I do think it is a valid optimization to not tessellate faces outside of view so I do not think that removing this code would be a good solution. IMO the proper solution would be to add a clipping tolerance parameter to allow the end-user to fine-tune the clipping so he gets both the performance optimization and no/minimal visual errors. This tolerance can't be a fixed value because it is unknown at tesselation stage how much displacement there is going to be.

I think I figured out why tessellation + displacement + normal mapping does not work. The issue is that normalWS is set to 0, this is due to the switch from the mixin NormalFromMesh which calculates the world space normal in the vertex shader to NormalFromNormalMapping which does not.
TesselationBase overrides the GenerateNormal_VS to ensure normalization but also calls base.GenerateNormal_VS() which uses the previously defined behaviour to generate the world space normal. I have fixed this by using the NormalFromMesh generation directly in TesselationBase, which  results in normal mapping and displacement working. This is not a proper solution though as it does not manage instancing or skinned meshes.
I think we need to create custom mixins (or specialize the existing ones) to preserve world space normals when tessellation and domain stage displacement is enabled. This would have to be added to StrideEffectBase.sdfx.cs


Decimal precision verification logic is incorrect

This logic is incorrectly setting the scale based on precision of the BigDecimal:
https://github.com/DBCG/cql_engine/blob/develop/engine/src/main/java/org/opencds/cqf/cql/engine/runtime/Value.java#L16

Resolved in v1.5.0


Carousel images break Bootstrap default styles

Because of your module's mechanism, inserting a div.text-center in the .item element, it is breaking the .carousel-inner > .item > img, .carousel-inner > .item > a > img CSS declaration of Bootstrap.
Besides, I don't really understand the utility of this layout modification. Why did you add this HTML element?

Can you show me where the text-center is being added?
https://github.com/angular-ui/bootstrap/blob/master/src/carousel/carousel.js

Inspect here (in your official documentation page) the element.

Answering your edited message:
Anyway, the presence of this HTML template breaks the default styles.

I think the reasoning for the containers existence is for something to attach the ng-transclude to. I'm not sure what the reasoning for the text-center class is though.

I know this reason, it's right, and I'm aware of it. But it's not ok to merge an element with a new nesting level, converting styles to: .carousel-inner > .item > .text-center > img, .carousel-inner > .item > .text-center > a > img.

Feel free to figure out a solution (other than editing the template) and open a pr...
My guess though, is that once upon a time it replaced the container, and since replace was deprecated it was removed.
You can just utilize the mechanism provided to you to override the template.
<script type="text/ng-template" id="slideTemplate.html">
  <a href='javascript: void(0);' ng-transclude>
</script>

      <div uib-slide ng-repeat="slide in slides track by slide.id" index="slide.id" template-url="slideTemplate.html">

Also, chill out.

I'm opening this issue because it's ridiculous the trouble caused by this so used library. So, the code's developer should be responsable to make a coherent mechanism. I do not want to misinterpret your message, but it sounds offensive to me.
All solutions you are offering are really a botched jobs. Also, javascript: void(0); is a simple demostration that you do not know AngularJS or Bootstrap effectively.

Alright, well have fun being a developer. You sure seem like you are one of the good ones.

Do you have any mental problem!? I'm not "one of the good ones" (like you said) but I try to be a good professional and avoid developing incoherently or creating problems with my code to another ones!


compatibility fixes

This PR fixes 2 items:

broken compatibility with polymer build as it throws up on let (uglify-js does not support ES6)
scrolling by swiping area inside sortable-list but outside of drag handle didn't work on newer Chrome Android versions

thanks!


Rematch doesn't clear last move arrow from the board

I lost my first match and chose to start a rematch. The board looked like this:

Good catch. When I changed the AI from server-side to client-side I forgot to update the reset logic.


[Quick Accent] Add more Mathematical Symbols #28144

Summary of the Pull Request

PR Checklist

[x] Closes: #28144
[ ] Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
[ ] Tests: Added/updated and all pass
[x] Localization: All end user facing strings can be localized
[x] Dev docs: No need
[ ] New binaries: Added on the required places

[ ] JSON for signing for new binaries
[ ] WXS for installer for new binaries and localization folder
[ ] YML for CI pipeline for new test projects
[ ] YML for signed pipeline

[ ] Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments
add the plus/equal key

VK_OEM_PLUS   0xBB  For any country/region, the += key

add the following symbols

Symbol
Unicode
Description
Possible Key
LaTeX

×
U+00D7
MULTIPLICATION SIGN
*
\times

∀
U+2200
FOR ALL
A
\forall

∁
U+2201
COMPLEMENT
C
\complement

∂
U+2202
PARTIAL DIFFERENTIAL
D
\partial

∃
U+2203
THERE EXISTS
E
\exists

∄
U+2204
THERE DOES NOT EXIST
E
\nexists

∅
U+2205
EMPTY SET
O
\emptyset

∉
U+2209
NOT AN ELEMENT OF
E
\notin

∏
U+220F
N-ARY PRODUCT
P
\prod

∑
U+2211
N-ARY SUMMATION
S
\sum

∓
U+2213
MINUS-OR-PLUS SIGN
+ or -
\mp

√
U+221A
SQUARE ROOT
, or /
\sqrt{}

∞
U+221E
INFINITY
8
\infty

≤
U+2264
LESS-THAN OR EQUAL TO
=
\leq

≥
U+2265
GREATER-THAN OR EQUAL TO
=
\geq

⊕
U+2295
CIRCLED PLUS
+
\oplus

⊗
U+2297
CIRCLED TIMES
+   or *
\otimes

Validation Steps Performed
check all symbols in Quick Accent

@microsoft-github-policy-service agree

Just want to point out that there is a slight problem with using VK_PLUS (0xBB) - the key does not exist on some keyboard layouts. I have already described this issue in detail in this comment https://github.com/microsoft/PowerToys/issues/24130#issuecomment-1750866777

Hi @kevinfu2, just what's to ask what's the status for this pr 🙂

Hi @kevinfu2, just what's to ask what's the status for this pr 🙂

Hi @kevinfu2, just what's to ask what's the status for this pr 🙂

I don't know how to solve the issue  @PesBandi raised.


Sidebar with bottom

Use case
There is no way to unselect a SideBarItem because we need to provide a currentIndex (It must be in the range of 0 to [items.length]). I think because of that when I add a Settings page by using bottom property as below and click on it, still SideBarItem is shown as selected.
MacosWindow(
    sidebar: Sidebar(
      top: const Text('LOGO'),
      minWidth: 200,
      builder: (context, _) => SidebarItems(
        currentIndex: _currentIndex,
        items: items,
        itemSize: SidebarItemSize.large,
        onChanged: (index) => _onItemTapped(context, index),
      ),
      bottom: MacosListTile(
        leading: const MacosIcon(CupertinoIcons.profile_circled),
        title: const Text('Settings'),
        subtitle: Text(userEmail ?? ''),
        onClick: () => context.go('/settings'),
      ),
    ),
    child: widget.child,
  )

Proposal

@anilcngz, did you manage to find a solution?

@anilcngz This is expected behavior IMO. I think if you want to display a settings page when the bottom is clicked you should push a new route, one that doesn't contain a sidebar.

@GroovinChip Attached you can find the App Store app screenshot, it has a very similar design. When I click the bottom item, it behaves like side bar item.

@GroovinChip Attached you can find the App Store app screenshot, it has a very similar design. When I click the bottom item, it behaves like side bar item.

Apple unfortunately do not consistently follow their own guidelines across their app. Do you know of any other Apple (or other) apps that have this behavior on macOS?

I was using rize.io for a while, it also has a similar experience. But I couldn't find any other Apple (or other) apps with a bottom Menu Item.
If it's like this in the Apple guideline as you said, we can close this issue.

I was using rize.io for a while, it also has a similar experience. But I couldn't find any other Apple (or other) apps with a bottom Menu Item.
If it's like this in the Apple guideline as you said, we can close this issue.

That looks like a custom sidebar, not an Apple-guidelines sidebar. In fact, the guidelines don't appear to mention this paradigm at all. So IMO the bottom should not be used to perform navigation to a view that a SidebarItem is connected to.


Unable to upload Blob with --auth-mode=key

Describe the bug
Bug
Seems that Signature parameter in HTTP request is wrongly calculated (see XML error description from server bellow).
Command Name
az storage blob upload
Errors:
Response from Blob Storage (using --debug parameter):
<?xml version="1.0" encoding="utf-8"?>
<Error>
	AuthenticationFailed
	<Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.RequestId:77402b9f-e01e-002f-2520-8494db000000Time:2019-10-16T12:55:06.3428350Z</Message>
	<AuthenticationErrorDetail>The MAC signature found in the HTTP request '***REDACTED***' is not the same as any computed signature. Server used following string to sign: 'PUT758x-ms-blob-content-type:application/xmlx-ms-blob-type:BlockBlobx-ms-client-request-id:2cf4f0bc-f014-11e9-b44c-***REDACTED***x-ms-date:Wed, 16 Oct 2019 12:55:06 GMTx-ms-version:2018-11-09/devmcom***REDACTED***'.</AuthenticationErrorDetail>
</Error>

Azure CLI interpretation of Blob Storage response:
You do not have the required permissions needed to perform this operation.
Depending on your operation, you may need to be assigned one of the following roles:
    "Storage Blob Data Contributor"
    "Storage Blob Data Reader"
    "Storage Queue Data Contributor"
    "Storage Queue Data Reader"

If you want to use the old authentication method and allow querying for the right account key, please use the "--auth-mode" parameter and "key" value.

The command failed with an unexpected error. Here is the traceback:

'CommandResultItem' object is not iterable
Traceback (most recent call last):
  File "/usr/local/Cellar/azure-cli/2.0.74/libexec/lib/python3.7/site-packages/knack/cli.py", line 212, in invoke
    self.output.out(cmd_result, formatter=formatter, out_file=out_file)
  File "/usr/local/Cellar/azure-cli/2.0.74/libexec/lib/python3.7/site-packages/knack/output.py", line 132, in out
    output = formatter(obj)
  File "/usr/local/Cellar/azure-cli/2.0.74/libexec/lib/python3.7/site-packages/knack/output.py", line 38, in format_json
    input_dict = dict(result) if hasattr(result, '__dict__') else result
TypeError: 'CommandResultItem' object is not iterable

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

prepare Container with Public Access Level "Blob"
parameter --type is "blob"
parameter --auth-mode is "key"
parameter --content-type is "application/xml"
az storage blob upload -f {} -c {} -n {} --content-type {} --type {} --auth-mode {} --account-key {} --account-name {} --debug

Expected Behavior
File should be uploaded to Blob Storage Container
Environment Summary
Darwin-18.7.0-x86_64-i386-64bit
Python 3.7.4
Shell: bash

azure-cli 2.0.74 *

Additional Context

Hi @tomasszabo, I can reproduce your error when I typo account-key on purpose. So can you check your storage account key is correct or not?
In addition, if you don't provide account-key and with access permission to the storage account, you also can do the upload. So you can also remove account-key value if you don't know what is the correct account-key.

dupe of #9995 for inaccurate error message

@Juliehzl

All values are correct, there's no typo.
This is used by our Build Server, it doesn't have any Azure Identity (and we don't want to create one), therefore account-key option must be used.
Just checked on v2.0.75, no difference, problem is still there
Just FYI - using sasToken option upload works, but it's really slow in comparison with Az Module in PowerShell. However, we don't want to use sasToken, but account-key.

Hi @tomasszabo when you provide account-key value in your command, you don't need to use --auth-mode key.
But here I think you get such kind of error due to firewall. Can you check your storage account network rules using az storage account show -n {accountname} --query networkRuleSet?
Please make sure your ip address is allowed in ipRules or vnet is allowed in virtualNetworkRules or defaultAction is "Allow".

@Juliehzl

As I wrote in my previous post, using sasToken option or using Az Module in Powershell works, therefore there cannot be any "firewall issues", because then the other methods will also not work. However, if you want to know it exactly, there are no network restrictions defined on Blob Storage end.
As mentioned in Error Description in response from Blob Storage, Signature field, that Azure CLI is sending, is wrongly calculated. Take a look at this Signature field, how it's calculated in Azure CLI. It can be so simple that time difference between client/server is too big and it can invalidate the signature.

any update for this issue?

Hi @tomasszabo, an error like "The MAC signature found in the HTTP request***" is a generic error message indicating that the access key is incorrect or does not have permission when sending a request to Azure storage. I tried exactly the same command in my environment, but I cannot repro. Could you please help provide more information like OS and file size?
Could you please try this command for some other storage account and check if it can repro?
Could you please try to add quotes "" for the storage key and

Hi @tomasszabo, an error like "The MAC signature found in the HTTP request***" is a generic error message indicating that the access key is incorrect or does not have permission when sending a request to Azure storage. I tried exactly the same command in my environment, but I cannot repro. Could you please help provide more information like OS and file size? To verify if it is due to some specific storage account, please help try this command for some other storage account and check if it can repro. Besides, could you please also try to add quotes "" for the storage key and check if it can work?

Close this issue since there is no response. Please help create a new issue if you still have questions.


New version: Alist.Alist version 3.11.0

[X] Have you signed the Contributor License Agreement?
[X] Have you checked that there aren't other open pull requests for the same manifest update/change?

[ ] Have you tested your manifest locally with winget install --manifest <path>?
[X] Does your manifest conform to the 1.4 schema?

Microsoft Reviewers: Open in CodeFlow

2023-02-14 06:25:44.109 [FAIL] Installer failed security check. Url: https://github.com/alist-org/alist/releases/download/v3.11.0/alist-windows-amd64.zip Result: 0x80004005

@wingetbot run


Multibin dummy stub regression v2

Describe the bug
Continuation of https://github.com/ipetkov/crane/issues/753, found a regression in another multibin scenario.
Regression experienced upgrading from da87d1af7e4e09fd0271432340a5cadf3eb96005 to af1556ecda8bcf305820f68ec2f9d77b41d9cc80
Refs https://github.com/wasmCloud/wasmCloud/pull/3771
Refs https://github.com/rvolosatovs/nixify/pull/317
Reproduction
I can reproduce the issue expanding the example from #753 with this diff: https://github.com/rvolosatovs/nixify/pull/317
Looks like something like this should be sufficient to expand the test case in this repo, but checks did not run for me on aarch64-darwin out-of-the-box, so I did not investigate further:
diff --git a/checks/mkDummySrcTests/multibin/expected/Cargo.toml b/checks/mkDummySrcTests/multibin/expected/Cargo.toml
index dfc9236..05820ff 100644
--- a/checks/mkDummySrcTests/multibin/expected/Cargo.toml
+++ b/checks/mkDummySrcTests/multibin/expected/Cargo.toml
@@ -5,6 +5,9 @@ path = "src/bin/hello.rs"
 [[bin]]
 name = "bye"

+[[bin]]
+name = "multibin"
+
 [features]
 default = ["some"]
 some = []
diff --git a/checks/mkDummySrcTests/multibin/expected/src/main.rs b/checks/mkDummySrcTests/multibin/expected/src/main.rs
new file mode 100644
index 0000000..b6a90ff
--- /dev/null
+++ b/checks/mkDummySrcTests/multibin/expected/src/main.rs
@@ -0,0 +1,14 @@
+#![allow(clippy::all)]
+#![allow(dead_code)]
+#![cfg_attr(any(target_os = "none", target_os = "uefi"), no_std)]
+#![cfg_attr(any(target_os = "none", target_os = "uefi"), no_main)]
+
+#[allow(unused_extern_crates)]
+extern crate core;
+
+#[cfg_attr(any(target_os = "none", target_os = "uefi"), panic_handler)]
+fn panic(_info: &::core::panic::PanicInfo<'_>) -> ! {
+    loop {}
+}
+
+pub fn main() {}
diff --git a/checks/mkDummySrcTests/multibin/input/Cargo.toml b/checks/mkDummySrcTests/multibin/input/Cargo.toml
index 1b3ebe9..fdd1d5a 100644
--- a/checks/mkDummySrcTests/multibin/input/Cargo.toml
+++ b/checks/mkDummySrcTests/multibin/input/Cargo.toml
@@ -14,3 +14,6 @@ path = "src/bin/hello.rs"
 [[bin]]
 name = "bye"
 required-features = ["some"]
+
+[[bin]]
+name = "multibin"
diff --git a/checks/mkDummySrcTests/multibin/input/src/main.rs b/checks/mkDummySrcTests/multibin/input/src/main.rs
new file mode 100644
index 0000000..fb7ae0c
--- /dev/null
+++ b/checks/mkDummySrcTests/multibin/input/src/main.rs
@@ -0,0 +1,3 @@
+fn main() {
+    println!("Hello, multibin!");
+}

Thank you for the report and reproduction as always! Should be fixed with https://github.com/ipetkov/crane/pull/758


vite-css-modules ate my querystring

Problem
In dev mode, I use query strings in conditional exports to signal different behaviour to generateScopedName. However, vite-css-modules strips the querystring:
https://github.com/privatenumber/vite-css-modules/blob/23f9462ce01997d368a61d9d7b340576af5da869/src/plugin/index.ts#L119
Expected behavior
Do not strip the querystring (:
Minimal reproduction URL
https://github.com/privatenumber/vite-css-modules/blob/23f9462ce01997d368a61d9d7b340576af5da869/src/plugin/index.ts#L119
Version

Node.js version

Package manager
npm
Operating system
Windows
Bugs are expected to be fixed by those affected by it

[X] I'm interested in working on this issue

Compensating engineering work financially will speed up resolution

[ ] I'm willing to offer financial support

:tada: This issue has been resolved in version 1.7.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


go tool: no such tool "compile"

root@kali:/opt# git clone https://github.com/tiagorlampert/CHAOS
Cloning into 'CHAOS'...
remote: Counting objects: 28, done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 28 (delta 11), reused 28 (delta 11), pack-reused 0
Unpacking objects: 100% (28/28), done.
root@kali:/opt# apt install golang upx-ucl -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
golang is already the newest version (2:1.7~5).
golang set to manually installed.
upx-ucl is already the newest version (3.91-4).
upx-ucl set to manually installed.
The following packages were automatically installed and are no longer required:
dkms jsql libjs-mochikit linux-headers-686-pae open-vm-tools-dkms
python-advancedhttpserver python-alembic python-boltons python-cheetah
python-dap python-editor python-formencode python-geoip2 python-geojson
python-icalendar python-maxminddb python-mpltoolkits.basemap python-openid
python-pampy python-paste python-pastedeploy python-pastedeploy-tpl
python-pastescript python-pluginbase python-pyotp python-scgi
python-smoke-zephyr python-tempita python-termcolor python-tzlocal
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 247 not upgraded.
root@kali:/opt# cd CHAOS
root@kali:/opt/CHAOS# go run CHAOS.go
go tool: no such tool "compile"
root@kali:/opt/CHAOS# cat /etc/issue
Kali GNU/Linux Rolling \n \l
root@kali:/opt/CHAOS# uname -a
Linux kali 4.9.0-kali4-686-pae #1 SMP Debian 4.9.30-1kali1 (2017-06-06) i686 GNU/Linux

Run:
go env
And send me output.
Probably your GOROOT is incorrect.

root@kali:~# whoami
root
root@kali:~# go env
GOARCH="386"
GOBIN=""
GOEXE=""
GOHOSTARCH="386"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_386"
CC="gcc"
GOGCCFLAGS="-fPIC -m32 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build143117457=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
root@kali:~#
@tiagorlampert

Based on your output: golang is already the newest version (2:1.7~5). You have installed Go version 1.7
You can check version running:
go version
My output:
tiagorlampert@host:~$ go version go version go1.8.3 linux/amd64
Maybe you have to change the GOROOT.
Try:
export GOROOT=/usr/lib/go
or
export GOROOT="/usr/lib/go-1.8" - Check your Golang version, in my case 1.8.
Case nothing work, try update your OS:
apt update && apt dist-upgrade -y

Hi, case your problem don't have be solved, you can try clone CHAOS again, and run a version compiled.
git clone https://github.com/tiagorlampert/CHAOS.git
sudo chmod +x CHAOS
./CHAOS

root@kali:~# go version
go version go1.7.4 linux/386
maybe my kali has a bug .
I will reinstall the system
thanks @tiagorlampert


Fix persistent ios tooltips on icon button component

Just a note that this seems to be a problem on iPhone in particular.


Improve consistency in help texts

Purpose

This is to improve inconsistency in help-texts
Fixes https://github.com/ballerina-platform/ballerina-lang/issues/30701

Approach

Describe how you are implementing the solutions along with the design details.

Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Check List

[ ] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

We have added the full stop in some places only. Please check all the places and either keep them or remove them to maintain consistency.


tooltip directive now has a templateUrl

First of all thank you for a great directive. In the project i'm working on we need to have a lot more functionality in the tool tip so I have moved the template out to a file and changed the tool tip directive to use tempateUrl

I am trying to add tooltip on the bars but gives error


Cluster: Kill leader process, another leader should be elected

I'm referring to the Failover Master Server wiki page (https://github.com/chrislusf/seaweedfs/wiki/Failover-Master-Server):
I have started 3 master and 3 volume servers with the commands shown on the page.
When I (unix) kill the master process that is currently the leader, should another master process automatically take over leadership? Because that does not seem to be the case. Or is that only triggered on the next file operation event?

Yes, one of the other 2 master should be elected as leader. This process may take one minute.
Let me know what happens.

I've made additional tests and indeed, one of the other masters took over leadership after a while. Don't know why that did not work the last time... I will look into this some more. Thanks for your help.


dropbox: fix missing libgcc_s.so required by pthread_cancel

Motivation for this change
Fix #41034
Things done

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

It does not fix. I close this.


I18n. Fallback doesn't work when using translations outside of Components

Helloo,
I have a config like this for image picker:
import I18n from 'react-native-i18n'

const PICKER_OPTIONS = {
    title: I18n.t('avatar_title'),
    cancelButtonTitle: I18n.t('avatar_cancel'),
    takePhotoButtonTitle: I18n.t('avatar_takePicture'),
    chooseFromLibraryButtonTitle: I18n.t('avatar_takeFromLibrary'),
}
export default PICKER_OPTIONS

and I receive missing en-US translation with fallback activated. When I use the same I18n.t('avatar_title') in React Components it gets translated.

Wow, that's odd.  I wouldn't have expected that.  Can you check through the NPM repo and see if anyone has any info on this?   https://github.com/AlexanderZaytsev/react-native-i18n
My gut says this might be a race-condition.   A top-level const might be assigned before the lifecycle of React Native.  That's just a guess.
Does the const work if you move it to the same file, but not the same class?

Agree, very weird.
It worked before the I18n update.
I already tested it outside the class, doesn't work.

Ok. so, finally had time to see this issue. And I fixed this by changing order of imports in App.js
import React, { Component } from 'react'
import { Provider } from 'react-redux'
import '../I18n/I18n' //declare this before RootContainer
import RootContainer from './RootContainer'
import createStore from '../Redux'
import DebugSettings from '../Config/DebugSettings'

Try to reproduce this, to confirm if this is a bug

wow...   will do

@ruskid - I didn't have time to really create an example of the issue, so I just moved the order of imports like you suggested.  That way if what you said works, then we're good.
Please reopen if the issue persists.


Crawl (Fabric) + Zoomify crash

Mod Name
Crawl (Fabric) + Zoomify
Mod Homepage
https://www.curseforge.com/minecraft/mc-mods/crawl - https://www.curseforge.com/minecraft/mc-mods/zoomify
Minecraft version
1.20.1
Describe the bug
Having Crawl (Fabric), Zoomify (along with YACL and Fabric Language Kotlin) and Forgified Fabric API, Sinytra Connector and Connector Extras crashes the game when creating a world.
Steps to reproduce

Open the modpack with all 7 mentioned mods included;
Create a world.

Logs
https://mclo.gs/Id9p6bk
Additional context
It appears that any other combination of the mods works just fine, only when all of them are together the game crashes.
I'll show the combinations I tried and refer to the mods as follows:
a. Crawl (Fabric);
b. Zoomify (along with YACL and Fabric Language Kotlin);
c. Forgified Fabric API, Sinytra Connector and Connector Extras.
a + b = https://mclo.gs/BPnXsMQ Fabric
a + c = https://mclo.gs/xxG1LGv Forge
b + c = https://mclo.gs/KvS66ul Forge
a + b + c  = https://mclo.gs/Id9p6bk (The log mentioned in the logs field) Forge

Duplicate of #913, will be fixed in the next release


HA Energy Dashboard

Hey guys,
as you already know, HA has introduced the energy dashboard feature and I really like it. What I did so far was, that I created a template sensor in configuration.yaml like this:
  - platform: template
    sensors:
      wtc_g_pc_tageswarmemenge_vortag_gesamt_we0_m3:
        unit_of_measurement: "m³"
        value_template: '{{ states("sensor.wtc_g_pc_tageswarmemenge_vortag_gesamt_we0") | replace(",",".") | float / 10 }}'

so I am using the gas energy used yesterday and transform it to m3 by dividing the value through 10. m3 is needed by the energy dashboard, that is why I am doing that.
then I use the customize.yaml to enable statistics for this new sensor by:
sensor.wtc_g_pc_tageswarmemenge_vortag_gesamt_we0_m3:
  state_class: total_increasing
  icon: mdi:gas-cylinder
  device_class: gas

and then I add this new sensor to the energy dashboard of HA.
The problem I encounter is, that if I restart HA or the hass-WEM-Portal plugin itself runs in failure and gets back online the data is re-requested and thus my custom sensor gets new data and that leads to the situation that the energy dashboard adds the amount AGAIN and that leads to complete wrong data.
so on a perfect day (no HA server restart and no outage of the wemportal) it is correct:

but on a day with one or more restarts its a pain:

Is anyone of you having an idea on how to solve that?
Best,
Dirk

I modified my approach a bit and got it solved that the gas usage of last day is only used once a day within the energy dashboard. but I have the problem that the data is wrong. I assume that this problem is related to the energy dashboard so I filed a issue at HA: https://github.com/home-assistant/core/issues/69184

I solved the issue with a few steps and will share how I did that here:

Create a new template sensor in configuration.yaml that will get '0' on initialization:

sensor:
  - platform: template
    sensors:
      wtc_g_pc_tageswarmemenge_vortag_gesamt_we0_m3:
        unit_of_measurement: "m³"
        value_template: 0

Create an automation that fills that template sensor once a day with the data. This is needed due to HA restarts. If we restart HA then the state of gas usage is re-set and that would lead to wrong data in energy dashboard. So I put that to automations.yaml. What I also do here is to convert the data from comma value to dot value (that could be fixed one time in #20) and transform from kWh to m3.

- alias: "Gas Vortag"
  trigger:
    - platform: time
      at: '05:00:00'
  action:
    - service: python_script.set_state
      data_template:
        entity_id: sensor.wtc_g_pc_tageswarmemenge_vortag_gesamt_we0_m3
        state: '{{ states("sensor.wtc_g_pc_tageswarmemenge_vortag_gesamt_we0") | replace(",",".") | float / 10 }}'
        updated_by: python_script.set_state

The python_script I use in 2 is put in the folder python_scripts with file name set_state.py and enabled in configuration.yaml via pythons_script:

# Usage
#
# - service: python_script.set_state
#   data_template:
#     entity_attr:
#       nuki_id: '{{ trigger.json.nukiId }}'
#     state: '{{ trigger.json.stateName }}'
#     # Attributes
#     battery_critical: '{{ trigger.json.batteryCritical }}'
#     updated_by: python_script.set_state

LOG_HANDLE = "python_script.set_state"

ATTR_ALLOW_CREATE = "allow_create"
ATTR_ENTITY_ATTR = "entity_attr"
ATTR_ENTITY_ID = "entity_id"
ATTR_STATE = "state"

def get_entity_id(data):
    entity_id = data.get(ATTR_ENTITY_ID)
    if entity_id:
        entity = hass.states.get(entity_id)
        if entity:
            return entity_id
    # Search for entity matching attribute spec
    entity_attr = data.get(ATTR_ENTITY_ATTR)
    for entity_id in hass.states.entity_ids():
        state = hass.states.get(entity_id)
        # Look for first matching entity id
        for attr_name, attr_val in entity_attr.items():
            if str(state.attributes.get(attr_name)) == str(attr_val):
                logger.debug(f"{LOG_HANDLE}: matched -> {entity_id} ({attr_name}={attr_val})")
                return entity_id

entity_id = get_entity_id(data)
logger.debug(f"{LOG_HANDLE}: Found {entity_id}")

if entity_id is None and not data.get(ATTR_ALLOW_CREATE):
    logger.error(
        f"{LOG_HANDLE}: Unable to find entity matching search criteria. You may want to add {ATTR_ALLOW_CREATE}."
    )
else:
    state = hass.states.get(entity_id)  # current state
    new_state = data.get(ATTR_STATE, state.state)  # default to current state
    new_attributes = state.attributes.copy()

    # Update attributes
    reserved_keys = [ATTR_ALLOW_CREATE, ATTR_ENTITY_ATTR, ATTR_ENTITY_ID, ATTR_STATE]
    for key, val in {x: data[x] for x in data if x not in reserved_keys}.items():
        logger.debug(f"{LOG_HANDLE}: {key}={val}")
        new_attributes[key] = val

    hass.states.set(entity_id, new_state, new_attributes)

Due to the fact that the data is going to 0 every day the last_reset needs to be set. As I found no suitable way doing that I created a new energy meter in configuration.yaml:

utility_meter:
  gas_vortag:
    source: sensor.wtc_g_pc_tageswarmemenge_vortag_gesamt_we0_m3
    cycle: daily

And then I add some custom attributes to this new utility meter in customize.yaml to enabe the statistics feature.
sensor.gas_vortag:
  state_class: total_increasing
  icon: mdi:gas-cylinder
  device_class: gas
  unit_of_measurement: "m³"

Add that sensor.gas_vortag to the energy dashboard.

If you have a better idea, please feel free to tell me! :)

Hey there,
I had problems with the python script, so I was looking for another solution. At the end I solve it with two triggered template sensors defined in configuration.yaml.
template:
  - trigger:
    - platform: time
      at: "01:00:00"
    sensor:
      - name: Gasverbrauch Warmwasser
        unique_id: sensor.gasverbrauch_warmwasser
        state: "{{ states('sensor.gasverbrauch_warmwasser')|float + states('sensor.wtc_g_pc_tageswarmemenge_vortag_warmwasserbetrieb_we0')|float }}"
        unit_of_measurement: "kWh"
        device_class: energy
        state_class: total_increasing
  - trigger:
    - platform: time
      at: "01:00:00"
    sensor:
      - name: Gasverbrauch Heizung
        unique_id: sensor.gasverbrauch_heizung
        state: "{{ states('sensor.gasverbrauch_heizung')|float + states('sensor.wtc_g_pc_tageswarmemenge_vortag_heizbetrieb_we0')|float }}"
        unit_of_measurement: "kWh"
        device_class: energy
        state_class: total_increasing

Both can be added directly to the energy dashboard.
Feel free to optimize it :)

Hi @SKis274,
I copied your code into my configuration.yaml, but the "Gasverbrauch Warmwasser" and "Gasverbrauch Heizung" status is not available. The Energy Dashboard shows the following:
statistics_not_defined

sensor.gasverbrauch_warmwasser

Entität nicht verfügbar
Der Status dieser konfigurierten Entitäten ist derzeit nicht verfügbar:

sensor.gasverbrauch_warmwasser (unavailable)

statistics_not_defined

sensor.gasverbrauch_heizung

Entität nicht verfügbar
Der Status dieser konfigurierten Entitäten ist derzeit nicht verfügbar:

sensor.gasverbrauch_heizung (unavailable)

sensor.wtc_g_pc_tageswarmemenge_vortag_warmwasserbetrieb_we0 and sensor.wtc_g_pc_tageswarmemenge_vortag_heizbetrieb_we0 are available with values.
Do you have an idea why it doesn't work?
Thank you.

Hey Together,
I've try both variants, but it won't work.
At the first one the sensor gives me "0" and i can not integrate the sensor.gas_vortag in the Energy Dashboard.
at the second one the sensor.gasverbrauch_warmwasser, sensor.gasverbrauch_heizung gives me unavailable.
I dont know why.
Can someone Help me?
Thank you

Hey Dirk,
after our mail from Today here my stats:
Loads default set of integrations. Do not remove.
default_config:
Text to speech
tts:

platform: google_translate

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
wemportal:
#scan_interval: 300
#api_scan_interval: 300
#language: de
#mode: both
username: ***
password: ***
sensor:

platform: template
sensors:
wtc_g_pc_tageswarmemenge_vortag_gesamt_we0_m3:
unit_of_measurement: "m³"
value_template: 0

logger:
default: warn
logs:
custom_components.wemportal: debug
http:
base_url: ***
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
cors_allowed_origins:
- https://google.com
- Https://www.home-assistant.io
ip_ban_enabled: true
login_attempts_threshold: 5
utility_meter:
gas_vortag:
source: sensor.wtc_g_pc_tageswarmemenge_vortag_gesamt_we0_m3
cycle: daily
automations.yaml:

id: '1679049078753'
alias: "Gas Vortag"
trigger:

platform: time
at: '05:00:00'
action:
service: python_script.set_state
data_template:
entity_id: sensor.wtc_g_pc_tageswarmemenge_vortag_gesamt_we0_m3
state: '{{ states("sensor.wtc_g_pc_tageswarmemenge_vortag_gesamt_we0") | float / 10 }}'
updated_by: python_script.set_state

/config/Python_Scripts/set_state.py:
Usage

- service: python_script.set_state
data_template:
entity_attr:
nuki_id: '{{ trigger.json.nukiId }}'
state: '{{ trigger.json.stateName }}'
# Attributes
battery_critical: '{{ trigger.json.batteryCritical }}'
updated_by: python_script.set_state
LOG_HANDLE = "python_script.set_state"
ATTR_ALLOW_CREATE = "allow_create"
ATTR_ENTITY_ATTR = "entity_attr"
ATTR_ENTITY_ID = "entity_id"
ATTR_STATE = "state"
def get_entity_id(data):
entity_id = data.get(ATTR_ENTITY_ID)
if entity_id:
entity = hass.states.get(entity_id)
if entity:
return entity_id
# Search for entity matching attribute spec
entity_attr = data.get(ATTR_ENTITY_ATTR)
for entity_id in hass.states.entity_ids():
state = hass.states.get(entity_id)
# Look for first matching entity id
for attr_name, attr_val in entity_attr.items():
if str(state.attributes.get(attr_name)) == str(attr_val):
logger.debug(f"{LOG_HANDLE}: matched -> {entity_id} ({attr_name}={attr_val})")
return entity_id
entity_id = get_entity_id(data)
logger.debug(f"{LOG_HANDLE}: Found {entity_id}")
if entity_id is None and not data.get(ATTR_ALLOW_CREATE):
logger.error(
f"{LOG_HANDLE}: Unable to find entity matching search criteria. You may want to add {ATTR_ALLOW_CREATE}."
)
else:
state = hass.states.get(entity_id)  # current state
new_state = data.get(ATTR_STATE, state.state)  # default to current state
new_attributes = state.attributes.copy()
# Update attributes
reserved_keys = [ATTR_ALLOW_CREATE, ATTR_ENTITY_ATTR, ATTR_ENTITY_ID, ATTR_STATE]
for key, val in {x: data[x] for x in data if x not in reserved_keys}.items():
    logger.debug(f"{LOG_HANDLE}: {key}={val}")
    new_attributes[key] = val

hass.states.set(entity_id, new_state, new_attributes)

costomize.yaml:
sensor.gas_vortag:
state_class: total_increasing
icon: mdi:gas-cylinder
device_class: gas
unit_of_measurement: "m³"
I hoope you can help me.
Daniel

please check if the sensor sensor.wtc_g_pc_tageswarmemenge_vortag_gesamt_we0 is existing in your setup? or if the name is different?

where can i see it ?

Check the entities that are provided by the wemportal integration.

You need to enable mode: both otherwise you are only using mobile api and this one does not give you the date you need.

the mode in the Configuration.yaml is on Both, how can i Refresh the entities ?

It has a # infront, that means commented out and so not active. Remove the # and restart your server.

no i Have the entity. I will try to add it.


📘 DOC: Add docs and tests for passing options to custom renderers

This came up for me while working on withastro/astro#935, apparently Astro actually does have support for passing options to a renderer.  We should add docs to cover this and also make sure there is test coverage for it as well
https://github.com/snowpackjs/astro/pull/935#issuecomment-899567509

@tony-sull is this a relevant issue anymore? :)

So, @tony-sull ... Aug 2021, eh?  I'm going to slowly close this and back away... and if it comes up again, it comes up! 😅


Dialog options, e.g.,dialog.xxx cannot be interpreted from a StringExpression property of a custom action.

Describe the bug
Dialog options, e.g., dialog.xxx cannot be interpreted from a StringExpression property of a custom action.
Validated by output the variable value through the Send a response built-in action.

Output of above

However, in a Custom Action, the same expression cannot resolve the dialog.xxx properly, e.g., the following StringExpression property i assigned to the same expression dialog.PassedInDialogOption is ${dialog.PassedInDialogOption}${EOL()}conversation.SampleDialog.PassedInDialogOption is: ${conversation.SampleDialog.PassedInDialogOption}, but the evaluated value is empty for the dialog.PassedInDialogOption as shown below.

Output of above

Additional Info
Note that this repros for both passed in option (through the options field in Begin a Dialog action) and manually created variable in dialog scope.
Version
2.1.2

@dawwa, I can see in the first image that the conversation.SampleDialog.PassedInDialogOption value is being set to the dialog.PassedInDialogOption value. At what point is dialog.PassedInDialogOption being assigned a value? I see where you create the property in the custom action code. Is the value also being set there?

@stevkan, the dialog.PassedInDialogOption could be either passed in through the 'Options' of 'Begin a new dialog' from a parent dialog, or just manually creating a property in current dialog for the dialog scope. both cases repro the issue.
Yes, the exposed field (StringExpression type) in my Custom Action gets assigned the same expression.

Thank you for the clarification. That's what I thought I was seeing but wanted to be certain. I'll continue looking into this.

@dawwa - I am able to achieve this thru two different setups which I detail below. As I don't have your code in front of me, please check that these solutions align with what you are trying to do. If they don't, provide me with specifics and I'll attempt to make adjustments.
For simplicity, I am using the "Multiply" custom action described in the docs. While it asks for name and number, those values are ignored. Only the user's input for PassedInDialogOption is accesssed and used (in the second solution).
Solution 1: Hard-coding value in trigger/previous dialog

I have a trigger that, when entered into, sets the dialog.PassedInDialogOption value

I call Begin a new dialog (Dialog A) and pass the value in via Options

In Dialog A, I assign the dialog.PassedInDialogOption to the SubmitTitleButton property of the custom action dialog (Dialog C)

Dialog C does ask for an input value (mentioned above), but because I ignore the user input and rely on the hard-coded value, only the hard-coded value is read and returned in chat.

Solution 2: Hard-coding value in trigger/previous dialog

I have a trigger that calls Begin a new dialog (Dialog A)
Within Dialog A, I start a sub dialog (Dialog B) that gathers user input used in the "Multiply" dialog (i.e. the custom action dialog, Dialog C). I also set the property, dialog.returnedDetails, that will receive the returned value from Dialog B

Within Dialog B, I create anobject property, dialog.details, and assign the user input values to this for name, favNumber, and PassedInDialogOption. dialog.details is returned to Dialog A using the End this dialog action.

The dialog.returnedDetails properties are then passed into the Dialog C action, specifically assigning dialog.returnedDetails.PassedInDialogOption to the "SubmitTitleButton" field.

The value is read within the custom action and returned in chat.

For reference, here is the code used in the custom action:
[JsonProperty("submitTitleButton")]
public StringExpression SubmitTitleButton { get; set; }

[JsonProperty("resultProperty")]
public StringExpression ResultProperty { get; set; }

[JsonProperty]
public String EventName { get; set; }

public override Task<DialogTurnResult> BeginDialogAsync(DialogContext dc, object options = null, CancellationToken cancellationToken = default(CancellationToken))
{
  TelemetryClient.TrackEvent(this.EventName, this.Properties);

  // var arg1 = Arg1.GetValue(dc.State);
  // var arg2 = Arg2.GetValue(dc.State);

  // var result = Convert.ToInt32(arg1) * Convert.ToInt32(arg2);
  var result = SubmitTitleButton.GetValue(dc.State);
  if (this.ResultProperty != null)
  {
    dc.State.SetValue(this.ResultProperty.GetValue(dc.State), result);
  }

  return dc.EndDialogAsync(result: result, cancellationToken: cancellationToken);
}

Hi @stevkan, thanks for the details, what you did is pretty much the same as what I have, but somehow the issue still repros for my setup, something special for the dialog scope versus conversation scope, as assigning with
conversation.SampleDialog.PassedInDialogOption can be interpreted properly for the custom action property, e.g., SubmitTitleButton, but if assigning with dialog.PassedInDialogOption remains as null.


Correct GBLOC returned in payment requests for moves associated with the USMC branch

Jira ticket for this change
Summary
Currently payment requests sent to Syncata reflect the origin duty location GBLOC, however for Marines they must be set to "USMC" so that invoices are sent to the correct office.
This PR adds a condition in the 858 generator so that the GBLOC is coded correctly for Marines.
Setup to Run Your Code

💻 You will need to use one terminal to test this locally.  To test in staging, check that the payment requests generated are returning the "USMC" GBLOC for service members affiliated with the Marines branch.
Terminal 1
Start the Storybook locally.
make storybook

Terminal 2
Start the UI locally.
make client_run

Terminal 3
Start the Go server locally.
make server_run

Additional steps

Access the
Login as a

Verification Steps for Author
These are to be checked by the author.

[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

Verification Steps for Reviewers
These are to be checked by a reviewer.

Frontend

[ ] User facing changes have been reviewed by design.
[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, IE, Edge).
[ ] There are no new console errors in the browser devtools
[ ] There are no new console errors in the test output
[ ] If this PR adds a new component to Storybook, it ensures the component is fully responsive, OR if it is intentionally not, a wrapping div using the officeApp class or custom min-width styling is used to hide any states the would not be visible to the user.

Backend

[ ] Code follows the guidelines for Logging
[ ] The requirements listed in Querying the Database Safely have been satisfied.

Database
Any new migrations/schema changes:

[ ] Follows our guidelines for Zero-Downtime Deploys
[ ] Have been communicated to #g-database
[ ] Secure migrations have been tested following the instructions in our docs

Screenshots

Warnings

:warning:
Please add the JIRA issue key to the PR title (e.g. MB-123)

  Generated by :no_entry_sign: dangerJS against 857a0163ec3c22c54ad882bef1c8fa839b0abf30


[MAYBE MACHINE DEPENDANT] Segmentation fault

When trying to compile the project attached below.  I get the following:
[ vabenil@arch-pc: sync/D/mblas ]$ redub -f
Dependencies resolved in 0 ms for "debug" using /usr/bin/dmd [linux-x86_64]
Project mblas is single dependency, performing single threaded build
Segmentation fault (core dumped)

This happens both in redub-1.7.8 and also in the latest git redub version.
Project files:
mblas.zip
When compiling normally I get the following, though I suspect this may be an error specific to my machine:
[ vabenil@arch-pc: sync/D/mblas ]$ dub
    Starting Performing "debug" build using /usr/bin/dmd for x86_64.
    Building mblas ~master: building configuration [application]
     Linking mblas
/usr/bin/ld: -f may not be used without -shared
collect2: error: ld returned 1 exit status
Error: linker exited with status 1
       cc /home/vabenil/.dub/cache/mblas/~master/build/application-debug-FP-wj8rju3IMj2OEdhNFiw/mblas.o -o /home/vabenil/.dub/cache/mblas/~master/build/application-debu
g-FP-wj8rju3IMj2OEdhNFiw/mblas -g -m64 -Xlinker --no-as-needed -Xlinker -fopenmp -Xlinker --export-dynamic -lopenblas -L/usr/lib -Xlinker -Bstatic -lphobos2 -Xlinker -B
dynamic -lpthread -lm -lrt -ldl
Error /usr/bin/dmd failed with exit code 1.

Lastly, this maybe best in an a separate issue, but when trying to compile with redub the cblas project (https://github.com/DlangScience/cblas). I get the following error:
object.Exception@source/redub/buildapi.d(681): Project named 'cblas which is a sourceLibrary, can not depend on project mir-core since it can only depend on sourceLibrary. Dependency is a library
----------------
/usr/include/dlang/ldc/std/exception.d:522 pure @safe noreturn std.exception.bailOut!(Exception).bailOut(immutable(char)[], ulong, scope const(char)[]) [0x57cf98dd8617]
/usr/include/dlang/ldc/std/exception.d:442 [0x57cf98d94698]
source/redub/tree_generators/dub.d:127 [0x57cf98d9324e]
source/redub/tree_generators/dub.d:37 [0x57cf98d930f2]
source/redub/api.d:207 [0x57cf98dd5acc]
source/app.d:261 [0x57cf98dd7848]
source/app.d:76 [0x57cf98dd63dc]
??:? void rt.dmain2._d_run_main2(char[][], ulong, extern (C) int function(char[][])*).runAll() [0x75161157906c]
??:? _d_run_main2 [0x751611578e86]
??:? _d_run_main [0x751611578cdc]
??:? [0x751610d4ec87]
??:? __libc_start_main [0x751610d4ed4b]
??:? [0x57cf98d92e34]

Compiling this project with dub works normally.
Lastly I am currently using Arch Linux, dub version is 1.38.1 and dmd version is 2.109.1

I'm slightly confused on why a project that simples is not building, I'm currently debugging it

Fixed error 1 on 1.7.9

@vabenil
On the second project:

I'll close this with the new release, if you find other issues, feel free to open a new issue


No pretrained model published to test it quickly using private data

I am wondering that this repo is well tested to reproduce the results as I haven't seen the reported model weights are absent.

I am wondering that this repo is well tested to reproduce the results as I haven't seen the reported model weights are absent.

The links of all the model weights required in training are provided in ReadMe.


Error: Error writing the report config file: EISDIR: illegal operation on a directory

This config does not work and breaks with this error:
      - name: Nuclei Scan
        uses: projectdiscovery/nuclei-action@main
        with:
          urls: output/active_urls.txt
          output: output/nuclei_output.txt
          flags: "-exclude-id http-missing-security-headers"

Error: Error writing the report config file: EISDIR: illegal operation on a directory, open '/home/runner/work/pd-actions/pd-actions'

Unfortunately repository is private and I cannot share url to GHA.
I don't use it daily, but last time it worked was three months ago.

I have the same issue on a brand new workflow I've created, tried giving full paths to all of the files I'm using as well as downgrading to 3.2.9 but it still seems to be throwing the error https://github.com/pritchyspritch/dast-automation/actions/runs/10092703820/job/27906896586

@aminvakil @pritchyspritch this fixed with #90.
try re-running the jobs now.

@RamanaReddy0M Yeah that fixed it, thanks for the quick turnaround 👍🏻

@RamanaReddy0M Yes, has got fixed, thank you very much!


[Feature] IPage to support getting the cookies applicable to the open page

Currently the only way to get the cookies is to use the browser context and filtering out the domain.
It would be nice if the IPage had a CookiesAsync function that automatically returned the cookies applicable to the Page.Url value so that the tests only need an IPage and don't need to also track the IBrowserContext to get them

You can access the browser context via page.Context so something like this should be possible:
page.Context.CookiesAsync(new[] { page.Url });

Yes I can implement that as an extension method but it would be nice if there was a page.CookiesAsync() method that does that in the background?


"helm dependency update" does not delete dependencies already contained in charts folder

I cannot decide is it bug or feature but it still the case:

add some dependency subchart:1.0.0 to requirements.yaml
do helm dependency update .
file subchart-1.0.0.tgz appears in chart folder
remove depdendency from requirements.yaml
do helm dependency update .
file subchart-1.0.0.tgz is still in chart folder despite of message "Deleting outdated charts"

Helm v.2.6.1

https://github.com/kubernetes/helm/issues/2830

This is very much not a feature. The problem here is that Helm does not differentiate between manually-managed chart dependencies and automatic ones. This is a problem because one would expect automatically-managed dependencies to go away on the next helm dependency build when they are removed from Chart.yaml but one would not expect helm dependency build to remove subcharts that one put there by hand (else #2830 would be back). Ideally, helm would keep the two kinds of dependencies in separate directories so they could easily be told apart but... that seems deeply breaking. It seems to me like a simple heuristic that would mostly work would be to treat folders as subcharts (leave them alone) but tgz files as automatic dependencies (clean them up)

Could we add an option to delete *.tgz files if they're not present in Chart.yaml?
e.g.
helm dependency update --prune .

or maybe a different action perhaps?
helm dependency sync .

Where is the official documentation for removing a dependency? This behavior  is frustrating and poorly documented.
The docs only say an update command will not remove charts unless they are (a) present in the Chart.yaml file, but (b) at the wrong version
Before this is fixed the docs could at least be obvious about this: "To remove a dependency you must remove it from your Chart.yaml AND delete the chart from the "charts" folder"

Stumbled over this as well... Strange workflow right now with this.


webpack-example throws react error

Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).

@amilajack Can you still reproduce this issue on 1.0.0-rc.27?
If so can you please create small reproduce repo for this issue?

I don't even remember what issue I was experiencing because this was over a year ago. Sorry. I'll close this


implement sparse solver

Added sparse RQ solver from #1.
However, I am a bit confused about the RQ_EIG solver. Do we allow $b$ to be a matrix?

b can be a matrix, as in the section Extension in https://www.cis.upenn.edu/~jshi/papers/supplement_nips2006.pdf. We return one eigenvector for each column of b.
For weak majoranas, that means we can solve for both majoranas at once (the two columns of b are the two different right hand sides), while reusing the factorization of CC'.

I see, thanks!

Perhaps https://github.com/JuliaLinearAlgebra/ArnoldiMethod.jl is preferable over Arpack.

Perhaps https://github.com/JuliaLinearAlgebra/ArnoldiMethod.jl is preferable over Arpack.

Actually, our problem is hermitian, so the Lanczos algorithm is appropriate. Arpack.jl and KrylovKit.jl has this. I'd suggest trying the latter.

decided that we should return a vector from solve and that $b$ can be given as a single vector or as a Span struct.
todo

[ ] add a struct Span that can be put in $b$ in ConstrainedRQProblem, which can be dispatched on with RQ_EIG
[ ] replace _select_vecs(..., b::AbstractMatrix) with _select_vecs(..., b::Span)
[ ] replace eigen with eigsol (?) from KrylovKit for sparse solver
[ ] add tests with random matrices

A few questions/issues:

How should we handle sparseness? Should we depend on SparseArrays and convert where we need to keep sparsity? or should the user supply sparse matrices ($C$ and $b$) in the problem? Now I convert into sparse in RQ_SPARSE.
ldiv! is not supported for Sparse Cholesky factorizations, see e.g., https://github.com/JuliaSparse/SparseArrays.jl/issues/123. Should we change the factorization of $CC'$ or the solver to something else than ldiv! in the InverseMap? Now I changed the factorization to LU.
If solving just one eigenvalue didn't provide the correct solution, we need to request more solutions in Krylov eigsolve. But now we request too many compared to krylovdim.

User should supply sparse arrays. We may need SparseArrays dependency for dispatch and for selecting default solver.
I guess options are lu+ldiv! or chol+. Pick whatever works for now. One can benchmark the two choices later.
It might make sense to expand krylovdim if the user didn't set it manually and nev is larger.


feat: Add a Code Objects tree view

https://us06web.zoom.us/rec/share/BJuAEyykjDyVmInB3DlDDBjIyabRKnOwq_yihUFhKRUIuJbr-hasfi20od-i0rQz.6E7qsESL940QdPo7
See Slack for Passcode. Search: from:@Brian has:link passcode

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

v0.26.0
GitHub release

Your semantic-release bot :package::rocket:


🚀 Feature: Rename isTextualLiteral to isStringLiteralLike

Bug Report Checklist

[X] I have tried restarting my IDE and the issue persists.
[X] I have pulled the latest main branch of the repository.
[X] I have searched for related issues and found none that matched my issue.

Overview
IMO isStringLiteralLike more closely matches the naming scheme using by other functions/types than isTextualLiteral.
Additional Info
No response

Heh, I'm guessing you're referring to this type guard from tsutils?
export function isTextualLiteral(node: ts.Node): node is ts.StringLiteral | ts.NoSubstitutionTemplateLiteral {
    return node.kind === ts.SyntaxKind.StringLiteral ||
        node.kind === ts.SyntaxKind.NoSubstitutionTemplateLiteral;
}

If so: yes, agreed, that does match the naming scheme better and makes sense.

TypeScript actually defines isStringLiteralLike which is identical to isTextualLiteral. isTextualLiteral should just be removed.


Duplicates in Go to File list

VSCode Version: Code 1.12.2
OS Version: Windows_NT ia32 10.0.15063
Extensions:

Extension
Author
Version

EditorConfig
EditorConfig
0.9.3

tslint
eg2
0.15.0

vscode-stylefmt
mrmlnc
2.4.1

csharp
ms-vscode
1.9.0

PowerShell
ms-vscode
1.0.0

debugger-for-chrome
msjsdiag
3.1.1

material-icon-theme
PKief
2.0.6

stylelint
shinnn
0.24.0

Steps to Reproduce:

Open "Go to File..." menu.
Type pattern to find a file.
For some files the search list contains the file twice.
The duplicate will be opened in a separate tab. The tab tooltip shows that the path is different from original one in the case, e.g. the original path is "C:\Projects\Project\file.ts" but the duplicate has "C:\projects\project\file.ts".

Expected
The files should be presented once in the list and the paths should correspond to OS ones.
Is there a way to fix it? As that behavior often leads me to a difference in the content of same file if I use "Go to File..." to switch between tabs. And I cannot determine the path difference in recently opened list.
Notes

If I try to find files by pattern containing folder name, e.g. "proj file", then the recently opened list is empty and the file results one contains the single match (no duplicate).
I tried to clear the recent files, no success.
I tried to disable all extensions, no success.

https://github.com/Microsoft/vscode/issues/12448


baresip dial in LAN meet call: sipsess_connect: Function not implemented

I use baresip in LAN as following chart.The IP of SIP Server is <IP_ADDRESS> and the user of client1 is 1000  and user of client2 is 1001
SIP client1---------SIP Server------SIP client2
when I dial client2,I meet the flowing error

  d<EMAIL_ADDRESS>

call: connecting to 'd<EMAIL_ADDRESS>call: sipsess_connect: Function not implemented
menu: ua_connect failed: Function not implemented
I think dialing is the basic function.why it turn out to be not implemented?
can someone help?thanks!

It is caused by the wrong parameter of the input parameter(call->peer_uri) in send_invite function in call.c.I use the following command will listen the ring audio
./baresip -e "d<EMAIL_ADDRESS>but it will cause another call fail error:
All 1 useragent registered successfully! (2 ms)
call: SIP Progress: 100 trying -- your call is important to us (/)
call: SIP Progress: 180 Ringing (/)
call: SIP Progress: 180 Ringing (/)
call: SIP Progress: 180 Ringing (/)
<EMAIL_ADDRESS>session closed: 488 Not Acceptable here

Can you please include the full log and the config used?
From your log:
call: connecting to 'd<EMAIL_ADDRESS>
if the uri dialled is prefixed with a valid scheme, it must be "sip:".
In your case it is d  which is wrong.
You can use the long command /dial or short command d to dial out.
The 488 error is coming from the target Client, can you please include the
ngrep trace of the SIP traffic and the log from the target Client?
/Alfred

@alfredh , via #299, I am calling from the baresip shell. I am adding the baresip log for you information.
error_call_log.txt

Any updates on this? I am also stuck with the same error.

@anug7 your log file is full of debug lines that are not coming from stock baresip, such as:
Change Vin sensor clock = 20000000
Trigger stop
Trigger start

can you please compile stock baresip@HEAD from github and reproduce
the bug. it is helpful if you reports include:

Baresip version
Libre version
Name and version of Operating System
baresip config files
ngrep trace of SIP traffic.

/Alfred

please find attached info
Setup info:
Caller: baresip v0.5.5 (libre version: 0.5.4) running on arm platform with Linux based custom OS.
Callee: linphone running on Ubuntu 14.04
I have attached the ngrep log on the callee side (couldn't run ngrep on caller side) and the baresip config file on the caller side.
ngrep_calle_log.txt
caller_baresip_config.txt

Hi @anug7
from your SIP trace I can see that one record route has a SIPS uri:
Record-Route: <sips:<IP_ADDRESS>:5223;lr>.

the 200 OK is re-transmitted because it is dropped by baresip,
while the other agent is waiting for ACK. after a while the other agent
gives up and sends BYE.
SIPS scheme is not supported by baresip/libre.
I suggest you try again with another SIP proxy or try to disable sips.
this ticket now contains 3 different issues :) it is easier to debug if one issue
only contains one problem/bug.
I will close the issue now. You are welcome to create a new issue
with a clear problem description incl. logs.
/Alfred

This problem occur when you try to call to 'd<EMAIL_ADDRESS>instead<EMAIL_ADDRESS>Try to run baresip -> press 'd' -> input<EMAIL_ADDRESS>


Prompt Users to Complete an Account Key Quiz

Expected Behavior
Remind users to enter their account key to confirm they still have it
Current Behavior
We currently don't prompt user/communicate to them that they should have the account key in their possession (designs to be added)
What's important about this?
Users have been forgetting their account key after setup, this issue attempts to patch this problem while larger account key structural changes are coming.
What is "done"?
Figma designs implemented: https://www.figma.com/file/7UvvzrKLXpS7iaNcZb4NX1/Account-Key?node-id=223%3A1557
What's involved in doing this work?
[see figma]

Closing for backlog spring clean May 2022


activityCopyLimit should accept 0

It sure would be nice if the the limit parameter that can be passed when following a feed would accept 0 as a valid value :-).

Coverage remained the same at 95.789% when pulling 7fc1ab012ab31ffcb3db887aaac1e23ce709c5ae on benmgreene:patch-1 into 56865f1b18b162ccad6f787ab609e31f63fb8853 on GetStream:master.


[stable/concourse] Fix substitutions - {} with () in args

Fix wrong args being passed into web-deployment due to use of ${} instead of $() while using vault

/ok-to-test

/lgtm


A website loaded through dnslink with a /blog will get the ipfs/blog loaded instead of that page's blog

Just caught a funny bug by chance while merging my webpage and blog into a new hugo theme. As usual, I've updated the DNS record to point to the new hash, which loads perfectly, but when I go into QmHash/blog, I get the ipfs blog instead of mine.
Webpage - https://ipfs.io/ipfs/QmP1zwSvLUa6vVZjmCEH4fSEszuV8bKw71SY4RJyW3duAJ/
Domain - http://daviddias.me
Error- http://daviddias.me/blog
I believe this is because the nginx configs have a rule for a /blog/ to redirect to another hash, causing every page that uses DNSLink to not be able to use that link.

Already reported: https://github.com/ipfs/infrastructure/issues/224

ah, thanks @Kubuxu , closing this one then :)


[BUG] The Components or the Cards are floating outside of the screen

Has this bug been raised before?

[X] I have checked "open" AND "closed" issues and this is not a duplicate

Description
To ensure a more professional and seamless user experience while dragging cards on your website, you can implement boundaries to prevent the cards from being dragged outside the visible screen area.
Do you want to work on this issue?
Yes
If "yes" to above, please explain how you would technically implement this
Use the framer motion to fix this. Simply set the dragConstraints...

Please assign me this issue

not able to understand issue , can you show photo or video

When i made the Tic-Tac-Toe Card Floating its going outside my screen area . If i drag this two much it will be lost . So its better to set a boundary for the cards when they are in floating state

@TheSoumenMondal  i assign you this issue , post video or photo of site , when you make Pr

make sure you star ⭐ repo  and follow on github

Can you please add it under hacktoberfest ?


An error about stty

_, term_width = os.popen('stty size', 'r').read().split()
ValueError: not enough values to unpack (expected 2, got 0) Can you tell me how to fix the problem?

indicates that the os.popen('stty size', 'r').read().split() line is not returning the expected output. This is likely because the stty size command did not return the expected result.The stty size command is used to get the size of the terminal window in rows and columns. It should return something like 24 80 to represent a terminal with 24 rows and 80 columns. However, if your terminal or environment does not support the stty size command, it will return an empty string or something different, leading to the error you encountered.
To fix the problem, you can handle cases where the stty size command does not return the expected output. You can do this by using a try-except block to catch the error and provide a default value for term_width and term_height. Here's an example of how to do it:
**
import os
try:
term_height, term_width = os.popen('stty size', 'r').read().split()
except ValueError:
# Handle the case where 'stty size' did not return the expected result
term_height = 24  # Provide a default value
term_width = 80   # Provide a default value
**

Thank you very much,I have fixed  the issue

非常感谢，我已经解决了这个问题
你好怎么解决，方便说一下吗

非常感谢，我已经解决了这个问题

请问怎么解决的呀 我也是有这个问题


Azure Storage Explorer (ARM64), dropdown menus say empty, won't sign in.

Preflight Checklist

[X] I have installed the latest version of Storage Explorer.
[X] I have checked existing resources, including the troubleshooting guide and the release notes.
[X] I have searched for similar issues.

Storage Explorer Version
1.35.0
Regression From
No response
Architecture
arm64
Storage Explorer Build Number
No response
Platform
Windows
OS Version
Windows 11
Bug Description
I cannot sign in, dropdown menus say "Empty."
Steps to Reproduce

Launch the explorer
Try to sign in
Try to view a dropdown menu

Actual Experience
Hi,
I have the Azure Storage Explorer installed on my ARM64 Surface Laptop 7, and it was working fine. About a week ago, it stopped working. It won't let me sign in, and the dropdown menus all say "Empty."I have:

uninstalled and reinstalled.
uninstalled and deleted all temporary and AppData files, then reinstalled.
uninstalled and tried the Intel version.
tried a newly installed browser and set it as default.
tried the integrated sign on

Nothing makes any difference. I keep having the same issues. The dropdown menus say "Empty," and it will not sign in.
.

Expected Experience
No response
Additional Context
No response

Turns out my .NET SDK was not working correctly. I reinstalled that and now all is well.

Confirmed. Installing .NET 8.0 fixed the issue for us.


Receiving Messages in WhatsAppPort

Hi,
Please forgive me if this is an ignorant question, I've run the console application and I can send and receive messages fine. However, I would like to be able to use this application in its GUI form and I am relatively new to programming. I've logged into the GUI, added my user, and sent a message to my phone which worked fine, and when I respond the message receives 2 blue ticks which implies the current "number" has read the message, but I am not sure how to display that message in the textbox. If anyone could point me in the right direction I would be very grateful!

you need to handle this event
wa.OnGetMessage += wa_OnGetMessage;

Help me display the answer in a textbox please already tried everything and can not


Rename unconventional nodes

@MichaReiser could you also review this PR? It will be breaking change. This is totally about preference. I will discard it if it doesn't look good.


activeView validator

This would have saved me some time today. I got a cryptic error message and couldn't figure out where it came from. Turns out I passed in 'week;' instead of 'week'. If this validator was in place it would have given an easier to resolve error message.
computed: {
  activeView: function () {
    if (this.defaultView) {
      return this.defaultView;
    }
    if (this.aggregateView) {
      return 'month';
    }
    return 'week;'; // <-- This was the problem I had
  }
}

Hi @TheJaredWilcurt, thanks for this PR, but it is already done since version 3.8.2. ;)
https://antoniandre.github.io/vue-cal/#release-notes
If your vue-cal is up to date you should see this error message in the console:

let me know if you don't.

Yep running 3.2.6. Thanks


Travis: cache .tox and pip

This should speed up builds.

The empty commits could have been squashed.. ;)

I have no problem if you want to force push in the future to clean up your commits. Please just set the WIP moniker in title on the PR and I'll know not to merge.
The extra commits don't bother me at all though. So no worries on my end.
Thanks for all your contributions!


Unexpected error. Status Code: BadRequest

Super excited to find this add-on.  I can finally be able to use my onedrive space for good!
Appreciate any help!
I'm running on proxmox:
Home Assistant 2023.2.2
Supervisor 2023.01.1
Operating System 9.5
After installing, it detects the existing local backups and I get the following in the logs:
02/15/2023 19:30:53 [5] Info: Backup interval configured to every 72 hours
02/15/2023 19:30:53 [5] Warning: Token cache is empty
02/15/2023 19:30:55 [10] Info: To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code xxxxxxxxx to authenticate.
02/15/2023 19:32:16 [10] Info: Checking backups
02/15/2023 19:32:16 [10] Info: Retrieving existing local backups...
02/15/2023 19:32:16 [10] Info: Retrieving existing online backups...
02/15/2023 19:32:17 [9] Info: Last local backup Date: 02/15/2023 09:39:24
02/15/2023 19:32:17 [9] Info: Last online backup Date: None
02/15/2023 19:32:17 [9] Info: Found 4 backups to upload.
02/15/2023 19:32:17 [7] Info: Uploading Full Backup 2023-02-15 09:39:24 (02/15/2023 09:39:24)
02/15/2023 19:32:17 [7] Info: Fetching Local Backup (Slug:6b5574b5)
02/15/2023 19:33:30 [19] Info: Backup (6b5574b5) fetched successfully
02/15/2023 19:34:05 [13] Error: Unexpected error. Status Code: BadRequest
Microsoft.Graph.ServiceException: Code: BadRequest
Message: Multiple action overloads were found with the same binding parameter for 'microsoft.graph.createUploadSession'.
Inner error:
AdditionalData:
date: 2023-02-16T01:34:05
request-id: 12d2cdf3-b69a-43de-ba3d-6331fa65dab8
client-request-id: 12d2cdf3-b69a-43de-ba3d-6331fa65dab8
ClientRequestId: 12d2cdf3-b69a-43de-ba3d-6331fa65dab8
at Microsoft.Graph.HttpProvider.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)
at Microsoft.Graph.BaseRequest.SendRequestAsync(Object serializableObject, CancellationToken cancellationToken, HttpCompletionOption completionOption)
at Microsoft.Graph.BaseRequest.SendAsync[T](Object serializableObject, CancellationToken cancellationToken, HttpCompletionOption completionOption)
at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, String destinationFileName, Action`1 progressCallback, Boolean flatten, Boolean omitDescription) in /src/Graph/GraphHelper.cs:line 129
at hassio_onedrive_backup.Hass.BackupManager.PerformBackupsAsync() in /src/Hass/BackupManager.cs:line 114
02/15/2023 19:34:05 [13] Info: Backup Interval Completed.
at hassio_onedrive_backup.Program.Main(String[] args) in /src/Program.cs:line 89
02/15/2023 19:39:05 [25] Info: Checking backups
02/15/2023 19:39:05 [25] Info: Retrieving existing local backups...
02/15/2023 19:39:05 [25] Info: Retrieving existing online backups...
02/15/2023 19:39:06 [25] Info: Last local backup Date: 02/15/2023 09:39:24

Yes I agree this error is not very clear. Look at this issue: #41 .
This is likely unsupported (by OneDrive) path characters in your file name.

That is it, I deleted my existing backups before I installed the addon and it is working!  Thank you!


A11y_SQLdatabase projects extension_View And More Action_Update Project From Database_Name Role Value: Name is not descriptive for the radio buttons which are present in the "Action" section.

GitHub Tags:
#A11yWCAG2.1; #A11ySev3; #A11yTCS; #DesktopApp; #SH-SQL Azure Data Studio-MAC-March23; #SQL Azure Data Studio; #Name Role Value; #WCAG4.1.2; #MAC; #AINotInScope; #Voiceover;
Environment Details
Application Name: SQL Azure Data Studio
Version: 1.42.0-insider (Universal)
MAC Version: macOS Ventura 13.3
Repro Steps

Start Voiceover with using shortcut key Command+F5.
Launch Azure Data Studio
Tab till extension and search for “SQL Database Projects” and install it.
Tab till database project and press enter. “Database Project” panel will open.
Tab till “View and More Action” button and press enter.
Tab till “Update Project from Database” and press enter.
Tab till radio buttons which are present in the "Action" section.
Verify whether the name is descriptive for the radio buttons which are present in the "Action" section or not.

Actual Result:
Name is not descriptive for the radio buttons which are present in the "Action" section.
Note issue:
Publish Target: Voiceover is not announcing publish target radio group name.
Expected Result:
Name should be more descriptive for the radio buttons which are present in the "Action" section.
Voiceover must read the name of the radio button along with the section name as action.
User Impact:
Voiceover user will not be able to get the proper information about the radio buttons.
Attachment:

Note issue:

@SachinChavhan317 this has been fixed in the latest version of the sql database projects extension (0.23.0). Please download the latest insiders build and verify this is fixed. Thanks!

@SachinChavhan317 Please verify this issue is fixed.

Verified the bug on version: 1.44.0-insider (Universal).
The issue is fixed, hence closing the bug. #Closed;
Please refer below attachment for the reference.


configure gh actions for unit tests

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@2471c25). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #2   +/-   ##
=======================================
  Coverage        ?   81.52%
=======================================
  Files           ?       23
  Lines           ?     2197
  Branches        ?        0
=======================================
  Hits            ?     1791
  Misses          ?      406
  Partials        ?        0

Flag
Coverage Δ

unittests
81.52% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@2471c25). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #2   +/-   ##
=======================================
  Coverage        ?   76.53%
=======================================
  Files           ?       23
  Lines           ?     2216
  Branches        ?        0
=======================================
  Hits            ?     1696
  Misses          ?      520
  Partials        ?        0

Flag
Coverage Δ

unittests
76.53% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Ship an ubuntu repository for pachctl

Would be nice to be able to apt-get install pachctl

Working one-liner:
$ curl -o /tmp/pachctl.deb -fhttps://github.com/pachyderm/pachyderm/releases/download/v1.0.1-RC1/pachctl_1.0.1-RC1_amd64.deb && dpkg -i /tmp/pachctl.deb

Great. What I'll do as part of the automation scripts is put that deb file on the corp site so we can make the one liner a bit nicer:
$ curl -o /tmp/pachctl.deb -L https://pachyderm.io/pachctl.deb && dpkg -i /tmp/pachctl.deb

We're going to run w the one-liner solution for now. Renaming this ticket to reflect this.
I'll open a new ticket for upgrading both brew/deb installations to use the official repositories.