[feature request] Bundling imported files

Essentially, I'd love if yuescript had bundling support buildin (similar to esbuild and the JS ecosystem).
Splitting code across multiple files and importing it improves readability but sadly makes minification worse when finally shipping to users.
Current solution
I am currently using my own solution which I wrote a few years ago which works by statically looking up all require() calls and then inlining the files by loading them into package.preload.
For example:
-- entry.yue
import "other" as :eprintln

eprintln "hello world"

-- other.yue
export eprintln = (...) -> print "[err]", ...

Turns into something like (very simplified example):
package.preload["other"] = function()
  local _module_0 = {}
  _module_0.eprintln = function (...)
    return print("[err]", ...)
  end
  return _module_0
end

local eprintln
do
  local _obj_0 = require("other")
  eprintln = _obj_0.eprintln
end

eprintln("hello world")

This approach is very simple and reuses the packaging system of lua and works out-of-the-box on pretty much all existing lua code.
However, it has its drawbacks. Mainly, it uses a lot of strings that cant be minified.
For example:
-- before minification
do
  local _obj_0 = require("other")
  eprintln = _obj_0.eprintln
end
-- after minification
local a=require"other";
local b=a.eprintln

Ideal solution
I'd love if the yuescript compiler could:

scan imported modules (probably only the ones using the import "module" syntax) (if it couldnt be found at compile time, fallback to a require() call like currently)
if found, inline the code (see example)

So using our original example, the result could look something like:
-- other.yue file
local eprintln -- exported function
do
  eprintln = function(...)
    return print("[err]", ...)
  end
end

-- entry.yue
eprintln("hello world")

This allows for much better minification, as no strings are used for tables or imports in the resulting code.
See:
local a=function(...)return print("[err]",...)end
a("hello world")

I think it would be better to set up a workflow by reusing your luapack project for packaging, rather than implementing everything directly in the YueScript repository. We could potentially expand on the design and add functionality that allows the YueScript compiler tool to be easily integrated into various build systems.

Had an idea on how to use macros for this and made a new project which does exactly what I need: https://github.com/Le0Developer/yuepack
It converts
-- main.yue
text = $import "module", "text"

print "Hello", text

-- module.yue
$export "text", "world"

Into this intermediate yue code:
local _export_module_text
macro import = (module, name) ->
  map = {["module"]: {["text"]: "_export_module_text"}}
  resolved = map[module::sub 2, -2]
  resolved = resolved[name::sub 2, -2] if resolved?
  -- fallback to require if we can't resolve statically
  return "require%q[%q]"::format module, name unless resolved?

  resolved -- this will be the name of a local variable
macro _set_current_module = (module) ->
  global _current_module = module
  ""
macro export = (name, expr) ->
  map = {["module"]: {["text"]: "_export_module_text"}}
  uplocal = map[_current_module::sub 2, -2]
  uplocal = uplocal[name::sub 2, -2] if uplocal?
  -- we cant fallback to an export here, so throw error
  -- this shouldnt happen in the first place
  return "error 'export %q not found in %q'"::format name, _current_module unless uplocal?

  "%s = %s"::format uplocal, expr

-- module
$_set_current_module "module"
do
  -- module.yue
  $export "text", "world"

-- _entry
$_set_current_module "_entry"
do
  text = $import "module", "text"

  print "Hello", text

Which is transformed into
-- yuepacked using 0.1.0
local _export_module_text
do
	do
		_export_module_text = "world"
	end
end
do
	local text = _export_module_text
	print("Hello", text)
end

Which can then be minified into
local a="world"local b=a;print("Hello",b)


[BUG] Process exited due to  TypeError: log is not iterable

Context:

Playwright Version: 1.25.0
Operating System: Windows 10
.NET version: .NET 6
Browser: Chromium

Code Snippet
Help us help you! Put down a short code snippet that illustrates your bug and
that we can run and debug locally. For example:
using System.Threading.Tasks;
using Microsoft.Playwright;

class Program
{
    public static async Task Main()
    {
        using var playwright = await Playwright.CreateAsync();
        var sclocatorLocatorOptions = new SelectorsRegisterOptions()
            {
                Script = @"{
query(root, selector) {
    if (typeof isc !== 'undefined' && typeof isc.AutoTest !== 'undefined') {
        return isc.AutoTest.getElement(selector);
    }
    return null;
},
queryAll(root, selector) {
    if (typeof isc !== 'undefined' && typeof isc.AutoTest !== 'undefined') {
        var element = isc.AutoTest.getElement(selector);
        if (element !== null) {
            return [element];
        }
    }
    return [];
}
}"
            };
        await playwright.Selectors.RegisterAsync("customselector", sclocatorLocatorOptions);
        await using var browser = await playwright.Chromium.LaunchAsync();
        var page = await browser.NewPageAsync();
        // Base URL defined elsewhere
        await page.GotoAsync(baseUrl);
        // UsernameTextbox and UserName defined elsewhere
        await usernameTextbox.TypeAsync(userName);
    }
}

Describe the bug
I'm not sure if this is more of a dotnet bug or Node bug but I'm having issues using the latest version of playwright-dotnet. I'm trying to run a login test and on the call to type the username I'm running into the following error.
Microsoft.Playwright.PlaywrightException : Process exited
    C:\tests\bin\Debug\net6.0\.playwright\package\lib\server\dom.js:1025
      for (const entry of log) this._progress.logEntry(entry);
                          ^
TypeError: log is not iterable
    at InjectedScriptPollHandler._streamLogs (C:\tests\bin\Debug\net6.0\.playwright\package\lib\server\dom.js:1025:27)
    at runNextTicks (node:internal/process/task_queues:61:5)
    at processImmediate (node:internal/timers:437:9)

The only thing I'd say that is different about the usual setup is I'm using a custom selector since the JS library that the app that I'm testing uses does not make traditional locator methods easy and instead provides its own custom element selectors. I provided the script that I'm using for the custom selector in case that error could be related to the custom selector. I've encountered this error on multiple Playwright versions after 1.21.0 and I'm using that version as a workaround.

I tried to run your reproducible but it was working for me. I even tho removed GotoAsync and TypeAsync. Is it always reproducible for you?

Yes this is always reproducible for me on 1.25.0. An interesting thing that I noticed is only tests that are using the custom locator are failing on 1.25.0. For reference the custom locator is for a JS library that is not widely used called SmartClient. Unfortunately I don't think I'll be able to give out the link to the website I'm trying to test without consulting my team but I'll also reach out to my team to see if anyone can help me create a sample SmartClient app to help with reproducing this.
I also mention that I'm running these on a work provided laptop so I'm not sure if there's the possibility that's something is being blocked on this laptop specifically that will need to be whitelisted?

Most likely it depends on baseUrl and usernameTextbox, so if you are not able to provide us a repro which includes that, we unfortunately can't act on it.

I understand I'm unable to share the actual base URL that I'm using in my tests without approval from my team first. But I was able to also reproduce this using a barebones sample application that I should be able to share. I'll get that ready to share when I'm back at work on Monday then I'll update the sample code.

If you don't want to share it publicly, you can also share it with me on our slack in a private chat. https://aka.ms/playwright-slack

@mxschmitt I updated the sample code with an example that's reproducible on my computer and I invited you to a private GitHub repo which contains the sample web app that I used for this Playwright example. The web app was originally written using .NET Core 3.1 but other than that you should be able to just build the web app solution and run it locally with no additional setup. Then while that solution is running you should be able to use the updated sample code I provided.

Thanks for your repro, this was very helpful!
Turns out your site modifies the globalThis.Window object which makes Playwright missbehave. I'll take this as an opportunity to fix it on our side!
TypeError: Right-hand side of 'instanceof' is not callable
    at serialize (<anonymous>:99:38)
    at serializeAsCallArgument2 (<anonymous>:95:12)
    at UtilityScript.jsonValue (<anonymous>:206:12)
    at safeJson (<anonymous>:211:21)
    at UtilityScript._promiseAwareJsonValueNoThrow (<anonymous>:222:12)
    at UtilityScript.evaluate (<anonymous>:201:33)
    at UtilityScript.<anonymous> (<anonymous>:1:44)

globalThis.Window && value instanceof globalThis.Window


Upgrade to cURL 7.88.1

The segfault issue seems to be fixed now. 🤷

Turns out it's still broken.


Failed to import - discord-api-types

https://esm.sh/v115/discord-api-types@0.37.37/v10.mjs?target=deno
<EMAIL_ADDRESS><EMAIL_ADDRESS>
The above list is the network graph of importing this package. The last one fails and esm server replies back with:
/* esm.sh - error */
throw new Error("[esm.sh] " + "parseCJSModuleExports: Package path ./utils/v10 is not exported from package<EMAIL_ADDRESS>(see exports field in /etc/esmd/npm/discord-api-types@0.37.37/node_modules/discord-api-types/package.json)");
export default null;

On looking at the package.json file of the package<EMAIL_ADDRESS>// in exports object
		"./utils": {
			"require": "./utils/index.js",
			"import": "./utils/index.mjs",
			"types": "./utils/index.d.ts"
		},
		"./utils/v*": {
			"require": "./utils/v*.js",
			"import": "./utils/v*.mjs",
			"types": "./utils/v*.d.ts"
		}

I think esm.sh must learn about glob support in order to make the last one work?

