vuetify a la carte no longer working

Version
v2.0.0
Reproduction link
https://github.com/vuetifyjs/nuxt
Steps to reproduce
You need to have vue-cli installed.
vue init vuetifyjs/nuxt my-project
cd my-project
npm install<EMAIL_ADDRESS>npm install
npm run dev

Now visit http://localhost:3000
What is expected ?
The page should be rendered.
What is actually happening?
SyntaxError: Invalid or unexpected token.
Additional comments?
Worked fine with previous version of nuxt.

This bug report is available on Nuxt community (#c7791)

its probably something wrong with that template. Im using nuxt 2 + vuetify a la carte without any problem.
For some reason vue init dont work on my pc, so i cant check. Can you provide a full repo with error?

https://github.com/P4sca1/nuxt-vuetify

That works, thank you!
Do you know why the change is required since nuxtjs 2.0.0?

@P4sca1 probably because of webpack 4 upgrade.

Hi, @P4sca1, I've tried your option with removing nodeExternals stuff and leave transpile: [/^vuetify/], but now I'm getting an error:
× error Error: render function or template not defined in component: v-toolbar
  at normalizeRender (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7407:13)
  at renderComponentInner (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7531:3)
  at renderComponent (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7502:5)
  at RenderContext.renderNode (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7418:5)
  at RenderContext.next (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:2436:14)
  at cachedWrite (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:2295:9)
  at renderElement (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7656:5)
  at renderNode (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7420:5)
  at renderComponentInner (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7538:3)
  at renderComponent (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7502:5)
  at RenderContext.renderNode (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7418:5)
  at RenderContext.next (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:2436:14)
  at cachedWrite (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:2295:9)
  at renderElement (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7656:5)
  at RenderContext.renderNode (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7420:5)
  at RenderContext.next (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:2436:14)

Create a reproduction and I'll take a look
On Fri, Sep 28, 2018, 1:34 PM p1pchenk0<EMAIL_ADDRESS>wrote:

Hi, @P4sca1 https://github.com/P4sca1, I've tried your option with
removing nodeExternals stuff and leave transpile: [/^vuetify/], but now
I'm getting an error:
× error Error: render function or template not defined in component: v-toolbar
at normalizeRender (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7407:13)
at renderComponentInner (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7531:3)
at renderComponent (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7502:5)
at RenderContext.renderNode (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7418:5)
at RenderContext.next (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:2436:14)
at cachedWrite (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:2295:9)
at renderElement (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7656:5)
at renderNode (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7420:5)
at renderComponentInner (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7538:3)
at renderComponent (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7502:5)
at RenderContext.renderNode (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7418:5)
at RenderContext.next (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:2436:14)
at cachedWrite (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:2295:9)
at renderElement (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7656:5)
at RenderContext.renderNode (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:7420:5)
at RenderContext.next (C:\projects\nuxt\node_modules\vue-server-renderer\build.js:2436:14)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/nuxt/nuxt.js/issues/3932#issuecomment-425395141, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAi3F83RjTP_-kWrBn5Pd1cZ4jNcAz_Xks5uffsngaJpZM4W0FLR
.

@p1pchenk0  transpile: [/^vuetify/], should go into build section of config
https://nuxtjs.org/api/configuration-build/

@aldarund, sorry, fixed, and now it fires initial error:
render function or template not defined in component: v-card

@p1pchenk0 its because you import VCard in your page/index.vue. If u want to use VCard you need to add it into plugins.vuetify like other components and dont import in pags

Or if you want to import it in pages you can do it like that:
<template>
  <v-card>
    this is vuetify component
  </v-card>
</template>

<script>
import * as VCard from 'vuetify/es5/components/VCard'
export default {
  components: {
    ...VCard
  }
}
</script>

Hi! I just wanted to let you know about Tenant Report!
Tenant Report makes it easy to get a credit, criminal, and eviction report from potential renters.
This includes:
credit report from TransUnion
a nationwide criminal background check
a nationwide eviction search history
It costs you $0. The applicant will pay a $30 application fee. There are no other fees.
sign up here  http://localhost:3000/join/JPzaLt


[Typescript] Questions on the styling types

I have a question regarding the StyledComponentProps interface. classes is marked as optional even though it shouldn't be if the component is styled using withStyle?
I had a similar typedefinition in my project:
export interface StylingProps<T extends string> {
    classes: { [key in T]: string };
    style?: Partial<CSSProperties>;
    className?: string;
}

Here classes is marked as mandatory as well as it's class names. I was hoping to replace this type with StyledComponentProps but it doesn't seem to be exactly the same. am I missing something?

I have a similar question with the type of the classes property within StyledComponentProps. Why is it using Partial<>? Should the developer be obligated to provide all the classe definitions?

Everywhere I have to update my code from:
        const {classes, anotherProp} = this.props;

to
        const {anotherProp} = this.props;
        const classes = this.props.classes as ClassNameMap<Classes>;

What is the best practice?

@wcandillon see the discussion on #8447.

Thanks a lot I was able to solve my issues.


Xamarin.SDWebImage 3.7.5 -> 4.4.0 broke animated gif support

AnimatedGifSample.zip
After we've upgraded Xamarin.SDWebImage 3.7.5 -> 4.4.0 animated gifs stopped working on iOS.
The provided example has 3.7.5 in it and is working. The UIButton shows the animated gif. When you upgrade tot 4.4.0 the button shows plain blue.

VS bug #742850

@jantanis  Could you please provide a sample that demonstrates the problem please.
Regards

@newky2k please see the updated post.

We'll have a look, but it sounds like this might be a problem with SDWebImage itself.


Add check canceled method & use in local runner

lightweight compared to check_job

PR looks good, merging...


Support images

Final PR to support images based on recent work to improve the internals of sablon with respect to handling relationships in a document (i.e. the document object model). This PR builds off of #54 which built off of #28. The same block structure is used here as with earlier PRs to avoid alienating the several forks that implemented this feature sooner. An alternate method to replace placeholder images has been proposed in #6 which would be based on the title attribute of the docPr tags that get created with images.

[x] Update README
[x] Add context unit test
[x] Test image support inside all sablon constructs, both nested and not nested
[x] Add unit tests for the core XML that gets changed in operations
[x] Support different image locations (i.e. remote URLs) and arbitrary objects with #read methods (i.e. StringIO)

An arbitrary object will need to provide a filename in the attributes hash

Fixes #6, #59
Closes #28, #54

@mateusnava and @leandronsp thank you for all your work on this feature! It wouldn't have been possible otherwise.

Fantastic to hear it! Such a great feature for all of us!


python3Packages.ansible: 2.9.23 -> 2.9.24; python3Packages.ansible-base: 2.10.11 -> 2.10.12; python3Packages.ansible-core: 2.11.2 -> 2.11.3; python3Packages.ansible-core.collections: 4.1.0 -> 4.1.1

Motivation for this change
https://github.com/ansible/ansible/blob/stable-2.11/changelogs/CHANGELOG-v2.11.rst#v2-11-3
https://github.com/ansible/ansible/blob/stable-2.10/changelogs/CHANGELOG-v2.10.rst#v2-10-12
https://github.com/ansible/ansible/blob/stable-2.9/changelogs/CHANGELOG-v2.9.rst#v2-9-24
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Relase notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

@ofborg build ansible_2_9 ansible_2_10 ansible_2_11


Update fork from source

Updating Font-Awesome from source to make use of new icons. I have tested this on my local branch by using the update commit sha. All icons are showing up with no console errors.
The vendor directory has been removed from source so the previous changes have been migrated into the assets directory.

@robertclancy Mind taking a look?

:rocket:

:+1:


Restructure files, merging hvolos alps

Merging  hvolos fam branch, Tested with Sortby, attached test case result.

I would like to ask this pull-rquest.
Comparing with previous "merging with hvolos/alps" pull-request, this pull-request's the number of changed files and additions and  deletions is increased.
Are there additional modifications?


Call to undefined method Baum\Extensions\Query\Builder::sharedLock()

BadMethodCallException
Call to undefined method Baum\Extensions\Query\Builder::sharedLock()

php ver: 5.5.11
laravel ver: <IP_ADDRESS>
baum: 1.0.13
Model/Menu.php
use Baum\Node;
class Menu extends Node {
protected $table = 'menuler';
}

routes.php
Route::get('/', function()
{
    $root = Menu::create(['name' => 'Yazılım']);
    $php = Menu::create(['name' => 'PHP']);
    $php->makeChildOf($root);
});

what I'm doing wrong?

Hi, do you remember when you added this changes? I may need to get an older stage. I'm stuck on 4.0 :(

removed a couple of lockForUpdate and the shared lock, so far so good

Sorry for replying so late.
If stuck on 4.0, tagged release 1.0.12 should be your best bet. If you've already solved it manually, no worries though.


How to Transfer Contacts from iPhone to iPhone X

How to sync all data from my iPhone 7 to iPhone X?
How can I do to move the photos from iPhone 5s to iPhone X?
What is the best way to transfer contacts from iPhone 6 to iPhone X?
.....
Are you can not wait to buy a new iPhone X to replace your old iPhone device， however, how to transfer contacts from iPhone to iPhone X?
If so, you must be looking for a simple way to sync all your personal data including contacts, photos, videos, text messages and more from the old iPhone to iPhone X, right? Well, take it easy, to transfer data from iPhone 4S/5/5S/5C/SE/6/6 Plus/6S/6S Plus/7/7 Plus to iPhone X, what you need is just the Phone Transfer.
Phone Transfer is the outstanding data tranfser program which can transfer photos, contacts, music, videos, calendars, call logs, messages, apps and app data for you. It supports iPhone, Android Phone, Blackberry, Nokia, Windows Phone perfectly. With it, you can copy data from one phone to another without any difficulty. Besides, you can backup and restore your iPhone data by using this tool.
Related: Transfer Contacts from Android to iPhone X

Phone Transfer is the all-in-one yet effective data transfer program that can directly transfer all the data including music, contacts, photos, videos, text messages, calendars, apps and other files from one iPhone to another in a click.
Transfer All Data from Old iPhone to iPhone X
Transfer Data Photos Contacts from HTC/LG to iPhone 8

No matter which generation of iPhone you used, as long as it's on iOS 8 or later, you can transfer the contacts on it to your new iPhone X with iOS 11 via FonePaw iOS Transfer. As a powerful iOS data transfer tool, FonePaw iOS Transfer enables you to share files between iOS devices (iPhone/iPad), sync data from computer to iPhone/iPad or back up your iPhone/iPad contents to computer.
The supported files are contacts, messages, notes, photos, videos (movies, TV shows, home videos, music videos, photo videos), audios (music, playlists, audiobooks, voice memos) and more, which vary according to the feature you'd like to use. Without any limitation, why don't you use FonePaw iOS Transfer to help you transfer contacts from your old iPhone to your new iPhone X?


Error handling and hooks - what should useResource return if things to bad?

Options:
Always return Resource, give Resource an 'isError` propert
Return Resource Status
Handle Errors in parent components

I went for: it always returns a Resource, and that resource might have data or an error.


laravel 5.3 This dependency was not found in node_modules

Installed mix as per installation guide. webpack.mix.js file contains
let mix = require('laravel-mix');

mix.js('resources/assets/js/frontend/app.js', 'public/test_js')
 .version();

In package.json ->
 "dev": "cross-env NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",

When I run npm run dev I get
This dependency was not found in node_modules:

* c:\laragon\www\xxxxxx\resources\assets\js\frontend\app.js

The file is there, it's not missing, why is it looking in node_modules?
Using windows 10 and Laragon.

It looks like node_modules if it can't find it locally. It thinks your referencing an installed module.
Hmm- not sure. You're 100% positive there's no typo or missing directory path? I'm not sure why it would tell you that, if the file does indeed exist.

Yeah, it's there.

you got any weird isolation stuff going on? maybe a permissions issue? maybe a symlink that isn't being followed properly?

Everything standard, nothing altered
On Jan 26, 2017 20:18, "QWp6t"<EMAIL_ADDRESS>wrote:

you got any weird isolation stuff going on? maybe a permissions issue?
maybe a symlink that isn't being followed properly?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/JeffreyWay/laravel-mix/issues/182#issuecomment-275466712,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGWA5oqcKjtLOyTOa9jl7SzTl6yleYwuks5rWONSgaJpZM4Luis-
.

Yeah something weird is going on. Nuke your node_modules directory, and do a npm install from scratch.

Did it with -save and without, tried with yarn and npm... nothing seems to
help
On Jan 26, 2017 20:23, "Jeffrey Way"<EMAIL_ADDRESS>wrote:

Yeah something weird is going on. Nuke your node_modules directory, and do
a npm install from scratch.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/JeffreyWay/laravel-mix/issues/182#issuecomment-275468289,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGWA5ux51HQ1p8h5MY0A2zkY8iwZhA4cks5rWOSOgaJpZM4Luis-
.

Can you try creating a fresh app from scratch, and then trying to compile. We'll see if it's unique to your current app at all.
laravel new test
npm install
npm run dev

@Melcus I just noticed that you said you're using Laragon.
I'm not familiar with Laragon or how it works under the hood, but when I visited the site just now, one of the first things it says is...

Laragon has an isolated environment ...

which is what I initially assumed would be causing this issue:

you got any weird isolation stuff going on? maybe a permissions issue? maybe a symlink that isn't being followed properly?

Anway, I'll stay out of this now. Just wanted to point out that Laragon could be the issue here.

Tried on my home machine, windows with laragon as well, new 5.4 project

Thank you, I'll look more into it and post here if I find anything .

Any solution to this yet? Sounds very similar to what i am facing right now..


MB-10589: Fix deploy storybook in CI, plus client build speedup

MB-10589
Summary
We are seeing storybook builds fail in CI. It's almost certainly because we tried using a Ramdisk for speed, but storing the storybook results in the Ramdisk results in the task running out of memory.
Go ahead an upgrade to the latest storybook as @duncan-truss discovered it has some performance improvements, too.
While investigating this, I stumbled across a speedup for the client compile.
Setup to Run Your Code
Watch this PR pass in CI

Messages

:book:
:link: MB-10589

  Generated by :no_entry_sign: dangerJS against 534a105da210e1c7684e51c247b89ec7ff98c47c

@ahobson Could you merge in master please so we can rule out some of the extra Happo diffs?

@ahobson Could you merge in master please so we can rule out some of the extra Happo diffs?

Done!


Fix typos in usage example

Saw some typos in the second usage example which would result in errors if run.

Option should be --co instead of -co.
BLOCKXSIZE option is duplicated

Fixed typos in the comment as well

🙏 👼 @rukku
thanks


Support for Angular's ng-class

The library works perfect in minimizing the class names. However, there's no way to instruct it to update class names specified in ng-class in an Angular application.
Can this be added?

This can be accomplished using a custom processor with this library. I am working on a way to more easily include a customer processor since the only way to do it now is by releasing one as an npm package. Check out the processor API if you're interested in adding this functionality.

At present I do not have the available resources to implement support for Angular's tags. For anyone interested it is possible to create a custom processor as outline in the readme. Hopefully I can find time to make this easier in the future but for now I will be closing this issue.


refactor: Prepare new module API

What does this PR do?
This PR prepares a better Testcontainers for .NET module support. It makes the old approach (through extension methods) obsolete and removes the dependency to itself. It increases the isolation between other modules. Modules become independent. In the future, they can rely on other dependencies or modules and contain much more and complex custom implementations (e.g. nested configurations, mix of different containers, networks, volumes, etc.). Besides community maintained modules, even other OSS projects or vendors can provide and maintain their module implementation (single- or mono-repo).

The PR replaces the builders TestcontainersBuilder, TestcontainersNetworkBuilder and TestcontainersVolumeBuilder with ContainerBuilder, NetworkBuilder and VolumeBuilder incl. all the related interfaces and classes.
The design makes heavily use of inheritance. All resources (container, network, volume) share common design principles and behave similar to each other. Each level adds more functionalities to the builder and its equivalent resource. Among others, this covers default values and input validations on each level.
The builder state is immutable. Each configuration call generates a new immutable instance that holds the configuration.
All upcoming obsolete classes and interfaces moved to _OBSOLETE_. Soon as their equivalent  module implementation is ready, we can start to remove them from the repository.
BackwardCompatibility holds interfaces to allow developers to switch gracefully to the new classes and interfaces. In some rare cases, we cannot provide backwards compatibility. Usually, it is enough to rename the class or interface to its new name (see Breaking Changes).

Why is it important?
To support a proper module implementation without depending on this repository.
Related issues

Relates #493

Breaking Changes

We tried to keep most changes backwards compatible. All upcoming breaking changes are marked as obsolete. Please consider migrating to the new classes and interfaces in advance. We will remove the obsolete classes and interfaces in the next release. In some edge cases, it might be necessary to switch to the new classes and interfaces immediately:

Old name
New name

ITestcontainersContainer, IDockerContainer, IRunningDockerContainer
IContainer

IDockerImage
IImage

IDockerNetwork
INetwork

IDockerVolume
IVolume

TestcontainersBuilder
ContainerBuilder

TestcontainersNetworkBuilder
NetworkBuilder

TestcontainersVolumeBuilder
VolumeBuilder

TestcontainersContainer
DockerContainer

Please use ContainerBuilder instead of TestcontainersBuilder<TestcontainersContainer> or ContainerBuilder<DockerContainer> for generic (non module) configurations. Upcoming modules will use their own builder to support more complex configurations and use cases.

ImageFromDockerfileBuilder.Build() does not return a Task<string> anymore. It returns a configured implementation of IFutureDockerImage. To finally build the image call CreateAsync(CancellationToken).

Out of scope
~The ImageBuilder is not ready yet. You do not need to review ContainerBuilder<TContainerEntity>. This builder is already obsolete and only necessary to provide backwards compatibility~.
Follow-ups

Support low level modifications for all builders (image, network, volume)
Extend the lifecycle callbacks
Update documentation
Add module scaffolding via dotnet CLI
Remove IDockerNetwork.Id
Start the Resource Reaper already on image, network, volume CreateAsync (not just container start)
Add the temporary removed warnings again.

Regarding default image names, that's the format how we construct it in Java:
"localhost/testcontainers/" + Base58.randomString(16).toLowerCase()

Having this aligned might make it look better for users inspecting images, that use multiple Testcontainers implementations.

Regarding default image names, that's the format how we construct it in Java:
"localhost/testcontainers/" + Base58.randomString(16).toLowerCase()

Having this aligned might make it look better for users inspecting images, that use multiple Testcontainers implementations.

The network and volume builder set a default name (Guid). The image builder changed the default image name to something like localhost/testcontainers/11c43ee8-b9d3-4e51-b73f-bd9dda66e29c:latest.


Failure in getting back to the original image

For a 2-D image, we first perform a  alpha=0.5 operation, then a alpha=-0.5 operation. Ideally, we can get the original image back. But, we can not get back the original image using the provided code. Hoping for your response.

Can U post your result?


Debugger not accessible with live "safe:" web app (ok on localhost)

Operation System: linux
Beaker Version: 0.3.6-2
I'm not sure if this is happening due to a change in my app or beaker. I have been able to debug a website live on safe: before, but I've been doing so purely with localhost for a couple of weeks and now find the debugger window keeps disconnecting immediately I open it (and the website window in beaker goes black).
I can still debug with localhost but I would like the RS guys to be able to look at stuff I deploy on safe and have access to the debugger.
You can try this as follows (on SAFE Test11):

Start SAFE Launcher and ensure you are connected (to Test 11)
Start beaker
Visit: safe://myfd.rsports
Open the debug window (Ctrl-Alt-I)
At the point the debug window opens but immediately shows a disconnection error, and the website window goes black.

This seems to be fixed. Not sure if this is a change in my code or an update to beaker, but anyway with 0.4.0 the debugger is fine at the moment (with safe://myfd.rsports).

Um, not sure why it seemed to go away above, but it is currently happening with beaker 0.4.0
Start SAFE beaker
Visit safe://myfd.rsports (page loads)
View > Toggle DevTools

Poof! Page goes black and dev tools shows error message

@joshuef Any chance you can take a look at this?
Just checked with beaker 0.4.3-0 and seems reliable as follows:
Start launcher / beaker
Visit safe://myfd.rsports/  - you should see the myfavoritedrinks UI
Ctrl-Alt-I (to open debugger)
At this point you are probably fine, but if you visit the Applications tab in the debugger "poof!" there's a problem: popup says debugger has disconnected / App UI goes black.
Seems there's no way use debugger Applications tab (e.g. and view the storage) without it having disconnected from the app and the app UI going black.
If you navigate to Console and Ctrl-Shift-R the debugger sometimes works again, until you visit the Applications tab. At other times I can't get the debugger to connect again regardless of the tab I select.

Okay, I can replicate this at least. Now sure why this would be happening, but I'll dig around.

Happening with all safe and beaker sites, and not http sites as far as I can tell...

Aha:  https://github.com/electron/electron/issues/7184
So an electron upgrade should sort this.

What's the plan here Josh - seems like by default they've disabled local storage on custom schemes which we don't want, and I see the solution appears to be:

@ tarjei register the custom scheme as a standard scheme using protocol.registerStandardSchemes api.

See: https://github.com/electron/electron/issues/7184#issuecomment-246968107


jd-gui: Fix interpreter, add many missing deps, un-upx.

Motivation for this change
Fixes #27113
Things done

[x] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] Linux

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

Do you know the difference to the current 1.4.0 release?  The 1.4.0 release is a platform-independent jar that doesn't require any patching.

Hmm, no I don't know the differences I just was running with the result of debugging the issue :innocent:.
The jar might be the way to go (it's how I've used it in the past, I was surprised there was a non-jar version haha).

Okay, I'll merge this for now, and then let's switch to the jar version.


Upgrade parser + printer to OCaml 4.04

Work in progress and does not build at the moment.
Builds upon our earlier work for 4.03: https://github.com/facebook/reason/pull/604. To be clear I copy paste between the 4.03 branch and the 4.04 branch where it is needed.
A big challenge appears to be the refactored pretty printer in 4.04 which went from being an accessible class to a more closed module with functions. This will require much more code to be copied to our implementation.
What still needs to happen (most are visible when running make)

[x] Fix JSX attributes
[x] Fix BuckleScript formatTest issues
[x] Fix pretty printer (see above, for now I've cheated by writing a dummy atom). This is causing surprisingly little problems so far which has me a bit worried.
[x] Fix let _ issue (it was decided in the 4.03 work to keep it like this)
[ ] Fix other printer/formatter issues
[x] Fix inline record type support. There are some issues here with the new Reason object syntax.
[ ] Add tests for new features (some have been added already)
[ ] Fix miscTests. For now I've disabled them by commenting out the code.

I expect that there is more to fix here.

cc @let-def

What do you mean by a dummy atom (for the pretty-printer)?

@let-def This: https://github.com/facebook/reason/pull/907/files#diff-7dce44be99776d19af8c2d7b0d14e2c7R5832

Make sense, thanks.

I started improving the port. So far I implemented:

printing of type extensions
relaxed the new type fun (type a) => syntax to lists of identifiers (type a b c...)
allow [] identifier for value constructors
allow inline record definition

I feel most of the work needed now is on improving pretty printing quality.

@let-def I added you to my fork as a collaborator so you can push to this PR.

[x] Fix JSX attributes
[x] Fix BuckleScript formatTest issues
[x] Fix pretty printer (see above, for now I've cheated by writing a dummy atom). This is causing surprisingly little problems so far which has me a bit worried.
[x] Fix let _ issue (it was decided in the 4.03 work to keep it like this)
[ ] Fix other printer/formatter issues
[x] Fix inline record type support. There are some issues here with the new Reason object syntax.
[ ] Add tests for new features (some have been added already)
[ ] Fix miscTests. For now I've disabled them by commenting out the code.
[ ] Added: cleanup printing of inline records.

About the printer: I grouped multiple newtypes together, this looks better to me but breaks some tests.

Great progress so far. Everyone's excited about this one!

Great progress, thanks! Looks like we are also getting some conflicts here..

The upgrade is almost complete. This version of Reason should be able to target 4.02.3, 4.03.0 and 4.04.0.

some tests fail with 4.02.3 because of changes in OCaml pretty printer; I think these errors can be ignored
Redoc has been disabled as it relies on some compiler internals; if uncommented, the current code works with 4.04 though
a new dependency has been introduced, ocaml-migrate-parsetree; this library tries to abstracts some compiler internals to make reason (and ppx preprocessors) portable. It is not yet available on OPAM but this should happen anytime soon.

ocaml-migrate-parsetree is now available in opam.

I adressed the remarks inn the latest push.

I just force pushed the rebased version.

It says there's still conflicts.

I rebased again, but now I need someone to revendor (@tekknolagi ? :)) ppx_deriving 4.0 for OCaml 4.04.0.
I don't get how the code was generated.

@let-def heh. It was a rather frustrating process that ended up with me doing the following:

wget ppx_deriving.show and the modules it needs
cat them all together, adding in module Ppx_deriving_main = struct, etc as needed
Vendor ast_convenience
Manually specify the interface for ppx_deriving.show

I can re-vendor on Tuesday, at which point I might as well just write a script to do it for me.

Ok, I think I can do that. What is the purpose of vendoring ppx_deriving_show? Only for the call to str_of_type?

Updated, ready for review.
Not sure what to do about travis failure:
$ git diff --exit-code
diff --git a/src/reason_parser.messages b/src/reason_parser.messages
index 5dd74f5..bc14228 100644
Binary files a/src/reason_parser.messages and b/src/reason_parser.messages differ
The command "git diff --exit-code" exited with 1.

@let-def Yep, just str_of_type.

It looks like travis is not building the latest commit - it might have to do with the force push. Not sure. It is building this commit it looks like - which isn't the latest: https://github.com/facebook/reason/commit/8b65f86ed2663feeb7cb6820f12b6217cd7739e9
Do tests pass locally?

@jordwalke : It's what I said above, "Not sure what to do about travis failure:". I don't have the problem locally (4.03 and 4.04, 4.02 fails because of changes in printer)

@jordwalke ah ok, I rebased, it seems to work, let's wait for travis results.

@jordwalke looks like that's because of the let _ = ... among others

@let-def If you cherry-pick from master, you get the CircleCI config. This means a couple things:

It has multi-version testing support
CI passes in minutes, not hours

This will hopefully be helpful in development.
I'm also willing to help out in whatever way you need in getting the tests to pass.

OCaml printer in 4.02:

needs a nonrec attribute to print type nonrec but doesn't remove the attribute, so it can print either type t = ... or type nonrec t = ... [@@nonrec], which wouldn't be correct in later versions,
prints let _ = ... as ...;;, which is not faithful but cannot be changed.

OCaml printer in 4.04 adds trailing spaces.
We have to deal with these inconsistencies. I think forcing the correct behavior for the targetted version (4.04) and ignoring (as least some class of) failures on 4.02 is reasonable.

@let-def, okay, so these are just failures when converting between syntaxes, and only on 4.02.3? I see OCaml changed how their syntax is parsed between compiler versions.
Fred, is this diff good to go now? Can't wait to use it.
@tekknolagi In circleCI can we disable the 4.02.3 test as soon as this diff lands? We will look at 4.02.3 when reviewing diffs from time to time, but failures on 4.02.3 needn't show up as test failures in PR feedback etc.

@jordwalke I think the patch is good now. It is only on 4.02.3 indeed, and these are related to ocaml change not to reason.

@jordwalke @let-def you can disable it in this diff if you rebase and take it out of circle.yml! Make sure to enable the other ones.

Also remove nonrec from the additional printer test (sorry)

I went ahead and rebased, updated the test, and updated CircleCI config. Can I force push to this branch?

Thank you, maybe I can force push from your repository. I don't think I can change settings on @SanderSpies repository.

@let-def I think I can commit directly to the branch.

Alternatively, I can also commit a patch that brings the branch up to speed without rebasing.

Cool, please do :). Rebasing or cherry-picking is fine for me.

@tekknolagi I gave you push access (if that was needed, not sure) - if I need to change settings for the repo let me know.

@let-def @SanderSpies rebased, force-pushed

Now CircleCI is running the tests!

@jordwalke so there are some differences between 4.03 and 4.04 as well. What do you think about adding test versions?

Tests pass!

Congrats 👍

lol congrats to you this is your/@SanderSpies diff

Congrats @let-def @SanderSpies !

@jordwalke @let-def what more needs to be done before merge?

@tekknolagi I am not aware of anything more to do.

:ship: it @jordwalke!

 Great work. Let's not merge any (potentially conflicting) diffs until this lands. I think we just need to make sure that everyone who is installing is pinned to a specific version of Reason, not master.
I'll list some repos here and indicate if they're ready or not. Feel free to find other repos that you are aware of and mark them as "safe" or not.

ReasonProject: It's safe because it's pinned to npm and we won't push a new release with this diff to npm for a package.json

I just force pushed a rebase - let's see how the tests do.

Landing!


Typo in getOnly example?

https://github.com/Gabriel439/Haskell-Optparse-Generic-Library/blob/809d998fa6d51d6d85b5894ae9ff4fcf51cd8341/src/Options/Generic.hs#L507
instance ParseRecord MyType where
    parseRecord = fmap getOnly parseRecord

Should that instead say parseRecord = fmap getOnly parseFields?

Not a typo.  Note that fmap getOnly parseFields would be a type error for two separate reasons:

(A) Only (intentionally) does not have a ParseFields instance
(B) parseFields is a function of two arguments:

parseFields :: Maybe Text -> Maybe Text -> Parser a

The correct translation for what you have in mind would be:
parseRecord = parseFields Nothing Nothing

... which is exactly equivalent to what you get with fmap getOnly parseFields (because that's what the Generic ParseRecord instance for Only will auto-generate).
To understand why fmap getOnly parseRecord is consistent with the documentation, note that the ParseRecord instance for Only is:
instance ParseFields a => ParseRecord (Only a)

So if you parse a value of type Only a it will use defer to the equivalent ParseFields instance for the type a, and then getOnly just unwraps the Only newtype.

Oops. Thank you!

 :)


feat(metrics): add default metrics for http requests

What this PR does / why we need it:
for https://github.com/caicloud/nirvana/issues/121
Special notes for your reviewer:
/cc @your-reviewer
Release note:

NONE

@ddysher updated, PTAL

LGTM
@kdada

/lgtm


eslint-config-react-app is not compatible with ESLint 8

Describe the bug
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/rules/no-unused-expressions' is not defined by "exports" in /xxx/node_modules/eslint/package.json
    at throwExportsNotFound (internal/modules/esm/resolve.js:290:9)
    at packageExportsResolve (internal/modules/esm/resolve.js:513:3)
    at resolveExports (internal/modules/cjs/loader.js:437:36)
    at Function.Module._findPath (internal/modules/cjs/loader.js:477:31)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:872:27)
    at Function.Module._load (internal/modules/cjs/loader.js:730:27)
    at Module.require (internal/modules/cjs/loader.js:957:19)
    at require (/xxx/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
    at Object.<anonymous> (/xxx/node_modules/eslint-plugin-flowtype/dist/rules/noUnusedExpressions.js:8:51)
    at Module._compile (/xxx/node_modules/v8-compile-cache/v8-compile-cache.js:194:30)

Looks like eslint-plugin-flowtype/dist/rules/noUnusedExpressions.js imports file that's not exported explicitly.
Environment
Eslint 8.0.0
eslint-plugin-flowtype: 6.1.0
eslint-config-react-app: 6.0.0
Expected behavior
No errors
Actual behavior
Error from the above
Reproducible demo
Clone https://github.com/ringcentral/ringcentral-javascript/tree/eslint8 (branch eslint8)
yarn install
yarn test

Here is a dirty fix that you can use with patch-package:
diff --git a/node_modules/eslint-plugin-flowtype/dist/rules/noUnusedExpressions.js b/node_modules/eslint-plugin-flowtype/dist/rules/noUnusedExpressions.js
index 6171456..f1a9d72 100644
--- a/node_modules/eslint-plugin-flowtype/dist/rules/noUnusedExpressions.js
+++ b/node_modules/eslint-plugin-flowtype/dist/rules/noUnusedExpressions.js
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
   value: true
 });

