Unable to clean schema that contains function calling another function and both have SCHEMABINDING

What version of Flyway are you using?
Flyway 4.0.3 by Boxfuse
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)
flyway-commandline-4.0.3-windows-x64
What database are you using (type & version)?
Microsoft SQL Server Standard (64-bit) 2012 (11.0.3000.0)
What operating system are you using?
Windows 10 Pro Version 1607 OS Build 14393.447
What did you do?
(Please include the content causing the issue, any relevant configuration settings, and the command you ran)
This appears to be a similar to bug #1193 that was closed.  I have the a very similar config where I have two functions using schemabinding (not using computed columns).

Download Flyway
Create a flywaytest database
Configure flyway to use that db and look in c:\sql for my scripts
Create the migration script V01__fnA.sql

CREATE FUNCTION dbo.fnA()
RETURNS VARCHAR(50)
WITH SCHEMABINDING
AS
BEGIN
   RETURN 'function a';
END;

Create the migration script V02__fnB.sql

CREATE FUNCTION dbo.fnB()
RETURNS VARCHAR(50)
WITH SCHEMABINDING
AS
BEGIN
   RETURN dbo.fnA();
END;

Execute Flyway to migrate our database.

flyway migrate

If all went well, you should see the following output

Flyway 4.0.3 by Boxfuse

Database: jdbc:jtds:sqlserver://pc/testdb;instance=flywaytest (Microsoft SQL Server 11.0)
Successfully validated 2 migrations (execution time 00:00.011s)
SQLServer does not support setting the schema for the current session. Default schema NOT changed to dbo
Current version of schema [dbo]: 00000001.1
Schema [dbo] is up to date. No migration necessary.

Execute Flyway to prints the details and status information about all the migration

flyway info

Just to confirm the migration is a success.

Flyway 4.0.3 by Boxfuse

Database: jdbc:jtds:sqlserver://pc/testdb;instance=flywaytest (Microsoft SQL Server 11.0)
SQLServer does not support setting the schema for the current session. Default schema NOT changed to dbo

+------------+-------------+---------------------+---------+
| Version    | Description | Installed on        | State   |
+------------+-------------+---------------------+---------+
| 00000001.0 | fnA          | 2016-11-11 12:18:18 | Success |
| 00000001.1 | fnB          | 2016-11-11 12:18:18 | Success |
+------------+-------------+---------------------+---------+

Finally, try to drop all objects in the configured schema by execute Flyway clean adding -X to the argument list to also print the debug output.

flyway clean -X

You should see the output below with error.

Flyway 4.0.3 by Boxfuse

DEBUG: Java 1.8.0_101 (Oracle Corporation)
DEBUG: Windows 10 10.0 x86

DEBUG: Loading config file: C:\Program Files (x86)\flyway\conf\flyway.conf
DEBUG: Unable to load config file: C:\Users\jason unrein\flyway.conf
DEBUG: Unable to load config file: C:\Users\jason unrein\flyway.conf
DEBUG: Loading config file: c:\sql\flyway.conf
DEBUG: Using configuration:
DEBUG: flyway.configFile -> c:\sql\flyway.conf
DEBUG: flyway.jarDirs -> C:\Program Files (x86)\flyway\jars
DEBUG: flyway.password -> *********
DEBUG: flyway.url -> jdbc:jtds:sqlserver://pc/testdb;instance=flywaytest
DEBUG: flyway.user -> sa
DEBUG: flyway.locations -> filesystem:c:\sql
DEBUG: Adding location to classpath: C:\Program Files (x86)\flyway\drivers\derby-<IP_ADDRESS>.jar
DEBUG: Adding location to classpath: C:\Program Files (x86)\flyway\drivers\derbyclient-<IP_ADDRESS>.jar
DEBUG: Adding location to classpath: C:\Program Files (x86)\flyway\drivers\h2-1.4.191.jar
DEBUG: Adding location to classpath: C:\Program Files (x86)\flyway\drivers\hsqldb-2.3.3.jar
DEBUG: Adding location to classpath: C:\Program Files (x86)\flyway\drivers\jtds-1.3.1.jar
DEBUG: Adding location to classpath: C:\Program Files (x86)\flyway\drivers\mariadb-java-client-1.4.5.jar
DEBUG: Adding location to classpath: C:\Program Files (x86)\flyway\drivers\postgresql-9.4.1208.jre6.jar
DEBUG: Adding location to classpath: C:\Program Files (x86)\flyway\drivers\sqlite-jdbc-3.7.15-M1.jar
Database: jdbc:jtds:sqlserver://pc/testdb;instance=flywaytest (Microsoft SQL Server 11.0)
DEBUG: DDL Transactions Supported: true
DEBUG: Schema: dbo
DEBUG: Spring Jdbc available: false
DEBUG: Scanning for SQL callbacks ...
DEBUG: Scanning for filesystem resources at 'c:/sql' (Prefix: '', Suffix: '.sql')
DEBUG: Scanning for resources in path: c:\sql (c:/sql)
DEBUG: Found filesystem resource: c:\sql\V01__fnA.sql
DEBUG: Found filesystem resource: c:\sql\V02__fnB.sql
DEBUG: Cleaning schema [dbo] ...
DEBUG: Rolling back transaction...
DEBUG: Transaction rolled back
SQLServer does not support setting the schema for the current session. Default schema NOT changed to dbo
ERROR: Unexpected error
org.flywaydb.core.api.FlywayException: Unable to clean schema [dbo]
        at org.flywaydb.core.internal.dbsupport.Schema.clean(Schema.java:150)
        at org.flywaydb.core.internal.command.DbClean$4.doInTransaction(DbClean.java:182)
        at org.flywaydb.core.internal.command.DbClean$4.doInTransaction(DbClean.java:180)
        at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72)
        at org.flywaydb.core.internal.command.DbClean.cleanSchema(DbClean.java:180)
        at org.flywaydb.core.internal.command.DbClean.clean(DbClean.java:130)
        at org.flywaydb.core.Flyway$3.execute(Flyway.java:1025)
        at org.flywaydb.core.Flyway$3.execute(Flyway.java:1021)
        at org.flywaydb.core.Flyway.execute(Flyway.java:1373)
        at org.flywaydb.core.Flyway.clean(Flyway.java:1021)
        at org.flywaydb.commandline.Main.executeOperation(Main.java:135)
        at org.flywaydb.commandline.Main.main(Main.java:102)
Caused by: java.sql.SQLException: Cannot DROP FUNCTION 'dbo.fnA' because it is being referenced by object 'fnB'.
        at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:372)
        at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2988)
        at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2421)
        at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:671)
        at net.sourceforge.jtds.jdbc.JtdsStatement.processResults(JtdsStatement.java:613)
        at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQL(JtdsStatement.java:572)
        at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.execute(JtdsPreparedStatement.java:784)
        at org.flywaydb.core.internal.dbsupport.JdbcTemplate.execute(JdbcTemplate.java:219)
        at org.flywaydb.core.internal.dbsupport.sqlserver.SQLServerSchema.doClean(SQLServerSchema.java:96)
        at org.flywaydb.core.internal.dbsupport.Schema.clean(Schema.java:148)
        ... 11 more

What did you expect to see?
If you remove the WITH SCHEMABINDING from the scripts, you can successfully remove them

Remove the schemabinding option
From a clean DB run the migrate
Run the clean (without -x)

Flyway 4.0.3 by Boxfuse

Database: jdbc:jtds:sqlserver://pc/testdb;instance=flywaytest (Microsoft SQL Server 11.0)
Successfully cleaned schema [dbo] (execution time 00:00.016s)
SQLServer does not support setting the schema for the current session. Default schema NOT changed to dbo

What did you see instead?

see above

Notes
I'm curious if you need to remove items in reverse creation order?  IE, It looks like you're doing this.
SELECT * FROM INFORMATION_SCHEMA.ROUTINES
WHERE routine_schema='dbo' AND routine_type='FUNCTION'

but maybe modify it to this
SELECT * FROM INFORMATION_SCHEMA.ROUTINES
WHERE routine_schema='dbo' AND routine_type='FUNCTION'
order by created desc

I tested my suggested change and it appears to be working fine for me.   I have other concerns with using flyway in our situation so I'll hold off creating a pull request.

Thank you very much for the awesome bug report and investigation! 🥇


Soft new lines (br tags) are not being being properly processed

When converting HTML to Draft content fragments, br tags are not properly converted back to Draft soft newlines '\n' characters (as can be seen in Draft's RichTextUtil insertSoftNewline method).
You can actually witness this issue in your React RTE demo by adding some content with soft newlines, then copying the HTML code and pasting it back in the Editor Source field.
I haven't quite grasped the rationale in your code to use '\r' for br tags but anyway these '\r' characters are getting stripped in your collapseWhiteSpace method.
Right now my quick and dirty fix is to use '\n' for br tags and removing '\n' from your collapseWhiteSpace regex but  have a feeling that's not the way to go. If you don't mind sharing a bit more about the whole '\r' rationale I'd be more than happy to do a proper pull request with the correct fix.

Hi @jdiprizio. Thanks for finding this bug. You are most certainly correct that this behavior needs a fix. Will figure this out and update here.


fix: ignore ts errors

This PR:

Adds explicit ts ignore to fix tsc issues in downstream consumers when generating typedoc.

But are you generating TS docs on the tests too?
Also, what was the error?


Add Support for links

this is important because we need to use something like a hard link in sharing through crystaldrive

Links are supported now


load_from_checkpoint loads hparams as dict instead of class HParams

import lightning_trainable as lt

class MyLTModel(lt.Trainable)
    hparams: lt.HParams

    def __init__(hparams, **kwargs):
        super().__init__(hparams, **kwargs)
        print(type(hparams))

model = MyLTModel.load_from_checkpoint("path/to/checkpoint.ckpt")

Expected output: <class lt.Hparams>
Actual output: dict

This is not a bug, this is just how lightning handles hparams saved by self.save_hyperparameters().

What would be the suggested way to handle the hparams in this case? Overwrite the load_from_checkpoint function?

I am going to answer this question with another question: Why do you need hparams to be an instance of the HParams class? When you use HParams, you generally want to answer 3[^1] questions:

Are all required parameters specified?
Are all parameters of a valid type?
Are all parameters within valid value ranges?

The purpose of the HParams class is to check these at instantiation time, i.e. before you train your module. This avoids problems like you finding out you forgot to specify some parameter after your model only trained for a day instead of 2 weeks on a cluster.
After instantiation, HParams job is done, and it can now serve as simply a container with no additional functionality. When you load from a checkpoint, you are already guaranteed that the hparams within it were valid when you initially trained, so we do not need to answer the above questions again.
[^1]: Technically, there is also a fourth one, which is "Are there no extra parameters specified?" This avoids you leaving unused parameters in your code when refactoring, or accidentally invoking the incorrect class with all defaults.

Another solution might be to do the following:
class MyLTModel(lt.Trainable)
    hparams: lt.HParams

    def __init__(hparams, **kwargs):
        if not isinstance(hparams, lt.HParams):
             hparams = lt.HParams(**hparams)
        super().__init__(hparams, **kwargs)
        print(type(hparams))

Well it breaks at least the use of AttributeDict features (not to big of a problem, but inconvinient) and maybe other custom features included in the hparams class (not sure if this is intended anyway though).

Turns out if you call self.hparams instead of hparams in your __init__, everything is fine :man_facepalming:


Add other Schema Registry serializers

Current version only supports Avro, Strings, and Bytes.
Should Protobuf and JSONSchema now be supported, as they are by the Confluent Schema Registry.

We've released v1.2.0, which allows you to configure the list of serdes and converters with brute.force.serdes and brute.force.converters respectively.

Thanks for the update!


Jackson 2.8

Refs #1627.
CC: @cowtowncoder

Coverage increased (+0.2%) to 82.395% when pulling 7dd667e37739da45a3bc4a4bf511a95ef2cd13e0 on jackson-2.8 into 99e9d63cb94344344c295c13119e0f7cce96b7cc on master.

Jackson 2.8.2 is now in maven central if we want to update to that

Also, for versions that want to stick with 2.7, if any, there's 2.7.7 which has many/most of the same fixes. I'll try to keep 2.7 branch alive at least until end of year as it could be long-term stable branch to try to get most frameworks upgrade to (have had major hassles with Spark myself :) ).
I'd also love to help with 2.8 issues if any remain. Did 2.8.2 release to flush all pending fixes.

