SoundCore Liberty Air 2 Pro support

Added SC Liberty Air 2 Pro support . Testing shows that the tweak is stable and is able to consistently toggle the different noise control modes.

👍


Crash on Startup

Using Mac OSX 10.8.5,
Mapbox Studio opens with the grey loader/spinner screen, and then immediately closes/crashes. Every time

I just downloaded and installed the latest version of MapBox Studio and it crashes on startup just as the op described.  Does one still need to patch this using the workaround described by @BergWerkGIS above??

@GeertClaes no, these instructions are obsolete now.
Please try the following:

make sure (via Task Manager) that no node.exe or mapbox-studio.exe processes are running. If there are, kill them
open a console:
press: Windows key + r
type cmd
ENTER
cd "C:\Program Files\mapbox-studio\resources\app"
vendor\node.exe index.js

What is the result of the above procedure?

If the message contains Mapbox Studio @ http://localhost:3000/ then it works:

open your browser at http://localhost:3000/
check if you can use Mapbox Studio Classic
when you are finished testing, goto back to the console and press Ctrl+c to end Mapbox Studio
you should be able to start it via the application shortcut, too

If there is an error message, post it here.

I did get go through the steps and I did get
<Fri, 02 Oct 2015 11:03:35 GMT> Mapbox Studio @ http://localhost:3000/
I opened the browser at http://localhost:3000/
It showed a page asking to "Connect to your Mapbox account to get started."  When clicking the Connect button the following error popped-up:
<Fri, 02 Oct 2015 11:05:20 GMT> error 500 { [Error: Cannot find Mapbox API at ht
tps://a.tiles.mapbox.com]
method: 'GET',
url: '/oauth/config?MapboxAPITile=https%3A%2F%2Fa.tiles.mapbox.com' }
The MapBox Studio still crashes upon startup (I assume this is what you meant with MapBox Studio Classic?)

New naming: Previous offline Mapbox Studio became Mapbox Studio Classic.
New online version (https://www.mapbox.com/mapbox-studio/) is just Mapbox Studio.
Two problems:

there cannot be two running instances of Mapbox Studio Classic at the same time. Either you start it via console or via the application shortcut. So it is expected to crash via application shortcut if you also started it via console before
It seems you are behind a proxy (Error: Cannot find Mapbox API)

Proxy support is a problem that has been nagging us for quite some time.
Because of third party libraries that are out of our control Mapbox Studio Classic has to be started with direct internet access when used the very first time (Authentication with Mapbox).
Afterwards it can be used behind a proxy, but has to be started from the console every time, as you have to set the proxy manually:
SET HTTP_PROXY=http://<PROXY-IP>:<PROXY-PORT>
SET HTTPS_PROXY=http://<PROXY-IP>:<PROXY-PORT>

and then start via vendor\node index.

I have a feeling this will not work because we are indeed behind a proxy but the connection uses  a pac configuration file.

Proxy pac:
You could try to download the pac (paste the pac url into the browser's address bar, most of the time it downloads just fine) and extract the proxy information (it's a text file) and then set HTTP_PROXY/HTTPS_PROXY via console.
First start:
Maybe you could try to authenticate at home and then copy over the %USERPROFILE%\.mapbox-studio folder to your machine at work.
Although I must admit, I haven't tried that and don't know, if it will work.


Fixed introduced during bootstrap tab conversion

Needed to fix div name in page.replace_html call to load contents on Request details screen when tab is changed.
@dclarizio please review/test. This is a fallout of changes in commit SHA 5dd5f46aecfa71408fa3dbaf3a4790d8f2d39309
before:

after:

This is just a fix to a bootstrap style conversion typo, merging.


Prepare blockscout for cEUR launch

cEUR launch will come around March, we need to make sure blockscout supports it.
Main points of integration:

Token dropdown
Token transaction feed
Potentially: ability to filter by token in the token transaction feed.

Would this need specific work for alfajores, baklavla and mainnet or all the networks should be supported with the same change?


coverage of web apps Kudu operations

@tombuildsstuff informed us yesterday that some operations needed for setting up a web app come from Kudu, specifically configuring source repos for automated deployments.
Let's figure out how to include Kudu operations in our SDK.
refs:

https://docs.microsoft.com/en-us/rest/api/appservice/webapps
https://github.com/projectkudu/kudu/wiki/REST-API

Following conversations with @davidebbo we will not include Kudu operations in a public SDK and will instead seek equivalent Azure RM operations. Please open issues here or in the samples repo if you need help figuring out how to do something. Thanks.

@joshgav are there any updated plans here? As it stands we're blocked from implementing https://github.com/terraform-providers/terraform-provider-azurerm/issues/1104

@joshgav unfortunately I've just discovered another requirement for Kudu support - are there any updated plans here, or should we look to write a Kudu client? :)
Thanks!

Checking into this again @tombuildsstuff, sorry for the frustration.
cc @stefsch
Related: https://github.com/Azure/azure-sdk-for-go/issues/2397

no worries - thanks @joshgav :)


upgrade to latest dependencies (#1098)

bumping knative.dev/pkg 3c00bb0...d481724:

d481724 Update community files (# 2428)
9ea8176 Update actions (# 2430)
0caafcb upgrade to latest dependencies (# 2429)
3b550af changeset: Look in packed-refs file if ref file not found. (# 2425)
5e98acd Make URL compatible with controller-gen (# 2431)
bumping knative.dev/hack b9cb198...a8ef7b6:
a8ef7b6 Skip presubmit tests for .github updates (# 154)
0456e8b Update community files (# 152)
bumping knative.dev/eventing 0326f92...2a69eec:
2a69eec Clearing out old state info for new placements (# 6172)
7a48f42 Update actions (# 6150)
13c0ce8 upgrade to latest dependencies (# 6121)
bumping knative.dev/reconciler-test 3f8092f...2c3291f:
2c3291f Features are stored by reference in a FeatureSet (# 300)

Signed-off-by: Knative Automation<EMAIL_ADDRESS>

OCF Webhook is merging this PR


Properly process mongodb getLastError response.

Hi,
I noticed a problem when connecting in safe write mode and using an improper query. The error returned from the DB through db.getLastError()wasn't reaching the calling module, so I ended up processing it as a bad_query error.
Regards,

Thanks!


Implements XOR-based float64 slice compression

I took a few hours and wrote a sample implementation of the streaming XOR-based compression algorithm that Facebook vaguely discusses in their Gorilla paper. Initial experimentation reveals that it has pretty good performance characteristics. The code is a little rough in parts, but it has several test vectors.
A possible future direction (especially for larger slabs) would be to implement a different version that uses the differential-finite-context-method predictor enhancements discussed in "Fast Lossless Compression of Scientific Floating-Point Data" by Paruj Ratanaworabhan, Jian Ke, and Martin Burtscher. If I'm reading it right it sounds like they save the prediction table (at least in part) but it might lead to better space saving overall.

this is a pretty nifty PR.


Check variable pre-population scenario where nested components: such as in a container

If you have a container with component, how do you do pre-population?  The pre-populated variables are in parent scope.  When cycling over each component, we need to detect what the path of the component is in the submission object, and then create that path in the submission object with the pre-population variable

Review this line:
https://github.com/StephenOTT/camunda-formio-plugin/blob/master/common/forms/formio.html#L223

ref: https://github.com/formio/formio.js/issues/3470


Fody Error

I just downloaded and installed the nuget package. I've added the <Mimick /> node to the FodyWeavers.xml file and then I just try compiling the project and I get a Fody error:
Severity	Code	Description	Project	File	Line	Suppression State
Error		Fody: An unhandled exception occurred:
Exception:
Failed to execute weaver C:\Users\steve.nuget\packages\mimick.fody\1.0.1\build..\netclassicweaver\Mimick.Fody.dll
Type:
System.Exception
StackTrace:
at InnerWeaver.ExecuteWeavers() in C:\projects\fody\FodyIsolated\InnerWeaver.cs:line 185
at InnerWeaver.Execute() in C:\projects\fody\FodyIsolated\InnerWeaver.cs:line 108
Source:
FodyIsolated
TargetSite:
Void ExecuteWeavers()
Cannot resolve a reference to IInjectAfterInitializer in any of 'R365.Application.dll, netstandard.dll, Microsoft.Extensions.DependencyInjection.Abstractions.dll, R365.Domain.dll, Microsoft.AspNetCore.Hosting.Abstractions.dll, Microsoft.WindowsAzure.Storage.dll, NodaTime.dll, Microsoft.AspNetCore.Mvc.Core.dll, EPPlus.dll, System.ComponentModel.Annotations.dll, Microsoft.Extensions.Logging.Abstractions.dll, Microsoft.Extensions.Identity.Core.dll, Newtonsoft.Json.dll, AutoMapper.dll, Refit.dll, MethodDecorator.dll, Microsoft.Extensions.Primitives.dll, Microsoft.Net.Http.Headers.dll, Microsoft.AspNetCore.Http.Abstractions.dll, System.Runtime.dll'
Type:
System.MissingMemberException
StackTrace:
at Mimick.Fody.ReferenceFinder.ResolveType(String name, Boolean full, Boolean throws) in C:\projects\mimick-fody\Mimick.Fody\ReferenceFinder.cs:line 246
at Mimick.Fody.ReferenceFinder.InitializeReferencedMembers() in C:\projects\mimick-fody\Mimick.Fody\ReferenceFinder.cs:line 159
at ModuleWeaver.Execute() in C:\projects\mimick-fody\Mimick.Fody\ModuleWeaver.cs:line 47
at InnerWeaver.ExecuteWeavers() in C:\projects\fody\FodyIsolated\InnerWeaver.cs:line 181
Source:
Mimick.Fody
TargetSite:
Mono.Cecil.TypeReference ResolveType(System.String, Boolean, Boolean)
R365.Application		1

This seems to be an issue when the dependency is added to the project but not used. I believe as part of the compile process, any unused dependencies are optimized out, so what's happening is the reference to Mimick.dll is being removed.
I believe some Fody dependencies fix this by making it mandatory to add a module-level attribute. Instead, you can fix this by simply adding a reference to IFrameworkContext anywhere in your application and the DLL should be included in the build process.
Please let me know if this helps!

That did it!  Thanks!  Closing this issue.


Implement Main Interface

Interface shown to user when app is loaded

As a user, I want to select whether to transmit or receive data


Events for all resources

Hi, i'm tring to use this repo, it is very good!
I have differents resources and i use 'eventSources'
`eventSources: [
{
events: function (fetchInfo, successCallback, failureCallback) {
let params = getFiltersParams();
                params.start = fetchInfo.startStr;
                params.end = fetchInfo.endStr;

                let queryString = new URLSearchParams(params).toString();

                let urlWithParams = `${apiEndpointUrl}?${queryString}`;

                        fetch(urlWithParams,
                            {
                                method: "GET"
                            }).then(res => {

                                return res.json();
                            }).then(res => {
                                successCallback(res);
                            });
                    }

                }
            ],`

If i wan't to share a event with all resources, how i can do?
Mi json answer from urlWithParams is, for example:
{         "type": 2,         "start": "2024-05-19T02:00:00",         "end": "2024-05-19T11:30:00",         "resourceIds": [             "1,2,3,4,5,6,7,8,9"         ],         "display": "background",         "backgroundColor": "#f00"     },,

Sorry, i have to set
the json:
{         "type": 2,         "start": "2024-05-19T02:00:00",         "end": "2024-05-19T11:30:00",         "resourceIds": [             1,             2,             3,             4,             5,             6,             7,             8,             9         ],         "display": "background",         "backgroundColor": "#f00"     },


Remove non-productive sequences

Hello and thank you for your great work!
I input my MIXCR files keeping the non-productive sequences using the command below:
int_load <- repLoad("~/cloneslinks", .mode = "single", .coding = FALSE)
Now I want to generate a subset of $data containing productive-only sequences. This command below does not seem to subset the $data or $meta:
int_load_productive <- repFilter(int_load, .method = "by.clonotype", .query = list(CDR3.aa =exclude("partial", "out_of_frame")))
I am using immunarch_0.6.7. Can you please advise on how to do this? I tried to find out how you define partial or out_of_frame, but I did not find them in your docs.
Thanks
Arash

Hi @anabbi !
Thank you for using our packages and contacting us!
We call sequence as partial if we did not find stop codon at all.
We call sequence out of frame if we see stop codon in CDR3 region.

This command below does not seem to subset the $data or $meta:
I suppose you are rigth. We will fix it in future versions.

Now I want to generate a subset of $data containing productive-only sequences.
For your purpose use this command:

noncoding(int_load)

Thanks again for contucting us. We will back with new updates about your issue.
Enjoy your week,
Maria Samokhina


cmd/go: consider path to the C and C++ compiler executable when deciding when to recompile CGO packages

I have 2 versions of GCC on my computer, but it seems that Go can't tell the difference. It would be good if Go remembered the path to the compiler executables and recompile if it changed to avoide incompatibilities.

Can you show us a short example?  I can think of a few different things you might mean, and I want to be sure that we understand the actual problem that you are encountering.  Thanks.

I`ve had some problems when the linker from GCC10.1.0 tried to link artifacts compiled by GCC9.2, specifically when doing link-time-optimization as the different compilers can't read the others LTO representation.
This is probably not the only problem that you could encounter. You could accidentally compile with GCC10.1, then link with an earlier version that doesn't define a symbol that the later version has.
I emagine that remembering the path to the compiler executable would fix this problem.

@Keithcat1 Could you please add:

Complete output of go env for both compiler versions used.
Method you're using to switch compilers? Are you setting CC? PATH? Something else?
CGO_CFLAGS, CGO_LDFLAGS and similar, either set on the command line or with #cgo directives.
Short example program.
Sequence of commands run and error messages seen in output.

The go command does store some information about the C compiler used, but it may not be enough to detect all changes. Without knowing more about your situation, it's hard to say if there's a bug here, so please add more detail.

Hi,
The method of switching compilers I am using is to change the path.
Both compilers are gcc.exe.
I am not using any CGO environment variables.
The only notable #cgo CFLAGS and CXXFLAGS I have set are:
#cgo CFLAGS: -I${SRCDIR}/include -DWITH_MINIAUDIO -Wno-multichar -Wno-unused-value -msse
#cgo CXXFLAGS: -I${SRCDIR}/include -DWITH_MINIAUDIO -Wno-multichar -Wno-macro-redefined -Wno-unused-value -msse
#cgo CXXFLAGS: -flto
#cgo windows LDFLAGS: -static
Go env for GCC 9.2.0:

I think the current mechanism is to use the value of the environment variable CC, which defaults to the value of CC used when the Go tool were built, which defaults to gcc.  So if you are getting different compilers strictly by changing PATH, then I think you will indeed get the same build ID for both.  If you change CC instead, you will get different build IDs.
I guess the question for the go tool is whether it should call os/exec.LookPath to fetch the full path when computing the build ID.

We may want to invoke the C compiler to incorporate some version information, too. We do something that for the Go compiler and other tools.

Sure, you can get real information about the C compiler by using (*Builder).gccgoToolID.

Maybe just make an SHA256 hash of the C compiler and recompile if it changes?

The C compiler is a collection of different programs, so computing a hash is not trivial.  The gccgoToolID method that I mentioned already does what I think is the right thing.  See https://golang.org/src/cmd/go/internal/work/buildid.go?#L217 .


Artifacts around mouse when using DisplayLink with Nvidia drivers

Please, hear my plea!
I'm seeing artifacts around my mouse when using DisplayLink with Nvidia drivers. I don't know what else to do. I don't know if this is related to EVDI or DisplayLink itself.
Here's a video of the problem: https://www.youtube.com/watch?v=vVwa-cVU_cA
This only happens with Nvidia driver. If I use Nouveau, the artifacts are gone.
Linux distribution and its version: Ubuntu 18.04
Linux kernel version: 5.1.15
X11 version: 1.20.1-3ubuntu2.1~18.04.1
Desktop environment in use: GDM3
Nvidia Driver version: 430
Driver version: 5.1.26
DisplayLink service status: up and running
EVDI service version: 1.6.1

So, this solved it: https://support.displaylink.com/knowledgebase/articles/1843660-screen-freezes-after-opening-an-application-only
I had tried it before, but it was hanging Ubuntu from starting - something to do with Nvidia Persistence that would hang the boot screen. But anyway, adding EVDI module to boot doesn't hang Nvidia anymore, and I have no idea why.


Publish mdw 6.0.x war/jars to Maven Central

We no longer need to publish to Nexus.  We'll publish to these two repositories:

http://repo1.maven.org/maven
http://lxdenvmtc143.dev.qintra.com:7021/maven/repository

Needed to publish to Maven Central:

Javadocs jars (for each project)
PGP signing
Comprehensive POM data

Full requirements:
http://central.sonatype.org/pages/requirements.html
Other Resources to enable publishing:
https://maven.apache.org/guides/mini/guide-central-repository-upload.html
https://docs.gradle.org/current/userguide/maven_plugin.html

At this time we depend exclusively on Maven Central artifacts.  The next step is to actually publish there.

SNAPSHOT build was tested
https://oss.sonatype.org/content/repositories/snapshots/com/centurylink/mdw/mdw/6.0.03-SNAPSHOT/
6.0.2 build was tested but never released. https://oss.sonatype.org/#welcome
We need to test it out when we do a formal build. Make sure -DPUBLISHING_TO_MAVEN_CENTRAL parameter is passed in Jenkins build configuration. Task name is publishToMavenCentral. We have to setup gradle.properties to use the right secrete key file.

Do we need to publish these to maven central?

com.centurylink.mdw
mdw-schemas
5.5.38-SNAPSHOT

We do not need it because developers can use eclipse plug-in. Designer build requires this and we plan to offer that as premium feature
/cc @donaldoakes

auto signing did not work from Jenkins parameter
-DPUBLISHING_TO_MAVEN_CENTRAL=true -Psigning.keyId=xxxxx -Psigning.password=mdwbpmcore1 -DossrhUsername=xxxxx -DossrhPassword=xxxxxxxxxxxxx -Psigning.secretKeyRingFile=/prod/ecom2/local/apps/jenkins/workspace/MDW55\ -\ Build/mdw-framework/deploy/certs/secring.gpg
Had to put the properties in gradle.properties with remaining properties like this in Jenkins
-DPUBLISHING_TO_MAVEN_CENTRAL=true -DossrhUsername=xxxxxxxxxx -DossrhPassword=xx
Also, in next build check the createTag task to make sure tags are created after the publish

added a jenkins build step to append these properties from sign.txt in the same dir as gradle.properties


Watchman sensors are not linked to the config entry

Watchman sensors are not linked to the config entry, they do not support entity registry like other integrations.

Hey @bieniu, support for this is on the roadmap.

Fixed in v0.6.0


Set default source version to 3.5

Superseeds #20435
Closes #20415
[test_scala2_library_tasty]
[test_windows_full]
[test_java8]

How I fixed it
First, I've changed the default source version from 3.4 to 3.5. This change will trigger a number of uses in scala2-library-bootsrapped and scala2-library-cc. I've then cloned the source code of the scala2 library using the following commands in sbt: scala2-library-cc/run overwrite <path> and scala2-library-bootstrapped/run overwrite <path> (eg: scala2-library-cc/run overwrite scala/Array.scala). After cloning the missing files, I've proceeded with the changes to adapt the library to Scala 3.5

@Kordyjan This PR will need to be backported to the 3.5 release branch and be included in 3.5.0-RC2

@hamzaremmal I added you to dotty-staging/dotty. So in the future you can push your PRs there or add commits to existing PRs.

@odersky Should be good for review now. @natsukagami can you take a look at why semanticdb somtimes incule the diagnostics and sometimes it doesn't (should not block this PR since I commented it for now)

@natsukagami That's a great analysis. Let me see if we can somehow delay the warning to the point where we choose one of the implicits that are mentioned in it.

See #20480 for a fix that should suppress the spurious warnings.

We should remember to re-enable the semanticdb diagnostics when #20480 is merged.

We should remember to re-enable the semanticdb diagnostics when #20480 is merged.

Indeed, I suggested to do it in the same PR since it was the trigger for this change


Refactor tasks

Branching from https://github.com/fractal-analytics-platform/fractal-tasks-core/issues/177, here is the plan for a sizeable refactor of tasks. This will be enough for fractal-tasks-core 0.8.0

[ ] Replace pathlib.Path arguments with strings in all task call signatures. Convert strings to Path objects inside the task, when this is useful.
[ ] In all TaskArgument models (the one that are then passed to the run_fractal_task function), remove defaults and mark optional arguments as Optional. Then, when actually calling the task function, use **args.dict(exclude_none=True) as arguments (instead of the current **args.dict()).
[ ] When we currently rely on an input_path structure like /some/path/*.ext, refactor the task call signature and introduce two separate arguments (/some/path and *.ext). This will (as part of a different issue) pave the way for more complex glob patterns (e.g. "I only need images from a given Z plane").
[ ] Related to the previous point: also add the glob_pattern to the metadata dict, so that downstream tasks can use it.
[ ] Update the manifest, to also have this argument.
[ ] For all tasks that take a zarr input, they currently need input_paths to be like ["/some/path/*.zarr"] and component to be like plate.zarr/B/03/0. Refactor this so that input_paths is like ["/some/path/plate.zarr"] and component is like B/03/0.
[ ] Update tests.
[ ] Update (at least some of) the examples.
[ ] Update (at least some of) the fractal-demos examples.

Something else?

(updated as of https://github.com/fractal-analytics-platform/fractal-tasks-core/issues/177#issuecomment-1432977235)

One thing I just realized though: Currently, to the user, the '.png' or '.tif' is not a task parameter, but something that is defined when adding a resource => the task can just read it from the resource? Or how does it go from the resource to the task? Does Fractal-server combine it with the base folder string and just provide that combination?

You're totally right, we did not consider this (I probably had some old versions of the tasks in mind).
This means that the such a change (moving away from the current "let's extract the extension from the path", towards two separate arguments) would have more consequences, also affecting what we define as a resource.
Let's re-discuss it.

They are provided separately on resource adding, so could still be feasible to just pass them over as separate arguments instead of combining them. Let's discuss tomorrow :)

In all TaskArgument models (the one that are then passed to the run_fractal_task function), remove defaults and mark optional arguments as Optional. Then, when actually calling the task function, use **args.dict(exclude_none=True) as arguments (instead of the current **args.dict()).

Concerning this one, for the record, let's observe that this script
from pydantic import BaseModel
from typing import Optional

class Model(BaseModel):
    x: Optional[int]

m = Model()
print(m.dict(exclude_unset=True))
print(m.dict(exclude_unset=None))
print()

m = Model(x=None)
print(m.dict(exclude_unset=True))
print(m.dict(exclude_unset=None))
print()

produces this output:
{}
{'x': None}

{'x': None}
{'x': None}

and therefore the correct flag to use is exclude_unset=True.

We'll split this issue into multiple parts, to make it easier to integrate other changes for this repo.
PR #303 (to be merged asap) takes care of

Replace all pathlib.Path task arguments with str arguments, and update tests accordingly (tests are a bit cumbersome sometimes, in going back and forth between paths and strings, but the important point is that they do call the task functions with string arguments and then would fail if the task is not properly handling the argument).
In all TaskArgument models (the one that are then passed to the run_fractal_task function), remove defaults and mark optional arguments as Optional. Then, when actually calling the task function, use **args.dict(exclude_none=True) as arguments (instead of the current **args.dict()).
Due to previous point, do not check the mismatch between type hints in the function call signature and in the pydantic arguments model.

Related to

When we currently rely on an input_path structure like /some/path/*.ext, refactor the task call signature and introduce two separate arguments (/some/path and *.ext). This will (as part of a different issue) pave the way for more complex glob patterns (e.g. "I only need images from a given Z plane").

and

Related to the previous point: also add the glob_pattern to the metadata dict, so that downstream tasks can use it.

How should we call these two new arguments?
In #323 I'm provisionally using image_extension and image_glob_pattern (with the latter being only a placeholder in view of #301), but I'm open to better names.

Out of scope for this issue (and for PR #323):

#324, since it requires more thoughts.
https://github.com/fractal-analytics-platform/fractal-demos/issues/29


Add failing tests for apparent batch reordering bug

#14336
Check List

[ ] Functionality includes testing.
[ ] API changes companion pull request created, if applicable.
[ ] Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@andrross, to ensure the bug fix is covered by this test, I added it in the fix PR https://github.com/opensearch-project/OpenSearch/pull/14341, please take a look, thanks for adding the test and finding the bug.

Closing as a PR with a fix has already been published.


Problem with the upload to imgur action

Workflow version
2024.3
Alfred version
5.5
macOS version
14.4
Debugger output
[16:56:13.327] Screenshots[Keyword] Processing complete
[16:56:13.335] Screenshots[Keyword] Passing output '' to Arg and Vars
[16:56:13.336] Screenshots[Arg and Vars] Processing complete
[16:56:13.337] Screenshots[Arg and Vars] Passing output '' to Automation Task
[16:56:13.338] Screenshots[Automation Task] Running task 'Interactive Screenshot' with no arguments
[16:56:18.692] Screenshots[Automation Task] Processing complete
[16:56:18.698] Screenshots[Automation Task] Passing output '/Users/lucas/Desktop/Screenshot 2024-04-17 at 16.56.13.png' to Arg and Vars
[16:56:18.700] Screenshots[Arg and Vars] Processing complete
[16:56:18.701] Screenshots[Arg and Vars] Passing output '/Users/lucas/Desktop/Screenshot 2024-04-17 at 16.56.13.png' to Run Shortcut
[16:56:18.702] Screenshots[Arg and Vars] Passing output '/Users/lucas/Desktop/Screenshot 2024-04-17 at 16.56.13.png' to Automation Task
[16:56:18.702] Screenshots[Automation Task] Running task 'Is Shortcut Installed?' with arguments (
    "Upload to Imgur"
)
[16:56:18.915] Screenshots[Automation Task] Processing complete
[16:56:18.923] Screenshots[Automation Task] Passing output 'true' to Conditional
[16:56:20.100] ERROR: Screenshots[Run Shortcut] /Users/lucas/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/SOSA/sosa.b65be9abd6bbc8a3ab128a2976b4a0cb662d774fb59a01d1f9a19f194a3975ed:159:209: execution error: Shortcuts Events obteve um erro: Os dados não puderam ser lidos porque não estão no formato correto. (-1753)

More details
It appears to be a problem with the format of the image sent to the imgur action, but I can't figure out what precisely…

The upload happens via a macOS shortcut, which is currently broken. I’ve reported the issue to Apple.

@ldebritto Try this version which uses a different method for the Imgur upload. But it does mean you’ll need to get your own Client ID. Instructions are in the workflow itself.

Working great! Many thanks!


chore(ui-ux): renamed usd to usdt on portfolio screen

What kind of PR is this?:

/kind chore
What this PR does / why we need it:
Which issue(s) does this PR fixes?:

Fixes #
Additional comments?:
Developer Checklist:

[ ] Read your code changes at least once
[ ] Tested on iOS/Android device (e.g, No crashes, library supported etc.)
[ ] No console errors on web
[ ] Tested on Light mode and Dark mode*
[ ] Your UI implementation visually matched the rendered design*
[ ] Unit tests*
[ ] Added e2e tests*
[ ] Added translations*

Can you help to update the USD label in auction screens too?
Because

@kyleleow there are multiple places where we are using USD as a label, like Loan token screen, Auction screen, confirm edit collateral screen etc. Do you ant to change there too ?

@fullstackninja864 only for screens that is using dex prices, so we shouldn't change any screen within loan


Piston errors out all over the place.

Let's double check. At least on two endpoints:

per_page not given and too many results
leg detail for COL000049. Unknown cause.

cc/ @mileswwatkins

look into https://github.com/sunlightlabs/billy/pull/247

@rshorey nailed this guy with the changeset just sent in


Configured helPR does not work

Hi,
I have installed helPR on the repository https://github.com/infection/infection, added config.yml with custom labels, but it does not work.
Example of issue and PR that Fixes it:

https://github.com/infection/infection/issues/477
https://github.com/infection/infection/pull/478

Proof that application is installed: https://monosnap.com/file/mTnYGmSDletgubfCZ3kutjXarBeLND

Thank you

Were these created by you before you insalled helPR?

yes. Is it a root of the issue? Didn't find anything about it in the docs

I am not sure.  I know its been more than a year, but was this solved? Cleaning up the issues :)

Well, sometimes it works, sometimes not. Let's close for now, thanks.

Couldn't find the root cause the last time I investigated this. If you are able to be sure to drop a comment here and I will look into it! :smile:


Allow alias with nested function

With #388, when using function nest. Inner alias is ignored.
I don't know that this behavior is intended.
Allowing alias with nested function (inner) can be useful
(Maybe custom function?.. umm.. i'm not sure 😕, Plz see #388)
And add test to test this feature.
Fixed: #388

Coverage increased (+0.002%) to 97.744% when pulling 0e8029ac739f5d57a9580575caaa3d79a6b2bb58 on lntuition:nested_function_as into cce2435b101870d6b82b2c80bd8a4d96bc6aaf93 on kayak:master.

I'm going to be undoing the changes in this pull request as this has broken quite a few usages. Having the argument fields of a function display their alias should probably configured in a different way. Maybe a keyword argument for the outer function?


Fix Tests for Python 3.6

Python 3.6 is no longer supported on latest ubuntu, causing the CI to fail.
This PR changes the CI setup so that:

Python 3.6 is run on latest ubuntu supported (20.04)
All other tests run on latest ubuntu

For more details: https://github.com/actions/setup-python/issues/544

adding


Hooks do not work in Headless JS

Description
I tried to reuse code from our App in a Headless JS implementation. The code in the app uses Hooks like useState and everything works fine. However when i run parts of the app code in a Headless JS task, i get an error like this:
2021-01-07 20:38:52.130 12444-12569/xxxxxxxx E/ReactNativeJS: { [Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
    1. You might have mismatching versions of React and the renderer (such as React DOM)
    2. You might be breaking the Rules of Hooks
    3. You might have more than one copy of React in the same app
    See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.]
      line: 5774,
      column: 24,
      sourceURL: 'http://localhost:8081/index.bundle?platform=android&dev=true&minify=false' }

React Native version:`
> react-native info

info Fetching system and libraries information...
System:
    OS: Windows 10 10.0.18363
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
    Memory: 15.74 GB / 31.71 GB
  Binaries:
    Node: 12.14.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 6.13.4 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
  SDKs:
    Android SDK: Not Found
    Windows SDK: Not Found
  IDEs:
    Android Studio: Version  <IP_ADDRESS> AI-201.87<IP_ADDRESS>53283
    Visual Studio: Not Found
  Languages:
    Java: 15.0.1
    Python: Not Found
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1
    react-native: ^0.63.2 => 0.63.2
    react-native-windows: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps To Reproduce
index.ts:
import { AppRegistry } from 'react-native';
import App from './src/App';
import VerySimpleApp from './src/domain/MainPage/headless';

AppRegistry.registerComponent('App', () => App);
AppRegistry.registerHeadlessTask('HeadlessService', () => VerySimpleApp); // headless service for android

headless.ts:
async function VerySimpleApp() {
  console.log('Headless JS started');
  const [count, setCount] = useState(0);

  console.log('Count: ' + count);

  setCount(count + 1);

  console.log('Count: ' + count);
}

When i do not use useState everything works fine. Then the task runs and i get all tge logging and no errors.
Expected Results
Hooks should work in Headless JS like in the app so we can reuse some parts of the logic.
Snack, code example, screenshot, or link to a repository:
See steps to reproduce
There are also other people, that ran into this problem:
https://stackoverflow.com/questions/57708197/how-to-use-hooks-in-headless-js-function-with-react-native-firebase

Please look into https://reactnative.dev/docs/headless-js-android, and you'll see that Headless JS is Android Service thus you cannot run UI code or React.

Please look into https://reactnative.dev/docs/headless-js-android, and you'll see that Headless JS is Android Service thus you cannot run UI code or React.

Hi @dulmandakh
thanks for your answer. This is a bit unexpected, as hooks can also used without UI elements. I was not aware, that hooks itself also count as UI, thats why i opened the issue.
Thanks for clarification.
BR
Samuel

Hi @dulmandakh
thanks for your answer. This is a bit unexpected, as hooks can also used without UI elements. I was not aware, that hooks itself also count as UI, thats why i opened the issue.
Thanks for clarification.
BR
Samuel


Named maps errors should adhere to error specification

Some responses are not adhering to the errors specification when they should.
https://iriberri.cartodb.com/api/v1/map/named/world_borders_priv3/jsonp?callback=cb
Returns
cb({"error":"Error: Postgis Plugin: ERROR:  column \"usa\" does not exist\nLINE 1: ...FROM (select * from world_borders_10 WHERE name = USA) as cd...\n                                                             ^\n\nin executeQuery Full sql was: 'SELECT * FROM (select * from world_borders_10 WHERE name = USA) as cdbq LIMIT 0'\n  encountered during parsing of layer 'layer0' in Layer"});

It should return
cb({"errors":["Error: Postgis Plugin: ERROR:  column \"usa\" does not exist\nLINE 1: ...FROM (select * from world_borders_10 WHERE name = USA) as cd...\n                                                             ^\n\nin executeQuery Full sql was: 'SELECT * FROM (select * from world_borders_10 WHERE name = USA) as cdbq LIMIT 0'\n  encountered during parsing of layer 'layer0' in Layer"]});

cc @alonsogarciapablo


No quick search on mobile (IOS)

for an user who uses the site on the desktop and mobile it can be confusing. For example, if you are used to search by tag, if on IOS you open menu>search the first field the tag search is disabled, I guess because below it is the sag search.
On the desktop the user would have no need to go to the search menu because quick search finds everything, tags included.
Cheers.

You do have a point here.


Bump Kani version to 0.51.0

For reference, here is the auto-generated changelog
What's Changed

Upgrade toolchain to 2024-04-18 and improve toolchain workflow by @celinval in https://github.com/model-checking/kani/pull/3149
Automatic toolchain upgrade to nightly-2024-04-19 by @github-actions in https://github.com/model-checking/kani/pull/3150
Stabilize cover statement and update contracts RFC by @celinval in https://github.com/model-checking/kani/pull/3091
Automatic toolchain upgrade to nightly-2024-04-20 by @github-actions in https://github.com/model-checking/kani/pull/3154
Bump tests/perf/s2n-quic from 2d5e891 to 5f88e54 by @dependabot in https://github.com/model-checking/kani/pull/3140
Automatic cargo update to 2024-04-22 by @github-actions in https://github.com/model-checking/kani/pull/3157
Automatic toolchain upgrade to nightly-2024-04-21 by @github-actions in https://github.com/model-checking/kani/pull/3158
Bump tests/perf/s2n-quic from 5f88e54 to 9730578 by @dependabot in https://github.com/model-checking/kani/pull/3159
Fix cargo audit error by @jaisnan in https://github.com/model-checking/kani/pull/3160
Fix cbmc-update CI job by @tautschnig in https://github.com/model-checking/kani/pull/3156
Automatic cargo update to 2024-04-29 by @github-actions in https://github.com/model-checking/kani/pull/3165
Bump tests/perf/s2n-quic from 9730578 to 1436af7 by @dependabot in https://github.com/model-checking/kani/pull/3166
Do not assume that ZST-typed symbols refer to unique objects by @tautschnig in https://github.com/model-checking/kani/pull/3134
Fix copyright check for expected tests by @adpaco-aws in https://github.com/model-checking/kani/pull/3170
Remove kani::Arbitrary from the modifies contract instrumentation by @feliperodri in https://github.com/model-checking/kani/pull/3169
Automatic cargo update to 2024-05-06 by @github-actions in https://github.com/model-checking/kani/pull/3172
Bump tests/perf/s2n-quic from 1436af7 to 6dd41e0 by @dependabot in https://github.com/model-checking/kani/pull/3174
Avoid unnecessary uses of Location::none() by @tautschnig in https://github.com/model-checking/kani/pull/3173

Full Changelog: https://github.com/model-checking/kani/compare/kani-0.50.0...kani-0.51.0
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

For the record, solver runtime for
s2n-quic/quic/s2n-quic-core/inet::checksum::tests::differential has regressed from 97s -> 	173s (+79.085%). I'm merging.


No object named found in 'arch' registry/ ModuleNotFoundError: No module named for any new arch.py but arch.py file exists

I am trying to add a new model, rfanet.
So I now have 2 py

rfanet_arch.py (under archs folder with @ARCH_REGISTRY.register() )
rfanet_model.py (under model folder with @MODEL_REGISTRY.register() )

Env
Python 3.8.10 x64
Ubuntu 20.04.3 LTS (GNU/Linux 5.11.0-44-generic x86_64)
Original Problem

"No object named 'RFANet' found in 'arch' registry!" encountered during Train of my config

Derivative Problem
find that importlib.import_module("basicsr.archs.rfanet_arch") in init.py with following error

ModuleNotFoundError: No module named 'basicsr.archs.rfanet_arch"
but the rfanet_arch.py file exist as mentioned

Experiments
--> All old arch files can be imported
--> Any new arch file caused No module named Error even though I copy and rename old arch files

Ok i find that the basicsr will use sitepackage first (you install pip basic sr)
So just easily remove site package basicsr
then it will use basicsr under BasicSR


Change this repository to public

We were public at first, but in 2016 we started working in this private fork.
Things we must do first:

Upgrade Django to a secure version (#49).
Update README (#177).

Things that would be nice to do first:

Documentation: Have a summary page of all third-party software used in this project, and limit usage of exact version numbers in explanations (#175). Might not sound like much, but I think it's an important step for maintaining somewhat-professional docs.

Then, to announce ourselves as truly open source, we link to this repository from somewhere on the CoralNet website. Possibly in About.
In my opinion at least, while having system details like nginx in this repository isn't super ideal, I feel it's more of a professionalism / separation of concerns issue rather than a security issue that would stop us from open sourcing.
An alternative is to split CoralNet into a website frontend repository and an API repository, and open source only the API, which presumably wouldn't have quite as many system details. The effort needed makes this a ways off though, in Beta 4 territory at least.

Done. CoralNet is public!

Wow!!!
On Sat, Dec 7, 2019 at 6:27 PM Oscar Beijbom<EMAIL_ADDRESS>wrote:

Done. CoralNet is public!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/beijbom/coralnet/issues/176?email_source=notifications&email_token=ABKA5AJEXHGDAZ77TCHA5SDQXQWO7A5CNFSM4FEEG722YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGGRXZY#issuecomment-562895847,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABKA5AMRPKYQZMRF3BITVVDQXQWO7ANCNFSM4FEEG72Q
.

--
Sent from Gmail Mobile


Implement English stopword list

Enable English stop words along with the change for #164

Done, common English terms like "an" or "the" are now ignored.


use merge option to speed up apkindex generation when build

I'm new to melange codebase so bear with me here :)
This PR will help to speed up apkindex generation when we build a new package by merging apkindex if exists.
Fixes: #279 (hopefully :)))
Signed-off-by: Tuan Anh Tran<EMAIL_ADDRESS>

@kaniini can you take a look at this?
Cc @rawlingsj

on a second note, i think this may break local developmetn setup where we gutils sync the packages from gcs & mix our new package there. in that case, writing only new pkg to the apkindex may cause bad signature??


ROX-18759: Add GetMyReportHistory endpoint

Description

Added GetMyReportHistory endpoint
To prevent schema changes to other database tables due to new search option, applied ignore_labels tag on proto

ignore_labels can be applied only to fields of nested objects (message). Applying the tag to a field whose type is not message has no effect.
If ignore_labels was not applied previously, applying it does change the schema if the nested objects previously had any fields with search tag.
If ignore_labels is applied to a new field with a search tag, the column generation for that field can be skipped by adding the tag.

Fixed a minor bug with postgres walker because of which gen was not adhering to ignore_labels.

Checklist

[ ] Investigated and inspected CI test results
[X] Unit test and regression tests added
~Evaluated and added CHANGELOG entry if required~
~Determined and documented upgrade steps~
~Documented user facing changes~

If any of these don't apply, please comment below.
Testing Performed
Unit

Tagging @sachaudh  for notification.


pub/sub mechanism gets stuck

Hi,
I am using the pub/sub mechanism of dask and I can see that it often gets stuck right after being created. I have found that the order in which processes communicate with each other is important. At the moment I am using a hack with publishing Nones from the child processes however I find this solution unsatisfactory because I still can see the communication getting stuck. My library versions are:
dask==1.1.5
dask-jobqueue==0.4.1
distributed==1.26.1
tornado==5.1

Here are the two minimal examples. The first one always works for me, the second one gets stuck ~50% of the time. The only difference between them is the swapped lines 18-19 and 21-22.
The script that always works for me:
from dask.distributed import Client, LocalCluster, Pub, Sub

def create_proc(proc_idx):
    pub_out = Pub('counters')
    sub_in = Sub('proc{}_input'.format(int(proc_idx)))
    pub_out.put((0, proc_idx))
    for i, none_input in enumerate(sub_in):
        pub_out.put((i, proc_idx))

def main():
    num_processes = 2
    cluster = LocalCluster(n_workers=num_processes)
    client = Client(cluster)
    pub_out = [Pub('proc{}_input'.format(env_idx)) for env_idx in range(num_processes)]
    futures = client.map(create_proc, range(num_processes))
    sub_in = Sub('counters')

    for _ in range(num_processes):
        proc_counter, proc_idx = sub_in.get()

    for env_idx in range(num_processes):
        pub_out[env_idx].put(None)

    print('Main thread is waiting for the observations from envs')
    try:
        proc_counter, proc_idx = sub_in.get(timeout=5)
        print('Successfully executed the script')
    except Exception:
        print('TimeoutError')

if __name__ == '__main__':
    main()

The script that works ~50% of the time:
from dask.distributed import Client, LocalCluster, Pub, Sub

def create_proc(proc_idx):
    pub_out = Pub('counters')
    sub_in = Sub('proc{}_input'.format(int(proc_idx)))
    pub_out.put((0, proc_idx))
    for i, none_input in enumerate(sub_in):
        pub_out.put((i, proc_idx))

def main():
    num_processes = 2
    cluster = LocalCluster(n_workers=num_processes)
    client = Client(cluster)
    pub_out = [Pub('proc{}_input'.format(env_idx)) for env_idx in range(num_processes)]
    futures = client.map(create_proc, range(num_processes))
    sub_in = Sub('counters')

    for env_idx in range(num_processes):
        pub_out[env_idx].put(None)

    for _ in range(num_processes):
        proc_counter, proc_idx = sub_in.get()

    print('Main thread is waiting for the observations from envs')
    try:
        proc_counter, proc_idx = sub_in.get(timeout=5)
        print('Successfully executed the script')
    except Exception:
        print('TimeoutError')

if __name__ == '__main__':
    main()

Thank you for your help!

Dask's PubSub unfortunately doesn't hold onto a history of recent messages, so if a Sub joins a topic after a Pub has already put something, the Sub won't get that message.
Some improvements that could help here:

A backlog of recent messages kept somewhere (I don't know where this would be though)
Some sort of coordination primitive like a shared semaphore or event
The ability on pub/subs to wait until a specified number of peers have arrived (wouldn't be hard)

@alexpashevich hopefully @mrocklin's comment about adding a sleep after you map your tasks works as a fix for the time being. Do you have an interest in working on any of the proposed improvements?


Turn off color via PY_COLORS=0

Please support a more standard way to turn off colors. It is tedious to turn off color for every tool separately, especially since with PY_COLORS there exists a general way for the Python ecosystem.
Even better would be to respect NO_COLOR=1, which IMHO is the closest thing to a general standard. General support for this would avoid playing whack-a-mole with every new tool that comes along.
Also, there are many valid reasons not to want colors on the command line, so calling the environment variable PIPENV_COLORBLIND is in rather bad taste.

I think this is a very good issue to work on. I also added this feature in the past to pip :-).
https://github.com/pypa/pip/pull/4739
This will take quite some time to implement this here. Been talking with @ma about removing all the usage of crayons  and only using click.echo. If click.echo has a global way to disable color that would be easy!

In PIPENV the place for this would be:
https://github.com/pypa/pipenv/blob/891486e18040e4fb3ff0eaedd85349a78e214915/pipenv/environments.py#L101

https://github.com/tartley/colorama/issues/268

I agree with a comment someone left somewhere else recently that the name PIPENV_COLORBLIND is in bad taste.   It looks like colorama will maybe one day soon support a NO_COLOR environment variable ... that is what click uses, but only for Windows I think.

There is another way to disable colors in pipenv which we inherit from vistir.termcolors:
DISABLE_COLORS = os.getenv("CI", False) or os.getenv(
"ANSI_COLORS_DISABLED", os.getenv("VISTIR_DISABLE_COLORS", False)
)


New version: Google.Chrome.Canary version 132.0.6803.1

Created by 🥟 Dumplings in workflow run #9138.

Log
Updated: 132.0.6803.0 → 132.0.6803.1
Submitting WinGet manifests
Creating manifests
Uploading manifests and making commits
Creating a pull request

Microsoft Reviewers: Open in CodeFlow

@wingetbot run


Parallel downloads

Describe your suggested feature
I can't access internet all the time and read offline, so I download everything I might like to read and it takes a lot of time because mihon is downloading each chapter one by one and parallel downloads can solve this problem.
P.S. Unfortunately I don't know Kotlin language, otherwise I would implement it myself and make a pull request. And sorry for my English...
Other details
I think this feature should be turned off by default.
Maximum parallel downloads should be configurable and be equal to 5 by default.
Acknowledgements

[x] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] I have updated the app to version 0.17.0.
[X] I will fill out all of the requested information in this form.

Mihon downloads 3 images from 5 source at a time (that's 15 images). Keep your eggs in different basket.


MWPW-159255: dummy

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 83.58%. Comparing base (9f5d9d9) to head (3affb79).

Additional details and impacted files
@@           Coverage Diff           @@
##            stage      #77   +/-   ##
=======================================
  Coverage   83.57%   83.58%
=======================================
  Files          10       10
  Lines        3179     3180    +1
=======================================
+ Hits         2657     2658    +1
  Misses        522      522

Flag
Coverage Δ

83.58% <100.00%> (+<0.01%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

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


updating permissions from another project

We need to verify that one who updates his project by selecting an other project
doesn't get into a none defined state.
I'd seen that one had to cycle login to have the same state than me.
At the moment the permission become shared I got the project in my list and could do changes. The one who shared did not see my updates. Only after a relogin for the other one that was solved

can't reproduce this.

likly there was a network connection issue


mwprocapture: 1.2.4054 -> 1.2.4177

Motivation for this change
Version bump provides compatibility with Linux kernels in the 5.x series.
20.03 should have this also (see #91075), package is broken right now.
Things done
Tested driver and utilities with Pro Capture HDMI hardware.

Built on platform(s)

[X] NixOS

[X] Tested execution of all binary files (usually in ./result/bin/)

[X] Fits CONTRIBUTING.md.

@MP2E, is this one for master also OK? Same thing as approved #91075. Thanks.

Yep, thanks again!


Validate Structurally Equal Record Types as Different Types in GraphQL Input Objects

Description:
Consider the following GraphQL service:
type AddressI record {
    int number;
    string street;
    string city;
};

type AddressO record {
    int number;
    string street;
    string city;
};

type Person record {
    string name;
    int age;
    AddressO address;
};

service on new graphql:Listener(9000) {
    resource function get name(AddressI address) returns Person {
        return {
            name: "Walter",
            age: 51,
            address: {
                number: 308,
                street: "Negra Arroyo Lane",
                city: "Albequerqy"
            }
        };
    }
}

Since AddressI and AddressO are defined separatetly, this should be a valid service. It needs to differentiate the AddressI in the function input parameter and the AddressO in the function return type Person at the compile plugging. Currently we can not validate this due to absence of distinct type for ballerina records.

Closing as this is no further valid

Re-opening this as this issue still occurrs.

Maybe we can do this if the lang supports distinct record types.


URL shortner solutions - Connectionless Credentials.

Hello.
Question: Is there a solution to shorten the URL for connectionless credentials with the requests~attach property?
It's too long to be converted into a QR code.
If not, how can I approach this situation to convert the connectionless invitation to a QR code? (Ideas needed)
I considered URL shortening solutions for this, but unfortunately, that would not satisfy every other user scanning the QR code with a different wallet.
Note: Normal connection URL fits into the QR code since it has only the basic necessary properties for connection.
Sorry, if it's a dumb question, but I'm kind of stuck on it.

Maybe not all wallets support url shortening, but they should. It's part of the RFCs and useful for specifically the issue you're now running into

Right, thanks @TimoGlastra


🚀 Feature request: Dark mode toggle button and its functionality

Is your feature request related to a problem? Please describe.
Its not a feature based on a problem . I want to contribute to this project with dark mode toggle button and its functionality
Describe the solution you'd like
I would like to add and toggle icon to switch between light mode and dark mode
Additional Request

please label this issue in hacktoberfest-accepted and gssoc

@abhishekpanthee , I have assigned this task to you. It is labeled for Hacktoberfest, and your pull request will be marked as 'hacktoberfest-accepted.'
Please note that to enable dark mode on the website, we are using ShadCN UI, so you can configure it accordingly


FIX: Chat memory is not cleared when opening new project #413

related to : Chat memory is not cleared when opening new project #413
Modification of FileListManager so each VirtualFiles and File observers are segregated by project in a Hashmap data structure with project.getLocationHash() as Map, consequently "project" become a argument for each calls
Previously ChatMessageContextUtil was calling a getFiles method on FileLIstManager at:
List<VirtualFile> files = FileListManager.getInstance().getFiles(); grabbing indistinctively files belonging to the collection of files in FileListManager (Lists)
Now FileListManager is handling files and observers to these files in a hashmap.
In term of test (reproducing @mydeveloperplanet use case):

Add a file to the prompt context (errorHandler.java)
ask a question 'tell me something about this file' (running /explain)
The response explains the file

Then

open a new project (in a new IntelliJ window)
ask a question 'tell me something about this file' (give me opitmizations on ErrorHandler class)
The response is about the file added in step 1 (from another project) --> the response in the screenshot show the LLM has not be informed of any file named ErrorHandler in the chat context

Great work, thanks!


[Bug]: destroy.sh doesn't run cleanly

Welcome to AWS Blueprints for Crossplane!

[X] Yes, I've searched similar issues on GitHub and didn't find any.

AWS Blueprints for Crossplane Release version
v0.1.0
What is your environment, configuration and the example used?
https://github.com/awslabs/crossplane-on-eks/tree/main/bootstrap/terraform
What did you do and What did you see instead?
Running destroy.sh to cleanup and running into this.
╷
│ Error: deleting EC2 Subnet (subnet-0d0c1d9a1782ecc16): DependencyViolation: The subnet 'subnet-0d0c1d9a1782ecc16' has dependencies and cannot be deleted.
│       status code: 400, request id: 15d530b6-9c74-43b5-928f-7854b6defd37
│
│
╵
╷
│ Error: deleting EC2 Subnet (subnet-0513e2114646f177b): DependencyViolation: The subnet 'subnet-0513e2114646f177b' has dependencies and cannot be deleted.
│       status code: 400, request id: 436038fd-1dc8-4927-89d9-ecdfe017dd25
│
│
╵
╷
│ Error: deleting EC2 Subnet (subnet-0e349deeef2ad5678): DependencyViolation: The subnet 'subnet-0e349deeef2ad5678' has dependencies and cannot be deleted.
│       status code: 400, request id: 1b9038f6-6f50-495f-bfea-9ec2fdb57c64
│
│
╵

This happening due to NLBs not getting cleaned up prior to VPC destroy.
Additional Information
No response

@candonov I think we can close this.

@candonov I think we can close this.

@edgarsilva948 Did you do anything to fix it or did it self resolve?

the VPC deletion may fail because of the issue that I've documented here in the FAQ.


[MINOR][ZEPPELIN-2154] Enable work in the web dev mode if changing default server port

What is this PR for?
If user change zeppelin.server.port variable in zeppelin-site.xml, zeppelin doesn't work in web development.
In order for user to run zeppelin correctly, so that user can add SERVER_PORT as an environment variable when running web application development mode.
What type of PR is it?
[Bug Fix | Improvement | Documentation]
What is the Jira issue?

ZEPPELIN-2154

How should this be tested?

Change zeppelin.server.port from 8080 to 8888 (or another port) in zeppelin-site.xml
Run zeppelin (bin/zeppelin-daemon.sh start)
Run web development mode under zeppelin-web folder such like SERVER_PORT=8888 yarn run dev
Connect localhost:9000

Screenshots (if appropriate)
[Before]

[After]

Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? Yes, added in README.md

Tested and works as expected.

Thanks for review @1ambda :+1:

LGTM

@soralee Thanks for the improvement. Also tested and it works well. Maybe this part needs to be updated accordingly after this PR merged :)
Will merge into master and branch-0.7 if there are no more comments.

@khalidhuseynov @AhyoungRyu Thanks for review!
And let me update the document after  being merged this PR.

@soralee I just merged this into master but automatically couldn't into branch-0.7. Can you create a separate PR for branch-0.7?

@AhyoungRyu Sure, Thanks!


New function: $suppressConsoleErrors

Type

[x] Functions: $suppressConsoleErrors

Description
This function would do is eliminate any type of error message that starts displaying in the console. Like $suppressErrors but instead of in discord, from the project.

I guess you can solve it like this;
$let[falsis;$error] //I don't think it will throw the error if you don't put $get[falsis].

I haven't tried this but I guess it will work.

Oh I'll try thanks

closed due to inactivity


Automatically resolve .best property

hello 👋 !
This removes the exception SpeedtestMissingBestServer, and makes the .best property automatically call .get_best_server().
This changes a download test to:
import speedtest
tester = speedtest.Speedtest()
# tester.get_best_server()  # No longer needed
tester.download()

I think this is sensible as I can't see a time that when accessing .best, the desired outcome wouldn't be to just get the best server. If the exception is encountered, the only step for a user to take is to do a .get_best_server(), so might as well do that automatically.

I've rebased off master so the builds for 2.6 and 3.3 can pass.

hi @sivel, did you get chance to review this since my last commit?


Improve unit tests

This PR adds the ability to run JUnit 5 tests in a ModLauncher context where Sponge and a DedicatedServer is initialized (but not ticking). This is done using modlauncher-injector-junit the successor of LaunchWrapperTestSuite.
Some of the launch logic is shared between SpongeVanilla and Sponge.test so I moved a few parts (as few as possible) of SpongeVanilla.applaunch and SpongeVanilla.launch into Sponge to avoid duplicating the code.
The only issues identified so far with this setup are:

JaCoCo ignores classes loaded by ModLauncher, so the measured coverage is much lower than expected. I will try to fix that ASAP.
@ParameterizedTest cannot be executed in a ModLauncher context. However @TestFactory is a wonderful alternative and is working perfectly.
All unit tests are running in the same ModLauncher context. Any value registered into Sponge by a test should be unregistered after the test so it doesn't interfere with other tests. In the future, using a custom class loader might be a solution to create multiple isolated ModLauncher instances. It's not planned at the moment, because we don't need it.

I have updated almost all tests in the invalid/ directory.
The only test that I have not updated is the TileEntityRegistrationTest. I don't know how to update it and I'm not sure the test is relevant anymore.
Some tests are failing and need fixes but this it out of the scope of this PR, so these tests are currently @Disabled. Anyone willing to fix the implementation to make pass these tests is welcome.

I'd like to keep the modlauncher workings outside of SpongeCommon -- maybe stick them into a separate subproject that's a testImplementation dep of common and the appropriate configurations in SV

Would a new sourceset in SpongeCommon be enough or do you really want a subproject?
Also, another approach would be to put the code back in SpongeVanilla and then import the applaunch and launch sourcesets into Sponge.test.
However, I don't know if Gradle would allow me to do this.

Jacoco is instrumenting classes at runtime which is conflicting with Mixin. The consequence is that classes loaded by Modlauncher are ignored by Jacoco, resulting in a coverage way below the reality.
I have managed to fix this by using Jacoco offline instrumentation which is not supported by the official gradle plugin. While it is possible to have a workaround in SpongeCommon kts, I have preferred to implement this in a plugin, so that it can be used in the future by SpongeVanilla, SpongeForge and hybrid plugins as well. I wrote a PR for gradle https://github.com/gradle/gradle/pull/23656 so that it can officially supports offline instrumentation. It's a fairly requested feature, so I hope it finds its way. In the mean time (and forever if it doesn't get merged), I will try to a publish the fork as a standalone plugin.


kibana search guard menus disabled except signal menu

Hello,
  I have all kibana search guard menus disabled, except signals menu. Any Idea please ?

thx

This was supposed to have been fixed by #498, but maybe some extra permissions are required in more recent versions. Let me check.

This was supposed to have been fixed by #498, but maybe some extra permissions are required in more recent versions. Let me check.

@ismailazerty I pushed a fix via the pull request above ☝  I will merge it in a few minutes, as soon as the tests pass.
Thanks for reporting!

@ismailazerty I pushed a fix via the pull request above ☝  I will merge it in a few minutes, as soon as the tests pass.
Thanks for reporting!

@ismailazerty I pushed a fix via the pull request above ☝ I will merge it in a few minutes, as soon as the tests pass.
Thanks for reporting!

great thank you

@ismailazerty I pushed a fix via the pull request above ☝ I will merge it in a few minutes, as soon as the tests pass.
Thanks for reporting!

great thank you

@ismailazerty I pushed a fix via the pull request above ☝ I will merge it in a few minutes, as soon as the tests pass.
Thanks for reporting!

I still can't access the config menu, is it related to search guard license ?

@ismailazerty I pushed a fix via the pull request above ☝ I will merge it in a few minutes, as soon as the tests pass.
Thanks for reporting!

I still can't access the config menu, is it related to search guard license ?

No, the trial license gives you access to all features.
Try running docker-compose up --build in order to ensure the newest version of the config files is included into the local Elasticsearch image, then run init_sg.sh one more time to update the config index, then you should be good to go.

No, the trial license gives you access to all features.
Try running docker-compose up --build in order to ensure the newest version of the config files is included into the local Elasticsearch image, then run init_sg.sh one more time to update the config index, then you should be good to go.

Already done all those steps.
Because the Trial version is limited in time, I dont want to use it.  Is it working with basic version ?

Already done all those steps.
Because the Trial version is limited in time, I dont want to use it.  Is it working with basic version ?

Oh I didn't get that. No, unfortunately the GUI is a paid feature: https://search-guard.com/licensing/
Under Feature Breakdown:
REST management API
Configuration GUI

With that being said, the menus were disabled even with a valid (trial) license, so I'm glad you raised my attention .

Oh I didn't get that. No, unfortunately the GUI is a paid feature: https://search-guard.com/licensing/
Under Feature Breakdown:
REST management API
Configuration GUI

With that being said, the menus were disabled even with a valid (trial) license, so I'm glad you raised my attention .


[MacOS / Linux] WebKit doesn’t set Secure cookies on localhost

Describe the bug
Thank you for the amazing work, progress and transparency with the community.
I’m going through a challenge with WebKit. I’ll try to be a brief as possible.
My app is based on Nuxt, using Nuxt Auth with HTTPOnly and Secure Cookie, Axios, and connects to the backend through Axios proxy and withcredentials.
I found out that my app was not login in on Safari/Tauri. After taking a look when it comes to setting Secure cookies locally, not all browsers behave in the same way. For example, Safari doesn’t set Secure cookies on localhost, but Firefox and Chrome do.
To test, I generated a local SSL Certificate and it works on Safari and Tauri Dev but not on Tauri Build.
Set-Cookie: XSRF-TOKEN=eyJ0eXAiOiJK; expires=Fri, 08 Oct 2021 18:47:22 GMT; HttpOnly; Max-Age=2592000; Path=/; SameSite=Lax; Secure
References
https://web.dev/when-to-use-local-https/
Update
The same behavior is happening in the Linux environment.

If I'm reading that right, the Linux version could be fixed here with https://localhost: https://github.com/tauri-apps/wry/blob/3a6eefae66c41da0f09293911675cb3c094e58b5/src/webview/webkitgtk/mod.rs#L212
And the macOS version would be here: https://github.com/tauri-apps/wry/blob/3a6eefae66c41da0f09293911675cb3c094e58b5/src/webview/wkwebview/mod.rs#L404

/upstream tauri-apps/wry

I've post it on #2490 but I'll post it here again in hoping for more feedbacks.
I've been searching possible ways to do it on Linux and macOS, but it seems a dead end.
Custom URL scheme on wkwebview just can't handle cookies properly.
There are some workarounds but I'm not sure if they are easier than setting IFrame.
We can provide a method to set the cookie before loading pages/requests. And the implementations could be:

Add the cookie when handling loadRequest like this

WKWebView * webView = [WKWebViewnew];
NSMutableURLRequest * request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"tauri://localhost"]];
[request addValue:@"key=Value" forHTTPHeaderField:@"Cookie"];
[webView loadRequest:request];

Add an initial script to set the cookie like this:

WKUserContentController* userContentController = [WKUserContentControllernew];
WKUserScript * cookieScript = [[WKUserScript alloc] initWithSource: @"document.cookie = 'key=Value';" injectionTime:WKUserScriptInjectionTimeAtDocumentStart forMainFrameOnly:NO];
[userContentController addUserScript:cookieScript];

What do you guys think which is better?

Or we could just load the page @wravery suggested.
But that mean we will need another way to load assets (CSS, js, ...)
Because they are also using custom protocol to load.

hi there
I'm not specialist of cookie so I don't understand the whole discussion
but I'm finding out that my app on macOS can't use cookie, it doesn't work :(
in dev and in production, same result
is it something you say it can't be fixed ? or is it something that you plan to fix on your roadmap ?
thanks for the great job anyway, I just setup my whole webapp in tauri in a couple of hours, and it's working like a charm (except the cookie part)
👏👏

oh, I didn't see [MacOS / Linux] WebKit doesn’t set Secure cookies on localhost

Hiya. Is there any fix in sight for this problem? Or should we pursue other techniques for OSX deployment? Thank you.

Hiya. Is there any fix in sight for this problem? Or should we pursue other techniques for OSX deployment? Thank you.

As you can tell from the upstream issue, this is actively being worked on. If you want to see results faster than that, feel free to contribute!

@JonasKruckenberg – is there an active issue on the Webkit repo for this? Or is this issue specific to the Tauri project?

@jessetuglu These ones probably https://bugs.webkit.org/show_bug.cgi?id=232088 https://bugs.webkit.org/show_bug.cgi?id=218980
No movement at all unfortunately. Not that it would really matter since webkit updates won't be shipped to older macos releases, but still...


vue-router's useRoute is not correctly mocked

Describe the bug
When using vitest-suggested testing libraries, I can't successfully mock useRoute and useRouter from the vue-router package.
I'm using:

jsdom
@testing-library/vue

Any time I run a component test with a mocked useRoute, the mock returns undefined, and Vue warns about missing injections.
...
[Vue warn]: injection "Symbol(route location)" not found.
  at <HelloWorld ref="VTU_COMPONENT" >
  at <VTUROOT>
...
TypeError: Cannot read properties of undefined (reading 'path')
     19|
     20|

     21|     <button type="button" @click="count++">count is {{ count }}</button>
       |                     ^
     22|

     23|       Edit

Reproduction
See a minimal reproduction, using a fresh yarn create vite project here: https://github.com/hidde-jan/vitest-use-route-example/blob/main/src/components/test/HelloWorld.test.ts
System Info
System:
    OS: macOS 12.3.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 76.22 MB / 32.00 GB
    Shell: 3.3.1 - /opt/homebrew/bin/fish
  Binaries:
    Node: 16.14.0 - ~/.nodenv/versions/16.14.0/bin/node
    Yarn: 1.22.15 - ~/.nodenv/versions/16.14.0/bin/yarn
    npm: 8.3.1 - ~/.nodenv/versions/16.14.0/bin/npm
  Browsers:
    Chrome: 104.0.5112.101
    Firefox: 102.0.1
    Safari: 15.4
  npmPackages:
    @vitejs/plugin-vue: ^3.0.3 => 3.0.3
    vite: ^3.0.7 => 3.0.9
    vitest: ^0.22.1 => 0.22.1

### Used Package Manager

yarn

### Validations

- [X] Follow our [Code of Conduct](https://github.com/vitest-dev/vitest/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guidelines](https://github.com/vitest-dev/vitest/blob/main/CONTRIBUTING.md).
- [X] Read the [docs](https://vitest.dev/guide/).
- [X] Check that there isn't [already an issue](https://github.com/vitest-dev/vitest/issues) that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitest-dev/vitest/discussions) or join our [Discord Chat Server](https://chat.vitest.dev).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.

Should be fixed by https://github.com/vitest-dev/vitest/issues/1918 and https://github.com/vitejs/vite/pull/9860
For now, you can manually add node condition to your config:
{
  resolve: {
    conditions: process.env.VITEST ? ['node'] : []
  }
}

Thanks. I can confirm this actually makes the mock work.
Any specific reason why this bug occurs? It has something to do with module resolution?
Verstuurd vanaf mijn iPhone

Op 26 aug. 2022 om 08:59 heeft Vladimir @.***> het volgende geschreven:

Should be fixed by #1918 and vitejs/vite#9860
For now, you can manually add node condition to your config:
{
resolve: {
conditions: process.env.VITEST ? ['node'] : []
}
}
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

Thanks. I can confirm this actually makes the mock work. Any specific reason why this bug occurs? It has something to do with module resolution? Verstuurd vanaf mijn iPhone
…
Op 26 aug. 2022 om 08:59 heeft Vladimir @.***> het volgende geschreven:  Should be fixed by #1918 and vitejs/vite#9860 For now, you can manually add node condition to your config: { resolve: { conditions: process.env.VITEST ? ['node'] : [] } } — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

Yes. Vite uses browser field, if vue router is imported from Vue file. But doesn't use it, if it was imported from .ts filed (or mocked inside .ts file). There is also an open issues in router repo: https://github.com/vuejs/router/issues/1466

For me this workaround doesn't work.
Current Versions:
@vitejs/plugin-vue: 3.1.0
vite: 3.1.3
vitest: 0.23.4

Should be fixed in the next Vitest version. Also requires Vite 3.2.

I'm running vitest 0.24.4 and vite 3.2.2, and yet the mock is not working. Is the issue really solved?

Mocking with fn() gives "Cannot read properties of undefined (reading 'meta')" error when reading "route.meta.breadcrumbs":
vi.mock("vue-router", () => ({    useRoute: vi.fn(() => ({      name: "organisation",      query: { org: "" },      path: "/organisations/100047",      meta: {        breadcrumbs: [          { text: "Home", ref: "/" },          { text: "Search", ref: "/organisation-search" },          { text: "", ref: "/organisations/100047" },        ],      },    })),  }));

Mocking without fn() overrides mock definition in the next test executed:
vi.mock("vue-router", () => ({    useRoute: () => ({      name: "organisation",      query: { org: "" },      path: "/organisations/100047",      meta: {        breadcrumbs: [          { text: "Home", ref: "/" },          { text: "Search", ref: "/organisation-search" },          { text: "", ref: "/organisations/100047" },        ],      },    }),  }));

Should be fixed in the next Vitest version. Also requires Vite 3.2.

I'm running vitest 0.24.4 and vite 3.2.2, and yet the mock is not working. Is the issue really solved?
Mocking with fn() gives "Cannot read properties of undefined (reading 'meta')" error when reading "route.meta.breadcrumbs":
vi.mock("vue-router", () => ({ useRoute: vi.fn(() => ({ name: "organisation", query: { org: "" }, path: "/organisations/100047", meta: { breadcrumbs: [ { text: "Home", ref: "/" }, { text: "Search", ref: "/organisation-search" }, { text: "", ref: "/organisations/100047" }, ], }, })), }));
Mocking without fn() works in first test, but overrides mock definition in the next test executed:
vi.mock("vue-router", () => ({ useRoute: () => ({ name: "organisation", query: { org: "" }, path: "/organisations/100047", meta: { breadcrumbs: [ { text: "Home", ref: "/" }, { text: "Search", ref: "/organisation-search" }, { text: "", ref: "/organisations/100047" }, ], }, }), }));

Yes, it is fixed. If it wasn't, your mocks would never be called.

Yes, it is fixed. If it wasn't, your mocks would never be called. You have error in your test code.

I have tried all sorts of cleaning/restoring functions before and after each test, but they don't do anything. Mock from the first test overrides the mock definition in the next test executed. At this point, we have to put each test in a separated file to make it work, which is very messy. Is it per design that mocking router once in the file, overrides all later router mocks? Any pointers would be very helpful.

I have tried all sorts of cleaning/restoring functions before and after each test, but they don't do anything. Mock from the first test overrides the mock definition in the next test executed. At this point, we have to put each test in a separated file to make it work, which is very messy. Is it per design that mocking router once in the file, overrides all later router mocks? Any pointers would be very helpful.

vi.mock calls are hoisted, it is mention in the documentation. There is a cheat sheet in docs that might be useful: https://vitest.dev/guide/mocking.html#cheat-sheet
The easiest way to mock a route for different tests would be, in my opinion:
import * as routerExports from 'vue-router'
const useRouteMock = vi.spyOn(routerExports, 'useRoute')
useRouteMock.mockReturnValue({ name: 'name1' })
useRouteMock.mockReturnValue({ name: 'name2' })

Or if you like vi.mock so much, you can mark is as a spy in vi.mock:
import { useRoute } from 'vue-router'
vi.mock('vue-router', () => ({ useRoute: vi.fn() }))

vi.mocked(useRoute).mockReturnValue({ name: 'name1' })
vi.mocked(useRoute).mockReturnValue({ name: 'name2' })

I have tried all sorts of cleaning/restoring functions before and after each test, but they don't do anything. Mock from the first test overrides the mock definition in the next test executed. At this point, we have to put each test in a separated file to make it work, which is very messy. Is it per design that mocking router once in the file, overrides all later router mocks? Any pointers would be very helpful.

vi.mock calls are hoisted, it is mention in the documentation. There is a cheat sheet in docs that might be useful: https://vitest.dev/guide/mocking.html#cheat-sheet
The easiest way to mock a route for different tests would be, in my opinion:
import * as routerExports from 'vue-router'
const useRouteMock = vi.spyOn(routerExports, 'useRoute')
useRouteMock.mockReturnValue({ name: 'name1' })
useRouteMock.mockReturnValue({ name: 'name2' })

Or if you like vi.mock so much, you can mark is as a spy in vi.mock:
import { useRoute } from 'vue-router'
vi.mock('vue-router', () => ({ useRoute: vi.fn() }))

vi.mocked(useRoute).mockReturnValue({ name: 'name1' })
vi.mocked(useRoute).mockReturnValue({ name: 'name2' })

Hello again,
I've tried both of your examples, and nothing works.

import * as routerExports from "vue-router";

vi.spyOn(routerExports, "useRoute").mockReturnValue({
      name: "organisation",
      query: { org: "" },
      path: "/organisations/100047",
      meta: {
        breadcrumbs: [
          { text: "Home", ref: "/" },
          { text: "Search", ref: "/organisation-search" },
          { text: "", ref: "/organisations/100047" },
        ],
      },
      matched: [],
      fullPath: "",
      hash: "",
      redirectedFrom: undefined,
      params: {},
    });

This is the error I'm getting:
TypeError: Cannot assign to read only property 'useRoute' of object '[object Module]'
 ❯ src/components/Breadcrumbs/Breadcrumbs.test.ts:31:7
     29|     const wrapper = breadcrumbsFactory();
     30|
     31|     vi.spyOn(routerExports, "useRoute").mockReturnValue({
       |       ^
     32|       name: "organisation",
     33|       query: { org: "" },

[Vue warn]: injection "Symbol(route location)" not found.
  at <Breadcrumbs ref="VTU_COMPONENT" >
  at <VTUROOT>

Please reopen this case, the bug hasn't been fixed.
Still getting:
[Vue warn]: injection "Symbol(route location)" not found.
  at <XenaBreadcrumbs ref="VTU_COMPONENT" >
  at <VTUROOT>
[Vue warn]: Unhandled error during execution of render function
  at <XenaBreadcrumbs ref="VTU_COMPONENT" >
  at <VTUROOT>

TypeError: Cannot read properties of undefined (reading 'meta')
 ❯ ReactiveEffect.fn src/components/Breadcrumbs/XenaBreadcrumbs.vue:17:19
     15|   const route = useRoute();
     16|   console.log(route);
     17|   const br = route.meta.breadcrumbs as JSON;
       |                   ^
     18|
     19|   if (route.name === "organisation") {

import * as routerExports from "vue-router";
const mockedUseRoute = {
      name: "organisation",
      query: { org: "" },
      path: "/organisations/100047",
      meta: {
        breadcrumbs: [
          { text: "Home", ref: "/" },
          { text: "Search", ref: "/organisation-search" },
          { text: "", ref: "/organisations/100047" },
        ],
      },
      matched: [],
      fullPath: "",
      hash: "",
      redirectedFrom: undefined,
      params: {},
    };

    const useRouteMock = vi
      .spyOn(routerExports, "useRoute")
      .mockImplementation(() => mockedUseRoute);

Same issue.

works for me with
 "@vitejs/plugin-vue": "^4.0.0",
        "vite": "^4.0.3",
        "vitest": "^0.28.1"

I have tried all sorts of cleaning/restoring functions before and after each test, but they don't do anything. Mock from the first test overrides the mock definition in the next test executed. At this point, we have to put each test in a separated file to make it work, which is very messy. Is it per design that mocking router once in the file, overrides all later router mocks? Any pointers would be very helpful.

vi.mock calls are hoisted, it is mention in the documentation. There is a cheat sheet in docs that might be useful: https://vitest.dev/guide/mocking.html#cheat-sheet
The easiest way to mock a route for different tests would be, in my opinion:
import * as routerExports from 'vue-router'
const useRouteMock = vi.spyOn(routerExports, 'useRoute')
useRouteMock.mockReturnValue({ name: 'name1' })
useRouteMock.mockReturnValue({ name: 'name2' })

Or if you like vi.mock so much, you can mark is as a spy in vi.mock:
import { useRoute } from 'vue-router'
vi.mock('vue-router', () => ({ useRoute: vi.fn() }))

vi.mocked(useRoute).mockReturnValue({ name: 'name1' })
vi.mocked(useRoute).mockReturnValue({ name: 'name2' })

I got error when I used the first solution
TypeError: Cannot redefine property: useRoute
 ❯ src/__tests__/components/pipelineTemplate/PipelineTemplateTable.spec.ts:11:25
      9| // import { useRoute } from 'vue-router'
     10| import * as routerExports from 'vue-router'
     11| const useRouteMock = vi.spyOn(routerExports, 'useRoute')
       |                         ^
     12| // useRouteMock.mockReturnValue({ name: 'name1' })
     13| // useRouteMock.mockReturnValue({ name: 'name2' })

I'm experiencing the same issue on version 0.31.4.
See my example of the issue:
/* vitest.config.mjs */
import { defineVitestConfig } from 'nuxt-vitest/config'

export default defineVitestConfig({
  test: {
    globals: true,
    clearMocks: true,
    restoreMocks: true,
    threads: false,
    testTimeout: 300000,
    setupFiles: ['tests/unit.i18n.setup.ts', 'tests/unit.vuetify.setup.ts', 'tests/unit.router.setup.ts'],
    deps: {
      inline: ['element-plus', /@nuxt\/test-utils/],
    },
    ssr: {
      noExternal: [/vue-i18n/, 'vuetify'],
    }
  }
});

/* unit.router.setup.ts */
import { vi } from 'vitest';

vi.mock('vue-router', async (importOriginal) => {
  const mod: object = await importOriginal();

  return {
    ...mod,
    useRouter: vi.fn(() => ({ replace: vi.fn() })),
  };
});

/* component.test.ts */

describe('v-select-locale', async () => {
  const router = createRouterMock();

  beforeEach(() => {
    injectRouterMock(router);
  });
  injectRouterMock(router);

  type ComponentProps = any;
  type ComponentVariables = {
    availableLocales: ComputedRef<SelectItem<string>[]>;
    currentLocale: Ref<string>;
    onChangeLocale: (locale: string) => void;
  };
  type ComponentWrapperType = VueWrapper<ComponentPublicInstance<ComponentProps, ComponentVariables>>;

  const component: ComponentWrapperType = mount(VSelectLocale, {
    global: {
      stubs: ['v-list-item', 'v-select'],
    },
  });

  it('should change the selected locale', () => {
    // This works...., So the router is in the component for testing
    expect(component.router).toBe(router);

    // Error triggered here
    component.vm.onChangeLocale('en');
  });
});

error:
 FAIL  tests/components/v-select-locale.test.ts > v-select-locale > should change the selected locale
TypeError: Cannot read properties of undefined (reading 'replace')
 ❯ Proxy.onChangeLocale components/v-select-locale.vue:63:10
     61|  */
     62| function onChangeLocale(locale: string) {
     63|   router.replace(switchLocalePath(locale));
       |          ^
     64| }
     65|
 ❯ tests/components/v-select-locale.test.ts:48:5

I would expect that the setup file would mock the vue-router imports with vi.mock @ unit.router.setup.ts
If i'm doing something wrong I would like to know what :)

I struggled with this while working on a Nuxt 3 project using Vitest, nuxt-vitest. While tinkering around I stumbled upon a combination that works for me.
Here is what worked for me and maybe it helps anyone else:
vi.mock('vue-router', () => ({
  useRoute: vi.fn(() => ({
    fullPath: '',
    hash: '',
    matched: [],
    meta: {},
    name: undefined,
    params: {
      test: '123',
    },
    path: '/test',
    query: {},
    redirectedFrom: undefined,
  })),
}));

My *.spec.ts file uses // @vitest-environment nuxt and mounts the component with mountSuspended from nuxt-vitest as well as auto imports the useRoute from vue-router automatically.


Update README.md

Faça aqui uma breve descrição das alterações que esse PR faz e o porquê / Describe the changes proposed in this PR and
their motivation:
The index of sections on README.md is "Setup: how the configure your local project;" but should be "Setup: how to configure your local project;".
Liste pelo menos um issue relacionado à este PR. / List at least one open issue related to this PR:
Pre-launch Checklist

[x] Eu li o CONTRIBUTING.md e segui as sugestões descritas ali sobre boas práticas de código / I
read CONTRIBUTING.md and followed the suggestions proposed there about writing good code;
[ ] Eu listei pelo menos um issue relacionado à este PR / I listed at least one issue related to this PR;
[ ] Eu adicionei novos testes para cobrir as mudanças que eu fiz neste PR, ou este PR é uma exceção / I added new
tests that cover the changes made in this PR or this PR is a test-exception;
[ ] Eu atualizei o CHANGELOG.md com as mudanças feitas neste PR / I updated
CHANGELOG.md with the changes made in this PR;
[ ] Eu atualizei/adicionei comentários relevantes nas modificações efetuadas / I updated or added relevant docs in the
modifications I've made;
[ ] Todos os testes previamente existentes e os novos criados por mim estão finalizando com sucesso / All the existing
tests - the old and the new ones - are finishing with success.

Hey @danieldecasttro, we are currently investigating an issue with our CI pull-request workflow, that's why we haven't approved and merged your PR yet.

Hey @danieldecasttro, we are currently investigating an issue with our CI pull-request workflow, that's why we haven't approved and merged your PR yet.

No problem! I saw the I saw the PR failing checks and realize it.

Hey @danieldecasttro, we've identified the issue with our pull-request workflow and we're working in a solution to it. This issue will proceed in https://github.com/olmps/memo/issues/154. Once we resolve it, I'll approve and merge your PR

Hey @danieldecasttro. https://github.com/olmps/memo/pull/156 was merged on main. You may now rebase with the main branch in the PR should be good to go


bug: Device stats not displayed

When a device is not linked to a rack, the device stats displays the value 0 when the site list is displayed as well as the stats displayed within a site.

Duplicate of #957 right?


Missing a way to create phantom callbacks

As per PhantomJS docs, defining a header or footer when generating a PDF requires to provide a function wrapped by phantom.callback() (undocumented). We can already use page#setFn() to assign a function, but we're still missing a way to wrap it (or maybe I missed it).
One approach would be to augment setFn() to allow flagging a function that should be wrapped, another would be to create a new method altogether. Any thoughts?
Cheers

You can look at this pull request and verify if that works for you https://github.com/baudehlo/node-phantom-simple/pull/86

Also this could possibly be a duplicate of https://github.com/baudehlo/node-phantom-simple/issues/78

Well, #86 does indeed work, but it adds a tad too much magic for my taste. There already is a dedicated way to define functions in the phantom script context (using page#setFn()). Augmenting set to do the same thing seems a bit redundant and adds a whole new layer of complexity in the form of hooks. These will have to be maintained against all usecases of phantom.callback allowed by phantom, which increases the dependence of the lib to specific versions as new cases may arise or properties name changes.
The hooks approach can also have unexpected effects when passing a function to an option that doesn't set a processor to handle them which results in setting a string where a function is expected. That last point most likely refers  to a dev error, but can also arise, but may also apply to the case of an option with the same name but different semantics across backends (i.e. phantomjs vs slimerjs).
PR #89 works around that by explicitly using page#setFn() to define a function to be used by the backend. This works in the case of headers/footers because it allows deep-setting functions the same way page#set() does for properties (well, was supposed to do because that behavior was broken, see svvac/node-phantom-simple#a028fbaf for details).

(Added an usage example in #89)

Advanced page props implemented in af88f55, that's enougth for the now.


Quiz app

Fixes: #94

Please review @Abirpal202049 @thepranaygupta @bhavesh-chaudhari @saikatmu31

Please remove the vscode file

Removed! @nandini7637

There seems to be a bug in progress bar(timeline). It is progressing even after the counter has stopped. Can you confirm this ? If this is happening with you too then please try to fix it.

I have checked, It's working fine!

Here you can see, I have checked just now:
https://user-images.githubusercontent.com/77191007/153137716-1693c329-1ebd-4678-9405-589b3e8e9176.mp4

There seems to be a bug in progress bar(timeline). It is progressing even after the counter has stopped. Can you confirm this ? If this is happening with you too then please try to fix it.

I have checked, It's working fine!

I just rechecked and it is working as expected in chrome but this is how it works in firefox -
https://user-images.githubusercontent.com/74975876/153198119-e470b355-3cb5-44fb-90f8-97130ad9b4e6.mp4
On firefox it is taking around 17 seconds for the timeline to finish as you can see here(expected time to finish progressing is 10 seconds) -

|---|
Whereas it takes around 11 seconds on chrome -

|---|
This is because browsers don't give much accuracy in setInterval or setTimeout especially when the delay is very small(like 20ms in this example).
Checkout this for more insights about the bug and how to go about fixing it -

How to create accurate timer in javascript ?
Will setInterval drift ?
using requestAnimationFrame instead of setInterval

Oh! I haven't checked for other browsers, will fix it soon!

Fixed the timeline, Please review! @bhavesh-chaudhari

The timeline is still showing unexpected behaviour as before on firefox. Can you show a preview that it is working fine ?

Fixed the timeline, Please review! @bhavesh-chaudhari

The timeline is still showing unexpected behaviour as before on firefox. Can you show a preview that it is working fine ?

It is showing same time results.
Here's it is on Chrome--

And this is on Firefox--

Fixed the timeline, Please review! @bhavesh-chaudhari

The timeline is still showing unexpected behaviour as before on firefox. Can you show a preview that it is working fine ?

It is showing same time results.
Here's it is on Chrome--  And this is on Firefox--

The Time Spent in above images is actually not the time spent but seems to be number of loops you are using(which is independent of browsers). If you read my older message then you can see both no. of loops and time taken. Also the issue is with setInterval() method as it was explained in the previous message. Its behaviour changes with user browsers, devices, etc. so the animation will look different to different users. For more details please go through the links i had shared earlier it does contain the correct solution too !

Please review! So that I should include it in my project submission.
@nandini7637 @bhavesh-chaudhari @thepranaygupta


FTP connector

I saw the list of connectors that on-premises data gateway supports, but there isn't FTP, so is not possible to connect a logic app to a FTP server on premises?

Thanks for reaching out to us , but at this time it does not look like you are referring to a document but to a specific scenario . If that's the case we request you to please post your question on MSDN and other forums , we have our engineers and others who are monitoring them and will be happy to help .
If you have a document which you are following and if you think it needs  an update , please let us know about that here .

We are closing this issue as we have not heard back from you , you can always re-open the issue if you think that appropriate .


Uncontrolled closing of Eclipse IDE on Zorin OS

Please provide a brief summary of the bug
Uploading hs_err_pid25891.log…
Did you test with the latest update version?

[x] Yes

Please provide steps to reproduce where possible
No response
Expected Results
I was expecting it to run normally without crashing.
Actual Results
It crashed everytime I try to code using the IDE.
What Java Version are you using?
22
What is your operating system and platform?
Zorin OS 17.1 on 64 bit machine
How did you install Java?
Using the debian file
Did it work before?
Yes, it did.

Did you test with other Java versions?
Yes, I did.

Relevant log output
No response

See #1060

Please provide me with a step by step guide on how to solve this
Sent from Outlook for Androidhttps://aka.ms/AAb9ysg

From: Martijn Verburg @.>
Sent: Tuesday, April 30, 2024 7:01:11 AM
To: adoptium/adoptium-support @.>
Cc: EmmahOwens @.>; Author @.>
Subject: Re: [adoptium/adoptium-support] Uncontrolled closing of Eclipse IDE on Zorin OS (Issue #1077)
See #1060https://github.com/adoptium/adoptium-support/issues/1060
—
Reply to this email directly, view it on GitHubhttps://github.com/adoptium/adoptium-support/issues/1077#issuecomment-2084332655, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BIEJSIIGN4OKKLNTCZLKDVLY74JQPAVCNFSM6AAAAABG43PF6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBUGMZTENRVGU.
You are receiving this because you authored the thread.Message ID: @.***>


fix: issues with kam image reconcile and pull latest argocd-operator

What type of PR is this?

/kind bug

What does this PR do / why we need it:
fix: issues with kam image reconcile and pull latest argocd-operator

/lgtm
Thanks!!

/test v4.12-kuttl-parallel


Generate report for a completed run

We will want to send a portal owner a breakdown of their results on completion. Generate a report page showing the various relevant stats.

Number of datasets analysed
Number of certificates published
Common errors
Time taken

Much like #1416, most of this is covered in the campaign page. Though it doesn't include time taken.


[Atom development] Move linter dependencies to root package.json

Atom's linter configurations are stored in the root, but since they were only used in files under scripts/, their npm dependencies were stored scripts/package.json. This meant that tools like the coffeelint and standard integrations for Atom couldn't find those binaries from src/, spec/, etc and either fell back to bundled or global versions (as did Atom's linter-coffeescript) which mismatched the lcoal installation, or simply failed silently (as with linter-js-standard and linter-js-standard-engine).
This change makes the correct versions available to these tools, and they remain accessible from scripts/ so long as the root as its dependencies installed.
Somewhat unrelated: would you be opposed to me documenting my experience getting Atom dev up and running in a section next to Building in the project README? Could also mention these packages and how to build Atom using Atom itself.
Open to alternative suggestions to get these tools to play properly while developing Atom with Atom :)
Released under CC0.

One thing I'm worried about is that for some reason I don't fully recall right now, I'm not sure our build is currently smart enough to screen out dev dependencies when packaging up Atom. @BinaryMuse @as-cii you two were talking about this recently if I recall correctly. What's the deal with devDependencies currently? Any thoughts on how we could remedy the situation?
As for enhancing the README, that sounds excellent. We have a lot of rough edges in some of these aspects of the system as we've poured more time elsewhere. The kinds of house-keeping improvements you're making to things like the linter are super welcome. Thanks very much for the stewardship.

@wbinnssmith the build process doesn't have a way to screen out devDependencies.
https://github.com/atom/atom/blob/4975493e80d7f9a211b4941dbc3077e1d3c6e521/script/lib/copy-assets.js#L39-L67
It is better to keep the linters under scripts for now. Sorry to say we cannot accept this PR at the moment untill we figure out how to screen out dev dependencies.


LCSC not working

Trying as follows inventree-part-import C181133
gives me:
successfully setup categories!
searching for C181133 ...
warning: failed to get page, retrying in 3.0s with new session and user agent
(no results at LCSC)
reimporting failed/incomplete parts in interactive mode ...
searching for C181133 ...
(no results at LCSC)
the following parts failed to import:
C181133
Tried also with ID, names and other things.

This was fixed in #48. If you install the newest version from master it will work.

Pip is outdated.
fixed it by : pip install git+https://github.com/30350n/inventree_part_import.git

Yep, exactly. I haven't yet made a new release because mouser is still partially broken.