-var _noUnusedExpressions = require('eslint/lib/rules/no-unused-expressions');
+var _noUnusedExpressions = require('eslint/use-at-your-own-risk').builtinRules.get('no-unused-expressions');

 var _noUnusedExpressions2 = _interopRequireDefault(_noUnusedExpressions);

Temporary workaround: npm i eslint-plugin-flowtype@latest eslint-plugin-react-hooks@next --force --save-dev

thanks @Avasam that did the trick

Temporary workaround for yarn: yarn add eslint-plugin-flowtype@latest eslint-plugin-import@latest eslint-plugin-react-hooks@next --force -D

I just did yarn add -D eslint-plugin-flowtype@latest and that did the trick

Not stale

It is still happening for me... and none of the fixes above are working.

This fix is really needed now that react-scripts deprecated version 4.0.3. That version has a dependency on node-forge 0.10.0, with vulnerability CVE-2022-0122.

Spent a few more hours on this, it's really impossible to come up with a working package.json. This is what I want to have working:
  "dependencies": {
    "eslint-config-react-app": "^7.0.0",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "react-router": "^5.2.0",
    "react-router-dom": "^5.2.0",
    "worker-loader": "^3.0.8"
  },
  "devDependencies": {
    "@babel/cli": "^7.17.0",
    "@babel/core": "^7.17.2",
    "@babel/plugin-proposal-private-property-in-object": "^7.16.7",
    "@babel/preset-env": "^7.16.11",
    "@babel/preset-react": "^7.16.7",
    "babel-eslint": "^10.1.0",
    "eslint": "^8.9.0",
    "eslint-plugin-react": "^7.28.0",
    "jest-junit": "^12.0.0",
    "react-scripts": "^5.0.0"
  },