Please correct me if I'm wrong, but I took a quick look at the release notes for core and databind and didn't see how the situation pointed out by an earlier comment changes. I realize the conversation fell somewhat to the wayside (my fault :blush:)

@nickbabcock you are correct, not much has happened for those; it would be best to file separate issues since there's need for testing and some coordination on most optimal way to improve. By flushing fixes I meant ones that have been reported via issue tracker.

Ah, I'm not sure how you want it, did you want each of the points described earlier in a separate issue in the databind repo or a single issue?

@nickbabcock Hmmh. How about I'll create one for improving URI / URL handling since I should be able to do it relatively easily. And if you could add another one for other aspects, wherever there is a clear path for improvement for specific Java types, and failures?

@nickbabcock Looks like InvalidFormatException was properly produced for java.net.URI, but NOT for java.net.URL: I fixed this for 2.8(.3) as the first step.
As soon as I get to know of other types for which same occurs they can be fixed quite easily.

Ok, so now there is the wider-ranging issue for jackson-databind, which I think is good and should help a lot for medium-to-long term.
But since that work has to go in 2.9 (new exception types added), I would also be interested in incremental improvements in the meantime. If there are commonly encountered failures, or even just ones triggered by tests, that could/should be improved within constraints of existing types, would be great to resolve those too.

@nickbabcock If feasible, I would look for both 2.7 (and before) and 2.8 messages, with a note mentioning which is which. I assume DW itself has no hard requirement to use 2.8.
2.9 will take its time; current release cadence has been about 6 months between releases, which would suggest next version available at around Jan 2017.

Closing in favor of #1749


The flutter engine build host_debug failed on AppleSilicon with or without --no-prebuilt-dart-sdk

On flutter/engine repo's latest master branch, commit: ff468445bc493d1d5e054f12f9359a8904d3039c
gn command:
tools/gn --no-lto --no-goma --no-prebuilt-dart-sdk
ninja -C ../out/host_debug

or  without --no-prebuilt-dart-sdk, there's a same error. (seems like it doesn't download the prebuilt Dart from server on AppleSilicon's host_arch == arm64)
tools/gn --no-lto --no-goma
ninja -C ../out/host_debug

