Extract Text Plugin does not work in child compilations

From https://github.com/jantimon/html-webpack-plugin/issues/579
The root problem is that the extract text plugin uses kind of a hack to communicate between loader and plugin. (See here https://github.com/webpack-contrib/extract-text-webpack-plugin/blob/master/index.js#L216-L227 and here https://github.com/webpack-contrib/extract-text-webpack-plugin/blob/master/loader.js#L26)
This hack works only in the main compilation however the html-webpack-plugin is using a child compilation.
This might add a feature request for the webpack core (easier communication between loaders and plugins)

This might add a feature request for the webpack core (easier communication between loaders and plugins)

This actually raises an interesting question. How to associate a loader or loaders with some specific plugin? Perhaps this means there needs to be a concept of identity. webpack core already uses something known as ident. If we went with that, you would pass ident field through a loader/plugin to associate them with each other (probably many to many should work too).

Is there anything new happend recently in terms of webpack core ? How to start with this, any ideas?

Please ask Tobias for details.

Maybe #483, but I didn't take a deeper look at it

So it looks like this isn't getting fixed any time soon :/ because ultimately, #483 needs https://github.com/webpack/webpack/pull/4704, which contains breaking changes and therefore will wait until webpack 3.

Any progress besides that?

Given this is dependent on multiple semver: Majors upstream as well as at least two in extract-text-webpack-plugin all of which require coordination, testing, beta builds => bug fixes the only thing anyone can tell you for certain about the time frame is it's certainly too early to be asking about.

I saw that webpack 3 is out and was wondering about the current status of this issue?

@zfanning #483 should have fixed it :)

I am still seeing this error using webpack 3.4.1.

Webpack 3.10.0 is still affected.

@PTC-JoshuaMatthews can you create minimum reproducible test repo and create new issue

my gem 'webpacker', '~> 3.2' version,
and I am stuck with this issue
https://stackoverflow.com/questions/55130980/error-extract-text-webpack-plugin-loader-is-used-without-the-corresponding-pl


Allow for optional multipart form content parameters

Similar to the issue described in https://github.com/Azure/autorest/issues/1629, there currently is an issue with optional stream parameters as part of multipart form contents.
The scenario is the following:

The API defines a POST or PUT operation that takes (possibly along with other parameters) an optional parameter using multipart form data content

in my project, it was an ASP.NET Core 2.1 controller method that had several parameters bound to Route & Query string, plus an IFormFile parameter bound to the request body. The IFormFile parameter is optional

The generated client checks if the stream passed into the call is != null before adding it to the MultipartFormDataContent (which is correct)
But this also implies, that the generated MultipartFormDataContent contains no actual content, but is still set as the http requests content
This in turn will lead to an error in the ASP.NET Core model binder, because it will try to fill the IFormFile parameter instead of setting it to null (which it does if the request body is empty)

The fix is to only set the request content to the MultipartFormDataContent instance, if the MultipartFormDataContent instance actually contains any content.

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

For now, closing PRs for v2 changes. If there is business justification for this PR, we can reopen.

Business justification for the project I needed this fix for? Not any more after 10 months 😅
Nevertheless, it seems like a bug to me that needs fixing - don't know if thats true and what the business justification for this might look like.

@ChristianEder Our v3 generator will have multipart support built-in at release. So, we aren't really focusing on changes to the v2 generator at this point. But, I'll make sure this scenario is covered. I added an issue here: https://github.com/Azure/autorest.csharp/issues/306


text field stuck in second field box

i am unable to enter the text field values in sumsang device but it's working fine in pixel device.  your sample project is working fine but any implementation as a library getting stuck in 2nd field.  Kindly sync your project or update library code

Will look into it as soon as possible.

@mohsiniqbalcui Hi there, just tried with a Samsung device and seems like there is no problem with my use case. Can you send yours so I can look into it furthermore.

it's getting stuck in second field in sumsang a03 and in vivo s1 pro.

I cannot create your issue with Samsung Galaxy S20 FE. Need more detailed scenario and code.

Hi @tarikyasar Yes its stucking on the second box:
OtpInput(otpValue = otpValue, onValueChange = { newValue, isValid ->
otpValue = newValue
})
        @Composable

fun OtpInput(otpValue: String, onValueChange: (String, Boolean) -> Unit) {
// this config will be used for each cell
val defaultCellConfig = OhTeePeeCellConfiguration.withDefaults(
    borderColor = Color.LightGray,
    borderWidth = 1.dp,
    shape = RoundedCornerShape(16.dp),
    textStyle = TextStyle(
        color = Color.Black
    )
)

OhTeePeeInput(
    value = otpValue,
    onValueChange = onValueChange,
    configurations = OhTeePeeConfigurations.withDefaults(
        cellsCount = 6,
        emptyCellConfig = defaultCellConfig,
        cellModifier = Modifier
            .padding(horizontal = 4.dp)
            .size(48.dp),
    ),
)

}

I am also having the same problem

Thanks for detailed explanation @canonall, @aliCashGate. I will be looking into it as soon as possible.

@tarikyasar Any update regarding this?

Hi @aliCashGate, me and @ilyasipek spent a fair amount of time trying to replicate the issue but sadly we couldn't be able to.  Since it's an open source library, we would be really happy if you would give it a try :)

@tarikyasar I am also having the same problem but it happens when I use it as a library in other projects, in the example project works very well

@mlmesa2 oh I see, I will try it out in another project today and let you know.

I'm also experiencing this. Interesting fact: everything worked fine when I only had a dependency on compose-bom = "2023.10.01" but as soon as I added an extra dependency on compose-material3 = "1.2.0-alpha11" it stopped working.

FYI: Specifying the alpha version of material3 means that 1.1.2 is no longer used:
androidx.compose.material3:material3:1.1.2 -> 1.2.0-alpha11

Using the alpha version of material3 pulls in a whole bunch of other alpha versions of compose libraries:
+--- androidx.compose.material3:material3:1.2.0-alpha11
|    +--- androidx.compose.foundation:foundation:1.6.0-alpha08 (*)
|    +--- androidx.compose.foundation:foundation-layout:1.6.0-alpha08 (*)
|    +--- androidx.compose.material:material-icons-core:1.6.0-alpha08
|    |    +--- androidx.compose.ui:ui:1.6.0-alpha08 (*)
|    |    \--- androidx.compose.material:material-ripple:1.6.0-alpha08 (c)
|    +--- androidx.compose.material:material-ripple:1.6.0-alpha08
|    |    +--- androidx.compose.foundation:foundation:1.6.0-alpha08 (*)
|    |    +--- androidx.compose.runtime:runtime:1.6.0-alpha08 (*)
|    |    \--- androidx.compose.material:material-icons-core:1.6.0-alpha08 (c)
|    +--- androidx.compose.runtime:runtime:1.6.0-alpha08 (*)
|    +--- androidx.compose.ui:ui-graphics:1.6.0-alpha08 (*)
|    \--- androidx.compose.ui:ui-text:1.6.0-alpha08 (*)

There's probably something in of of these alpha versions that breaks ohteepee :(

I got the same issue in several devices! any updates about this problem?

Fix with 1.0.4 version, can you test that.
Thanks for your feedbacks and @litrik you were right it's a material3 issue we solved it after your comment thanks 🙏


Does not build with create-react-app