The number of permutations I've tried with different versions is about 50, and it's just way too much of a headache iterating on a simple issue like dependency updates. How do we get attention paid to this nightmare we face as react developers?

Any update on the issue ? Still having errors

I don't understand why this is causing permanent issues, also for projects that I try to upgrade.

Nice. Figured I search for eslint before posting an issue to tell that eslint-config-react-app is not providing a new-config-file-format-compatible configuration for eslint. Found 197 open issues with 'eslint'. Half of them stale. At least 3 issues about the incompatibility, one of them also stale. React truly is the best framework in the world (I'm german and that was sarcasm)

For me, I ended up needing to do this in Package.json:
  "overrides": {
    "eslint": "^8.40.0",
    "eslint-plugin-flowtype": "^8.0.3",
    "@typescript-eslint/eslint-plugin": "^5.59.2",
    "@typescript-eslint/parser": "^5.59.2"
  }

Probably would be better to scope those overrides, but I'm not too worried since these are just  for linting.


how to prepend xml version and encoding

i am using swagger in golang, and here's the endpoint:
"/xmltest":{
      "get":{
        "produces":["application/xml"],
        "operationId":"xmltest",
        "responses":{
          "200":{
            "description":"OK",
            "schema":{
              "type":"array",
              "items":{
                "$ref":"#/definitions/Channel"
              },
              "xml":{"name":"Channels"}
            }
          }
        }
      }
    }

and definition:
"Channel":{
      "type":"object",
      "xml":{"name":"Channel", "version":"1.0.0", "encoding":"utf-8"},
      "properties":{
        "id":{
          "format":"int32",
          "type":"integer"
        },
        "name":{
          "type":"string"
        }
      }
    }

in the response, i am always get <Channel><ID>1</ID><Name>Abc</Name></Channel> while i am expecting <?xml version="1.0" encoding="utf-8"?><Channel><ID>1</ID><Name>Abc</Name></Channel>, how can i make it happen?

You do not state exactly which tool you're using, but I do think this is a tooling, rather than a spec. issue, so should be raised on the relevant tooling repository.
Just for clarity, the xmlObject does not support a version or encoding field, so this is not going to work.


yunitator with 2 classes: target child vs. all other speakers

that is, distinguish key child (one class) versus all others (another class containing mother, all female adults, male adults, other children, none)

datasets that could be used for this:

vandam (already processed)
namvan + tsi (idem)
ASE (idem)

All of the following need to be processed:

ACLEW round 1-3
CHILDES paidologos with added noise OR mixed in with recordings known to have only one child talking to simulate presence of other children
IDS/ADS samples

Hopefully this is trivial; you could imagine just filtering the RTTM produced by Yunitator with sed and awk, replacing class labels other than CHI from the set of, as I recall:
CHI
FEM
MAL
SIL

I think the main idea is to train a new Yunitator on "ACLEW round 1-3" data in addition to Vandam and ASE (ACLEW Starter) - not sure if CHILDES and IDS/ADS samples are available.

I second Eric's comment -- it might be good to get started with the data you already have, even if we'll increase the training set later on (which might make for a nice experiment anyway). Remember that the data folks are waiting for this tool to do their next round of sampling.
All of the data I mentioned are already available. All that remains is to format the annotations in the same format you have used before. Here are the links:
CHILDES Paidologos:

annotations: https://www.dropbox.com/sh/3t9kkfzdh726rft/AABxsGG3QkQ2Fu_g68JoG7Bja?dl=0
sounds:
To get the sound files, the following worked 6 months ago:
wget -c robots=off -r -l inf --no-remove-listing -nH --no-parent -R 'index.html*' http://media.talkbank.org/PhonBank/Chinese/Cantonese/PaidoCantonese/
wget -c robots=off -r -l inf --no-remove-listing -nH --no-parent -R 'index.html*' http://media.talkbank.org/PhonBank/Eng-NA/PaidoEnglish/
wget -c robots=off -r -l inf --no-remove-listing -nH --no-parent -R 'index.html*' http://media.talkbank.org/PhonBank/Japanese/PaidoJapanese/
wget -c robots=off -r -l inf --no-remove-listing -nH --no-parent -R 'index.html*' http://media.talkbank.org/PhonBank/Other/Greek/PaidoGreek/

IDS/ADS samples:

available from https://media.talkbank.org/HomeBank/Password/IDSLabel with password -- I'll send a separate email about that

Oh good. I also just had to request the latest media.talkbank.org data password, and can supply if needed.

This is maybe the second situation where we'd like to train up a new Yunitator variant. Maybe we can generalize and create a task for Yun: produce documentation and give examples of how we ("a novice") can train Yunitator on new data to produce new models & class labels?

Closing this issue - this is a suboptimal solution, and we should focus our forces on better ones (eg 4- or 5-class labeling.)

I meant that if we can re-train a new Yunitator, it could be on 4- or 5-class labeled data, making it more optimal. Agree the number of classes currently produced by Yunitator is suboptimal.

Oh I meant the 2-class solution that I had brought up in this issue was even more suboptimal (even less optimal?). It was just an idea that came up given the scarcity of data -- but I think we can do better, for instance with the 3 class currently implemented. RE training, I don't think that is a priority given our current user base (ACLEW), since none of us independently have enough data for retraining. In fact, it seems that even all together we don't have enough data for training 3 classes! So a retrainable module sounds more useful in theory than in our current world...


event: simplify event porting by leveraging lvgl's event dsc handler

Only lua created obj can add event callback, and it makes logic much simpler.
Fix #10
Depends on the dsc returned from add_event, need to wait lvgl merge this change firstly.

For event added from lua, the e->user_data is expected to be struct event_callback_s*. Same object can add event both from lua and native C code. Thus we need a way to distinguish between this two scenarios.
For object created from lua, we have struct luavgl_obj_t, similar to what lvgl stores event list, we also add an lv_array_t to luavgl_obj_t to store events from lua.
Following operation(add/remove) to event called from lua will rely on this array.

It's common in luavgl to monitor is an obj is deleted by
  lv_obj_add_event_cb(obj, obj_delete_cb, LV_EVENT_DELETE, L);

In the callback, cleanup resources added from lua, including the events. Be noted that the callback context is from lvgl's event send function which iterates the event list of this obj. Modify the event array by lv_obj_event_remove_dsc will corrupt the lvgl's loop leading to heap-use-after-free memory issue.
Normally it's not necessary to manually remove the event dsc, obj is going to be deleted anyway.


Add coverage for configured cluster in integration tests

Adding support for configured cluster in the integration test framework classes.
Modified existing domain on pv test and domain in image using WDT tests to use configured cluster
Updated README.md with input yaml to the test section and created another doc for use cases and provided a link from README.
some refactoring to call TestUtils.exec() in Domain.java

Tested locally and passed on Jenkins - http://wls-jenkins.us.oracle.com/job/weblogic-kubernetes-operator-javatest/1379/consoleFull

@markxnelson @rjeberhard can someone review this PR?
synced to the latest develop changes and tests pass on Jenkins - http://wls-jenkins.us.oracle.com/job/weblogic-kubernetes-operator-javatest/1390/consoleFull

yes will do now.  was waiting because you had "WIP" :)