currently the server support pattern like ./utils/*, didn't realize situation in ./utils/v*, will fix asap! thanks

Let me know once you push an update! I have to hold off working on my project until then 😅. I should have reported this day before yesterday, only esm.sh provides so much customisation to Target & bundle, and has reasonable approach to everything than other services 🙃

Let me know once you push an update! I have to hold off working on my project until then 😅. I should have reported this day before yesterday, only esm.sh provides so much customisation to Target & bundle, and has reasonable approach to everything than other services 🙃

thanks for reporting, it helps a lot

@ije esm.sh still shows error for the last link, what should I do/how can I choose a newer build version?

Any ETA when you will deploy it?


issue with diffrax 0.5.1

Hello,
Diffrax 0.5.1 cannot load equinox anymore, probably due to a dependency problem.
Running the suggested basic example doesn't work
from diffrax import diffeqsolve, ODETerm, Dopri5

def f(t, y, args):
    return -y

term = ODETerm(f)
solver = Dopri5()
y0 = jnp.array([2., 3.])
solution = diffeqsolve(term, solver, t0=0, t1=1, dt0=0.1, y0=y0)

I get the following issues for this code on my cmd, I provide the pip list
`PS C:\Users\userrrr> & C:/Users/userrrr/AppData/Local/Programs/Python/Python39/python.exe c:/Users/userrrr/Desktop/diffraxtest.py
Traceback (most recent call last):
  File "c:\Users\userrrr\Desktop\diffraxtest.py", line 1, in <module>
    from diffrax import diffeqsolve, ODETerm, Dopri5
  File "C:\Users\userrrr\AppData\Local\Programs\Python\Python39\lib\site-packages\diffrax\__init__.py", line 3, in <module>
  File "C:\Users\userrrr\AppData\Local\Programs\Python\Python39\lib\site-packages\diffrax\_adjoint.py", line 7, in <module>
    import equinox as eqx
  File "C:\Users\userrrr\AppData\Local\Programs\Python\Python39\lib\site-packages\equinox\__init__.py", line 3, in <module>
    from . import debug as debug, internal as internal, nn as nn
  File "C:\Users\userrrr\AppData\Local\Programs\Python\Python39\lib\site-packages\equinox\debug\__init__.py", line 1, in <module>
    from ._announce_transform import announce_transform as announce_transform
  File "C:\Users\userrrr\AppData\Local\Programs\Python\Python39\lib\site-packages\equinox\debug\_announce_transform.py", line 11, in <module>
    from .._filters import combine, is_array, partition
  File "C:\Users\userrrr\AppData\Local\Programs\Python\Python39\lib\site-packages\equinox\_filters.py", line 11, in <module>
    AxisSpec = Union[bool, Callable[[Any], bool]]
  File "C:\Users\userrrr\AppData\Local\Programs\Python\Python39\lib\typing.py", line 243, in inner
    return func(*args, **kwds)
  File "C:\Users\userrrr\AppData\Local\Programs\Python\Python39\lib\typing.py", line 316, in __getitem__
    return self._getitem(self, parameters)
  File "C:\Users\userrrr\AppData\Local\Programs\Python\Python39\lib\typing.py", line 421, in Union
    parameters = _remove_dups_flatten(parameters)
  File "C:\Users\userrrr\AppData\Local\Programs\Python\Python39\lib\typing.py", line 215, in _remove_dups_flatten
    all_params = set(params)
TypeError: unhashable type: 'list'
PS C:\Users\userrrr> pip list
Package             Version
------------------- -----------
contourpy           1.3.0
cycler              0.12.1
diffrax             0.5.1
equinox             0.11.8
fonttools           4.55.0
importlib_metadata  8.5.0
importlib_resources 6.4.5
jax                 0.4.30
jaxlib              0.4.30
jaxtyping           0.2.36
kiwisolver          1.4.7
lineax              0.0.7
matplotlib          3.9.2
ml_dtypes           0.5.0
jaxtyping           0.2.36
kiwisolver          1.4.7
lineax              0.0.7
matplotlib          3.9.2
ml_dtypes           0.5.0
kiwisolver          1.4.7
lineax              0.0.7
matplotlib          3.9.2
ml_dtypes           0.5.0
ml_dtypes           0.5.0
numpy               2.0.2
opt_einsum          3.4.0
optimistix          0.0.9
packaging           24.2
pillow              11.0.0
pip                 24.3.1
pyparsing           3.2.0
python-dateutil     2.9.0.post0
scipy               1.13.1
setuptools          49.2.1
six                 1.16.0
typeguard           2.13.3
typing_extensions   4.12.2
zipp                3.21.0
PS C:\Users\userrrr>`

I need this older version for the way the library I use handle diffrax events, and as I understand it the problem comes from a too recent equinox version used in diffrax 0.5.1, would it be possible to try fixing this by demanding an older version of equinox for this version of diffrax ?
Thanks for diffrax and have a good day

Which version of Python is this? This looks like a known bug in early versions of Python 3.9.*.

indeed It was due to this problem of Python versions. Thanks a lot and sorry


toolchain: gcc: Simplify GEN_ABSOLUTE_SYM and GEN_ABSOLUTE_SYM_KCONFIG

The assembler code in these macros can be expressed using target-independent language constructs. This change unifies the variants from using a target-specific dialects to a target-agnostic solution.
This partially fixes building Zephyr for target AArch32, by using target-agnostic STT_OBJECT.

This breaks the build with our pre-C11 toolchain. Any clue?
-o zephyr/CMakeFiles/offsets.dir/arch/xtensa/core/offsets/offsets.c.obj -c /srv/home/jenkins/workspace/sof_generic_build/zephyr/arch/xtensa/core/offsets/offsets.c
14:03:17 kernel_offsets.h: Assembler messages:
14:03:17 kernel_offsets.h:28: Error: bad expression
14:03:17 kernel_offsets.h:28: Error: junk at end of line, first unrecognized character is `c'
14:03:17 kernel_offsets.h:29: Error: bad expression
14:03:17 kernel_offsets.h:29: Error: junk at end of line, first unrecognized character is `c'
14:03:17 kernel_offsets.h:30: Error: bad expression
14:03:17 kernel_offsets.h:30: Error: junk at end of line, first unrecognized character is `c'
14:03:17 kernel_offsets.h:31: Error: bad expression
14:03:17 kernel_offsets.h:31: Error: junk at end of line, first unrecognized character is `c'
14:03:17 kernel_offsets.h:33: Error: bad expression
14:03:17 kernel_offsets.h:33: Error: junk at end of line, first unrecognized character is `c'
14:03:17 kernel_offsets.h:40: Error: bad expression
14:03:17 kernel_offsets.h:40: Error: junk at end of line, first unrecognized character is `c'
14:03:17 kernel_offsets.h:55: Error: bad expression
14:03:17 kernel_offsets.h:55: Error: junk at end of line, first unrecognized character is `c'
14:03:17 kernel_offsets.h:57: Error: bad expression
14:03:17 kernel_offsets.h:57: Error: junk at end of line, first unrecognized character is `c'
14:03:17 kernel_offsets.h:58: Error: bad expression
14:03:17 kernel_offsets.h:58: Error: junk at end of line, first unrecognized character is `c'
14:03:17 kernel_offsets.h:59: Error: bad expression
14:03:17 kernel_offsets.h:59: Error: junk at end of line, first unrecognized character is `c'
14:03:17 kernel_offsets.h:62: Error: bad expression
14:03:17 kernel_offsets.h:62: Error: junk at end of line, first unrecognized character is `c'
14:03:17 kernel_offsets.h:66: Error: bad expression
14:03:17 kernel_offsets.h:66: Error: junk at end of line, first unrecognized character is `c'
14:03:17 kernel_offsets.h:73: Error: bad expression
14:03:17 kernel_offsets.h:73: Error: junk at end of line, first unrecognized character is `c'
14:03:17 kernel_offsets.h:82: Error: bad expression
14:03:17 kernel_offsets.h:82: Error: junk at end of line, first unrecognized character is `c'
14:03:17 kernel_offsets.h:88: Error: bad expression
14:03:17 kernel_offsets.h:88: Error: junk at end of line, first unrecognized character is `c'
14:03:17 kernel_offsets.h:91: Error: bad expression
14:03:17 kernel_offsets.h:91: Error: junk at end of line, first unrecognized character is `c'
14:03:17 offsets.c:12: Error: bad expression
14:03:17 offsets.c:12: Error: junk at end of line, first unrecognized character is `c'
14:03:17 offsets.c:13: Error: bad expression
14:03:17 offsets.c:13: Error: junk at end of line, first unrecognized character is `c'
14:03:17 offsets.c:14: Error: bad expression
14:03:17 offsets.c:14: Error: junk at end of line, first unrecognized character is `c'
14:03:17 offsets.c:15: Error: bad expression
14:03:17 offsets.c:15: Error: junk at end of line, first unrecognized character is `c'
14:03:17 offsets.c:16: Error: bad expression
14:03:17 offsets.c:16: Error: junk at end of line, first unrecognized character is `c'
14:03:17 offsets.c:17: Error: bad expression
14:03:17 offsets.c:17: Error: junk at end of line, first unrecognized character is `c'
14:03:17 offsets.c:19: Error: bad expression
14:03:17 offsets.c:19: Error: junk at end of line, first unrecognized character is `c'
14:03:17 offsets.c:20: Error: bad expression
14:03:17 offsets.c:20: Error: junk at end of line, first unrecognized character is `c'
14:03:17 offsets.c:21: Error: bad expression
14:03:17 offsets.c:21: Error: junk at end of line, first unrecognized character is `c'
14:03:17 offsets.c:22: Error: bad expression
14:03:17 offsets.c:22: Error: junk at end of line, first unrecognized character is `c'
14:03:17 offsets.c:24: Error: bad expression
14:03:17 offsets.c:24: Error: junk at end of line, first unrecognized character is `c'
14:03:17 offsets.c:25: Error: bad expression
14:03:17 offsets.c:25: Error: junk at end of line, first unrecognized character is `c'
14:03:17 offsets.c:26: Error: bad expression
14:03:17 offsets.c:26: Error: junk at end of line, first unrecognized character is `c'
14:03:17 offsets.c:27: Error: bad expression
14:03:17 offsets.c:27: Error: junk at end of line, first unrecognized character is `c'
14:03:17 offsets.c:30: Error: bad expression
14:03:17 offsets.c:30: Error: junk at end of line, first unrecognized character is `c'
14:03:17 offsets.c:31: Error: bad expression
14:03:17 offsets.c:31: Error: junk at end of line, first unrecognized character is `c'
14:03:17 offsets.c:32: Error: bad expression
14:03:17 offsets.c:32: Error: junk at end of line, first unrecognized character is `c'
14:03:17 offsets.c:36: Error: bad expression
14:03:17 offsets.c:36: Error: junk at end of line, first unrecognized character is `c'
14:03:17 offsets.c:40: Error: bad expression
14:03:17 offsets.c:40: Error: junk at end of line, first unrecognized character is `c'

Tentative fix:

#71411

This breaks the build with our pre-C11, GPLv2 gcc toolchain.

Is this a fork of gcc? Would it be possible to add support for '%c'? '%c' is the "constant expression with no punctuation" operand modifier, documented here: https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#GenericOperandmodifiers

Would it be possible to add support for '%c'?

No we can't do that sorry. Even if we could, why would we? This modifier makes at best no difference for Xtensa and at worse it breaks the build. This would also take considerable effort and cause large disruption, requiring every developer and every automation to upgrade an otherwise perfectly working setup.
If you need this modifier for some architectures then add it only for those architectures that you can test and maintain.
Please don't get me wrong: we don't want to stay forever stuck in the past either. Upgrades are often necessary for significant new features, security fixes etc. But in this particular case this c modifier seems to add no value whatsoever and it's only causing trouble. The benefit/cost ratio is zero in this case.
Revert submitted in #71453
More generally speaking, reducing copy/paste/diverge must always be performed in two distinct phases with ample testing time between the two phases:

First, perform functional changes that remove the divergence.

< give plenty enough time for testing >

Finally, remove the identical copies.

This is especially important with low-level, architecture-specific changes that you cannot test.

I agree, this should not have been merged.
@aescolar Would it be feasible to have a CI check build a sanity-check with various toolchains? Just to have basic testing against the toolchains we expect to work.

@stephanosio ^^

Already discussed in:

#63738

We could do better but we're already doing OK: we caught this less than 2 days after it was merged. Of course the more is caught before merge the better but that would require some development effort to filter out Zephyr PRs relevant to us (including most .h files?) + solving some infrastructure issues.
So, would this effort yield a valuable return on investment? Probably not for us, at least not until things get much worse - if they ever do. Different user/toolchain: different value.


radio in virtual-list BUG! v4.4.+

Describe the bug
Checked item1 radio, then scrolldown to deep and deep(such as to item10000),
then goback to item1, the radio state just back in unChecked again...
means...VDOM can not saving kinda css(or css after clicked) changes like Radio.

2nd bug? Searchbar can not work in router pages
IF I router same componentUrl couple times like:
{
path: '/vlistdom1/',
componentUrl: './vlistDOM.html  ',
},
{
path: '/vlistdom2/',
componentUrl: './vlistDOM.html  ',
},
thus, the Searchbar in the 2nd router page '/vlistdom2/' is not working...

2nd bug? Searchbar can not work in router pages
according to the sample: https://framework7.io/kitchen-sink/core/pages/virtual-list-vdom.html
IF I router same componentUrl couple times like:
{
path: '/vlistdom1/',
componentUrl: './vlistDOM.html ',
},
{
path: '/vlistdom2/',
componentUrl: './vlistDOM.html ',
},
thus, the Searchbar in the 2nd router page '/vlistdom2/' is not working...

Describe the bug
Checked item1 radio, then scrolldown to deep and deep(such as to item10000),
then goback to item1, the radio state just back in unChecked again...
means...VDOM can not saving kinda css(or css after clicked) changes like Radio.

https://framework7.io/docs/virtual-list.html
cache:true

cache:true; (according to the doc, cache regular value is true, means auto init right?)
but the checked radio state will display in the wrong row via scrolling…

Closing as not the issue, use VL DOM cache or bind and watch/keep that state in your code logic

set cache:true;
but the checked radio state will display in the wrong row via scrolling…


Why do not reset cached anchor/feature to None in a new clip

In instance_bank.py, the function reset is only called at the first time entering the function get. But for a new clip, cached anchor/feature is not reset to None. Instead, cached anchor/feature of last clip is used. It maybe a bug  but almost no impact on effect ?

Yes, this is a bug, but it doesn't affect the outcome significantly.
The correct approach is to use instance_bank.mask for new clips, setting the temporal anchor and feature as the current anchor and feature in the temporal cross attention.


How to change default_target_address in config.yaml Smoothly.

Our pool is using old wallet (generated in install progress) and i have lost Mnemonic. So i want to change my pool's default_target_address .
I have changed default_target_address to a new wallet address in config.yaml and restart pool. after a while, i found all farmers can't receive pool reward.
i read the pool source code and  found the reason: farmer's p2_singleton_pluzze is not equal pool's p2_singleton_pluzze.
Here comes the problem, How can i to change farmer's p2_singleton_pluzze or how to  change default_target_address and not effect existing users?

You cannot change the default_target_address. If you lose that key, then you need to create a new address, and all of your users must switch to the new pool address.

You cannot change the default_target_address. If you lose that key, then you need to create a new address, and all of your users must switch to the new pool address.
If I don’t want users to know that pool changed, can i write some code to execute [switch to the new pool address] for user?
such as run POST/farmer rpc interface.

Not supported with current pool specification and reference. If you to do this, you have to convince all users to switch to a new pool, and a run a new server

OK，I know.
If I want to merge the users of 2 Pools together, is there any other solution?

if you cannot go for the convincing users solution, the only way would be to support those 2 addresses at the same time, but that would require decoupled services on your code so you could share the same userbase


miru: 5.2.7 -> 5.2.14

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for miru is: Stream anime torrents, real-time with no waiting for downloads
meta.homepage for miru is: https://miru.watch
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 5.2.14 with grep in /nix/store/2k6wxi81sqxn29dr10bm1d8d57d3kjnz-miru-5.2.14
found 5.2.14 in filename of file in /nix/store/2k6wxi81sqxn29dr10bm1d8d57d3kjnz-miru-5.2.14

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

miru

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/2k6wxi81sqxn29dr10bm1d8d57d3kjnz-miru-5.2.14 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A miru https://github.com/r-ryantm/nixpkgs/archive/4c9bdf130c6b515f908662aa3c9b352e0080c0bc.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/4c9bdf130c6b515f908662aa3c9b352e0080c0bc#miru

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/2k6wxi81sqxn29dr10bm1d8d57d3kjnz-miru-5.2.14
ls -la /nix/store/2k6wxi81sqxn29dr10bm1d8d57d3kjnz-miru-5.2.14/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

miru

Maintainer pings
cc @d4ilyrun @matteo-pacini for testing.

Add a :+1: reaction to pull requests you find important.

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

1 package built:

miru

Result of nixpkgs-review pr 333978 run on aarch64-darwin 1

1 package built:

miru

@NixOS/nixpkgs-merge-bot merge


Gitter-IRC bridge

https://github.com/Semantic-Org/Semantic-UI#getting-help states to use gitter for live chat. But gitter access is restricted and problematic. Gitter requires you to grant them entirely too much access to your github account.
Why not offer a gitter-IRC bridge that allows non-gitter users access to live support chat?

Unless gitter supports IRC I dont believe this is something I personally have time to implement.


InlineCompletionContext.triggerKind is always automatic

Testing #131415

Start running the extension from here
Put a breakpoint in the provideCompletionItem call in the extension
Notice how the triggerKind is always 0. Even if the user triggers suggestions via ctrl+space

triggerKind only refers to how the inline suggestion part is triggered.
It is only non 0 if the user invokes the command "Trigger inline suggestions" or one of the commands "next inline suggestion" / "previous inline suggestion"

But I get a triggerKind of 0 even if I Trigger inline suggestions as a user.


Bug: Image fetching is broken and possibly more?

Had a discussion on #shokofin on discord a while back. I didn't file a bug, but since this has recently been updated, I figured I'd leave this here.
I initially started looking into this when my thumbnails would never show up for new anime... so I started looking into it more.
I'm pretty sure everything is broken out of the box (at least for people who don't use the "auto group" in shoko. Not sure if this applies to people who have the library structured differently).
I did a patch on my own build back in february (disclaimer, I don't know .NET, but I just did some quick googling to figure it out)
diff --git a/Shokofin/Providers/SeriesProvider.cs b/Shokofin/Providers/SeriesProvider.cs
index e18a62d..1de4146 100644
--- a/Shokofin/Providers/SeriesProvider.cs
+++ b/Shokofin/Providers/SeriesProvider.cs
@@ -34,12 +34,17 @@ namespace Shokofin.Providers
             {
                 var result = new MetadataResult<Series>();

-                var dirname = Path.DirectorySeparatorChar + info.Path.Split(Path.DirectorySeparatorChar).Last();
+                var dirname = info.Path.Split(Path.DirectorySeparatorChar).Last();

                 _logger.LogInformation($"Shoko Scanner... Getting series ID ({dirname})");

                 var apiResponse = await ShokoAPI.GetSeriesPathEndsWith(dirname);
-                var seriesIDs = apiResponse.FirstOrDefault()?.IDs;
+                // if an exact match shows up, use that one.
+                var seriesIDs = apiResponse?.FirstOrDefault(series => series.Name == dirname)?.IDs;
+                if (seriesIDs is null)
+                {
+                    seriesIDs = apiResponse.FirstOrDefault()?.IDs;
+                }
                 var seriesId = seriesIDs?.ID.ToString();

                 if (string.IsNullOrEmpty(seriesId))

The main problem here is the var apiResponse = await ShokoAPI.GetSeriesPathEndsWith(dirname); which the URL currently ends with /, so you end up searching for /api/v3/Series/PathEndsWith//Senryuu Shoujo (double slash is intentional) for example, and this returns empty because there's no show that ends with /Senryuu Shoujo in my shoko instance.
At least for my case, this patch works perfectly. It simply checks to make sure the name is exactly the same as Shoko (since shoko is also managing the library anyways).
Without the Exact check (but with the / fix), you run into some scenarios that are unfixable even with the "Identify" feature
Eiga K-On! vs K-On! - When you Identify as K-On!, the problem is both of these shows show up in the shoko api. Since Eiga K-On! comes first, K-On! is now impossible to label as K-On!
I didn't want to think I was crazy, So i spun up 2 more jellyfin instances fresh, but using my existing library, 1 using 1.4.0 and 1 using my patched "1.3.1-dev"
No shows appeared on 1.4.0 at all - but 1.3.1-patched showed my shows with the metadata.
I don't think my patch is perfect, but this problem is there and should probably be fixed?
Shoko: <IP_ADDRESS> - daily build
Shokofin: 1.4.0
Jellyfin - 10.7.0
Shoko Settings:
Autogroup Series - Off
Determine Main Series... - Off
On Shokofin:
All default settings.
Jellyfin Library settings:
All Default except changing all fetchers to use Shoko only.

Fixed in release <IP_ADDRESS>


Member Account securityhub finding aren't getting into s3 bucket

Hlo AWS,
Securityhub findings aren't present in Master account's S3 bucket, After deploying provided yaml file in cloudformation.

Hi arunreddy00,  at the time of this solution, Security Hub findings are not aggregated cross-region.  You need to deploy this  solution to each region in order to export findings from the region.  You can modify the securityhub_export.yml to achieve this.  When you deploy to a different region, you only need to create kinesis delivery stream to output findings to your central bucket.
Alternatively Security Hub announced cross-Region support on 10/20/2021.  You can aggregate findings cross Region, then export the aggregated findings in the Security Hub delegated admin account.

Merged to issue #4.


feat(fetch-engine): download cache directory customization support

This feature allows to customize prisma download cache directory with PRISMA_DOWNLOAD_CACHE_DIR environment variable.
We use the prisma-cli 'generate' command in our build process (we use bazel). To make our builds as "hermetic" as possible, we want the all cache to be controlled by Bazel.

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


Remove function HandleHook and references because is deprecated.

Function web.HandleHook is not used anymore.

big thanks @omarrp


small enhancements for C (and Python) code generator

[x] 1. #define a constant for the sleep-time (wait blocks, ...).
[x] 2. #define a constant for 255.0/9.0, which is used at many places for calculating the brightness
[ ] 3. replace the pattern if (... == true) by if(...) and if(... == false) by if(! ...). Actually the patterns are mixed (I see both (... == true) and (...)
[x] 4. replace while(true) by while(1) or vice versa. Actually we have a mix.
[ ] 5. the layout of a label used in a generated goto (from a "break out from loop") is broken
[ ] 6. we generate dead code after a generated goto (from a "break out from loop")
[ ] 7. if a programmer chooses as function name a name used by the mbit runtime, e.g. "release_fiber", the compiler bails out. We should decide whether we ignore that or have a server side checker detecting this (will be a lot of names) or use prefixing to decrease probability of clashes or ...

These are small enhancement. May be done if there is time :-)

unclear status


DateWidget Year Selector

Is your feature request related to a problem? Please describe.
The volto date widget (singledatepicker) has usability issues. It is not possible to quickly switch years without resorting to swiping multiple times. AFAIK there isn't a shortcut for switching years with keyboard.
Describe the solution you'd like
In Plone Classic interface, you have separate year selector to select a target year.

Describe alternatives you've considered
react-dates has introduced 'renderMonthElement' that allows you to create month and year dropdown selectors similar to plone classic interface.

I would like to work on it

can I work on it?

<input type='date'> and all of its attributes, including pattern for graceful degradation, min, and max, would be my preference as a default date widget. If someone needs a more robust date widget, there are plenty of them out there. I usually regret adopting JavaScript date and time pickers in my projects, and recently have taken great pleasure in ripping them out to use the HTML version.

+1 for @tiberiuichim suggestion on using input HTML element.


How to approach libraries not natively supporting dynamic build

I'm working on a port for a library that builds static by default and has no cmake setting for making it build dll's. What is the preferred approach for those libraries, patch them to build dll's or just provide the pull request building static libraries only?

@laserallan I think you can PR just static build or just dynamic depending on what the library supports using VCPKG_LIBRARY_LINKAGE in your portfile

I am aware of two cases, where the opposite is the case: dynamic library linkage works, static fails/is not supported. In one case (qt5) an attempt to build static is aborted:
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
    message(FATAL_ERROR "Qt5 doesn't currently support static builds. Please use a dynamic triplet instead.")
endif()

In the second (ffmpeg), "fake" dynamic libraries are built to the folders in the static triplet:
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
    message(STATUS "Building as static libraries not currently supported. Building as DLLs instead.")
    set(VCPKG_LIBRARY_LINKAGE "dynamic")
endif()

The second approach has the advantage that a build expecting ffmpeg libraries in the static folder can still succeed, but it may be considered unclean, of course ;)

Cool, it's a pretty small library with zero dependencies so I think the second approach is preferred. It will work but it will be linked statically.

Does the file explicitly not support dll's, or is it just hardcoded to static? Quite a few ports patch the buildsystems to support building dlls, if it isn't too much trouble. For libraries using CMake, you can use the WINDOWS_EXPORT_ALL_SYMBOLS property to export all symbols, if they lack the __declspecs.

That sounds interesting. It's hard coded I'll see how nasty a patch would look introducing that. If it's not too bad it might be a better approach and I'll see if I can get them to adopt it for the library.

Hi @laserallan , good question!
You can use the following code to automatically switch to a static build and add it below  include(vcpkg_common_functions) in portfile.cmake:

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

Thanks.


reference in the field partOf on performer task

reading the cookbook v0.1, I see that a performer task must be linked to a referral task via its partOf. In the profile, you should reference a "BeReferralTask" instead of just a "Task".

WG: we agree.


bug: New Chat UI button size overflow

Version
v0.17.1700492803
Describe the bug
The chat UI button size increases as per the input length.
Expected behavior
The button size should be fixed.
Additional context

CC: @toolmantim

Confirmed on v0.17.1700665592
Thanks @deepak2431!

@deepak2431 looks like it was fixed in v0.17.1700665592 just needed a reload. Try updating.

@jdorfman Yeah, I can see it's fixed now. Thanks for looking into it!


Models and Sprite

Maps the new sprite loading and uploading code and the new model loading code

Crap it ruined the simple_types file

I removed most of the atlas mappings due to the changes in 22w46a which will be done in another pr after this is merged


Added Form Validation Website

Title and Issue number
Form Validation Website
Issue #2491
Close #2491
Checklist:

[X] I have mentioned the issue number in my Pull Request.
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have created a helpful and easy to understand README.md

Add the gssoc23 label and level label.

@MohitGupta121  @pranjay-poddar .Please Review and merge it.
Also Add the gssoc23 label and level label.

@MohitGupta121 @pranjay-poddar  Add the gssoc23 label and level label it's not added.


[SPARK-12625][SPARKR][SQL] replace R usage of Spark SQL deprecated API

@rxin @davies @shivaram
Took save mode from my PR #10480, and move everything to writer methods. This is related to PR #10559

[x] it seems jsonRDD() is broken, need to investigate - this is not a public API though; will look into some more tonight. (fixed)

Test build #48708 has started for PR 10584 at commit e0e2a9c.

Test build #48708 has finished for PR 10584 at commit e0e2a9c.

This patch fails R style tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48708/
Test FAILed.

Merged build finished. Test FAILed.

Thanks for submitting this.
FYI https://github.com/apache/spark/pull/10559 was merged, and R tests were disabled there so you should re-enable them.

Test build #48722 has started for PR 10584 at commit 203a52f.

Test build #48724 has started for PR 10584 at commit d8d9b21.

Thanks @felixcheung - LGTM if tests pass. Also @davies will be good if you can take a look.

I found another one after rebasing on #10559
also fixed jsonRDD

Test build #2320 has started for PR 10584 at commit dc59f84.

Test build #48722 has finished for PR 10584 at commit 203a52f.

This patch fails SparkR unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48722/
Test FAILed.

Test build #48732 has started for PR 10584 at commit dc59f84.

Test build #48724 has finished for PR 10584 at commit d8d9b21.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48724/
Test FAILed.

Test build #2320 has finished for PR 10584 at commit dc59f84.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Thanks - merging this in master.

Test build #48732 has finished for PR 10584 at commit dc59f84.

This patch fails from timeout after a configured wait of `250m`.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48732/
Test FAILed.


Video and Audio not visible on Audience device but on other broadcaster's device it visible.

Hi, I've integrated Agora Flutter RTC package for Live streaming feature.
On the audience device as Audio and video of broadcasters are not showing but at the same time If I check any other broadcaster on different device then I can hear the audio and video is visible too. Please help as in documentation it's unclear how we can subscribe to other's audio/video on Audience device.
agora_rtc_engine: ^6.2.2
Android version 12
Device Samsung M32 5G

Do you mean you set ClientRoleType.clientRoleAudience, and then you want to receive the streams of other audiences?

yes I've set this ClientRoleType.clientRoleAudience for Audience but video and audio streams are not getting received, for broadcasters who are also in the same room at the same time they are able to hear and view other broadcaster's streams.

This should be expected behavior, the user with ClientRoleType.clientRoleAudience can only receive the user with ClientRoleType.clientRoleBroadcaster but not other users with ClientRoleType.clientRoleAudience in the same channel

I suppose you didn't set the ChannelMediaOptions.autoSubscribeVideo when you joinChannel as an audience.
But can you share the agora-iris.log so I can investigate it in more detail?

@littleGnAl that was the missing code I know this has something with subscribe so i was using rtcEngine.setSubscribeVideoAllowlist and any other code that I found related to this but there is no effect. It's working now please mention this in documentation as I couldn't able to find this piece of code anywhere in docs . Thanks 🙌

If you can share the log, maybe I can investigate it in more detail.


Correction for raw affiliation UMR MoISA (Montpellier Interdisciplinary Centre on Sustainable Agri-Food Systems), University of Montpellier, CIRAD, CIHEAM-IAMM, INRAE, Institut Agro Montpellier, IRD, Montpellier 34000, France (France)

Correction needed for raw affiliation UMR MoISA (Montpellier Interdisciplinary Centre on Sustainable Agri-Food Systems), University of Montpellier, CIRAD, CIHEAM-IAMM, INRAE, Institut Agro Montpellier, IRD, Montpellier 34000, France (France)
raw_affiliation_name: UMR MoISA (Montpellier Interdisciplinary Centre on Sustainable Agri-Food Systems), University of Montpellier, CIRAD, CIHEAM-IAMM, INRAE, Institut Agro Montpellier, IRD, Montpellier 34000, France (France)
new_rors: 05kpkpg04;04abkkz03;051escj72;05q3vnk25;03rnk6m14;0005r2j17;003vg9w96;011xg1225
previous_rors: 05kpkpg04;04abkkz03;051escj72;05q3vnk25;03rnk6m14;0005r2j17;003vg9w96
works_examples: W4403547443
contact: 83b47a9a895e4a1d1c2c69d9bb93b8d9:5f262df6733fac12 @ supagro.fr

This issue was accepted and ingested by the OpenAlex team on 2024-12-19. The new affiliations should be visible within the next 7 days.


corpus is not removed when description file updated with some size limit.

I'm seeing such kind of log during fuzzing:
out of memory: only allocated 960Kb of 2097476Kb requested

where 2097476Kb is size mutated from one ioctl.
Then I modify the description file to limit the size to a very small value.
But after I restarted the syz-manager, I can still see this kind of message.
So, I guess the previous corpus is played without checking the size limitation.
Do you think if it's better to exclude such corpus from db and how?

The fuzzer can diverge from descriptions and use values that are not specified in descriptions, so we cannot remove all programs that don't match programs. Otherwise we will collect good programs that give new coverage and then remove them on the next restart.
Please use<EMAIL_ADDRESS>mailing list for questions in future. Github issues are used to track future work with concrete agreed-on action.


Training steps

Hey can you please help me with the training steps? how can I use my dataset and its labels?

Hi Malaika,
you'll need to implement a torch.utils.data.Dataset that returns pairs of image and ground truth annotations.
Then you can change the get_dataset function in data_loading.py to use your custom dataset instead of the pre-configured InriaDataset.
Let me know if that helps!
Cheers,
Konrad

Thank you so much for the help. Can you please tell what type of annotations it should be?

No problem! The annotations should be of the same shape as the imagery (i.e. dense annotations) and contain a 1 for each foreground pixel and a 0 for each background pixel.
In the examples shown in the README, Glacier/Building pixels are the "foreground"

Okay great,,


Clicking to screen

When toast animation is on the screen, I also want to if the user wants to go to other pages, it goes. but it's not available if animation is on the screen. watch the video. at the end of animation I can navigate other screen
https://user-images.githubusercontent.com/49102327/145808026-75ce83ea-a274-4db2-bf58-59ba6ce565b5.mov

@Shahmirzali-Huseynov  thanks for your feedback we will work on it it will be available in the next version

@Shahmirzali-Huseynov thanks for your feedback we will work on it it will be available in the next version

Still when the notification is called the rest of my screen is turning light black and does not respond to any action.
How can i fix this?

@koukibadr any updates?

Hello @Shahmirzali-Huseynov sorry for the late response I will publish a new version today contains the fix of the bug

Hey @Shahmirzali-Huseynov , check this new version with the latest updates and the fix of this issue
https://pub.dev/packages/cherry_toast

@koukibadr Actually I can't test whether it's fixed or not. cause I noticed in my last project removed this package. But in the future, I will use this package. thanks for the fixing. you can close the issue. when I use or test, I will comment.

okay thanks for your support @Shahmirzali-Huseynov

Hi @koukibadr, I am still having this issue with the overlay blocking user input when the toast is on the screen. I am using cherry_toast: ^1.1.0. How do I fix it?

hello @danielyuenhx a new version is published please let me know if the problem persist

Hi @koukibadr, the overlay still blocks components from being tapped until it times out. Furthermore, tapping on the overlay throws an error. I'm using cherry_toast: ^1.2.0

@Shahmirzali-Huseynov I will verify this issue ASAP
Thanks for filling this issue

Hey @koukibadr, i upgraded the package to v1.2.1 and I still have this issue :s

Okay @baptistesx I will check this bug

@baptistesx @Shahmirzali-Huseynov I just published a new version with @LeetaoGoooo PR fix (1.3.2)

Still not fixed version 1.3.3 (latest)

I'm sorry I was unable to resolve the issue, but I noticed you seem to have already submitted a new PR,that's great~~

@LeetaoGoooo your solution fix the issue of clicking on the screen but other issue is raised : toast position could not be changed PR link issue #45 so that's why I reverted your changes and changed the way we fix this issue I used Overlay

@LeetaoGoooo your solution fix the issue of clicking on the screen but other issue is raised : toast position could not be changed PR link issue #45 so that's why I reverted your changes and changed the way we fix this issue I used Overlay

Thank you very much for your patient explanation ♥

A new version has been published check it out it contains the fix to this issue
if everything okay please close this issue (version 1.4.3)


0.20.15 Out Of Memory Crash with version 0.20.15

Describe the bug
Version 0.20.15 crashes with below error in debug.log while performing a full sync.  The last block processed is 79455.
debug.log message:
2021-12-13T18:42:52Z Error: CChainState::NotifyWSClients (1) - bad_weak_ptr
2021-12-13T18:42:52Z Error: Out of memory. Terminating.
2021-12-13T19:02:39Z

To Reproduce
AWS m5ad.xlarge instance type running Ubuntu 20.04.  Quad core AMD Epyc, 16 GB RAM, 16 GB swap, 150GB NVME
Setup command history:
   1 sudo mkfs -t xfs /dev/nvme1n1
    2 sudo mkdir /data
    3  sudo mount /dev/nvme1n1 /data
    4  sudo chmod 777 /data
    5  mkdir /data/.pocketcoin
    6  sudo chmod 777 /data/.pocketcoin
    7  ln -s /data/.pocketcoin /home/ubuntu/.pocketcoin
    8  cd ~/.pocketcoin
    9  sudo apt update
   10  sudo apt upgrade
   11  sudo apt install libboost-all-dev
   12  sudo apt install libzmq3-dev
   13  sudo apt-get install libminiupnpc-dev
   14  sudo apt install mosh
   15  sudo fallocate -l 16G /data/swapfile
   16  sudo chmod 600 /data/swapfile
   17  sudo mkswap /data/swapfile
   18  sudo swapon /data/swapfile
   19  sudo swapon -show
   20  sudo apt install awscli
   21  cd ..
   22  wget https://github.com/pocketnetteam/pocketnet.core/releases/download/v0.20.15/pocketnetcore_0.20.15_linux_x64_setup.deb
   23  sudo dpkg -i pocketnetcore_0.20.15_linux_x64_setup.deb
   26  mkdir checkpoints
   28  cd checkpoints
   29  wget https://github.com/pocketnetteam/pocketnet.core/releases/download/v0.20.15/main.sqlite3
   30  cd ..
   34  pocketcoin-cli logging +stat
   35  tail -f debug.log

pocketcoin.conf
# Enable public API interfaces
api=1
wsuse=1
daemon=1

# Setting ports
publicrpcport=38081
wsport=8087

# Setting work queue and threads
rpcpublicworkqueue=3000
rpcpublicthreads=30
rpcpostworkqueue=1500
rpcpostthreads=15

Testing with api=0, node crashes again without an error in the log within 5000 blocks.

Testing with wsuse=0, issue seems to be resolved and node is able to sync pas 100k blocks without issue so far.  I have not seen this issue when syncing a node behind a gateway, only when the IP is public or ports are forwarded to the node.

try not compiling in the upnp library? I'm not using it on my atom low memory box. I'm also using the newer berkeley DB (v5?)

The crash appears to be a segmentation fault that occurs while syncing with wsuse=1 in the config file.  I reproduced it under gbd but the SSH connection timed out so I was not able to investigate further.  Restarting the process to get another repro.

Call stack from the sementation fault:
Thread 71 "pocketcoind" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f26cbf13700 (LWP 26241)]
SimpleWeb::SocketServerBase<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor> >::Connection::send_from_queue()::{lambda()#1}::operator()() const (this=0x7f26cbf12670) at ./websocket/ws.h:227
227     ./websocket/ws.h: No such file or directory.
(gdb) bt
#0  SimpleWeb::SocketServerBase<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor> >::Connection::send_from_queue()::{lambda()#1}::operator()() const (this=0x7f26cbf12670) at ./websocket/ws.h:227
#1  boost::asio::asio_handler_invoke<SimpleWeb::SocketServerBase<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor> >::Connection::send_from_queue()::{lambda()#1}>(SimpleWeb::SocketServerBase<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor> >::Connection::send_from_queue()::{lambda()#1}&, ...) (function=...) at /usr/include/boost/asio/handler_invoke_hook.hpp:69
#2  boost_asio_handler_invoke_helpers::invoke<SimpleWeb::SocketServerBase<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor> >::Connection::send_from_queue()::{lambda()#1}, {lambda()#1}>(SimpleWeb::SocketServerBase<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor> >::Connection::send_from_queue()::{lambda()#1}&, {lambda()#1}&) (context=..., function=...)
    at /usr/include/boost/asio/detail/handler_invoke_helpers.hpp:37
#3  boost::asio::detail::handler_work<SimpleWeb::SocketServerBase<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor> >::Connection::send_from_queue()::{lambda()#1}, boost::asio::system_executor, SimpleWeb::SocketServerBase<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor> >::Connection::send_from_queue()::{lambda()#1}>::complete<{lambda()#1}>({lambda()#1}&, {lambda()#1}&) (
    handler=..., function=..., this=<synthetic pointer>) at /usr/include/boost/asio/detail/handler_work.hpp:100
#4  boost::asio::detail::completion_handler<SimpleWeb::SocketServerBase<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor> >::Connection::send_from_queue()::{lambda()#1}>::do_complete(void*, boost::asio::detail::scheduler_operation*, boost::system::error_code const&, unsigned long) (owner=<optimized out>, base=<optimized out>) at /usr/include/boost/asio/detail/completion_handler.hpp:70
#5  0x0000560af0103ee2 in boost::asio::detail::scheduler_operation::complete (bytes_transferred=0, ec=..., owner=0x7f27380d1a50,
    this=<optimized out>) at /usr/include/boost/asio/detail/scheduler_operation.hpp:40
#6  boost::asio::detail::strand_service::do_complete (owner=0x7f27380d1a50, base=0x7f273828d130, ec=...)
    at /usr/include/boost/asio/detail/impl/strand_service.ipp:168
#7  0x0000560af01023a6 in boost::asio::detail::scheduler_operation::complete (bytes_transferred=0, ec=..., owner=0x7f27380d1a50,
    this=0x7f273828d130) at /usr/include/boost/asio/detail/scheduler_operation.hpp:40
#8  boost::asio::detail::scheduler::do_run_one (ec=..., this_thread=..., lock=..., this=<optimized out>)
    at /usr/include/boost/asio/detail/impl/scheduler.ipp:447
#9  boost::asio::detail::scheduler::run (this=0x7f27380d1a50, ec=...) at /usr/include/boost/asio/detail/impl/scheduler.ipp:200
#10 0x0000560af00ecd09 in boost::asio::io_context::run (this=<optimized out>) at /usr/include/boost/asio/impl/io_context.ipp:63
#11 SimpleWeb::SocketServerBase<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor> >::accept_and_run (
    this=0x7f26cbf12960) at ./websocket/ws.h:457
#12 SimpleWeb::SocketServerBase<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor> >::start (this=0x7f26cbf12960)
    at ./websocket/ws.h:468
#13 StartWS () at init.cpp:1599
#14 0x0000560af00f6396 in std::__invoke_impl<void, void (*)()> (__f=<optimized out>) at /usr/include/c++/9/bits/invoke.h:89
#15 std::__invoke<void (*)()> (__fn=<optimized out>) at /usr/include/c++/9/bits/invoke.h:95
#16 std::thread::_Invoker<std::tuple<void (*)()> >::_M_invoke<0ul> (this=<optimized out>) at /usr/include/c++/9/thread:244
#17 std::thread::_Invoker<std::tuple<void (*)()> >::operator() (this=<optimized out>) at /usr/include/c++/9/thread:251
#18 std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)()> > >::_M_run (this=<optimized out>) at /usr/include/c++/9/thread:195
#19 0x00007f2741f14de4 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#20 0x00007f2742642609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#21 0x00007f2741c02293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Segmentation fault occurs here: https://github.com/pocketnetteam/pocketnet.core/blob/0.20/src/websocket/ws.h#L227
Crashes because "*self" is null
gdb:
(gdb) frame 0
#0  SimpleWeb::SocketServerBase<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor> >::Connection::send_from_queue()::{lambda()#1}::operator()() const (this=0x7f26cbf12670) at ./websocket/ws.h:227
227     in ./websocket/ws.h
(gdb) print self
$1 = std::shared_ptr<SimpleWeb::SocketServerBase<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor> >::Connection> (use count 327682, weak count 458758) = {get() = 0x0}
(gdb) print *self
Cannot access memory at address 0x0

I am extremely confused by the stack - the call to send messages via a web socket is initiated here: src/validation.cpp:3139
Until we figure out the problem, we can try to disable this functionality with a simple check:
if (now() - chainActive.Tip().nTime > 3600s) return;
There is also not enough blocking for the NotifiWSClients method in validation.cpp:3139 and logics in init.cpp:1521
To do this, we need to implement a class with a dedicated thread and a queue of blocks for processing in order to exclude the process of sending notifications from the cs_main stream

send is being called from here: https://github.com/pocketnetteam/pocketnet.core/blob/0.20/src/validation.cpp#L3422
I added some debug tracing to be sure.  I built with --enable-debug which leaves on some optimizations so some call paths seem to be left out of the stack.

I will create a task to implement a dedicated thread for sending notifications with mutex protection - #119

From additional debugging I have done on this, the segfault always appears to happen after a socket has been closed.  The associated memory is freed at that point, however the object may still be in use in other parts of the code.  We need to implement a accessor method and ref count to prevent object from being freed while it is still in use.

https://github.com/pocketnetteam/pocketnet.core/issues/119


Jira 7.12.3 and Service Desk 3.15.3

Description of the Change
Bump versions to:

Jira: 7.12.3
Service Desk: 3.15.3

Release notes

Jira: https://confluence.atlassian.com/jirasoftware/jira-software-7-12-x-release-notes-953676636.html
Service Desk: https://confluence.atlassian.com/servicedesk/jira-service-desk-3-15-x-release-notes-955163679.html

Please also update the service desk version!

Whoops, sorry. It should be good now.

Thanks for the update!


Add support for span references

Coverage increased (+0.1%) to 93.675% when pulling bce998924ddf56ed7ec5f30a3fe1266a737632ce on span_references into b36cec8cb934d9edeb52654028395929929ec14e on master.

Coverage increased (+0.02%) to 93.571% when pulling 186462914a952fe302150bdfe192e214b311ccaf on span_references into b36cec8cb934d9edeb52654028395929929ec14e on master.

Coverage increased (+0.004%) to 93.556% when pulling 501ba8a217f457011244b006419b07b770a636e6 on span_references into b36cec8cb934d9edeb52654028395929929ec14e on master.

Coverage increased (+0.02%) to 93.571% when pulling 1136d3fbcdfc1071925a74601ce5bb11d7e6c0d7 on span_references into b36cec8cb934d9edeb52654028395929929ec14e on master.

Coverage increased (+0.2%) to 93.713% when pulling 04ce2842ec7d79e11a7b4a748072d92e3f99f358 on span_references into b36cec8cb934d9edeb52654028395929929ec14e on master.


Plugin for Notifications

Hallo,
is there some good local notification  plugin for Xamarin.Forsm?
Thanks in advance!

Checkout: http://github.com/xamarin/plugins


Attempt to use primary, default and viewed variants' images

A product may have no images, images associated with the primary variant, images associated with the default or miscellaneous variants. This PR handles most possible combinations. It doesn't search for images in variants other than current, primary or default. Still, it's an improvement over the current approach and finds more images.

deserializeImages now accepts any list of variants. It finds images attached to them and orders them by the position field set in Spree.
getProducts and getProduct display information from the variants relationships. If no variants are present, it falls back to the primary_variant.
fields supplied to client.products.show and client.products.list is smaller. primary_variant, defualt_variant and variants all return type: 'variant' documents. No need to split fields between them.
Updated rollup-plugin-typescript2 due to a bug in the handing of the array spread syntax.


Error configuring Keycloak CAS IDP

I'm trying to setup a CAS IDP on Keycloak (9.0.2) following the script.
Did download and deploy of keycloak-cas-services-4.8.3.Final, change the "Admin Console Theme" to "keycloak-extended" in Master Realm, filled the form of CAS IDP config  but when click on save button I'm getting the exception below:

ERROR [org.keycloak.services.error.KeycloakErrorHandler] (default task-115)
Uncaught server error: java.lang.AbstractMethodError: Method io/github/johnjcool/keycloak/broker/cas/CasIdentityProviderFactory.createConfig()Lorg/keycloak/models/IdentityProviderModel; is abstract at io.github.johnjcool.keycloak.broker.cas.CasIdentityProviderFactory.createConfig(CasIdentityProviderFactory.java)

please fork and update yourself to keycloak version. i have no time to maintain anymore.


Migrate the slots location to use a composite type

Currently the way that location is stored for slots is with two columns, locationX and locationY, we could instead use a composite type from postgres, eg.
CREATE TYPE location AS (
    x      int,
    y      int
);

This will require a DB migration, and some changes to the code to make it work

Turns out it's just way easier to use two columns


[PE-D][Tester B] Add-Related Command Overzealous Input

Overzealous input where the user key in more than required input. E.g. p/9876543 (hp) 6123456 (office)

Based on the CS2103T guide, it is better to warn rather than to block when inputs are not
compliant with the expected format, unless accepting such inputs can hinder the operations
of the software.
Steps to reproduce:
prof n/Wong Tin Lok m/CS1231S s/Discrete Math p/98765432 (hp) 6123456 (office<EMAIL_ADDRESS>g/M t/friends t/owesMoney I/COM2 LT4 git/WongWong r/5 0/2-12:00-2

Labels: severity.Medium type.FeatureFlaw
original: jicsontoh/ped#5

Accepting such inputs may hinder our software find command.


📝 Update includes in docs/de/docs/advanced/async-tests.md

Update includes in docs/de/docs/advanced/async-tests.md
Part of #12554

Thank you! @imjuanleonard :nerd_face:


Update src-tauri

Is your feature request related to a problem? Please describe.
We currently don't have a way to update src-tauri other than rerunning tauri init. While doing it again might be ok, it might overwrite important files and is semantically wrong...
Describe the solution you'd like
tauri update project or something like that, which is an interactive shell for updating your stuff. With merging options, failsafe and some kind of automated check to validate that everything is still ok.

React Native (Facebook's framework for cross-platform mobile apps) uses 3-way merging to accomplish this (https://facebook.github.io/react-native/docs/upgrading#react-native-cli). Maybe a similar approach would work here?

Interesting- thanks for the tip. Using a git diffing approach is a great idea - but I think that is likely to be a little too heavy handed and naive when it comes to the src-tauri/Cargo.toml file - which, while created from a template is actually modified at runtime by the CLI in order for us to pass the config settings to the build chain.
Most of the problems that I foresee are going to happen here, and when core deps are upgraded. A good example is then notorious phf which has to stay pinned at 0.7.24 for the time being. Maybe it also makes sense to add an upgrade command with a --dry-run flag that shows what will change, a --clone flag that makes a clone of the project and a --force flag that breaks the warranty.
@lucasfernog - what do you think?

This is also a really interesting (and downright frightening) writeup about indeterminate behavior in merges: http://tycon.github.io/git-inconsistencies.html

Doesn't necessarily have to use git; though that's not a bad idea (could just ignore the cargo.toml given a flag from the user.  Could potentially use a diffing system in conjuncture with a template system.

maybe we should set the version at init to something like:
tauri = { version = "^0.1", features = ["edge"] }

Which means crates.io will be asked if there is a newer version than the one in the lockfile and pull it and install that... What do you think?

We could do that.  Dependencies are one thing but file changes are another.


RFE: Verify org-policies

Verify the following constraints are applied:
Disable Serial Port Logging

constraints/compute.disableSerialPortLogging
enforced: true

Require Confidential VM

constraints/compute.requireConfidentialVm
enforced: true

Require Shielded VM

constraints/compute.requireShieldedVm
enforced: true

Restrict Non-Confidential Computing

constraints/compute.restrictNonConfidentialComputing

"listPolicy": {
  "deniedValues": [
    "compute.googleapis.com"
  ]
}

Disable Cloud Logging

constraints/gcp.disableCloudLogging
enforced: true

Resource Locations

constraints/gcp.resourceLocations

"listPolicy": {
  "allowedValues": [
    "in:us-locations"
  ]
}

Will Not Fix. After review we realized that users will probably lack the IAM privilege necessary to talk to the Cloud Resource Manager endpoint.

Will Not Fix. After review we realized that users will probably lack the IAM privilege necessary to talk to the Cloud Resource Manager endpoint.


Sticky comments don't appear to be working?

It appears that Sticky Comments are not working? Or do I just have some config wrong?
Steps to Reproduce
Input file keep-sorted2.py:
# go/keep-sorted start
d = 1
c = 2
# sticky comment
b = 3
# sticky multi-
# line comment
a = 1
# go/keep-sorted end

Pre-commit config:
---
repos:
  - repo: https://github.com/google/keep-sorted
    rev: v0.1.1
    hooks:
      - id: keep-sorted

Run:
$ pre-commit run keep-sorted --file keep-sorted2.py
keep-sorted..............................................................Passed

Actual result:
# go/keep-sorted start
# line comment
# sticky comment
# sticky multi-
a = 1
b = 3
c = 2
d = 1
# go/keep-sorted end

Expected Result:
# go/keep-sorted start
# sticky multi-
# line comment
a = 1
# sticky comment
b = 3
c = 2
d = 1
# go/keep-sorted end

Other info:

Python version: 3.10.10
pre-commit version: 3.1.1
keep-sorted version: 0.1.1 (see pre-commit config file, above)
Host OS:$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux rodete
Release:        n/a
Codename:       rodete

keep-sorted has some pretty naive logic to guess the comment marker being used: https://github.com/google/keep-sorted/blob/main/keepsorted/options.go#L182
It assumes that folks are doing # keep-sorted instead of # go/keep-sorted. So as it stands, it's saying the comment marker is # go/ instead of #.

If you remove those go/ prefixes the sticky comments will work as expected

$ /tmp/keep-sorted-7bcbaf089973232082a8bd6af9f906080d6adc9be65b58e8ee438a0185985dd8 --mode=fix - <<EOF
# keep-sorted start
d = 1
c = 2
# sticky comment
b = 3
# sticky multi-
# line comment
a = 1
# keep-sorted end
EOF

# keep-sorted start
# sticky multi-
# line comment
a = 1
# sticky comment
b = 3
c = 2
d = 1
# keep-sorted end

You could add your comment leader explicitly with sticky_prefixes=#

$ /tmp/keep-sorted-7bcbaf089973232082a8bd6af9f906080d6adc9be65b58e8ee438a0185985dd8 --mode=fix - <<EOF
# go/keep-sorted start sticky_prefixes=#
d = 1
c = 2
# sticky comment
b = 3
# sticky multi-
# line comment
a = 1
# go/keep-sorted end
EOF

# go/keep-sorted start sticky_prefixes=#
# sticky multi-
# line comment
a = 1
# sticky comment
b = 3
c = 2
d = 1
# go/keep-sorted end

That comment guessing logic could be smarter by taking into account various well-known comment leaders (#, //, maybe even -- for SQL). I'd be willing to accept a PR for that

Ah ok, so there's a minor difference between the internal go/keep-sorted on g3doc and the public one. Got it! I didn't notice the difference when comparing the two.
As expected, its a PEBKAC problem :upside_down_face:

This was changed/fixed in #11 (using option 3 from comment 9) and now things act as expected. Thanks!


fix: 修复 React 18 StrictMode 同时挂载两个表格的问题

👀 PR includes

🐛 Bugfix

[x] Solve the issue and close #0

📝 Description

React 18 StrictMode 在非生产环境下会强制执行两次, 导致会挂载两个 canvas, 体验不是很好
🖼 Screenshot

Before
After

🔗 Related issue link

https://github.com/antvis/S2/pull/2373 遗留问题
🔍 Self-Check before the merge

[ ] Add or update relevant docs.
[ ] Add or update relevant demos.
[ ] Add or update test case.
[ ] Add or update relevant TypeScript definitions.

:tada: This PR is included in version @antv/s2-react-v2.0.0-next.9 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


IE9 - pushState

This is a Bug
Browser : Internet Explorer 9
Operating System : Windows 7
Angular : 2 beta 13
After adding shims_for_IE.js from angular2 repository for missing requestAnimationFrame, now I am facing issue with pushState.
Because of this, I am not able to move to other pages and the URL is not updating with the hash.

Might be Angular 2 bug
https://github.com/angular/angular/issues/6506

@sasidhar thanks for taking the time to figure out all the bugs with IE9

This issue is still valid. I'm testing this using an otherwise unmodified version 5.1.1 of this starter. It has Angular 2.1.1 in its dependencies.
The only changes have been to disable hash routes in app.module.ts:
RouterModule.forRoot(ROUTES, { useHash: false })

and to enable IE shims in polyfills.browser.ts:
// Polyfills

import 'ie-shim'; // Internet Explorer 9 support

@ristomattia I guess for now you can do this:
RouterModule.forRoot(ROUTES, { useHash: Boolean(history.pushState) === false })

@sallar Brilliant! The issue seems to be gone based on my initial tests. Also the routing seems to work on browser reload. Thanks!

sorry this may sound super rule but I'm closing long standing issues and refactoring the codebase. If you run into this problem again feel free to open another issue

I added Boolean(history.pushState) === false


Marshmallow validation and condition builder

/fields now works by invoking _meta
ParamValidator replaced with Marshmallow validator
Removed validator methods, their functionality has been written into the new validator
validation step now occurs outside of the route logic methods, this is to ease eventual asynchronous job implementation
FilterMaker, ParamValidator.conditions removed, replaced by ConditionBuilder class
ConditionBuilder can parse original style foo=bar query arguments, and also as the ability to parse dataset_filters={condition tree} arguments
separated methods for building responses into their own file

Before I dig into the code, could you restructure your commits? Commit messages like stash and stable don't tell me a lot about what happened at each step and will make it harder for us to make sense of the project history in the future.
Try to follow these guidelines and use git rebase to get rid of intermediate steps.


[Text Field] Horizontal scroll when label is too long

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Current behavior 😯
If the label is too long, it affects the view of mobile clients (Android and Iphone)
Source Code:
<Row>
<Col>
<TextField
    id="vereinsmitgliedschaftsprozente"
    label={'THIS IS A VERY LONG LABEL AND THIS IS THE PROBLEM WHY THE SCREEN ON MOBILE DEVICES WILL BE EXPANDED'}
    value={user.vereinsmitgliedschaftsprozente}
    error={vereinsmitgliedschaftsprozenteerror}
    type="number"
    fullWidth={true}
    onChange={( event ) => {
        const tempUser = cloneDeep( user );
        tempUser.vereinsmitgliedschaftsprozente = +event.target.value;
        setUser( tempUser );
        setvereinsmitgliedschaftsprozenteerror( event.target.value.trim().length === 0 );
    }}
    margin="none"
/>
</Col>
</Row>

On Android or Iphone it looks like this:

but it is possible to scroll to the right:

because the label is too long and not shortened:

Side information:
Row and Column is from the library reactstrap.
Expected behavior 🤔
The label should not expand the website
Steps to reproduce 🕹
Steps:

Open this codesandbox example: Example
You have to open this in a new window. Open this in a new window:

When the new window is opened - go to the developer tools and go to responsive design - switch to iphone or any other android device

THE SOLUTION
The css is wrong:
When you delete the "float" attribute it works as expected.

Context 🔦
No response
Your environment 🌎
No response

Hey @Paul6552, thanks for opening up the issue!
I'm not sure if removing the float property is the way to go - maybe adding overflow instead?! Thoughts @siriwatknp?!

adding overflow: hidden to the legend sounds good. @Paul6552 Would you like to submit a PR?

I have read the CONTRIBUTING.md but stopped at yarn. I am working on a business computer on which I cant install additional package manager. So if anyone else would like, please do.

Can I submit PR?

@RedHeadphone Sure, go ahead! :)

the label already has overflow : hidden property but still horizontal scroll bar appears. Also label doesn't have property float

@RedHeadphone
The label is not the faulty one. The legend has no overflow:hidden. See initial post -> solution picture "legend" does not have overflow:hidden

@RedHeadphone The label is not the faulty one. The legend has no overflow:hidden. See initial post -> solution picture "legend" does not have overflow:hidden

yeah my bad. I fixed it.


Build for ios fails in Xcode 12 : Undefined symbols for architecture armv7:   "OBJC_CLASS$_FlutterExifRotationPlugin", referenced from:       objc-class-ref in GeneratedPluginRegistrant.o

Undefined symbols for architecture armv7:
"OBJC_CLASS$_FlutterExifRotationPlugin", referenced from:
objc-class-ref in GeneratedPluginRegistrant.o

Hi @abaturyna
Can you please provide your flutter doctor -v, your flutter run --verbose and a minimal complete reproducible code sample?
Thank you

HI @pedromassangocode
PFA in file :
SQFLITE_BUILD_ERROR_UNRECOGNIZED_SYMBOLS.txt

Hi @pedromassangocode
Please refer to attached file
SQFLITE_BUILD_ERROR_UNDEFINED_SYMBOLS.txt

@pedromassangocode  Xcode version is Version 12.1 (12A7403)

Hi @abaturyna
I cannot find any error message similar to the one you shared in the title, where did you get this message?
Can you please share your Podfile?
Found this in the logs:
Specs satisfying the 'flutter_exif_rotation (from '.symlinks/plugins/flutter_exif_rotation/ios')' dependency were found, but they required a higher minimum deployment target.

flutter doctor -v
[✓] Flutter (Channel dev, 1.24.0-3.0.pre, on Mac OS X 10.15.7 19H2 darwin-x64, locale ru-BY)
 • Flutter version 1.24.0-3.0.pre at /Users/nastya/Dropbox/BUSINESS/Soft/flutter
 • Framework revision 2783f8e2e1 (6 дней назад), 2020-10-22 09:36:06 -0700
 • Engine revision defa8be2b1
 • Dart version 2.11.0 (build 2.11.0-242.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
 • Android SDK at /Users/nastya/Library/Android/sdk
 • Platform android-29, build-tools 29.0.3
 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
 • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
 • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
 • Xcode at /Applications/Xcode.app/Contents/Developer
 • Xcode 12.1, Build version 12A7403
 • CocoaPods version 1.10.0

[✓] Chrome - develop for the web
 • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
 • Android Studio at /Applications/Android Studio.app/Contents
 • Flutter plugin version 47.1.2
 • Dart plugin version 193.7361
 • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] IntelliJ IDEA Ultimate Edition (version 2020.1.1)
 • IntelliJ at /Applications/IntelliJ IDEA.app
 • Flutter plugin version 45.1.3
 • Dart plugin version 201.7223.97

[✓] Connected device (2 available)
 • Web Server (web) • web-server • web-javascript • Flutter Tools
 • Chrome (web)  • chrome  • web-javascript • Google Chrome 86.0.4240.111

• No issues found!

Important parts of the logs
    [!] CocoaPods could not find compatible versions for pod "flutter_exif_rotation":
     In Podfile:
     flutter_exif_rotation (from `.symlinks/plugins/flutter_exif_rotation/ios`)

    Specs satisfying the `flutter_exif_rotation (from `.symlinks/plugins/flutter_exif_rotation/ios`)` dependency were found, but they required a higher minimum deployment target.

    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:328:in `raise_error_unless_state'
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:310:in `block in unwind_for_conflict'
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `tap'
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `unwind_for_conflict'
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:684:in `attempt_to_activate'
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:254:in `process_topmost_state'
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/resolver.rb:94:in `resolve'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:1074:in `block in resolve_dependencies'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/user_interface.rb:64:in `section'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:1072:in `resolve_dependencies'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:124:in `analyze'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:414:in `analyze'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/user_interface.rb:64:in `section'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:238:in `resolve_dependencies'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:160:in `install!'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/command/install.rb:52:in `run'
    /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/command.rb:52:in `run'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/bin/pod:55:in `<top (required)>'
    /usr/local/bin/pod:23:in `load'
    /usr/local/bin/pod:23:in `<main>'

[ +94 ms] Exception: Error running pod install
[  ] "flutter run" took 89 404ms.
[ +6 ms]
   #0  throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
   #1  RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:622:7)
   <asynchronous suspension>
   #2  FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1033:18)
   #3  _rootRunUnary (dart:async/zone.dart:1198:47)
   #4  _CustomZone.runUnary (dart:async/zone.dart:1100:19)
   #5  _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
   #6  Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
   #7  Future._propagateToListeners (dart:async/future_impl.dart:725:32)
   #8  Future._completeWithValue (dart:async/future_impl.dart:529:5)
   #9  _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
   #10  _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
   #11  RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
   #12  _rootRunUnary (dart:async/zone.dart:1198:47)
   #13  _CustomZone.runUnary (dart:async/zone.dart:1100:19)
   #14  _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
   #15  Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
   #16  Future._propagateToListeners (dart:async/future_impl.dart:725:32)
   #17  Future._completeWithValue (dart:async/future_impl.dart:529:5)
   #18  Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:567:7)
   #19  _rootRun (dart:async/zone.dart:1190:13)
   #20  _CustomZone.run (dart:async/zone.dart:1093:19)
   #21  _CustomZone.runGuarded (dart:async/zone.dart:997:7)
   #22  _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1037:23)
   #23  _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
   #24  _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
   #25  _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
   #26  _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)

[ +244 ms] ensureAnalyticsSent: 133ms
[  ] Running shutdown hooks
[  ] Shutdown hook priority 4
[ +2 ms] Shutdown hooks complete
[  ] exiting with code 1

Hi @pedromassangocode
Please find my Podfile below :
Uncomment this line to define a global platform for your project
platform :ios, '14.0'
CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), FILE)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
pod 'Flutter', :path => 'Flutter'
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
pod 'Firebase/MLVisionBarcodeModel'
pod 'Firebase/MLVisionFaceModel'
pod 'Firebase/MLVisionLabelModel'
pod 'Firebase/MLVisionTextModel'
target 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(FILE))
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
Yes, this error with flutter_exif_rotation appeared so I was forced to increase platform version to 14.0 and change in XCode workspace settings as well for Runner and Target

Hi @abaturyna
Thanks for providing your podfile, I will need your pubspec.yaml as well.

Hi @pedromassangocode  I have fixed the issue . Thank you very much that you tried to help me!!!! so, in order to prevent this issue for flutter_exif_rotation plugin i put 14.0 version to Podfile and to XCode workspace settings for Runner and Target .
Also, i have talked to sqflite team - they released update where version of FMDB was increased. Which is cause of this problem. So i downgraded temporarily sqflite package to 1.3.0 version - error dissapeared.
Thank you again and have a nice day !

Hi @abaturyna
Given your last message I feel safe to close this issue, if you disagree please write in the comments and I will reopen it.
Thank you


Document queue partitions and allow setting TTL on put

Same as previous PR - can address comments in follow-ups.

@prbot approve


[core] add EdgeRuntime telemetry info

currently the property only holds a string edge-runtime but in the future
hopefully it would contain more useful info.
while at it also port PR https://github.com/Azure/azure-sdk-for-js/pull/30194 to ts-http-runtime

Packages impacted by this PR
@azure/core-rest-pipeline, @typespec/ts-http-runtime

API change check
API changes are not detected in this pull request.


TxSummary digest

A proposal to introduce a TxSummary object and incorporate it into the digest which MLSAG's sign, to help hardware wallets.
Rendered Proposal

Do you think it would make sense to add a "worst possible case" calculation of how much memory the hardware wallet will need to support, based on a transaction that has the max inputs/outputs?

Koe made a different estimate of the sizes of Tx's due to membership proofs which is larger than mine, in MCIP #21

Currently (protocol v0), Merkle membership proofs constitute the bulk of transaction size. A 1-input/1-output transaction is ~21 kB, with membership proofs taking up ~17 kB (assuming membership proofs with 32 elements, representing a Merkle tree 31 layers deep). In a 16-input/16-output transaction (the maximum size of a transaction), membership proofs occupy ~275 kB out of ~325 kB.

I have not actually done this calculation myself.
We could also write a unit test or something that measures this maximum size.
You're right, we should probably document what the actual worst possible case is at the current version (v2)

Do you think it would make sense to add a "worst possible case" calculation of how much memory the hardware wallet will need to support, based on a transaction that has the max inputs/outputs?

Koe made a different estimate of the sizes of Tx's due to membership proofs which is larger than mine, in MCIP #21

Currently (protocol v0), Merkle membership proofs constitute the bulk of transaction size. A 1-input/1-output transaction is ~21 kB, with membership proofs taking up ~17 kB (assuming membership proofs with 32 elements, representing a Merkle tree 31 layers deep). In a 16-input/16-output transaction (the maximum size of a transaction), membership proofs occupy ~275 kB out of ~325 kB.

I have not actually done this calculation myself.
We could also write a unit test or something that measures this maximum size.
You're right, we should probably document what the actual worst possible case is at the current version (v2)

I think it's also valuable (if not more valuable) to document how much it would be following this change. This will make it easier for potential hardware integrations to have a quick go/no-go based on memory requirements.

Going to hold this one an extra day due to comments


[Question] How to add grid with submissions to this code

Environment
Please provide as many details as you can:

Hosting type

[x] Form.io
[x] Local deployment

Version: 7.0.43

Formio.js version: x
Frontend framework: React
Browser: Brave
Browser version: latest

I think that I have tried everything...
For code or form JSON, please enclose in a code block:
import React from "react";
import { Form } from "react-formio";

const report= (props) => {
  return (
    <>
      <Form {...props} src="https://example.form.io/report" />
    </>
  );
};

export default report;

I am closing the issue as it was created too long ago and there is no new comments here. If the issue is not resolved, please reopen it. Thanks!


added cask for nanobox bundle http://nanobox.io/

Cleaned up, squashed, and finally, I think, ready.

nanobox itself handles everything now, there's no need for this "bundle" Cask, as all it does is include vagrant and virtualbox. Those are now dependencies in the original cask, so the two are identical.
Check it out by looking at nanobox.rb
Please let me know if you have any more questions, thanks!

I missed the dependencies. That looks good, thx.


add remote tail over ssh

I needed a way to remotelly tail my logs files so I add an option to tail over ssh.
use like normal frontail and add --remote-host option to use it.

Looks like you violated few jscs rules. https://travis-ci.org/mthenw/frontail/builds/49454416
Also, it would be cool if you could add tests.

Merge request updated with right codestyle.
I also add a check, if there is any error in the tail command (over ssh or not) frontail display it in console.error and then exit. It seems better to me, especially if we have a monitoring system that check the daemon status.
If you think it is not a good idea i can remove it.
For the tests, it is not easy to test because I have no server to connect over ssh...

@RoCat published to NPM. v1.4.0.
Thanks for PR :+1:


[BUG] - Pixelate Filter displaying odd behaviour

Describe the bug
Pixelate Filter button seems to not apply the pixelate filter sometimes. It sometimes applies the emboss filter instead.
To Reproduce
Steps to reproduce the behavior:

Load up the program
Spam filters
Click "Pixelate Filter"

Expected behavior
The pixelate filter should be applied to the image.
Screenshots

Desktop (please complete the following information):

OS: Windows 11 Pro
Browser: N/a
Version: Release v0.0.2

Pixelate works if you use Emboss Filter first or Dark Filter first
If you use Emboss Filter it pixelates an embossed image

Reworked pixelate_filter function that now fixes this issue. Seemed to be a memory allocation overflow error.


[Bug] Job failed with exception: System.ArgumentException: The specified path is not of a legal form (empty).

[REQUIRED] Please fill in the following fields:

Unity editor version: Unity2021.3.21f1
Firebase Unity SDK version: firebase-analytics-unity10.6.0
Source you installed the SDK: Unity PackageManager(local)
Problematic Firebase Component: analytics
Other Firebase Components in use: crashlytics
Additional SDKs you are using: Facebook, AdMob
Platform you are using the Unity editor on:Windows
Platform you are targeting: Android
Scripting Runtime: Editor
Pre-built SDK from the website or open-source from this repo: _____

[REQUIRED] Job failed with exception: System.ArgumentException: The specified path is not of a legal form (empty).
I added the SDK to Unity's Package Manager through a local package, but after loading the pkg, it reported an error immediately. I traced the issue and found that it was due to the file or folder-related interfaces not being adapted for local packages.

Job failed with exception: System.ArgumentException: The specified path is not of a legal form (empty).
  at System.IO.Path.InsecureGetFullPath (System.String path) [0x00025] in <88e4733ac7bc4ae1b496735e6b83bbd3>:0
  at System.IO.Path.GetFullPath (System.String path) [0x00000] in <88e4733ac7bc4ae1b496735e6b83bbd3>:0
  at System.IO.DirectoryInfo..ctor (System.String path) [0x00006] in <88e4733ac7bc4ae1b496735e6b83bbd3>:0
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo..ctor(string)
  at Google.FileUtils.CreateFolder (System.String path, Google.Logger logger) [0x0000d] in Z:\tmp\tmp.cHLLGXXRL4\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\FileUtils.cs:646
  at Google.FileUtils.CreateFolder (System.String path, Google.Logger logger) [0x0001b] in Z:\tmp\tmp.cHLLGXXRL4\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\FileUtils.cs:648
  at Google.FileUtils.CreateFolder (System.String path, Google.Logger logger) [0x0001b] in Z:\tmp\tmp.cHLLGXXRL4\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\FileUtils.cs:648
  at Google.FileUtils.CreateFolder (System.String path, Google.Logger logger) [0x0001b] in Z:\tmp\tmp.cHLLGXXRL4\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\FileUtils.cs:648
  at Google.FileUtils.CreateFolder (System.String path, Google.Logger logger) [0x0001b] in Z:\tmp\tmp.cHLLGXXRL4\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\FileUtils.cs:648
  at Google.FileUtils.CreateFolder (System.String path, Google.Logger logger) [0x0001b] in Z:\tmp\tmp.cHLLGXXRL4\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\FileUtils.cs:648
  at Google.FileUtils.CreateFolder (System.String path, Google.Logger logger) [0x0001b] in Z:\tmp\tmp.cHLLGXXRL4\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\FileUtils.cs:648
  at Google.FileUtils.CreateFolder (System.String path, Google.Logger logger) [0x0001b] in Z:\tmp\tmp.cHLLGXXRL4\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\FileUtils.cs:648
  at Google.FileUtils.CreateFolder (System.String path, Google.Logger logger) [0x0001b] in Z:\tmp\tmp.cHLLGXXRL4\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\FileUtils.cs:648
  at Google.FileUtils.CreateFolder (System.String path, Google.Logger logger) [0x0001b] in Z:\tmp\tmp.cHLLGXXRL4\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\FileUtils.cs:648
  at GooglePlayServices.PlayServicesResolver.CopyAssetAndLabel (System.String sourceLocation, System.String targetLocation, System.Boolean force) [0x00075] in Z:\tmp\tmp.Zw8JRhK8tU\third_party\unity\unity_jar_resolver\source\AndroidResolver\src\PlayServicesResolver.cs:2471
  at GooglePlayServices.GradleTemplateResolver.CopySrcAars (System.Collections.Generic.ICollection`1[T] dependencies) [0x000ae] in Z:\tmp\tmp.Zw8JRhK8tU\third_party\unity\unity_jar_resolver\source\AndroidResolver\src\GradleTemplateResolver.cs:150
  at GooglePlayServices.GradleTemplateResolver.InjectDependencies (System.Collections.Generic.ICollection`1[T] dependencies) [0x00131] in Z:\tmp\tmp.Zw8JRhK8tU\third_party\unity\unity_jar_resolver\source\AndroidResolver\src\GradleTemplateResolver.cs:488
  at GooglePlayServices.PlayServicesResolver+<ResolveUnsafe>c__AnonStorey9.<>m__1 () [0x00000] in Z:\tmp\tmp.Zw8JRhK8tU\third_party\unity\unity_jar_resolver\source\AndroidResolver\src\PlayServicesResolver.cs:1982
  at Google.RunOnMainThread.ExecuteNext () [0x0003d] in Z:\tmp\tmp.cHLLGXXRL4\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\RunOnMainThread.cs:486
UnityEngine.Debug:LogError (object)
Google.RunOnMainThread:ExecuteNext () (at Z:/tmp/tmp.cHLLGXXRL4/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:488)
Google.RunOnMainThread:<ExecuteAllUnnested>m__1 () (at Z:/tmp/tmp.cHLLGXXRL4/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:536)
Google.RunOnMainThread:RunAction (System.Action) (at Z:/tmp/tmp.cHLLGXXRL4/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:343)
Google.RunOnMainThread:ExecuteAllUnnested (bool) (at Z:/tmp/tmp.cHLLGXXRL4/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:530)
Google.RunOnMainThread:ExecuteAll () (at Z:/tmp/tmp.cHLLGXXRL4/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:512)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

Steps to reproduce:
To reproduce the issue, simply import the SDK into the project as a local package and switch to the Android platform. The problem occurs in the CreateFolder interface of FileUtils.cs, where the path parameter passed to AssetDatabase.IsValidFolder is not adapted for Local Packages.

Relevant Code:
 public static bool CreateFolder(string path, Logger logger = null)
    {
      if (AssetDatabase.IsValidFolder(path))
        return true;
      DirectoryInfo directoryInfo = new DirectoryInfo(path);
      string directoryName = Path.GetDirectoryName(path);
      if (!FileUtils.CreateFolder(directoryName))
        return false;
      if (FileUtils.IsValidGuid(AssetDatabase.CreateFolder(directoryName, directoryInfo.Name)))
        return true;
      logger?.Log(string.Format("Please ignore Unity error messages similar to '{0}'.\nUnable to use Unity API `AssetDatabase.CreateFolder()` to create folder: '{1}'. Switch to use `Directory.CreateDirectory()` instead. \n\nSee {2} for more information.", (object) "*** is not a valid directory name.", (object) path, (object) "https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-7046"));
      return Directory.CreateDirectory(path) != null;
    }

Hi @huangchaoqun,
Thanks for letting us know about this. While I try to replicate the issue on my end, could you try if Version 10.7.0 of the SDK makes any difference?