I use react-calendar-timeline together with create-react-app but 0.15.0 don't build:
./~/react-calendar-timeline/src/lib/Timeline.js
Module parse failed: .../node_modules/react-calendar-timeline/src/lib/Timeline.js Unexpected token (73:19)
You may need an appropriate loader to handle this file type.
|
| export default class ReactCalendarTimeline extends Component {
|   static propTypes = {
|     groups: PropTypes.oneOfType([PropTypes.array, PropTypes.object]).isRequired,
|     items: PropTypes.oneOfType([PropTypes.array, PropTypes.object]).isRequired,

I don't want to eject my projects to include more loaders in the build process which makes it impossible to use this version.
(Thanks for a great product, by the way!)

Hi, the problem is closely connected to this point in the readme.
The issue is that your app need to have babel-plugin-transform-class-properties enabled. While we ship transpiled ES5 code with the module, webpack 2+ uses the original ESnext code by default, which needs this plugin.
So there are two options: use the transpiled code or install the plugin.

To use the transpiled code, simply switch your include statement to this:

// import Timeline from 'react-calendar-timeline' // old
import Timeline from 'react-calendar-timeline/lib/lib/Timeline' // new

This path may change in the future, so pay attention to the changelog when upgrading!

Install the babel plugin... or at least all stage-2 plugins (or even stage-0). It's probably easiest to install custom-react-scripts

yarn add custom-react-scripts
yarn remove react-scripts

Then add this line to a file called .env:
REACT_APP_BABEL_STAGE_0=true

Then you may import the component like you would normally
import Timeline from 'react-calendar-timeline'

Using custom-react-scripts worked great for me when i was running into this same issue using webpack 2+. Thanks so much!!

@mariusandra I have similar but little bit different issue. I am using create-react-app for building the app. The app works fine in development mode but when I run the production build using serve -s build, I can't see anything on timeline but headers and sidebar. I can't even scroll or see any items. This is how it looks.


Configure pg_hba.conf file

Default is not sufficient as the authentication method for superuser (i.e. postgres) is set to trust and due to that setting the authentication method of all users using POSTGRES_INITDB_ARGS fails saying that it requires password for superuser. There are two options here, set the password for superuser using POSTGRES_PASSWORD (a bit hacky) or provide a cleaner API to configure authentication methods with services-flake.

I'm not entirely familiar with this part of postgres, but if it is needed for nammayatri let's do it.

I have used this before. It is not very useful if the postgres server is limited to your local machine, but when you want to expose your postgres on a network (for example, to keep the postgres on a separate machine for loadtest) and configure authentication rules for the users this can be a helpful addition.

@srid I have decoupled the hbaFile creation logic out of settings and also included a nixOS test to check for the usage of hba_file by postgres. Looks good to me, should I go ahead and merge?


Setting border radius size using rounded-X overrides rounded-end

Operating system and version (Windows, macOS, Android, iOS): Windows 10
Browser and version (Chrome, Firefox, Safari, Microsoft Edge, Opera, Android Browser): Edge 89
A reduced test case or suggested fix using CodePen or JS Bin

With Bootstrap 5.0 Beta2:

Test

Expected: Rounded border on end corners with large radius
Actual: Rounded border on all four corners.

Those class cannot be complementary, however you may want to introduce new utility like rounded-end-3 to to do what you want.
I'm not in favor of such things in our core, but it can easily be added on a custom build using our Utility API.

Agreed with @ffoodd. Utilities don't modify one another at this time.


Process is killed after await mvn.execute

Hello,
I was planning to use this library in a jest integration test. My idea was to start my backend perform tests and stop the backend. At first everything looks good. The backend starts, and the test begin. However the backend is stopped again before the tests begin.
This is the code I use
beforeAll(async () => {
  jasmine.DEFAULT_TIMEOUT_INTERVAL = 15000;
  await mvn.execute("spring-boot:start"); //backend starts up
  //process is gone, all tests fail :-(
});

it('renders without crashing', async (done) => {
//...
}

afterAll(async () => {
  await mvn.execute("spring-boot:stop");
});

and this the documentation of the springboot plugin
https://docs.spring.io/spring-boot/docs/current/maven-plugin/plugin-info.html
I'm on Windows

ok sorry my fault this also happen in my console. this can be closed

Ok. Closing the issue. ;-)


Fix use of temporary path to managed binaries

Overview
When using command -v, I noticed Frum is pointing to temporary paths for all Ruby related binaries. I assume this is a bug?
Steps to Recreate
brew install frum

export FRUM_DIR="$HOME/.cache/frum"
eval "$(frum init)"

frum install 3.0.2
frum global 3.0.2
gem install pennyworth

# Notice the following paths all use temporary directories instead of the Frum cache as defined above.
command -v ruby        # => /var/folders/j1/szrwbp9d1jg351ghw4f7bcym0000gn/T/frum_1956_1627218393720/bin/ruby
command -v pennyworth  # => /var/folders/j1/szrwbp9d1jg351ghw4f7bcym0000gn/T/frum_1956_1627218393720/bin/pennyworth

Desired Behavior
I would expect to see the full path to where the Frum cache is located. So something more along these lines, for example:
$HOME/.cache/frum/versions/3.0.2/lib/ruby/gems/3.0.0/gems/pennyworth-11.1.1/bin

Environment

Operating System: macOS 11.5 (20G71)
Frum: 0.1.0

Thank you for opening the issue. It is not a bug. frum uses temp dir to switch ruby versions in the following functions.
https://github.com/TaKO8Ki/frum/blob/b5b7a8acb676da410120adcbc12988b3b6a89db8/src/commands/init.rs#L51-L61

@bkuhlmann
Do you have any reason why you want to see the full path?

Hey Takayuki, yep, it's because of a several of reasons:

Necessary to debug ruby and/or gem dependency issues. It's much easier to use command -v to discover which directory I need to jump into to open up source code and even manipulate directly.
I haven't tested this yet, but I think this breaks use of gem pristine? So if I edit source, but want Ruby Gems to revert the manipulated gem back to it's pristine/original state will that work?
For documentation purposes, it's extremely handy to write documentation which points to real directory information with specific version information. For example, this weekend, I was having a discussion related to a macOS specific application and I was trying to show which versions of Ruby I was using but couldn't use command -v to obtain that information quickly because I needed the exact path to the binary. 😅
Use of command -v or which should always report the exact path. Current Frum behavior actually breaks that contract we have all come to be used on on Linux systems.
Using the exact path makes using tools like fzf, bundler, etc. much easier to dynamically find source locations or compute version comparisons, etc.
Current Frum behavior deviates from any of the existing Ruby Version Mangers: RVM, rbenv, chruby.

I hope that helps? There is a lot of power in seeing the exact paths. It also helps keep my mind sane when trying to understand the different between the temporary folders and what's in Frum cache. Not having a one-ot-one correlation is definitely hard to reason about or even explain to fellow engineers who are not familiar with Frum.

@bkuhlmann
The temp dir frum uses is just a symlink to a specific ruby version directory. So you can see the full path of your Ruby binary like the following workaround. $FRUM_MULTISHELL_PATH is an environment variable and the path to the Ruby version directory you use. fnm, Node.js version manager written in Rust, also uses temp dir to switch Node.js versions and I created frum referencing fnm.
$ echo "$(readlink $FRUM_MULTISHELL_PATH)/bin/ruby"

It also helps keep my mind sane when trying to understand the different between the temporary folders and what's in Frum cache.

As mentioned above, the temp dir is just a symlink. So there is no difference between them.
Do you think it would be useful to improve frum so that frum can show the fully resolved binary path of the current Ruby version like the following?
$ frum path
=> /Users/foo/.frum/aliases/default/bin/ruby

Takayuki: the temp dir is just a symlink. So there is no difference between them.

Thanks! I will use "$(readlink $FRUM_MULTISHELL_PATH)/bin/ruby" going forward as that will make documentation much easier for me.

Do you think it would be useful to improve frum so that frum can show the fully resolved binary path of the current Ruby version like the following?

Yeah, I think it would be most welcome. Mainly because it won't be surprising for people using standard inspection tools like command or which. Plus, this would match parity with other Ruby Version Managers too and help encourage adoption. :tada:

That's good to hear. Thank you for your opinion!


Minimal fix for msvc17

See https://github.com/stxxl/stxxl/issues/57
This PR fixes the only two compile errors existing for Visual Studio 2017 (static build)

https://github.com/stxxl/stxxl/issues/57


Sort Waits by Instance Tool Tip

Could we sort the Tool Tip on the Waits: Instance graph on the Performance tab descending by %?  That would make it easier to see which waits are the heaviest in sequence.

Hi,  thank you for the suggestion.
The sort order is based off the data returned from this query:
https://github.com/trimble-oss/dba-dash/blob/main/DBADashDB/dbo/Stored Procedures/Waits_Get.sql
I know the query could be altered to return the waits by total wait for the whole period.  So the top wait could be listed first but this would be the top wait for the hour rather than the 2min period you are hovering over.  The top wait might not always be listed first and the order might appear more random if there is a bit of variation in the waits.
I'm not sure if it's possible to change the sort order on a per period basis - at least not without some work.
I might consider improvements to this as part of issue #35.

Wait tooltip will now be sorted by total wait time.  This will be the overall wait rather than the wait time for each period.  The top 3 waits will also be listed in the title bar.
#508

Included in 2.33.0 🎉


Incompatible with Babel 6.0.0

Babel 6 was released recently, which introduced a number of very breaking changes to the API. Specifically, the NodeJS API has moved from babel to babel-core.
This has broken the ES6 Module Loader.

+1 it's quite busted with browserify too (and consequently my babelify setup).
The when dependency tries to include ./makePromises, which doesn't resolve because the require has already been replaced.
Error: Cannot find module './makePromise' from '/Users/drew/dev-local/glsl-park/node_modules/es6-module-loader/node_modules/when/es6-shim'

+1

With Babel 6, transpilation workflows will move to be always plugin-based. This support is being tracked at https://github.com/systemjs/systemjs/issues/953.

Tracking in https://github.com/ModuleLoader/es6-module-loader/issues/463.


it does not work as expected!

Dear TylerCarlson,
Could you take time to look below simple example?
I want update exist blog with late-added post, since the exist blog already has 2 posts, and new blog has 1 post, so I expected the updated exist blog should has 3 posts, but it did not happen.
thank you very much!
using AutoMapper;
using AutoMapper.EquivilencyExpression;
using AutoMapper.Mappers;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UnitTest
{
public class Blog
{
    public Blog()
    {
        LstPost = new List<Post>();
    }
    public int BlogId { get; set; }
    public string BlogUrl { get; set; }
    public List<Post> LstPost { get; set; }
}

public class Post
{
    public int PostId { get; set; }
    public string PostTitle { get; set; }
    public string Content { get; set; }
}

[TestClass]
public class AutoMapCollection
{

    private IMapper CreateMapper()
    {
        var config = new MapperConfiguration(cfg =>
        {
            cfg.AddProfile<CollectionProfile>();
            cfg.CreateMap<Post, Post>().EqualityComparision((n, o) => n.PostId == o.PostId);
            cfg.CreateMap<Blog, Blog>();

        });

        return config.CreateMapper();
    }

    [TestMethod]
    public void AddPostToBlog()
    {
        var existBlog = new Blog();
        existBlog.BlogId = 1;
        existBlog.BlogUrl = "blog url";

        var post1 = new Post() { PostId = 1, PostTitle = "post1" };
        var post2 = new Post() { PostId = 2, PostTitle = "post2" };

        existBlog.LstPost.Add(post1);
        existBlog.LstPost.Add(post2);

        var newBlog = new Blog();
        newBlog.BlogId = 1;
        newBlog.BlogUrl = "updated url";

        var post3 = new Post() { PostId = 3, PostTitle = "post3" };
        newBlog.LstPost.Add(post3);

        var mapper = CreateMapper();

        mapper.Map<Blog, Blog>(newBlog, existBlog);

        Assert.AreEqual(3, existBlog.LstPost.Count);
    }
}

}

AutoMapper isn't meant to clone objects.  If you did something like Blog to BlogDTO and Post to PostDTO it would work.  If you are using the exact same types it doesn't map as expected, even without AutoMapper.Collection.

it's not about cloning.  I want to update the exist object with another instance of the same type :)

I make sure that simple objects(no collection child propery) with same type can map as expected with AutoMapper,  I expected that AutoMapper.Collection also can work, that will be awesome!

If you remove .EqualityComparision((n, o) => n.PostId == o.PostId) and the test still fails, then there's nothing I can really do.  Cause without that it will use AutoMapper's default collection logic, and if that doesn't work then mine won't work as well.
I think what happens if it's the same type, it will just use the destination value and not do the mapping, or something along these lines.  AutoMapper doesn't support these kinds of scenarios in general.


Library production of the principle

Library production of the principle that I do not understand the logic，can talk about it?

I don't catch your meaning. What is "Library production"?
BTW, you may express your question in Chinese. I'm able to read and write it.

您好
 <input type='button' value='Hello' onclick='helloWorld.show("Hello, world!");

这个helloWorld.show可以调用原生的原理？xwebview.js的作用是？

See Distributed object communication.
xwebview.js 的作用是 stub


Possible typo in Decidable

In the excercise erasure
https://github.com/plfa/plfa.github.io/blob/56ebba4a736cfe9cf16e858043639fda4b456233/src/plfa/Decidable.lagda.md#L544
the name of this item should be ∨-⊎ according to its type.

Thank you. Now fixed!


Christie - how many assemblies from ARGOS project have been analyzed so far

Has been done. See document for details https://docs.google.com/document/d/1SQw2gYr6Yli376raKq4tm--IG0hIIRWHIeY9ShoukMw/edit

# on Bioproject NCBI
# Total on ARGOS
# from original project

1428
593
567


Swift Support for APIView

apiview.dev is used for conducting API reviews of Azure SDKs. There is currently not support to generate an APIView-compatible token file from Swift source code.
See: https://github.com/Azure/autorest.swift/issues/141

cc @jairmyree

This has been completed.


A page refresh does not update the app

Summary
After deploying a new version of my ember app which uses broccoli-serviceworker, doing a simple Refresh in Chrome does not get the latest version of the app. I must do a force-refresh (shift-refresh in Chrome) to get the latest app version.
My app/deployment configuration

My app is deployed to Amazon S3 and served by a CloudFront distribution (HTTPS), using ember-cli-deploy.
Each asset is fingerprinted, i.e. it has a hash in its filename, meaning that each deployment generates a new filename.
I use the ember-cli-deploy-cloudfront addon to invalidate the CloudFront cache after each deployment, to make sure that a fresh index.html is used.
I set locationType: 'hash' in my ember app configuration, because it is required for apps served via S3.
I wait for the CloudFront invalidation to complete before doing a refresh of my app in Chrome
I tried excluding index.html from the SW cache (via excludePaths), but it made no difference

environment.js
ENV.serviceWorker = {
  enabled: true,
  debug: environment !== 'production',
  excludePaths: [
    'index.html' // I tried with and without excluding index.html, made no difference
  ],
  fastestURLs: [
    {
      route: '/(.*)',
      method: 'get',
      options: {
        origin: '//fonts.googleapis.com'
      }
    },
    {
      route: '/(.*)',
      method: 'get',
      options: {
        origin: '//fonts.gstatic.com'
      }
    }
  ],
  swIncludeFiles: [
    'bower_components/localforage/dist/localforage.js'
  ],
  swEnvironment: {
    apiOrigin: ENV.BACKEND.API_URL
  }
};

Observations
~When I hit Cmd-R, the Network pane of Chrome dev tools doesn't show a GET for index.html. All I see is a GET for my service-worker-FINGERPRINT.js file (fetched from disk cache) and other resources which are also fetched from disk cache.~
~So it looks like the browser is not fetching the updated index.html file at all, which means that it sticks to the previously fetched/cached index.html, which still uses the previous service-worker.js file.~
Update: my Network debug view was filtered, so I wasn't seeing every request. When I hit Cmd-R, I do see a GET for /, which is fetched from ServiceWorker).
I'll try adding / to excludePaths...

I was able to fix this by adding this to ENV.serviceWorker:
networkFirstURLs: [
  '/',
  'index.html'
],

And I got rid of excludePaths.
Shouldn't this be the default? As it is now, / and index.html are automatically configured to use the cacheFirst strategy, which seems to imply the browser will never again have an occasion to fetch the index page from the network, therefore never seeing newly deployed versions...

@bourquep / and index.html are set to cacheFirst because every time the app updates the old sw cache is deleted and a new cache is created.  Using networkFirstURL's mean that those pages will always try to invoke a network request even when one isn't needed.  If that works for your app, feel free to use it, but the default for broccoli-serviceworker will be to use cacheFirst for those URLS.


SleekXMPP with httpupload

Hey guys. As I like having all under one hood and in MY hands I use only XMPP for notifier. I was playing around but as I am not a programmer I add this here.
I would like being able to send pic in notifier via httpupload according to this SleekXMPP version:
https://github.com/sezuan/uploadr
The goal would be being able to send picx directly via httpupload to my server
Would be awesome to add this feature.

Please move that into forum.


"error": "Please accept our latest Terms of Service. How to accept ?

i am trying to download cource, but it asking "error": "Please accept our latest Terms of Service.

udemy business? replace udemy.com url with company.udemy.com


the length of scenario.timestamps_seconds is not equal to tracks[i].states_size()

When processing Motion Dataset (training_20s), we found that the length of timestamp_seconds of some scenarios is not equal to tracks[i].states_size() for all tracks. A simple analysis found that the timestamps of some scenarios will be lost, and the Track.states of other scenarios will be lost; How to deal with this situation? We now directly eliminate this part of the Scenario.
A total of 135 scenarios were found in 124 files with the exception mentioned above.
Case of missing timestamp:

scenario_id 33e5ac4c35a5af28
training_20s.tfrecord-00123-of-01000
len(timestamps_seconds) = 193
len(track.states)  = 199

Case of missing states:

scenario_id c34dc63d55ca05f5
training_20s.tfrecord-00313-of-01000
len(timestamps_seconds) = 199
len(track.states)  = 196

Thanks for raising this.  We will take a look into the cause.  I think for now there are two possible options. Since this affects only a tiny fraction of the data,  your solution of truncating the affected scenarios is a reasonable method.  I would think it should not significantly affect overall results of experiments.  The other option would be to extend the timestamps by assuming a nominal 0.1 second interval per timestamp. This would approximate the timestamps with some small error.

Thanks for your reply.
I think the second option is good, so I will try it to reuse the scenarios with missing timestamps.


Open classes

[x] Added required public declarations to allow extending the ReplicateService.
[x] Added createSynchronousPredictionUsingVersion to ReplicateService.

Thanks Martin! I bumped to 0.39 for your new convenience method: https://github.com/lzell/AIProxySwift/releases/tag/v0.39.0


pruneNullOrEmpty

Function signature
pruneNullOrEmpty(obj: T): T;

What utility function do you need?

removing null or empty values from an object.
What motivates us?

it's common to have an object which contains values with an empty string or null, in most cases to have a valid and clear object we need to ensure the null or empty string is removed from an object.
List of examples

pruneNullOrEmpty({ firstName: null, lastName: "PRD"  }) // { lastName: "PRD" }
pruneNullOrEmpty({ firstName: '', lastName: "PRD"  })  // { lastName: "PRD" }
pruneNullOrEmpty({ firstName: '', lastName: "PRD", age: null  }) // { lastName: "PRD"}

It's nice to have.
Also very useful when dealing with forms and APIs.

Thanks a lot :pray:


add option to use UTF8 TOC

Hello, thank you for this very nice little tool. I had problems with german umlauts. Therefore, this small pull request.

Thanks!


worker with gpt-llama  run "OPENAI_API_HOST=http://localhost:6926 npm run dev" get error like below. the error is very long

You can't change the host address an expect that it work with any A.I. Normally the code is specific to use the OpenAI API endpoints. If you want to use Chatbot-UI as Interface for other LLMs, first you need to know if it provides an API, second you need to re-write the code how the API handles the communication to its model and how to format the data.


ERROR: The target entry-point "@nativescript/angular" has missing dependencies

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

CLI: 6.7.4
Cross-platform modules: 6.5.2
Android Runtime: 6.5.1
iOS Runtime: not installed
Plugin(s): see below
NativeScript-Angular: 9.0.0
Angular: 9.1.9

Describe the bug
I run tns run android and get the following error:
WARNING in Entry point '@nativescript/angular' contains deep imports into 'E:/Angular/SchoolSquirrel/SchoolSquirrel/node_modules/@nativescript/core/utils/types', 'E:/Angular/SchoolSquirrel/SchoolSquirrel/node_modules/@nativescript/core/ui/animation/keyframe-animation', 'E:/Angular/SchoolSquirrel/SchoolSquirrel/node_modules/@nativescript/core/ui/styling/css-animation-parser', 'E:/Angular/SchoolSquirrel/SchoolSquirrel/node_modules/@nativescript/core/ui/styling/converters', 'E:/Angular/SchoolSquirrel/SchoolSquirrel/node_modules/@nativescript/core/file-system/file-system', 'E:/Angular/SchoolSquirrel/SchoolSquirrel/node_modules/@nativescript/core/ui/layouts/layout-base'. This is probably not a problem, but may cause the compilation of entry points to be out of order.

ERROR in The target entry-point "@nativescript/angular" has missing dependencies:
 - @nativescript/core/ui/layouts/layout-base

To Reproduce
My package.json file looks like this:
{
    "name": "SchoolSquirrel",
    "nativescript": {
        "id": "com.schoolsquirrel.SchoolSquirrel",
        "tns-android": {
            "version": "6.5.1"
        }
    },
    "version": "0.0.0",
    "scripts": {
        "ng": "ng",
        "start": "ng serve",
        "build": "ng build",
        "test": "ng test",
        "lint": "eslint . --ext .ts",
        "lint-fix": "eslint . --ext .ts --fix",
        "e2e": "ng e2e",
        "android": "tns run android",
        "ios": "tns run ios",
        "mobile": "tns run",
        "preview": "tns preview"
    },
    "private": true,
    "dependencies": {
        "@angular/animations": "^9.1.9",
        "@angular/common": "^9.1.9",
        "@angular/compiler": "^9.1.9",
        "@angular/core": "^9.1.9",
        "@angular/forms": "^9.1.9",
        "@angular/localize": "^9.1.9",
        "@angular/platform-browser": "^9.1.9",
        "@angular/platform-browser-dynamic": "^9.1.9",
        "@angular/router": "^9.1.9",
        "@nativescript/theme": "^2.3.3",
        "@ng-bootstrap/ng-bootstrap": "^6.1.0",
        "bootstrap": "^4.5.0",
        "core-js": "^3.6.5",
        "@nativescript/angular": "^9.0.0",
        "reflect-metadata": "~0.1.13",
        "rxjs": "~6.5.5",
        "@nativescript/core": "^6.5.2",
        "tslib": "2.0.0",
        "zone.js": "~0.10.3"
    },
    "devDependencies": {
        "@angular-devkit/build-angular": "^0.901.7",
        "@angular/cli": "^9.1.7",
        "@angular/compiler-cli": "^9.1.9",
        "@nativescript/schematics": "^1.0.0",
        "@types/jasmine": "~3.5.10",
        "@types/jasminewd2": "~2.0.8",
        "@types/node": "~14.0.9",
        "@typescript-eslint/eslint-plugin": "^3.1.0",
        "@typescript-eslint/parser": "^3.1.0",
        "codelyzer": "^5.2.2",
        "eslint": "^7.1.0",
        "eslint-config-airbnb": "^18.1.0",
        "eslint-config-prettier": "^6.11.0",
        "eslint-import-resolver-typescript": "^2.0.0",
        "eslint-plugin-github": "^4.0.1",
        "eslint-plugin-import": "^2.20.2",
        "eslint-plugin-json": "^2.1.1",
        "eslint-plugin-prettier": "^3.1.3",
        "jasmine-core": "~3.5.0",
        "jasmine-spec-reporter": "~5.0.2",
        "karma": "~5.0.9",
        "karma-chrome-launcher": "~3.1.0",
        "karma-coverage-istanbul-reporter": "~3.0.3",
        "karma-jasmine": "~3.3.1",
        "karma-jasmine-html-reporter": "^1.5.4",
        "nativescript-dev-webpack": "^1.5.1",
        "node-sass": "^4.14.1",
        "protractor": "~7.0.0",
        "ts-node": "~8.10.2",
        "tslint": "~6.1.2",
        "typescript": "~3.8.3"
    }
}

Expected behavior
It builds without any warnings or errors.
Sample project
This is an almost fresh project. The frontend is in the SchoolSquirrel folder.
It uses code sharing (web and mobile).

@hrueger see this Wiki post - covers this issue in Problem 2 👍
https://github.com/NativeScript/nativescript-angular/wiki/Updating-and-developing-for-@nativescript-angular-v9-with-Ivy-or-without#problem-2
In short at a minimum you need to add ngcc.config.js to root of your project and ensure it at least has this:
module.exports = {
  "packages": {
    "@nativescript/angular": {
      entryPoints: {
        ".": {
          override: {
            main: "./index.js",
            typings: "./index.d.ts",
          },
          ignoreMissingDependencies: true,
        }
      },
      ignorableDeepImportMatchers: [
        /tns-core-modules\//,
        /@nativescript\/core\//
      ]
    }
};

Oh thanks @NathanWalker , I'm sorry, I didn't see the wiki page.
This solved the error, but now I have a slightly different one.
I'll try to solve it and close this issue as soon as it works.

@hrueger no worries and sorry if we did not make that Wiki clear enough!
Feel free to post here the other issue you encountered and can see if have any additional suggestions for you.

@NathanWalker The new error is this: ERROR in Symbol ListViewComponent declared in<EMAIL_ADDRESS>is not exported from @nativescript/angular/nativescript.module (import into E:/Angular/SchoolSquirrel/SchoolSquirrel/src/app/_pages/home/home.component.ts)
It doesn't work with either the minimum ngcc.config.js you provided above nor with the longer one in the wiki.
I tried cleaning and rebuilding multiple times.
It's strange because my HomeComponent does not include a ListView:
<ActionBar title="title"></ActionBar>
<StackLayout class="p-20">
    <Label text="You're now logged in!" class="h1 text-center" textWrap="true"></Label>
</StackLayout>

import { Component } from "@angular/core";

@Component({
    selector: "app-home",
    templateUrl: "./home.component.html",
    styleUrls: ["./home.component.scss"],
})
export class HomeComponent {
}

It's just a blank component. I also don't have a ListView anywhere in my project...

Thanks @hrueger that is strange - is it possible to share the project? If it's private you could invite NathanWalker to it and I'd be happy to take a look.

Sure, thank's for your help. It's public: SchoolsSquirrel
The Angular NativeScript App is in the SchoolSquirrel directory.

@hrueger posted a PR with things a bit closer - see notes 👍
https://github.com/SchoolSquirrel/SchoolSquirrel/pull/1

@hrueger see this Wiki post - covers this issue in Problem 2 👍
https://github.com/NativeScript/nativescript-angular/wiki/Updating-and-developing-for-@nativescript-angular-v9-with-Ivy-or-without#problem-2
In short at a minimum you need to add ngcc.config.js to root of your project and ensure it at least has this:
module.exports = {
  "packages": {
    "@nativescript/angular": {
      entryPoints: {
        ".": {
          override: {
            main: "./index.js",
            typings: "./index.d.ts",
          },
          ignoreMissingDependencies: true,
        }
      },
      ignorableDeepImportMatchers: [
        /tns-core-modules\//,
        /@nativescript\/core\//
      ]
    }
  }
};

Thank you very much struggled with the same error for about 30min could not find any solutions until I got this.

@hrueger @nativescript/schematics ~9.0.0 have been released and I'd recommend trying them with the SchoolSquirrel project. Lemme know if that gets you up and running fully there. You'll still wanna make sure the practices in that wiki guide for {N} and Angular 9/Ivy are still in place which I believe the PR I did awhile back and believe you integrated those in take care of.  But next step is for you to now update schematics so lemme know 👍

@NathanWalker Yes, it works! However, not completely. I first got the following error:
> tns run android --env.aot

Searching for devices...
Preparing project...
Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
 - options[0] misses the property 'patterns'. Should be:
   [non-empty string | object { from, to?, context?, globOptions?, toType?, force?, flatten?, transform?, cacheTransform?, transformPath?, noErrorOnMissing? }, ...] (should not have fewer than 1 item)
 - options[1] misses the property 'patterns'. Should be:
   [non-empty string | object { from, to?, context?, globOptions?, toType?, force?, flatten?, transform?, cacheTransform?, transformPath?, noErrorOnMissing? }, ...] (should not have fewer than 1 item)
 - options[2] misses the property 'patterns'. Should be:
   [non-empty string | object { from, to?, context?, globOptions?, toType?, force?, flatten?, transform?, cacheTransform?, transformPath?, noErrorOnMissing? }, ...] (should not have fewer than 1 item)
ValidationError: Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
    at validate (E:\Angular\SchoolSquirrel\SchoolSquirrel\node_modules\copy-webpack-plugin\node_modules\schema-utils\dist\validate.js:96:11)
    at new CopyPlugin (E:\Angular\SchoolSquirrel\SchoolSquirrel\node_modules\copy-webpack-plugin\dist\index.js:24:30)
    at module.exports.env (E:\Angular\SchoolSquirrel\SchoolSquirrel\webpack.config.js:304:13)
    at handleFunction (E:\Angular\SchoolSquirrel\SchoolSquirrel\node_modules\webpack-cli\bin\prepareOptions.js:23:13)
    at prepareOptions (E:\Angular\SchoolSquirrel\SchoolSquirrel\node_modules\webpack-cli\bin\prepareOptions.js:9:5)
    at requireConfig (E:\Angular\SchoolSquirrel\SchoolSquirrel\node_modules\webpack-cli\bin\convert-argv.js:136:14)
    at E:\Angular\SchoolSquirrel\SchoolSquirrel\node_modules\webpack-cli\bin\convert-argv.js:142:17
    at Array.forEach (<anonymous>)
    at module.exports (E:\Angular\SchoolSquirrel\SchoolSquirrel\node_modules\webpack-cli\bin\convert-argv.js:140:15)
    at yargs.parse (E:\Angular\SchoolSquirrel\SchoolSquirrel\node_modules\webpack-cli\bin\cli.js:241:39)
    at Object.parse (E:\Angular\SchoolSquirrel\SchoolSquirrel\node_modules\yargs\yargs.js:567:18)
    at E:\Angular\SchoolSquirrel\SchoolSquirrel\node_modules\webpack-cli\bin\cli.js:219:8
    at Object.<anonymous> (E:\Angular\SchoolSquirrel\SchoolSquirrel\node_modules\webpack-cli\bin\cli.js:538:3)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:690:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (E:\Angular\SchoolSquirrel\SchoolSquirrel\node_modules\webpack\bin\webpack.js:156:2)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:829:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
Executing webpack failed with exit code 1.
npm ERR! file C:\WINDOWS\system32\cmd.exe
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR<EMAIL_ADDRESS>android: `tns run android --env.aot`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>android script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      C:\Users\Hannes\AppData\Roaming\npm-cache\_logs\2020-06-19T06_37_50_908Z-debug.log

I could temporarily solve this by commenting out this block in the webpack.config.js file (seems to be a breaking change of the copy-webpack-plugin?): https://github.com/SchoolSquirrel/SchoolSquirrel/blob/73cd4460c950880f788a3c0f94921649eafb6b2a/SchoolSquirrel/webpack.config.js#L303-L307
However, now I don't expect any assets to be shown properly...
In addition, I had to add the CUSTOM_ELEMENTS_SCHEMA to the app.module.tns.ts.

@NathanWalker Another quite annoying thing is, that every time I save a file, the hot reload gives me the following error:
System.err: An uncaught Exception occurred on "main" thread.
System.err: Calling js method run failed
System.err: Error: View not added to this instance. View: ProxyViewContainer(8) CurrentParent: Page(4) ExpectedParent: AppHostView(1)
System.err:
System.err: StackTrace:
System.err: ZoneAwareError(file: node_modules\@nativescript\angular\zone-js\dist\zone-nativescript.js:1298:0)
Successfully synced application com.schoolsquirrel.SchoolSquirrel on device R58M385EJ6T.
System.err:     at push.../node_modules/@nativescript/core/ui/core/view-base/view-base.js.ViewBase._removeView(file: node_modules\@nativescript\core\ui\core\view-base\view-base.js:472:0)
System.err:     at push.../node_modules/@nativescript/angular/view-util.js.ViewUtil.removeFromVisualTree(file: node_modules\@nativescript\angular\view-util.js:191:0)
System.err:     at push.../node_modules/@nativescript/angular/view-util.js.ViewUtil.removeChild(file: node_modules\@nativescript\angular\view-util.js:119:0)
System.err:     at push.../node_modules/@nativescript/angular/renderer.js.NativeScriptRendererFactory.ngOnDestroy(file: node_modules\@nativescript\angular\renderer.js:60:0)
System.err:     at (file: node_modules\@angular\core\__ivy_ngcc__\fesm5\core.js:11518:55)
System.err:     at push.../node_modules/@angular/core/__ivy_ngcc__/fesm5/core.js.R3Injector.destroy(file: node_modules\@angular\core\__ivy_ngcc__\fesm5\core.js:11518:0)
System.err:     at push.../node_modules/@angular/core/__ivy_ngcc__/fesm5/core.js.NgModuleRef$1.destroy(file: node_modules\@angular\core\__ivy_ngcc__\fesm5\core.js:24832:0)
System.err:     at push.../node_modules/@nativescript/angular/platform-common.js.NativeScriptPlatformRef._livesync(file: node_modules\@nativescript\angular\platform-common.js:221:0)
System.err:     at (file: node_modules\@nativescript\angular\platform-common.js:103:74)
System.err:     at push.../node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js.ZoneDelegate.invokeTask(file: node_modules\@nativescript\angular\zone-js\dist\zone-nativescript.js:421:0)
System.err:     at push.../node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js.Zone.runTask(file: node_modules\@nativescript\angular\zone-js\dist\zone-nativescript.js:188:0)
System.err:     at push.../node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js.ZoneTask.invokeTask(file: node_modules\@nativescript\angular\zone-js\dist\zone-nativescript.js:496:0)
System.err:     at ZoneTask.invoke(file: node_modules\@nativescript\angular\zone-js\dist\zone-nativescript.js:485:0)
System.err:     at timer(file: node_modules\@nativescript\angular\zone-js\dist\zone-nativescript.js:1561:0)
System.err:     at invoke(file: node_modules\@nativescript\core\timer\timer.android.js:20:30)
System.err:     at push.../node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js.ZoneDelegate.invoke(file: node_modules\@nativescript\angular\zone-js\dist\zone-nativescript.js:388:0)
System.err:     at push.../node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js.Zone.runGuarded(file: node_modules\@nativescript\angular\zone-js\dist\zone-nativescript.js:151:0)
System.err:     at (file: node_modules\@nativescript\angular\zone-js\dist\zone-nativescript.js:129:0)
System.err:     at run(file: node_modules\@nativescript\core\timer\timer.android.js:24:0)
System.err:     at com.tns.Runtime.callJSMethodNative(Native Method)
System.err:     at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1286)
System.err:     at com.tns.Runtime.callJSMethodImpl(Runtime.java:1173)
System.err:     at com.tns.Runtime.callJSMethod(Runtime.java:1160)
System.err:     at com.tns.Runtime.callJSMethod(Runtime.java:1138)
System.err:     at com.tns.Runtime.callJSMethod(Runtime.java:1134)
System.err:     at com.tns.gen.java.lang.Runnable.run(Runnable.java:17)
System.err:     at android.os.Handler.handleCallback(Handler.java:883)
System.err:     at android.os.Handler.dispatchMessage(Handler.java:100)
System.err:     at android.os.Looper.loop(Looper.java:237)
System.err:     at android.app.ActivityThread.main(ActivityThread.java:7814)
System.err:     at java.lang.reflect.Method.invoke(Native Method)
System.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)

When I then change something and save the file again, it works successfully!
The next time I make a change and save it, I get the error again, after a second change it's fine. And so on.
Should I create another issue for that? Is it caused by @nativescript/angular or by @nativescript/core?

Hi @NathanWalker . I am also facing a similar issue with my Nativescript angular 9 shared project when i tried running its web application which was working fine till last day . I am getting an error like:

This is my ngcc.config.js file :
'packages': {
    '@nativescript/angular': {
      entryPoints: {
        '.': {
          override: {
            main: './index.js',
            typings: './index.d.ts',
          },
          ignoreMissingDependencies: true,
        }
      },
      ignorableDeepImportMatchers: [
        /zone.js\//,
        /tns-core-modules\//,
        /@nativescript\/core\//
      ]
    }
}
}

