System.EntryPointNotFoundException when running generated C# code.

I am trying to wrap the ome-files library, and am running into a System.EntryPointNotFoundException exception when I try to use the generated code from CppSharp.  In order to do this, I have done the following.

Download the ome-files distribution for Windows VC14 64‑bit (VS2015).
Create a C++ library in Visual Studio (.dll, targeting Windows 10.0.14393.0) that interfaces with only the parts of the API that I am interested in (e.g. OMETIFFReader.h, OMETIFFWriter.h, etc.).
Generate the C# wrapper using CppSharp, and import the .cs files into a C# project in Visual Studio and compile that.
Include the library from Step 3 into a project with unit tests, and run OMETIFFReader reader = new OMETIFFReader();.  I have included the .dll from the library I created in Step 2, and all the .dlls from the ome-files distribution downloaded in Step 1.

This results in the following error.  Any idea why we can't seem to find an entry point?
Result StackTrace:
at OME.IO.OMETIFFReader.__Internal.ctor(IntPtr instance)
   at OME.IO.OMETIFFReader..ctor() in C:\Users\...\Documents\Visual Studio 2015\Projects\OMEFilesSharp\OMEFilesSharp\IO\OMEFiles.cs:line 209
   at OME.IO.UnitTests.OMETIFFReaderUnitTests.Open_OMETIFFFile_DoesNotThrowException() in C:\Users\...\Documents\Visual Studio 2015\Projects\OMEFilesSharp\OMEFilesSharp.UnitTests\IO\UnitTests\OMETIFFReaderUnitTests.cs:line 41
Result Message:	System.EntryPointNotFoundException : Unable to find an entry point named '??0OMETIFFReader@@QEAA@XZ' in DLL 'OMEFiles'.

The only settings I set in my OMEFilesLibrary.cs file are:
driverOptions.GeneratorKind = GeneratorKind.CSharp;
driverOptions.OutputDir = outputDirectoryPath;
driverOptions.Verbose = true;

Here's the verbose results from running the generator.
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0
Parsing libraries...
Parsed 'OMEFiles.lib'
Parsing code...
Parsed 'OMETIFFReader.h'
Parsed 'OMETIFFWriter.h'
Parsed 'PixelBuffer.h'
Processing code...
Pass 'CppSharp.Passes.SortDeclarationsPass'
Pass 'CppSharp.Passes.ResolveIncompleteDeclsPass'
Pass 'CppSharp.Passes.IgnoreSystemDeclarationsPass'
Pass 'CppSharp.Passes.EqualiseAccessOfOverrideAndBasePass'
Pass 'CppSharp.Passes.CheckIgnoredDeclsPass'
    Decl 'reader' was ignored due to invalid access
    Field 'OMETIFFReader::reader' was ignored due to ignored type '::std::unique_ptr<::ome::files::in::OMETIFFReader, ::std::default_delete<::ome::files::in::OMETIFFReader>>'
    Decl '_First' was ignored due to invalid access
    Decl '_Last' was ignored due to invalid access
    Decl '_First' was ignored due to invalid access
    Decl '_Last' was ignored due to invalid access
    Function 'allocator' was ignored due to ignored param
    Function 'allocator<_Ty>' was ignored due to ignored param
    Decl '_Myval2' was ignored due to invalid access
    Decl '_Myval2' was ignored due to invalid access
    Decl '_Myval2' was ignored due to invalid access
    Field '_Compressed_pair::_Myval2' was ignored due to ignored type '::std::_String_val<::std::_Simple_types<char>>'
    Decl '_Myval2' was ignored due to invalid access
    Decl '_Myval2' was ignored due to invalid access
    Typedef 'pointer' was ignored due to ignored type
    Field '_Unique_ptr_base::_Mypair' was ignored due to ignored type ''
    Typedef 'pointer' was ignored due to ignored type
    Field '_Unique_ptr_base::_Mypair' was ignored due to ignored type '::std::_Compressed_pair<::std::default_delete<::ome::files::VariantPixelBuffer>, ::ome::files::VariantPixelBuffer*>'
    Typedef 'pointer' was ignored due to ignored type
    Field '_Unique_ptr_base::_Mypair' was ignored due to ignored type '::std::_Compressed_pair<::std::default_delete<::ome::files::in::OMETIFFReader>, ::ome::files::in::OMETIFFReader*>'
    Typedef 'pointer' was ignored due to ignored type
    Field '_Unique_ptr_base::_Mypair' was ignored due to ignored type '::std::_Compressed_pair<::std::default_delete<::ome::files::out::OMETIFFWriter>, ::ome::files::out::OMETIFFWriter*>'
    Typedef 'type' was ignored due to ignored type
    Typedef 'type' was ignored due to ignored type
    Typedef 'type' was ignored due to ignored type
    Field '_String_val::_Bx' was ignored due to ignored type '::std::_String_val<::std::_Simple_types<char>>::_Bxty'
    Decl '_Mypair' was ignored due to invalid access
    Field '_String_alloc::_Mypair' was ignored due to ignored type '::std::_Compressed_pair<::std::allocator<char>, ::std::_String_val<::std::_Simple_types<char>>>'
    Decl '_Mypair' was ignored due to invalid access
    Field '_String_alloc::_Mypair' was ignored due to ignored type ''
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Field '_String_val::_Bx' was ignored due to ignored type '::std::_String_val::_Bxty'
    Decl 'buffer' was ignored due to invalid access
    Field 'PixelBuffer::buffer' was ignored due to ignored type '::std::unique_ptr<::ome::files::VariantPixelBuffer, ::std::default_delete<::ome::files::VariantPixelBuffer>>'
    Decl 'writer' was ignored due to invalid access
    Field 'OMETIFFWriter::writer' was ignored due to ignored type '::std::unique_ptr<::ome::files::out::OMETIFFWriter, ::std::default_delete<::ome::files::out::OMETIFFWriter>>'
Pass 'CppSharp.Passes.GenerateSymbolsPass'
Pass 'CppSharp.Passes.TrimSpecializationsPass'
Pass 'CppSharp.Passes.CheckIgnoredDeclsPass'
    Decl 'reader' was ignored due to invalid access
    Field 'OMETIFFReader::reader' was ignored due to internal type '::std::unique_ptr<::ome::files::in::OMETIFFReader, ::std::default_delete<::ome::files::in::OMETIFFReader>>'
    Decl '_First' was ignored due to invalid access
    Decl '_Last' was ignored due to invalid access
    Decl '_First' was ignored due to invalid access
    Decl '_Last' was ignored due to invalid access
    Function 'allocator' was ignored due to ignored param
    Function 'allocator<_Ty>' was ignored due to ignored param
    Decl '_Myval2' was ignored due to invalid access
    Decl '_Myval2' was ignored due to invalid access
    Field '_Compressed_pair::_Myval2' was ignored due to internal type '::std::_String_val<::std::_Simple_types<char>>'
    Decl '_Myval2' was ignored due to invalid access
    Decl '_Myval2' was ignored due to invalid access
    Decl '_Myval2' was ignored due to invalid access
    Typedef 'pointer' was ignored due to ignored type
    Field '_Unique_ptr_base::_Mypair' was ignored due to ignored type ''
    Typedef 'pointer' was ignored due to ignored type
    Field '_Unique_ptr_base::_Mypair' was ignored due to ignored type '::std::_Compressed_pair<::std::default_delete<::ome::files::VariantPixelBuffer>, ::ome::files::VariantPixelBuffer*>'
    Typedef 'pointer' was ignored due to ignored type
    Field '_Unique_ptr_base::_Mypair' was ignored due to ignored type '::std::_Compressed_pair<::std::default_delete<::ome::files::in::OMETIFFReader>, ::ome::files::in::OMETIFFReader*>'
    Typedef 'pointer' was ignored due to ignored type
    Field '_Unique_ptr_base::_Mypair' was ignored due to ignored type '::std::_Compressed_pair<::std::default_delete<::ome::files::out::OMETIFFWriter>, ::ome::files::out::OMETIFFWriter*>'
    Typedef 'type' was ignored due to ignored type
    Typedef 'type' was ignored due to ignored type
    Typedef 'type' was ignored due to ignored type
    Field '_String_val::_Bx' was ignored due to internal type '::std::_String_val<::std::_Simple_types<char>>::_Bxty'
    Decl '_Mypair' was ignored due to invalid access
    Field '_String_alloc::_Mypair' was ignored due to ignored type '::std::_Compressed_pair<::std::allocator<char>, ::std::_String_val<::std::_Simple_types<char>>>'
    Decl '_Mypair' was ignored due to invalid access
    Field '_String_alloc::_Mypair' was ignored due to ignored type ''
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Field '_String_val::_Bx' was ignored due to ignored type '::std::_String_val::_Bxty'
    Decl 'buffer' was ignored due to invalid access
    Field 'PixelBuffer::buffer' was ignored due to ignored type '::std::unique_ptr<::ome::files::VariantPixelBuffer, ::std::default_delete<::ome::files::VariantPixelBuffer>>'
    Decl 'writer' was ignored due to invalid access
    Field 'OMETIFFWriter::writer' was ignored due to ignored type '::std::unique_ptr<::ome::files::out::OMETIFFWriter, ::std::default_delete<::ome::files::out::OMETIFFWriter>>'
Pass 'CppSharp.Passes.FindSymbolsPass'
Pass 'CppSharp.Passes.CheckMacroPass'
Pass 'CppSharp.Passes.CheckStaticClass'
Pass 'CppSharp.Passes.MoveOperatorToClassPass'
Pass 'CppSharp.Passes.MoveFunctionToClassPass'
Pass 'CppSharp.Passes.ConstructorToConversionOperatorPass'
Pass 'CppSharp.Passes.MarshalPrimitivePointersAsRefTypePass'
Pass 'CppSharp.Passes.CheckAmbiguousFunctions'
Pass 'CppSharp.Passes.CheckOperatorsOverloadsPass'
    Invalid operator overload OMETIFFReader::Equal
    Invalid operator overload PixelBuffer::Equal
    Invalid operator overload OMETIFFWriter::Equal
Pass 'CppSharp.Passes.CheckVirtualOverrideReturnCovariance'
Pass 'CppSharp.Passes.CleanCommentsPass'
Pass 'CppSharp.Passes.CheckAbiParameters'
Pass 'CppSharp.Passes.FieldToPropertyPass'
    Property created from field: std::_String_val<global::std._Simple_types<sbyte>>::_Bxty::___Buf
    Property created from field: std::_String_val<global::std._Simple_types<sbyte>>::_Bxty::___Ptr
    Property created from field: std::_String_val<global::std._Simple_types<sbyte>>::_Bxty::___Alias
    Property created from field: std::_String_val::_Bxty::___Buf
    Property created from field: std::_String_val::_Bxty::___Ptr
    Property created from field: std::_String_val::_Bxty::___Alias