Submitted Jenkins run - http://wls-jenkins.us.oracle.com/job/weblogic-kubernetes-operator-javatest/1411/consoleFull

@markxnelson please review the PR. I made changes to fix javadoc and Jenkins ran clean.


Figure out a better way to package ruptura.dll

https://github.com/vezel-dev/ruptura/blob/d8b4eb46d47d12bb7a48142c1a978f972569ba5c/src/injection/injection.csproj#L34-L49

Ideally we would ship it next to Vezel.Ruptura.Injection.dll. Maybe as a Content item? (It can't go into runtimes/<rid>/native since it's specific to the target process's bitness, not the injector process's bitness.)

Content seems to be the way to go. Just need to figure out at what point in the build it is appropriate to dynamically add Content items.


Bump Pulsar to <IP_ADDRESS>-rc3 and use JDK17 for KoP

Modifications
Upgrade maven-shaded-plugin to 3.4.0 because 3.2.4 seems not work with JDK 17.

entry io/streamnative/kafka/client/zero/nine/Consumer009Impl.class: java.lang.IllegalArgumentException: Unsupported

Skip __change_event system topic when processing list topics request.
Documentation
Check the box below.
Need to update docs?

[ ] doc-required
(If you need help on updating docs, create a doc issue)

[x] no-need-doc
(Please explain why)

[ ] doc
(If this PR contains doc changes)

@BewareMyPower Look like some tests still fail.

@Demogorgon314 I've addressed them. It looks like Pulsar 2.11 has created __changed_events system topic so that the result of list topics are affected. I'm not sure why older versions don't have this issue.

There are still two failed tests left:
Error:  Failures:
Error:    CacheInvalidatorTest.cleanup:111->KopProtocolHandlerTestBase.internalCleanup:319->KopProtocolHandlerTestBase.stopBroker:355->KopProtocolHandlerTestBase.stopBroker:351 » PulsarServer
Error:    TransactionWithOAuthBearerAuthTest.cleanup:72->TransactionTest.cleanup:77->KopProtocolHandlerTestBase.internalCleanup:319->KopProtocolHandlerTestBase.stopBroker:355->KopProtocolHandlerTestBase.stopBroker:351 » PulsarServer

@Demogorgon314 Now all tests passed.


Use map instead of flatMap when parsing

This was my bad, so I'm fixing it.
JSONValue.parse returns a non-optional JSONValue. Unfortunately, because
of Swift Magic, Xcode will happily compile when using flatMap with a
function that returns a non-optional. This can (but doesn't always) result in
a EXC_BAD_ACCESS error at runtime. Using map here is actually the correct
behavior, but should also fix this crash that people were seeing.
Fixes #32 (Or, it should).

:+1:

:+1:


ssh multiplexing initialization error: Bad configuration option

Q
A

Issue Type
Bug

Deployer Version
6.0.3

Local Machine OS
Ubuntu16 lts

Remote Machine OS
Ubuntu16 lts

 php -v
PHP 7.0.26-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Nov 29 2017 09:51:01) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.26-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2017, by Zend Technologies
    with blackfire v1.18.0~linux-x64-non_zts70, https://blackfire.io, by SensioLabs