What could be the issue  ? It was working fine till yesterday.

Hi @arun-s-aot - you may be missing the outer structure of the ngcc.config.js or may also need to clean/rebuild. Try copy/pasting this exactly into your ngcc.config.js and then running rm -rf hooks platforms node_modules package-lock.json && npm i:
module.exports = {
  "packages": {
    "@nativescript/angular": {
      entryPoints: {
        ".": {
          override: {
            main: "./index.js",
            typings: "./index.d.ts",
          },
          ignoreMissingDependencies: true,
        }
      },
      ignorableDeepImportMatchers: [
        /zone.js\//,
        /tns-core-modules\//,
        /@nativescript\/core\//
      ]
    },
    "nativescript-localize": {
      entryPoints: {
        ".": {
          override: {
            main: "./angular.js",
            typings: "./angular.d.ts",
          },
          ignoreMissingDependencies: true,
        },
      },
      ignorableDeepImportMatchers: [
        /@nativescript\/core\//
      ]
    },
    "nativescript-datetimepicker": {
      entryPoints: {
        ".": {
          override: {
            main: "./index.js",
            typings: "./index.d.ts",
          },
          ignoreMissingDependencies: true,
        },
        "angular": {
          override: {
            main: "./index.js",
            typings: "./index.d.ts",
          },
          ignoreMissingDependencies: true,
        }
      },
      ignorableDeepImportMatchers: [
        /tns-core-modules\//,
        /@nativescript\/core\//,
        /@nativescript\/angular\//
      ]
    },
    "nativescript-ui-sidedrawer": {
      entryPoints: {
        "angular": {
          override: {
            main: "./side-drawer-directives.js",
            typings: "./side-drawer-directives.d.ts",
          },
          ignoreMissingDependencies: true,
        }
      },
      ignorableDeepImportMatchers: [
        /tns-core-modules\//,
        /@nativescript\/core\//,
        /@nativescript\/angular\//
      ]
    },
    "nativescript-ui-listview": {
      entryPoints: {
        "angular": {
          override: {
            main: "./listview-directives.js",
            typings: "./listview-directives.d.ts",
          },
          ignoreMissingDependencies: true,
        }
      },
      ignorableDeepImportMatchers: [
        /tns-core-modules\//,
        /@nativescript\/core\//,
        /@nativescript\/angular\//
      ]
    }
  }
}

