text:
No passwords found in config file

passwordcheck v1.0.1
When running this utility on a config file where the password isn't generated by rclone the output can be a bit confusing. Without using -verbose this is what you get:
No passwords found in config file - did you use the right file?
But if you run it with -verbose it's a bit more clear what is actually happening:
###########: obscured password password = "####################"  was not generated by rclone: illegal base64 data at input byte 7

Hmm, yes that wording isn't quite right is it.
The tool is discarding passwords which can't have been generated by rclone config but not counting them as found passwords.
I'll have a think.

I've added a stats block like this
found 269 remote definitions
found 54 passwords generated by rclone config which need checking
ignored 11 passwords not generated by rclone config
ignored 14 passwords less than 64 bits

which will be printed after the tool has parsed the config file which should make it clearer.
I've also changed the message to
No passwords to check found in config file - did you use the right file?

This was released in v1.0.2

authors: broizter ncw

repo: rclone/passwordcheck


text:
Create GitHub license check workflow

Summary: Add a github test that checks the licence message in source files
Type: Feature
Test Plan: Unittests
Jira: NO-JIRA

Job for AI/job/AI_BUILDS/job/AI-Trigger-PullRequests started: https://pv-jen015.uk2.scp.bskyb.com/job/AI/job/AI_BUILDS/job/AI-Trigger-PullRequests/250/

https://jenkins.code.rdkcentral.com/job/github-triggered/48756/ started

Blackduck scan failure details
Summary: 0 violations, 0 files pending approval, 1 file pending identification.

Protex Server Path: /home/blackduck/github/rialto-ocdm/47/rdkcentral/rialto-ocdm

Commit: 423f26bcbea9a1836b5166ff9e5c99c0859be643

Report detail: gist

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/github-triggered/13944/ started

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/build-component-platform/20581/ started.