Pass 'CppSharp.Passes.CleanInvalidDeclNamesPass'
Pass 'CppSharp.Passes.CheckIgnoredDeclsPass'
    Decl 'reader' was ignored due to invalid access
    Field 'OMETIFFReader::reader' was ignored due to ignored type '::std::unique_ptr<::ome::files::in::OMETIFFReader, ::std::default_delete<::ome::files::in::OMETIFFReader>>'
    Function 'operator=' was ignored due to ignored param
    Decl '_First' was ignored due to invalid access
    Decl '_Last' was ignored due to invalid access
    Decl '_First' was ignored due to invalid access
    Decl '_Last' was ignored due to invalid access
    Function 'allocator' was ignored due to ignored param
    Function 'allocator<_Ty>' was ignored due to ignored param
    Decl '_Myval2' was ignored due to invalid access
    Decl '_Myval2' was ignored due to invalid access
    Field '_Compressed_pair::_Myval2' was ignored due to ignored type '::std::_String_val<::std::_Simple_types<char>>'
    Decl '_Myval2' was ignored due to invalid access
    Decl '_Myval2' was ignored due to invalid access
    Decl '_Myval2' was ignored due to invalid access
    Typedef 'pointer' was ignored due to ignored type
    Field '_Unique_ptr_base::_Mypair' was ignored due to ignored type ''
    Typedef 'pointer' was ignored due to ignored type
    Field '_Unique_ptr_base::_Mypair' was ignored due to ignored type '::std::_Compressed_pair<::std::default_delete<::ome::files::VariantPixelBuffer>, ::ome::files::VariantPixelBuffer*>'
    Typedef 'pointer' was ignored due to ignored type
    Field '_Unique_ptr_base::_Mypair' was ignored due to ignored type '::std::_Compressed_pair<::std::default_delete<::ome::files::in::OMETIFFReader>, ::ome::files::in::OMETIFFReader*>'
    Typedef 'pointer' was ignored due to ignored type
    Field '_Unique_ptr_base::_Mypair' was ignored due to ignored type '::std::_Compressed_pair<::std::default_delete<::ome::files::out::OMETIFFWriter>, ::ome::files::out::OMETIFFWriter*>'
    Typedef 'type' was ignored due to ignored type
    Typedef 'type' was ignored due to ignored type
    Typedef 'type' was ignored due to ignored type
    Property '_Buf' was ignored due to ignored decl
    Property '_Ptr' was ignored due to ignored decl
    Property '_Alias' was ignored due to ignored decl
    Field '_String_val::_Bx' was ignored due to ignored type '::std::_String_val<::std::_Simple_types<char>>::_Bxty'
    Decl '_Mypair' was ignored due to invalid access
    Field '_String_alloc::_Mypair' was ignored due to ignored type '::std::_Compressed_pair<::std::allocator<char>, ::std::_String_val<::std::_Simple_types<char>>>'
    Decl '_Mypair' was ignored due to invalid access
    Field '_String_alloc::_Mypair' was ignored due to ignored type ''
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string<_Elem, _Traits, _Alloc>' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Function 'basic_string' was ignored due to ignored param
    Property '_Buf' was ignored due to ignored decl
    Property '_Ptr' was ignored due to ignored decl
    Property '_Alias' was ignored due to ignored decl
    Field '_String_val::_Bx' was ignored due to ignored type '::std::_String_val::_Bxty'
    Decl 'buffer' was ignored due to invalid access
    Field 'PixelBuffer::buffer' was ignored due to ignored type '::std::unique_ptr<::ome::files::VariantPixelBuffer, ::std::default_delete<::ome::files::VariantPixelBuffer>>'
    Function 'operator=' was ignored due to ignored param
    Decl 'writer' was ignored due to invalid access
    Field 'OMETIFFWriter::writer' was ignored due to ignored type '::std::unique_ptr<::ome::files::out::OMETIFFWriter, ::std::default_delete<::ome::files::out::OMETIFFWriter>>'
    Function 'operator=' was ignored due to ignored param
Pass 'CppSharp.Passes.CheckFlagEnumsPass'
Pass 'CppSharp.Passes.CheckDuplicatedNamesPass'
Pass 'CppSharp.Passes.GenerateAbstractImplementationsPass'
Pass 'CppSharp.Passes.MultipleInheritancePass'
Pass 'CppSharp.Passes.DelegatesPass'
Pass 'CppSharp.Passes.GetterSetterToPropertyPass'
Pass 'CppSharp.Passes.StripUnusedSystemTypesPass'
Pass 'CppSharp.Passes.SpecializationMethodsWithDependentPointersPass'
Pass 'CppSharp.Passes.ParamTypeToInterfacePass'
Pass 'CppSharp.Passes.MarkUsedClassInternalsPass'
Pass 'CppSharp.Passes.CaseRenamePass'
Generating code...
Generated 'Std.cs'
Generated 'OMEFiles.cs'

Hello,
I am also facing the same issue.
I generated the binding files using cppsharp.
I included the generated .cs and symbols file in my C# application to call the C++ methods.
But the call is failing with the error that "Entry point  not found".
Here is what I debugged:

I used the Dependency Walker software to see the name of the functions that the C++ dll has.

The dll did not have my C++ functions.

The symbols file only has the class name. It did not have my C++ function name in the symbols file.

I added the extern in my C++ header file.

extern "C" class ArithmeticFunctions
{
public:
_declspec(dllexport) double Add(double arg1, double arg2);
_declspec(dllexport) double Subtract(double arg1, double arg2);
_declspec(dllexport) double Multiply(double arg1, double arg2);
_declspec(dllexport) double Divide(double arg1, double arg2);
};

Here is the symbols that I printed out using the code.

Code:
foreach (var symbol in driver.Context.Symbols.Symbols)
{
Console.WriteLine(symbol.Key);
Console.WriteLine(symbol.Value);
}
Symbols:
?Add@ArithmeticFunctions@@QAENNN@Z
CppSharp.AST.NativeLibrary
?Divide@ArithmeticFunctions@@QAENNN@Z
CppSharp.AST.NativeLibrary
?Multiply@ArithmeticFunctions@@QAENNN@Z
CppSharp.AST.NativeLibrary
?Subtract@ArithmeticFunctions@@QAENNN@Z
CppSharp.AST.NativeLibrary

I used the Dependency Walker software to see the name of the functions that this new C++ dll has, and it matches with the above symbols.

When I looked at the generated .cs file, I see the below.
    [SuppressUnmanagedCodeSecurity]
     [DllImport("ArithmeticLibrary", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
    EntryPoint="?Add@ArithmeticFunctions@@QEAANNN@Z")]
    internal static extern double Add(global::System.IntPtr __instance, double arg1, double arg2);

As you can see the EntryPoint defined in the .cs does not match the function name generated by the C++ dll.
Hence my C# code is failing to find the Entry point.

When I chanaged the code in the .cs as follows, my C# code succeeds.
     [SuppressUnmanagedCodeSecurity]
     [DllImport(@"C:\Users\vipulpa\OneDrive - Microsoft\Surface(E-Drive)\CrossPlatformApps\Sample\ArithmeticLibrary\Debug\ArithmeticLibrary.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
         EntryPoint= "?Add@ArithmeticFunctions@@QAENNN@Z")]

Please note that I changed the below:

The entry point generated in the .cs file
Changed the Calling Convention to This Call.
Changed the DllImport to refer to the original C++ generated dll, not the dll generated by the generator.
The dll generated by the generator did not have those function names, when I saw it in the Dependency Walker software.

My understanding is that the cppSharp framework should do all this by default, and I do not have to change any of the generated files. Also, the C++ code is provided to us, and we cannot change the code, i.e. cannot add Extern statement like I did as part of my debug. My understanding is taht the cppSharp generates the symbols
Sample.zip
files, that I include in my C# application and everything would work.
Can you please help me solve these issues. I am attaching the code as well. The solution is in the folder: Sample\ArithmeticLibrary
Sample.zip


Add more XDS operational metrics

Number of messages
Total message size (counter) by type

Where are these currently defined (the XDS operational metrics)?
context: if I wanted to add this I'm not sure where to start.

src/xds/metrics.rs is what we have currently

Is message an existing type somewhere? Or, does it need to be created (like how ConnectionTermination is in metrics.rs) and should it have any particular fields?

I think we would just report based on https://github.com/istio/ztunnel/blob/f18be9cd87d760d9aed7c7cab0ae984d6bb7b1a7/src/xds/client.rs#L672.
Note size on that line is actually count. I think we also want the byte size. Which would be raw.resource.unwrap().value.len() on each responses.resources.


Could not load file or assembly System.Text.Json  originating from COM visible assembly

Posting as a question, not a bug since my use case is unusual. Thank you in advance for any information.
I have an COM visible assembly  (.dll) targeting .NET 4.7.2  that I register on target machine with with regasm  /tlb /codebase
I have COMVisible=True methods that call into Playwright methods.
When those COMVisible=True methods are called from a Winforms exe  (also .Net 4.7.2) that references it, Playwright functions normally. This tells me everything on the machine is installed correctly.
However, if I call my "initialize Playwright" COM Visible method from Visual Basic for Applications (32 bit).
I get System.IO.FileLoadException: Could not load file or assembly 'System.Text.Json, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
I set up Fusion logging and I can see that my paths for where .dll's live are correct (Expected Path is Here below)
OG: Appbase = file:///C:/.. Expected Path is Here
LOG: Initial PrivatePath = NULL
Calling assembly : Microsoft.Playwright, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=db12f80f85d8ba23.
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Text.Json, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
LOG: Attempting download of new URL file:/// file:///C:/Expected Path is Here/System.Text.Json.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Revision Number
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
more of the Fusion log...
System.IO.FileLoadException: Could not load file or assembly 'System.Text.Json, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'System.Text.Json, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Microsoft.Playwright.Transport.Connection..ctor()
at Microsoft.Playwright.Playwright.d__0.MoveNext()

Hey sorry for the late reply. Do you have a small repro which we can clone and run locally?