Description
I am running into a Bad configuration option error when trying to use ssh with multiplexing
Output log
➤ Executing task deploy:lock
[<IP_ADDRESS>] > if [ -f /www/www/test/relaunch/testdeployer/.dep/deploy.lock ]; then echo 'true'; fi
[<IP_ADDRESS>] < ssh multiplexing initialization
[<IP_ADDRESS>] < /home/mstaab/.ssh/known_hosts: line 1: Bad configuration option: |1|h/xxxx/yyyyy
[<IP_ADDRESS>] < /home/mstaab/.ssh/known_hosts: line 2: Bad configuration option: |1|xxxxx+yyyy//r08
[<IP_ADDRESS>] < /home/mstaab/.ssh/known_hosts: terminating, 2 bad configuration options

  [Deployer\Exception\RuntimeException (-1)]
  The command "if [ -f /www/www/test/relaunch/testdeployer/.dep/deploy.lock ]; then echo 'true'; fi" failed.
  Exit Code: -1 (Unknown error)
  Host Name: 46.22.yy.xx
  ================
  /home/mstaab/.ssh/known_hosts: line 1: Bad configuration option: |1|h/fxxxxxxtn/l6xxxxx1wq
  /home/mstaab/.ssh/known_hosts: line 2: Bad configuration option: |1|ayyyyyj+xyyyyy//r08
  /home/mstaab/.ssh/known_hosts: terminating, 2 bad configuration options

Exception trace:
 () at phar:///usr/local/bin/dep/src/Ssh/Client.php:96
 Deployer\Ssh\Client->run() at phar:///usr/local/bin/dep/src/functions.php:292
 Deployer\run() at phar:///usr/local/bin/dep/src/functions.php:333
 Deployer\test() at phar:///usr/local/bin/dep/recipe/deploy/lock.php:14
 Deployer\Deployer::Deployer\{closure}() at n/a:n/a
 call_user_func() at phar:///usr/local/bin/dep/src/Task/Task.php:104
 Deployer\Task\Task->run() at phar:///usr/local/bin/dep/src/functions.php:404
 Deployer\invoke() at /cluster/www/www/www/kunzmann_relaunch/deploy.php:102
 Deployer\Deployer::Deployer\{closure}() at n/a:n/a
 call_user_func() at phar:///usr/local/bin/dep/src/Task/Task.php:104
 Deployer\Task\Task->run() at phar:///usr/local/bin/dep/src/Executor/SeriesExecutor.php:63
 Deployer\Executor\SeriesExecutor->run() at phar:///usr/local/bin/dep/src/Console/TaskCommand.php:142
 Deployer\Console\TaskCommand->execute() at phar:///usr/local/bin/dep/vendor/symfony/console/Command/Command.php:264
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/dep/vendor/symfony/console/Application.php:869
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/dep/src/Console/Application.php:132
 Deployer\Console\Application->doRunCommand() at phar:///usr/local/bin/dep/vendor/symfony/console/Application.php:223
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/dep/vendor/symfony/console/Application.php:130
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/dep/src/Deployer.php:324
 Deployer\Deployer::run() at phar:///usr/local/bin/dep/bin/dep:119
 require() at /usr/local/bin/dep:4

2 questions

how to debug?
should the Ssh\Client->exec() be a bit more verbose, like outputing what actually is executed on the CLI etc?

Try connect to ssh from bash with mutliplexing.
Yes, I think we can add special option for debugging more deeply. --debug-dump-exec

What do you think of write debug outs in very verbose instead of a separate flag?

Yes, maybe it's better. I'll do this for v5 -vvv - will be debug and -v will be v6's -vvv

Try connect to ssh from bash with mutliplexing.

how todo that?

https://www.google.co.th/search?q=ssh+multiplexing

Closing this issue as inactive. If you still have this problem, please open a new issue.


Efficient logging without extra allocations

All logging functions now take a new Loggable object that contains a Cow<CStr> - making it possible to log without an extra re-allocation.

I've been pondering this new type? We should validate that there's no \0 in the buffer, but we can print String and &str using %.*s, this wouldn't change the API and still doesn't need extra allocations

not sure what you mean - are you saying you are ok to send garbage to the print function?  Note that currently we do assert the string is valid, e.g. let c_cstring = CString::new(msg).unwrap(); in fail()


Edge 40 Neo Freeze

Environment

OS: Windows 10
Scrcpy version: 2.7
Installation method: manual build
Device model: Motorola Edge 40 Neo
Android version: 14

Describe the bug
Hello!! Sorry for my bad english, its not my native language. I'm facing with a peculiar problem, I have e Edge 40 Neo and Scrcpy works very well via USB, with sounds, etc. But when I use internet way (Via tcpip) my phone simply stop to work after some seconds and freeze completely, being necessary restart the phone. Also while its freezed, my phone gets very hot (Somehow it's working at full capacity... For what???? It gets very very hot)
Even with low resolutions, my phone still freezes.
I already change the encodes with the list-encode.
Its literally the same thing with "--video-source=camera", via USB it works perfectly, but via TCPIP it does not work and freezes my phone.
When I share only audio, I cant listen to my phone often, sometimes I can listen the audio android but with the audio sliced.
Do you have some idea about what is happening?

My guess is that the video bit rate is greater than your network bandwidth (for any reason, bad network hardware, packet loss, etc.). At some point, the TCP buffer to send new packets is full, applying backpressure to MediaCodec, and the MediaCodec backend can't handle it (either it bufferizes packets until an out-of-memory, or something else).
This is just a guess, but if it works over USB but not TCP/IP, that might be an explanation.
Can you reproduce with a tiny bit rate (and awful quality):
scrcpy -m640 -b500k --no-audio

Nop! I tested it and it didnt work :c
Im not sure about weak network, im using Wifi 5G, its something in my phone that does not allow it works aaaaa
I can test in next days to make sure about network!
Oh, an important thing that I forgot to say, the Windows does not create a pop-out when im using tcpip. When I use USB, it appears instantly.
Also when I turn off the Wifi before freeze in my phone, the scrcpy does not warn about disconnection. It only give a notification about it when I turn on the wifi again!
I could try to ask in some kind of Motorola forum, but I have no idea about how i could ask this kind of question
Im going to sleep now, its 5am in my timezone. But thanks for the attention!

the Windows does not create a pop-out when im using tcpip. When I use USB, it appears instantly.

You mean you don't have any video at all?
Try adb over tcp/ip manually (without scrcpy):
Plug your device over USB, run adb tcpip 5555.
Find your device ip, then execute adb connect 192.168.1.x (adapt the ip)
Then adb devices, adb logcat, adb shell: how do they behave?

不！我测试了一下，它不起作用 ：c 我不确定网络是否较弱，我使用的是 Wifi 5G，我手机里的东西不允许它工作啊啊我可以在接下来的几天里测试以确保网络正常！
哦，我忘了说一件重要的事情，当我使用 tcpip 时，Windows 不会创建弹出窗口。当我使用 USB 时，它会立即出现。
此外，当我在手机冻结之前关闭 Wifi 时，scrcpy 不会警告断开连接。它只会在我再次打开 wifi 时发出通知！
我可以尝试在某种 Motorola 论坛上提问，但我不知道如何提出这种问题
我现在要睡觉了，现在是我所在时区的凌晨 5 点。但感谢您的关注！

尝试电脑开启一个AP,手机连接上电脑的AP，排查掉网络的原因
Try to turn on an AP on the computer and connect the phone to the AP of the computer to check the cause of the network

YanYiGe2023 尝试电脑开启一个AP,手机连接上电脑的AP，排查掉网络的原因
Try to turn on an AP on the computer and connect the phone to the AP of the computer to check the cause of the network

What is AP? Sorry, I'm not someone who's used to acronyms or codes, I'm not a programmer. How can I do it?

rom1v You mean you don't have any video at all?

I have video when I use USB, but when i use tcpip it does not appear!

Try adb over tcp/ip manually (without scrcpy):
Plug your device over USB, run adb tcpip 5555. Find your device ip, then execute adb connect 192.168.1.x (adapt the ip) Then adb devices, adb logcat, adb shell: how do they behave?

If I use adb devices, my IP appear and a USB number appear
C:\Users\casa1>adb devices
List of devices attached
0084690216      device
192.168.XXX.XX device

adb logcat and adb shell has the same message
adb.exe: more than one device/emulator