@hrueger Your issue above may be related to hmr - I would turn hmr when developing shared code projects with Ivy - so try using this flag: tns debug ios --no-hmr --emulator and lemme know if better with livesync changes.

@NathanWalker No, unfortunately not. Same error as here...

@hrueger is your latest pushed up there and which branch? I can take a peek.

@NathanWalker That would be great, thank's in advance. It's all up-to-date on the master branch of SchoolSquirrel.
It's without Ivy now, that's why there's no ngcc.config.js anymore.
As I described above, the initial run is working, but onec a file is changed, the errors appear. No matter if it is run with or without --no-hmr...

@hrueger confirmed working here and with Ivy enabled: https://github.com/SchoolSquirrel/SchoolSquirrel/pull/4

Yes, it's working. For anyone interested in the final solution for Angular 9 + Ivy + NativeScript, just check out this PR by @NathanWalker


How to debug payment errors?

[Enter feedback here]
If during the sign up procedure one has got an error with a correlation ID, how to find out what went wrong?

Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: c4ddd610-d6de-7a7c-2d59-fdc08dd98371
Version Independent ID: 1ed74795-fa40-80a5-4fc2-6f4e87efa594
Content: Opening a developer account - UWP applications
Content Source: windows-apps-src/publish/opening-a-developer-account.md
Product: uwp
Technology: publish
GitHub Login: @hickeys
Microsoft Alias: hickeys