Hi Max,
Thanks for reaching out and sorry for the delay, I was out on vacation.
I created a repro (attached)
There are two projects in the solution
ReplicatePlaywright_SJT_COM (Replicate)
DemoCallReplicatePlaywright_SJT_COM (Demo)
If Replicate is run directly, Playwright will initialize successfully and would work
If Demo is run, which simply creates an instance of Replicate then you’ll see the System.Text.JSON error
IMPORTANT
I found that I needed to copy a .playwright folder into …ReplicateDir\DemoCallReplicatePlaywright_SJT_COM\bin
I made a note in the code about this as well. This isn’t a big deal for me in my overall product since I can install this via InstallShield - (I have seen a feature request about being able specify the .playwright folder location which would be nice).
Again thank you very much for looking at this!
Regards,
Thom
From: Max Schmitt @.>
Sent: Friday, March 18, 2022 5:25 PM
To: microsoft/playwright-dotnet @.>
Cc: Thom Blackwell @.>; Author @.>
Subject: Re: [microsoft/playwright-dotnet] Could not load file or assembly System.Text.Json originating from COM visible assembly (Issue #2055)
Hey sorry for the late reply. Do you have a small repro which we can clone and run locally?
—
Reply to this email directly, view it on GitHubhttps://url.emailprotection.link/?bAAB0WCJP1gEVQRSaqzXrXJ8mpCfm1twCJZPg2CFIKG3ePgHvp6XA9xBQ7rHyB7qVqkF64S-lbQWePP-ueBDt6E1MeZgiNuM_hmF3f8K-RXesrmiEOHEeKB-btEFlri1uZQUmWSFeepl2kHjVaIuoYJpwCPuAPYJEzRzLVcITZl4~, or unsubscribehttps://url.emailprotection.link/?bzjMgwnMBJmuHwbYIACBnB6Dp49CKkjDAP2XDeVKQ3nrKg2-VP-Qjg8z29nh6aITkuJ_yp6Fi413n3fke28E9ZcVSmyA9nNcB5a0Jy-FOYBE2-qAt7rPP41k-vKhHRxx5glzwsTyIQ_sKQJ52igH3k7OLtufH7tnK559XTBSHkIo~.
Triage notifications on the go with GitHub Mobile for iOShttps://url.emailprotection.link/?bkKL5sMaUUA_0qoG83jeoHd8PS6WYiD2HfkDXhteo_V3nruZyiCzCxD9UdyohYjhpl3Yet7fiNaJgFeIJAHHYcFCy6AIi2B1u9NtoK57nCR4aSevcc39e6Qfqw3RMQwm7x-GHH4Odm9Nvp_1GIiPdeT78l1XiGg6YQgmKWoTp8g8~ or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-emai l%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>

Adding zip file with repo code since I don't see it attached here
ReplicateDir.zip
.

Didn't see the zip file attach - adding
ReplicateDir.zip
.

Sorry for the late response, I was out of office.
I tried to reproduce it, but was not able to. I followed the steps in the repro which included cleaning the project (remove bin and obj folder), restoring the nuget dependencies, building the project and running. I did not have to manually copy the .playwright folder over, rebuilding seems to work for me.
Platform: Windows 11, VS 2022. Since I didn't modify anything, I guess net47 was used like in your use-case.

Hum, so both projects worked for you. That is unfortunate 😊
I’ll give what you did a try. I’ll also create a clean windows VM and try the project outputs to see if they work there.
From: Max Schmitt @.>
Sent: Tuesday, April 5, 2022 8:23 AM
To: microsoft/playwright-dotnet @.>
Cc: Thom Blackwell @.>; Comment @.>
Subject: Re: [microsoft/playwright-dotnet] Could not load file or assembly System.Text.Json originating from COM visible assembly (Issue #2055)
Sorry for the late response, I was out of office.
I tried to reproduce it, but was not able to. I followed the steps in the repro which included cleaning the project (remove bin and obj folder), restoring the nuget dependencies, building the project and running. I did not have to manually copy the .playwright folder over, rebuilding seems to work for me.
Platform: Windows 11, VS 2022. Since I didn't modify anything, I guess net47 was used like in your use-case.
—
Reply to this email directly, view it on GitHubhttps://url.emailprotection.link/?bPqXUt16pQ_zgNNoLimD4eEhq-UpnUJ4PSpVHKulKN1jg67P1ZE6Zt_EakgMEGUkUyRXrHWiQyGEjOOp7mer6_9O2FDyO9SfCmhfr3vVk5URNQwrAwtalNzazcXSynRJ54_Qk0n3gdJszzJiaHTJGaLMrXvMpuJnetsIvIwaFSpE~, or unsubscribehttps://url.emailprotection.link/?b66-nFBDRJdxzlZZ6WRm0TgHOUJYmXArECbXXARf3jrFPWVC0HpbDctOMCYTmDNT7YFqh-dOyuHTsqzpPcZxZOGEuaFT91UGPIsfCAAPtWJEWz8lejo-ILfKeT5i2tuW692AZ-JxAXrTvlcih3OJD-GnyDeesIv4r9KAPkZd7EYg~.
You are receiving this because you commented.Message ID<EMAIL_ADDRESS>

Hum... I just tried the same thing you described with the solution on different machine. If I run ReplicatePlaywright_SJT_COM works perfectly. If I run DemoCallReplicatePlaywright_SJT_COM I get the same JSON error.

Still trying to resolve this problem.
For those following this there are two projects, one that calls an assembly (ReplicatePlaywright_SJT_COM)  that does Playwright stuff. Calling the assembly from a different project  DemoCallReplicatePlaywright_SJT_COM fails. Calling the class from a form within ReplicatePlaywright_SJT_COM works.
Some more data. I uninstalled the playwright Nuget package in ReplicatePlaywright_SJT_COM. Then added System.Json.Text v 6.0.0 since that's the version the error references. Added Nuget package back got
Warning	NU1605	Detected package downgrade: System.Text.Json from 6.0.1 to 6.0.0.
When I ran, DemoCallReplicatePlaywright_SJT_COM
The error changed now its:
Could not load file or assembly 'System.ComponentModel.Annotations, Version=<IP_ADDRESS>
I tried the same trick as above, this time trying to add the System.ComponentModel.Annotations package  - but there is not a version <IP_ADDRESS> available
Can you provide a list of what dlls are needed  for Playwright. I find that using my own xcopy to install dlls is far more reliable than relying on Nuget to do the xcopy.

Hey I was developing a WPF application in .NET 5 and was having a similar error and finally just fixed it. I ended up clearing my NuGet cache, downgrading to .NET 3.1, restarting my computer, and that worked. I know it's not super specific, but I thought maybe it might help someone.

I was trying something similar to what Julian-C10 did.   After clearing everything and re-addin Playwright nuget
I see this in the output - when I have "fixed" the System.Text.JSON 6.0 error - then I get errors referencing System.Runtime.CompilerServices.Unsafe as described above.
The question I have is why is this mismatching of versions happening at all? Is there a way to simplify what Playwright needs dependency wise?
Installed System.Runtime.CompilerServices.Unsafe 6.0.0 from https://api.nuget.org/v3/index.json with content hash /iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==.
Installed System.Runtime.CompilerServices.Unsafe 4.5.3 from https://api.nuget.org/v3/index.json with content hash 3TIsJhD1EiiT0w2CcDMN/iSSwnNnsrnbzeVHSKkaEgV85txMprmuO+Yq2AdSbeVGcg28pdNDTPK87tJhX7VFHw==.

I've created a work around by putting a .config file with the below binding redirects into the directory of the application that is calling my playwright enabled assembly.
This one fixes the System.Text.JSON missmatch - its shipping the <IP_ADDRESS> dll but the package information is somehow saying <IP_ADDRESS>

But one you address that issue, you then need this:

Closing since it seems working with the workaround above. We also bumped the JSON dependency etc. so it should not yield the same error anymore.
For further issues please file a new repro.

Hi I am facing the same error, what context info should I provide?


Proposal: Investigate on how to "Minimize Toolchain Specific files in DFPs"

Currently there are several toolchain specific files in DFPs (i.e. startup code in assembly language, linker scatter file, etc.).
I suggest that we investigate into options on how to minimize this, for example with:

startup code that is a pure C implementation (and ideally works for any compiler)
linker configuration that works via a header file (i.e. memory-layout.h) that is input to a C pre-processor

Relates to #615

C startup code exists already here https://github.com/ARM-software/CMSIS_5/tree/develop/Device/ARM/ARMCM3/Source
Could we make it device agnostic by generating the interrupt vector table using CMSIS-SVD and include this vector table file instead?

@JonatanAntoni I think changing the startup component to C files and working on a linker script with regions_<device_or_board>.h (as in https://github.com/Open-CMSIS-Pack/devtools/blob/main/tools/projmgr/docs/Manual/Linker Script File (Proposal).md) is all we need.
Could you create an example

The linker topic is further discussed in #655

Investigation has been completed.  Result: Linker Script generation, C startup code.
Still open is the Flash algorithm, but there might be a solution that works.  This is currently in investigation.


Add and implement snake-camel conversion functions

Fixes #16 and #17.  This PR introduces two new functions that convert camel-cased keys to snake-cased in a given object, and vice versa.  A list of keys to convert can also be passed in, allowing for selective key conversion so that we are not affecting custom variables.  Furthermore, the functions are written to only affect existent keys, so that if we're converting from camel casing to snake casing, but user_hash is defined and userHash is not, it doesn't set the former to undefined.
Note: the tests are passing locally.  I'm not sure why they're failing here.
(P.S. for code clarity and to reduce the length of function names, I'd suggest renaming the mapping functions from mapRawXXXToXXX to mapSnakeToCamelXXX, and renaming "Raw" types to SnakeXXX and CamelXXX, where the XXX type is defined as SnakeXXX | CamelXXX.)

I don't know why Cypress is failing, since it's not failing locally...  Probably a fluke?

I deliberately chose to use the mappers to have full control over my mapped attributes. This way it is more dev-friendly to maintain (if Intercom adds/removes any attributes). All "default" attributes that are listed here should be camel case typed in react-use-intercom.
Also by using the functions snakeToCamel and camelToSnake we're losing our types.
In #16 user_hash should be used as userHash (because it is a "default" attribute, not a "custom attribute").
I'll update the docs to make this way of beviour much clearer.
Default props should be camel cased, custom attributes snake cased (for now).

Would you be willing to explain why this package is going for camel casing for the default props?  So far, I haven't seen any real benefits for camel casing, and with the issues in the mapping functions delaying our deployment featuring this package, I'm curious as to why.

Also by using the functions snakeToCamel and camelToSnake we're losing our types.

Are you talking about some sort of TypeScript thing?  I'm not all that well-versed in TypeScript, I've only dabbled with it here and there.

I've been troubled by the way we have to integrate Intercom in a React application. It was not how I wanted to write code, by pasting a snippet into the head tag, calling window.Intercom...
Conclusion some bad dev-experience for this specific use case: React Web application.
As far I know camel casing has been a naming convention in JavaScript for years. I peronsonally haven't seen any JavaScript source code that has been using any other than camel casing.
Because camel casing is somewhat a standardized naming convention I adopted it in react-use-intercom. This follows the convention and improves the developer experience.
Yes indeed, this is purely a TypeScript thing.
I'm planning to provide a customAttributes field in boot and update where you can pass your raw snake cased custom attributes.


fix: fixing margin and align items at app__stamps

https://github.com/ecomclub/storefront-template/issues/75


SQL Managed Instance ARM Template

Scenario which you are working on
SCENARIO : Deploy an Azure SQL Managed Instance Deployment on AKS using an ARM Template
Describe the bug

The deployment finished without error but when the Logon script finished and I launch the Azure Data Studio, the Azure Arc Controller is not registered and when I try to add it I recieve the following error : "Could not connect to controller https://<IP_ADDRESS>:30080. Microsoft Privacy statement and Azure Data CLI license terms have not been accepted. Execute the command: Azure Data CLI: Accept EULA to accept EULA to enable the features that requires Azure Data CLI."

And in the Azure Portal , in the "SQL Managed Instance - Azure Arc" , the MI is not there. Is it normal ?

So to resume :

Unable to see or to register the Controler in Azure Data Studio

in the "SQL Managed Instance - Azure Arc" , the MI is not there.

To Reproduce

Execute the deplyment command :
az deployment group create --resource-group arc_aks_migr --name arcdatasqlmidemo --template-uri https://raw.githubusercontent.com/microsoft/azure_arc/main/azure_arc_data_jumpstart/aks/arm_template/mssql_mi/azuredeploy.json   --parameters azuredeploy.parameters.json

See error in Azure Data Studio and in the Azure Portal , The SQL Managed Instance - Azure Arc" , the MI is not there.

(Note That I can connect to the MI with Azure Data Studio and I well see the Database)
Expected behavior

See the Azure Data COntroler in Azure Data Studio
See the SQL MI in the Azure Portal , in the "SQL Managed Instance - Azure Arc"  window

Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Thank you

Thank you @sqlgirl3. Few comments here:

In the first time Azure Data Studio will open, you need to accept the EULA

Currently, this is a manual step but we will automate this in the future. This is by design.

Since Azure Arc enabled data services is still in preview, we still don't have some functionalities automated as part of the Jumpstart scenarios. For now, managing the SQL instance via the Azure portal requires manual steps which are documented in our official docs.
https://docs.microsoft.com/en-us/azure/azure-arc/data/monitoring-log-analytics-azure-portal-managed-instance

Thank you @sqlgirl3. Few comments here:

In the first time Azure Data Studio will open, you need to accept the EULA

Currently, this is a manual step but we will automate this in the future. This is by design.

Since Azure Arc enabled data services is still in preview, we still don't have some functionalities automated as part of the Jumpstart scenarios. For now, managing the SQL instance via the Azure portal requires manual steps which are documented in our official docs.
https://docs.microsoft.com/en-us/azure/azure-arc/data/monitoring-log-analytics-azure-portal-managed-instance

Oh thank you for the clarification. I closed the Azure Data Studio windows to quickly and I missed the EULA button.
For MI deployment, OK I will do it manualy.
I would like to thank you for both scenarios (SQL Server & AKS/MI) of the jumpstart

Oh thank you for the clarification. I closed the Azure Data Studio windows to quickly and I missed the EULA button.
For MI deployment, OK I will do it manualy.
I would like to thank you for both scenarios (SQL Server & AKS/MI) of the jumpstart

@

@

@sqlgirl3 Could you please be so kind and post the command here that you executed manually?


multiline headers not handled

While RFC 7230 deprecated mutliline headers (search around for obs-fold in the RFC, they're still something you sometimes encounter. I noticed this while using the multipart_mime library, which in turn uses httparse to handle headers in a MIME message. Here's a failing test case:
    req! {
        test_multiline_header,
        b"GET / HTTP/1.1\r\nX-Received: by <IP_ADDRESS> with SMTP id whatever;\r\n        Wed, 21 Jun 2017 09:04:21 -0700 (PDT)",
        |req| {
            assert_eq!(req.headers.len(), 1);
        }
    }

I'm not sure how to actually fix the issue, but I figured I'd at least report the bug.

This seems like a duplicate of #68 (of perhaps that one is a duplicate of this, but the newer bug has a response); line folding is not (currently?) supported because of its complexity.


Fix crash due to not handling dialog window close event

Fixes crash from #219
Quick link to line defining GTK_RESPONSE_DELETE_EVENT, which is the response when the dialog window is closed:
https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/gtkdialog.h#L60

Thanks!


⚠ Bofrost.de has degraded performance

In 17a18d3, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1602 ms

Resolved: Bofrost.de performance has improved in 1c04031.


bug: Vue routing in tabs mode cause re-render

Bug Report
Ionic version:
[x] 4.4
Current behavior:
Simple tabs structure in vue project with ionic vue router. When I switch tab previous component is removed from DOM and after that It needs to be fully re-rendered when I go back to that tab. It's reproducible also on ionic-vue-conference app. But working correctly on ionic-conference-app.
Expected behavior:
Component doesn't get removed but will be hidden.
Steps to reproduce:

Related code:
<ion-tabs>
    <ion-tab tab="dashboard">
        <!--                <DashboardIndex />-->
        <ion-vue-router name="dashboard" />
    </ion-tab>
    <ion-tab tab="benefits" :routes="['page2']">
        <ion-vue-router name="page2" />
    </ion-tab>
    <ion-tab tab="results" :routes="['page3']">
        <ion-vue-router name="page3" />
    </ion-tab>
    <ion-tab tab="profile" :routes="['page4']">
        <ion-vue-router name="page4" />
    </ion-tab>
    <template slot="bottom">
        <ion-tab-bar :key="1">
            <ion-tab-button v-for="tab in tabs" :key="tab.routeName" :tab="tab.routeName">
                <ion-label>{{ tab.title }}</ion-label>
                <ion-icon name="home"></ion-icon>
            </ion-tab-button>
        </ion-tab-bar>
    </template>
</ion-tabs>

@xar what's the behaviour if the contents of the tabs are not ion-vue-router elements but a Vue component or simple HTML instead?

@xar if you look closely, the contents of the router are now an empty comment, this is due to the fact that the router renders an empty node as it did not match the route you're currently on, this is ultimately an issue with the Vue router, you can save it's state though by doing this:

Using router-view instead of ion-vue-router
Wrapping the above in keep-alive

The reason for switching to router-view is due to a hard requirement of the transition element being the parent of keep-alive as per the docs. Unfortunately this is what is powering ionic transitions in Vue.

@michaeltintiuc aa, you are correct. I understand now. In the end I have used router-view and probably will end making some ionic like transitions other way

I'll be working towards enabling keep-alive support for ionic-vue-router it is a nice feature to have

There are tons of other bugs in the ionic-conference-app example. The ion-tabs is unusable at the moment. Looking forward seeing some updates! 🍺

I totally forgot to mention the PR here, it's been open for quite a few days now ;)
https://github.com/ionic-team/ionic/pull/18561


New version of the application

If there is no progress compared to Deliverable 2, give 0.
The implementation should have been started.
Aim to have developed at least 1 or 2 of the core features of your app.

You should use test-driven development. +5 for your application if you used TDD. Next deliverable TDD will be required.

At least 1 feature is started, and there are at least 3 automated tests written for the feature (some of which may be failing and thus commented out)

If no feature implementation is started, or there are not 3 automated tests, give 0.

The developers should lead this and are expected to, as needed, to review/complete parts of the Interactive React Textbook earlier than other team members, do self-directed learning using Google, StackOverflow, other online resources, and ask people or other classmates questions. Developers are expected to help any other team members with technical questions.

If there is no code/HTML/scripts, and no changes from last time, this part will be graded as 0
If there is no HTML/CSS UI (this may include React components or just plain static HTML/CSS ) that looks similar to at least one of your UI mockups (or you have no UI mockups in your SRS, even if there is some UI), deduct -10 points
If login is not finished, -5 points
As a reminder, everyone on your team should be contributing to the wireframes/mockups for your application. In general it is best practice to make a simple UI mockup/sketch before implementing any UI more complicated than a single button or HTML element, this is for example covered in the official React documentation and also there is a longer example here in the web textbook

made some progress on this with https://github.com/COS420-Fall24/VibeCheque/issues/2

okay, this should probably be quality checked with the video

You and Izge killed it on this deliverable. I do intend to really dig into the development going forward, but the two of you are really giving this project life!


Form values are lost when using SSR and hydrate

This is a timing issue, the timeline looks a bit like this:

server renders a form using ReactDOMServer.renderToString
browser autofills the form
at some later point, react on the client kicks in via ReactDOM.hydrate
onSubmit will return empty form values, although the input fields do have values.

I have a PR coming up shortly with a proposed fix.

This is especially annoying when I want to build a login form with server side rendering and later hydration.
The browser auto-fills the credentials, but submitting the form right away gives me empty values.

I'm not sure if this is related, but I'm observing the preSubmit function being executed after the form submission in my upgrade from 3.4.2 to 3.5.3.

It seems to be now fixed (#302) - but it's not passing the values resulted from preSubmit. Almost there - I'll try to hack something here to see if works.


GPUBuffer.setSubData is deprecated

I tried running the WebGPU Playground sample on Chrome Canary.
However, it seems that the following error is output to the console.
GPUBuffer.setSubData is deprecated: use createBufferMapped (with copyBufferToBuffer if needed) (but note the design/spec of this API is still in flux)

This is probably because the methods of the WebGPU API you're using are outdated.
Also, Firefox Nightly is starting to support WebGPU, but it doesn't seem to support the older methods.
TypeError: verticesBuffer.setSubData is not a function

Thanks!

I have confirmed that the WebGPU sample works in Firefox Nightly.


better workflow names

Rename workflow steps to have more meaningful step names:

step1data -> analyse_data
step1mc -> analyse_mc
step2 -> make_plot

as discussed briefly with @clelange. Any better naming suggestions?

I think the proposed names are fine, details can then be given when addressing #7


Only check date range when defined

It can happen and it has happened to me, that the date of the videos recorded by the gopro is in the future and now they are not imported
I have created a function to group the check of date ranges and it only checks the dates in case they contain any value
Type:

[x] Bug fix
[ ] New feature
[ ] Breaking change
[ ] Documentation

Camera:

[ ] GoPro
[ ] Insta360
[ ] DJI
[ ] Android
[ ] This PR adds a new camera

Component:

[ ] Core logic
[ ] Import
[ ] Merging
[ ] Firmware Update
[ ] Video Manipulation

Checklist before approval:

Linter pass
Build pass

By the way, I have seen https://github.com/markusmobius/go-dateparser which may be interesting for date management, which is a more advanced function,
If you want you can modify the code to add it
How about?

Go's date parser is already pretty good.

I have to test this extensively before merging.

For now, it did not include more changes.
I propose the markusmobius/go-dateparser library for another pull request.


Add some new settings to PTVS

fixes #7107
fixes #7105
Update the settings in PTVS to match what Pylance currently has. See https://github.com/microsoft/pyrx/blob/bcfcc39bdb1fd85fcbf2eb0fc19f657bc2a2f2d3/packages/vscode-pylance/package.json#L883
Two new settings are now visible to users:

Indexing

Import Format (Note that this new enhancement is not in the stable version yet, it's only tested on prerelease pylance)

Absolute:

Relative:

Just creating the PR for now, will wait until import format is in pylance stable to merge it in.

The Import Format dropdown doesn't look horizontally aligned properly on the left side, when compared to the other dropdowns. You can use snaplines to make sure they are all have the same offset. Let me know if you need help doing this.

@AdamYoblick I adjusted the margin a little bit, the alignment issue should be fixed.


Fix pytest

Part of issue #38

I suggest to resolve the inheritance question in another PR (issue: https://github.com/google/scaaml/issues/79)


CARDS-2587: Malfunction in forms with mandatory file questions and requireCompletion = true

See https://phenotips.atlassian.net/browse/CARDS-2587 for bug replication and testing guide.

Regression testing: session expiry functionality may have been impacted and needs to be checked

The red box should disappear and the save button should not be disabled once the file was added.

Expected behavior is below:
Missing question is in the red box and Save button is disabled ( note the button lablel should display Save not Saved)

Once value is added, the red box disappear and the Save button is enabled:


[ALLUXIO-2556] Set classloader when entering Alluxio land from Hadoop Cli

https://alluxio.atlassian.net/browse/ALLUXIO-2556
This PR fixes a problem when a user is using Alluxio with hadoop jar -libjars without setting HADOOP_CLASSPATH. In this case, user may see login error like "Failed to login: no Alluxio user is found`. The root cause is two classloaders are introduced by hadoop jar
      if(libjars!=null && libjars.length>0) {
        conf.setClassLoader(new URLClassLoader(libjars, conf.getClassLoader()));
        Thread.currentThread().setContextClassLoader(
            new URLClassLoader(libjars,
                Thread.currentThread().getContextClassLoader()));

When Hadoop creates Alluxio FS, the first one is used to load Alluxio FS and related classes; while when entering Alluxio world, the second is used as context one. Having two classes causes confusion as a class is actually identified by the pair (className, classLoader). So when Alluxio security is turned on, authentication by JAAS will have trouble to recognize alluxio.security.User and causing failures like "Failed to login: no Alluxio user is found`.
This fix sets the classloader to be the one that has loaded Alluxio classes to context classloader to solve this problem. local tests verify the goal achieved.

alluxio-bot, check this please

LGTM
thanks @apc999 for the fix!

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/13359/
Test PASSed.


hyperscript css selector issue

When using Hyperscript in combination with JTE I'm getting a templating error from JTE.
I've setup a demo project to showcase: jte-hyperscript-bug, simply checkout and run ./mvnw spring-boot:run
In the code you'll find one template, index.jte, there you can see the following:
<p _="on load log 'hello world from console'">Hello world</p>

<form action="/login" method="post" _="on submit toggle @disabled on <button[type='submit']/>">
    <input type="email" name="username">
    <input type="password" name="password">

    <button type="submit">Login</button>
</form>

The first hyperscript action (on the p element) works without issues (if you comment out the form). The hyperscript action on the form throws an error, due to the selector being used to target the button. I'm using the CSS selector defined in Hyperscript's documentation.
The error thrown is: gg.jte.TemplateException: Failed to compile index.jte, error at line 20: Unclosed tag <body>, expected </body>, got </form>
If you change it to the following implementation:
<form action="/login" method="post" _="on submit toggle @disabled on #submit-button">
    <input type="email" name="username">
    <input type="password" name="password">

    <button id="submit-button" type="submit">Login</button>
</form>

It does work without issues.

Nice. I was going to post the same.
I have exactly the same problem.
Unfortunately, even with @raw it doesn't work, like this:
<form action="/login" method="post" @raw _="on submit toggle @disabled on <button[type='submit']/>" @endraw>

Anyways, even if @raw would fix this case - I'd need to set some values/selectors based on the data that the controller provides to the view.

Thanks for reporting, I have a look at it!

Wow. It is amazing on how fast did you fix the issue. Thank you. <3

Nice, already available on Maven Central and just tested it out and it works. Thanks for the quick fix!

Thanks for the quick confirmation! 👍


Controller/Connection: Close DB connection

Close the DB connection after the healthcheck otherwise it will exhaust the user connections set by max_user_connections

Thanks a lot for your contribution @lgohyipex !


Fonts without postscript names cause neovide to crash

thread 'main' panicked at 'called Option::unwrap() on a None value', src/renderer/caching_shaper.rs:160:25

Backtrace: https://pastebin.com/NxqXKKhm
https://github.com/Kethku/neovide/blob/1f0d93ca3fce5b1fcafccc6bc81bbe0da206a6f2/src/renderer/caching_shaper.rs#L159-L160
Seems to be something to do with the font asset loading? I installed the following fonts system-wide and it spun up just fine.
https://github.com/Kethku/neovide/blob/1f0d93ca3fce5b1fcafccc6bc81bbe0da206a6f2/src/renderer/caching_shaper.rs#L12-L17
https://github.com/Kethku/neovide/blob/1f0d93ca3fce5b1fcafccc6bc81bbe0da206a6f2/src/renderer/caching_shaper.rs#L25-L26

Thanks for the bug report. I will look into it.

Adding a quick debug statement:
println!("Failed at: {}", skribo_font.font.full_name());
let font_name = skribo_font.font.postscript_name().unwrap();

I get:

Failed at: Tamzen
thread 'main' panicked at 'called Option::unwrap() on a None value', src/renderer/caching_shaper.rs:167:25

"Tamzen" is the font I'm using in my terminal, but more specifically "TamzenForPowerline". It's an OTB font for reference, but I'm not really sure why it's being passed in, I'll update if I find the solution.

That font is taken from the vim init guifont. What do you set there?

Nothing as far as I'm aware, nothing in my init.vim and running :set guifont just yields

guifont=

ooh I see now. The font doesn't have a postscript name...

I will look into this further later tonight

Schweet. Can confirm that setting guifont to a font with a postscript name at least allows neovide to launch.

Glad you got it working. I think there is a fix to be done here though as the app shouldn't crash when there are fonts without postscript names.

Frustratingly there doesn't appear to be a way to get a unique identifier for a given font :l

I replaced the offending line with:
let font_name = format!("{}:{}", skribo_font.font.full_name(), self.base_size);

Just to see what would happen, no more crash, but the font in question isn't getting built properly so the UI just goes blank. I know the font is compatible with Freetype so I'm not sure what's going on, I'll try to familiarize myself with the codebase and see if I can come up with something.

Very interesting. As some background, no one font has all of the symbols which people want in a vim client. SO to get around this we load multiple fonts with a fallback ordering. This way if a given codepoint isn't found in the first font, it can fallback to ones further down.
Unfortunately if a font earlier in the system is messed up, especially the first one which is used for grid size estimation, it can really bork the rendering.
You mentioned that the font was an "otb" font which I believe means it is a bitmap font. It is very possible that the font parsing just completely fails on such fonts. I haven't tested it locally...

Indeed, it's just a bitmap font in an OpenType wrapper, it appears a lot of the font loading is being delegated to font-kit correct? It seems they're relying on libfreetype for Linux, and FreeType handles the font just fine:

I'm confused, perhaps something needs to be updated in font-kit?

Neovide uses two font systems for its rendering: font-kit and skribo (which is a small wrapper around harfbuzz) to support a given font type, both need to have support for it. Skribo uses harfbuzz and font-kit, and honestly isn't that big, so really we just need support in font-kit and I should be able to recreate the skribo support myself.

@TristanCrawford  can you point me to the font you are using? I'd like to be able to download it locally so I can test out better error messages

Sorry, just saw this.
The Font (BDF):
https://github.com/sunaku/tamzen-font
Which was converted to OTB using the script referenced here:
https://fedoraproject.org/wiki/BitmapFontConversion

@TristanCrawford Can you verify if latest changes fixed this for you?

closing due to lack of response

closing due to lack of response


Documentation website failing to load

Good morning,
I'm having issues getting the Docs to load. For instance this page fails to load on my laptop: ScArches Models. I've tried different wireless networks and even used the 5G network without WiFi on my phone to try to load it, but no luck. Can't think of any reasonable explanation as to why is this going on unless there are some kind of new United States sanctions against the Theis lab.
Any tips? Some more immediate code I need is to save the output of my ExpiMap neural network training. It took several days so I want to make sure I don't lose it. A code snippet that can accomplish that would be lots of help until we are able to figure out the website issue.
Appreciate your time.
Best,
Vir Patel
(Tata Lab, Duke U)

@virpatel524 thank you, we are checking what happened.

@virpatel524 it should be up now.


Enable runc debug in shim

Enable runc debug for shim.
/cc @Random-Liu
closes #2243

LGTM

Codecov Report

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

@@           Coverage Diff           @@
##           master    #2314   +/-   ##
=======================================
  Coverage   45.51%   45.51%
=======================================
  Files          83       83
  Lines        9190     9190
=======================================
  Hits         4183     4183
  Misses       4331     4331
  Partials      676      676

Flag
Coverage Δ

#linux
50.04% <ø> (ø)
:arrow_up:

#windows
41.24% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

LGTM


Add debug info for CIS calls.

Coverage decreased (-0.008%) to 90.546% when pulling 02d98f9842ff3302724e2041d3f744afb56b0b9b on johngian:debug-cis-payload into dd78fab75252155fbee636edd2dd687722d8c3b1 on mozilla:master.


Updated copyright/license date to 2015 for new year.

Updated copyright/license date to 2015 for new year.

I think this should really be changed so it has copyright xxxx to xxxx rather than just 2015, as most of the code hasn't actually been modified in 2015

And do we need the date at all? It's something that will only need changing, can't we remove the year altogether?

I'm petty sure that it's better to have no year than an incorrect one, so
removing it would be fine with me.
On 2 Jan 2015 10:47, "Mattes D"<EMAIL_ADDRESS>wrote:

And do we need the date at all? It's something that will only need
changing, can't we remove the year altogether?
—
Reply to this email directly or view it on GitHub
https://github.com/mc-server/MCServer/pull/1697#issuecomment-68519037.

@benhc123, want to update the PR?

Fixed in master, x to x.


[bugfix] Invalid access to property or key 'ScriptName'

Purpose
Bugfix for Invalid access to property or key 'ScriptName' on a base object of type 'Dictionary'.
What happens
When ScriptName not exist on element, which is a Dictionary. It will be an Error throw.
Solution
# use `in` operator to check if key exists
if "ScriptName" in element:

Thanks


Automated cherry pick of #4650: fix: 避免创建rds account, database后未设置exteranl_id

Cherry pick of #4650 on release/2.14.
#4650: fix: 避免创建rds account, database后未设置exteranl_id

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.14@1e25efc). Click here to learn what that means.
The diff coverage is n/a.

@@              Coverage Diff               @@
##             release/2.14   #4652   +/-   ##
==============================================
  Coverage                ?   6.87%
==============================================
  Files                   ?     523
  Lines                   ?   88961
  Branches                ?       0
==============================================
  Hits                    ?    6118
  Misses                  ?   82337
  Partials                ?     506

Flag
Coverage Δ

#aFlag
6.87% <ø> (?)

Continue to review full report at Codecov.

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

/lgtm

/approve


override pipenv version in s2i

Upstream s2i does not allow setting the pipenv version. This commit
pins us to 2018.11.24, which is the last known working version.
This should be a temporary thing until upstream pipenv is updated.

Codecov Report

Merging #62 into master will decrease coverage by 0.27%.
The diff coverage is 47.36%.

@@            Coverage Diff             @@
##           master      #62      +/-   ##
==========================================
- Coverage   50.14%   49.86%   -0.28%
==========================================
  Files          13       13
  Lines         357      371      +14
==========================================
+ Hits          179      185       +6
- Misses        178      186       +8

Impacted Files
Coverage Δ

historical_system_profiles/archiver.py
0.00% <0.00%> (ø)

historical_system_profiles/deleter.py
0.00% <0.00%> (ø)

historical_system_profiles/db_interface.py
64.44% <60.00%> (-2.23%)
:arrow_down:

historical_system_profiles/config.py
94.11% <100.00%> (+0.17%)
:arrow_up:

Continue to review full report at Codecov.

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


Convention is to include '...' after tools menu action labels.

I need to check this, but I think I explicitly included or did not include these for a reason: for instance if the local run config is already configured, then it runs it immediately (no subsequent UI panel pops up).

Yea - create a new AE standard project, configured the local run server, then choose this option from the menu.
Notice that the server runs immediately.
I guess having ellipses here is still up for debate; but I used them to indicate that the action will or will not execute immediately.

I'm closing this based off of @etanshaul distinction between the action types.

I think you forgot to close it; closing


coc-clangd still use c++03 to diagnose

I've set "clangd.fallbackFlags": ["-std=c++11"] as issues said, but it still reports C++ 03 errors. Like this:

Here is my coc-settings.json:
{
    "clangd.fallbackFlags": ["-std=c++11"],
    "rust-analyzer.enable": true,
    "rust-analyzer.cargo.buildScripts.enable": false,
    "suggest.snippetIndicator": "✔",
    "suggest.enablePreselect": false,
    "suggest.noselect": true
}

My clangd version:

Apple clangd version 13.1.6 (clang-13<IP_ADDRESS>.5)
Features: mac+xpc

Sorry, I just found out that its the syntastic plugin's problem.


New dataset: FWS National Wetlands Inventory

Description
The Wetlands Data Layer is the product of over 45 years of work by the National Wetlands Inventory (NWI) and its collaborators and currently contains more than 35 million wetland and deepwater features. This dataset, covering the conterminous United States, Hawaii, Puerto Rico, the Virgin Islands, Guam, the major Northern Mariana Islands and Alaska, continues to grow at a rate of 50 to100 million acres annually as data are updated. The data layer is updated twice a year and these changes are reflected on the mapper and in the data downloads.
NOTE: Due to the variation in use and analysis of this data by the end user, each of states wetlands data extends beyond the state boundary. Each state includes wetlands data that intersect the 1:24,000 quadrangles that contain part of that state (1:2,000,000 source data). This allows the user to clip the data to their specific analysis datasets. Beware that two adjacent states will contain some of the same data along their borders.
Type of change

[x] New feature (non-breaking change which adds functionality)

How Has This Been Tested?
A subset of data have been ingested into the test instance.
Checklist:

[x] I have performed a self-review
[ ] Changelog has been updated
[x] Documentation has been updated
[ ] Unit tests pass locally (./scripts/test)
[x] Code is linted and styled (./scripts/format)
[ ] Update containers to non-scratch locations

Are those "kinds" of files (wetlands, wetlands_historical_map_info, wetlands_project_metadata, [whatever that last one is]) consistent across "items" / states / regions?

Yup, there are three main types of usable data,riparian, historic_wetlands, and wetlands: https://github.com/microsoft/planetary-computer-tasks/pull/102/files#diff-d3eb4d6c23def5a8a9a1e43424f0b87e1f6d5a6927ee2db595f0fb1669349e80R217-R221
The presence, number, and names of those files vary from state-to-state, which makes item_assets hard/impossible.

Thanks!


Fix a few minor issues encountered while trying Verigreen in our setup.

Fix a few Verigreen issues found while trying it out.

Spurious Jetty errors in the log file.			5f6db52
faq.offline property seems to be missing from the config.pro…  …			2cdf3be
VG_HOME property in jbossCacheConfig.xml is not picked up.			00651aa
Verigreen does not elegantly handle jenkins jobs with no par…  …			84383af
Merge related issues because of some bug in Jgit 3.0			f6cf4e9
Log is very verbose even when there are no commit items.			4482c66
Add the link to verigreen in the hook message. 	d7bed89

@shivarajugowda - thank you for that, I will get it tested!

@soninob let me know if you need anything else from me.


Lightning enablement

Patrick, from the contract believed that the wallet attached to MAVEN was able to work with Lightning
Lightning needs to be added as a base function

Lightning deposits should be working as intended. Please send a console screenshot of your errors if this is not the case.
There is no ability to withdraw with lightning, that would need to a separate feature request.


Add DefaultClause to BlockLike union

Here's a checklist you might find useful.

[ ] There is an associated issue that is labelled
'Bug' or 'Accepting PRs' or is in the Community milestone
[x] Code is up-to-date with the master branch
[x] You've successfully run jake runtests locally
[x] You've signed the CLA
[ ] There are new or updated unit tests validating the change

Add DefaultClause to BlockLike union.
I don't see a reason not to include it as it also has a statements property.

Hi @ajafff, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
We will now validate the agreement and then real humans will evaluate your PR.
TTYL, MSBOT;

Hi @ajafff, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
We will now validate the agreement and then real humans will evaluate your PR.
TTYL, MSBOT;

Thanks. For future references, we would appreciate it if you file an issue first.


Update Alacritty to v0.13.1

Update the Alacritty snap to latest release, v0.13.1.
https://github.com/alacritty/alacritty/releases/tag/v0.13.1

LGTM, thanks!

Glad to help!


[feature] add support for multival separation using combo feature

add support for multival separation using combo feature

 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.You have signed the CLA already but the status is still pending? Let us recheck it.


[BACKLOG-4574] [Google Analytics Input Step] Treat JSON error messages to something more readable (not with JSON structure)

Wrap exception with runtime one and provide better looking message @mattyb149

@mattyb149 Done.


Ignore unknown props in config

No jira - allow for unknown props in configuration for easier implementation of future features.

Coverage remained the same at 61.894% when pulling 4ed4907a520c1dfae71f1b62a29214a270012706 on gr-ignore-unknown into 65096b0673eeb71ee384568ffabfd07697eaf5e2 on develop.


Can't see item in iOS device

Hi,
i've a problem.
I think i've installed everything correctly, my iPhone is able to find a "Homebridge" device using Insteon app, but anything else. Nothing about the temperature sensor I've setup in openHab.
When I run homebridge from terminal the output said:
Loaded plugin: homebridge-openhab
Registering platform 'homebridge-openhab.openHAB
---
Scan this code...
It said nothing about any config.json or device/platform to load from.
I think I'm editing the right config.json file, but FYI the path is '/usr/lib/node_modules/homebridge-openhab/', and its content is:
  "bridge": {
    "name": "MyHomebridge",
    "username": "CC:22:3D:E3:CE:30",
    "port": 51826,
    "pin": "031-45-154"
  },
  "description": "This is an example configuration file with one fake accessory$
  "accessories": [
  ],
  "platforms": [
    {
      "platform": "openHAB",
      "name": "openHAB",
      "host": "<IP_ADDRESS>",
      "port": "8080",
      "sitemap":"HomeKit_Sitemap",
      "useLabelForName": true,
      "customAttrs" : [
        {
           "itemName":"gTermostatoCamera_TemperaturaAttuale",
           "itemLabel":"Termostato Camera",
           "itemManufacturer":"MySelf",
           "itemModel":"v1",
           "itemType":"TemperatureSensorItem"
        }
    }
  ]
}
The Sitemap i've setup for the bridge contains:
sitemap HomeKit_Sitemap label="Main Menu" {         Text item=gTermostatoCamera_TemperaturaAttuale  }
Any idea why I'm not able to find my temperature sensor in iOS?

Actually reading this #19 i think I figured it out.
I've made some modification, and now it seems is working, but i'm ssh-ing from work so i need to get back home to see if my iOS device will see the thermosensor.
Update will follow.

Here I'm updating this issue.
I'm now able to see from my iDevice the two item I've put in the sitemap.
The fact now is that in Lutron I can't see any of the custom attributes I've set for each item, not even the manufacturer for instance. So I can't interact with these item properly.
Homebridge did managed to find the proper configure.json file and get connected with openhab, but it seems not able to understand the customAttrs part.
Any suggestion?

Update number 3, i feel like i'm in the test team at my work place.
Anyway. I'm now able to control the thermostat i've setup in openhab and in the homebridge config.json.
I still can't see the info i've put in the json, like the manufacturer. Instead i'm able to read (and hear from Siri) the actual temperature in my room and set the target temperature.
Another issue is this: if I change the target temperature using the +/- button in the Lutron App, it changes by step of something like 0,222 °C. I think is something related to the °C to °F conversion, and maybe related to the Lutron App and not to the homebridge-openhab binding. Anyone had this behaviour with other app?
Sorry for such mess in the issues section.

I have the same issue custom attributes not showing correctly in both the insteon+ app and the elgato eve app.
I also have an issue with the Thermostat temperatures. I think it is a conversion issue as I have openHab reporting temps in Fahrenheit. Right now it shows my home being 162.5F which really should be 72.5F. Switching openhab to report in C should fix that. Not sure if that will help with your issue. Maybe try another app to rule out the Lutron one.

@MatteGary, I think I'm having the exact same problem as you did. I'm able to connect to homebridge using eve, but I don't see the one item I've defined so far. This is my sidemap:
sitemap HomeKit label="HomeKit" {Switch item=Light_Master label="All Lights"}
And same as you, my Homebridge is installed in /usr/local/lib/node_modules/homebridge/, not in /home/pi/.homebridge/, is that a problem overall? And which config.json file do I actually need to change, the one in /homebridge/ or the one in /homebridge-openhab/?
I'm relatively new to all this but would really appreciate some help, specifically what exactly you did to fix your problem :)

@tommp4 i think your sitemap is correct, and you have to modify the config.json present in the /homebridge folder. I have to launch homebridge with this command
sudo homebridge -U /usr/lib/node_modules/homebridge
in order to see the platform and accessories i specify in the config.json.
Maybe i'm doing something wrong but this is the only way i managed to make it work.

Yes ultimately it worked for me with that command as well now :) weird, but I'm just glad it does haha. Do you by any chance know if there's a way to execute that command at start up?

It's on my todo list XD

Did you happen to figure it out @MatteGary ? Also, I'm currently starting homebridge via an ssh command so it closes when I close the session, do you happen to know a way to keep it going?

Hi @tommp4 , i haven't work on that yet, I've been focused on setting up remote (and not) controlled lights in my terrarium. As soon as i will find some spare time i'll look into that, so I can't close my ssh session either :)


Hildebrand Glow

TBC

The IHD isn't getting gas readings so therefore isn't able to report on gas usage. These entities will remain null until the gas data is available.

Config flow = IHD MQTT settings > Mosquitto MQTT Broker < Home Assistant.

HA setup. MQTT entities to extract JSON data from MQTT topic and messages. Template sensors to calculate daily cost.

lovelace-appliances/glow

https://shop.glowmarkt.com/products/display-and-cad-combined-for-smart-meter-customers
Related:

#293

Old config notes

New local config notes

Unfortunately with non-fixed tariffs like Agile or Go this will fail to work as unitrate for electricity changes during the day.
https://github.com/megakid/ha_hildebrand_glow_ihd_mqtt/blob/e6a5f4ff43f5a10dcae48183f8f1db7687325174/custom_components/hildebrand_glow_ihd_mqtt/sensor.py#L152


Add more unit tests

Signed-off-by: yah01<EMAIL_ADDRESS>

Codecov Report

Merging #8 (9dae78e) into main (01b5cf6) will increase coverage by 8.28%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main       #8      +/-   ##
==========================================
+ Coverage   75.14%   83.43%   +8.28%
==========================================
  Files           3        3
  Lines         169      169
==========================================
+ Hits          127      141      +14
+ Misses         37       22      -15
- Partials        5        6       +1

Impacted Files
Coverage Δ

map.go
81.19% <0.00%> (+11.96%)
:arrow_up:

Continue to review full report at Codecov.

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


Animated List

Hi. I have wanted to create animated list. I tried many examples but none of them works with fish redux. Can you show some example?
Thanks

Sorry to reply to your question so late.
I read the source code of Animated List and its examples. It is a bit awkward to express and control in the fish-redux pattern, especially in conjunction with the adapter.
The main reasons are as follows

Animated List is not a widget for reactive expression. In other words, it is difficult to express it in a pure function.

Its "remoeItem" api is too difficult to use.  The api must set an AnimatedListRemovedItemBuilder parameter is confusing.

It's big blocker for using fish-redux :/

https://pub.dev/packages/diffutil_dart


(PDOC-43) Advanced formatting in parameters description

This commit allows you to add more advanced formatting in parameters
description. This is useful to add cross-module links, or to add new
lines, emphasis and so on.

This needs to be rebased now that your other PR has been merged. I'm thinking that you might want to add the htmlify call to the extract_param_details function so it can be used by other templates which call the method, probably on lines 57 and 75.
https://github.com/puppetlabs/puppetlabs-strings/blob/master/lib/puppet_x/puppetlabs/strings/yard/templates/default/template_helper.rb#L39

I have rebased (and even before your comment ;-) ).
Concerning where to call the function I did not succeed to call it from the other file. My ruby skills are not good enough it seems.

I like your change, but I want to be able to use it in the template for the types and providers PR coming down the pike, so it should be in the extract_param_details function. Here is the sort of thing I was imagining, let me know if it doesn't work.
  def extract_param_details(parameters, tags_hash, fq_name = false)
    ...

      param_details = {:name => param_name, :desc => htmlify(description), :types => param_types, :exists? => true}
    ...

    # Check if there were any comments for parameters that do not exist
    tags_hash.each do |tag|
    ...
        parameter_info.push({:name => tag.name, :desc => htmlify(tag.text), :types => tag.types, :exists? => false})
    ...
    end
    ...
  end

extract_param_details should be "output format" agnostic.
I tried several approaches  to put that into html_helper.rb but that did not work...

Interesting. I'll take a look tomorrow.

Thanks

You need to include the HtmlHelper module before calling htmlify.
class TemplateHelper
  include YARD::Templates::Helpers::HtmlHelper
...
def extract_param_details(parameters, tags_hash, fq_name = false)
...
    param_details = {:name => param_name, :desc => htmlify(description, :markdown), :types => param_types, :exists? => true}

...
      parameter_info.push({:name => tag.name, :desc => htmlify(tag.text, :markdown), :types => tag.types, :exists? => false})
...
end

If you have to specify markdown then you break compatibility with old style config..

Good point. I specified markdown because I didn't have a reference to the Yard options object at that point in the code.

Yes that is the problem I was facing with that approach.

@iankronquist did you have a chance to look at this?

@roidelapluie sorry for not getting back to you. Give this a shot:
class TemplateHelper
  include YARD::Templates::Helpers::HtmlHelper
...
def extract_param_details(parameters, tags_hash, fq_name = false, options)
...
    param_details = {:name => param_name, :desc => htmlify(description, options.markup), :types => param_types, :exists? => true}

...
      parameter_info.push({:name => tag.name, :desc => htmlify(tag.text, options.markup), :types => tag.types, :exists? => false})
...
end

Remember to pass options to the function everywhere it's called.
It's called in these files:
lib/puppet_x/puppetlabs/strings/yard/templates/default/definedtype/setup.rb
lib/puppet_x/puppetlabs/strings/yard/templates/default/definedtype/setup.rb
lib/puppet_x/puppetlabs/strings/yard/templates/default/puppetnamespace/setup.rb
lib/puppet_x/puppetlabs/strings/yard/templates/default/template_helper.rb

Thanks again for your help!

@roidelapluie Hey, are you still interested in fixing this up? Thanks for your help!

Ping @roidelapluie, just checking in to see if you still want to work on this

On Tue, Oct 06, 2015 at 03:34:33PM -0700, Hailee Kenney wrote:

Ping @roidelapluie, just checking in to see if you still want to work on this

Reply to this email directly or view it on GitHub:
https://github.com/puppetlabs/puppetlabs-strings/pull/52#issuecomment-146021251

Yes I will have a look at this soon
--
(o-    Julien Pivotto
//\    Open-Source Consultant
V_/_   Inuits - https://www.inuits.eu

@roidelapluie Awesome, thanks so much! Feel free to reach out if you have any questions

@HAIL9000 @iankronquist done

@roidelapluie Thank you. It looks like Travis is failing right now, would you mind fixing that? I'll take a more detailed look after it passes.

Actually can you take a look and try to see why is travis failing? I am out of ideas

It looks like it couldn't properly require the html_helper.rb file. This usually happens because of a syntax error.

Nope, I lied. Let me look into it a little more.

@roidelapluie So the first problem is that you aren't including the module the htmlify function lives in. try putting
include YARD::Templates::Helpers::HtmlHelper inside the TemplateHelper class. There may be other issues after that, I'm not sure. I don't have more time to investigate now, sorry.

@iankronquist it does not make any diff

@iankronquist  ping; do you have more ideas?

@HAIL9000 up

Failing because of:
       No such file or directory - /tmp/d20160203-20901-1i5kwpe/test/doc/test.html
     # ./spec/lib/strings_spec/module_helper.rb:18:in `read'
     # ./spec/lib/strings_spec/module_helper.rb:18:in `read_html'
     # ./spec/unit/puppet/face_spec.rb:60:in `block (5 levels) in <top (required)>'
     # ./spec/lib/strings_spec/module_helper.rb:10:in `block in using_module'
     # ./spec/lib/strings_spec/module_helper.rb:4:in `using_module'
     # ./spec/unit/puppet/face_spec.rb:55:in `block (4 levels) in <top (required)>'

The rest of the problems (that are not directly this) are probably caused by the same error.

@roidelapluie did you give up on this? I noticed the ticket was closed with a "won't fix".

as I opened the ticket and decided to stop working on it, I changed it to wonfix yes

Closing this PR, but we may adopt it later if we have time.

Thanks @roidelapluie for the work you put in !


vue2.03 v-model of textarea tag: rendering time is very long

<textarea v-model="DATA"></textarea>
vue2.03 v-model of textarea:
In a long DATA case , rendering time is very long, and then the browser is blocked.
Other form tags do not have this problem

Hi, thanks for filling this issue. Please follow the Issue Reporting Guidelines and provide a live reproduction on jsfiddle, codepen etc. Thanks!

@leyec had similar issue in vue 2.0, with v-model on child component that wraps an input.  When the input is changed the browser (Chrome) froze. Had to restart be browser.
The issue was with "this.$emit('input', this.someValue)" on child input. Solved the issue by changing the 'this.someValue' to string "this.$emit('input', "" + this.someValue)"
This issue was solved,

Closing due to inactivity.


Build Issues

Hi , I have setup the project in Android Studio, but when I build it , I get below errors
Error:error: '-Wno-error=unused-function': No such file or directory
Error:error: '-std=c++11': No such file or directory
Error:error: '-std=c++11': No such file or directory
Error:error: '-DMIN_LOG_LEVEL=0': No such file or directory
Information:BUILD FAILED
Please help in resolving it

Hi @ashokbugude
What are you trying to do exactly? The native libs are build separately (not included in Grafle and Android Studio). But you don't need to build the native libs, because they are already included under https://github.com/Qualeams/Android-Face-Recognition-with-Deep-Learning-Library/tree/49125122ca1db5720b8be2d8cefbafdbc3ec4010/src/main/jniLibs

Hi @sladomic , I am trying to do research on 'parallel programming' for the Tensor Flow code through ndk and opencl by modifying the source code in tensorflow_jni.cc and its related code and then rebuild the library and use it. Please help me in rebuilding the library, will refer to your comment in https://github.com/Qualeams/Android-Face-Recognition-with-Deep-Learning-Test-Framework/issues/17
Thanks

Ok, please try that approach first and return if you're not successful. Good luck :)
Another approach would be to use the Bazel build system which is used by TensorFlow usually. Should be easier once you have setup the whole environment. https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/android/README.md
Although for me honestly both processes are not straightforward at the moment..

@sladomic , I shall look into it and try. Closing the issue, Please update me in case you are able to implement it
Thanks

Able to build by following the steps in Qualeams/Android-Face-Recognition-with-Deep-Learning-Library#1. Thanks for your help


[GDPR] Design & implement an admin page to analyze / export / manage data

I discover the page in Matomo.
This could be a nice feature to have a dedicated page where
an admin user (of the LocoKit instance) could search for data,
for a specific user, export this data (to the user ?) or manage the data (delete some entries ?)
To be discussed as it could create some issues in the database.

Some links / screen capture (french) from Matomo.
There are truly amazing for GPDR.

Having a page explaining the goals of GDPR or some rules to respect could be nice.

This is a MUST have, find data of a user, and manage this data.
I think about logs, user update this data from this to that, ... could be available in a page like this.
Maybe to the end user, too ?
Some links to finish :
https://matomo.org/faq/new-to-piwik/how-to-exercise-user-rights-in-matomo/
https://www.cnil.fr/sites/default/files/atoms/files/matomo_analytics_-_exemption_-_guide_de_configuration.pdf


allow pagation of server command

this commit allows pagation on the server command

this is a draft, i pulled this together in 10 mins

this is a draft, i pulled this together in 10 mins

Make it no kill itself when navigating through pages

Make it no kill itself when navigating through pages

done, test in discord

done, test in discord

Alr looking good

Alr looking good


Regex containing a bracket fails

var pear = "pear";
var output;

// Fails
output = pear.replace(/{([^{}]*)}/g, "pear");
// OK
output = pear.replace(/([^{}]*)/g, "pear");

Please advise.

Code is from your video: http://youtu.be/RO1Wnu-xKoY?t=58m41s

output = pear.replace(/{([^{}]*)}/g, "pear");

Yes. This one fails.
INPUT
var pear = "pear";
var output;

// Fails
output = pear.replace(/{([^{}]*)}/g, "pear");

OUTPUT
JSLint was unable to finish.
4.23
Expected '/' and instead saw '{'.
output = pear.replace(/{([^{}]*)}/g, "pear");
4.24
Expected a regexp factor and instead saw '{'.
output = pear.replace(/{([^{}]*)}/g, "pear");

This is most JSLint version of String.supplant()
https://github.com/szepeviktor/wordpress-sitebuild/blob/master/js/String.supplant.js

Thanks. Please try it now.

Thank you.
I've seen your commit https://github.com/douglascrockford/JSLint/commit/3575229b0894e36b056a7bbd845c93f88e6aa695
But I am sorry to report that pasting the above code to jslint.com yields another error message.
4.23
Expected '\' before '{'.
output = pear.replace(/{([^{}]*)}/g, "pear");
4.32
Expected '\' before '}'.
output = pear.replace(/{([^{}]*)}/g, "pear");

I think I should escape brackets in the regexp output = pear.replace(/\{([^{}]*)\}/g, "pear");
You know: I've just followed your video :)
Thanks!

JSLint's advice is good.


Fix typos

fyi main is going to archive, main-md will replace it - please make all PRs to that branch (it will be renamed and the default once live)

Ok.


profile not working in job

I can't reproduce the error shown in the screenshot.
But I inspected the code of the aysprofile macro and I think there are some issue indeed.

sometime the server get macro stays stuck on : https://github.com/Jumpscale/jumpscale_portal8/blob/master/apps/portalbase/AYS81/.macros/page/aysjobprofile/3_aysjobprofile.py#L13 no idea why yet.
the macro always set the iframe to point to localhost, wich in real work won't work.
I propse the following to resolve this.

diff --git a/apps/portalbase/AYS81/.macros/page/aysjobprofile/3_aysjobprofile.py b/apps/portalbase/AYS81/.macros/page/aysjobprofile/3_aysjobprofile.py
index de33b6d..11edfd2 100755
--- a/apps/portalbase/AYS81/.macros/page/aysjobprofile/3_aysjobprofile.py
+++ b/apps/portalbase/AYS81/.macros/page/aysjobprofile/3_aysjobprofile.py
@@ -1,3 +1,4 @@
+from urllib import parse

 def main(j, args, params, tags, tasklet):
     page = args.page
@@ -20,7 +21,11 @@ def main(j, args, params, tags, tasklet):
     job = job.objectGet()
     j.sal.fs.writeFile(filename=stats, contents=job.model.dbobj.profileData, append=False)

-    p = Popen(['timeout', '1m', 'python3', '-u', '/usr/local/bin/snakeviz', '-s', stats], stdout=PIPE)
+    host = args.requestContext.env.get('SERVER_NAME','localhost')
+    if host.find(":") != -1:
+        host = host.split(":")[0]
+
+    p = Popen(['timeout', '1m', 'python3', '-u', '/usr/local/bin/snakeviz','-H', '<IP_ADDRESS>', '-s', stats], stdout=PIPE)

     line = p.stdout.readline().decode()
     while 'http' not in line:
@@ -28,7 +33,9 @@ def main(j, args, params, tags, tasklet):
         line = line.decode()
         #print(line)

-    page.addHTML("" % line)
+    u = parse.urlparse(line)
+    u2 = u._replace(netloc="%s:%s" % (host, u.port))
+    page.addHTML("" % u2.geturl())

     params.result = page

But then there is another problem. In production the portal is proxies by caddy and only port 80 and 443 are open, which mean the client browser won't be able to access the snakeviz server. @rkhamis  any idea ?

@zaibon error on page is already fixed.
I just didn't figure out why it sometimes hangs on ps aux
The proxy could be an issue indeed.

Verified on version 8.1.0 rc1


ci: add more check rules to Makefile and github action

Current dependencies on/for this PR:

main

PR #487

PR #488   👈

This comment was auto-generated by Graphite.

Codecov Report

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

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@                            Coverage Diff                            @@
##             fix_missing_mock_appendable_logstreams     #488   +/-   ##
=========================================================================
  Coverage                                          ?   62.20%
=========================================================================
  Files                                             ?      133
  Lines                                             ?    18490
  Branches                                          ?        0
=========================================================================
  Hits                                              ?    11501
  Misses                                            ?     6414
  Partials                                          ?      575

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

@ijsong started a stack merge that includes this pull request via Graphite.

@ijsong merged this pull request with Graphite.


how to make that a body is always bouncing and doesnt change its force?

that properties or values must have a body for that this is always bouncing, doesnt stop and doesnt change its force, the gravity is 0 in both (x,y)

Use { inertia: Infinity, restitution: 1, friction: 0, frictionAir: 0, frictionStatic: 0 } and see #256 for potential issues and solutions. Since this has been asked many times, please refer to that issue instead, thanks.


kubernetes middleware port parsing breaks searches

The kubernetes middlware assumes all domains with 5 segments before the zone are of _port._protocol.service.namespace.type.zone format. it tests this assumption even for non-SRV requests, despite non-SRV having no such concept, and returns an SRVFAIL (not NXDOMAIN) when the check fails. as a consequence, the kubernetes search domains are broken as a lookup may accidentally match the 5-segment check.
as a simple example, running apk update in an alpine-based container breaks, as the dl-cdn.alpinelinux.org lookup becomes dl-cdn.alpinelinux.org.default.svc.$ZONE, matches the 5-segment check, and produces an error like
23/Jan/2017:13:32:37 +0000 [ERROR 0 dl-cdn.alpinelinux.org.default.svc.$ZONE. A] srv port must start with an underscore or be a wildcard. because this is a srvfail rather than nxdomain, the search stops there and the domain lookup fails.

@chrisohaver (cc @johnbelamaric) Chris this was exactly what we were complaining about.
Could you prepare a fix? Thanks.

This seems to be fixable just by returning errInvalidRequest from "github.com/miekg/coredns/middleware/kubernetes".(*Kubernetes).Services() when parseRequest returns an error.

https://github.com/miekg/coredns/compare/master...devnev:kubernetes-searches-fix?expand=1 is my quickfix but its loses some of the error details.

It returned NXDOMAIN originally, but I changed it to SERVFAIL based on PR feedback.  I'll change it back to NXDOMAIN.

[ Quoting<EMAIL_ADDRESS>in "Re: [miekg/coredns] kubernetes midd..." ]

It returned NXDOMAIN originally, but I changed it to SERVFAIL based on PR feedback.  I'll change it back to NXDOMAIN.

NXDOMAIN was the wrong reply. But we need to get rid of assuming anything about
the number of labels in a name...

Hmm. The expectation in k8s is a certain structure in the name:
$service.$namespace.svc.$zone

where $service and $namespace are single labels. The number of labels to the left of the zone for a valid record will be fixed. It's just the invalid (i.e., for nonexistent records) queries that may have different numbers of labels.
The reason this caused an issue is because the search list was requesting a record that isn't there, and isn't supposed to be there. ndots is set to 5 and the search list is long in k8s, so you get a bunch of invalid queries a lot.
We can check whether they are querying SRV or A though to change the expectation. SRVs look like:
_$port._$proto.$service.$namespace.svc.$zone

The NXDOMAIN makes sense to me here - essentially we're saying "this query name is in a format we do not recognize, therefore we do not have a record for it and it's NXDOMAIN".

[ Quoting<EMAIL_ADDRESS>in "Re: [miekg/coredns] kubernetes midd..." ]

The NXDOMAIN makes sense to me here - essentially we're saying "this query name is in a format we do not recognize, therefore we do not have a record for it and it's NXDOMAIN".

OK. And there will be definition no names below that name? (if so then yes, I
should have been NXDOMAIN, and I was wrong in suggesting SERVFAIL).
I'm afraid of just masking entire sub-trees by responding NXDOMAIN.

Right. People can't make arbitrary entries, it's a fixed set of records based on K8s. Which is what led to my comment on #303 - if you could fall through to other middleware we could allow dynamic registration in combination with the automatic K8s records.


Doesn't works on windows

As we know, the windows path separator is dramatic different from other systems. So shouldn't we handle it in this loader?

Will there be a fix for this soon?

Hi @epelc, I will take a look tonight.

@WearyMonkey Thanks this looks like it will fix my directives loading issue

I'm confused here.  I have everything set up with *nix style path separators and it works great.  When I try to build on windows it barfs.  I see this, but the way I'm reading the above comments, the build tool (aka, this library) should be properly handling my *nix style paths but I don't think it is.
Can someone please explain what this fix is supposed to do?  Is it supposed to make the build platform agnostic?

@WearyMonkey in version 2.0.0, while build on Windows, template path separators become "\\". In version 1.3.1 everything was working fine.

Fixed in version 2.0.1, thank you!