Sanity tests for ['BCM Reference Refapp2'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/39669/

WARNING: A Blackduck scan failure has been waived
A prior failure has been upvoted

Upvote reason: OK

Commit: 423f26bcbea9a1836b5166ff9e5c99c0859be643

source: gharchive/pull-request

repo: rdkcentral/rialto-ocdm

license_type: permissive

license_source: github-api


text:
Dashboard wird nicht aktualisiert, und neue HMIP werden nicht angezeigt

Hallo Hobbyquaker,
Habe ein Problem von Anfang an.
Habe mehrere Heizkörper Thermostate installiert inkl. Wandthermostate.
Nur wenn ich für eine längere Zeit nichts in red node mache dann bekomme ich keinen aktuellen Werte mehr am Dashboard angezeigt (zB. Temp und Luftfeuchte). In node red habe ich auch unter den flows den roten disconnect stehen.
Wenn ich dann in node red zb eine node ein wenig anders platziere und es deploye dann habe ich wieder aktuelle Werte und auch das grüne connect steht unter dem node. Dann funktioniert wieder alles eine zeit lang.
Habe derzeit nur Homematic IP actoren in Verwendung. Alle updates auf den aktuellen Stand.
Das andere Problem ist, dass ich neue hinzugefügte HMIP Aktoren nicht in node red angezeigt werden. Funktionieren ganz normal auf der CCU3.
Wie bekomme ich die Werte unter der node angezeigt? Derzeit hab ich nur das grüne connect Zeichen (sofern nicht disconnect angezeigt wird). Mir wäre es lieber wenn Werte statt dem grünen Quadrat angezeigt werden. Wenn ich in node red deploy ausführe dann stehen kurz die Werte da und wechseln dann gleich wieder auf das grüne Quadrat. Get value node möchte ich nicht einsetzen.
Beide Fragen habe ich auch im HomeMatic Forum gepostet.
Im Anhang das Log.
Danke für deine Hilfe
Christian
Hier das log wenn alles funktioniert:
redmatic.2020-03-31T17_56_50.446Z.log
Hier das Log wenn keine updates gemacht werden:
redmatic.2020-03-31T18_32_58.680Z.log

Hallo,
hab den Fehler gefunden warum das Dashboard nicht aktualisiert wird.
Habe in der ccu-connection node die "Listen adress" die IP meiner ccu eingetragen.
Es muss aber die gleiche sein wie in der "Init adress".
Jetzt funktioniert alles.
Vielleicht hilft es wem weiter.
alpha

Problem gelöst

source: gharchive/issue

repo: rdmtc/RedMatic


text:
Unable to load DLL 'libwkhtmltox' or one of its dependencies

Request ID: System.AggregateException: One or more errors occurred. (Unable to load DLL 'libwkhtmltox' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E)) ---> System.DllNotFoundException: Unable to load DLL 'libwkhtmltox' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at DinkToPdf.WkHtmlToXBindings.wkhtmltopdf_init(Int32 useGraphics)
at DinkToPdf.PdfTools.Load()
at DinkToPdf.BasicConverter.Convert(IDocument document)
at DinkToPdf.SynchronizedConverter.<>n__0(IDocument document)
at DinkToPdf.SynchronizedConverter.<>c__DisplayClass5_0.b__0()
at System.Threading.Tasks.Task1.InnerInvoke()  at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)  --- End of stack trace from previous location where exception was thrown ---  at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)  --- End of inner exception stack trace ---  at DinkToPdf.SynchronizedConverter.Invoke[TResult](Func1 delegate)
at DinkToPdf.SynchronizedConverter.Convert(IDocument document)
at GymCore.Controllers.RegistrationController.CreatePDF(Int32 regno) in C:\Users\UDN002\Desktop\GymCore\GymCore\Controllers\RegistrationController.cs:line 489
at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at System.Threading.Tasks.ValueTask1.get_Result()  at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()  at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()  at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)  at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)  at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()  at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter()  at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)  at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)  at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()  at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync()  at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)  at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)  at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)  at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)  at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)  ---> (Inner Exception #0) System.DllNotFoundException: Unable to load DLL 'libwkhtmltox' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E)  at DinkToPdf.WkHtmlToXBindings.wkhtmltopdf_init(Int32 useGraphics)  at DinkToPdf.PdfTools.Load()  at DinkToPdf.BasicConverter.Convert(IDocument document)  at DinkToPdf.SynchronizedConverter.<>n__0(IDocument document)  at DinkToPdf.SynchronizedConverter.<>c__DisplayClass5_0.<Convert>b__0()  at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)<---
Still facing the issue can you please help :
I have set the properties of libwkhtmltox.dll

I tried the both the both debug & release.
I'm stuck please help

What you might be experiencing could be a misleading error message, if you don't have the VSRedist 2015 package installed on the machine/server.
You could try using my powershell module to detect/silently install the redistributable package: PowershellVsRedistInstaller
You can also just check the powershell code to find where to check in the registry or check where to download the files.

Hello, Check the answer from here.
https://stackoverflow.com/questions/55430532/dinktopdf-net-core-not-able-to-load-dll-files.
I used that and it worked very well.

In my case it is working in local but when I'm trying to publish in azure its throwing the following error and failing the whole application
An error occurred while starting the application.
DllNotFoundException: Unable to load DLL 'D:\home\site\wwwroot\bin\Debug\netcoreapp2.0\libwkhtmltox': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
System.Runtime.Loader.AssemblyLoadContext.InternalLoadUnmanagedDllFromPath(string unmanagedDllPath)
DllNotFoundException: Unable to load DLL 'D:\home\site\wwwroot\bin\Debug\netcoreapp2.0\libwkhtmltox': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
System.Runtime.Loader.AssemblyLoadContext.InternalLoadUnmanagedDllFromPath(string unmanagedDllPath)
System.Runtime.Loader.AssemblyLoadContext.LoadUnmanagedDllFromPath(string unmanagedDllPath)
Socrates.ApiServices.Startup+CustomAssemblyLoadContext.LoadUnmanagedDll(string unmanagedDllName) in Startup.cs
Socrates.ApiServices.Startup.ConfigureServices(IServiceCollection services) in Startup.cs
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()

It's nice work for me:
using System;
using System.Reflection;
using System.Runtime.Loader;
namespace AlomaWebApi.Core
{
public class CustomAssemblyLoadContext : AssemblyLoadContext
{
public IntPtr LoadUnmanagedLibrary(string absolutePath)
{
return LoadUnmanagedDll(absolutePath);
}
protected override IntPtr LoadUnmanagedDll(string unmanagedDllName)
{
return LoadUnmanagedDllFromPath(unmanagedDllName);
}
protected override Assembly Load(AssemblyName assemblyName)
{
throw new NotImplementedException();
}
}
}
And before initialize Converter call this one:
new CustomAssemblyLoadContext().LoadUnmanagedLibrary($"{pathToYour-libwkhtmltox.dll}/libwkhtmltox.dll");
===>AssemblyLoadContext you can install from nuget System.Runtime.Loader
===>libwkhtmltox.dll you can download here: https://github.com/rdvojmoc/DinkToPdf/tree/master/v0.12.4

download this on server, where you try to use libwkhtmltox.dll
https://support.microsoft.com/ru-ru/help/2977003/the-latest-supported-visual-c-downloads

Having this issue on an azure function

We're running this in a function app, to me it looks like you're pointing to the wrong path.
In our case (where the packages are deployed from nuget and part of the build deployed as a package in the function app) it would be something like: D:\home\site\wwwroot\bin the files would be located in.

It's also worth mentioning that the service plan the app service or function is using cannot be the free tier, runs just fine on S1 (provided all the paths to the executables are correct)

I think that was my issue. Ended up going another route. Still using an azure function but went with a node package instead. The critical thing to point out is that in the consumption plan you dont have access to GDI support in the sandbox. https://stackoverflow.com/questions/61473525/node-return-byte-array-after-turning-html-to-pdf

download this on server, where you try to use libwkhtmltox.dll
https://support.microsoft.com/ru-ru/help/2977003/the-latest-supported-visual-c-downloads

It's worked. Thanks bro

I solved this problem more quickly.
Solution:
Add these codes inside the Project.Service.csproj
<ItemGroup>
  <None Remove="libwkhtmltox.dll" />
</ItemGroup>

<ItemGroup>
  <EmbeddedResource Include="libwkhtmltox.dll">
    <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  </EmbeddedResource>
</ItemGroup>

I solved this problem more quickly.
Solution:
Add these codes inside the Project.Service.csproj
<ItemGroup>
  <None Remove="libwkhtmltox.dll" />
</ItemGroup>

<ItemGroup>
  <EmbeddedResource Include="libwkhtmltox.dll">
    <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  </EmbeddedResource>
</ItemGroup>

Thanks @dgokhan. Adding the given code to the project's .csproj file worked for me.

I needed to solve this without installing any packages. I managed to solve it by downloading all 3 files (dll, dylib and so) and putting them into the project directory. Then I added this into the .csproj file:
    <ItemGroup>         <None Update="libwkhtmltox.dll">             <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>             <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>         </None>         <None Update="libwkhtmltox.dylib">             <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>             <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>         </None>         <None Update="libwkhtmltox.so">             <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>             <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>         </None>     </ItemGroup>

@dgokhan  method worked for me. All I had to in addition for it work remotely was placing the  libwkhtmltox.dll in the remote server.

Download package from https://github.com/rdvojmoc/DinkToPdf/tree/master/v0.12.4
Add it to your project reference by custom Assembly reference & register in your startup project.
This is custom assembly load context which can load library from absolute path.

internal class CustomAssemblyLoadContext : AssemblyLoadContext
{
	public IntPtr LoadUnmanagedLibrary(string absolutePath)
	{
		return LoadUnmanagedDll(absolutePath);
	}
	protected override IntPtr LoadUnmanagedDll(String unmanagedDllName)
	{
		return LoadUnmanagedDllFromPath(unmanagedDllName);
	}

	protected override Assembly Load(AssemblyName assemblyName)
	{
		throw new NotImplementedException();
	}
}

In Statup.cs add below code.
Call CustomAssemblyLoadContext before you create your converter:

CustomAssemblyLoadContext context = new CustomAssemblyLoadContext();
context.LoadUnmanagedLibrary(path);
var converter = new SynchronizedConverter(new PdfTools());
services.AddSingleton(converter);
services.AddSingleton(typeof(IConverter), new SynchronizedConverter(new PdfTools()));

Hi Team,
I am also facing the same issue with .Net.Core 5.I resolved the issue while doing the below  steps.
1.Docker file need to add the below things.
RUN apt-get update
RUN apt-get install -y wget
RUN apt-get install -y curl
RUN cd /app
RUN apt-get update
&& apt-get install -y --no-install-recommends
zlib1g
fontconfig
libfreetype6
libx11-6
libxext6
libxrender1
&& curl -o /usr/lib/libwkhtmltox.so
--location
https://github.com/rdvojmoc/DinkToPdf/raw/v1.0.8/v0.12.4/64 bit/libwkhtmltox.so
RUN wget https://github.com/rdvojmoc/DinkToPdf/blob/master/v0.12.4/64 bit/libwkhtmltox.dll
RUN wget https://github.com/rdvojmoc/DinkToPdf/blob/master/v0.12.4/64 bit/libwkhtmltox.dylib
RUN wget https://github.com/rdvojmoc/DinkToPdf/blob/master/v0.12.4/64 bit/libwkhtmltox.so
WORKDIR /app
COPY --from=publish /app .

Don't add any assembly in solution level.
if you need to local debug # if DEBUG then add dll in project.

Thanks,
Manish

If this is important for someone, I add the code like in the previous answers, additionally when I tried to publish my app there was the error 500.30 because the architecture in the azure portarl, so change the platform for 64bits or 32bits and thats all.

authors: ABakumenko BTMutturaj Domt301 Engel02 JimWolff ManishAzure SachinDubey123 Sanushi-Salgado dgokhan githithu h-sanusi metainilesh obrocki-fortem olehspidey sudoman281 trungttnd

repo: rdvojmoc/DinkToPdf

license: mit

license_source: bigquery


text:
Configuration implementation

This implements the configuration of our yet to come revaultd binary.
Functionnalities-wise:

Our default configuration directory is ~/.revault/ on Linux-based OSes, Library/Application Support/revault/ on macOS, and AppData\revault\revault.toml on Windows (the two latters are untested, will add a CI test for them). Though as we'll accept a -conf argument in the future to specify the conf file and the data dir can be specified in it, it can be changed. I had to introduce a crate for the boilerplate...
The configuration file is mandatory, as a setup is required in order to operate.
Configuration options will need to be set in the configuration file, we disallow setting them on the command line: futile duplication.
We use a TOML file, as it appeared to be an obvious choice, at least to me ?

Code-wise:

src/config.rs handles the user-set, static configuration deserialization and parsing
src/revaultd.rs handles our mutable "global state", which for now basically only contains the miniscript descriptors.

EDIT: i'm going stuck by Miniscript support for xpubs soon..

Rebased on master to get Travis.
Force pushed to:

Lower the serde version (somehow this fixed the Win build)
Fix the Window test (s/AppData/AppData\/Roaming/)

Renewed the Cargo.lock ..

Removed the nightly + windows build...

self-ACK 8d18164

repo: re-vault/revaultd


text:
feat(backend): allow anyone to add markers to datastore

Description
Ahead of #406
Allows anyone to write to create new markers (not edit existing ones), that save directly to the firestore database.
Motivation
To be able to accept user data using the new form, allowing users to write directly to the firestore when creating new markers seemed like the best response.
This data isn't currently being used / loaded in the frontend. After this gets in and the initial form gets deployed, I'm going to add a new boolean property called visible that (can't be true when users submit) that will be indexed on, to allow users to query for the visible markers only. Marker submissions will then (for now) require a review by someone with appropriate access (currently only admins).
Beyond this I plan on allowing users to optionally view "hidden" fields before adding new information so that they can ensure they're not causing duplicate information.
Also, I want to create a function that runs whenever a marker's data is updated to keep a log of a marker's history.
cc @sabind @lenjoseph thoughts?
Testing Guidelines
Release Checklist

[ ] This code has unit tests
[x] I have a plan to verify that these changes are working as expected after deploy
[x] I have a plan for how to revert, rollback, or disable these changes if things are not working as expected

Security Checklist
This PR creates, modifies, or deletes:

[ ] API routes: API routes, parameters, or user authorization
[ ] Authentication: Authentication mechanism
[ ] Credentials: Server side credentials, or secrets in configuration / source code
[ ] Cryptography: Encryption, hashing, certificates, signatures, random numbers, etc.
[ ] User data: personal information handling, logs, error messages, etc.

cc @reach4help/security
Additional Notes
We probably want to have unit tests for these rules too, but I was unable to really make progress as the tests aren't currently working locally for me (we should also update the workflows to make sure that they run in CI too, and don't become broken).

@ashwinkjoseph done, and also added a condition for the visible property to be there (and specified as false)

license: MIT


text:
Update RN 0.49.3, React 16.0.0-beta5, and Expo 22.0.0

Changes

React Native 0.49.3, React 16.0.0-beta.5, and Expo 22.0.0 (also jest-expo)
While ejecting, create index.js as a single entry point instead of platform specific since react-native 0.49 now use single entry point when init project - https://github.com/facebook/react-native/releases/tag/v0.49.0)

I have tested by create react-native project via CRNA on my local machine and it works. Also tested eject into raw react-native project as well.

thanks! we'll probably land this on monday or tuesday

I was blocked on https://github.com/facebook/react-native/pull/16513 for this, now that it landed in 0.49.5 I can do the release but I don't have time today! Soon!

repo: react-community/create-react-native-app


text:
DrawerToggle does not work as expected -It doesn't closes the DrawerNavigation

Current Behavior
The behavior of navigation.navigate('DrawerToggle')  is not as expected. On this example the menu button should open and close the drawer navigation. But it's only possible to open it. When the drawer is visible, the button does nothing.
const DrawerNavigation = StackNavigator({
  DrawerStack: {screen: DrawerStack},
}, {
  headerMode: 'float',
  navigationOptions: ({navigation}) => ({
    headerStyle: {backgroundColor: 'green'},
    title: 'Welcome!',
    headerTintColor: 'white',
    headerLeft: <Text onPress={() => {
      navigation.navigate('DrawerToggle')
    }}>Menu</Text>
  }),
});

With DrawerOpen and DrawerClose instead it's working
if (navigation.state.index === 0) {
  navigation.navigate('DrawerOpen')
} else {
  navigation.navigate('DrawerClose')
}

I thought DrawerToggle should be a replacement for this if block, so the drawer opens and closes through the button.
Your Environment

software
version

react-navigation
1.0.0-beta.13

react-native
0.47.2

node
8.6.0

npm or yarn
yarn

can you post full code? ideally an expo snack?

Sorry, it's not possible to post the full code, because it's a project for a customer. When creating the navigation, I followed this tutorial.
There in line 35 you can see the corresponding part.

@DFelten I meant a repository which reproduces the bug. Some thing that people can clone and run to see the error.

I've created an Expo Snack (my first one).
There you can see that it's only possible to open the Drawer with DrawerToggle

Having the same problem, any luck ?

@sunnixx
I'm using the mentioned workaround
if (navigation.state.index === 0) {
  navigation.navigate('DrawerOpen')
} else {
  navigation.navigate('DrawerClose')
}

I updated the Snack to the latest version and it works as expected: https://snack.expo.io/SJvS0p3Lz

authors: DFelten brentvatne sunnixx vonovak

repo: react-community/react-navigation


text:
Don't swallow drop events

Hey! First time contributor here so not really sure what the exprectations of PR:s are.
This is an attempt to fix this issue, where other libs using html dnd breaks because react-dnd swallows drop events: https://github.com/react-dnd/react-dnd/issues/2752
The fix is simple to not call e.preventDefault(). I'm not sure if it's there for a very good reason – it was hard to tell why it was added by looking at the git blame. Anyway, it solves the problem for us and haven't noticed any other issues so far.

Not sure how to fix CI? Where do I add rebase strategy?

To cut a semver document, you would run yarn version check --interactive. It looks like the impact of this PR would be patch IMO

I'll need to run it through the examples to make sure everything works, but this LGTM

Hey, @darthtrevino any timeline on a patch release including this fix? I'm wondering if to go to the work for forking this lib, many thanks

Hey @tommoor
I had been holding off on release to do a pass through of more comprehensive tests, but you're right, this release has been languishing a while. I'll review one last PR for the touch backend and cut a release today.

I just cut v12, let me know if you run into any issues

Thanks for releasing v12! While I don't see any new problems in the dnd functionality unfortunately it doesnt fix the original issue that was supposedly solved in this PR, the module still swallows drop events elsewhere on the page.
It looks like in the time between this being merged and v12 being released ev.preventDefault was reintroduced just below the original spot
https://github.com/react-dnd/react-dnd/blob/bd912815c22390b5c9aca42ad8049cbdcc7952ce/packages/backend-html5/src/HTML5BackendImpl.ts#L652

The original code used used preventDefault in all logical paths of handleDropTopCapture, the v12 code only uses preventDefault when dropping a native file object type.
Removing this preventDefault would change the expected behavior pretty significantly; it would open up a new tab with the file you dropped in addition to propagating details to the rest of React-DnD as expected.
Is this interfering with a particular use case of yours? I'd like to understand it more. Right now in the HTML5Backend, we have 9 instances of e.preventDefault. I tried commenting all of them out locally and it breaks the library to do so. I think we need to understand which ones block specific use cases and provide a configuration-based way around them.

Is this interfering with a particular use case of yours? I'd like to understand it more.

It is, and the code is public too which helps! We're using react-dnd for a sortable sidebar on https://github.com/outline/outline – all of the drag/drop functionality is contained to the sidebar element as far as react-dnd is concerned.
There is also a Prosemirror-based editor in the main content area, what I'm seeing is since we added the sidebar reordering the drop event in the editor no longer triggers when dropping an image onto it.
Temporarily removing the draggable sidebar elements restores the functionality in the editor, so the conflict is definitely there.

Gotcha - and do you know if it is this specific preventDefault instance that's giving you grief, or could it be any event swallowing in the HTML5Backend?

I don't know for sure yet that's fair, but yes it makes sense and was basing it on this original issue solving it for DraftJS, a similar contenteditable editor.

Gotcha; I'll cut a PR in a moment and send it to you for review

@tommoor - can you check this branch out and see if this approach will work for you? https://github.com/react-dnd/react-dnd/pull/3052

authors: darthtrevino eldh tommoor

repo: react-dnd/react-dnd


text:
onDragStop is not executed when widget is just clicked

In this demonstration I just added two lines to the grid layout component:
onDragStart={() => console.log("start")}
onDragStop={() => console.log("stop")}

If I select react-grid-layout <= 0.16.6 in CodeSandbox, and then simply click at any widget without dragging it, both start and stop appear in the console. When a newer version is used though, only start appears, which is quite problematic when trying to track which widget is currently being dragged.
Related to #1411, but I do want onDragStart to fire as soon as the mouse is pressed down on a widget.

Could this be re-opened. I am experiencing the same issue...

repo: react-grid-layout/react-grid-layout


text:
Serial Executor hangs on Android 9

Current behavior
I'm upgrading my RN app from 0.56 to 0.59.3 and decided to move back to the community AsyncStorage solution. The problem I'm running into is that the serial Executor is getting jammed up processing getKey requests after about the 3rd request for a getKey. The result is in the JS side, the Promise never returns and locks up the app.
Expected behavior
The Serial Executor in use by the AsyncStorage solution would process the AsyncStorage request or fail but not go into a locked up state.
Repro steps
In my RN app, I have 4 AsyncStorage getKey requests during startup which all happen in succession. I've never seen the 4th request return. Sometimes I'll see requests 1-3 return before it hangs on the 4th. This happens on the Simulator and on the device. I've only tested on Android 9 sim and Pixel 2 Android 9.
To point to the Serial Executor as the problem, I removed all references to the Serial Executor in the AsyncStorage code base and just let the SQL Lite requests run on the main thread and it works perfectly.
Environment

Async Storage version: 1.3.3
React-Native version: 0.59.3
Platform tested: Android 9 sim and device (iOS sim and device works great)

@wfilleman Hey,
Thanks for reporting this. This is interesting case, seems like serial executor chokes on multiple calls. Did you try it on other Android versions (before Pie)?
And by I have 4 AsyncStorage getKey requests during startup getKey you mean getItem right?
thanks.

Hi @Krizzu ,
I just tried this on Android 8 emulator and saw the same lockup results. And yes, thank you, I meant getItem.
Wes

@wfilleman
I've tried to replicate situation like you mention. I had 4 consequent getItem requests, but every time I'm able to retrieve and save a value, using promises and callbacks.
Can you provide some repro steps that's allow me to have a look? Is there a chance that some of your getItem throws and you're not handling it? (meaning rest of them are not called).
thanks.

I've git the exact same problem, here is my implementation, inside a componentDidMount.
```

async componentDidMount() {
const { tryLogin: loginFromFirstScreen } = this.props
try {
  const sessionToken = await AsyncStorage.getItem('@PicStore:token')

  if (sessionToken) {
    loginFromFirstScreen('', '', sessionToken)
  }
} catch (error) {
  console.log(
    `Error while reading from async storage ${error.name}: ${error.message}`
  )
}

}

Hi @Krizzu, similar to @theolavaux my implementation is very simple:
export async function loadAllAccounts() {
  console.log('loadAllAccounts');
  const accounts = (await AsyncStorage.getItem('Accounts')) || '{}';
  console.log('AsyncStorage Returned');
  store.setters.setAllAccounts(JSON.parse(accounts));
}

The logging is there so I can track when AsyncStorage returns and when it gets lost on the native side.
Wes

I'm going to keep in mind that issue while improving implementation for v2.
Adding this to refs in #133

@Krizzu FYI the new AsyncStorage_dedicatedExecutor=true in gradle.properties with AsyncStorage 1.6.1 seems to have fixed this issue I was experiencing on Android. Thank you for making this an option!
https://github.com/react-native-community/async-storage/blob/LEGACY/docs/advanced/DedicatedExecutor.md

Glad you found that useful :)

authors: Krizzu theolavaux wfilleman

repo: react-native-community/async-storage


text:
Parse issue Expected ','

Previously i was on react-native 0.59.3 but i and google signIn was working fine after that i have upgraded my project to ** 0.61.2** and install this library with the auto linking but in auto linking i am getting this error.

My problem is similar to this.
https://stackoverflow.com/questions/59023380/firebase-ios-swift-authentication-api-unavailablemaccatalyst-problem
Expected Behavior
Unable to build the project.
Actual Behavior
Project should build normally.
Environment
Please provide
I am on the on the "3.0.3" of google-signin
react-native version 0.61.2
Xcode veriosn 10.3
platform :ios, '10.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
My pod file
target 'Wefiq' do
  # Pods for Wefiq
  pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
  pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
  pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
  pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/'
  pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
  pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
  pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
  pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  target 'WefiqTests' do
    inherit! :search_paths
    # Pods for testing
  end

  use_native_modules!
end

target 'Wefiq-tvOS' do
  # Pods for Wefiq-tvOS

  target 'Wefiq-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end

end
post_install do |installer|
  installer.pods_project.targets.each do |target|
    if ['react-native-track-player'].include? target.name
      target.build_configurations.each do |config|
        config.build_settings['SWIFT_VERSION'] = '5'
      end
    end
  end
end

Analyzing dependencies
Fetching podspec for `BVLinearGradient` from `../node_modules/react-native-linear-gradient`
Fetching podspec for `FBLazyVector` from `../node_modules/react-native/Libraries/FBLazyVector`
Fetching podspec for `FBReactNativeSpec` from `../node_modules/react-native/Libraries/FBReactNativeSpec`
Fetching podspec for `RCTRequired` from `../node_modules/react-native/Libraries/RCTRequired`
Fetching podspec for `RCTTypeSafety` from `../node_modules/react-native/Libraries/TypeSafety`
Fetching podspec for `RNBackgroundFetch` from `../node_modules/react-native-background-fetch`
Fetching podspec for `RNDeviceInfo` from `../node_modules/react-native-device-info`
Fetching podspec for `RNGestureHandler` from `../node_modules/react-native-gesture-handler`
Fetching podspec for `RNGoogleSignin` from `../node_modules/@react-native-community/google-signin`
Fetching podspec for `RNReanimated` from `../node_modules/react-native-reanimated`
Fetching podspec for `RNSVG` from `../node_modules/react-native-svg`
Fetching podspec for `RNScreens` from `../node_modules/react-native-screens`
Fetching podspec for `RNVectorIcons` from `../node_modules/react-native-vector-icons`
Fetching podspec for `React` from `../node_modules/react-native/`
Fetching podspec for `React-Core` from `../node_modules/react-native/`
Fetching podspec for `React-CoreModules` from `../node_modules/react-native/React/CoreModules`
Fetching podspec for `React-RCTActionSheet` from `../node_modules/react-native/Libraries/ActionSheetIOS`
Fetching podspec for `React-RCTAnimation` from `../node_modules/react-native/Libraries/NativeAnimation`
Fetching podspec for `React-RCTBlob` from `../node_modules/react-native/Libraries/Blob`
Fetching podspec for `React-RCTImage` from `../node_modules/react-native/Libraries/Image`
Fetching podspec for `React-RCTLinking` from `../node_modules/react-native/Libraries/LinkingIOS`
Fetching podspec for `React-RCTNetwork` from `../node_modules/react-native/Libraries/Network`
Fetching podspec for `React-RCTSettings` from `../node_modules/react-native/Libraries/Settings`
Fetching podspec for `React-RCTText` from `../node_modules/react-native/Libraries/Text`
Fetching podspec for `React-RCTVibration` from `../node_modules/react-native/Libraries/Vibration`
Fetching podspec for `React-cxxreact` from `../node_modules/react-native/ReactCommon/cxxreact`
Fetching podspec for `React-jsi` from `../node_modules/react-native/ReactCommon/jsi`
Fetching podspec for `React-jsiexecutor` from `../node_modules/react-native/ReactCommon/jsiexecutor`
Fetching podspec for `React-jsinspector` from `../node_modules/react-native/ReactCommon/jsinspector`
Fetching podspec for `ReactCommon` from `../node_modules/react-native/ReactCommon`
Fetching podspec for `ReactNativeART` from `../node_modules/@react-native-community/art`
Fetching podspec for `ReactNativeExceptionHandler` from `../node_modules/react-native-exception-handler`
Fetching podspec for `Yoga` from `../node_modules/react-native/ReactCommon/yoga`
Fetching podspec for `react-native-config` from `../node_modules/react-native-config`
Fetching podspec for `react-native-cookies` from `../node_modules/react-native-cookies/ios`
Fetching podspec for `react-native-fast-image` from `../node_modules/react-native-fast-image`
Fetching podspec for `react-native-fbsdk` from `../node_modules/react-native-fbsdk`
Fetching podspec for `react-native-netinfo` from `../node_modules/@react-native-community/netinfo`
Fetching podspec for `react-native-slider` from `../node_modules/@react-native-community/slider`
Fetching podspec for `react-native-splash-screen` from `../node_modules/react-native-splash-screen`
Fetching podspec for `react-native-track-player` from `../node_modules/react-native-track-player`
Fetching podspec for `react-native-video` from `../node_modules/react-native-video`
Fetching podspec for `react-native-webview` from `../node_modules/react-native-webview`
Downloading dependencies
Installing AppAuth (1.3.0)
Using BVLinearGradient (2.5.6)
Using DoubleConversion (1.1.6)
Using FBLazyVector (0.61.0-rc.3)
Using FBReactNativeSpec (0.61.0-rc.3)
Using FBSDKCoreKit (5.8.0)
Using FBSDKLoginKit (5.8.0)
Using FBSDKShareKit (5.8.0)
Using Folly (2018.10.22.00)
Installing GTMAppAuth (1.0.0)
Installing GTMSessionFetcher (1.3.0)
Installing GoogleSignIn (5.0.2)
Using RCTRequired (0.61.0-rc.3)
Using RCTTypeSafety (0.61.0-rc.3)
Using RNBackgroundFetch (2.7.1)
Using RNDeviceInfo (5.3.1)
Using RNGestureHandler (1.5.2)
Installing RNGoogleSignin (3.0.3)
Using RNReanimated (1.4.0)
Using RNSVG (9.13.3)
Using RNScreens (2.0.0-alpha.15)
Using RNVectorIcons (6.6.0)
Using React (0.61.0-rc.3)
Using React-Core (0.61.0-rc.3)
Using React-CoreModules (0.61.0-rc.3)
Using React-RCTActionSheet (0.61.0-rc.3)
Using React-RCTAnimation (0.61.0-rc.3)
Using React-RCTBlob (0.61.0-rc.3)
Using React-RCTImage (0.61.0-rc.3)
Using React-RCTLinking (0.61.0-rc.3)
Using React-RCTNetwork (0.61.0-rc.3)
Using React-RCTSettings (0.61.0-rc.3)
Using React-RCTText (0.61.0-rc.3)
Using React-RCTVibration (0.61.0-rc.3)
Using React-cxxreact (0.61.0-rc.3)
Using React-jsi (0.61.0-rc.3)
Using React-jsiexecutor (0.61.0-rc.3)
Using React-jsinspector (0.61.0-rc.3)
Using ReactCommon (0.61.0-rc.3)
Installing ReactNativeART (1.0.3)
Using ReactNativeExceptionHandler (2.10.8)
Using SDWebImage (5.3.2)
Using Yoga (1.14.0)
Using boost-for-react-native (1.63.0)
Using glog (0.3.5)
Using react-native-config (0.12.0)
Using react-native-cookies (3.2.0)
Using react-native-fast-image (6.1.1)
Using react-native-fbsdk (1.1.1)
Using react-native-netinfo (4.6.1)
Using react-native-slider (1.1.4)
Using react-native-splash-screen (3.2.0)
Using react-native-track-player (1.1.8)
Using react-native-video (5.0.2)
Using react-native-webview (7.5.2)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 49 dependencies from the Podfile and 55 total pods installed.

[!] The `WefiqTests [Debug]` target overrides the `FRAMEWORK_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-WefiqTests/Pods-WefiqTests.debug.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

[!] The `WefiqTests [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-WefiqTests/Pods-WefiqTests.debug.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

[!] The `WefiqTests [Release]` target overrides the `FRAMEWORK_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-WefiqTests/Pods-WefiqTests.release.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

[!] The `WefiqTests [Release]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-WefiqTests/Pods-WefiqTests.release.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

There seems to be incompatible code in lib AppAuth 1.3.0
I workaround it to 1.2.0 and it worked fine!

Apparently it works and builds fine on Xcode 11.

@kaseru where i need to change this version ?

@appify-waheed  change it in podfile.lock :)

@kaseru i have tried in the Xcode 11 and it works there but i will also try to change this with podfile.lock file, Thanks

@kaseru in Pod.lock there is already AppAuth AppAuth (~> 1.2)

how can i add AppAuth 1.2.0 directly ,
in podfile i added this line
AppAuth ~> 1.2.0
but its showing syntax error while installing pod.

since this issue has been inactive for a while I'm assuming solution from https://github.com/react-native-community/react-native-google-signin/issues/793#issuecomment-561244859 works, or upgrading to xcode 11 helps.

authors: appify-waheed avbeladiya kaseru ravishankar3961 vonovak


text:
The app crashes after reinstalling the react-native-maps 0.21.0

Environment
react-native: 0.54.0
react: 16.0.0
react-native-maps: 0.21.0

Target Platform:  Android 7.0 Galaxy S6
Expected Behavior
I'm using the react-native-maps for about a year and I never had such an issue but I recently reinstalled it but my app crashes when I use  component.
There is no change in my code but just I reinstalled the library and did all the steps in installation to make changes in build.gradle files and others as advised.
I used gradle 2.2.3 (I guess) but seems in this version I need to use gradle 3.0.1 or higher which I updated it as well.
I followed the steps in #2152 so I could build but when run it it crashes again.
Actual Behavior
The application crashes

Did you update your gradle to 3?

If it crashes it should have some logs, try to get some
gradle neeeds to be updated to 3 (there are 2 places you need to be sure things are changed - https://github.com/react-community/react-native-maps/pull/2096#issuecomment-376877553)
run a gradle clean (in your android folder)

I found the issue
needed to use google play services base v11.0.4 instead of 10.0.1
also complile sdk version 27.0.3
implementation(project(':react-native-maps')){
            exclude group: 'com.google.android.gms', module: 'play-services-base'
            exclude group: 'com.google.android.gms', module: 'play-services-maps'
        }
        implementation 'com.google.android.gms:play-services-base:11.0.4'
        implementation 'com.google.android.gms:play-services-maps:11.0.4'
}

in androidmenifest.xml

<uses-library         android:name="org.apache.http.legacy"         android:required='false' />
in androidMenefest

authors: havinhthai rborn umairalii xempie


text:
style set warning as of version 0.0.35

I just upgraded to the new release (0.0.35) and now get this warning, appears to be coming from TabBarTop.js:
YellowBox.js:69 You are setting the style { position: ... } as a prop. You should nest it in a style object. E.g. { style: { position: ... } }

@dannycohran oh, sorry for that. You can safely ignore it. It's because React thinking the normal position prop is a style prop. I was testing in production mode, so didn't catch it. Will do another release in a minute.

Published a new version. The warning should be gone now.

@satya164 thanks!


text:
Google play console show error com.facebook.react.common.JavascriptException: null is not an object (evaluating 'n.webView.injectJavaScript')

Bug description: Google play console show errors on Failures area.

To Reproduce: I can not reproduce the error on my smartphone in developer mode.
Complete mesage google play console:
com.facebook.react.common.JavascriptException: null is not an object (evaluating 'n.webView.injectJavaScript'), stack:
s@355:4641
value@355:4741
@355:3447
@337:976
value@46:1362
value@25:3449
@25:960
value@25:2703
value@25:932
at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java
at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException (ExceptionsManagerModule.java:38)
at java.lang.reflect.Method.invoke (Native Method)
at com.facebook.react.bridge.JavaMethodWrapper.invoke (JavaMethodWrapper.java:372)
at com.facebook.react.bridge.JavaModuleWrapper.invoke (JavaModuleWrapper.java:158)
at com.facebook.react.bridge.queue.NativeRunnable.run (Native Method)
at android.os.Handler.handleCallback (Handler.java:873)
at android.os.Handler.dispatchMessage (Handler.java:99)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage (MessageQueueThreadHandler.java:29)
at android.os.Looper.loop (Looper.java:214)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run (MessageQueueThreadImpl.java:192)
at java.lang.Thread.run (Thread.java:764)

Environment:

OS: Android
OS version: 6.0, 7.0, 9.0
react-native version: 0.58.4
react-native-webview version: 5.2.1

This means there is a code path where your ref is not defined yet when you call this function, this is not a bug specifically with webview

authors: Titozzz michaelopes


text:
Execution failed for task ': app:checkDebugAarMetadata', The minCompileSdk (33) specified in a dependency's AAR ...

Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch react-native-image-picker@4.10.0 for the project I'm working on.

Here is the diff that solved my problem:
diff --git a/node_modules/react-native-image-picker/android/build.gradle b/node_modules/react-native-image-picker/android/build.gradle
index ddfdd41..1f63b14 100644
--- a/node_modules/react-native-image-picker/android/build.gradle
+++ b/node_modules/react-native-image-picker/android/build.gradle
@@ -5,7 +5,7 @@ android {

     defaultConfig {
         minSdkVersion 21
-        targetSdkVersion 33
+        targetSdkVersion rootProject.ext.targetSdkVersion
         versionCode 1
         versionName "1.0"
     }
diff --git a/node_modules/react-native-image-picker/android/build/intermediates/aar_metadata/debug/aar-metadata.properties b/node_modules/react-native-image-picker/android/build/intermediates/aar_metadata/debug/aar-metadata.properties
new file mode 100644
index 0000000..d8560bd
--- /dev/null
+++ b/node_modules/react-native-image-picker/android/build/intermediates/aar_metadata/debug/aar-metadata.properties
@@ -0,0 +1,2 @@
+aarFormatVersion=1.0
+aarMetadataVersion=1.0

This issue body was partially generated by patch-package.

Just upgrade react-native-image-picker manually

authors: meshamanth wolframus


text:
Image in webview on Android not shown

I am using a webview to display custom html taken from Cloud FireStore. In some cases there is an image in that html. On iOS the image shows, but on Android the image is not shown. I just get the alt text.
This is the image tag inside the html:

Is this a bug in webview or is there a setting I miss.
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
Memory: 24.10 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 11.0.0 - /usr/local/bin/node
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
Android SDK:
Build Tools: 27.0.3, 28.0.2, 28.0.3
API Levels: 19, 21, 22, 23, 24, 25, 26, 27, 28
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: /undefined - /usr/bin/xcodebuild
npmPackages:
react: 16.6.0-alpha.8af6728 => 16.6.0-alpha.8af6728
react-native: 0.57.4 => 0.57.4
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7

I actually have no idea, does this work when you import WebView directly from react-native or is that a regression on this repo ?

@Titozzz, nope same issue. Are there some characters in the img code above that webview doesn't like?

No. You can access the chrome debugger inside the webview and check if there are any error ? https://github.com/react-native-community/react-native-webview/blob/master/docs/Debugging.md

No error shown.

And is the HTML loaded?

I did some more digging and found the follow in Android Studo:
Cannot call determinedVisibility() - never saw a connection for the pid
This message appears together with the html, so I guess it has something to do with the issue.

Is there an idea on how to fix this?

Have you tried this:
https://stackoverflow.com/questions/33083066/android-webview-cannot-call-determinedvisibility-never-saw-a-connection-for

Thanks for your reply, I have tried it, but still the image is not showing inside the website, it still only shows the alt text.

@udarts Can you publish a minimal app that reproduces this issue so we can clone and look at it? Thank you!

@jamonholmgren I will try to provide it this week.

I have the same problem, in Android, using the latest React Native version (0.57).

@jamonholmgren will try to add a minimal repo today

@jamonholmgren, hereby the snack.expo (only it has an issue with native code for the webview, don't know why), so you have an idea on the setup and you can try it yourself on an android device: https://snack.expo.io/@udarts2/webview

try this
mixedContentMode="compatibility"

hi there
if you use html
It's better to set up a complete HTML like this
<!doctype html>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">

    <title>cceos</title>

was this ever fixed? am facing same issue

still searching for solutions

No solution here? Facing the same issue.
Works (nearly) perfectly on iOS but not on Android 9.

Never mind. It works great.
The issue for me was, I was using Google Static Map and setting 'Size' property was the issue.
Size property must be integers.

Still searching for solutions

Me too, it a URI set to a URL that downloads an image works in iOS, but not on Android.

I'm suffering from the same issue.

+1

We'd love help solving this issue from those who are reporting it. Refer to this issue in your PR. Thank you!

i think i have same issue with you. I use webview to show image from HTML code. Some image link working and some error. I think it depend on Image Link
WORKING: https://s3-ap-southeast-1.amazonaws.com/bework-test/wiki/document/district/6/2020/7/1/1905995386_1593592533946.png
ERROR: https://storage.googleapis.com/slite-api-files-production/files/197346c9-fa22-4713-84df-3379f92c3e73/Screenshot%25257%25251%25252020.png
Which link have "%" then it don't working, same as you

I had a similar issue, and I think that was some issue with the certificate.
And that worked for me:
webView.webViewClient = object : WebViewClient() {
    //Intercepts SslError and proceed
    override fun onReceivedSslError(view: WebView?, handler: SslErrorHandler?, error: SslError?) {
        //try to print SslError to find out what's happening
        println(error)
        handler?.proceed()
    }
}

@lmint1 It worked for me too!

I had a similar issue, and I think that was some issue with the certificate.
And that worked for me:
webView.webViewClient = object : WebViewClient() {
    //Intercepts SslError and proceed
    override fun onReceivedSslError(view: WebView?, handler: SslErrorHandler?, error: SslError?) {
        //try to print SslError to find out what's happening
        println(error)
        handler?.proceed()
    }
}

Where do you add these?

@phuwin95 It was in a native project. Sorry but I don't know how to fix it in React Native.
Take a look in this PR, maybe it can be useful:
https://github.com/react-native-community/react-native-webview/pull/1450#issue-432207455

any news about the issue? failed to get image on iphone..
ignore ssl fixed it but now on later version no ignore ssl?

try this
mixedContentMode="compatibility"

Worked for me on android.

try this
mixedContentMode="compatibility"

I tried this and it worked on the emulator but when created an Apk and ran it on the real device the issue was same. No images got loaded and showing alternative name or empty image boxes.

If you look at the android props there's also a mixedContentMode prop which you can set to "always" if you trust the site you're getting content from which allows it to load media - worked for me

the images are being loaded in Expo Go app but when using APK no

Having this same issue with images loaded from firebase storage.

That's because Android emulator cannot access the internet.
Solution: https://stackoverflow.com/questions/42736038/android-emulator-not-able-to-access-the-internet/49332186#49332186


text:
Can I get the x position of the drawer?

Hi. I would like to get the x position of the drawer so that I can animate the header and footer as someone is opening/closing the drawer. Essentially, as they drag in the drawer I want to have the header opacity and color change etc.
Is there any way to do that. For header, I know there is a 'position' prop that is an animated value that I can use when you are changing tabs, but is there something like this for the drawer?
In react-native-gesture-handler DrawerLayout there is a dragX value but not sure how to expose that outside of that library, or if react navigation exposes it somehow.
Thanks.

Just released yesterday
https://github.com/react-navigation/react-navigation-drawer/pull/40

Amazing, thanks @rgoldiez

authors: Jonovono rgoldiez


text:
Fix links to anchors

The anchors created from the markdown are in lower case. I changed all links to anchors to lower case.

Seems like we aren't using the translation features of docusaurus and thus the links in the footer isn't working. Fixed those too.

Reverted back the changes to Footer.js.

thanks!

authors: abhishek-raj brentvatne


text:
Fix MenuItem onclick called without event

In all other cases the event listener receives the event. I need to receive the event to stop its propagation.

Great work!

authors: javivelasco paulocmoreno

repo: react-toolbox/react-toolbox


text:
Columns switching

Hi
I want to use column reordering. Is it possible to click on the header and get the small list of all headers and then select a header to with we can switch.
Thanks

This feature/issue has been tagged as one that will likely be fixed or improved in the next major release of React-Table. This release is expected to be completed in the next 6 - 8 months. Please see #1143 for more detail. If you believe this feature can be easily fixed, we invite you to fork the project, attempt the fix, and use it until the latest version is available. If the fix is simple enough, we will also consider it as a PR to the current version.

repo: react-tools/react-table


text:
Translate: Component

Progress

[x] 번역 초안 작성 (Draft translation)
[x] 공통 스타일 가이드 확인 (Check the common style guide)
[x] 모범사례 확인 (Check best practices)
[x] 용어 확인 (Check the term)
[x] 맞춤법 검사 (Spelling check)
[x] 리뷰 반영 (Resolve reviews)

@MaxKim-J 꼼꼼히 봐주신 내용 모두 반영했습니다! 감사합니다 ㅎㅎ


text:
Child connected component and ownProps

Please close this if it's not the proper place to ask this:
If I have a child connected component whose ownProps ultimately comes from the storeState through one of it's parent, when the store updates does this component tries to update twice?
Example:
const ConnectedComponent1 = connect(
(state) => {return {options: state.option}}
)((props)=> {return (<Component2 options={props.options}/>)})

const Component2 = (props) => {
  const children = props.options.map(option=>{
    return (<ConnectedComponent3 option={option}/>)
  })
  return children
}

const ConnectedComponent3 = connect(
  (state, ownProps) => {return {optionB: state.options[ownProps.option.otherOptionId]}}
)((props)=> {return (<div>{props.option.id}{props.optionB.id}</div>)})

Yeah, this is better off asked on Stack Overflow instead.  Could also try adding some console logging and see what happens :)

authors: maloguertin markerikson

repo: reactjs/react-redux


text:
Fix the problem introduced by previous refactor in shallowEqual

Previous refactor shallowEqual has introduced an issue as follow
function A() {}
A.prototype.a = 1
const a = new A()
const b = { a: 2 }
shallowEqual(a, b) // returns true, expects false

This will be handled by #591. Thanks!

authors: jddxf timdorr


text:
Possible regression in 4.0.5

Hi, after updating from 4.0.4, i observed 2 bugs:

Nothing happens upon linking any link the first time.
Firing an action the first time triggers LOCATION_CHANGE.

Both bugs went away after downgrading to 4.0.4.

What do you mean with "linking any link"? You mean nothing happens the first time you click on a link?
Are you talking about firing one of these actions? https://github.com/reactjs/react-router-redux#pushlocation-replacelocation-gonumber-goback-goforward

The change that was done in 4.0.5 was minimal and should not affect anything other than when using server side rendering on the initial load. Do you have an example repo that shows this behaviour?

My bad, i meant clicking any link.
Nope, these are app specific actions.

Unfortunately the repo is a private one. I'm doing SSR. Could it be the same changes are also applied on client side and caused the bug?

Can you share some of the code you have for setting up your SSR and the client side syncing setup?

Hopefully its useful:

// client
let history = useScroll(() => browserHistory)();
const store = createStore(history, { initialData: window.__data });
const routes = appRoutes(store);
history = syncHistoryWithStore(history, store)
history.listenBefore((location, callback) => {
  match({ location, routes }, (err, redirectLocation, renderProps) => (
    someApi.then(callback)
  ));
});

// server
const memoryHistory = createHistory(req.originalUrl);
const store = createStore(memoryHistory);
const history = syncHistoryWithStore(memoryHistory, store);

It seems like history.state has a key that is different from store.routing.locationsBeforeTransition. Syncstore thinks that they are different and decides to fire an action for LOCATION_CHANGE. I could stop that by deleting store.routing on server side __data.

Could you show the state that you have from the server and what the URL is in the browser along with the history state?
Which library is useScroll? Not sure if that has anything to do with this but it is something different from the example setup.

useScroll comes from https://github.com/taion/scroll-behavior

This is the one reverting to 4.0.4:

I can't replicate this in the server example that is in this repo. The history.state.key is not the same as the key in the store as you mention but it seems like that does not matter since it works fine for me.
Could you see if you could make some small modifications to the example so that it shows the same behaviour as you are seeing?
One thing I notice however is that it seems like you are using an old version of scroll-behavior and updating it or switching to https://github.com/taion/react-router-scroll might help.

authors: dlmr khankuan timdorr

repo: reactjs/react-router-redux


text:
Update outdated URL in code-splitting.md

Next.js Dynamic Import.

@nhantdn thanks!


text:
Fixed a typo

Fixed a trivial type: determing -> determining

Thaks!

authors: averyby timdorr

repo: reactjs/redux


text:
Selector with props in result func

If you have a state that looks like this:
const state = {
  data: {
    books: {
      recipes: {
        '123': { title: 'How To Make Apple Pie' }
      }
    }
  }
}

And you want a selector function
getRecipe(state, '123'); // { title: 'How To Make Apple Pie' }

Such a selector would make sense to build by composing selectors:
const books = state => state.data.books;
const recipes = createSelector(books, books => books.recipes);
const getRecipe = createSelector(recipes, (recipes, id) => recipes[id]);

However, with today's code, the props argument (which in this case would be the recipe id) will only be sent to the dependencies, and not to the result func. It would be nice if we could access the props in the result func as well, so that the example code above works.
I attached a unit test which should demonstrate it (the unit test fails because the feature is not implemented.)
Is this something that can be added to reselect?

You can add another "input selector" that extracts that argument:
const selectBooks= state => state.data.books;
const selectRecipes= createSelector(selectBooks, books => books.recipes);
const selectId = (state, id) => id;

const getRecipe = createSelector(selectRecipes, selectId, (recipes, id) => recipes[id]);

build it again

Coverage remained the same at 100.0% when pulling ff06efe5aca678087f7006afcbc9c07975c801b0 on eirslett:feature/props-in-result-func into 347e39a13b35ca0d1a3056e69711504a12deac12 on reactjs:master.

It was mostly a question + a code example to illustrate the question... but I guess if it's wanted, it could be merged as part of the test suite to the extent that the test suite serves as examples/documentation. If not, the PR can be declined.

authors: coveralls eirslett markerikson prashish14

repo: reactjs/reselect


text:
通过yarn react-native run-android编译报错Could not find implementation class 'com.facebook.react.ReactPlugin' for plugin 'com.facebook.react' specified

通过指令编译运行android
报错Could not find implementation class 'com.facebook.react.ReactPlugin' for plugin 'com.facebook.react' specified和compileSdkVersion is not specified. Please add it to build.gradle

配置信息：

是否有全局的gradle配置？

已解决。生成工程 java 版本不是11

已解决。生成工程 java 版本不是11

请问什么意思？我也遇到了相同的问题，请问具体的解决方案是什么？

authors: CuberLuo shijieping0929 sunnylqm

repo: reactnativecn/react-native-website


text:
🛑 Bellshade Website is down

In 86b9121, Bellshade Website (https://bellshade.org) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Bellshade Website is back up in b4a5232 after 5 minutes.


text:
🛑 Web Kartu Ujian is down

In 8fb5363, Web Kartu Ujian (https://kartuujian.sman12-bekasi.sch.id/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Web Kartu Ujian is back up in 259514e after 16 minutes.


text:
patch for footer linkedin (got removed while merging another commit)

The linkedin link  in the footer got removed while pushing another commit , this PR fixes the issue @shrilakshmishastry

@atapas , Please review and merge this.

authors: ArslanYM Sachin-chaurasiya

repo: reactplay/docs


text:
IndianCricketersInfo

First thing, PLEASE READ THIS: ReactPlay Code Review Checklist

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Checklist:

[X ] I have performed a self-review of my own code
[ X] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

Screenshots or example output

Vercel link:  https://indian-cricket-stats.vercel.app

5000+ changes 🫡 @Saichandan37

5000+ changes 🫡 @Saichandan37

I have added my code in the below path

reuploading after few updates

repo: reactplay/react-play


text:
Module parse failed: Unexpected character '�' (1:2) You may need an appropriate loader....

I added sharp package. But I am not able to utilize it:
(undefined) ./node_modules/sharp/build/Release/sharp.node
Module parse failed: Unexpected character '�' (1:2)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
 @ ./node_modules/sharp/lib/constructor.js 9:14-52
 @ ./node_modules/sharp/lib/index.js
 @ ./kit/lib/sharp.js
 @ ./src/app.js
 @ ./kit/entry/browser.js
 @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server react-hot-loader/patch webpack-dev-server/client?http://localhost:8080/ webpack/hot/only-dev-server ./kit/entry/browser.js

What's the possible fix for this? I googled and got 1-2 answers for this, but I'm not aware of where and how correct changes should be made in reactql's existing webpack config.

You'll need to use this solely on the server, since it's a Node binary. Looking at your stack trace, it seems that you're trying to use it in src/app.js, which is loaded by kit/entry/browser.
To use it in a 'safe' server-only block, wrap it in:
if (SERVER) {
  // stuff you want to only want to `require` / run on the server
}

@leebenson Ok thanks. How can I fix the linting issue:

ESLint: Promise is not supported in Opera Mobile 12, Opera Mini all, IE Mobile 10, IE 9, Blackberry Browser 7 (compat/compat)

I am using promise for implementing sharp. Should I add a polyfill?

I'm not familiar with Sharp, and can't offer any specific advice on implementing non-ReactQL parts of your stack. Questions are better suited for stackoverflow.com - this issue board is for reporting bugs / discussing features of ReactQL specifically.

The same problem with opencv4nodejs.
[ng] WARNING in ./node_modules/opencv4nodejs/lib/cv.js 15:7-68
[ng] Critical dependency: the request of a dependency is an expression
[ng] WARNING in ./node_modules/opencv4nodejs/lib/cv.js 17:7-70
[ng] Critical dependency: the request of a dependency is an expression
[ng]
[ng] ERROR in ./node_modules/opencv4nodejs/build/Release/opencv4nodejs.node 1:2
[ng] Module parse failed: Unexpected character '�' (1:2)
[ng] You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
[ng] (Source code omitted for this binary file)

@Heveraldoo - did you try the advice in this comment?
It sounds like you might need to forego using this as a top-level import and instead use a conditional require or async import inside an if SERVER {..} block.

I'm developing a ionic app with typescript:
import { Component } from '@angular/core';
import * as cv from 'opencv4nodejs';
@Component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
})
export class HomePage {
constructor() {}
teste(){
var imageMAT = cv.imread("teste.jpg");
}
}
So, I means SERVER not exist.

This is a very old repo - ReactQL has moved to https://github.com/leebenson/reactql
ReactQL is built for React -- if you're trying to use Angular with it, this isn't the right starter kit for your project.

authors: Heveraldoo haxxorsid leebenson

repo: reactql/kit


text:
Instance types of institution entities for SPARQL query

Hi @duncdrum
I am trying to write a SPARQL query to get QIDs by looking up with Institution names.
For example, for Beijing No. 4 High School (Q4881166).
I have the following query:
SELECT distinct ?in ?inLabel ?inDescription
WHERE{
    {?in wdt:P31 wd:Q4876006;
                rdfs:label "Beijing No. 4 High School"@en}
    UNION
    {?in wdt:P31 wd:Q5962346;
                rdfs:label "Beijing No. 4 High School"@en}
  SERVICE wikibase:label { bd:serviceParam wikibase:language  "[AUTO_LANGUAGE], en"}
}

The key makes this query work is wd:Q4876006, which represents for Beacon high schools in Beijing (Q4876006).
I kept the UNION statement here because I think the institutions in Institution.csv will be referenced to different instance categories so that later I can add similar structures easily.
However, I want to use instance types which can be much more abstract than Beacon high schools in Beijing (Q4876006).
I tried with the parent instance type of Beacon high schools in Beijing (Q4876006), but it doesn't work, the grandparent-like instant type doesn't work as well.
Any hint? I suppose otherwise I can go to read the source code of wikibaseintegrator to see how they achieved it.

Before rolling our own solution, checking how the integrator implements this is a good idea. Top of my head I don’t see an obvious solution / reason why our mismatch rate is substantially higher than theirs.

My guess is that they used regex and we are asking for exact match string. Am checking their implements now.

yes basically we are happy if most of the name string appears in the wikidata label, getting a good formula to implement this in code will require some tweaking

This will be closed due to the fact that we replaced the SPARQL query of searching strings with MediaWiki API service.

authors: duncdrum whalekeykeeper

repo: readchina/WikidataLookup


text:
Nak counter belonging to channel

If there is network packet loss on a channel, the subscription will send nak messages to the publication. Then the publication will resend data in the sender thread, which would reduce the sending rate of other publications.I hope that if I can sense the number of naks in the channel, I can turn off the publication of the channel that generate a large number of naks to avoid having a worse impact.But I can not do that because the nak counter is the sum of all NetworkPublications, rather than belonging to a particular one.

You should look into the loss reporter. i.e. the LossStat application.

You should look into the loss reporter. i.e. the LossStat application.

The loss reporter is in the receiver of the channel，but not the sender.As a publication, if the subscription would not close itself, it can not close itself through check the network packet loss.

authors: moyeanl tmontgomery

repo: real-logic/aeron


text:
Swift Compiler Error for Xcode 8 and Swift 2.3

Goals
I want to migrate a project from Xcode 7.3 and Swift 2.2 to Xcode 8 and Swift 2.3.
Expected Results
I am downloading the latest version of Realm and RealmSwift, 1.0.2. Expected code to compile.
Actual Results
Received compiler error:
"Type 'RLMRealm' has no member 'performMigrationForConfiguration'"
in file Pods/RealmSwift/Migration.swift
Steps to Reproduce
I thought this might be problem with the existing project, but was able to reproduce the error as follows:
Create a new single application project in Xcode 8. Pod init. Added RealmSwift to the podfile with this code:
pod 'RealmSwift', :git => 'https://github.com/realm/realm-cocoa.git', :branch => 'master'

Pod install. Converted code to Swift 2.3. Cleaned project, then ran project. Received Error.
Help would be appreciated!!!

You're using Realm Swift from master so you need to tell CocoaPods to also use Realm Objective-C from master:
pod 'Realm', :git => 'https://github.com/realm/realm-cocoa.git', :branch => 'master'
pod 'RealmSwift', :git => 'https://github.com/realm/realm-cocoa.git', :branch => 'master'

Otherwise CocoaPods will try to use Realm Swift from our Git master against the most recent release of Realm Objective-C, which isn't likely to work.

Awesome! Thanks @bdash, that solved the issue!

It looks like for older versions of cocoapods (0.39 in my case) you need the following:
pod 'Realm', :git => 'https://github.com/realm/realm-cocoa.git', :branch => 'master', submodules: true
pod 'RealmSwift', :git => 'https://github.com/realm/realm-cocoa.git', :branch => 'master', submodules: true

@brynjar I did that and I get these errors:

From the top error in your screenshot - did you do a clean build?

@brynjar ok I did a clean build and it works, thank you !!

I was using RealmSwift 2.1.2. I recently updated to RealmSwift 2.4.3.
Using Swift 2.3
Cocoapods 1.2.0
While I built the project, it produces a list of 483 Build errors in RealmSwift pod.

As of v2.4.0, Swift 2.x is no longer supported.

@bdash Thanks

@alejandro-menendez what did you do instead? I have the exact same issue.

@Tindi as of now I am using 2.3.0 ( pod 'RealmSwift', '2.3.0' ).

@alejandro-menendez yeah did the same. But thanks for your response! I'll migrate to Swift 3 soon.

@Tindi same here

authors: Tindi alejandro-menendez alexge1 bdash brynjar pableiros

repo: realm/realm-cocoa


text:
[RealmSwiftObject defaultPropertyValues]: unrecognized selector sent to class

I am attempting to create an unmanaged instance of a managed Realm Object.
let managedFooTask: PendingTask = realm.getFooTaskById(10) as! PendingTask
// Above is my managed task I got from the realm, below I am trying to get an unmanaged instance of it.
let fooUnmanagedTask: Object = Object(value: managedFooTask as! Object)

This is my Realm Object model for FooTask:
class FooTask: Object, PendingTask {

    convenience init(realmId: Int) {
        self.init()
        self.realmId = realmId
    }

    dynamic var realmId: Int = 0
    dynamic var createdAt: Date = Date()
    dynamic var manuallyRunTask: Bool = false

    override static func primaryKey() -> String? {
        return "realmId"
    }

    func queryForExistingTask() -> NSPredicate {
        return NSPredicate(format: "realmId == \(realmId)")
    }

    func canRunTask(realm: Realm) -> Bool {
        return true
    }
}

The crash happens on line:
let fooUnmanagedTask: Object = Object(value: managedFooTask as! Object)

If you notice in the Realm model that I have created, FooTask there are default values given for all of the properties. Would that be the issue with this crash?
Goals
Create an unmanaged instance of a managed Realm Object.
Expected Results
Get an unmanaged instance of a managed Realm Object
Actual Results
2017-04-06 16:33:36.269 - Debug[76856:8863377] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[RealmSwiftObject defaultPropertyValues]: unrecognized selector sent to class 0x10711c0f8'

Steps to Reproduce
Create an instance of FooTask somewhere in the app on a background thread. After the Realm write block is complete, send a notification via NSNotification. AppDelegate receives notification by observing it and then runs the code snippet given above in a new background thread where I am (1) querying Realm to get my managed instance of FooTask from the realm and (2) create an unmanaged instance of it.
My managed realm object is valid as I set a breakpoint before: let fooUnmanagedTask: Object = Object(value: managedFooTask as! Object) and po managedFooTask to get a description of the object with class name FooTask and all properties populated with the correct values.
I have read this issue which seems similar and what also told me to use Object(value: ) to create an unmanaged instance of a managed object as well as this issue which gave me the hint to try and clean the project to see if that would fix this issue. I cleaned out all of my pods via rm -rf Pods/ and reinstalled them all via pod update, then performed an Xcode Clean, ran the app again and same exception.
Version of Realm and Tooling

Realm framework version: 2.5.1
Xcode version: 8.3
iOS/OSX version: iOS simulator iPhone 7 version 10.3

Hi @levibostian. Thanks for reaching out about this. I wanted to let you know that we've received your issue and that someone will follow-up with you soon.

Thank you @istx25

The first thing that jumps out at me is that the Object class isn't intended to be used directly, but rather as a parent class to subclass for your own models.
If you refactor your code to avoid that, do you still hit this issue? If so, let me know ideally with a sample Xcode project, and I'll take a closer look.

I do understand that Object is supposed to not be used directly. That is fine. I am all about best practices. I can use another method besides creating an Object instance directly.
I got the idea to creating an Object instance from your comment in this issue.
Is there another way to create an unmanaged instance from a managed instance of an object? I come from the realm-java lib where creating unmanaged instances of managed instances is built into the lib. What is the realm-cocoa equivalent or best practice instead?
My use case: I perform a realm query to get a realm Object > I perform a write on this object > Perform an API call > Perform another write on this object.
I am trying to create an unmanaged object because I can share the object across threads (as I will be on a different thread after the API call is performed since the API call will be performed on another thread and the callback after it is complete will be called from this API thread).
I was looking through the Realm docs yesterday for Swift and it mentioned passing instances across threads. I am guessing this is the realm-cocoa equivalent to working with managed objects across threads?
I don't mind this solution. However, it does not seem as flexible as creating an unmanaged object. Unmanaged objects are very flexible do handle them however you would like. The biggest limitation that I see is A ThreadSafeReference object must be resolved at most once. I may have scenarios that I would need to resolve a ThreadSafeReference 2+ times. What do I do in this case? Is there a pattern that users usually do?

Hi @levibostian!
Like JP said, the Realm Object class is an abstract-like class that isn't intended to be used on its own. The schema that controls the types of data that the Object will store are defined in the user-defined Object subclasses. Object itself has no schema, so it has no idea how to persist those properties. But you can easily use the PendingTask subclass to create unmanaged copies.
To create an unmanaged version of PendingTask, it's completely fine to do this:
let managedFooTask = realm.getFooTaskById(10)
let fooUnmanagedTask = PendingTask(value: managedFooTask)

Creating unmanaged copies in order to pass them between threads would work, but it would be quite inefficient. You'd be paging in and making copies of each object you're working with, and you'd introduce the overhead of re-inserting the objects back into Realm as opposed to to simply updating the values you changed.
If you have a need for tracking objects across multiple threads, and you want to minimize the number of times you need to create a thread reference, the technique we used to recommend before then was to assign a primary key property to each object, pass the primary key value itself across threads, and then use realm.object(ofType:forPrimaryKey:) to re-query for that object on the new thread.
I hope that helped!

@TimOliver, that is super helpful. Super helpful.
I will give the PendingTask(value: managedFooTask) a shot for curiosity reasons. I do understand the overhead that you are talking about. I have been handling unmanaged objects in realm-java for a year now. Luckily I have variable naming on my side :)
I will look into realm.object(ofType:forPrimaryKey:) too.
If I decide to use PendingTask(value: managedFooTask) or realm.object(ofType:forPrimaryKey:), I have never gotten it to work completely. I am never creating direct instances of PendingTask(). I am subclassing it. PendingTask() is a protocol.
So, I have been trying to do generic realm queries with no success. I understand generics. Been using them in Java for years. Swift is a little different, however (and not as complete as Java in terms of functionality) and have had issues getting it to work.
Any tips on generic realm queries? Being able to query realm for a generic type (generic subclass of Object and PendingTask).

Hi @levibostian!
Cool! Give it a try and let us know how you go!
Hmm, generic queries? How would that look exactly?
In terms of what I think you're hoping for, Realm doesn't do generic queries, sorry. When you perform a query in Realm, you specify the exact Object class you wish to query, and the resulting Results object will represent a collection of those subclass model objects.
There's been some discussion about methods of applying polymorphic practices to Realm objects. I'd recommend checking that out if it's something you're curious about adopting. :)

That's what I needed. Thank you. I have learned what I needed. Thank you so much for all the help, team.

Awesome! Glad I was able to help! Thanks a lot! :)
Best of luck!

authors: TimOliver istx25 jpsim levibostian


text:
Better error message when using val instead of var

Hi, I'm making migration from the Java to Kotlin SDK. And I'm having a problem with the PrimaryKey. I've created a new model class but still getting exception:
java.lang.ExceptionInInitializerError
at java.lang.reflect.Field.get(Native Method)
at kotlin.reflect.jvm.internal.KClassImpl$Data$objectInstance$2.invoke(KClassImpl.kt:117)
at kotlin.reflect.jvm.internal.ReflectProperties$LazyVal.invoke(ReflectProperties.java:63)
at kotlin.reflect.jvm.internal.ReflectProperties$Val.getValue(ReflectProperties.java:32)
at kotlin.reflect.jvm.internal.KClassImpl$Data.getObjectInstance(KClassImpl.kt:108)
at kotlin.reflect.jvm.internal.KClassImpl.getObjectInstance(KClassImpl.kt:242)
at kotlin.reflect.full.KClasses.getCompanionObjectInstance(KClasses.kt:57)
at io.realm.kotlin.internal.platform.RealmObjectKt.realmObjectCompanionOrNull(RealmObject.kt:27)
at io.realm.kotlin.Configuration$SharedBuilder.<init>(Configuration.kt:408)
at io.realm.kotlin.RealmConfiguration$Builder.<init>(RealmConfiguration.kt:51)
...
$io_realm_kotlin_primaryKey$1 cannot be cast to kotlin.reflect.KMutableProperty1

This is my old Java SDK class:
public class MyClass extends RealmObject {

    @PrimaryKey
    @Required
    private String myId;
    private String otherValue;

and the new one:
class MyClass : RealmObject {
    @PrimaryKey
    val siteId: String = ""
    val otherValue: String? = null

I was trying also with ObjectId as primary key but it's not working. What am I doing wrong?

The properties in the Kotlin model class cannot be val since they might be modified in the Realm database, so they need to be var.
That said, there are a few cases where it might make sense to allow val, the primary key being one of them since it isn't allowed to change. But right now, that isn't supported.

Works perfectly with var, thanks!

We have other issues, i.e. using var  for backlinks will result in Type 'BacklinksDelegate<EmbeddedChild>' has no method 'setValue(Parent, KProperty<*>, RealmResults<EmbeddedChild>)' and thus it cannot serve as a delegate for var (read-write property)

repo: realm/realm-kotlin


text:
Exchange refactoring

event_bus.ex:

removed extra line to prevent warning from credo.

matching_engine.ex:

corrected spread spec.
handle_call for limit order and market order are now compliant with the order book's minimum and maximum price.

order_book_test.exs:

added test for some edge cases and to test the increment_or_decrement function.

order_book.ex:

added and refactored some specs.
the price_time_match doesn't leave empty queues in the order book structure. (update_queue)
in price_time_match when fetched order is matched as empty it is updated the max_bid or ask_min depending on the order and the order is queued.
the calculation of min_ask or max_bid is compliant with the minimum and maximum price of the order book.
price bound check added to increment_ask_min and decrement_bid_max.

👍

authors: emanuel lmpn


text:
UI responsive issue when resizing the signing popup

fixed

fixed

authors: katat luckyyang

repo: rebase-network/synapse-extension


text:
Android causes errors when app uses Firebase

Our CI build broken after adding this.  Upon further inspection, it's a conflict that stems from instanceId using GCM.  I would suggest removing instanceId entirely, as it will avoid any Google Play dependencies, plus it doesn't work for Firebase anyway.

I'm inclined to make this change... I feel this dependency causes lots of headache.
Go ahead and do a PR to remove it, and I'll discuss with a few people to get this pushed through.

You got it.  Give me a few days and I'll hit you up with the PR.

@StevePotter - glad you're on it. When it's 100% I'll release version 0.10.0

@StevePotter did you ever fork or do a PR here?

Closing this in favor of #187 which contains more comments.

authors: GantMan StevePotter dannycochran machour

repo: rebeccahughes/react-native-device-info


text:
Style Arrow ascending/descending

In List template change arrow style.

Move to the left search icon in search bar

repo: recognai/rubrix


text:
the best tools ;-)

i' love it, please add screenshot for the sub domain
keep going like that

@VVaReD thank you, we continue working to improve the app, new UI with new features coming soon!!

@VVaReD thank you, we continue working to improve the app, new UI with new features coming soon!!

authors: VVaReD gorums

repo: reconness/reconness


text:
fixed_bugs_working_with_percentage_based_addons_and_usagelist_improvements

We started adding new functionality to the client 2 months ago, but at the same time, other contributors merged identical changes than ours, so most of the code is already available in the client. Finally, this PR includes only two main changes:

Fixes to some bugs we detected working with the subscription and percentage based AddOns.
A better implementation of the UsageList to request/get usage records, following the same approach used with other Recurly's entities lists.

@jvalladolid Could you elaborate on some of the bugs you fixed and the changes you made? I can't merge bug fix changes without knowing what the bugs were to begin with and I need to be able to confirm your fixes are working.
Also, it's kind of a big PR. It may help to break it down into smaller PRs.

I'm splitting in several pull requests as requested. So I'm going to close this Pull Request as I'm doing the first one right now. Thanks

authors: bhelx jvalladolid

repo: recurly/recurly-client-net


text:
Fix missing company field when updating BillingInfo instances

Resolves #292
Now includes the company field when writing the XML for updating a BillingInfo instance.
Also added a Debug statement to identify any unhandled fields during reading of XML (noticed that currency field isn't currently included but don't think that can be tested unless the environment is configured for multi-currency).
Related tests expanded to include all relevant BillingInfo properties.

Thanks @davidgeary

authors: bhelx davidgeary


text:
Styling individual elements example missing.

In the last version of recurly.js, we could create individual card elements and style them.  This doesn't seem possible in the latest version, and if it is there are no examples here on how to style a form with custom elements.  Please advise.

btw - here is the HTML code that I'm trying along with the js:
<form data-action="subscriptions#paymentFormSubmit" action="/user/subscriptions" accept-charset="UTF-8" method="post">
<input data-recurly="token" name="recurly-token" type="hidden">
<input data-recurly="month" id="cardMonth" name="cardMonth" type="hidden">
<input data-recurly="year" id="cardYear" name="cardYear" type="hidden">

First Name
<input class="form-control" data-recurly="first_name" type="text" value="Ebony" style="background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAfBJREFUWAntVk1OwkAUZkoDKza4Utm61iP0AqyIDXahN2BjwiHYGU+gizap4QDuegWN7lyCbMSlCQjU7yO0TOlAi6GwgJc0fT/fzPfmzet0crmD7HsFBAvQbrcrw+Gw5fu+AfOYvgylJ4TwCoVCs1ardYTruqfj8fgV5OUMSVVT93VdP9dAzpVvm5wJHZFbg2LQ2pEYOlZ/oiDvwNcsFoseY4PBwMCrhaeCJyKWZU37KOJcYdi27QdhcuuBIb073BvTNL8ln4NeeR6NRi/wxZKQcGurQs5oNhqLshzVTMBewW/LMU3TTNlO0ieTiStjYhUIyi6DAp0xbEdgTt+LE0aCKQw24U4llsCs4ZRJrYopB6RwqnpA1YQ5NGFZ1YQ41Z5S8IQQdP5laEBRJcD4Vj5DEsW2gE6s6g3d/YP/g+BDnT7GNi2qCjTwGd6riBzHaaCEd3Js01vwCPIbmWBRx1nwAN/1ov+/drgFWIlfKpVukyYihtgkXNp4mABK+1GtVr+SBhJDbBIubVw+Cd/TDgKO2DPiN3YUo6y/nDCNEIsqTKH1en2tcwA9FKEItyDi3aIh8Gl1sRrVnSDzNFDJT1bAy5xpOYGn5fP5JuL95ZjMIn1ya7j5dPGfv0A5eAnpZUY3n5jXcoec5J67D9q+VuAPM47D3XaSeL4AAAAASUVORK5CYII="); background-repeat: no-repeat; background-attachment: scroll; background-size: 16px 18px; background-position: 98% 50%; cursor: auto;">

Last Name
<input class="form-control" data-recurly="last_name" type="text" value="Scott">

Card Number
<input class="form-control" data-recurly="number" id="cardNumber" type="text">

Expiration
<input class="form-control" data-subscriptions-target="cardExpiry" id="cardExpiry" placeholder="MM/YY" type="text">

CVC
<input class="form-control" id="cardCVV">

Zipcode
<input class="form-control" data-recurly="postal_code" type="text">

<button class="btn btn-primary mt-3 w-100">Complete Your Membership</button>

</form>

const elements = recurly.Elements();
const cardNumberElement = elements.CardNumberElement();
const cardMonthElement = elements.CardMonthElement();
const cardYearElement = elements.CardYearElement();
const cardCvvElement = elements.CardCvvElement();

// form submit
        let expParts = this.cardExpiryTarget.value.split('/')
        console.log('expParts', expParts, this.cardExpiryTarget.value);
        $('#cardMonth').val(expParts[0]);
        $('#cardYear').val(expParts[1]);

        cardNumberElement.attach('#cardNumber');
        cardMonthElement.attach('#cardMonth');
        cardYearElement.attach('#cardYear');
        cardCvvElement.attach('#cardCVV');

Hello!
Looking at your html code I'm making a quick assumption that you're upgrading from using the v3 version of our library. First I'd like to point you to https://developers.recurly.com/reference/recurly-js/index.html#upgrading-from-v3 which will go over how you can rewrite your integration and get you properly setup to work with our latest version.
Once that is setup you can refer to: https://developers.recurly.com/reference/recurly-js/index.html#styling-elements for documentation on stylizing the elements as you instantiate them.

@gilv93 not at all.  Everything you see there was build in the last week directly from your existing docs - the exact ones you point to in your response - which DO NOT provide ANY guidance on how to attach to individual form elements like the above.

@gilv93 as a point of reference, if you look at the docs for 4.10.3 (https://developers.recurly.com/reference/recurly-js/v4.10.3/index.html) there is a section called "Individual card fields" that goes into detail about how to set them up, bind them and style them.  This is MISSING from the latest docs and needs to be added to provide us with some guidance, or at least include an example in this repo that demonstrates this.

Sorry about my assumption from before!
You're right that the docs aren't clear enough and we'll be updating them to add more clarity where we can.
Starting with v4.11.0 we introduced Elements and steered away from Hosted Fields.  In previous versions such as 4.10.3 we could configure these Hosted Fields using syntax such as recurly.configure, but since we're using elements we can now configure the style when instantiating them:
const cardMonthElement = elements.cardMonthElement({
    inputType: 'mobileSelect',
    style: {
      fontSize: '1em',
      placeholder: {
        color: 'gray !important',
        fontWeight: 'bold',
        content: {
          number: 'Card number',
          cvv: 'CVC'
        }
      },
      invalid: {
        fontColor: 'red'
      }
   }
})

The attach method itself should be called on a container HTMLElement such as an HTMLDivElement, calling it on an  tag may prevent the element from rendering. We have just updated the docs to be more clear on this.
If you're still having trouble, if you could show us a demo or put your code on https://codesandbox.io/ (or another similar tool), then we can inspect to see what’s going on.

@gilv93 I really think you are way to close to this to understand the issue.
This isn't about STYLING.  This is about ATTACHING and BINDING to the fields.  This was clearly spelled out in the previous docs.
I've already had to use your standard recurlyElement, which is in the docs, since nothing else worked, so I don't have code.  I do have that form above, which clearly shows individual card elements.  I am STRONGLY recommending you create a new example in this repo called individual_card_elements and create a form that has a credit card number, card expiration (with mm and yy TOGETHER), CVV and zipcode form fields and then the JS code showing how to bind and style them.

That's a great idea, thank you. We appreciate your suggestion and are working on creating a multi-element card form example now to help clear things up.

repo: recurly/recurly-integration-examples


text:
在工具栏配置code、image、table、codeblock插件没有效果，也没有报错（vue2），大神帮忙看下~

这个本身默认配置是在collapse 下的，只有自己配置他们的 content 或者icon 和 onClick 事件了

文档上写着只有type是button和dropdown两种类型下，才有content属性
然后，我直接配置code，好像没有效果，只有在collapse 下才有效果
{ //不可以           {             content: '行内代码',             name: 'code',             icon: '<span style="width:23px;height:23px;display: inline-block;border:1px solid #E8E8E8;"><svg t="1649589474069" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6813" width="200" height="200"><path d="M300.224 224L32 525.76l268.224 301.76 71.776-63.776-211.552-237.984 211.552-237.984zM711.744 224L640 287.776l211.552 237.984L640 763.744l71.744 63.776 268.256-301.76z" p-id="6814"></path></svg><span>'           }

{
type: 'button',
content: '行内代码',
onClick: () => {
console.log('行内代码 click')
}
}

请问编辑器和阅读器的大纲怎么配置

工具栏可以自定义设置末尾插入行和起始插入行的功能吗

请问编辑器和阅读器的大纲怎么配置

可以获取到大纲数据  https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java ，然后自己渲染

工具栏可以自定义设置末尾插入行和起始插入行的功能吗

工具栏只是提供ui，你可以配置一个按钮，onClick 的时候调用 engine api

请问编辑器和阅读器的大纲怎么配置

可以获取到大纲数据 https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java ，然后自己渲染

这个要怎么用呀，建议增加一个可配置大纲的功能哦(●'◡'●)

请问编辑器和阅读器的大纲怎么配置

可以获取到大纲数据 https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java ，然后自己渲染

这个要怎么用呀，建议增加一个可配置大纲的功能哦(●'◡'●)

或者有没有使用大纲的源码参考下

我发错了链接。。。https://editor.aomao.com/zh-CN/plugin/plugin-heading#大纲 这个才对

另外还有个 react 例子就是 editor.aomao.com 上面的例子 https://github.com/red-axe/am-editor/tree/master/examples/react/components/toc

我发错了链接。。。https://editor.aomao.com/zh-CN/plugin/plugin-heading#大纲 这个才对

好的哦 谢啦

另外还有个 react 例子就是 editor.aomao.com 上面的例子 https://github.com/red-axe/am-editor/tree/master/examples/react/components/toc

有没有vue2的例子呀？react看不懂，太菜了==

authors: wakakakk yanmao-cc

repo: red-axe/am-editor


text:
Update README.rst

Example run is not valid.
--valid_chars needs to be --valid-chars (underscore is replaced with a single dash).

Thank you!

repo: redacted/XKCD-password-generator


text:
Downloading with diferent quality?

it can be done? i usually use 1080p but another people use 720p it's possible?

Certanly! Since we use yt-dlp to download our streams, this means any format supported by it can be used here.
I've now exposed an argument "-f" and for 720p it should be used like this: -f "best[height=720]", more information can be found here

Available on build #37 and onwards.

authors: Dokman redbaty

repo: redbaty/Wasari


text:
Fix game thread duplicate output at period end / intermission

Closing since gameday feature has been entirely rebuilt, will create new issues for new version

repo: reddit-seattle/hockeybot


text:
Appstudio update test-component-pac-ylvi

Pipelines as Code configuration proposal
To start the PipelineRun, add a new comment with content /ok-to-test
For more detailed information about running a PipelineRun, please refer to Pipelines as Code documentation Running the PipelineRun
To customize the proposed PipelineRuns after merge, please refer to Build Pipeline customization

Pipelines as Code CI/test-component-pac-ylvi-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
6 seconds
init

✅ Succeeded
22 seconds
clone-repository

✅ Succeeded
28 seconds
build-container

✅ Succeeded
24 seconds
inspect-image

✅ Succeeded
24 seconds
deprecated-base-image-check

✅ Succeeded
44 seconds
clamav-scan

✅ Succeeded
3 minutes
clair-scan

✅ Succeeded
17 seconds
sbom-json-check

✅ Succeeded
1 minute
label-check

✅ Succeeded
7 seconds
show-sbom

✅ Succeeded
6 seconds
show-summary

Pipelines as Code CI/test-component-pac-ylvi-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
9 seconds
init

✅ Succeeded
29 seconds
clone-repository

✅ Succeeded
27 seconds
build-container

✅ Succeeded
13 seconds
inspect-image

✅ Succeeded
13 seconds
deprecated-base-image-check

✅ Succeeded
9 seconds
clair-scan

✅ Succeeded
32 seconds
clamav-scan

✅ Succeeded
9 seconds
sbom-json-check

✅ Succeeded
17 seconds
label-check

✅ Succeeded
7 seconds
show-sbom

✅ Succeeded
7 seconds
show-summary

Pipelines as Code CI/test-component-pac-ylvi-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
9 seconds
init

✅ Succeeded
29 seconds
clone-repository

✅ Succeeded
27 seconds
build-container

✅ Succeeded
13 seconds
inspect-image

✅ Succeeded
13 seconds
deprecated-base-image-check

✅ Succeeded
9 seconds
clair-scan

✅ Succeeded
32 seconds
clamav-scan

✅ Succeeded
9 seconds
sbom-json-check

✅ Succeeded
17 seconds
label-check

✅ Succeeded
7 seconds
show-summary

✅ Succeeded
7 seconds
show-sbom


text:
Appstudio update test-component-pac-zglw

Pipelines as Code configuration proposal
To start the PipelineRun, add a new comment with content /ok-to-test
For more detailed information about running a PipelineRun, please refer to Pipelines as Code documentation Running the PipelineRun
To customize the proposed PipelineRuns after merge, please refer to Build Pipeline customization

Pipelines as Code CI/test-component-pac-zglw-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
5 seconds
init

✅ Succeeded
12 seconds
clone-repository

✅ Succeeded
56 seconds
build-container

✅ Succeeded
13 seconds
inspect-image

✅ Succeeded
14 seconds
deprecated-base-image-check

✅ Succeeded
13 seconds
clair-scan

✅ Succeeded
37 seconds
clamav-scan

✅ Succeeded
9 seconds
sbom-json-check

✅ Succeeded
7 seconds
label-check

✅ Succeeded
4 seconds
show-summary

✅ Succeeded
4 seconds
show-sbom


text:
fix(STONEINTG-603) remove insecure connection from curl

curl -k runs insecure connection to the server. This is a security issue to skip SSL certificate errors by adding -k or --insecure option in curl commands.
This PR is to remove the -k option from the curl command of the deprecated-image-check

We should also fix older versions of this task

/retest

/retest

repo: redhat-appstudio/build-definitions