I have the same issue. I see an error reported on the status page but I do not know if it is related...

Thanks for reaching out with your feedback. GitHub issues in this repo are for documentation bugs only, and unfortunately this seems more like a support request than a documentation bug.
The best way to get support is by asking the community on Microsoft Q&A or StackOverflow
For completeness' sake, here is a list of developer resources:

Microsoft Q&A offers relevant and timely answers to your technical problems from a community of experts and Microsoft engineers.
For community assistance with development questions, there are our forums, and StackOverflow.
The Windows developer support site explains other support options.
The Visual Studio developer community is available, and responsive. The former User Voice feature is now there on the Suggest a feature tab, if you want to lobby for a change, a feature, or to make a suggestion.
For developer issues, or suspected product bugs, there's Microsoft Support; a support engineer will look at the repro and see whether the issue is a Microsoft product bug, or something else. If it's a bug with a Microsoft product then the ticket will be free of charge.

If you receive assistance via any support resource and you believe that information would help us improve the docs, then please let us know or consider submitting a pull request.
Thanks,
Shawn


Fix text around liveness probe probe-level grace period behavior

Updating the probe level termination grace period notes added as part of https://github.com/kubernetes/website/pull/28930
From the KEP-2238 page, it was probably intended to say API server ignores the Probe-level terminationGracePeriodSeconds field in the docs, but instead said API server ignores the Pod-level terminationGracePeriodSeconds field which seems incorrect.

Ensure that when feature gate is off in API server, probe-level TerminationGracePeriodSeconds is blanked out.

@ehashman Could you please help review this? Thanks!

/retitle Fix text around liveness probe probe-level grace period behavior
The fix targets the v1.24 docs, so I'm removing mention of v1.22

@kbhawkey @rajeshdeshpande02 👋🏼 Would it be possible to take a look at this PR? Thanks!

/sig node
@kubernetes/sig-node-pr-reviews 👋🏻 PTAL

/hold

/hold cancel


Import error in awsx packages during ecs-fargate tutorial

File: themes/default/content/registry/packages/aws/how-to-guides/ecs-fargate.md
I just followed the tutorial but there is some import error in awsx packages.
Error message is "Property 'elasticloadbalancingv2' does not exist on type {}".

I believe this has been fixed, the current guide has no reference to elasticloadbalancingv2


x/net/http2: Connection reset incorrectly in high load performance test

What version of Go are you using (go version)?
golang:1.10.0 linux
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
container: rhel
kubenet:
What did you do?
func (sc *serverConn) wroteFrame(res frameWriteResult) {
...
			sc.closeStream(st, errHandlerComplete)                  <=== _code1_
		}
...
	wr.replyToWriter(res.err)                                               <=== _code2_
...
}

In some cases, the server goroutine will be switch out execution context between code1 and code2.
If the handler goroutine switch back to execution context in these cases, that will make writeDataFromHandler() (writeHeaders() also?) failed and set responseWriterState to dirty.
func (sc *serverConn) writeDataFromHandler(stream *stream, data []byte, endStream bool) error {
...
	case <-stream.cw:
		// If both ch and stream.cw were ready (as might
		// happen on the final Write after an http.Handler
		// ends), prefer the write result. Otherwise this
		// might just be us successfully closing the stream.
		// The writeFrameAsync and serve goroutines guarantee
		// that the ch send will happen before the stream.cw
		// close.
		select {
		case err = <-ch:
			frameWriteDone = true
		default:
			return errStreamClosed
		}
	}
...
}
func (rws *responseWriterState) writeChunk(p []byte) (n int, err error) {
...
		if err := rws.conn.writeDataFromHandler(rws.stream, p, endStream); err != nil {
			rws.dirty = true
			return 0, err
		}
...
}

This issue can be reproduced easily if add sc.logf() between code1 and code2 in lower load performace test.
PS: I think in wroteFrame(), we shouldn'd call "wr.replyToWriter(res.err)" when closing stream with error. It will cause writeDataFromHandler() exit with no error. But in fact this stream/responseWriterState is already on incorrect status.
What did you expect to see?
no connection reset in load test
What did you see instead?
connecttion reset and traffic failed beofre new connection set up

@bradfitz @tombergan

Got a repro?

/cc @fraenkel

I have tried a variety of things with h2load as the client and a server that returns 100 - 16k bytes of data in the response. I have not been able to cause any connection reset issue regardless of debug on the server side to cause significant slow downs.

hi Fraenkel,
This issue can be reproduced easily if add sc.logf() between code1 and code2 in lower load performace test.
You need lots of streams, which with less data to transport, in one connection to reproduce it.
Such as, one connection, 3000 or more streams per second created, transported then closed.
B.R

@crowfrog I have added sc.logf() in multiple places between your code1 and code2 blocks. I still don't hit any error when driving with h2load.
It shows that I am achieving 7150 req/s.
I have also tried with and without debug to slow things down but that too doesn't cause any error.

@crowfrog Yes. There were over 10k streams created. I tried smallish and larger payloads but all constant sizes.
If you can capture http2debug, that might prove helpful to narrow down the issue since I cannot seem to do it locally on the latest code base.


[ai-form-recognizer] stage codebase for 3.1.0-preview.1 development

This does the basics:

changes the version number to 3.1.0-preview.1
regenerates code according to service version 2.1-preview.1
fixes a couple of tests and re-records them all

It also does some less-basics:

moves the samples to a stable directory samples-5.0.0 so that we don't clobber the live samples while the new ones are in development (prior art: service bus), and removes the YAML front matter from the in development samples
re-organizes the tests according to the public/internal split suggested by @KarishmaGhiya and @sadasant

As a consequence of re-organizing the tests, I also made a minor change to the test scripts and shared rollup configuration to slightly tweak the input files.
Closes #11205
Closes #9449

@praveenkuttappan I made a minor change to the doc warden settings to allow the new samples path in this PR, so I'm going to block on an approval from engsys before merging.

/check-enforcer evaluate

@jeremymeng I got my wires crossed between text analytics and form recognizer. The samples should be 3.0.0.

/check-enforcer evaluate

/azp run js - formrecognizer - tests

/azp run js - textanalytics - tests

/check-enforcer evaluate


Error One or more properties contains invalid values

Hi. I've followed the instructions to the letter, downloaded the sample DotNet application, and for the most part, it works. I was able to login to my B2C account in PowerShell, and I am able to obtain users from our directory. But I was trying to create a new user using the example, less the comments.
{
"accountEnabled": true,
"alternativeSignInNamesInfo": [
{
"type": "emailAddress",
"value"<EMAIL_ADDRESS>}
],
"creationType": "NameCoexistence",
"displayName": "Joe Consumer",
"mailNickname": "joec",
"passwordProfile": {
"password": "P@ssword!",
"forceChangePasswordNextLogin": false
},
"passwordPolicies": "DisablePasswordExpiration"
}
and I encounter this error.
Error Calling the Graph API:
{
"odata.error": {
"code": "Request_BadRequest",
"message": {
"lang": "en",
"value": "One or more properties contains invalid values."
},
"values": null
}
}
I've checked the requirements, https://msdn.microsoft.com/Lib..., and these are correct.
Let me know if you require more information.

Hi tombs, going to close this for now since it's so old, sorry for missing it.  If your still having problems please re-open and I'll be happy to help out.


feat: isCoprime_mul_units_left, isCoprime_mul_units_right

Add isCoprime_mul_units_left and isCoprime_mul_units_right. These are slight generalizations of same unit version isCoprime_mul_unit_left and isCoprime_mul_unit_right. Currently exists as a lemma in #18882.

There are two things that I can do further (but not sure if it worths to do):

I can replace the existing proofs of isCoprime_mul_unit_left and isCoprime_mul_unit_right with units version
There are two other possible combinations: u * y, z * v and y * u, v * z. I'm not sure if it is necessary to add these.


Intermittent Capybara::Poltergeist::BrowserError in within_iframe