logs:
$ ninja -C ../out/host_debug
ninja: Entering directory `../out/host_debug'
[0/1] Regenerating ninja files
[5047/6525] CXX clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.timeline.o
FAILED: clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.timeline.o
../../buildtools/mac-x64/clang/bin/clang++ -MD -MF clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.timeline.o.d -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DTARGET_ARCH_X64 -DDART_TARGET_OS_MACOS -I../../third_party/dart/runtime -I../.. -Iclang_arm64/gen -I../../third_party/libcxx/include -I../../third_party/libcxxabi/include -I../../third_party/dart/runtime/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -mmacosx-version-min=10.11.0 -fno-strict-aliasing -fstack-protector-all -arch arm64 -fno-aligned-allocation -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-deprecated-copy -Wno-psabi -Wno-non-c-typedef-for-linkage -Wno-range-loop-construct -Wunguarded-availability -Wno-deprecated-declarations -fvisibility=hidden -stdlib=libc++ -Wstring-conversion -Wnewline-eof -O2 -fno-ident -fdata-sections -ffunction-sections -g2 -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-private-field -Wnon-virtual-dtor -Wvla -Woverloaded-virtual -Wno-comments -g3 -ggdb3 -fno-rtti -fno-exceptions -Wimplicit-fallthrough -O3 -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions  -c ../../third_party/dart/runtime/lib/timeline.cc -o clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.timeline.o
In file included from ../../third_party/dart/runtime/lib/timeline.cc:5:
In file included from ../../third_party/dart/runtime/vm/bootstrap_natives.h:8:
In file included from ../../third_party/dart/runtime/vm/native_entry.h:14:
In file included from ../../third_party/dart/runtime/vm/native_arguments.h:11:
../../third_party/dart/runtime/vm/simulator.h:12:2: error: Simulator not implemented.
#error Simulator not implemented.
 ^
1 error generated.
[5048/6525] CXX clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.developer.o
FAILED: clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.developer.o
../../buildtools/mac-x64/clang/bin/clang++ -MD -MF clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.developer.o.d -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DTARGET_ARCH_X64 -DDART_TARGET_OS_MACOS -I../../third_party/dart/runtime -I../.. -Iclang_arm64/gen -I../../third_party/libcxx/include -I../../third_party/libcxxabi/include -I../../third_party/dart/runtime/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -mmacosx-version-min=10.11.0 -fno-strict-aliasing -fstack-protector-all -arch arm64 -fno-aligned-allocation -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-deprecated-copy -Wno-psabi -Wno-non-c-typedef-for-linkage -Wno-range-loop-construct -Wunguarded-availability -Wno-deprecated-declarations -fvisibility=hidden -stdlib=libc++ -Wstring-conversion -Wnewline-eof -O2 -fno-ident -fdata-sections -ffunction-sections -g2 -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-private-field -Wnon-virtual-dtor -Wvla -Woverloaded-virtual -Wno-comments -g3 -ggdb3 -fno-rtti -fno-exceptions -Wimplicit-fallthrough -O3 -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions  -c ../../third_party/dart/runtime/lib/developer.cc -o clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.developer.o
In file included from ../../third_party/dart/runtime/lib/developer.cc:5:
In file included from ../../third_party/dart/runtime/vm/bootstrap_natives.h:8:
In file included from ../../third_party/dart/runtime/vm/native_entry.h:14:
In file included from ../../third_party/dart/runtime/vm/native_arguments.h:11:
../../third_party/dart/runtime/vm/simulator.h:12:2: error: Simulator not implemented.
#error Simulator not implemented.
 ^
1 error generated.
[5049/6525] CXX clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.profiler.o
FAILED: clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.profiler.o
../../buildtools/mac-x64/clang/bin/clang++ -MD -MF clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.profiler.o.d -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DTARGET_ARCH_X64 -DDART_TARGET_OS_MACOS -I../../third_party/dart/runtime -I../.. -Iclang_arm64/gen -I../../third_party/libcxx/include -I../../third_party/libcxxabi/include -I../../third_party/dart/runtime/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -mmacosx-version-min=10.11.0 -fno-strict-aliasing -fstack-protector-all -arch arm64 -fno-aligned-allocation -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-deprecated-copy -Wno-psabi -Wno-non-c-typedef-for-linkage -Wno-range-loop-construct -Wunguarded-availability -Wno-deprecated-declarations -fvisibility=hidden -stdlib=libc++ -Wstring-conversion -Wnewline-eof -O2 -fno-ident -fdata-sections -ffunction-sections -g2 -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-private-field -Wnon-virtual-dtor -Wvla -Woverloaded-virtual -Wno-comments -g3 -ggdb3 -fno-rtti -fno-exceptions -Wimplicit-fallthrough -O3 -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions  -c ../../third_party/dart/runtime/lib/profiler.cc -o clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.profiler.o
In file included from ../../third_party/dart/runtime/lib/profiler.cc:5:
In file included from ../../third_party/dart/runtime/vm/bootstrap_natives.h:8:
In file included from ../../third_party/dart/runtime/vm/native_entry.h:14:
In file included from ../../third_party/dart/runtime/vm/native_arguments.h:11:
../../third_party/dart/runtime/vm/simulator.h:12:2: error: Simulator not implemented.
#error Simulator not implemented.
 ^
1 error generated.
[5050/6525] CXX clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.isolate.o
FAILED: clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.isolate.o
../../buildtools/mac-x64/clang/bin/clang++ -MD -MF clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.isolate.o.d -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DTARGET_ARCH_X64 -DDART_TARGET_OS_MACOS -I../../third_party/dart/runtime -I../.. -Iclang_arm64/gen -I../../third_party/libcxx/include -I../../third_party/libcxxabi/include -I../../third_party/dart/runtime/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -mmacosx-version-min=10.11.0 -fno-strict-aliasing -fstack-protector-all -arch arm64 -fno-aligned-allocation -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-deprecated-copy -Wno-psabi -Wno-non-c-typedef-for-linkage -Wno-range-loop-construct -Wunguarded-availability -Wno-deprecated-declarations -fvisibility=hidden -stdlib=libc++ -Wstring-conversion -Wnewline-eof -O2 -fno-ident -fdata-sections -ffunction-sections -g2 -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-private-field -Wnon-virtual-dtor -Wvla -Woverloaded-virtual -Wno-comments -g3 -ggdb3 -fno-rtti -fno-exceptions -Wimplicit-fallthrough -O3 -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions  -c ../../third_party/dart/runtime/lib/isolate.cc -o clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.isolate.o
In file included from ../../third_party/dart/runtime/lib/isolate.cc:11:
In file included from ../../third_party/dart/runtime/vm/bootstrap_natives.h:8:
In file included from ../../third_party/dart/runtime/vm/native_entry.h:14:
In file included from ../../third_party/dart/runtime/vm/native_arguments.h:11:
../../third_party/dart/runtime/vm/simulator.h:12:2: error: Simulator not implemented.
#error Simulator not implemented.
 ^
1 error generated.
[5051/6525] CXX clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.stopwatch.o
FAILED: clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.stopwatch.o
../../buildtools/mac-x64/clang/bin/clang++ -MD -MF clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.stopwatch.o.d -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DTARGET_ARCH_X64 -DDART_TARGET_OS_MACOS -I../../third_party/dart/runtime -I../.. -Iclang_arm64/gen -I../../third_party/libcxx/include -I../../third_party/libcxxabi/include -I../../third_party/dart/runtime/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -mmacosx-version-min=10.11.0 -fno-strict-aliasing -fstack-protector-all -arch arm64 -fno-aligned-allocation -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-deprecated-copy -Wno-psabi -Wno-non-c-typedef-for-linkage -Wno-range-loop-construct -Wunguarded-availability -Wno-deprecated-declarations -fvisibility=hidden -stdlib=libc++ -Wstring-conversion -Wnewline-eof -O2 -fno-ident -fdata-sections -ffunction-sections -g2 -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-private-field -Wnon-virtual-dtor -Wvla -Woverloaded-virtual -Wno-comments -g3 -ggdb3 -fno-rtti -fno-exceptions -Wimplicit-fallthrough -O3 -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions  -c ../../third_party/dart/runtime/lib/stopwatch.cc -o clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.stopwatch.o
In file included from ../../third_party/dart/runtime/lib/stopwatch.cc:5:
In file included from ../../third_party/dart/runtime/vm/bootstrap_natives.h:8:
In file included from ../../third_party/dart/runtime/vm/native_entry.h:14:
In file included from ../../third_party/dart/runtime/vm/native_arguments.h:11:
../../third_party/dart/runtime/vm/simulator.h:12:2: error: Simulator not implemented.
#error Simulator not implemented.
 ^
1 error generated.
[5052/6525] CXX clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.weak_property.o
FAILED: clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.weak_property.o
../../buildtools/mac-x64/clang/bin/clang++ -MD -MF clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.weak_property.o.d -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DTARGET_ARCH_X64 -DDART_TARGET_OS_MACOS -I../../third_party/dart/runtime -I../.. -Iclang_arm64/gen -I../../third_party/libcxx/include -I../../third_party/libcxxabi/include -I../../third_party/dart/runtime/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -mmacosx-version-min=10.11.0 -fno-strict-aliasing -fstack-protector-all -arch arm64 -fno-aligned-allocation -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-deprecated-copy -Wno-psabi -Wno-non-c-typedef-for-linkage -Wno-range-loop-construct -Wunguarded-availability -Wno-deprecated-declarations -fvisibility=hidden -stdlib=libc++ -Wstring-conversion -Wnewline-eof -O2 -fno-ident -fdata-sections -ffunction-sections -g2 -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-private-field -Wnon-virtual-dtor -Wvla -Woverloaded-virtual -Wno-comments -g3 -ggdb3 -fno-rtti -fno-exceptions -Wimplicit-fallthrough -O3 -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions  -c ../../third_party/dart/runtime/lib/weak_property.cc -o clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.weak_property.o
In file included from ../../third_party/dart/runtime/lib/weak_property.cc:5:
In file included from ../../third_party/dart/runtime/vm/bootstrap_natives.h:8:
In file included from ../../third_party/dart/runtime/vm/native_entry.h:14:
In file included from ../../third_party/dart/runtime/vm/native_arguments.h:11:
../../third_party/dart/runtime/vm/simulator.h:12:2: error: Simulator not implemented.
#error Simulator not implemented.
 ^
1 error generated.
[5053/6525] CXX clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.uri.o
FAILED: clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.uri.o
../../buildtools/mac-x64/clang/bin/clang++ -MD -MF clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.uri.o.d -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DTARGET_ARCH_X64 -DDART_TARGET_OS_MACOS -I../../third_party/dart/runtime -I../.. -Iclang_arm64/gen -I../../third_party/libcxx/include -I../../third_party/libcxxabi/include -I../../third_party/dart/runtime/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -mmacosx-version-min=10.11.0 -fno-strict-aliasing -fstack-protector-all -arch arm64 -fno-aligned-allocation -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-deprecated-copy -Wno-psabi -Wno-non-c-typedef-for-linkage -Wno-range-loop-construct -Wunguarded-availability -Wno-deprecated-declarations -fvisibility=hidden -stdlib=libc++ -Wstring-conversion -Wnewline-eof -O2 -fno-ident -fdata-sections -ffunction-sections -g2 -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-private-field -Wnon-virtual-dtor -Wvla -Woverloaded-virtual -Wno-comments -g3 -ggdb3 -fno-rtti -fno-exceptions -Wimplicit-fallthrough -O3 -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions  -c ../../third_party/dart/runtime/lib/uri.cc -o clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.uri.o
In file included from ../../third_party/dart/runtime/lib/uri.cc:5:
In file included from ../../third_party/dart/runtime/vm/bootstrap_natives.h:8:
In file included from ../../third_party/dart/runtime/vm/native_entry.h:14:
In file included from ../../third_party/dart/runtime/vm/native_arguments.h:11:
../../third_party/dart/runtime/vm/simulator.h:12:2: error: Simulator not implemented.
#error Simulator not implemented.
 ^
1 error generated.
[5054/6525] CXX clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.stacktrace.o
FAILED: clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.stacktrace.o
../../buildtools/mac-x64/clang/bin/clang++ -MD -MF clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.stacktrace.o.d -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DTARGET_ARCH_X64 -DDART_TARGET_OS_MACOS -I../../third_party/dart/runtime -I../.. -Iclang_arm64/gen -I../../third_party/libcxx/include -I../../third_party/libcxxabi/include -I../../third_party/dart/runtime/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -mmacosx-version-min=10.11.0 -fno-strict-aliasing -fstack-protector-all -arch arm64 -fno-aligned-allocation -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-deprecated-copy -Wno-psabi -Wno-non-c-typedef-for-linkage -Wno-range-loop-construct -Wunguarded-availability -Wno-deprecated-declarations -fvisibility=hidden -stdlib=libc++ -Wstring-conversion -Wnewline-eof -O2 -fno-ident -fdata-sections -ffunction-sections -g2 -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-private-field -Wnon-virtual-dtor -Wvla -Woverloaded-virtual -Wno-comments -g3 -ggdb3 -fno-rtti -fno-exceptions -Wimplicit-fallthrough -O3 -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions  -c ../../third_party/dart/runtime/lib/stacktrace.cc -o clang_arm64/obj/third_party/dart/runtime/lib/libdart_lib_jit.stacktrace.o
In file included from ../../third_party/dart/runtime/lib/stacktrace.cc:6:
In file included from ../../third_party/dart/runtime/vm/bootstrap_natives.h:8:
In file included from ../../third_party/dart/runtime/vm/native_entry.h:14:
In file included from ../../third_party/dart/runtime/vm/native_arguments.h:11:
../../third_party/dart/runtime/vm/simulator.h:12:2: error: Simulator not implemented.
#error Simulator not implemented.
 ^
1 error generated.
[5056/6525] ACTION //third_party/dart/runtime/observatory:build_observatory(//build/toolchain/mac:clang_arm64)
ninja: build stopped: subcommand failed.

https://github.com/flutter/flutter/issues/96745

Excuse me, has the problem been solved? I also have this problem now

花了点时间研究出来一个M1 能编译flutter engine的临时方法
https://github.com/flutter/flutter/issues/96745
@xuyuchenglan


No unary plus?

Why is there only one unary operator (!)? Unary plus is a common way to convert to number (like +[] === 0).

Currently, Jexl has a limitation in that you can't use a symbol as both a binary and a unary operator. This was a design decision I made early on to simplify and separate the Lexer from the Parser, but I keep revisiting that decision -- mostly because the - sign should also be a unary operator, and requires intelligent logic in the lexer to determine when it's being used to negate a number versus as a binary subtraction operator.
With that said: The + symbol's function as a simple way to convert to numbers is one I'd be hesitant to add to Jexl. While Jexl takes many of its expression language features from Javascript, I try to be very discerning taking only the pieces that offer good intuitive design no matter what language you're ultimately using. Jexl has been ported to various other scripting languages where + does not have that functionality, so for that use case a userland transform like |toNum would be more portable and readable.


Payment Request name/url change

Also clarifies what the API actually does a little bit more.

Thanks!


Conflict with with gatsby-plugin-transition-link

Hi Peter,
Great work with this plugin, it covers an important part of the integration between WordPress and Gatsby that was missing.
I just want to share a bug that I had a hard time finding. I started using gatsby-theme-wordpress-gutenberg and everything went well in develop, but when I tried to create the build I found this error

Finally it turned out to be a conflict with gatsby-plugin-transition-link
By the way it would be nice to have some customization options in the plugin, like the paths for custom blocks.
Thanks

Hi thanks for reporting this, I am planning to work on some tests which cover this in the future.
The custom paths are intentionally not there, because of the component shadowing.


Does openlayers support  WCS WMS WFS?

Hello everyone does openlayers support  WCS WMS WFS?

What other librairies would I need to display and update the parameters of a WCS layer Mr. @ahocevar ?


Manager does not check for file presence in the services when returning archive results

Should it?

I'm going to mark this as won'tfix. This would create too much overhead for list operations, and pretty much defeats the purpose of having a manager in the first place.


Sharing configuration between applications and profiles

Hi,
I would like each microservice to read properties from 4 property files, meaning for a service called "myService" with profile "dev", I want to be able to read from the following Git folders:

config/myService/application-dev.yml (specific config for this service and this profile)
config/myService/application.yml (specific config for this service no matter which profile)
config/application-dev.yml (specific config for dev profile no matter which service)
config/application.yml (shared config no matter which service, no matter which profile)

I tried several patterns in search-paths but when I start myService, it reads everything except the last one: application.yml from the root folder (config/application.yml)
Here is my config:
  application:
    name: config-server
  cloud:
    config:
      server:
        git:
          uri: ssh://git@xxx:7999/qi/athena.git
          clone-on-start: true
          search-paths: '*,{application},config/{application}, config/, config/*'
          #search-paths: '{application}'
          #search-paths: 'config/{application}'

It seems the Sharing Configuration With All Applications does not work as expected:
https://cloud.spring.io/spring-cloud-config/multi/multi__spring_cloud_config_server.html#_sharing_configuration_with_all_applications
Am I missing something?
For info I am using Finchley.SR2 version.
Thank you.

Can you try with Finchley.SR3?  Is you can still reproduce it can you provide a sample that demonstrates the problem?

I tried with Finchley.SR3 but still have the same issue.
Config service - application.yml:
spring:
  application:
    name: config-server
  cloud:
    config:
      server:
        git:
          uri: ssh://git@xxx:7999/qi/config.git
          clone-on-start: true
          search-paths: '*,{application},config/{application}, config/, config/*'

myService - bootstrap.yml:
spring:
  application:
    name: myService
  cloud:
      config:
        uri: http://localhost:8888

Remote Git repository:
config/application-dev.yml (specific config for dev profile no matter which service)
config/application.yml (shared config no matter which service, no matter which profile)
When I start myService, I am getting:
14:02:10.589 [main] INFO  o.s.c.c.c.ConfigServicePropertySourceLocator - Fetching config from server at : http://localhost:8888
14:02:14.150 [main] INFO  o.s.c.c.c.ConfigServicePropertySourceLocator - Located environment: name=myService, profiles=[dev], label=null, version=5cb49c7b47d918db4e1e37d627cfe1c7673d2199, state=null
14:02:14.151 [main] INFO  o.s.c.b.c.PropertySourceBootstrapConfiguration - Located property source: CompositePropertySource {name='configService', propertySources=[MapPropertySource {name='configClient'}, MapPropertySource {name='ssh://git@xxx:7999/qi/config.git/config/application-dev.yml'}]}

When I issue a Rest request to the environment endpoint controller, I get:
GET localhost:8888/myService/dev/

{
    "name": "myService",
    "profiles": [
        "dev"
    ],
    "label": null,
    "version": "5cb49c7b47d918db4e1e37d627cfe1c7673d2199",
    "state": null,
    "propertySources": [
        {
            "name": "ssh://git@xxx:7999/qi/config.git/config/application-dev.yml",
            "source": {
                "spring.profiles": "dev",
                "spring.profiles.include[0]": "enable_mongo_ssl",
                "spring.profiles.include[1]": "greenzone",
                "environment": "dev",
                "mongo.environment": "dev",
                "eems.environment": "dev",
                "server.ssl.enabled": false
            }
        }
    ]
}

Only application-dev.yml is read. I can't make application.yml to be read/retrieved.
Thank you.

application.yml  and application-dev.yml are in the same repository and in the same directory called "config".

I would like to debug this. What class/method should I look at?
I checked AbstractScmEnvironmentRepository class, findOne method:
Locations locations = getLocations(application, profile, label);

I can see that the locations are correct: config-repo-123 and config-repo-123/config
But then I am loosing the thread when debugging:
Environment result = delegate.findOne(application, profile, "");

The problem was the content of the files that were not read. If by mistake there is a property:
spring.profiles: some_profile

then application.yml file is not read.
Same if you have for example:
spring.profiles: prod

in an application-uat.yml file.
I guess this is the right behavior to ignore such files since this is an inconsistency or conflict. However an error or warning message should have helped in this case instead of ignoring silently the file.


respeaker separated audio issue

Dear,
I'm using Odas, Odas Web and Respeaker to separate audio. My current configuration doesn't separate sources:

Odas Web writes wav files with noise
Odas Web shows 1 or 2 sources even if no sound is present
Speakers are recorded reasonably, altough different speaker sources are not separated

Any idea how I should debug this?
Comments are appreciated!
Regards,
Bart
Odas config
`# Configuration file for ReSpeaker 6 Mic Array
Circular shape, R = 0.0463m
version = "2.1";
Raw
raw:
{
fS = 16000;
hopSize = 128;
nBits = 32;
#6 input channels for microphone recording
#2 input channels for echo channel of playback
nChannels = 8;

# Input with raw signal from microphones
interface: {
    type = "soundcard";
    card = 1;
    device = 0;
}

}
Mapping
mapping:
{
map: (1, 2, 3, 4, 5, 6);

}
General
general:
{
epsilon = 1E-20;

size:
{
    hopSize = 128;
    frameSize = 256;
};

samplerate:
{
    mu = 16000;
    sigma2 = 0.01;
};

speedofsound:
{
    mu = 343.0;
    sigma2 = 25.0;
};

mics = (

    # Microphone 1
    {
        mu = ( -0.0232, +0.0401, +0.0000 );
        sigma2 = ( +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000 );
        direction = ( +0.000, +0.000, +1.000 );
        angle = ( 80.0, 90.0 );
    },

    # Microphone 2
    {
        mu = ( -0.0463, +0.0000, +0.0000 );
        sigma2 = ( +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000 );
        direction = ( +0.000, +0.000, +1.000 );
        angle = ( 80.0, 90.0 );
    },

    # Microphone 3
    {
        mu = ( -0.0232, -0.0401, +0.0000 );
        sigma2 = ( +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000 );
        direction = ( +0.000, +0.000, +1.000 );
        angle = ( 80.0, 90.0 );
    },

    # Microphone 4
    {
        mu = ( +0.0232, -0.0401, +0.0000 );
        sigma2 = ( +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000 );
        direction = ( +0.000, +0.000, +1.000 );
        angle = ( 80.0, 90.0 );
    },

    # Microphone 5
    {
        mu = ( +0.0463, +0.0000, +0.0000 );
        sigma2 = ( +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000 );
        direction = ( +0.000, +0.000, +1.000 );
        angle = ( 80.0, 90.0 );
    },

    # Microphone 6
    {
        mu = ( +0.0232, +0.0401, +0.0000 );
        sigma2 = ( +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000 );
        direction = ( +0.000, +0.000, +1.000 );
        angle = ( 80.0, 90.0 );
    }

);

# Spatial filters to include only a range of direction if required
# (may be useful to remove false detections from the floor, or
# limit the space search to a restricted region)
spatialfilters = (

    {

        direction = ( +0.000, +0.000, +1.000 );
        angle = (80.0, 90.0);

    }

);

nThetas = 181;
gainMin = 0.25;

};
Stationnary noise estimation
sne:
{
b = 3;
alphaS = 0.1;
L = 150;
delta = 3.0;
alphaD = 0.1;

}
Sound Source Localization
ssl:
{
nPots = 4;
nMatches = 10;
probMin = 0.3;
nRefinedLevels = 1;
interpRate = 1;

# Number of scans: level is the resolution of the sphere
# and delta is the size of the maximum sliding window
# (delta = -1 means the size is automatically computed)
scans = (
    { level = 2; delta = -1; },
    { level = 4; delta = -1; }
);

# Output to export potential sources
potential: {

    format = "json";

    interface: {
        type = "socket"; ip = "<IP_ADDRESS>"; port = 9001;
        #type = "terminal";
    };

};

};
Sound Source Tracking
sst:
{
# Mode is either "kalman" or "particle"

mode = "kalman";

# Add is either "static" or "dynamic"

add = "dynamic";

# Parameters used by both the Kalman and particle filter

active = (
    { weight = 1.0; mu = 0.3; sigma2 = 0.0025 }
);

inactive = (
    { weight = 1.0; mu = 0.15; sigma2 = 0.0025 }
);

sigmaR2_prob = 0.0025;
sigmaR2_active = 0.0225;
sigmaR2_target = 0.0025;
Pfalse = 0.1;
Pnew = 0.1;
Ptrack = 0.8;

theta_new = 0.9;
N_prob = 5;
theta_prob = 0.8;
N_inactive = ( 150, 200, 250, 250 );
theta_inactive = 0.9;

# Parameters used by the Kalman filter only

kalman: {

    sigmaQ = 0.001;

};

# Parameters used by the particle filter only

particle: {

    nParticles = 1000;
    st_alpha = 2.0;
    st_beta = 0.04;
    st_ratio = 0.5;
    ve_alpha = 0.05;
    ve_beta = 0.2;
    ve_ratio = 0.3;
    ac_alpha = 0.5;
    ac_beta = 0.2;
    ac_ratio = 0.2;
    Nmin = 0.7;

};

target: ();

# Output to export tracked sources
tracked: {

    format = "json";

    interface: {
        type = "socket"; ip = "<IP_ADDRESS>"; port = 9000;
        #type = "terminal";
    };

};

}
sss:
{
# Mode is either "dds", "dgss" or "dmvdr"

mode_sep = "dds";
mode_pf = "ss";

gain_sep = 1.0;
gain_pf = 10.0;

dds: {

};

dgss: {

    mu = 0.01;
    lambda = 0.5;

};

dmvdr: {

};

ms: {

    alphaPmin = 0.07;
    eta = 0.5;
    alphaZ = 0.8;
    thetaWin = 0.3;
    alphaWin = 0.3;
    maxAbsenceProb = 0.9;
    Gmin = 0.01;
    winSizeLocal = 3;
    winSizeGlobal = 23;
    winSizeFrame = 256;

};

ss: {

    Gmin = 0.01;
    Gmid = 0.9;
    Gslope = 10.0;

}

separated: {

    fS = 44100;
    hopSize = 512;
    nBits = 16;

    interface: {
         type = "socket"; ip = "<IP_ADDRESS>"; port = 10000;
     #import in audacity as raw data with
     #signed 16 bit pcm
     #little endian
         #4 channels
     #freq 44100
         #type = "file"; path = "separated.raw";
    }

};

postfiltered: {

    fS = 44100;
    hopSize = 512;
    nBits = 16;

    interface: {
        type = "socket"; ip = "<IP_ADDRESS>"; port = 10010;
        #type = "file"; path = "postfiltered.raw";
    }

};

}
classify:
{
frameSize = 1024;
winSize = 3;
tauMin = 32;
tauMax = 200;
deltaTauMax = 7;
alpha = 0.3;
gamma = 0.05;
phiMin = 0.15;
r0 = 0.2;

category: {

    format = "undefined";

    interface: {
        type = "blackhole";
    }

}

}
`

@FrancoisGrondin any idea?

solved for respeaker core v2.0 with the following config (not using postfiltered):
`
Raw
raw:
{
fS = 16000;
hopSize = 128;
nBits = 16;
nChannels = 8;

# Input with raw signal from microphones
interface: {
    type = "soundcard";
    card = 0;
    device = 0;
}

}
Mapping
mapping:
{
map: (1, 2, 3, 4, 5, 6);

}
General
general:
{
epsilon = 1E-20;

size:
{
    hopSize = 128;
    frameSize = 256;
};

samplerate:
{
    mu = 16000;
    sigma2 = 0.01;
};

speedofsound:
{
    mu = 343.0;
    sigma2 = 25.0;
};

mics = (

    # Microphone 1
    {
        mu = ( -0.0232, +0.0401, +0.0000 );
        sigma2 = ( +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000 );
        direction = ( +0.000, +0.000, +1.000 );
        angle = ( 80.0, 90.0 );
    },

    # Microphone 2
    {
        mu = ( -0.0463, +0.0000, +0.0000 );
        sigma2 = ( +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000 );
        direction = ( +0.000, +0.000, +1.000 );
        angle = ( 80.0, 90.0 );
    },

    # Microphone 3
    {
        mu = ( -0.0232, -0.0401, +0.0000 );
        sigma2 = ( +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000 );
        direction = ( +0.000, +0.000, +1.000 );
        angle = ( 80.0, 90.0 );
    },

    # Microphone 4
    {
        mu = ( +0.0232, -0.0401, +0.0000 );
        sigma2 = ( +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000 );
        direction = ( +0.000, +0.000, +1.000 );
        angle = ( 80.0, 90.0 );
    },

    # Microphone 5
    {
        mu = ( +0.0463, +0.0000, +0.0000 );
        sigma2 = ( +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000 );
        direction = ( +0.000, +0.000, +1.000 );
        angle = ( 80.0, 90.0 );
    },

    # Microphone 6
    {
        mu = ( +0.0232, +0.0401, +0.0000 );
        sigma2 = ( +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000, +0.000 );
        direction = ( +0.000, +0.000, +1.000 );
        angle = ( 80.0, 90.0 );
    }

);

# Spatial filters to include only a range of direction if required
# (may be useful to remove false detections from the floor, or
# limit the space search to a restricted region)
spatialfilters = (

    {

        direction = ( +0.000, +0.000, +1.000 );
        angle = (80.0, 90.0);

    }

);

nThetas = 181;
gainMin = 0.25;

};
Stationnary noise estimation
sne:
{
b = 3;
alphaS = 0.1;
L = 150;
delta = 3.0;
alphaD = 0.1;

}
Sound Source Localization
ssl:
{
nPots = 4;
nMatches = 10;
probMin = 0.5;
nRefinedLevels = 1;
interpRate = 4;

# Number of scans: level is the resolution of the sphere
# and delta is the size of the maximum sliding window
# (delta = -1 means the size is automatically computed)
scans = (
    { level = 2; delta = -1; },
    { level = 4; delta = -1; }
);

# Output to export potential sources
potential: {

    format = "json";

    interface: {
        type = "socket"; ip = "<IP_ADDRESS>"; port = 9001;
    };

};

};
Sound Source Tracking
sst:
{
# Mode is either "kalman" or "particle"

mode = "kalman";

# Add is either "static" or "dynamic"

add = "dynamic";

# Parameters used by both the Kalman and particle filter

active = (
    { weight = 1.0; mu = 0.3; sigma2 = 0.0025 }
);

inactive = (
    { weight = 1.0; mu = 0.15; sigma2 = 0.0025 }
);

sigmaR2_prob = 0.0025;
sigmaR2_active = 0.0225;
sigmaR2_target = 0.0025;
Pfalse = 0.1;
Pnew = 0.1;
Ptrack = 0.8;

theta_new = 0.9;
N_prob = 5;
theta_prob = 0.8;
N_inactive = ( 150, 200, 250, 250 );
theta_inactive = 0.9;

# Parameters used by the Kalman filter only

kalman: {

    sigmaQ = 0.001;

};

# Parameters used by the particle filter only

particle: {

    nParticles = 1000;
    st_alpha = 2.0;
    st_beta = 0.04;
    st_ratio = 0.5;
    ve_alpha = 0.05;
    ve_beta = 0.2;
    ve_ratio = 0.3;
    ac_alpha = 0.5;
    ac_beta = 0.2;
    ac_ratio = 0.2;
    Nmin = 0.7;

};

target: ();

# Output to export tracked sources
tracked: {

    format = "json";

    interface: {
        type = "socket"; ip = "<IP_ADDRESS>"; port = 9000;
    };

};

}
sss:
{
# Mode is either "dds", "dgss" or "dmvdr"

mode_sep = "dds";
mode_pf = "ms";

gain_sep = 1.0;
gain_pf = 10.0;

dds: {

};

dgss: {

    mu = 0.01;
    lambda = 0.5;

};

dmvdr: {

};

ms: {

    alphaPmin = 0.07;
    eta = 0.5;
    alphaZ = 0.8;
    thetaWin = 0.3;
    alphaWin = 0.3;
    maxAbsenceProb = 0.9;
    Gmin = 0.01;
    winSizeLocal = 3;
    winSizeGlobal = 23;
    winSizeFrame = 256;

};

ss: {

    Gmin = 0.01;
    Gmid = 0.9;
    Gslope = 10.0;

}

separated: {

    fS = 16000;
    hopSize = 512;
    nBits = 16;

    interface: {
        type = "socket";
        ip = "<IP_ADDRESS>";
        port = 10000;
    }

};

postfiltered: {

    fS = 44100;
    hopSize = 512;
    nBits = 16;

    interface: {
        type = "socket";
        ip = "<IP_ADDRESS>";
        port = 10010;
    }

};

}
classify:
{
frameSize = 1024;
winSize = 3;
tauMin = 32;
tauMax = 200;
deltaTauMax = 7;
alpha = 0.3;
gamma = 0.05;
phiMin = 0.15;
r0 = 0.2;

category: {

    format = "undefined";

    interface: {
        type = "blackhole";
    }

}

}
`


HAWKULAR-178 - Last used persona is the default upon login

For this to properly work, the following Accounts version needs to be used in Hawkular. As that version is already on Wildfly 10, it cannot be used.
This code, however, is prepared to fallback to the current behavior in such case, so, no updates to accounts are required for this to be merged.

Accounts version that this feature will start to work as intended is: 2.0.7.Final-SRC-60d1a19656198451d44a429bc8646cdb48ad89da

@mtho11 , could you please review ?

LGTM. @jpkrohling will you add the Accounts version to the pom for this PR as well?

Not really, this can be merged without the update to Accounts, as it will just fallback to the default behavior. Once the WF10 task is finished, a newer version of Accounts will be used, so, this will work 'automatically'.

Merged #697


Refactor ec ops

Refactored ec to use BlockExt.
Checklist

[ ] Linked to Github Issue
[ ] Unit tests added
[ ] Integration tests added.
[ ] This change requires new documentation.

[ ] Documentation has been added/updated.

Codecov Report
Attention: Patch coverage is 93.82716% with 15 lines in your changes are missing coverage. Please review.

Project coverage is 89.61%. Comparing base (bd23b1c) to head (bd36e8d).

Files
Patch %
Lines

src/libfuncs/ec.rs
93.82%
15 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #568      +/-   ##
==========================================
- Coverage   89.74%   89.61%   -0.13%
==========================================
  Files         108      108
  Lines       34534    34252     -282
==========================================
- Hits        30991    30694     -297
- Misses       3543     3558      +15

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Guide for asset contributions (Models, Units, sounds, GUI, maps)

Would be nice to have some more details in the wiki how to expand the game asset-wise, especially how to contribute models, configure unit xmls, make maps, improve the GUI, contribute sound effects and music etc.

I've begun something : https://github.com/methusalah/OpenRTS/wiki/Assets-contribution-guide
WIP !

And this one for dataset : https://github.com/methusalah/OpenRTS/wiki/Dataset-contribution-guide
WIP too !

Ok, so how would I actually contribute soundfx for example? These two seem appropriate and are licensed under CC-by:
http://opengameart.org/content/scifi-rts-status-vocals
http://opengameart.org/content/female-soldier-voice

The engine doesn't support sounds for now, but you can put useful assets
into assets/sounds directory. I will try to add sound actor soon.
Le dim. 10 mai 2015 09:13, poVoq<EMAIL_ADDRESS>a écrit :

Ok, so how would I actually contribute soundfx for example? These two seem
appropriate and are licensed under CC-by:
http://opengameart.org/content/scifi-rts-status-vocals
http://opengameart.org/content/female-soldier-voice
—
Reply to this email directly or view it on GitHub
https://github.com/methusalah/OpenRTS/issues/57#issuecomment-100596609.

About the unit meshes:
Skeletal animations and bone based particle emitters are supported right, but no mesh deformation (morphing?) via the bone? How do movable turrets work? And how does one have to set-up the animations? Is it possible to turn particle-emiters on and off as part of the animation (e.g. steam release on a certain animation part, or landing exhaust?)
Are specularity and normal-maps supported? How many UV maps are allowed per mesh? (not really planning to go overboard with texturing, but it would be good to know).

the morphing is not supported for now for a simple and good reason : Jmonkey doesn't support it for now :) Of course, in lot of cases, skeletal can do the trick but I admit it may be limiting.
For turrets, two bones are needed : one attached to the body part and the other to the turret itself. between the two parts, there must be hided vertices, because the rotation will lead to twisted polygons.
Animation is launche in a dedicated AnimationActor, with only a name, speed and looping mode. This actor may be attached to a Unit or a Weapon (in the future to an Effect). You can see an exemple in assets/data/army/human/tank/weapon_actors.xml
For now, there is nos way to launch an actor (particle, animation, sound) synchronised with an animation event. It could be implemented but is not simple (create a long time goal issue). In the mean while, a more simple mechanism would allow to trigger an actor with a delay, and synchronise it. But this will not be sufficient to through a smoke at each step of your giant robot. This would be a hard work.
As far as I know, normal, glow and specular maps are allowed for models (glow shader may require activation). For UV maps I can't tell.

Sounds are now supported via SoundActors. Test the human tank and see assets/data/army/human/tank actors XML files for examples.

Great... will take me a few days to actually contribute something as I will be one a businesstrip the next couple of days. I hope I can find the time later next week.

I've created a topic on the forum for the specific question of the 3D assets. let's close here if we are finished and continue on the forum :
http://hub.jmonkeyengine.org/t/knowledge-base-and-style-guide-for-3d-assets/32614/1


Replace Order number to pick slip number in pick slip print

Replace Order number to pick slip number in pick slip print

done


catalogmetadata client adds extreme latency to reconciliation

I've narrowed this latency down to the Bundles() call that is made for every single reconcile.
I added logging to the catalogmetadata.Client.Bundles() call to report start time and end time, and the function consistently takes around 30s, and it pegs a CPU.
This seems like a bug we should treat with a fairly high priority.

I added some timing data to the Bundles func too, documenting times for the various return points (https://gist.github.com/bentito/9fbf0d81354caa52121f5c4e294bd506).  The fake catalog is just 1 entry I think? Would ~350µs (the longest test timing in 1 run (not scientific!) * number items in real catalog * # of calls to Bundle get close to 30s?

I think that's probably an order of magnitude off still. I suspect that our fake catalog entry isn't as complex and varied as what exists in operatorhub in terms of what takes the most time (i.e. icons, olm.bundle.object properties).

Are we talking about this function? Or something else?

Yep, that's the one.


Firestore Crash with Null Blob field

Description
I have a Document with a Blob field that is null.
In my Flutter app, when I fetch the document there is a crash.
The crash occurs in Firestore/core/src/nanopb/nanopb_util.h:
// line 181
inline NSData* _Nonnull MakeNSData(const pb_bytes_array_t* _Nullable data) {
  return [[NSData alloc] initWithBytes:data->bytes length:data->size];
}

The data is declared as being nullable, null is passed in and then dereferenced without any attempt to check it.
The return type is not nullable, making reasonable behavior difficult. Either it should return something in the face of null, or it should never be called with null in the first place. Allowing the app to crash is not a cool outcome.
This is the calling code in FSTUserDataWriter.mm:
// line 81
- (id)convertedValue:(const google_firestore_v1_Value &)value {
  switch (GetTypeOrder(value)) {
    case TypeOrder::kMap:
      return [self convertedObject:value.map_value];
    case TypeOrder::kArray:
      return [self convertedArray:value.array_value];
    case TypeOrder::kReference:
      return [self convertedReference:value];
    case TypeOrder::kTimestamp:
      return [self convertedTimestamp:value.timestamp_value];
    case TypeOrder::kServerTimestamp:
      return [self convertedServerTimestamp:value];
    case TypeOrder::kNull:
      return [NSNull null];
    case TypeOrder::kBoolean:
      return value.boolean_value ? @YES : @NO;
    case TypeOrder::kNumber:
      return value.which_value_type == google_firestore_v1_Value_integer_value_tag
                 ? @(value.integer_value)
                 : @(value.double_value);
    case TypeOrder::kString:
      return MakeNSString(MakeStringView(value.string_value));
    case TypeOrder::kBlob:
      return MakeNSData(value.bytes_value);  // <<============= Here: value.bytes_value is nil
    case TypeOrder::kGeoPoint:
      return MakeFIRGeoPoint(
          GeoPoint(value.geo_point_value.latitude, value.geo_point_value.longitude));
    case TypeOrder::kMaxValue:
      // It is not possible for users to construct a kMaxValue manually.
      break;
  }

  UNREACHABLE();
}

Reproducing the issue
Store a document with a null Blob field. Now read it.
Firebase SDK Version
10.12
Xcode Version
14.2
Installation Method
CocoaPods
Firebase Product(s)
Firestore
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved
N/A
If using CocoaPods, the project's Podfile.lock
N/A

thanks for reporting @harry-dickson . I'll take a look

@harry-dickson , can you please share the code snippet you're using to store and read back the null blob?
I expected a field value of null to fall under
    case TypeOrder::kNull:
      return [NSNull null];

I'll take a closer look tomorrow, but it's Flutter/Dart and I believe it's set though an update:
  DocumentRef<Stuff> ref;
  ref.update({"blob": null});

I think I can prevent this in the case of null as a workaround - and fix the handful of broken documents
(the field is an optional, encoded profile picture)
The read is coming through a subscription:
  DocumentRef<Stuff> ref;
  ref.snapshots().listen(...)

The initial load that's triggered by the listen causes the crash before it gets near the flutter code.

I'll take a closer look tomorrow, but it's Flutter/Dart and I believe it's set though an update:
...
The initial load that's triggered by the listen causes the crash before it gets near the flutter code.

That's not right. If it is null in the source, it is simply omitted in the Map provided to the update.
It can be an empty byte array however. Is it possible the Blob handling would transmute that into a null?
It seems plausible from a simple text search in xcode:
nanopb_utils.cc:
pb_bytes_array_t* _Nullable MakeBytesArray(const void* _Nullable data,
                                           size_t size) {
  if (size == 0) return nullptr;

  // Handle non-empty data...
}

Called from MakeByteString() nanopb_util.h line 170
Called from parseScalarValue() FSTUserDataReader.mm line 519
  } else if ([input isKindOfClass:[NSData class]]) {
    NSData *inputData = input;
    return [self encodeBlob:(nanopb::MakeByteString(inputData))];
  }

I will try and stop writing empty arrays in my code as a workaround.

I also get this crash for data that looks like this in the firebase console:
  foo: "value"         (string)
  bar: 99              (number)
  blob:                (blob)

And not just:
  foo: "text"          (string)
  bar: 37              (number)
  blob: null           (blob)

That is, the field is present, but void/empty.
Not quite sure how/when I store null vs void

Something did change back in May/June time: firebase/flutterfire#11096
I ended up staring at the same code then: FSTUserDataReader/Writer.

Fix will be part of next release.


SQL gen_data.sh failure

running: spark-bench-master/SQL/bin/gen_data.sh
reports
rm: cannot remove ‘/home/abed/SparkBench/sql/Input’: No such file or directory
./gen_data.sh: line 23: /home/abed/SparkBench/sql: No such file or directory
./gen_data.sh: line 24: /home/abed/SparkBench/sql/Input: No such file or directory
./gen_data.sh: line 31: /home/abed/SparkBench/dataset/BigDataGeneratorSuite/Table_datagen/e-com/output/*: No such file or directory
ssh: connect to host abed-virtualbox port 22: Connection refused
du: cannot access ‘/home/abed/SparkBench/sql/Input’: No such file or directory
./gen_data.sh: line 47: get_config_fields: command not found

yes, I have met the same problem: There is no /$SPARKBENCH/dataset directory

Fixed.


Add support for animated webp

Initial support.
Until this fix, if trying to load an animated webp it will fail on invalid file format.
This is the first version which operates only on the first frame for now.
Still on the TODO for next versions:

Iterate of Decode & Encode on all frames
Compose a proper ImageView with all the frames (so can be animated properly like a gif image).

Also updated the podspec to 0.2.2

@Yeatse would love your input on this.

@Yeatse Some updates:
I've got onevcat/Kingfisher#664 merged and pushed (as 3.7.1), so we're ready to start working on fully implementing webp animation (just like gif is processed) once this PR is completed.

Thank you for your great work! Please review my comment added just now. It will be merged later.

@Yeatse Error 65 - please re-run travis.


ColorTranslator exists in both System.Drawing.Primitives and System.Drawing.Common.

Since ColorTranslator exists in both System.Drawing.Primitives and System.Drawing.Common it seems to be impossible to use it when importing the System.Drawing.Common package.
I can't find any way to differentiate the two. It's probably something easy that escapes me.
How to reproduce:

Add the System.Drawing.Common nuget package.
Try to use ColorTranslator.

Result:
Won't compile.
Resolution:
None I could find.

@lucapivato thanks for reporting this issue. I'm pretty sure this is because you're using an outdated version of the System.Drawing.Common package. We moved ColorTranslator type into System.Drawing.Primitives for .NET Core 3.0 but in order for this to be reflected when using .NET Core 3.0 you also need to use the latest version of System.Drawing.Common unfortunately.
Could you please try it with System.Drawing.Common version 4.6.0-preview8.19405.3 ?
I will close the issue and wait for confirmation as I didn't see the issue with this version. Could you please confirm that and if it still happens re-open?

Thanks works. I was using the latest stable, now with the latest 4.6.0-preview it's all good.

In case this helps anyone else: I got this error after removing a NuGet package (Microsoft.Extensions.Caching.StackExchangeRedis (6.0.14) of all things). I resolved it by manually adding a reference to System.Drawing.Common (6.0.0).

May someone tell me exactly how to solve this error?
The type 'ColorTranslator' exists in both 'System.Drawing.Common, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'System.Drawing.Primitives, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

May someone tell me exactly how to solve this error? The type 'ColorTranslator' exists in both 'System.Drawing.Common, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'System.Drawing.Primitives, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

Install the newest NugetPackages


Update actions/checkout to v3

What this PR does / why we need it

This updates our usage of the GitHub Actions actions/checkout module
to the latest v3 release.

Looks like the behavior of the repo checkout changes with v3 in a way that isn't very clear. Not something really required yet, so just going to close this one.


OpenTF support

https://opentf.org/announcement
We want to understand how Terraformer is affected by the OpenTF announcement, and what the plans for support are moving forward.
From a technical perspective, I expect that it will be a no-op for the time being as OpenTF anticipates maintaining compat/interop for the foreseeable future. (However, OpenTF has stated that some functionality may be added to OpenTF that is a superset of what's in base Terraform. [source])
From a process perspective:

If there is a bug in OpenTF that does not exist in Terraform (or vice-versa), will bug reports (as they pertain to this project) be treated equally on both platforms?

Will testing be performed with code targeting both platforms?

For OpenTF's potential future "superset" functionality, will that be treated as a first-class citizen?

For those who were looking for "OpenTofu", they are the same thing:
https://opentofu.org/blog/opentofu-announces-fork-of-terraform/

opentofu just GA today, https://github.com/opentofu/opentofu/releases/tag/v1.6.0

This project should move towards OpenTofu

@sergeylanzman @meshuga @skarimo

It would seem that this project leverages the Terraform Protocol, rather than relying directly on Terraform or OpenTofu directly. As long as the protocol continues to be supported, then the providers which implement the protocol will be supported.


Simpler way of inheriting rules from multiple schemas

see spec/schema/inheriting_schema_spec.rb ....
Situation : I have a number of fields that are shared throughout my application which are not nested schema - but i would like to define a single-field validation schema for each and include as needed in other schema ...  the schema-inheritance works for nested (compound) hashes - see above.   can we also support for non-nested... here's the above spec with 'flat' field added which fails ...
require 'dry-validation'

RSpec.describe 'Reusing schemas' do
  subject(:schema) do
    Dry::Validation.Schema do
      required(:city).filled

      required(:location).schema(LocationSchema)
      required(:country).schema(CountrySchema)
    end
  end

  before do

    LocationSchema = Dry::Validation.Schema do
      configure { config.input_processor = :form }

      required(:lat).filled(:float?)
      required(:lng).filled(:float?)
    end

    # define a 'flat' (scalar) schema

    CountrySchema = Dry::Validation.Schema do
      configure { config.input_processor = :form }
      required(:country).filled(:str?)
    end

  end

  after do
    Object.send(:remove_const, :LocationSchema)
  end

  it 're-uses existing schema' do
    expect(schema.(city: 'NYC', country: 'usa', location: { lat: 1.23, lng: 45.6 })).to be_success

    expect(schema.(city: 'NYC', country: 'usa', location: { lat: nil, lng: '45.6' }).messages).to eql(
      location: {
        lat: ['must be filled'],
        lng: ['must be a float']
      }
    )
  end
end

Thanks !

Is there any way to achieve the behaviour described by @thefliik in the current 1.2 version or is it only restricted to nested resources?
Thanks

@neosepulveda no, this must be implemented as a 1st-class feature. We'll get to it eventually.

This is currently possible:
require 'dry-schema'

RSpec.describe 'Reusing schemas' do
  subject(:schema) do
    Dry::Schema.define(parent: CountrySchema) do
      required(:city).filled(:string)
      required(:location).schema(LocationSchema)
    end
  end

  before do
    LocationSchema = Dry::Schema.define do
      required(:lat).filled(:float)
      required(:lng).filled(:float)
    end

    CountrySchema = Dry::Schema.define do
      required(:country).filled(:string)
    end
  end

  it 're-uses existing schema' do
    expect(schema.(city: 'NYC', country: 'usa', location: { lat: 1.23, lng: 45.6 })).to be_success

    expect(schema.(city: 'NYC', country: 'usa', location: { lat: nil, lng: '45.6' }).errors.to_h).to eql(
      location: {
        lat: ['must be a float'],
        lng: ['must be a float']
      }
    )
  end
end

@solnic what about merging Dry::Validation::Contract?
just trying to finalise the integration of dry-v into reform and I have this case:
module Supplier::Contracts::Admin
  class Update < ApplicationForm
    property :company_name, as: :name, type: Types::StrippedString

   .....

    validation schema: ApplicationContract do
      params do
        required(:company_name).filled(size?: 2..100)
        required(:country_id).filled
        required(:website).maybe(format?: VALID_WEBSITE_REGEX)
        required(:email).maybe(format?: VALID_EMAIL_REGEX)
      end
      rule(:country_id).validate(:country?)
    end
  end
end

So ApplicationContract can be either a schema or a contract object so in base on what that is we need to "merge" it with the contract represented in the validation block.
Any tip/idea for this?

@emaglio this is not supported yet. We have plans to add this feature in 2.0.0 though.


Exception when placing work directory outside of agent (linux, osx)

If I create a build agent at /agent, it will use a child of that directory as a working directory.
I want to use a separate directory as a working directory, for performance reasons. I edited the .agent file and changed it to /work.
Build steps now fail with
##[Error] 2015-07-30T22:27:10.941Z: module.js:338
##[Error] 2015-07-30T22:27:10.943Z:     throw err;
##[Error] 2015-07-30T22:27:10.943Z:           ^
##[Error] 2015-07-30T22:27:10.943Z: Error: Cannot find module 'vso-task-lib'
##[Error] 2015-07-30T22:27:10.943Z:     at Function.Module._resolveFilename (module.js:336:15)
##[Error] 2015-07-30T22:27:10.943Z:     at Function.Module._load (module.js:278:25)
##[Error] 2015-07-30T22:27:10.943Z:     at Module.require (module.js:365:17)
##[Error] 2015-07-30T22:27:10.943Z:     at require (module.js:384:17)
##[Error] 2015-07-30T22:27:10.943Z:     at Object.<anonymous> (/work/tasks/NpmInstall/0.1.2/npminstall.js:2:10)
##[Error] 2015-07-30T22:27:10.943Z:     at Module._compile (module.js:460:26)
##[Error] 2015-07-30T22:27:10.943Z:     at Object.Module._extensions..js (module.js:478:10)
##[Error] 2015-07-30T22:27:10.943Z:     at Module.load (module.js:355:32)
##[Error] 2015-07-30T22:27:10.943Z:     at Function.Module._load (module.js:310:12)
##[Error] 2015-07-30T22:27:10.943Z:     at Function.Module.runMain (module.js:501:10)
##[Error] 2015-07-30T22:27:10.943Z:
##[Error] 2015-07-30T22:27:11.811Z: Return code: 1

Is this not supported?

I don’t believe this is supported net because node looks up the hierarchy for modules.  In order to enable this we would need to add the modules location to the explicit lookup path environment variable for node.
From: João Moreno<EMAIL_ADDRESS>Sent: Thursday, July 30, 2015 6:31 PM
To: Microsoft/vso-agent<EMAIL_ADDRESS>Subject: [vso-agent] Exception when placing work directory outside of agent (linux, osx) (#44)
If I create a build agent at /agent, it will use a child of that directory as a working directory.
I want to use a separate directory as a working directory, for performance reasons. I edited the .agent file and changed it to /work.
Build steps now fail with
##[Error] 2015-07-30T22:27:10.941Z: module.js:338
##[Error] 2015-07-30T22:27:10.943Z:     throw err;
##[Error] 2015-07-30T22:27:10.943Z:           ^
##[Error] 2015-07-30T22:27:10.943Z: Error: Cannot find module 'vso-task-lib'
##[Error] 2015-07-30T22:27:10.943Z:     at Function.Module._resolveFilename (module.js:336:15)
##[Error] 2015-07-30T22:27:10.943Z:     at Function.Module._load (module.js:278:25)
##[Error] 2015-07-30T22:27:10.943Z:     at Module.require (module.js:365:17)
##[Error] 2015-07-30T22:27:10.943Z:     at require (module.js:384:17)
##[Error] 2015-07-30T22:27:10.943Z:     at Object. (/work/tasks/NpmInstall/0.1.2/npminstall.js:2:10)
##[Error] 2015-07-30T22:27:10.943Z:     at Module._compile (module.js:460:26)
##[Error] 2015-07-30T22:27:10.943Z:     at Object.Module._extensions..js (module.js:478:10)
##[Error] 2015-07-30T22:27:10.943Z:     at Module.load (module.js:355:32)
##[Error] 2015-07-30T22:27:10.943Z:     at Function.Module._load (module.js:310:12)
##[Error] 2015-07-30T22:27:10.943Z:     at Function.Module.runMain (module.js:501:10)
##[Error] 2015-07-30T22:27:10.943Z:
##[Error] 2015-07-30T22:27:11.811Z: Return code: 1
Is this not supported?
—
Reply to this email directly or view it on GitHubhttps://github.com/Microsoft/vso-agent/issues/44.

Yeah, not supported yet.  We pulled it from the config experience until everything does the right thing (set the node module env vars etc...

We're cutting this as we're starting on one core-clr agent soon

@bryanmacfarlane so you'll be definitely dropping the Node.JS one?

That's the current plan.  The core-CLR one will run on win, osx, Linux.
We considered making the nodejs one the one agent.  Long discussions and pros/cons.  I like that the js source is right there to tweak/patch, but I like async/await in C# (yeah, coming to TS).  We also have other code in VSO that's CS to leverage and standardize on.
If you have feedback or thoughts, we would love to hear it.  We haven't started the effort yet.


Changed min ver of Qt Framework to 5.6.2

@ldanzinger - Please review and merge. Thank you.

Looks good.


Vary Alexa's Prompt

Current after most intents Alexa's says "is there anything you would like me to do?"
Come up with more phrases to vary it a little bit and seem not so repetitive.

Duplicate issue


Improve TypedArray::to_vec performance by not zero-initializing buffer

You can see the rationale and results in https://github.com/rustwasm/wasm-bindgen/issues/2639 .
Changes:

changed raw_copy_to to take pointers instead of slices (as slices require data to be pre-initialized)
made it unsafe, as even though technically we don't use any unsafe APIs, invalid use can modify random memory
made it pub (this part is optional, let me know if you don't want this PR to extend public API)
use it in to_vec(). The general pattern of with_capacity->modify through pointer->set_len is similar to the official example in https://doc.rust-lang.org/std/vec/struct.Vec.html#method.set_len , and looks sound in general. Still, this does add a significant amount of unsafe uses.

Seems reasonable to me, thanks!


Add fn formatting to sway-fmt-v2

Necessary for abi, impl, trait and storage formatting

#992 relevant issue


Upgrade Protobuf

We are building TensorFlow master using bazel on 64 bit platform.
We need a fix for 64 bit platform as mentioned in #1044 in tensorflow/third_party/protobuf/3.0.0/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h.
This fix is available in protobuf with commit id c59473d or higher.
Will it be possible to pick this or higher commit of protobuf in TensorFlow?

Reference: #4380

Your original reference "#1044" should point to the one in protobuf. And I am confused of the "64 bit platform" you were referring to, until I notice it is probably mips64. It would be better if you could make that clear, as current master has no problem building on x86-64.

We were getting this issue for s390x platform.
However, I have cloned the code again and now, I could build TensorFlow without any error.
Closing this issue.


WIP: consolidated branch for feature developed in mta/parallel-batches

Separate pull request to run automated tests (see related pull request for mta/parallel-batches-preview
(changes: based on stable 11.2.2 release instead of main, merged all small incremental changes up to 51079bb in a single commit)

@michaelstaib I'd like to use this pull request to run the automated tests on the exact version we made our local built from. Can you set status so that HotChocolate-CI and HotChocolate-Sonar are ran?

@michaelstaib I see that this pull request is closed now, does this mean that this functionality is now present in the 12 release?
If not, if I rewrite it for the 12 release, will it be accepted in the actual product?

@martetassyns we tried to reach you but could not get a response on slack. We have now the query plan implemented so if we want to get a more efficient batching it needs to be build on top of that. If I remember right the main thing you wanted to achieve is executing batches efficiently in parallel.

My apologies, because I don't often use slack I only see messages when I login through the website.
That is correct, and we still require this functionality.
Is this currently on your own roadmap?
And if it would be implemented by me, do you foresee any blockers for an actual merge into the main branch?

The functionality will be coming in V13 we are working on batching for stitching. I think I outlined back when we were talking that I would like to merge the queries to send them in as one query .... this is still what I want to do. With the new query plans we can finally do this by rewriting the selection types to nullables. This essentially will allow us to much more efficiently execute multiple requests as one request with all the benefits of the new execution engine.
If you want to help on that I am all ears. We can get together on a call next week if you like to.

Ok, thank you for the feedback.
I'll try to take a look at the current code and see if I can find my way in it.


Export enum and updating package version

@sarveshnagpal,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


throws an error "you have incompatible xdg portals implementations installed" when building on ubuntu 23.04

after building on ubuntu 23.04 and running, it gives the error you have incompatible xdg portals implementations installed in the screen,
the install instructions i followed are the same im pull requesting (https://github.com/Vertecedoc4545/hyprland-wiki-ubuntu/blob/main/pages/Getting Started/Ubuntu.md) , im unaware about its reproducibility as i didnt notice this error days ago with the same build instructions

its cause of xdg-desktop-portal-gnome
btw even masking it through systemctl throws error anyway
maybe it's a point to turn off notification if wrong impls are installed but not started?

Hyprland just checks if they're installed, not specifically if they're running, although I agree that the message makes more sense if other portals are running alongside either xdgdp-wlr or xdgdp-hyprland, but apparently just having it installed is enough for issues to happen.
Just throw suppress_portal_warnings = true inside the misc{} part of your config, if you have issues try uninstalling the gnome portal.

it's not an error per se, it's a warning. Expected behavior

perfect

a good idea would be to change the ui color to orange and instead of the word remove lets put add "this" to the config if no more errors ocur, or lets change the behavior to look for running portals.
that may improve accesibility

Hyprland just checks if they're installed, not specifically if they're running, although I agree that the message makes more sense if other portals are running alongside either xdgdp-wlr or xdgdp-hyprland, but apparently just having it installed is enough for issues to happen.
Just throw suppress_portal_warnings = true inside the misc{} part of your config, if you have issues try uninstalling the gnome portal.

hi! I added "suppress_portal_warnings = true" in the misc block, but it threw an exception:
"<suppress_portal_warnings> :no such field"

Hyprland just checks if they're installed, not specifically if they're running, although I agree that the message makes more sense if other portals are running alongside either xdgdp-wlr or xdgdp-hyprland, but apparently just having it installed is enough for issues to happen.
Just throw suppress_portal_warnings = true inside the misc{} part of your config, if you have issues try uninstalling the gnome portal.

hi! I added "suppress_portal_warnings = true" in the misc block, but it threw an exception: "<suppress_portal_warnings> :no such field"

Is your hyprland build up to date? That option was introduced in https://github.com/hyprwm/Hyprland/commit/a8b3be2c9c916870b826cba8fdf3aec1046d2f81, if you try it on an older version it'll give you that error.

Hyprland just checks if they're installed, not specifically if they're running, although I agree that the message makes more sense if other portals are running alongside either xdgdp-wlr or xdgdp-hyprland, but apparently just having it installed is enough for issues to happen.
Just throw suppress_portal_warnings = true inside the misc{} part of your config, if you have issues try uninstalling the gnome portal.

hi! I added "suppress_portal_warnings = true" in the misc block, but it threw an exception: "<suppress_portal_warnings> :no such field"

Is your hyprland build up to date? That option was introduced in a8b3be2, if you try it on an older version it'll give you that error.

I use the source version is v0.24.0, I will try to use the latest source,thanks !

tchofy

v24.0 i s support  suppress_portal_warnings,but i still can not use it.

Hyprland just checks if they're installed, not specifically if they're running, although I agree that the message makes more sense if other portals are running alongside either xdgdp-wlr or xdgdp-hyprland, but apparently just having it installed is enough for issues to happen.
Just throw suppress_portal_warnings = true inside the misc{} part of your config, if you have issues try uninstalling the gnome portal.

hi! I added "suppress_portal_warnings = true" in the misc block, but it threw an exception: "<suppress_portal_warnings> :no such field"

Is your hyprland build up to date? That option was introduced in a8b3be2, if you try it on an older version it'll give you that error.

I change the value in source and rebuild it,it work now


Build(deps-dev): Bump @types/node from 17.0.19 to 17.0.21 (#2905)

Pull request opened by the merge tool on behalf of #2905

Processing this pull request

An unexpected error occurred while processing this pull request. The request might have been partially processed. Caused by: GitHub API query failed: got errors in response: [{'type': 'UNPROCESSABLE', 'path': ['createPullRequest'], 'locations': [{'line': 2, 'column': 9}], 'message': 'A pull request already exists for inmanta:dependabot/npm_and_yarn/types/node-17.0.21.'}]


test fix for 25d639e

Description
Test fix for community commit https://github.com/postgres/postgres/commit/25d639e.
Pushing the patch first since this commit is not yet merged in babelfish engine fork and they trying out the fix
Check List

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>0
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 74.513%

Totals

Change from base Build<PHONE_NUMBER>4:
0.0%

Covered Lines:
45219

Relevant Lines:
60686

💛  - Coveralls


Option for enabling only TLSv1.2 and TLSv1.3 and strong ciphers and HSTS

Hey,
I ran an Instance if this operator on my OpenShift cluster, but the reputation on SSLLabs ist worst because by default TLSv1.0 is enabled and weak ciphers. Is there an Option to change this?

HSTS and Protocols are here: https://docs.nginx.com/nginx-ingress-controller/configuration/global-configuration/configmap-resource/#auth-and-ssltls
They are both global settings, it can be overridden for a specific hostname with snippets

The operator doesn't saves my config Flags. I installed the Operator inside my OpenShift and created an Ingress Controller, with the following config but my data attributes get ignored:
apiVersion: charts.nginx.org/v1alpha1 kind: NginxIngress metadata:   name: nginx   namespace: nginx-ingress spec:   controller:     logLevel: 1     nodeSelector: {}     customPorts: []     extraContainers: []     initContainers: []     config:       annotations: {}       entries: {}     ingressClass: nginx     includeYear: false     resources:       requests:         cpu: 100m         memory: 128Mi     pod:       annotations: {}       extraLabels: {}     enableCertManager: false     hostNetwork: false     affinity: {}     enableLatencyMetrics: false     setAsDefaultIngress: false     customConfigMap: ''     terminationGracePeriodSeconds: 30     lifecycle: {}     nginxStatus:       allowCidrs: <IP_ADDRESS>       enable: true       port: 8080     watchNamespace: ''     nginxReloadTimeout: 60000     healthStatus: false     appprotect:       enable: false     enableCustomResources: true     globalConfiguration:       create: false       spec: {}     reportIngressStatus:       annotations: {}       enable: true       enableLeaderElection: true       ingressLink: ''     nginxplus: false     volumeMounts: []     kind: deployment     enablePreviewPolicies: false     service:       externalIPs: []       customPorts: []       loadBalancerIP: ''       annotations: {}       externalTrafficPolicy: Local       httpPort:         enable: true         nodePort: ''         port: 80         targetPort: 80       httpsPort:         enable: true         nodePort: ''         port: 443         targetPort: 443       loadBalancerSourceRanges: []       extraLabels: {}       type: NodePort       create: true     readyStatus:       enable: true       port: 8081     replicaCount: 2     serviceAccount:       imagePullSecretName: ''     volumes: []     enableSnippets: false     nginxDebug: false     appprotectdos:       debug: false       enable: false       maxDaemons: 0       maxWorkers: 0       memory: 0     defaultTLS: {}     image:       pullPolicy: IfNotPresent       repository: nginx/nginx-ingress       tag: 2.4.0-ubi     enableTLSPassthrough: true     tolerations: []     enableOIDC: false     healthStatusURI: /nginx-health   disableIPV6: false   nginxServiceMesh:     enable: false     enableEgress: false   prometheus:     create: true     port: 9113     scheme: http     secret: ''   rbac:     create: true data:   ssl-protocols: "TLSv1.2"

I created a config map with this values:
kind: ConfigMap
apiVersion: v1
metadata:
name: nginx-config
data:
ssl-protocols: "TLSv1.2 TLSv1.3"
http2: "True"
proxy-protocol: "True"
but this also didn't get applied

No nothing

I apply the ConfigMap but nothing happened, in the pod logs nothing happened. When I create a controller inside the Operator and place key/value pairs inside the data: attribute it gets ignored and don't show up in the deployment yaml

@pomland-94 are you able to provide the output of nginx -T and copy it in this thread?
Are you using our CRDS or standard ingress resource?


Usable PRs merged

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: ymijorski sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


Change logFlag In a formatter

I have some log like: <ERROR> xxxxx or <WARN> xxxx and so on.
I want to set the log flag to DDLogFlagError for <ERROR> xxx, so I add a formatter to do it, but it failed!
@implementation MYLogLevelInMessage

- (NSString *)formatLogMessage:(DDLogMessage *)logMessage {
    if ([logMessage->_message hasPrefix:@"<ERROR>"]) {
        logMessage->_flag = DDLogFlagError;
    } else if ([logMessage->_message hasPrefix:@"<WARN>"]) {
        logMessage->_flag = DDLogFlagWarning;
    } else if ([logMessage->_message hasPrefix:@"<INFO>"]) {
        logMessage->_flag = DDLogFlagInfo;
    } else if ([logMessage->_message hasPrefix:@"<DEBUG>"]) {
        logMessage->_flag = DDLogFlagDebug;
    }
    return logMessage->_message;
}

@end

Because these code: (DDMultiFormatter.m)
- (NSString *)formatLogMessage:(DDLogMessage *)logMessage {
    __block NSString *line = logMessage->_message;

    dispatch_sync(_queue, ^{
        for (id<DDLogFormatter> formatter in _formatters) {
            DDLogMessage *message = [self logMessageForLine:line originalMessage:logMessage];
            line = [formatter formatLogMessage:message];

            if (!line) {
                break;
            }
        }
    });

    return line;
}

- (DDLogMessage *)logMessageForLine:(NSString *)line originalMessage:(DDLogMessage *)message {
    DDLogMessage *newMessage = [message copy];

    newMessage->_message = line;
    return newMessage;
}

The DDLogMessage be copied for every formatter!!
I don't know why to copy. But I think it is well:
 - (NSString *)formatLogMessage:(DDLogMessage *)logMessage {
     __block NSString *line = logMessage->_message;
+    DDLogMessage *message = [self logMessageForLine:line originalMessage:logMessage];

     dispatch_sync(_queue, ^{
         for (id<DDLogFormatter> formatter in _formatters) {
-            DDLogMessage *message = [self logMessageForLine:line originalMessage:logMessage];
-            line = [formatter formatLogMessage:message];
+            message->_message = [formatter formatLogMessage:message];

-            if (!line) {
+            if (!message->_message) {
                 break;
             }
         }
     });

     return line;
 }

It will use same DDLogMessage for the all multi formatter.

Do you want to make a pull request?

I think there are more things to do for change the level in the formatter. I will think about how to do it.

@rivera-ernesto
I think that why not use - (void)formatLogMessage:(DDLogMessage *)logMessage instead of - (NSString *)formatLogMessage:(DDLogMessage *)logMessage?
So the formatter just change the logMessage->_message and other properties, not return message.

I'm not sure this is right. We will have a method formatLogMessage that changes the internal state of the DDLogMessage. Plus I think the original intent was that the formatting is applied just before the actual output, so it doesn't compromise the internal state of the messages. Thoughts?

Yes, I think they should be separate without touching the original message. For instance you may want minimalist logs in a HUD view in your app, but have more detailed content in Xcode console, for the same log messages.
Formatters mix many different log message variables, flags, levels, into a string, not only the actual _message which would get squashed.

@rivera-ernesto you are right. I think we can just touch the message in same multiFormatter:
 - (NSString *)formatLogMessage:(DDLogMessage *)logMessage {
-    __block NSString *line = logMessage->_message;
+    DDLogMessage *message = [self logMessageForLine:logMessage->_message originalMessage:logMessage];

     dispatch_sync(_queue, ^{
         for (id<DDLogFormatter> formatter in _formatters) {
-            DDLogMessage *message = [self logMessageForLine:line originalMessage:logMessage];
-            line = [formatter formatLogMessage:message];
+            logMessage->_message = [formatter formatLogMessage:message];

-            if (!line) {
+            if (!logMessage->_message) {
                 break;
             }
         }
     });

-    return line;
+    return logMessage->_message;
 }

Other changes will be reverted.

Sure. You can add commits to your existing pull request or close it a make a new one.

@Whirlwind :+1:

Reading again the issue description makes it clear to me that the approach is wrong.
We shouldn't turn a log message into an error message inside a formatter. It is completely unexpected.
You should init the DDLogMessage with an error flag since creation. For that you have to create your won custom macros that parse the string message and create a log message accordingly.
But then parsing strings is less effective than calling DDLogError in the first place, so I would search all messages in your code that start with "Error" and use the proper built-in macro instead.

You are right.

Thanks for collaborating @Whirlwind . Let's come up with a different solution.


support all annotations

[X] title
[X] description
[X] help
[X] warning
[X] default
[x] readOnly
[x] writeOnly
[x] hidden
[ ] collapsed
[ ] collapsible
[x] orderable
[x] addable
[x] removable
[x] placeholder

see #15 for context

for collapsed and collapsible we need to agree on what to emit and then add support in rendition or rjsf - this is highlighted in the ui issues document


A selected file disappears after switching radio buttons on Vuejs

Version
2.5.16
Reproduction link
https://stackoverflow.com/questions/51272049/a-selected-file-disappears-after-switching-radio-buttons-on-vuejs
Steps to reproduce

Go to "https://stackoverflow.com/questions/51272049/a-selected-file-disappears-after-switching-radio-buttons-on-vuejs"
Click "Run code snippet"
Click "Test1"
Upload any file
Make sure that the file name you uploaded shows up
Click "Test2"
Click "Test1"

What is expected?
The file you uploaded still exists, and it shows the file name.
What is actually happening?
It shows "No file chosen."

I know this is a multiple post, and it is not a good practice, but I would like to know how to fix this issue.

You used a v-if in the file with a condition that will be false after ou click test 2. Consequently, Vue will remove the file input from the DOM, and the file disappears.
You can use v-show instead.

Thank you very much! I replaced v-if with v-show, and it resolved my issue!
I spent hours to try to figure it out, and finally it works as I wished. I learned the difference between v-if and v-show, and actually, it is mentioned in the Guide:
https://vuejs.org/v2/guide/conditional.html#v-if-vs-v-show
Thank you! I learned a lot!

I had similar issue while usingv-ifto step through different part of a form. when "Next" is clicked, i increment the step variable so that a different part shows and and a "back" button decrements the step variable to show the previous page just like a "stepwizard". Then i noticed that all the uploaded files disappears from DOM  but was still available in my local file variable in the data section when back is clicked
I guess I have to take time and go through vuejs documentation so that i don't miss vital details that will save me some trouble. #lesson learned