If I remove the USB and type adb shell, will appear manaus:/ $
If I remove the USB and type adb logcat, a lot of log will appear xD
09-16 17:12:49.921 10089 10089 D ViewRootImpl:   fl=LAYOUT_IN_SCREEN LAYOUT_INSET_DECOR SPLIT_TOUCH HARDWARE_ACCELERATED DRAWS_SYSTEM_BAR_BACKGROUNDS
09-16 17:12:49.921 10089 10089 D ViewRootImpl:   pfl=NO_MOVE_ANIMATION FORCE_DRAW_STATUS_BAR_BACKGROUND FIT_INSETS_CONTROLLED
09-16 17:12:49.921 10089 10089 D ViewRootImpl:   bhv=DEFAULT
09-16 17:12:49.921 10089 10089 D ViewRootImpl:   fitSides=} by setView
09-16 17:12:49.923  1923  2412 D CompatibilityChangeReporter: Compat change id reported: 168419799; UID 10385; state: DISABLED
09-16 17:12:49.924  1923  2412 D CompatibilityChangeReporter: Compat change id reported: 273564678; UID 10385; state: DISABLED
09-16 17:12:49.929  1923  2412 D CoreBackPreview: Window{17612bf u0 com.whatsapp/com.whatsapp.Conversation}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@f6eacd5, mPriority=0, mIsAnimationCallback=false}
09-16 17:12:50.025  1923  2006 I LaunchCheckinHandler: MotoDisplayed com.whatsapp/.Conversation,wp,ca,183
09-16 17:12:50.029  1923  2001 V WindowManager: Sent Transition #344 createdAt=09-16 17:12:49.819 via request=TransitionRequestInfo { type = 1, triggerTask = TaskInfo{userId=0 taskId=70 displayId=0 isRunning=true baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.whatsapp/.Main } baseActivity=ComponentInfo{com.whatsapp/com.whatsapp.HomeActivity} topActivity=ComponentInfo{com.whatsapp/com.whatsapp.Conversation} origActivity=null realActivity=ComponentInfo{com.whatsapp/com.whatsapp.Main} numActivities=2 lastActiveTime=42580204 supportsMultiWindow=true supportsGlobalFreeform=true resizeMode=1 isResizeable=true isAppLocked=false canKillAndRestart=true isShowDecorCaptionWindowRequest=false minWidth=-1 minHeight=-1 defaultMinSize=200 token=WCT{RemoteToken{28d37cb Task{7826ca0 #70 type=standard A=10385:com.whatsapp}}} topActivityType=1 pictureInPictureParams=null shouldDockBigOverlays=false launchIntoPipHostTaskId=-1 lastParentTaskIdBeforePip=-1 displayCutoutSafeInsets=Rect(0, 105 - 0, 0) topActivityInfo=ActivityInfo{1d0a18d com.whatsapp.Conversation} launchCookies=[] positionInParent=Point(0, 0) parentTaskId=-1 isFocused=true isVisible=true isVisibleRequested=true isSleeping=false topActivityInSizeCompat=false topActivityEligibleForLetterboxEducation= false topActivityLetterboxed= false isFromDoubleTap= false topActivityLetterboxVerticalPosition= -1 topActivityLetterboxHorizontalPosition= -1 topActivityLetterboxWidth=-1 topActivityLetterboxHeight=-1 locusId=null displayAreaFeatureId=1 cameraCompatControlState=hidden}, remoteTransition = null, displayChange = null, flags = 0 }
09-16 17:12:50.029 24367 24675 V WindowManagerShell: onTransitionReady android.os.BinderProxy@d1bcfc9: {id=344 t=OPEN f=0x0 trk=0 r=[0@Point(0, 0)] c=[{null m=OPEN f=FILLS_TASK leash=Surface(name=ActivityRecord{d46a363 u0 com.whatsapp/.Conversation)/@0xd6aacfc sb=Rect(0, 0 - 0, 0) eb=Rect(0, 0 - 1080, 2400) d=-1->0 r=-1->0:-1},{null m=TO_BACK f=FILLS_TASK leash=Surface(name=ActivityRecord{9004586 u0 com.whatsapp/.HomeActivity)/@0xe089f85 sb=Rect(0, 0 - 1080, 2400) eb=Rect(0, 0 - 1080, 2400) d=0}]}
09-16 17:12:50.029  1923  2001 V WindowManager:     startWCT=WindowContainerTransaction { changes = {} hops = [] errorCallbackToken=null taskFragmentOrganizer=null }
09-16 17:12:50.029 24367 24675 V WindowManagerShell: Playing animation for (#344)android.os.BinderProxy@d1bcfc9@0
09-16 17:12:50.029  1923  2001 V WindowManager:     info={id=344 t=OPEN f=0x0 trk=0 r=[0@Point(0, 0)] c=[{null m=OPEN f=FILLS_TASK leash=Surface(name=ActivityRecord{d46a363 u0 com.whatsapp/.Conversation)/@0x78d9ab7 sb=Rect(0, 0 - 0, 0) eb=Rect(0, 0 - 1080, 2400) d=-1->0 r=-1->0:-1},{null m=TO_BACK f=FILLS_TASK leash=Surface(name=ActivityRecord{9004586 u0 com.whatsapp/.HomeActivity)/@0xa8d605b sb=Rect(0, 0 - 1080, 2400) eb=Rect(0, 0 - 1080, 2400) d=0}]}
09-16 17:12:50.029 24367 24675 V WindowManagerShell:  try handler com.android.wm.shell.transition.DefaultMixedHandler@404581c

I hope im not revealing any sensitive data .c.

I have video when I use USB, but when i use tcpip it does not appear!

What is the full output in the console when you run over TCP/IP (including the command you executed)?

什么是 AP？对不起，我不是一个习惯首字母缩略词或代码的人，我不是一个程序员。我该怎么做？

I mean, you use the computer to open a portable hotspot.(If your computer supports WiFi), and then use your phone to connect to a wireless hotspot on your computer.Ideally, the Internet connection between the phone and the computer will be very stable.

@rom1v What is the full output in the console when you run over TCP/IP (including the command you executed)?
I executed it and the things happens normally

C:\Users\casa1>scrcpy -m640 -b500k --no-audio --video-codec=h264 --video-encoder=OMX.MTK.VIDEO.ENCODER.AVC --audio-codec=flac --audio-encoder=OMX.google.flac.encoder
scrcpy 2.7 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     --> (tcpip)  192.168.XXX.XX:5555             device  motorola_edge_40_neo
C:\Users\casa1\Documents\programas\scrcpy-win64-v2.7\scrcp... file pushed, 0 skipped. 28.8 MB/s (71200 bytes in 0.002s)
[server] INFO: Device: [motorola] motorola motorola edge 40 neo (Android 14)
INFO: Renderer: direct3d
INFO: Texture: 288x640

Im not sure if i understand, sorry...

I mean, you use the computer to open a portable hotspot.(If your computer supports WiFi), and then use your phone to connect to a wireless hotspot on your computer.Ideally, the Internet connection between the phone and the computer will be very stable.

Hey! I did not know my laptop would have a portable hotspot haha
I tried to use it and... It simply worked well, I simply cant believe lol xD
My phone is not dying, everything goes well!
Im not sure about what happened, but now scrcpy is working normally, I created a hotspot using my laptop to my phone, and I typed the basic and worked!!
My wifi router is Huawei, maybe this has something to do with it.
Thank you so much for your help!! @YanYiGe2023 @rom1v <3


[libzen] Update to 0.4.38

remove patch (merged upstream)
update baseline (UWP support added)

This is great! Thanks @g-maxime :)


Error starting Metricio 1.1.0: The "path" argument must be of type string

This is a perfectly clean install of Metricio. All I did was download the .zip (following the get started guide), extract it to a folder in my user directory and in Powershell run npm install and then npm run start.
I'm on Windows 10 with Node v9.5.0 and NPM v5.6.0
Here's the output:
PS C:\Users\Mike\Projects\react\metricio-1.1.0> npm run start

><EMAIL_ADDRESS>start C:\Users\Mike\Projects\react\metricio-1.1.0
> babel-node app.js

path.js:28
    throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'path', 'string');
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string
    at assertPath (path.js:28:11)
    at Object.join (path.js:489:7)
    at Object.<anonymous> (C:/Users/Mike/Projects/react/metricio-1.1.0/config/paths.js:6:20)
    at Module._compile (module.js:660:30)
    at loader (C:\Users\Mike\Projects\react\metricio-1.1.0\node_modules\babel-register\lib\node.js:144:5)
    at Object.require.extensions.(anonymous function) [as .js] (C:\Users\Mike\Projects\react\metricio-1.1.0\node_modules\babel-register\lib\node.js:154:7)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)
    at Module.require (module.js:604:17)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>start: `babel-node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      C:\Users\Mike\AppData\Roaming\npm-cache\_logs\2018-05-02T21_49_33_538Z-debug.log

Any help would be much appreciated!

Hey @mikehamil10
I'll take a look at this for you. To be honest, I use Linux for most of my development and I have a few macs I tested Metricio on without any issues. I think this might be an issue of me not making more of an effort to make sure this was Windows safe.
Sorry about that. I'll take a look over the next few days and get a new release out ASAP.

Hey @dannycroft thanks for the reply! If nothing immediate jumps out at you, I actually think I might know what my problem is -- I don't have Redis installed on this machine. So perhaps the error message just isn't descriptive enough about the underlying issue.
After doing some searching, I can't even seem to find an up-to-date release of Redis on widows...so I will try to do a "clean" test again on OSX and report back!

Hey @mikehamil10
I've created a new release which will help Windows users but also clearly state any errors there are with Redis not running or being unavailable. I hope that helps. If you get into any more problems just give me a shout :+1:
For installing Redis on Windows 10, I can only forward you to a Medium article  that looks like it might help. I'm not really a Windows guy, sorry.
v1.2.0 - https://github.com/metricio/metricio/releases/tag/v1.2.0

Closing :+1:


Accessing "task_name" in model initializations for task-specific action filtering

Hi,
Thank you for your fantastic work!
I’m currently looking to access task_name within the models, as I need this variable to implement a task-specific action filter. Ideally, I’d like to retrieve task_name in the model’s init, for example in the MLP model here.
Could you provide guidance on how to achieve this?
Thank you :)

#  Copyright (c) Meta Platforms, Inc. and affiliates.
#
#  This source code is licensed under the license found in the
#  LICENSE file in the root directory of this source tree.
#

import hydra
from hydra.core.hydra_config import HydraConfig
from omegaconf import DictConfig, OmegaConf

from benchmarl.hydra_config import load_experiment_from_hydra
from benchmarl.experiment import Callback
from tensordict import TensorDictBase
from benchmarl.models import Model
from typing import List

def get_model_from_policy(policy):
    model = policy.module[0]
    while not isinstance(model, Model):
        model = model[0]
    return model

class TaskNameModelAdder(Callback):
    def on_setup(self):
        self.group = "agents"
        policy = self.experiment.group_policies[self.group]
        model = get_model_from_policy(policy)
        model.task_name = self.experiment.task_name

    def on_batch_collected(self, rollouts: List[TensorDictBase]):
        policy = self.experiment.group_policies[self.group]
        model = get_model_from_policy(policy)
        print(model.task_name)

@hydra.main(version_base=None, config_path="conf", config_name="config")
def hydra_experiment(cfg: DictConfig) -> None:
    """Runs an experiment loading its config from hydra.

    This function is decorated as<EMAIL_ADDRESS>and is called by running

    .. code-block:: console

       python benchmarl/run.py algorithm=mappo task=vmas/balance

    Args:
        cfg (DictConfig): the hydra config dictionary

    """
    hydra_choices = HydraConfig.get().runtime.choices
    task_name = hydra_choices.task
    algorithm_name = hydra_choices.algorithm

    print(f"\nAlgorithm: {algorithm_name}, Task: {task_name}")
    print("\nLoaded config:\n")
    print(OmegaConf.to_yaml(cfg))

    experiment = load_experiment_from_hydra(
        cfg, task_name=task_name, callbacks=[TaskNameModelAdder()]
    )
    experiment.run()

if __name__ == "__main__":
    hydra_experiment()

this will add it after init but before the training.
You could then have something in the model forward that is like
if hasattr(self,"task_name") and self.task_name_not_init:
    inite_task_name()
    task_name_not_init = False

the best solution for having it at init might be to have it as one of the model parameters.
That way you could automatically populace it before running
@hydra.main(version_base=None, config_path="conf", config_name="config")
def hydra_experiment(cfg: DictConfig) -> None:
    """Runs an experiment loading its config from hydra.

    This function is decorated as<EMAIL_ADDRESS>and is called by running

    .. code-block:: console

       python benchmarl/run.py algorithm=mappo task=vmas/balance

    Args:
        cfg (DictConfig): the hydra config dictionary

    """
    hydra_choices = HydraConfig.get().runtime.choices
    task_name = hydra_choices.task
    algorithm_name = hydra_choices.algorithm

    print(f"\nAlgorithm: {algorithm_name}, Task: {task_name}")
    print("\nLoaded config:\n")
    print(OmegaConf.to_yaml(cfg))

    cfg.model.task_name = task_name

    experiment = load_experiment_from_hydra(
        cfg, task_name=task_name, callbacks=[TaskNameModelAdder()]
    )
    experiment.run()

if __name__ == "__main__":
    hydra_experiment()

I wanted to confirm if it's okay that I only run experiments where I get task_name with Hydra using the terminal command python benchmarl/run.py algorithm=causaliql task=vmas/flocking. It's fine, just for asking :)
Additionally, I have already implemented and tested my action filter, but I had to apply a 'hack' related to the self.action_mask_spec variable. Specifically, I found problem (self.action_mask_spec=None) in these lines:(https://github.com/facebookresearch/BenchMARL/blob/dc793b5dce2eeae94be03e7ca72b10b4b16c66db/benchmarl/algorithms/iql.py#L103)
https://github.com/facebookresearch/BenchMARL/blob/dc793b5dce2eeae94be03e7ca72b10b4b16c66db/benchmarl/algorithms/iql.py#L125
I initialized self.action_mask_spec as True because it otherwise remains None and doesn't update correctly. Did I miss any necessary configurations?
In my MLP, I pass actions_mask like this:
...
tensordict.set(self.out_key, res)

actions_mask = # compute action masks
tensordict['agents'].set('action_mask', actions_mask)

return tensordict

Is this related to this issue?
action_mask_spec is a TensorSpec (not a bool) and should be defined in your task class

https://benchmarl.readthedocs.io/en/latest/generated/benchmarl.environments.Task.html#benchmarl.environments.Task.action_mask_spec

Is this related to this issue?
action_mask_spec is a TensorSpec (not a bool) and should be defined in your task class

No, I should open another one, you're right.

Is this related to this issue?
action_mask_spec is a TensorSpec (not a bool) and should be defined in your task class

No, I should open another one, you're right.

https://github.com/facebookresearch/BenchMARL/issues/131#issue-2538430917

were you able to solve it?


need rename OPENSPDM_* to LIBSPDM_*

#define OPENSPDM_RSA_SSA_SUPPORT 1
#define OPENSPDM_RSA_PSS_SUPPORT 1
#define OPENSPDM_ECDSA_SUPPORT 1
#define OPENSPDM_FFDHE_SUPPORT 1
#define OPENSPDM_ECDHE_SUPPORT 1
#define OPENSPDM_AEAD_GCM_SUPPORT 1
#define OPENSPDM_AEAD_CHACHA20_POLY1305_SUPPORT 1
#define OPENSPDM_SHA256_SUPPORT 1
#define OPENSPDM_SHA384_SUPPORT 1
#define OPENSPDM_SHA512_SUPPORT 1

Closing as duplicate.


Fix crashes for point clouds loaded with ModelExperimental

This PR solves two bugs:

#10441 -- if the DracoLoader is unable to schedule a task, it returns undefined, but the code assumed this would always return a valid promise
crash when projectTo2D is used for point clouds loaded with ModelExperimental. PntsLoader deals with attributes differently from GltfLoader and the typed array wasn't being kept around to be processed by SceneMode2DPipelineStage.

Sandcastle for testing both. The "PointCloudDraco" model crashed even without projectTo2D passed in as an option, so make sure it works whether that option is true or false.

Thanks for the pull request @j9liu!

:heavy_check_mark: Signed CLA found.
:grey_question: CHANGES.md was not updated.

If this change updates the public API in any way, please add a bullet point to CHANGES.md.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.

The changes look good to me, and I can confirm that the Draco-compressed model loads fine:

Thanks @j9liu!


[Bug/Question] Heap issue

Hi I'm trying to run a simple example over Stockholm, Sweden and keep running into a heap space issue.
node ./src/cli.js --max-old-space-size=12192 --config car --pbf stockholm_sweden.osm.pbf --graph ../../data/sweden-latest.osrm --agents 2 --iterations 400

<--- Last few GCs --->

[72008:0x102803800]    53467 ms: Mark-sweep 1407.5 (1449.4) -> 1407.5 (1449.4) MB, 1140.7 / 0.0 ms  allocation failure GC in old space requested
[72008:0x102803800]    54866 ms: Mark-sweep 1407.5 (1449.4) -> 1407.5 (1433.4) MB, 1398.3 / 0.0 ms  last resort GC in old space requested
[72008:0x102803800]    56185 ms: Mark-sweep 1407.5 (1433.4) -> 1407.5 (1433.4) MB, 1319.1 / 0.0 ms  last resort GC in old space requested

<--- JS stacktrace --->

==== JS stack trace =========================================

    0: ExitFrame [pc: 0x2685a130427d]
Security context: 0x2dfbe80206a9 <JSObject>
    1: /* anonymous */ [<redacted>/node_modules/trip-simulator/src/simulation.js:~44] [pc=0x2685a13698ba](this=0x2dfb4fe1d251 <JSGlobal Object>,item=0x2dfbd1a9b2c1 <Object map = 0x2dfb28eefe41>)
    2: arguments adaptor frame: 3->1
    3: forEach(this=0x2dfbbd605569 <JSArray[2405817]>)
    4: /* anonymous */ [<redacted>...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [<redacted>/nodejs/10.0.0/bin/node]
 2: node::FatalTryCatch::~FatalTryCatch() [<redacted>/nodejs/10.0.0/bin/node]
 3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [<redacted>/nodejs/10.0.0/bin/node]
 4: v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [<redacted>/nodejs/10.0.0/bin/node]
 5: v8::internal::Runtime_AllocateInTargetSpace(int, v8::internal::Object**, v8::internal::Isolate*) [<redacted>/nodejs/10.0.0/bin/node]
 6: 0x2685a130427d
 7: 0x2685a13698ba
Abort trap: 6

I've tried with node 8.5 and 10 (OSRM didn't work with 12). Do you have any suggestions on which node version to use?
Br,
Mats

Looking at the code I guess the Map (this.nodes) in simulation.js might be growing too big?
How large of an area would you say is possible?

Hi @sweco-semtne, can you give me an estimate for file size? It should work well with a metro area. If this is a geofabrik or nextzen extract, I can also try debug directly on my machine.

Hi!
-rw-r--r--@ 1 semtne  staff  63475133  2 Jul 11:12 /<redacted>/stockholm_sweden.osm.pbf

So ~63 MB. But the road network is for the whole of Sweden right now.
But it seems it blows up already in the node "cache".


Validation fails when putting step="1" in a "datetime-local" input type

Subject of the issue
When I put step="1" in a datetime-local input field to show seconds, if I'm validating that field with the plugin (just "required", for example), I get a javascript error saying "Step attribute on input type datetime-local is not supported". If I put this step="1" in a field that is not being validated, it works without problems.
Your environment

jquery-validate 1.16.0
Chrome (Versión 59.0.3071.115 (Build oficial) (64 bits))

Steps to reproduce
Just create a datetime-local input field with step="1", and try to validate it with required.
Expected behaviour
When you put step="1" in a datetime-local field, the field shows seconds (by default you can just see minutes because default value is step="60")
Actual behaviour
If the step="1" is in a field that is being validated with the plugin, you get a Javascript error with message "Step attribute on input type datetime-local is not supported".

Hi,
Have same issue here. Is there any known workaround?
Thanks.

please provide a jsfiddle showing the problem, thx.

Here is the example:
https://jsfiddle.net/na6Lqpar/

awesome, thx

I've setup a very complete jsbin to compare native html5 validation with each date type that demonstrates several issues related to min/max calculations and breakage due to the "step" attribute.
https://jsfiddle.net/w8jpygr2/

ran into this issue recently, and due to the exception thrown, another field won't validate anymore.
As this is a very long lasting issue already, I have created a solution for my case : step="1" on a "time" input field using "hh:mm:ss" as format.
		// https://jqueryvalidation.org/step-method/
		step: function( value, element, param ) {
			var type = $( element ).attr( "type" ),
				errorMessage = "Step attribute on input type " + type + " is not supported.",
				supportedTypes = [ "text", "number", "range", "time" ],
				re = new RegExp( "\\b" + type + "\\b" ),
				notSupported = type && !re.test( supportedTypes.join() ),
				decimalPlaces = function( num ) {
					var match = ( "" + num ).match( /(?:\.(\d+))?$/ );
					if ( !match ) {
						return 0;
					}

					// Number of digits right of decimal point.
					return match[ 1 ] ? match[ 1 ].length : 0;
				},
				toInt = function (num) {
					if (type && re.test("time")) {
						var a = value.split(':');
						return (a[0]*3600 + a[1]*60 + a[2]*1);
					}

					return Math.round( num * Math.pow( 10, decimals ) );
				},
				valid = true,
				decimals;

rest of the code omitted as it is not changed.
I added the "time" to the supportedTypes, and I added code in the toInt to handle the time.
I am aware that this is not a full solution, but maybe it'll help others, or maybe it helps to get this issue solved.


test code

Thanks for contributing to TVM!   Please refer to guideline https://tvm.apache.org/docs/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from Reviewers by @ them in the pull request thread.

@tvm-bot rerun

@tvm-bot rerun

@tvm-bot rerun

@tvm-bot rerun

@tvm-bot rerun

@tvm-bot rerun

@tvm-bot rerun

@tvm-bot rerun

@tvm-bot rerun

@tvm-bot rerun

@tvm-bot rerun

@tvm-bot rerun

@tvm-bot rerun

@tvm-bot rerun


Support Left Sidebar

[ ] Support Another Embed Plugin
[ ] Favorite and Recent

How about the right sidebar? There's Content Page which still remains the long  namespace-name...


:bug: Loop: mcContent status is missing on some loops

Describe the bug
Some loops has empty mcContentStatus both on screen and in Excel report.
I guess this is because some loops has tags with register type "Function" wich will never have a mcStatus or commPk/mcPk.
( Tags with register Function or signal is software functions/not physical equipment )
To fix this we can do one of two things when calculating the worst status:

Do not take into account tags with register "Function" and "Signal"
Do not take into account tags with empty commPk

Because of this calculation, also the actual mcContent complete is empty .
Reproduce
Open Loop 24-0026 and see that it has empty mcContentStatus
Business Value / Developer Experience
The person hired as loop-coordinator at Johan Castberg need correct data to prioritize correctly
Screenshots
The tags inside the drawn squareBrackets is function-tags

User Acceptance Tests (UAT)

How to test

[x] Loop 24-0026 should have OK mcContentStatus
[x] MC status should be shown in checklist table, similar to JC portal.

@atlewee Extensive and very good description!

1/2 fixed
Loop 24-0026 should have OK mcContentStatus
fixed by changing calculation in fam to exclude register types "function" | "signal"

MC status should now be visible. I've added the changes to test. Can you and verify  @AreWiv ?
https://webserver-fusion-project-portal-test.radix.equinor.com/apps/loop/94dd5f4d-17f1-4312-bf75-ad75f4d9572c?tab=grid&item=ed187f3b-28c2-c84b-e053-2810000a69dd

@atlewee Changes have now been pushed to production. FAM have also pushed the logic changes of calculating the worst status. So it works as intended now.

@atlewee can this be closed now?

Yup! looks perfect now :)


Finalize general UI layout

Experimenting with Figma for major UI changes including colour scheme, layout of components in the view

Work on implementing the pages and components depicted on the Figma here
and making all of the features depicted on the Figma are functional (i.e. buttons, login, transcript upload, and more).

Done as of Thursday 1 December 2022. In the future (if we worked on this full-time), think about accessibility of the website and how it can be designed to be accessible by more people with various disabilities (colour-blind, slow internet, poor technological skills, browser issues, etc)


General Cleanup

[x] Modify sendMemReq so that it does not use DecoderPkt.
[x] Remove the MemUnit directory. Remove Ifc.v. Rename Impl.v Mem.v. Move memTranslate to Mmu.v (Murali)
[x] Move the MemUnit directory into the Mem directory. (Murali)
[x] Rename the Devs directory to Devices
[x] Move the definitions in Devs/Ifc.v into Dev.v
[x] Move Dev.v to the top level directory as Device.v.
[X] Replace all instances of "Dev" with "Device" (Except "DevRouter").
[X] Remove the instances of procMem from ModelMemParams.v (these instances will be defined in ProcessorCore.v)
[x] Move the Mem directory into GenericPipeline (Murali)
[x] Combine RiscvIsaSpec/CsrFuncs.v and RiscvPipeline/Csr.v
[x] Get rid of RiscvPipeline
[ ] Remove all spurious import statements
[ ] Check to see if you can remove all dependency context variables from each file and remove explicit arguments using the @ notation. If you cannot, then remove the backtick notation from the context variables and provide explicit arguments using the @ notation.

[ ] RiscvPipeline/Mem should be renamed to Pipeline/MemIfc

Take note of the following in Decoder/Decompressor:
a) Most definitions are local, except for 1 or 2 which are exported outside the module
b) All variables (except ty) are Context
c) ty comes after all the other contexts are defined
d) Open Scope is always Local Open Scope, with an explicity Local Close Scope - for kami_expr and kami_action

Regarding `, my suggestion is to remove it completely
3:07
I will do another pass to make that work
3:07
because it is, as you say, confusing
3:07
Wait
3:07
remove it completely only for MemIfc and Pipeline


Open "New Issue" on "Report issue"

use this link instead
https://github.com/StackStorm/st2web/issues/new
While testing...

The reason I haven't used that link is because I want user to first see all the issues we already have and try to find it there before creating new one.

Obsolete: we have the re:Amaze widget now.


nil dereference in Request fixed

@wyaeld  Please take a look. Need fix god nil reference error on error response.

This looks good, ill pass onto Paolo to merge


Using apollo vscode plugin shows error

The apollo vscode plugin crashes because there is more than one version of every graphql document created when generating code.
Error initializing Apollo GraphQL project "graphql": Error: There are multiple definitions for the queryTodoById operation. Please rename or remove all operations with the duplicated name before continuing.
I believe this is due to the index.ts file being generated by the hasura plugin, and then the typescript code generators picking up this file and generating their respective documents from it.
I'm not sure if it was intended to be used with the vscode plugin, but I think it would be a great help if the actual name was not duplicated.

Hi @mwarger
This is a side-effect of leveraging graphql-code-generator to generate the base types (which includes a gql duplication step).
You should be able to use a config file for the Apollo VSCode Plugin to ignore the duplicate set of gql definitions. As an example, here is the one I use:
// apollo.config.js
module.exports = {
  client: {
    excludes: ["src/gql/noref/**/*"],
    service: {
      name: "csee",
      localSchemaFile: "./schema/graphql.schema.json"
    }
  }
};

A future enhancement to this library could be to replace the graphql-code-generator step with custom base type code generation, which would negate this issue.

Thank you! I did not see that the Apollo config had that option.


Fix video description naming

Description
Fix video description naming
Motivation and Context
Originally the name is incorrect, rename to a better one
Types of changes
What types of changes does your code introduce? Put an x in all the boxes that apply:

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds core functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation (update in the documentation)
[ ] Example (update in the folder of example)

Checklist
Go over all the following points, and put an x in all the boxes that apply.
If you are unsure about any of these, don't hesitate to ask. We are here to help!

[x] I have read the CONTRIBUTION guide. (required)
[ ] My change requires a change to the documentation.
[ ] I have updated the tests accordingly. (required for a bug fix or a new feature)
[ ] I have updated the documentation accordingly.

yes, that would be better


Does not register eagerly emitted event

Describe the bug
wrapper.emitted() does not register an emitted event if it was called by watch with immediate: true option
Reproduction
https://github.com/taigabrew/vue-test-utils-bug-48cb54ce
System Info

Operating System: macOS Catalina 10.15.7
Node version: v14.15.1
yarn version: 1.22.4
Installed vue-jest version 5.0.0-alpha.6
Installed @vue/test-utils 2.0.0-beta.10

I investigated this. I thought it might be related to setProps, but this works:
  it('works with watch immediate: true', async () => {
    const Comp = defineComponent({
      props: {
        foo: {
          type: Number,
          default: 0,
        },
      },
      emits: ['update'],
      setup(props, { emit }) {
        watch(() => props.foo, val => {
          emit('update', val)
        }, { immediate: true })
      },
    })
    const wrapper = mount(Comp)
    await wrapper.setProps({ foo: 1 })
    console.log(wrapper.emitted()) // contains update with 1 as the payload
  })

But actually the problem is we are using a mixin that uses the beforeCreate lifecycle hook, which is AFTER setup: https://github.com/vuejs/vue-test-utils-next/blob/0b4f762790dc20e386ac69c8cb13f5bea43871f3/src/mount.ts#L401
If you do something like:
setup(_, { emit }) {
  onMounted() {
    emit('update')
  }
}

It will capture it. That could be a good work around.
I cannot think of a good way to capture events from setup right now 🤔

I am sure we have explored this before and I don't think there is any way to override emit in setup before the beforeCreated hook, so as far as I know this is not something we can currently solve.
Another work-around would be wrapping your component and using a mock function:
  it.only('works with watch immediate: true', async () => {
    const Comp = defineComponent({
      props: {
        foo: {
          type: Number,
          default: 0,
        },
      },
      emits: ['update'],
      setup(props, { emit }) {
        watch(() => props.foo, val => {
          emit('update', val)
        }, { immediate: true })
      }
    })
    const onUpdate = jest.fn()

    const Wrap = {
      render() {
        return h(Comp, { onUpdate })
      }
    }

    const wrapper = mount(Wrap)
    // await wrapper.setProps({ foo: 1 })
    expect(onUpdate).toHaveBeenCalled()
  })

I think this is probably the best option right now, unless we can find a way to override emit and capture events in setup (before the beforeCreate lifecycle is executed and we can start tracking emitted events).
We might want to add this to the docs somewhere, I don't expect to solve this any time soon. At least there is a workaround.

Ok. I understood. Thank you for fast reply!
I think information about lifecycle hooks gotchas of setup use would help.
For now I am stick with workaround.
Once again,
Thank you!


kube-bench: 0.9.3 -> 0.9.4

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/aquasecurity/kube-bench/releases.
meta.description for kube-bench is: Checks whether Kubernetes is deployed according to security best practices as defined in the CIS Kubernetes Benchmark
meta.homepage for kube-bench is: https://github.com/aquasecurity/kube-bench
meta.changelog for kube-bench is: https://github.com/aquasecurity/kube-bench/releases/tag/v0.9.4
Updates performed

Golang update

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.9.4 with grep in /nix/store/r99xrdc9ygagkig4y4qvassg6ssjszn5-kube-bench-0.9.4
found 0.9.4 in filename of file in /nix/store/r99xrdc9ygagkig4y4qvassg6ssjszn5-kube-bench-0.9.4

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

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

kube-bench

Instructions to test this update (click to expand)

Either download from the cache:
nix-store -r /nix/store/r99xrdc9ygagkig4y4qvassg6ssjszn5-kube-bench-0.9.4 \
  --option binary-caches 'https://cache.nixos.org/ https://nixpkgs-update-cache.nix-community.org/' \
  --option trusted-public-keys '
  nixpkgs-update-cache.nix-community.org-1:U8d6wiQecHUPJFSqHN9GSSmNkmdiFW7GW7WNAnHW0SM=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

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

Or:
nix build github:r-ryantm/nixpkgs/baaca5ddd85ad58c04322364a2be0ac532f47667#kube-bench

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/r99xrdc9ygagkig4y4qvassg6ssjszn5-kube-bench-0.9.4
ls -la /nix/store/r99xrdc9ygagkig4y4qvassg6ssjszn5-kube-bench-0.9.4/bin

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

x86_64-linux

:white_check_mark: 1 package built:

kube-bench

Maintainer pings
cc @06kellyjac for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

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

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 367748

aarch64-darwin

:white_check_mark: 1 package built:

kube-bench


Update axios to v1.7.4

Addresses security issues https://github.com/axios/axios/releases/tag/v1.7.4

Fixes #637


docs: migration guide as blogpost refactor

The idea is that we document changes as a blogpost only

replaced by: https://github.com/operator-framework/java-operator-sdk/pull/2632


Add HDFS

https://artifacthub.io/packages/helm/gaffer/hdfs
https://stackoverflow.com/questions/61736885/how-can-i-deploy-hdfs-hadoop-distributed-fs-to-a-k8s-kubernetes-cluster

Close to in favor of #3297


Taiko with Firefox browser - Error: The Browser instance was closed either via closeBrowser() call, or it exited for reasons unknown to Taiko. You can try launching a fresh instance using openBrowser() or inspect the logs for details of the possible crash.

Discussed in https://github.com/getgauge/taiko/discussions/2697

Originally posted by karishmayadava23 April 11, 2023
Hi Team,
Note - I did set the system env variable to executable firefox file path.
While launching taiko with Firefox getting below issues

npx taiko scriptfile.js - Launching the firefox with below error and terminating the execution

npx taiko - launching browser , and displaying the same error but not getting out of the repl mode. For performed action displaying no logs on terminal such that navigated to url . when gave closeBrowser() terminal displays browser is closed but it is  not

taiko version - Version: 1.3.9 (Chromium: 110.0.5478.0) RELEASE
node version - v18.15.0
firefox nightly version -

Did you manage to solve the above? I am facing a similar issue with chrome, once every dozen executions or so, and wasn't able to handle it yet... (try/catch doesn't help)

Can you share what your code looks like?

Sorry, I cannot share the code, the structure is very simple - it opens a browser, with some flags, runs some tests and continues over and over..
After long analysis it is discovered that if there are certain network issues, which the browser faces when trying to surf the web, Taiko is unable to handle them and thinks the browser was closed (hence throws this error).
In our case it ended up being some network misconfiguration, which we fixed, and made the issue go away - but probably proper error handling needs to be added to Taiko for these.


Disable the use of API-key on Access settings page when "Remote configurable without a password" option is set

link

QA passed


Add simple textarea for environment variables

Fixes #31
This adds a simple textarea for env variables when creating a new project. This should be fully BC - if no "env" parameter is given to the API (or it is falsy/blank), then no ".env" file is created.

Thanks a lot for your contribution!


Fusion Endpoint tests fail when running on windows.

The tests run in Fusion Endpoint fail in the windows builds.
Currently the failing set is [ERROR] Tests run: 330, Failures: 19, Errors: 0, Skipped: 5
See nightly run for windows in 9.0 and 10.0

Thanks for reporting. Let me close this, as we’re going to move the Fusion Endpoint module to our repo, see #208


First draft

Semi drafty, feel free to merge directly or wait until it looks better with more implemented

@mmzdouc I think I am happy with this first version.
It could spot two errors in the "incorrect" json (mibH and rebH) I manually corrected to now pass without errors (you can see the changes of the ones here locally vs the ones in your mite-reference repo)

Fixed the module reference in the dummy test.


PostInChat reports an error.

I think the behaviour slightly changed since the last Foundry major. Easy to fix, but I want to take this as an opportunity to implement some mocking for the ChatMessage object. This will be useful when we tackle #31.

And once again, this issue is turning out to be much more complex than anticipated:
Our way of dealing with ChatMessages is a hack. We call the Hook function explicitly, and misuse the error return bool to signal that we have already posted the message.


SystemUiOverlayStyle animations

Use case
In some cases we might want to animate a system UI. Currently we have to write our own code to make it possible: save previous style, provide some global ticker, even implement SystemUiOverlayStyleTween. All these functionalities should be in the core framework, for my opinion, and I don't understand why they aren't yet, honestly.
Proposal
My proposal is to add to framework something like this
This is of course can't be used in the way it's written directly in the framework, just a working example that serves a purpose

One flaw of this implementation: if you call animateSystemUiOverlay and await for it in main for it before runApp call, the app will never launch, because as far as I understand, tickers do not tick before runApp is called. I would like to add a warning for this to my library. How do I know if ticker providers will give me ticks?
Code sample:
Future<void> main() async {
  await NFSystemUiControl.animateSystemUiOverlay(
    to: SystemUiOverlayStyle.dark,
    curve: Curves.easeOut,
    settings: NFAnimationControllerSettings(
      duration: const Duration(milliseconds: 550),
    ),
  );
  // This line is nerver reached
  runApp(App());
}

Ok