With the following code snippet, I get intermittent errors that are difficult to reproduce.
    page.within_frame('display-iframe') do
      page.should have_content('Bacon Ipsum')
    end

     Failure/Error: page.should have_content('Bacon Ipsum')
     Capybara::Poltergeist::BrowserError:
       There was an error inside the PhantomJS portion of Poltergeist. This is probably a bug, so please report it.

       [object Object]
           at /home/yongwen/.rvm/gems/ruby-2.0.0-p247@typesetr/gems/poltergeist-1.3.0/lib/capybara/poltergeist/client/compiled/web_page.js:355
           at /home/yongwen/.rvm/gems/ruby-2.0.0-p247@typesetr/gems/poltergeist-1.3.0/lib/capybara/poltergeist/client/compiled/web_page.js:38
           at /home/yongwen/.rvm/gems/ruby-2.0.0-p247@typesetr/gems/poltergeist-1.3.0/lib/capybara/poltergeist/client/compiled/node.js:24
           at /home/yongwen/.rvm/gems/ruby-2.0.0-p247@typesetr/gems/poltergeist-1.3.0/lib/capybara/poltergeist/client/compiled/browser.js:157
           at /home/yongwen/.rvm/gems/ruby-2.0.0-p247@typesetr/gems/poltergeist-1.3.0/lib/capybara/poltergeist/client/compiled/browser.js:67
           at about:blank:37
           at /home/yongwen/.rvm/gems/ruby-2.0.0-p247@typesetr/gems/poltergeist-1.3.0/lib/capybara/poltergeist/client/compiled/connection.js:16
           at /home/yongwen/.rvm/gems/ruby-2.0.0-p247@typesetr/gems/poltergeist-1.3.0/lib/capybara/poltergeist/client/compiled/connection.js:1
     ....

I am using the latest version of phantomjs (1.9.1). Could this be a phantomjs bug?
Not sure what other details I can provide. Please let me know.

Does anyone have an example which shows the issue?

Happens for me as well and all the time -- no matter if I use sleep or find.
within_frame('frame') do
	    		find('input[name=Addnew]').click
	    		sleep 1

	    		within('form') do
	    			fill_in 'Mac', with: mac
	    			fill_in 'Ip', with: ip

	    			find('input[name=Save]').click
	    			sleep 5 # No matter how big the sleep is here, it's failing

		        	find('#t_title').text != 'Add or Modify an Address Reservation Entry' # Fails here
	    		end
	    	end

@thehappycoder We need versions of poltergeist, phantomjs, and capybara you're using - as well as the debug log output to have any chance at figuring out what you have happening, however looking at your test a couple of things leap out.

rather than sleep 1 you should be doing within('a more specific selector') that uniquely identifies the form you're going to be filling in - Having a more specific selector like form#new_interface  or whatever would match would make the within wait for the new form to appear.

What does your find('input[name=Save]').click cause to happen?  If it cause a new page to appear then you're no longer inside the form (potentially frame if it replaces the entire page) since it's been replaced and of course the find will fail.

find('#t_title').text != ...   is a bad way to write capybara tests since it will check the text as soon as the element is found rather than seeing if the text changes/gets replaced - you're much better off writing  find('#t_title', text: 'Add or Modify ...')

If the Save click only replaces the content of the frame (and not the entire browser page) then I'd change the test to
within_frame('frame') do
  find('input[name=Addnew]').click
  within('form#specific_id_of_form_that_appears') do
    fill_in 'Mac', with: mac
    fill_in 'Ip', with: ip

    find('input[name=Save]').click
  end
  expect(page).to have_selector('#t_title', text: 'Add or Modify an Address Reservation Entry')
end

Closing due to lack of response


TypeError: undefined is not an object

Describe the bug
I try to Upload edits to wikidata but nothing happened.
I the javascript console, I got this message:
Failed to load resource: the server responded with a status of 404 (Couldn't find the specified resource)
TypeError: undefined is not an object (evaluating 'this._elmts.dialogHeader.text')

To Reproduce
I could reproduce it before trying to do the same thing in another web browser (Firefox), (un)fortunately can't now.
With Firefox, OR asked me to log in, and work fine.
I retried in my usual web browser (Safari) and it opened the uploading window:
"You are about to upload 11 edits to Wikidata. Please check them carefully…"
So it work fine now 😃
I think the issue is not web browser dependant.
It's seem to be a csrf-token issue when updating OpenRefine.
After updating OR, the token probably no longer valid and the user interface don't handle this case ??

It's seem to be a csrf-token issue when updating OpenRefine.
After updating OR, the token probably no longer valid and the user interface don't handle this case ??

This sounds similar to reports of the Wikidata user login timing out and the error not being handled well.


Fixed BirdHunter

Switched the IDS again, they like changing them back and forth

Use ObjectID instead of a magic number


app-insights az cli extension seems not working properly in AzureChinaCloud (China East 2)

If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at Azure/azure-cli

Extension name (the extension in question)
application-insights
Description of issue (in as much detail as possible)
I have properly logged in with a certain subscription in AzureChinaCloud (China East2)
az account show
{
  "environmentName": "AzureChinaCloud",
  "id": "5b5d5f37-8aca-49f8-8682-7ed6d2f00424",
  "isDefault": true,
  "name": "Project Vienna PROD - ChinaEast2",
  "state": "Enabled",
  "tenantId": "a55a4d5b-9241-49b1-b4ff-befa8db00269",
  "user": {
    "name"<EMAIL_ADDRESS>    "type": "user"
  }
}

However run any az monitor app-insights command always failed with error "The subscription '5b5d5f37-8aca-49f8-8682-7ed6d2f00424' could not be found"
for example, api-key show
az monitor app-insights api-key show --app model-monitoring-chinaeast2 --resource-group model-mgmt-chinaeast2 --api-key MMSModelMonitoringApiKey
The subscription '5b5d5f37-8aca-49f8-8682-7ed6d2f00424' could not be found.

I doubted application-insights is not working in AzureChinaCloud, any insight of it? Appreciate

Is that possible reason with hard code "https://api.applicationinsights.io" in azext_applicationinsights._client_factory.
In AzureChinaCloud, application insights endpoint suffix is applicationinsights.azure.cn

@MyronFanQiu please take a look.

@alexeldeib Hello. I'm not sure. Does app-insights support AzureChinaCloud?

@evanlwj Thanks for reporting this. That's maybe the root cause. Currently, for some commands like app-insights or log-analytics, the endpoint is hard coded. I have asked @alexeldeib to confirm this issue and tried to figure out a solution.

I can confirm application insights is GA'ed in Mooncake, where is able to allow to create application insights instance.

Sorry for the slow reply, I've been traveling. The URL for App Insights in AzureChinaCloud is api.applicationinsights.azure.cn. We also have api.loganalytics.azure.cn for log analytics.
@MyronFanQiu for PowerShell we added the endpoints to the equivalent of this file: https://github.com/Azure/azure-cli/blob/dev/src/azure-cli-core/azure/cli/core/cloud.py#L211-L233 should we do the same here?

I think it would be something like this? https://github.com/Azure/azure-cli/pull/11385

@alexeldeib Thanks. I will take a look in this sprint.

@evanlwj Hi. We have merged the corresponding PR to add endpoint in ChinaCloud. It will be released in the next week. Could you please install new azure-cli version and have a try?

I have verified this with the latest Edge builds and the issue still reproes. Evan suggested that this might be because of the hardcoded endpoint in https://github.com/Azure/azure-cli-extensions/blob/f1f8f52dfe3700845212441912989e9c0d58183c/src/application-insights/azext_applicationinsights/_client_factory.py#L13
that is not leveraging the changes in https://github.com/Azure/azure-cli/pull/11385

Apart from the above comment about hardcoded app insights, there's also one hard coded: https://github.com/Azure/azure-cli-extensions/blob/cf7cebdbf68cedca9b6bb5c7625d87bc8da819f5/src/application-insights/azext_applicationinsights/vendored_sdks/mgmt_applicationinsights/application_insights_management_client.py#L48
The latter one is the one we are hitting in the repro steps.

@stan-sz Hello. This one should be overwritten if you set the base_url by az cloud update. I will get a test sub and test it again. 😄

Not necessarily. In these two places below the ApplicationInsightsManagementClient is initiated without the base_url so the default (public cloud base url) is used in the __init__:
https://github.com/Azure/azure-cli-extensions/blob/1148304a67206e71d1ebc37f24cac5a0700356b2/src/application-insights/azext_applicationinsights/_client_factory.py#L27-L35


fix breaking pathlib change in 3.10 beta1

Hello!
Sorry for the PR outa the blue w/out an issue to discuss -- had some time and figured I'd take a crack at it. I added 3.10 beta1 to my ci for some projects using pyfakefs and my builds are failing. Did a bit of sleuthing and it seems there were a few changes to Pathlib for this release. The main issue/thread seems to be here -- and associated commit. This commit also appears to be related.
I think (hope?!) that this fix is backwards compatible. Tests in the docker container all seem happy, and I've tested this locally on my Mac w/ 3.10 beta1 and the tests that are/were failing in CI pass like normal. For reference, here is my failed tests (the build_posix (ubuntu-latest, 3.10.0-beta.1) job).
The fix itself is basically to ignore that init argument (the pr/issue on Cpython seems to say this is mostly legacy and (obviously) going away anyway). Then allowing the wrapped stat method (well I guess everything... which is perhaps not ideal?) to accept kwargs as well. Since _init method is no longer called, I removed that and just assigned that _accessor to the _fake_accessor directly after the _from_parts calls.
Hope that all makes sense -- have been happily using pyfakefs (thanks for the project btw!) a while but the guts of it are probably a bit over my head :)
Carl

@carlmontanari -- thanks! There is no need for you to spend more time on this, I can take it from here.  As I wrote, your contribution has already been helpful enough. I'll work on your branch then if you don't mind and will see if I can finish it soon -- maybe at the weekend.

@carlmontanari - I got it to work now, I'll let you have a look and check if something is missing from your POV before I'm going to merge it. Didn't have to wait until the weekend, as today was a holiday here...

@carlmontanari - I got it to work now, I'll let you have a look and check if something is missing from your POV before I'm going to merge it. Didn't have to wait until the weekend, as today was a holiday here...

You rock! A quick check and looks like all my tests are passing on 3.10 locally. Will try to get a branch updated to remove my skips to let it run on 3.10 on ubuntu latest too (locally am macOS).


Deliver Train-the-Coach - APAC

we will record the video overview in advance
send that to the coaches
send challenge videos to coaches
4 hour session to walk through setup and challenges
1-2 hour follow up session to answer any questions


Artifact not copied when using Maven ${project.build.directory} property

Hi,
I am really confused by the following issue. I need your help :).
I have a parent pom, which is used for all my war projects. In this parent pom, I have:
<plugin>
    <groupId>com.spotify</groupId>
    <artifactId>dockerfile-maven-plugin</artifactId>
    <version>1.3.6</version>
    <executions>
        <execution>
            <goals>
                <goal>build</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <repository>${project.groupId}/${project.artifactId}</repository>
        <tag>${project.version}</tag>
        <buildArgs>
            <ARTIFACT>target/${project.build.finalName}.${project.packaging}</ARTIFACT>
        </buildArgs>
    </configuration>
</plugin>

Now, in the child poms, which are war projects, I can do:
<plugin>
    <groupId>com.spotify</groupId>
    <artifactId>dockerfile-maven-plugin</artifactId>
</plugin>

This works really great. As an example, a Dockerfile looks like this:
FROM tomcat

ARG ARTIFACT
ADD ${ARTIFACT} /usr/local/tomcat/webapps/my-project.war

Now to my bug. In the parent pom, if I replace
    <buildArgs>
        <ARTIFACT>target/${project.build.finalName}.${project.packaging}</ARTIFACT>
    </buildArgs>

by
    <buildArgs>
        <ARTIFACT>${project.build.directory}/${project.build.finalName}.${project.packaging}</ARTIFACT>
    </buildArgs>

this is no longer working. I get the following exception:
[ERROR] ADD failed: stat /var/lib/docker/tmp/docker-builder028011685/home/jjjjeee/projects/my-project/target/my-project-1.0.0-SNAPSHOT.war: no such file or directory
However, that file exists. That would also have been the file if I just did target/${project.build.finalName}.${project.packaging} instead of the not working ${project.build.directory}/${project.build.finalName}.${project.packaging}.
Any ideas? This is really confusing me.
Thanks a lot!

I’d suggest taking a look at the output of mvn help:effective-pom. Possibly the /home/jjjjeee path is not inside the docker context which is sent to the docker daemon (do you expect that to look like an absolute path?).

Good idea, I will do this.

@mattnworb It makes sense now!
With:
    <buildArgs>
        <ARTIFACT>target/${project.build.finalName}.${project.packaging}</ARTIFACT>
    </buildArgs>

It holds the value: target/my-project-1.0.0-SNAPSHOT.war
With:
    <buildArgs>
        <ARTIFACT>${project.build.directory}/${project.build.finalName}.${project.packaging}</ARTIFACT>
    </buildArgs>

It holds the value: /home/.../target/my-project-1.0.0-SNAPSHOT.war
And that is indeed in the docker context, as you thought.
Is there a way to configure this context when using dockerfile-maven-plugin?

You can set <contextDirectory> in the <configuration>: https://github.com/spotify/dockerfile-maven/blob/59c93a1b3f5af4410735c5df8ae4f27c7ed4c0af/plugin/src/main/java/com/spotify/plugin/dockerfile/BuildMojo.java#L48-L54

@mattnworb  Isn't this some kind of bug then? The basedir is set to ${project.basedir}, so it is /home/jjjjeee/projects/my-project in my case. I am providing a file with path /home/jjjjeee/projects/my-project/target/my-project-1.0.0-SNAPSHOT.war, which is an absolute path certainly below the basedir.
Shouldn't we be smart enough to translate this absolute path in to the relative path target/my-project-1.0.0-SNAPSHOT.war?

I wouldn't classify this as a bug in dockerfile-maven, as it is docker itself that requires that the paths in the Dockerfile be relative paths to the context. See https://github.com/moby/moby/issues/4592 as a reference. Absolute paths in the Dockerfile would make your build a lot less portable, for instance.
For example:
$ pwd
/tmp/foobar

$ ls
Dockerfile	hello.txt

$ cat Dockerfile
FROM ubuntu
RUN echo hello
ADD /tmp/foobar/hello.txt hello.txt

$ docker build .
Sending build context to Docker daemon   2.56kB
Step 1/3 : FROM ubuntu
 ---> 20c44cd7596f
Step 2/3 : RUN echo hello
 ---> Using cache
 ---> e37466936e64
Step 3/3 : ADD /tmp/foobar/hello.txt hello.txt
ADD failed: stat /var/lib/docker/tmp/docker-builder205366892/tmp/foobar/hello.txt: no such file or directory

I would agree that the fact that the Maven property ${project.build.directory} is an absolute path can be confusing, but that is Maven for you 🤷♂


Merge branch ocp-4pre into ocp-3.11

This merges all the deployment updates in the ocp-4pre branch into the base (and default) ocp-3.11 branch. Content remains that for v3 OpenShift.
Tested deployment with OCP v3.11 at https://master.sanmat-9b96.openshiftworkshop.com/console/project/starter-apb-merge0/overview

For good measure also tested on v4 RHPDS cluster
PLAY RECAP *********************************************************************
localhost                  : ok=133  changed=61   unreachable=0    failed=0

Note: Merge, do not rebase or squash


add ubuntu 20.04 LTS

https://wiki.ubuntu.com/Releases

Everything resolved and preview is looking good. Thank you for the fast reaction and the update, merging now.


mmdeploy inference code for mmediting

Model/Dataset/Scheduler description
At present, there is no c++ inference code for the deployed mmediting model, there is a problem with the code I parodied mmdetection
，I hope someone can give me a correct code, just the core part of inference, thank you，below is my wrong  code
`
string model_path = "../mmdeploy_model/realesrnet";
mmdeploy::Model model(model_path.c_str());

mmdeploy::Restorer restorer(model, mmdeploy::Device{device_name, device_id});
startTime = clock();
for (int j = 0; j < filesVec.size(); j++)
{
    Mat img = imread(filesVec[j], 1);
    Mat img2;
    img.convertTo(img2, CV_32FC3);
    auto rets = restorer.Apply(img2);`

Open source status

[X] The model implementation is available
[X] The model weights are available.

Provide useful links for the implementation
No response

Hi, @kantkk : What about this code? Maybe this code can help you.
If it cannot help you, please open an issue in mmdeploy issues.

Hi, @kantkk : What about this code? Maybe this code can help you. If it cannot help you, please open an issue in mmdeploy issues.
It's really this code. You've helped me a lot. Thank you very much！！


Fix trait object in doctest

A doctest is failing in AppVeyor because it uses a trait object without the dyn keyword:
---- src\collector\top_score_collector.rs - collector::top_score_collector::TopDocs::order_by_u64_field (line 89) stdout ----
error: trait objects without an explicit `dyn` are deprecated
  --> src\collector\top_score_collector.rs:131:34
   |
44 |                          query: &Query,
   |                                  ^^^^^ help: use `dyn`: `dyn Query`
   |
note: lint level defined here
  --> src\collector\top_score_collector.rs:89:9
   |
2  | #![deny(warnings)]
   |         ^^^^^^^^
   = note: #[deny(bare_trait_objects)] implied by #[deny(warnings)]
error: aborting due to previous error

Thanks!


Suggestion: provide info on setting --max_old_space_size

Hi,
thx for this action.
Recently, it started to fail due to:
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
I have thousands of tests...
the solution was to use max_old_space_size, eg, currently I am using:
      - name: Publish Test Report
        if: success() || failure()
        uses: mikepenz/action-junit-report@v4
        env:
          NODE_OPTIONS: "--max_old_space_size=4096"
        with:
          report_paths: '**/target/surefire-reports/TEST-*.xml'

maybe something worthy to mention in the documentation, in case other users end up in the same problem.
This is base on this discussion.

Thank you very much for the issue.
This is already outlined in the README:

Will see to adjust the wording to make it easier to find

Hi @mikepenz
you are right, indeed it was there. But, as by default it is collapsed, I missed when "quickly" scan through the docs. Didn't realize could click on those arrows to expand the text...

No worries. I hope with the update if the readme it's easier to find 👍


Add wildcard branch names

I would find it useful to be able to specify branch names with a wildcard, e.g.
{
  "feature/*": true
}

So I can pipe all feature/* noise into a different slack channel.

Oh, I totally forgot I had added this – you can already do it! I just forgot to document it.
You can use regex notation and you can also inverse match, like so:
`/^dev-/`: true
'!/^test-/': true

See the tests for more on this until I document it better: https://github.com/lambci/lambci/blob/master/test/config.js#L52-L104

💃


How to use search between dates?

Congratulations on this beautiful package.
I have a dt_start column of type date, in the form I have the inputs from_date and to_date, in the url displays /called?from_date=2020-07-09&to_date=2020-07-23
But it shows the error Not found the filter: FromDateFilter, for not having the FromDate filter, of course. I created a DtStart filter.
public function apply(Builder $builder, $fromDate): Builder
{
    return $builder->whereBetween('dt_start', [$fromDate, $fromDate]);
}

So, how do I get these two parameters?

@multiarts  Thanks a lot.
First, make a  DateFilter class. Then call a url like this:
/called?date[from_date]=2020-07-09&date[to_date]=2020-07-23
Finally, make your query:
public function apply(Builder $builder, $date): Builder
{
    list('from_date'=>$fromDate, 'to_date'=>$toDate) =$date;

    return $builder->whereBetween('dt_start', [$fromDate, $toDate]);
}

I don't access to my PC for testing the above code at the moment.
Please note that, you need to test the code your self before using them.

Typing in the URL works, but when I submit the form it looks like this in the address bar.
/called?date%5Bfrom_date%5D=2020-07-14&date%5Bto_date%5D=2020-07-22
And in the form I modified the inputs.
<input name="date[from_date"> <input name="date[to_date]">

If you can help me, I will be immensely grateful.

I need to search between dates - OK
By status: / called & status = 1 - OK
Per month: / called? Month = 08 - OK
Per user: / called? User_id = 1 - OK
By tecnico: / called? Tecnico_id = 5 - OK

When I type in the url separated as above or /called?month=2&status=4 or /called?month=08&status=3&tecnico_id=2
works great, but if the date comes empty it returns nothing.
/called?date%5Bfrom_date%5D=&date%5Bto_date%5D=&month=08&status=2
How do I make the form send only what was selected?

@multiarts First of all, you should fix you form as below (You missed one closing bracket):
<input name="date[from_date]"> <input name="date[to_date]">
Then, you should know that, it is not possible to use WhereBetween without one null/empty parameter. So you have to send start and end date.

@multiarts We will fix this bug soon.

@multiarts  Version 2.2.1 released and fix this issue. Please use the latest version.

@mohammad-fouladgar Thank you very much for your attention and quick solution, it is now working as I wish.


Misc improvements

I noticed I actually run a different version of this plugin since a long time now.  Sorry, this is a rather unfocused PR.
Improvements/changes:

If there is a .mypy_cache folder in the project just use (respect) that.

Do not check a falsy value for cache-dir. Leave the automatic default to '', but if the user sets explicitly False, respect that.  (Typical in the mypy.ini we can say where the cache is located, so it is good to somehow disable the automatic behavior.)

If there is no working dir (t.i. no open folder for that window typically) do not lint at all. (This fixes an edge case really, when working_dir is None we don't have a stable key for tmpdirs and hence the chance that unrelated stranded files share the same cache folder.)

Do not clean all cache folder on reload which is triggered on startup, and for example when SublimeLinter hot reloads. The caches are very expensive to compute, and so we try to keep them if possible (if the cache is used within the last 14 days). (That's a tricky first commit here, and I hope I didn't messed it up while squashing and preparing this PR.)

Capture the error-code and filename. code is supported via mypy's show-error-codes flag (maybe roughly a year old), filename is supported by SublimeLinter core also since a year or so. (That also means users can actually follow imports now. SublimeLinter accepts errors from multiple files in one go.)

Allow only one mypy process per cache (basically per project or working dir). This is a bug fix; SublimeLinter actually tries to run mypy on multiple files in the background, but mypy does not lock the caches. It is strictly forbidden to run mypy on the same folder concurrently, so we ensure that with a lock. (This is cheaply implemented but just enough since we're not "highly" concurrent here in this context, usually these processes would just overlap a bit.)

Thanks for these changes.
I didn't even realize --show-error-codes was added to mypy. Or maybe I did but quickly forgot about it.

Remove the trailing :, these are probably typos although SublimeLinter
is permissive here.

These were documented features for the defaults dictionary, but they might have been removed since. I don't quite remember what exactly they did, however.
Could you update the README with these changes as well?

Also, you say that SL can interpret filenames in the output by itself, but do we want to change the default for --follow-imports?

Ah, the README, will take a look.
The trailing : somehow magically determines the behavior if a setting can be or in fact is set multiple times, t.i. the user sets an array of things. But here these flags can only be set once I guess. (The exact rules I have to look up each time in the SublimeLinter tests actually. Iirc it is a simple system with bugs we keep for compatibility. I don't think I could explain it.)
We could of course change the default of --follow-imports. Technically this works fine, but mypy is so unbelievable slow, and I wouldn't use it unless the project is already or almost green because otherwise mypy will follow and report possibly hundreds of errors. Don't know really.

Mypy does have an incremental mode that runs in the background, but is harder to inferface with and I hope it hasn't been removed yet, but in the current world of LSP implementations and live analysis, I doubt that. This is tracked in #14.


System.Interactive/3.2.0

Type: Missing
Summary:
System.Interactive/3.2.0
Details:
No info in package files. Meta data points to MIT.
Resolution:
https://github.com/dotnet/reactive/blob/master/LICENSE
Affected definitions:

System.Interactive 3.2.0

@TRQ3 @capfei I would curate this v3.2.0 released July 2018 as Apache 2.0. Commit on release date -  https://github.com/dotnet/reactive/blob/06207534e96cea339aa0863da269881fcf758cfa/LICENSE.
The license was updated to MIT more recently.
Do you agree?

@AE49 I agree that this should be Apache-2.0.


[3pts] Set up Kanban Board

Hi dear reviewer ✋🏼.
Assignment check ✅

We are a group of four for this project, the team members are:

@Kumilachew-g
@vicmaburrito
@Tadessejemal1
@angeluray

This is the link to our GitHub project .
Visual check 📷

Hi dear student,
In my opinion, your project is ready for presentation!  There is nothing else to say other than... it's time to merge it :shipit:

Good luck! 🎉
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.


Fork PR

Note that this will likely fail to pass Travis tests due to the fact that the unit tests try to hit the network and appear to fail loading the JS

Merging despite the failing test. It seems that same test, testPerformanceExampleJS, is currently failing on master.
The test should be fixed to avoid making the request over the network.


🔥 Remove exec line from git hook

I copied over that line from the git hook gitmoji-cli installs and still not sure what it does. I had assumed it's needed but it seems it isn't.
Also it's likely why git hook doesn't work on Mac and Windows (where it may not work at all still).
Fixes #20.

checking...

That was something I already checked but did not work out. Deep dive, I have found that the following line raises the error:
    execute!(stdout(), EnterAlternateScreen)?;

Also, there were cases where the original version worked fine. But somehow they stopped working again. I could not get the pattern.
Deleting .git/COMMIT_EDITMSG did not work either.

That was something I already checked but did not work out.

:(

I have found that the following line raises the error:

Wait, are you saying that the problem is gimoji itself but it works just fine when run standalone?

Also, there were cases where the original version worked fine. But somehow they stopped working again.

What do you mean by "original version"? You mean it just fails randomly but sometimes it works? :thinking:

Wait, are you saying that the problem is gimoji itself but it works just fine when run standalone?

What do you mean? I am confused. :)

What do you mean by "original version"? You mean it just fails randomly but sometimes it works? 🤔
the original version = without your fix attempt
yes it worked 3-5 times in a row then stopped again.

Wait, are you saying that the problem is gimoji itself but it works just fine when run standalone?

What do you mean? I am confused. :)

Do you see an issue when you just run gimoji directly (instead of through git commit hook)?

No. But here what I see on my vscode terminal:

Most of the icons do not appear, which might a good candidate for another issue.

No. But here what I see on my vscode terminal:

ah, you're running it in vscode. That might be the actual issue. I'll see if everything works in vscode on my Linux machine either.

No, I use 3 different terminals in fact: iterm, warp and vscode. What I suspect is the starship. I will try to disable it and try again.

hm..

Launching gimoji directly in the terminal on VS Code worked just fine.
git commit from VS Code UI fails with a very similar message to that of #20:

> git -c user.useConfigOnly=true commit --quiet
    Finished dev [unoptimized + debuginfo] target(s) in 0.05s
     Running `target/debug/gimoji --hook .git/COMMIT_EDITMSG`
Error: Os { code: 6, kind: Uncategorized, message: "No such device or address" }

Can you please:

check if gimoji works on a terminal outside vscode?
double-check you've the latest gimoji binary installed (being used).

No, I use 3 different terminals in fact: iterm, warp and vscode. What I suspect is the starship. I will try to disable it and try again.

I also use starship so I double that's the issue here.

But let's put VSCode completely aside. That's quite out of scope at the moment if it doesn't support the git commit hook at all. The commit hook is intended for folks you use command line to commit. For VS Code, it'd be best to provide some extension so people can achieve the same w/o a terminal.

Removing/disabling starship did not help

Ok found the problem, fixing it...

@rimbi Can you check if this change breaks anything? I'm still not sure what the removed line does so I'd like to commit this change anyway.

Apparently we can remove the line; it works without it too.


[research] Subgraph id expiration & releases

Describe the bug
We need to deal with the fact that IDs expire:

when do they expire?
can we prevent them from expiring?
is there another way to create stable subgraph version that allow us to support a prior API version indefinitely?
how does this change on hosted network vs decentralized net?

Example:

subgraph id abc123456 is consumed in production api version v2.0.0.api.carbonmark.com
we upgrade the subgraph to change schemas for v3, v4 etc. and get a new id def789123
At some point abc123456 breaks, which breaks v2.0.0 completely

its not clear when/why/how or what our options are around this.

when do they expire?
They automatically expire after 45 days if there has been no query traffic. They can also expire if an updated version is pushed to the same named deployment.
can we prevent them from expiring?
Create a new named deployment for each version that corresponds with an api release, and also submit at least one query every 45 days.
is there another way to create stable subgraph version that allow us to support a prior API version indefinitely?
Self hosting a graph node or just utilizing the query/endpoint structure outlined above for the hosted service should be enough.
how does this change on hosted network vs decentralized net?
The decentralized network will most likely continue to index and serve queries as long as there is ample enough signal to drive indexing rewards (and possible query rewards) towards the indexers serving the subgraphs on the decentralized net.

Notes from a dm discussion with Cujo:

He is actively avoiding by only pushing updates to new named subgraph deployments.
My question was: then why are we using ids? we could have stuck with names.
His answer was: the ids will be more useful when we move to the decentralized net.

This is sufficient for me. We need to document our release process, I made a new ticket for that: https://github.com/KlimaDAO/klima-subgraph/issues/90


Adding sleep to project test flake

What kind of PR is this?

/kind flake
What does does this PR do / why we need it:
https://github.com/openshift/odo/pull/2356#issuecomment-549794079
How to test changes / Special notes to the reviewer:
CI should not throw project list flake

@girishramnani AFAIU pr #2362 is a test blocker for now. Even after fixing it there is a high chance of getting project list flake in CI. I would recommend please add this single line change to your pr and close this pr.

Travis still seems to be failing @amitkrout

added the changes @amitkrout https://github.com/openshift/odo/pull/2362. lets wait to confirm that this PR only fails on 4.3 intg

/test v4.3-e2e-scenarios
level=fatal msg="failed to fetch Cluster: failed to generate asset \"Cluster\": failed to create cluster: failed to apply using Terraform"

v4.3-integration failed due to https://github.com/openshift/odo/issues/2357

/override v4.3-integration
4.3 specific issue will be solved in #2357

/override ci/prow/v4.3-integration
/approve


Download link for Kext upgrade Error

Hi, @ic005k , after you remove the option for crawling github web, currently i often get warning about file creation failed. It's because we are now limited from just accessing github API.
When i select another mirror , still the same.
Any other workaround for this ? Thankyou.

after you remove the option for crawling github web,

This option has been defunct for a long time, and Github has officially banned downloading links from the web's source code.
So, your glitch has nothing to do with this option.

The only possibility is that access to Github will be restricted in certain countries or regions, such as the following link:
https://raw.githubusercontent.com/dortania/build-repo/builds/config.json
In this case, there is no good way to access Github, and you may need to use some special tools such as VPN.
Anyway, I'll keep an eye on it, and if you have anything, feel free to leave a message.

Ok, thankyou for some clarifications.


JWT CoreStrategy in fosite-example does not work

I'm playing around with making use of a JWT strategy when implementing an OpenID Connect Provider, instead of the HMAC strategy which is the default in the example project. However, it seems that none of the readily available session implementations satisfy both the oauth2.JWTSessionContainer and openid.Session interfaces.
I suppose I can implement my own session that does, but it seems like this should be supported out of the box given that it's present in the example within a comment:
https://github.com/ory-am/fosite-example/blob/master/authorizationserver/oauth2.go#L34-L36
Let me know if I'm missing something! Thanks.

I don't see why it shouldn't be compatible. Maybe I'm missing something. What error does the compiler throw?

Ah sorry, I mixed up something. I think what you're looking for could be this: https://github.com/ory-am/fosite/blob/master/handler/openid/strategy_jwt.go#L24
Let me know if I misunderstood you (again) :D

Ah right, that one is missing the JWTSessionContainer stuff. It's late...
That could be indeed missing. I think adding it to the openid package could be an option.

Yep! It's the missing JWTSessionContainer that gets through at runtime during initialization. The issue seems to be that the *jwt.JWTClaims and *jwt.IDTokenClaims, both of which are the "claims" for the respective sessions, are slightly different in their content. Perhaps they could be unified? Or is there a reason from the spec that they must be non-overlapping?
My temporary fix was the following bit of code, which I use within a custom implemented session:

// Claims contains claim values common between modes.
type Claims struct {
	Subject         string
	Issuer          string
	Audience        string
	Nonce           string
	JTI             string
	IssuedAt        time.Time
	NotBefore       time.Time
	ExpiresAt       time.Time
	AuthTime        time.Time
	AccessTokenHash []byte
	CodeHash        []byte
	Extra           map[string]interface{}
}

// IDToken returns IDTokenClaims based on the core claims values.
func (c *Claims) IDToken() *jwt.IDTokenClaims {
	if c == nil {
		*c = Claims{}
	}
	return &jwt.IDTokenClaims{
		Issuer:          c.Issuer,
		Subject:         c.Subject,
		Audience:        c.Audience,
		Nonce:           c.Nonce,
		ExpiresAt:       c.ExpiresAt,
		IssuedAt:        c.IssuedAt,
		AuthTime:        c.AuthTime,
		AccessTokenHash: c.AccessTokenHash,
		CodeHash:        c.CodeHash,
		Extra:           c.Extra,
	}
}

// JWT returns JWTClaims based on the core claims values.
func (c *Claims) JWT() *jwt.JWTClaims {
	if c == nil {
		*c = Claims{}
	}
	return &jwt.JWTClaims{
		Subject:   c.Subject,
		Issuer:    c.Issuer,
		Audience:  c.Audience,
		JTI:       c.JTI,
		IssuedAt:  c.IssuedAt,
		NotBefore: c.NotBefore,
		ExpiresAt: c.ExpiresAt,
		Extra:     c.Extra,
	}
}

Wouldn't this work too?
type Session struct {
  *jwt.IDTokenClaims
  *jwt.JWTClaims
}

var session = &Session{
  IDTokenClaims: //...
  JWTClaims: //...
}

You could also usea factory that sets some defaults:
func NewSession(foo string) *Session {
  return &Session{
    IDTokenClaims: //...
    JWTClaims: //...
  }
}

Closing due to inactivity

Has this been resolved or will it be reopened under a different issue?

See https://github.com/ory/fosite/issues/124#issuecomment-258082408 - unless that doesn't help please create a new issue


(FIX)

added logs path from scrapyd.conf to the 'Logs' button on scrapyd web homepage

https://app.asana.com/0/1201440529742077/1205450268392102