ReferenceError: elementsMatch is not defined

Hello,
I have used this package in my testing setup using webpack, babel, and mocha. Webpack and babel will transform my source and test files into bundle.js then mocha will run on this file. For some reasons, I encountered the following error every time I run mocha.
  1) components/base-widgets/button should render correctly with DEFAULT random parameters:
     ReferenceError: elementsMatch is not defined
      at oathbreaker (webpack:///./~/unexpected/lib/oathbreaker.js:47:1)
      at Function.withError (webpack:///./~/unexpected/lib/createWrappedExpectProto.js:36:1)
      at Function.<anonymous> (webpack:///./~/unexpected-react-shallow/src/lib/assertions.js:17:1)
      at executeExpect (webpack:///./~/unexpected/lib/Unexpected.js:1056:1)
      at webpack:///./~/unexpected/lib/Unexpected.js:1020:1
      at Function.callInNestedContext (webpack:///./~/unexpected/lib/createWrappedExpectProto.js:60:1)
      at wrappedExpect (webpack:///./~/unexpected/lib/Unexpected.js:1019:1)
      at Function.<anonymous> (webpack:///./~/unexpected-react-shallow/src/lib/assertions.js:52:1)
      at executeExpect (webpack:///./~/unexpected/lib/Unexpected.js:1056:1)
      at Unexpected.expect (webpack:///./~/unexpected/lib/Unexpected.js:1061:1)
      at Context.<anonymous> (webpack:///./~/chai/index.js:23:9)
      ....

Here is an example of the component under test:
import React, { Component } from 'react';
import classNames from 'classnames';

import './styles/button';

export default class Button extends Component {

    static propTypes = {
        id: React.PropTypes.string,
        onClick: React.PropTypes.func,
        className: React.PropTypes.string,
        disabled: React.PropTypes.bool,
        children: React.PropTypes.oneOfType([React.PropTypes.string, React.PropTypes.arrayOf(React.PropTypes.element)])
    };

    onClick(e, props) {
        if (this.props.onClick) {
            this.props.onClick(e, props);
        }
    }

    render() {
        const className = classNames('dxp-button', this.props.className);
        return (
            <button id={this.props.id} className={className} onClick={(e) => this.onClick(e, this.props)} disabled={this.props.disabled}>
                {this.props.children}
            </button>);
    }
}

And here is the test code:
import {expect} from 'chai';
import React from 'react';
import Button from 'components/base-widgets/button';
import TestUtils from 'react-addons-test-utils';
import Chance from 'chance';
import unexpected from 'unexpected';
import unexpectedReactShallow from 'unexpected-react-shallow';

const expectDOM = unexpected.clone()
    .installPlugin(unexpectedReactShallow);
const chance = new Chance();

describe('components/base-widgets/button', function () {
    it('should render correctly with DEFAULT random parameters', function () {
        const props = {
            className: chance.word(),
            id: chance.guid(),
            disabled: chance.bool()
        };
        const children = ['Button Name'];
        const shallowRenderer = TestUtils.createRenderer();
        shallowRenderer.render(React.createElement(Button, props, children));
        expectDOM(shallowRenderer, 'to have rendered', (
            <button id={props.id} className={`dxp-button ${props.className}`} disabled={props.disabled}>{'Button Name'}</button>
        ));
    });
});

Here are packages I used:
"react-addons-test-utils": "^0.14.0",
"unexpected": "^10.0.1",
"unexpected-react-shallow": "^0.6.1",
"react": "^0.14.0",

Do you know why it is happening?

Would it be possible to share your webpack config, or at least enough of it to try to replicate it? I don't use webpack, so I don't know how to configure it properly.
Thank!

Here is my webpack config
var path = require('path');
var webpack = require('webpack');

module.exports = {
    devtool: 'inline-source-map',
    target: 'node',
    entry: [
        './test/index'
    ],
    output: {
        path: path.join(__dirname, 'tmp'),
        filename: 'js/bundle.js',
        publicPath: '/'
    },
    resolve: {
        extensions: ['', '.js', '.scss', '.less'],
        alias: {
            styles: path.join(__dirname, 'app/common/styles'),
            actions: path.join(__dirname, 'app/common/actions'),
            components: path.join(__dirname, 'app/common/components'),
            reducers: path.join(__dirname, 'app/common/reducers'),
            selectors: path.join(__dirname, 'app/common/selectors'),
            services: path.join(__dirname, 'app/services'),
            utils: path.join(__dirname, 'app/common/utils'),
            features: path.join(__dirname, 'app/features'),
            images: path.join(__dirname, 'public/images')
        }
    },
    module: {
        loaders: [
            {
                test: /\.jsx?$/,
                loader: 'babel',
                query: {
                    compact: false
                },
                exclude: /node_modules/,
                include: [path.join(__dirname, 'app'), path.join(__dirname, 'test')]
            },
            {
                test: /\.(scss|less|json)$/,
                loader: 'null'
            }
        ]
    }
};

And here is my gulp task:
gulp.task('test', function (callback) {
    runSequence('webpack:test', 'mocha', callback);
});

Thanks.

Ok, I've built a repo with this all in (minus gulp, but that shouldn't be important), and it works - the test passes.
Can you try deleting your node_modules/unexpected-react-shallow, and rerunning the npm install. What's odd is, is that line 17 of assertions.js is actually assertElementsMatch, which changed in a recent update - I wonder if you just have a buggy install?
If that doesn't change anything, I'll commit and push this repo, then you can take a look and see if you can replicate it.
What is very cool though, is that I've been able to replicate issue #4 with this setup, so thank you for sharing all the files!

Pushed the repo here - let me know if you can repo it with that: https://github.com/bruderstein/shallow-issue-9

I'm going to close this as until we can get a repro going, it's going to be very hard to fix. Also no feedback for a while. Feel free to re-open if you have new information.


NIX_PATH not set after upgrade to 21.11 / 2.4 (single-user installation on ArchLinux)

Describe the bug
After upgrading to 21.11 I started seeing the error
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)

when starting nix shells in all my dev projects where I use nix and niv. I didn't see this prior to the upgrade. Manually setting the value of NIX_PATH via export NIX_PATH=/home/magnus/.nix-defexpr/channels resolves the issue
There's a discussion at https://discourse.nixos.org/t/where-is-nix-path-supposed-to-be-set/16434
Steps To Reproduce
Steps to reproduce the behavior: (not verifiied, but it's what I did on my system)

Install nix 21.05 on a Linux distro in single-user mode, verify that nix-shell works in dev project with nix and niv
Run nix-channel --remove nixpkgs
Run nix-channel --add https://channels.nixos.org/nixos-21.11 nixpkgs followed by nix-channel --update and nix-env --upgrade
Enter a nix-shell in a dev project with nix and niv

Expected behavior
Same behaviour as before the upgrade, that no error is reported.
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[I] ➜ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.6-arch2-1, Arch Linux, noversion`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4`
 - channels(magnus): `"aws-helpers, dhall-compose, nixpkgs-21.11.334027.e34c5379866, z-arthur, z-dhall-compose, nixos-21.05-21.05.2001.d4590d21006"`
 - nixpkgs: `/home/magnus/.nix-defexpr/channels/nixpkgs`

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/where-is-nix-path-supposed-to-be-set/16434/11

This happened due to changes in ~/.nix-profile/etc/profile.d/nix.sh, see https://github.com/NixOS/nix/commit/ec9dd9a5aeb9b7fca170d86b8906ffac7e5ef057 and https://github.com/NixOS/nix/blob/master/scripts/nix-profile.sh.in.
As a workaround you can set NIX_PATH like that:
export NIX_PATH=${NIX_PATH:+$NIX_PATH:}$HOME/.nix-defexpr/channels

Ping @edolstra because you introduced the change. Maybe there is a better why to work with nix 2.4 and a channel setup.

I'll note that I found NIX_PATH was not set following a first-time multi-user installation on macOS, either (full details in comment):
https://github.com/nix-community/home-manager/issues/2564#issuecomment-994771724
I also found that manually filling in NIX_PATH in my shell as recommended didn't seem to fix things, and actually broke nix-shell (full details in comment):
https://github.com/nix-community/home-manager/issues/2564#issuecomment-994892592

You can try adding
export NIX_PATH=nixpkgs=$HOME/.nix-defexpr/channels/nixpkgs/:$NIX_PATH

May be related to https://github.com/NixOS/nix/issues/1865.

In https://github.com/nix-community/home-manager/issues/2564#issuecomment-994943471, @rcerc recommended the following:
export NIX_PATH=${NIX_PATH:+$NIX_PATH:}$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels

I appended this to my bash and zsh profiles via these one-liners:
$ echo 'export NIX_PATH=${NIX_PATH:+$NIX_PATH:}$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels\n' >> ~/.bash_profile
$ echo 'export NIX_PATH=${NIX_PATH:+$NIX_PATH:}$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels\n' >> ~/.zshenv

I can confirm that rcerc's suggested path works. Is there any benefit in swapping it for your suggested one @Gerschtli, or do they both look equally sensible?

My fix would solve another issue. With his fix you are telling nix to take a look at system-level installed channels not only user-level ones. So if that is your setup and this works for you than keep it like that :)

So does this mean that it is not using the default from https://github.com/NixOS/nix/blob/master/src/libexpr/eval.cc#L2264 when NIX_PATH is not set? Or is it restrictEval and/or pureEval causing the default to be empty?

@steinybot, in the case that NIX_PATH is set, the default returned by getDefaultNixPath is not used. On src/libexpr/eval.cc:2261, the Nix path is overridden (the default is ignored) by the environment variable if it was set.

I'm completely new to Nix and this threw me off a bit. I ended up setting NIX_PATH to the same as the default ought to be when it is not set. Seems like this is ought to be unnecessary.

I am not so familiar with Nix either, so I could be misunderstanding its internals. It might be possible to modify applications that use Nix so NIX_PATH can be left unset and the built-in default be used though.

appended this to my bash and zsh profiles via these one-liners:

$ echo 'export NIX_PATH=${NIX_PATH:+$NIX_PATH:}$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels\n' >> ~/.bash_profile
$ echo 'export NIX_PATH=${NIX_PATH:+$NIX_PATH:}$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels\n' >> ~/.zshenv

I did just
$ export NIX_PATH=/nix/var/nix/profiles/per-user/root/channels

and it seems to work fine on my multi-user setup on Fedora.

this also causes issues with home-manager installation:
Creating initial Home Manager generation...

/nix/store/mvj4y4lbwxfx8vxa2s66wd7dsd4x1zdj-home-manager/bin/home-manager: line 90: NIX_PATH: unbound variable
Uh oh, the installation failed! Please create an issue at

    https://github.com/nix-community/home-manager/issues

if the error seems to be the fault of Home Manager.
home-manager installed successfully

This is causing a problem in Stack's Linux/x86_64 CI. Stack was setting up Nix (nix-2.16.1) with:
(for i in {1..5}; do bash <(curl -sSL https://nixos.org/nix/install) --no-daemon && exit 0; done; exit 1)
. ~/.nix-profile/etc/profile.d/nix.sh
nix-channel --add https://nixos.org/channels/nixos-23.05 nixpkgs
nix-channel --update

but that set up started to cause stack build --nix-pure to complain:
        … <borked>
          at «none»:0: (source not available)
        … while calling the 'import' builtin
          at «string»:1:7:
             1| with (import <nixpkgs> {}); let inputs = [haskell.compiler.ghc927 git gcc gmp]; libPath = lib.makeLibraryPath inputs; stackExtraArgs = lib.concatMap (pkg: [ ''--extra-lib-dirs=${lib.getLib pkg}/lib''   ''--extra-include-dirs=${lib.getDev pkg}/include'' ]) inputs; in runCommand ''myEnv'' { buildInputs = lib.optional stdenv.isLinux glibcLocales ++ inputs; STACK_PLATFORM_VARIANT=''nix''; STACK_IN_NIX_SHELL=1; LD_LIBRARY_PATH = libPath;STACK_IN_NIX_EXTRA_ARGS = stackExtraArgs; LANG="en_US.UTF-8";} ""
              |       ^
        error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)
        at «none»:0: (source not available)

Manually adding export NIX_PATH=${NIX_PATH:+$NIX_PATH:}$HOME/.nix-defexpr/channels to the CI solves the Stack problem.

Still happening under 23.11 on Debian,
Another workaround, I saw discussed in ArchLinux bug trackers is that NIX_PATH being defined in the /usr/lib/environment.d/nix-daemon.conf, commenting out the variable definition, and restarting the nix-daemon systemd service fixed the issue, because it unsets the NIX_PATH, for the service.
@Gerschtli's workaround also works.
Does anyone has any recommandation on how we could fix this issue for good, just not by relying on workarounds, should a PR be made in Nix source code to handle the situation in a better way ?

It happens to me too, but in NixOS :/

@AndersonTorres do you have any idea of the root cause on NixOS ?

No idea, but since I am using flakes I bump over NIX_PATH issues.
As a simple example, I am unable to run the scripts inside pkgs/applications/editors/emacs/elisp-packages:

error:
… while calling the 'import' builtin
at «string»:1:18:
1| {...}@args: with import  args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (curl) (nix) (coreutils) ]; } ""
|                  ^
   … while realising the context of a path

   … while calling the 'findFile' builtin
     at «string»:1:25:
        1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (curl) (nix) (coreutils) ]; } ""
         |                         ^

   error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)

Out of curiousity, the NIX_PATH var is set as nixpkgs=flake:nixpkgs.
Here is my current setup:
https://github.com//atorres1985-junkyard/etc


perform masking is a lower triangular matrix  in AR model, is it a bug?(在AR模型中后续数据的掩码遮盖矩阵正好是一个下三角矩阵，是否是代码的bug？)

In vall_e/vall_e/base.py, for each transformer block of the AR model, the masking tensor should not be just a lower triangular matrix because text and prompts in tensor v can attend to each other. Therefore, the zero mask should be like a trapezoid rather than a triangle.
(在 vall_e/vall_e/base.py 中，掩码不应该只是一个下三角，因为张量v中的文本和语音提示可以相互关注，因此零掩码应该像梯形而不是三角形)

I think when inference, the implementation is correct. It starts from the (text + prompt) sequence. That said, they can be all attended when predicting future tokens

But when training, there are a few things I don't really get it yet:

For prompt, I think it's fine because prompt is ignored when calculating the loss here
For text, it is not ignored and taken to calculate NLL loss. Should text and prompt be all ignored when training? Why we need to consider predicting to next text token when GT text is always given?  Is it a bug?

But when training, there are a few things I don't really get it yet:

For prompt, I think it's fine because prompt is ignored when calculating the loss here
For text, it is not ignored and taken to calculate NLL loss. I wonder should text and prompt be all ignored when training? Why we need to consider predicting to next text token when GT text is always given?  Is it a bug?

@huukim136 I think you are right, it is strange indeed!

@enhuiz I wonder why you used it like this. Can you explain? thank you :)

@enhuiz I wonder why you used it like this. Can you explain? thank you :) Maybe to reduce the average AR loss? If not, never mind.
I think the text should be ignored when calculating the loss function. Anyway, I modified the h_list and y_list when calculating loss here during training.


Update LibreWolf.LibreWolf to v119.0.1-1

(This pull-request was auto-generated, ping @maltejur)
Microsoft Reviewers: Open in CodeFlow

@wingetbot waivers Add Validation-Domain


No index.html in production build

🐞 Bug report
Command (mark with an x)

- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Description
In my SSR app after Angular upgrade from 7.2 to 8.2.5, index.html is not generated in ./dist/browser. I am running build with ng build -c production command. It's very weird that in dev mode (ng serve) everything is working fine.
🔬 Minimal Reproduction
angular.json
{
  "$schema"<EMAIL_ADDRESS>  "version": 1,
  "newProjectRoot": "projects",
  "defaultProject": "app",
  "projects": {
    "app": {
      "root": "",
      "projectType": "application",
      "sourceRoot": "src",
      "schematics": {
        "@schematics/angular:component": {
          "style": "scss"
        }
      },
      "prefix": "app",
      "architect": {
        "build": {
          "builder": "udk:udk-builder",
          "options": {
            "browserTarget": "app:browser",
            "serverTarget": "app:server"
          },
          "configurations": {
            "production": {
              "browserTarget": "app:browser:production",
              "serverTarget": "app:server:production",
              "verbose": true
            }
          }
        },
        "browser": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            "outputPath": "dist/app/browser",
            "index": "src/index.html",
            "main": "src/main.ts",
            "polyfills": "src/polyfills.ts",
            "tsConfig": "tsconfig.app.json",
            "assets": [
              {
                "glob": "favicon.ico",
                "input": "src",
                "output": "/"
              },
              {
                "glob": "**/*",
                "input": "src/assets",
                "output": "/assets"
              }
            ],
            "styles": [
              "src/styles/critical-styles.scss",
              {
                "input": "src/styles/styles.scss",
                "bundleName": "main-styles",
                "lazy": true
              },
              {
                "input": "src/styles/font-styles.scss",
                "bundleName": "font-styles",
                "lazy": true
              }
            ],
            "scripts": []
          },
          "configurations": {
            "production": {
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.prod.ts"
                }
              ],
              "optimization": true,
              "outputHashing": "all",
              "sourceMap": false,
              "extractCss": true,
              "namedChunks": false,
              "aot": true,
              "index": "src/index.html",
              "extractLicenses": true,
              "vendorChunk": false,
              "buildOptimizer": true,
              "budgets": [
                {
                  "type": "initial",
                  "maximumWarning": "50mb",
                  "maximumError": "100mb"
                }
              ]
            }
          }
        },
        "server": {
          "builder": "@angular-devkit/build-angular:server",
          "options": {
            "outputPath": "dist/app/server",
            "main": "src/server.ts",
            "tsConfig": "tsconfig.server.json",
            "sourceMap": {
              "scripts": true,
              "styles": false
            }
          },
          "configurations": {
            "production": {
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.prod.ts"
                }
              ],
              "outputHashing": "media"
            }
          }
        },
        "serve": {
          "builder": "udk:udk-runner",
          "options": {},
          "configurations": {}
        },
        "test": {
          "builder": "@angular-devkit/build-angular:karma",
          "options": {
            "main": "src/test.ts",
            "polyfills": "src/polyfills.ts",
            "tsConfig": "tsconfig.spec.json",
            "karmaConfig": "karma.conf.js",
            "styles": [
              {
                "input": "src/styles/styles.scss"
              },
              {
                "input": "src/styles/font-styles.scss"
              }
            ],
            "scripts": [],
            "assets": [
              {
                "glob": "favicon.ico",
                "input": "src/",
                "output": "/"
              },
              {
                "glob": "**/*",
                "input": "src/assets",
                "output": "/assets"
              }
            ]
          }
        },
        "lint": {
          "builder": "@angular-devkit/build-angular:tslint",
          "options": {
            "tsConfig": [
              "tsconfig.app.json",
              "tsconfig.spec.json",
              "e2e/tsconfig.json"
            ],
            "exclude": [
              "**/node_modules/**"
            ]
          }
        }
      }
    }
  }
}

package.json
{
  "name": "angular-universal",
  "version": "0.0.0",
  "license": "MIT",
  "scripts": {
    "ng": "ng",
    "prestart": "npm run build:prod",
    "start": "node ./dist/app/server/main.js",
    "build": "ng build",
    "build:prod": "ng build -c production",
    "dev": "ng serve",
    "test": "ng test",
    "lint": "ng lint"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^8.2.5",
    "@angular/cdk": "^8.2.0",
    "@angular/common": "~8.2.5",
    "@angular/compiler": "~8.2.5",
    "@angular/core": "~8.2.5",
    "@angular/forms": "~8.2.5",
    "@angular/material": "^8.2.0",
    "@angular/platform-browser": "~8.2.5",
    "@angular/platform-browser-dynamic": "~8.2.5",
    "@angular/platform-server": "~8.2.5",
    "@angular/router": "~8.2.5",
    "@angularclass/hmr": "~2.1.3",
    "@nguniversal/express-engine": "~8.1.1",
    "@nguniversal/module-map-ngfactory-loader": "~8.1.1",
    "@ngx-translate/core": "^11.0.1",
    "@ngx-translate/http-loader": "^4.0.0",
    "@sentry/browser": "^4.5.3",
    "@types/googlemaps": "^3.30.16",
    "@w11k/angular-sticky-things": "^1.1.0",
    "adblock-detect": "^1.0.5",
    "axios": "^0.18.0",
    "body-parser": "^1.18.3",
    "bootstrap": "^4.1.3",
    "classlist.js": "^1.1.20150312",
    "connect-redis": "^3.4.0",
    "core-js": "^2.5.7",
    "express": "^4.16.4",
    "express-session": "^1.15.6",
    "express-winston": "^3.0.1",
    "hammerjs": "^2.0.8",
    "i18n-iso-countries": "^3.7.8",
    "influx": "^5.0.7",
    "ionicons": "^4.5.1",
    "material-icons": "^0.2.3",
    "ngx-device-detector": "^1.3.6",
    "ngx-lazy-load-images": "^1.3.1",
    "raven": "^2.6.4",
    "request": "^2.88.0",
    "rxjs": "~6.5.3",
    "web-animations-js": "^2.3.2",
    "winston": "^3.1.0",
    "zone.js": "~0.10.2"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.803.3",
    "@angular/cli": "~8.3.3",
    "@angular/compiler-cli": "~8.2.5",
    "@angular/language-service": "~8.2.5",
    "@types/jasmine": "~2.8.11",
    "@types/jasminewd2": "~2.0.6",
    "@types/node": "~10.12.3",
    "@types/webpack-env": "~1.13.6",
    "codelyzer": "^5.0.1",
    "jasmine-core": "~2.99.1",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~3.1.1",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.4",
    "karma-jasmine": "~1.1.2",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "~5.4.1",
    "ts-node": "~7.0.1",
    "tslint": "~5.11.0",
    "typescript": "~3.5.3",
    "udk": "^1.0.0"
  }
}

🌍 Your Environment

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 8.3.4
Node: 10.16.3
OS: darwin x64
Angular: 8.2.6
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router

Package                                    Version
--------------------------------------------------------------------
@angular-devkit/architect                  0.803.4
@angular-devkit/build-angular              0.803.4
@angular-devkit/build-optimizer            0.803.4
@angular-devkit/build-webpack              0.803.4
@angular-devkit/core                       8.3.4
@angular-devkit/schematics                 8.3.4
@angular/cdk                               8.2.0
@angular/cli                               8.3.4
@angular/material                          8.2.0
@ngtools/webpack                           8.3.4
@nguniversal/express-engine                8.1.1
@nguniversal/module-map-ngfactory-loader   8.1.1
@schematics/angular                        8.3.4
@schematics/update                         0.803.4
rxjs                                       6.5.3
typescript                                 3.5.3
webpack                                    4.39.2

This seems like a bug but we'll need to look at a reproduction to find and fix the problem. Can you setup a minimal repro please?
You can read here why this is needed. A good way to make a minimal repro is to create a new app via ng new repro-app and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.
This might be related to your directory structure so its really important to get an accurate repro to diagnose this.

@alan-agius4 https://github.com/Nedvid/repro-app

@alan-agius4 https://github.com/Nedvid/rep-app

Hi @Nedvid, I just had a look at your reproduction and it seems that you are using a non official builder for your build udk:udk-builder.
Please contact the author(s) of the udk project or file an issue on their issue tracker.

@alan-agius4 thanks for the review. What's the official builder for Angular 8 Universal? Could you please provide some config example for angular app which use Angular 8 and SSR?

@Nedvid did you solve a problem? We have exactly the same after update to Angular 8.

@qubiack Yes, it was udk:udk-builder issue so instead of this I am using official builder for that: @angular-devkit/build-angular:browser
I added in angular.json seperate configs for browser and server:
{
  "$schema"<EMAIL_ADDRESS>  "version": 1,
  "newProjectRoot": "projects",
  "defaultProject": "app",
  "projects": {
    "app": {
      "architect": {
        ...
        "browser": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            "outputPath": "dist/app/browser",
            "index": "src/index.html",
            "main": "src/main.ts",
            "polyfills": "src/polyfills.ts",
            "tsConfig": "tsconfig.app.json",
            "assets": [
              "src/favicon.ico",
              "src/assets"
            ],
            "styles": [
              "src/styles/styles.scss"
            ],
            "scripts": []
          },
          "configurations": {
            "production": {
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.prod.ts"
                }
              ],
              "optimization": true,
              "outputHashing": "all",
              "sourceMap": false,
              "extractCss": true,
              "namedChunks": false,
              "aot": true,
              "extractLicenses": true,
              "vendorChunk": false,
              "buildOptimizer": true,
              "budgets": [
                {
                  "type": "initial",
                  "maximumWarning": "2mb",
                  "maximumError": "5mb"
                }
              ]
            }
          }
        },
        "server": {
          "builder": "@angular-devkit/build-angular:server",
          "options": {
            "outputPath": "dist/app/server",
            "main": "src/server.ts",
            "tsConfig": "tsconfig.server.json",
            "sourceMap": {
              "scripts": true,
              "styles": false
            }
          },
          "configurations": {
            "production": {
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.prod.ts"
                }
              ],
              "outputHashing": "media"
            },
            "spa": {
              "fileReplacements": [
                {
                  "replace": "src/app/app-routes.ts",
                  "with": "src/app/app-routes.spa.ts"
                }
              ]
            }
          }
        }
        ...
    }
  }
}

Then to create production build faster you can install npm-run-all and add in package.json:
  "scripts": {
    ...
    "start": "node ./dist/app/server/main.js",
    "build:browser": "ng run app:browser -c production",
    "build:server": "ng run app:server -c production",
    "build:prod": "npm-run-all build:browser build:server",
    ...
  },

npm run build:prod should build browser and server correctly in ./dist


fix: switch to derive_more_preview

Description
published fork of derive_more
Closes #1035
Change checklist

[x] Self-review.
[x] Documentation updates if relevant.
[x] Tests if relevant.

Sigh, android deps are broken with cargo update. Should be fixed with https://github.com/shellrow/default-net/pull/35

https://github.com/rust-netlink/netlink-proto/issues/16 is the issue of the CI failures concretly


Is the withEnv method/feature available?

I've read comment line and note that it's not implemented in code yet. If I'm not wrong when I review the codes, you can transfer variables into the /platform/env directory. Is this feature available now ? Or maybe I can help if there is a feature that needs to be added.

Can you please reply @BarDweller to Fatih ?

The recent update to platform 12 offers the ability to set env vars via the platform.
Closing this one.


Export route parameters as path variables

{param} becomes {{param}}  and will match on variables defined for the given Postman environment.

@johnnybenson I'm confused on the use case for this PR. Converting the url parameters to a postman variable doesn't make much sense. I have a couple clarifying questions for you.

Are you wanting these to be configurable values?
What about converting them to path variables for postman? i.e. posts/{post} -> posts/:post

Yeah, you can update this PR to do that. I wish they had a better way of highlighting the path variables too.

After comparing this to how postman exports collection, there are a couple more things that need to be ironed out.

The url.path needs to contain everything after the base url exploded by /
The url.variable needs to contain all of the custom variables from the route

        {
            "name": "api/v1/chunks/{address}",
            "request": {
                "method": "GET",
                "header": [
                    { "key": "Accept", "value": "application/json" },
                    { "key": "Content-Type", "value": "application/json" }
                ],
                "url": {
                    "raw": "{{base_url}}/api/v1/chunks/:address",
                    "host": "{{base_url}}/api/v1/chunks/:address",
                    "path": ["api", "v1", "chunks", ":address"],
                    "variable": [{
                        "key": "address",
                        "value": ""
                    }]
                }
            }
        }

@johnnybenson I've refactored this whole thing, please take it for a test run and let me know if any issues arise. I did not test this locally. 😅

Your version looks much better :) thanks, Testing locally, we also need to replace {var} with :var in the exploded path and then we're all set.

Thank you @johnnybenson for the contribution, and @tomirons for the refactoring ❤


Naudio Very Choppy

Here's my code: https://stackoverflow.com/questions/50916450/opus-and-naudio-streaming-out-of-sync
The audio is very choppy, currently out of ideas it would be very appreciated if someone could help me out.
The out out of sync is fixed after changing the segments now I get consistent latency but the audio is very choppy for a voice call. Its been a long long time now and still no results, my final aim is to give a whatsapp call like experience, if I do some p2p type then the choppiness is gone but I can't do that on android and every platforms like whatsapp do not have it.
Another way would be to only send when a person is speaking but I don't see a way to get the volume to compare. BTW using Opus as encoding
EDIT: I again want to clarify that the NAudio networking demo is between two computers which if I try also works as a charm but that's not how I want. I want to replicate a whatsapp call experience.
Can anyone help me?

Have you been able to narrow it down to NAudio?
Are you sure its not they way you are sending the audio packets?

Delay in sending or Naggle?
Sending device cannot encode fast enough?
Receiving device waiting for a certain amount of data before decoding?
This is tricky, you want to buffer enough data but not too much.

Hi amunim,
i am also trying to implement VOIP for Unity through RabbitMQ, voice is clear but source side Echo is the major issue which i am facing.
May be you also got that issue, in that case any advice.

Solving echo is a tricky problem in online chat as it requires dynamic echo suppression algorithms which NAudio doesn't provide unfortunately.

Thanks for replying,
I was able to use (Opus codec + NAudio) by referring one of the example in my VOIP and it reduced some of the echo.
But right now it works for for only two clients as soon one more client connects voice starts stuttering.
I know the issue is because each and every client should have its own buffer to play and access to the device, that how i was doing it previously before using NAudio and it used to work but with echo.
I have seen some Mixer buffer in NAudio but till now could not successfully able to implement it.
Could you point out to some example where i can buffer all the data from all clients to a mixer and then play it.

I'm afraid there is no example of doing this, but if you use the ToSampleProvider extension on each BufferedWaveProvider then you could feed them all into a MixingSampleProvider

closing due to inactivity :)

I was able to use (Opus codec + NAudio) by referring one of the example in my VOIP and it reduced some of the echo.
I am on my way of trying to supress that Echo also. I put my question here: https://stackoverflow.com/questions/66627272/how-do-i-properly-remove-acoustic-echo-cancellation-using-speex

I haven't tried Opus, but any reference/code snippet that I can follow?


How to bind "change" on multiple inputs on the page

Example:
I have a shopping cart form with items that user added. And each of items has own numeric input with name "item[item_id]". When I bind onChange event it returns only his value.
So, how to get his name or how to pass additional params to @change="onMyFunc(..., ...)"?
onMyFunc(id, value) {
    ...
}

I found a standart solution for it:
@change="(...args) => onQuantityChange(id, ...args)"


slice, scanLeft, scanRight creating a nested LazyFutureStream

Results in occasionally inconsistent results.

Fixed in 0.99.4


Have the cursor change to a spinner during important, long-running operations for extension developers

Giving extensions direct control over the cursor goes against VS Code's api philosophy: https://code.visualstudio.com/api/extension-capabilities/overview
Instead please open feature requests for individual cases you'd like to see supported. For a long running operation for example, typically extensions would hand VS Code a long running task and then we would figure out how to present process status to the user. That way it's consistent across extensions and languages

How do you feel about letting extension developers signal to VSCode that a particular action is important?
This is a very, very rough draft of what this might look like.
import { updateMouse } from 'vscode';

// The mouse cursor or pointer in VSCode
// is a "spinner" while this command is in process
updateMouse.exec('important command', (
  error: ExecException | null,
  stdout: string,
  stderr: string
) => {
  if (error) {
    // Displays a red x, like ❌,
    // as a subscript on the cursor, temporarily
    updateMouse.subscript = updateMouse.failure;
    // ...
  } else {
    // Displays a green check mark, like ✔,
    // as a subscript on the cursor, temporarily
    updateMouse.subscript = updateMouse.success;
    // ...
  }
  // ...
});

I have. We have automatic, background compilations continuously running. For our use case, I think it doesn't make as much sense to have a progress notification pop-up on every compilation; that can be intrusive for our users.
Instead, it would be nice if we could have a minimalistic change to the cursor that lets users know our extension is doing something, with a "spinner" while a repeating, long-running process is running, and a subscripted green checkmark on the cursor on compilation success, and a red X subscripted on the cursor when a repetitive long-running process fails.

There's also LanguageStatusItem.busy to show progress in the status bar (or you can use tasks or create a custom status bar item for this)
Changing the cursor is quite intrusive and does not make sense IMO for a workspace operation:

How does the user know what the cursor change means?
What happens when every extension starts updating the cursor for their very important operations

There's also LanguageStatusItem.busy to show progress in the status bar

I've actually just been looking into this right now, and it's really nice. I like it!
One suggestion I have is that the VSCode API adds Success to the LanguageStatusSeverity enum, so that it looks like
    export enum LanguageStatusSeverity {
        Information = 0,
        Warning = 1,
        Error = 2,
        Success = 3
    }

instead of
export enum LanguageStatusSeverity {
    Information = 0,
    Warning = 1,
    Error = 2
}

and that the API adds a corresponding symbol for it.
There's a symbol if there's an error, but it would be awesome if there was some green checkmark when extension authors indicate Success.

I can open this in a separate issue if that'll help with organization.
Thank you for the suggestions for alternatives!

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

I can open this in a separate issue if that'll help with organization

@hamirmahal please do this if you want your enhancement request to survive when this issue gets closed and is ultimately locked.

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


Add changes to the index in doctor controller

in this milestone i did:

Add changes to doctor controller
add fix linters

i am still working on this PR


Stylecop fixes

Code fixed to eliminate Stylecop warnings. Stylecop warnings set as errors. Ref: https://github.com/microsoft/botbuilder-dotnet/pull/2171

Pull Request Test Coverage Report for Build 70454

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 77.089%

Totals

Change from base Build 70288:
0.0%

Covered Lines:
4963

Relevant Lines:
6438

💛  - Coveralls

:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.Luis.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.QnA.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.ApplicationInsights.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Azure.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Dialogs.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.TemplateManager.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Configuration.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Connector.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Schema.dll compared against version 4.3.1


build llama fail

# pip list | grep torch
pytorch-quantization      2.1.2
torch                     1.12.1+cu113
torch-tensorrt            2.0.0.dev0
torchdata                 0.7.0a0
torchtext                 0.16.0a0
torchvision               0.16.0a0
# nvidia-smi
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.105.17   Driver Version: 525.105.17   CUDA Version: 12.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA A10          On   | 00000000:00:07.0 Off |                    0 |
|  0%   24C    P8    15W / 150W |      0MiB / 23028MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
# make -C docker release_build CUDA_ARCHS="89-real;90-real"
# make -C docker release_run
# python3 ./scripts/build_wheel.py --trt_root /usr/local/tensorrt
# pip install ./build/tensorrt_llm.whl*
# python build.py --model_dir /code/model/llama/llama-2-7b-hf
--dtype float16
--remove_input_padding
--use_gpt_attention_plugin float16
--enable_context_fmha
--use_gemm_plugin float16
--output_dir /code/model/llama_tensor
--world_size 8
--tp_size 8
build llama fail
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py", line 1099, in _get_module
    return importlib.import_module("." + module_name, self.__name__)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/local/lib/python3.10/dist-packages/transformers/models/llama/modeling_llama.py", line 32, in <module>
    from ...modeling_utils import PreTrainedModel
  File "/usr/local/lib/python3.10/dist-packages/transformers/modeling_utils.py", line 86, in <module>
    from accelerate import dispatch_model, infer_auto_device_map, init_empty_weights
  File "/usr/local/lib/python3.10/dist-packages/accelerate/__init__.py", line 3, in <module>
    from .accelerator import Accelerator
  File "/usr/local/lib/python3.10/dist-packages/accelerate/accelerator.py", line 34, in <module>
    from .checkpointing import load_accelerator_state, load_custom_state, save_accelerator_state, save_custom_state
  File "/usr/local/lib/python3.10/dist-packages/accelerate/checkpointing.py", line 24, in <module>
    from .utils import (
  File "/usr/local/lib/python3.10/dist-packages/accelerate/utils/__init__.py", line 112, in <module>
    from .launch import (
  File "/usr/local/lib/python3.10/dist-packages/accelerate/utils/launch.py", line 27, in <module>
    from ..utils.other import merge_dicts
  File "/usr/local/lib/python3.10/dist-packages/accelerate/utils/other.py", line 24, in <module>
    from .transformer_engine import convert_model
  File "/usr/local/lib/python3.10/dist-packages/accelerate/utils/transformer_engine.py", line 21, in <module>
    import transformer_engine.pytorch as te
  File "/usr/local/lib/python3.10/dist-packages/transformer_engine/pytorch/__init__.py", line 6, in <module>
    from .module import LayerNormLinear
  File "/usr/local/lib/python3.10/dist-packages/transformer_engine/pytorch/module/__init__.py", line 6, in <module>
    from .layernorm_linear import LayerNormLinear
  File "/usr/local/lib/python3.10/dist-packages/transformer_engine/pytorch/module/layernorm_linear.py", line 15, in <module>
    from .. import cpp_extensions as tex
  File "/usr/local/lib/python3.10/dist-packages/transformer_engine/pytorch/cpp_extensions/__init__.py", line 6, in <module>
    from transformer_engine_extensions import *
ImportError: /usr/local/lib/python3.10/dist-packages/transformer_engine_extensions.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZN2at4_ops5zeros4callEN3c108ArrayRefINS2_6SymIntEEENS2_8optionalINS2_10ScalarTypeEEENS6_INS2_6LayoutEEENS6_INS2_6DeviceEEENS6_IbEE

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/code/tensorrt_llm/examples/llama/build.py", line 24, in <module>
    from transformers import LlamaConfig, LlamaForCausalLM
  File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
  File "/usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py", line 1090, in __getattr__
    value = getattr(module, name)
  File "/usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py", line 1089, in __getattr__
    module = self._get_module(self._class_to_module[name])
  File "/usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py", line 1101, in _get_module
    raise RuntimeError(
RuntimeError: Failed to import transformers.models.llama.modeling_llama because of the following error (look up to see its traceback):
/usr/local/lib/python3.10/dist-packages/transformer_engine_extensions.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZN2at4_ops5zeros4callEN3c108ArrayRefINS2_6SymIntEEENS2_8optionalINS2_10ScalarTypeEEENS6_INS2_6LayoutEEENS6_INS2_6DeviceEEENS6_IbEE

What kind of GPU do you use?

What kind of GPU do you use?

A10

Where do you get the following info?
# pip list | grep torch
pytorch-quantization 2.1.2
torch 1.12.1+cu113
torch-tensorrt 2.0.0.dev0
torchdata 0.7.0a0
torchtext 0.16.0a0
torchvision 0.16.0a0

We should use torch 2 in the docker image, do you print the info outside the docker container? It looks a environment setup issue about the transformers, and I don't have many insight now.

Where do you get the following info?
# pip list | grep torch
pytorch-quantization 2.1.2
torch 1.12.1+cu113
torch-tensorrt 2.0.0.dev0
torchdata 0.7.0a0
torchtext 0.16.0a0
torchvision 0.16.0a0

We should use torch 2 in the docker image, do you print the info outside the docker container? It looks a environment setup issue about the transformers, and I don't have many insight now.

in docker image

Could u please share us info with this cmd pip list installed -v |grep torch?

Could u please share us info with this cmd pip list installed -v |grep torch?

I also encountered a similar problem when build llama.

Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py", line 1099, in _get_module
return importlib.import_module("." + module_name, self.name)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/usr/local/lib/python3.10/dist-packages/transformers/models/llama/modeling_llama.py", line 32, in
from ...modeling_utils import PreTrainedModel
File "/usr/local/lib/python3.10/dist-packages/transformers/modeling_utils.py", line 86, in
from accelerate import dispatch_model, infer_auto_device_map, init_empty_weights
File "/usr/local/lib/python3.10/dist-packages/accelerate/init.py", line 3, in
from .accelerator import Accelerator
File "/usr/local/lib/python3.10/dist-packages/accelerate/accelerator.py", line 34, in
from .checkpointing import load_accelerator_state, load_custom_state, save_accelerator_state, save_custom_state
File "/usr/local/lib/python3.10/dist-packages/accelerate/checkpointing.py", line 24, in
from .utils import (
File "/usr/local/lib/python3.10/dist-packages/accelerate/utils/init.py", line 112, in
from .launch import (
File "/usr/local/lib/python3.10/dist-packages/accelerate/utils/launch.py", line 27, in
from ..utils.other import merge_dicts
File "/usr/local/lib/python3.10/dist-packages/accelerate/utils/other.py", line 24, in
from .transformer_engine import convert_model
File "/usr/local/lib/python3.10/dist-packages/accelerate/utils/transformer_engine.py", line 21, in
import transformer_engine.pytorch as te
File "/usr/local/lib/python3.10/dist-packages/transformer_engine/pytorch/init.py", line 6, in
from .module import LayerNormLinear
File "/usr/local/lib/python3.10/dist-packages/transformer_engine/pytorch/module/init.py", line 6, in
from .layernorm_linear import LayerNormLinear
File "/usr/local/lib/python3.10/dist-packages/transformer_engine/pytorch/module/layernorm_linear.py", line 15, in
from .. import cpp_extensions as tex
File "/usr/local/lib/python3.10/dist-packages/transformer_engine/pytorch/cpp_extensions/init.py", line 6, in
from transformer_engine_extensions import *
ImportError: /usr/local/lib/python3.10/dist-packages/transformer_engine_extensions.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE

The above exception was the direct cause of the following exception:
Traceback` (most recent call last):
File "/code/tensorrt_llm/examples/llama/build.py", line 24, in
from transformers import LlamaConfig, LlamaForCausalLM
File "", line 1075, in _handle_fromlist
File "/usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py", line 1090, in getattr
value = getattr(module, name)
File "/usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py", line 1089, in getattr
module = self._get_module(self._class_to_module[name])
File "/usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py", line 1101, in _get_module
raise RuntimeError(
RuntimeError: Failed to import transformers.models.llama.modeling_llama because of the following error (look up to see its traceback):
/usr/local/lib/python3.10/dist-packages/transformer_engine_extensions.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
root@k8s-110-release:/code/tensorrt_llm/examples/llama# pip list installed -v |grep torch
pytorch-quantization      2.1.2               /usr/local/lib/python3.10/dist-packages pip
torch                     2.1.1               /usr/local/lib/python3.10/dist-packages pip
torch-tensorrt            2.0.0.dev0          /usr/local/lib/python3.10/dist-packages pip
torchdata                 0.7.0a0             /usr/local/lib/python3.10/dist-packages pip
torchtext                 0.16.0a0            /usr/local/lib/python3.10/dist-packages pip
torchvision               0.16.0a0            /usr/local/lib/python3.10/dist-packages pip

Could u please share us info with this cmd pip list installed -v |grep torch?

Could u please share us info with this cmd pip list installed -v |grep torch?

That's weird. It should be pt 2.1.0

Could u please share us info with this cmd pip list installed -v |grep torch?

That's weird. It should be pt 2.1.0a0+32f93b1
.

Do I have to use this version of torch? It was this version when I just finished building it. After running, it prompted that it did not match my GPU, so I upgraded torch again. Then the above error occurred. I guess ixp9891 is also the same as me.

From the error message, the issue happens on transformers. So, we can only suggesting you using the torch version (also for other packages) to prevent the environment alignment issue.
Can you share the error message for "After running, it prompted that it did not match my GPU"?

From the error message, the issue happens on transformers. So, we can only suggesting you using the torch version (also for other packages) to prevent the environment alignment issue.
Can you share the error message for "After running, it prompted that it did not match my GPU"?

I recreated an docker image ,  torch=2.1.0a0+29c30b1， but build llama still fail

The libcuda.so.1 file exists，Then I execute the command " export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-12.2/compat "，but no work

make -C docker release_build CUDA_ARCHS="89-real;90-real"

I rembemer you build the docker with above cmd on A10. A10 is not ada lovelace or hopper arch.
Could u please try below cmd?
make -C docker release_build CUDA_ARCHS="80-real"

make -C docker release_build CUDA_ARCHS="89-real;90-real"

I rembemer you build the docker with above cmd on A10. A10 is not ada lovelace or hopper arch. Could u please try below cmd? make -C docker release_build CUDA_ARCHS="80-real"

it work for me , but The build process is killed；

python build.py --model_dir /home/model/llama-2-7b-hf \
                --dtype float16 \
                --remove_input_padding \
                --enable_context_fmha \
                --output_dir /home/model/llama_tensor/

ECS configuration
CPU: 8 core
memory: 30g
gpu: A10 24g

Could you try smaller batch size, input length and output length first?

Could you try smaller batch size, input length and output length first?

I reduced the batch size, input length, and output length successively until max_batch_size = 2, input length=10, output length = 10, but error still reported

@ixp9891
I recommend increasing your swap. I was able to build Llama-7b with limited RAM of 16 GB when I increased my swap (on G5.xlarge).
In this case, you can monitor your RAM usage through tools like nmon or ntop during the build phase.
sudo fallocate -l 128G /swapfile && chmod 600 /swapfile && mkswap /swapfile && sudo swapon /swapfile && free -h

Thanks all, I upgraded the ecs configuration to 64GB memory and solved the problem;
ECS configuration
CPU: 16 core
memory: 60g
gpu: A10 24g
apt-get update && apt-get -y install git git-lfs
git clone https://github.com/NVIDIA/TensorRT-LLM.git
cd TensorRT-LLM
git submodule update --init --recursive
git lfs install
git lfs pull

# create image
make -C docker release_build CUDA_ARCHS="80-real;86-real"
make -C docker release_run

# build tensorrt_llm
python3 ./scripts/build_wheel.py --trt_root /usr/local/tensorrt
python3 ./scripts/build_wheel.py --clean  --trt_root /usr/local/tensorrt

# build llama and run
python build.py --model_dir /code/llama/llama-2-7b-hf/ \
                --dtype float16 \
                --remove_input_padding \
                --use_gpt_attention_plugin float16 \
                --enable_context_fmha \
                --use_gemm_plugin float16 \
                --output_dir /code/model/llama_tensor/

python3 run.py --max_output_len=50 \
               --tokenizer_dir /code/llama/llama-2-7b-hf/ \
               --engine_dir=/code/model/llama_tensor/

@ixp9891 I recommend increasing your swap. I was able to build Llama-7b with limited RAM of 16 GB when I increased my swap (on G5.xlarge).
In this case, you can monitor your RAM usage through tools like nmon or ntop during the build phase.
sudo fallocate -l 128G /swapfile && chmod 600 /swapfile && mkswap /swapfile && sudo swapon /swapfile && free -h

Additionally, I believe you need to build TensorRT-LLM with both SM80 and SM86 together.
make -C docker release_build CUDA_ARCHS="80-real;86-real"

Hi, I increase my sawp to 128G but still meet the RAM issue. I want to build Baichuan2-7B.
          total        used        free      shared  buff/cache   available

Mem:           31Gi       836Mi        30Gi       1.0Mi       278Mi        30Gi
Swap:         127Gi       2.1Gi       125Gi
[12/05/2023-07:27:09] [TRT-LLM] [W] Found pynvml==11.4.1. Please use pynvml>=11.5.0 to get accurate memory usage
[12/05/2023-07:27:09] [TRT-LLM] [I] Serially build TensorRT engines.
[12/05/2023-07:27:10] [TRT] [I] [MemUsageChange] Init CUDA: CPU +12, GPU +0, now: CPU 118, GPU 308 (MiB)
[12/05/2023-07:27:13] [TRT] [I] [MemUsageChange] Init builder kernel library: CPU +482, GPU +80, now: CPU 736, GPU 388 (MiB)
[12/05/2023-07:27:13] [TRT-LLM] [W] Invalid timing cache, using freshly created one
[12/05/2023-07:27:41] [TRT-LLM] [I] Loading HF Baichuan v2_7b ... from /model/finetune_intent2_prompt_1114_ep-2
[12/05/2023-07:27:51] Xformers is not installed correctly. If you want to use memory_efficient_attention to accelerate training use the following command to install Xformers
pip install xformers.
Loading checkpoint shards: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [01:42<00:00, 51.31s/it]
[12/05/2023-07:29:34] [TRT-LLM] [I] HF Baichuan v2_7b loaded. Total time: 00:01:53
[12/05/2023-07:29:34] [TRT-LLM] [I] Loading weights from HF Baichuan v2_7b...
Killed


CDATA sections in XML files not collapsed properly

VSCode Version: 1.11.2
OS Version: Windows 10

Steps to Reproduce:

Open an XML file containing CDATA, for example:
<RootTag>
    <AnotherTag>
        <YetAnotherTag>
            <![CDATA[
some CDATA contents
 ]]>
        </YetAnotherTag>
    </AnotherTag>
</RootTag>

Try to collapse a tag that contains CDATA, like <AnotherTag>.

Notice that the CDATA section is not collapsed, even though it is part of the tag that I tried to collapse:

The currently implemented folding strategy is based purely on the indentation of lines. A folding region starts when a line has a smaller indent than one or more following lines, and ends when there is a line with the same or smaller indent.
To be more smart and to, for example, understand XML tags, we will have to go one step further and introduce language agnostic folding regions. We have issue #3422 for this.


Problem with iOS simulator

Hello guys,
when I start the iOS simulator from the console, the simulator opens correctly.
Then the Scanner app starts and I see the short load bar for the app, but after this just the Steroids Scanner logo and the text SCANNER is showing. Nothing more.
The last lines of the debug are:
2015-08-25 23:33:42.170 AppGyver[5477:39157] webViewDidStartLoad -> reset plugins -> URL: http://localhost/app/login/login.html

2015-08-25 23:33:42.624 AppGyver[5477:39157] Finished load of: http://localhost/app/login/login.html

2015-08-25 23:33:42.625 AppGyver[5477:39157] Gave lock 5

2015-08-25 23:33:42.627 AppGyver[5477:39157] webViewDidFinishLoad -> reset plugins -> URL: http://localhost/app/login/login.html

2015-08-25 23:33:42.644 AppGyver[5477:39157] Resetting plugins due to page load.

2015-08-25 23:33:42.645 AppGyver[5477:39157] webViewDidStartLoad -> reset plugins -> URL: http://localhost/appgyver/contextmenu/contextmenu.html

2015-08-25 23:33:42.761 AppGyver[5477:39157] changeTitle

Any ideas?
Go the last steroids update, XCode is also on the last version..

same issue here! starting the ios simulator through the appgyver 'qr' site (of course on a mac/safari) results in a freezed up simulator window (showing the steroids scanner logo).
here is the log (using steroids connect --debug):
Starting iPhone-6 Simulator
[DEBUG] Wed Aug 26 2015 04:37:15 GMT+0200 (CEST) Killed iOS Simulator.
[DEBUG] Wed Aug 26 2015 04:37:15 GMT+0200 (CEST) Spawning /Users/rapha/.nvm/v0.10.39/lib/node_modules/steroids/node_modules/ios-sim/bin/ios-sim
[DEBUG] Wed Aug 26 2015 04:37:15 GMT+0200 (CEST) with params: launch,/Users/rapha/.nvm/v0.10.39/lib/node_modules/steroids/node_modules/steroids-ios-packages/simulators/Simulator-4.0.5.app,--devicetypeid,com.apple.CoreSimulator.SimDeviceType.iPhone-6 ,8.4,--verbose
App Spec: <DTiPhoneSimulatorApplicationSpecifier 0x7fbcf3d3f3c0> specified by app path /Users/rapha/.nvm/v0.10.39/lib/node_modules/steroids/node_modules/steroids-ios-packages/simulators/Simulator-4.0.5.app
SDK Root: <DTiPhoneSimulatorSystemRoot 0x7fbcf3d3ea20> path=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk
Creating named pipe at `/var/folders/pq/6vl24wps60x09t1nsqypptj80000gn/T/ios-sim-stderr-pipe-1440556635'
Creating named pipe at `/var/folders/pq/6vl24wps60x09t1nsqypptj80000gn/T/ios-sim-stdout-pipe-1440556635'
using device family iphone
Session started
2015-08-26 04:37:31.046 AppGyver[1343:12702] WebSocketService running in port 49420
2015-08-26 04:37:32.123 AppGyver[1343:12702] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/rapha/Library/Developer/CoreSimulator/Devices/92991817-5633-4373-BB53-101B0772C07F/data/Containers/Data/Application/31D7BB54-CA93-480D-97A4-1AAAF991D820/Library/Cookies/Cookies.binarycookies
2015-08-26 04:37:32.297 AppGyver[1343:12702] You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
2015-08-26 04:37:32.576 AppGyver[1343:12702] Pixate Freestyle v2.1.4 (API 2) - Build 2015/06/02
2015-08-26 04:37:32.578 AppGyver[1343:12702] Multi-tasking -> Device: YES, App: YES
2015-08-26 04:37:32.581 AppGyver[1343:12702] Unlimited access to network resources
2015-08-26 04:37:32.584 AppGyver[1343:12702] Opening Simulator Start URL to app selection screen: file:///Users/rapha/Library/Developer/CoreSimulator/Devices/92991817-5633-4373-BB53-101B0772C07F/data/Containers/Bundle/Application/B8B92177-4289-49AF-8509-C0877079B709/Simulator-4.0.5.app/StartPreview/startpreview.html?simulator_start=true
2015-08-26 04:37:32.585 AppGyver[1343:12702] StartPreview webview did load
2015-08-26 04:37:32.812 AppGyver[1343:12702] [CDVTimer][file] 1.435995ms
2015-08-26 04:37:32.813 AppGyver[1343:12702] Init FacebookConnect Session
2015-08-26 04:37:32.818 AppGyver[1343:12702] [CDVTimer][facebookconnectplugin] 5.641997ms
2015-08-26 04:37:32.819 AppGyver[1343:12702] [CDVTimer][TotalPluginStartup] 8.352995ms
2015-08-26 04:37:33.287 AppGyver[1343:12702] Resetting plugins due to page load.
2015-08-26 04:37:33.298 AppGyver[1343:12702] webViewDidStartLoad -> reset plugins -> URL: file:///Users/rapha/Library/Developer/CoreSimulator/Devices/92991817-5633-4373-BB53-101B0772C07F/data/Containers/Bundle/Application/B8B92177-4289-49AF-8509-C0877079B709/Simulator-4.0.5.app/StartPreview/startpreview.html?simulator_start=true
2015-08-26 04:37:33.725 AppGyver[1343:12702] Finished load of: file:///Users/rapha/Library/Developer/CoreSimulator/Devices/92991817-5633-4373-BB53-101B0772C07F/data/Containers/Bundle/Application/B8B92177-4289-49AF-8509-C0877079B709/Simulator-4.0.5.app/StartPreview/startpreview.html?simulator_start=true
2015-08-26 04:37:33.727 AppGyver[1343:12702] webViewDidFinishLoad -> reset plugins -> URL: file:///Users/rapha/Library/Developer/CoreSimulator/Devices/92991817-5633-4373-BB53-101B0772C07F/data/Containers/Bundle/Application/B8B92177-4289-49AF-8509-C0877079B709/Simulator-4.0.5.app/StartPreview/startpreview.html?simulator_start=true
2015-08-26 04:37:33.869 AppGyver[1343:12702] INFO [AssetService.m:423 clearCachesFolder] no error while deleting from path: /Users/rapha/Library/Developer/CoreSimulator/Devices/92991817-5633-4373-BB53-101B0772C07F/data/Containers/Data/Application/31D7BB54-CA93-480D-97A4-1AAAF991D820/Library/Caches/tempLocalStorage
2015-08-26 04:37:33.874 AppGyver[1343:12702] INFO [AssetService.m:423 clearCachesFolder] no error while deleting from path: /Users/rapha/Library/Developer/CoreSimulator/Devices/92991817-5633-4373-BB53-101B0772C07F/data/Containers/Data/Application/31D7BB54-CA93-480D-97A4-1AAAF991D820/Library/Caches/tempLocalStorage
2015-08-26 04:37:34.620 AppGyver[1343:12702] Multi-tasking -> Device: YES, App: YES
2015-08-26 04:37:34.627 AppGyver[1343:12702] Unlimited access to network resource
2015-08-26 04:37:34.628 AppGyver[1343:12702] Initializing background webview
2015-08-26 04:37:34.629 AppGyver[1343:12702] Background webview did load
2015-08-26 04:37:34.748 AppGyver[1343:12702] [CDVTimer][file] 1.703024ms
2015-08-26 04:37:34.749 AppGyver[1343:12702] [CDVTimer][facebookconnectplugin] 0.146985ms
2015-08-26 04:37:34.749 AppGyver[1343:12702] [CDVTimer][TotalPluginStartup] 2.701998ms
2015-08-26 04:37:34.751 AppGyver[1343:12702] Loading native css form path: /Users/rapha/Library/Developer/CoreSimulator/Devices/92991817-5633-4373-BB53-101B0772C07F/data/Containers/Data/Application/31D7BB54-CA93-480D-97A4-1AAAF991D820/Documents/applications/local/1440556591000/native-styles/ios.css
2015-08-26 04:37:34.756 AppGyver[1343:12702] No errors loading styles
2015-08-26 04:37:34.758 AppGyver[1343:12702] Multi-tasking -> Device: YES, App: YES
2015-08-26 04:37:34.759 AppGyver[1343:12702] Unlimited access to network resources
2015-08-26 04:37:34.892 AppGyver[1343:12702] [CDVTimer][file] 1.226008ms
2015-08-26 04:37:34.893 AppGyver[1343:12702] [CDVTimer][facebookconnectplugin] 0.055015ms
2015-08-26 04:37:34.893 AppGyver[1343:12702] [CDVTimer][TotalPluginStartup] 2.259970ms
2015-08-26 04:37:34.894 AppGyver[1343:12702] Multi-tasking -> Device: YES, App: YES
2015-08-26 04:37:34.896 AppGyver[1343:12702] Unlimited access to network resources
2015-08-26 04:37:35.094 AppGyver[1343:12702] [CDVTimer][file] 1.251042ms
2015-08-26 04:37:35.094 AppGyver[1343:12702] [CDVTimer][facebookconnectplugin] 0.042975ms
2015-08-26 04:37:35.095 AppGyver[1343:12702] [CDVTimer][TotalPluginStartup] 2.223969ms
2015-08-26 04:37:35.124 AppGyver[1343:12702] Multi-tasking -> Device: YES, App: YES
2015-08-26 04:37:35.126 AppGyver[1343:12702] Unlimited access to network resources
2015-08-26 04:37:35.256 AppGyver[1343:12702] [CDVTimer][file] 1.326025ms
2015-08-26 04:37:35.256 AppGyver[1343:12702] [CDVTimer][facebookconnectplugin] 0.050008ms
2015-08-26 04:37:35.257 AppGyver[1343:12702] [CDVTimer][TotalPluginStartup] 2.393961ms
2015-08-26 04:37:35.453 AppGyver[1343:12702] Resetting plugins due to page load.
2015-08-26 04:37:35.455 AppGyver[1343:12702] webViewDidStartLoad -> reset plugins -> URL: file:///Users/rapha/Library/Developer/CoreSimulator/Devices/92991817-5633-4373-BB53-101B0772C07F/data/Containers/Bundle/Application/B8B92177-4289-49AF-8509-C0877079B709/Simulator-4.0.5.app/Background/background.html?cachebust=1440556654.629222
2015-08-26 04:37:35.535 AppGyver[1343:12702] Finished load of: file:///Users/rapha/Library/Developer/CoreSimulator/Devices/92991817-5633-4373-BB53-101B0772C07F/data/Containers/Bundle/Application/B8B92177-4289-49AF-8509-C0877079B709/Simulator-4.0.5.app/Background/background.html?cachebust=1440556654.629222
2015-08-26 04:37:35.536 AppGyver[1343:12702] Gave lock 3
2015-08-26 04:37:35.541 AppGyver[1343:12702] webViewDidFinishLoad -> reset plugins -> URL: file:///Users/rapha/Library/Developer/CoreSimulator/Devices/92991817-5633-4373-BB53-101B0772C07F/data/Containers/Bundle/Application/B8B92177-4289-49AF-8509-C0877079B709/Simulator-4.0.5.app/Background/background.html?cachebust=1440556654.629222
2015-08-26 04:37:35.549 AppGyver[1343:12702] Resetting plugins due to page load.
2015-08-26 04:37:35.550 AppGyver[1343:12702] webViewDidStartLoad -> reset plugins -> URL: http://localhost/loading.html
2015-08-26 04:37:35.612 AppGyver[1343:12702] Finished load of: http://localhost/loading.html
2015-08-26 04:37:35.613 AppGyver[1343:12702] Gave lock 4
2015-08-26 04:37:35.614 AppGyver[1343:12702] webViewDidFinishLoad -> reset plugins -> URL: http://localhost/loading.html
2015-08-26 04:37:35.619 AppGyver[1343:12702] Resetting plugins due to page load.
2015-08-26 04:37:35.621 AppGyver[1343:12702] webViewDidStartLoad -> reset plugins -> URL: http://localhost/app/login/login.html
2015-08-26 04:37:36.890 AppGyver[1343:12702] Finished load of: http://localhost/app/login/login.html
2015-08-26 04:37:36.891 AppGyver[1343:12702] Gave lock 5
2015-08-26 04:37:36.893 AppGyver[1343:12702] webViewDidFinishLoad -> reset plugins -> URL: http://localhost/app/login/login.html
2015-08-26 04:37:36.903 AppGyver[1343:12702] Multi-tasking -> Device: YES, App: YES
2015-08-26 04:37:36.905 AppGyver[1343:12702] Unlimited access to network resources
2015-08-26 04:37:36.992 AppGyver[1343:12702] [CDVTimer][file] 1.228034ms
2015-08-26 04:37:36.992 AppGyver[1343:12702] [CDVTimer][facebookconnectplugin] 0.045002ms
2015-08-26 04:37:36.992 AppGyver[1343:12702] [CDVTimer][TotalPluginStartup] 1.646996ms
2015-08-26 04:37:36.995 AppGyver[1343:12702] Multi-tasking -> Device: YES, App: YES
2015-08-26 04:37:36.996 AppGyver[1343:12702] Unlimited access to network resources
2015-08-26 04:37:37.082 AppGyver[1343:12702] [CDVTimer][file] 1.228034ms
2015-08-26 04:37:37.087 AppGyver[1343:12702] [CDVTimer][facebookconnectplugin] 0.066996ms
2015-08-26 04:37:37.110 AppGyver[1343:12702] [CDVTimer][TotalPluginStartup] 29.260993ms
2015-08-26 04:37:37.176 AppGyver[1343:12702] Multi-tasking -> Device: YES, App: YES
2015-08-26 04:37:37.178 AppGyver[1343:12702] Unlimited access to network resources
2015-08-26 04:37:37.300 AppGyver[1343:12702] [CDVTimer][file] 1.244962ms
2015-08-26 04:37:37.301 AppGyver[1343:12702] [CDVTimer][facebookconnectplugin] 0.054002ms
2015-08-26 04:37:37.302 AppGyver[1343:12702] [CDVTimer][TotalPluginStartup] 3.553033ms
2015-08-26 04:37:37.303 AppGyver[1343:12702] Multi-tasking -> Device: YES, App: YES
2015-08-26 04:37:37.307 AppGyver[1343:12702] Unlimited access to network resources
2015-08-26 04:37:37.428 AppGyver[1343:12702] [CDVTimer][file] 1.227021ms
2015-08-26 04:37:37.429 AppGyver[1343:12702] [CDVTimer][facebookconnectplugin] 0.065029ms
2015-08-26 04:37:37.430 AppGyver[1343:12702] [CDVTimer][TotalPluginStartup] 2.394021ms
2015-08-26 04:37:37.433 AppGyver[1343:12702] Multi-tasking -> Device: YES, App: YES
2015-08-26 04:37:37.436 AppGyver[1343:12702] Unlimited access to network resources
2015-08-26 04:37:37.526 AppGyver[1343:12702] [CDVTimer][file] 1.161993ms
2015-08-26 04:37:37.526 AppGyver[1343:12702] [CDVTimer][facebookconnectplugin] 0.032008ms
2015-08-26 04:37:37.527 AppGyver[1343:12702] [CDVTimer][TotalPluginStartup] 1.563013ms
2015-08-26 04:37:37.544 AppGyver[1343:12702] button text attributes only respected for UIControlStateNormal, UIControlStateSelected and UIControlStateDisabled. state = 1 is interpreted as UIControlStateSelected.
2015-08-26 04:37:37.545 AppGyver[1343:12702] button text attributes only respected for UIControlStateNormal, UIControlStateSelected and UIControlStateDisabled. state = 1 is interpreted as UIControlStateSelected.
2015-08-26 04:37:37.605 AppGyver[1343:12702] Resetting plugins due to page load.
2015-08-26 04:37:37.606 AppGyver[1343:12702] webViewDidStartLoad -> reset plugins -> URL: http://localhost/appgyver/contextmenu/contextmenu.html
[DEBUG] Wed Aug 26 2015 04:37:37 GMT+0200 (CEST) Updater: Looking for update: https://updates.appgyver.com/v1/client/latest.json?platform=ios&version=4.0.4&os_version=8_4&device=iPhone&simulator=true&user_id=333732
[DEBUG] Wed Aug 26 2015 04:37:37 GMT+0200 (CEST) connect: New client: <IP_ADDRESS> - Mozilla/5.0 (iPhone; CPU iPhone OS 8_4 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12H141 AppGyverSteroids/4.0.4 Scanner<PHONE_NUMBER>)
2015-08-26 04:37:37.754 AppGyver[1343:12702] WARN: Unhandled rejection http://localhost/components/supersonic/supersonic.js:29597:54
2015-08-26 04:37:37.755 AppGyver[1343:12702] in run
2015-08-26 04:37:37.755 AppGyver[1343:12702] InitialView.dismiss called
2015-08-26 04:37:37.755 AppGyver[1343:12702] WARN: pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details.
2015-08-26 04:37:37.755 AppGyver[1343:12702] log1
2015-08-26 04:37:37.770 AppGyver[1343:12702] THREAD WARNING: ['Globalization'] took '14.719971' ms. Plugin should use a background thread.
2015-08-26 04:37:37.770 AppGyver[1343:12702] changeTitle
[DEBUG] Wed Aug 26 2015 04:37:38 GMT+0200 (CEST) Updater: updates.appgyver.com says that the latest version is 4.0.4
[DEBUG] Wed Aug 26 2015 04:37:41 GMT+0200 (CEST) connect: Client disconnected: <IP_ADDRESS> - Mozilla/5.0 (iPhone; CPU iPhone OS 8_4 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12H141 AppGyverSteroids/4.0.4 Scanner<PHONE_NUMBER>)

might be a little wired question (while trying to get it up and running to debug the simulator with safari debug tools) but: why is the client disconnecting in the last line? ;-)

it's quite bizarre when running debug tools to debug code result in occasionally getting smth else to debug
AppGyver Steroids command  sim
Starting iPhone-6 Simulator

[DEBUG] Thu Sep 10 2015 16:44:13 GMT+0300 (MSK) Killed iOS Simulator.
[DEBUG] Thu Sep 10 2015 16:44:13 GMT+0300 (MSK) Spawning /usr/local/lib/node_modules/steroids/node_modules/ios-sim/bin/ios-sim
[DEBUG] Thu Sep 10 2015 16:44:13 GMT+0300 (MSK) with params: launch,/usr/local/lib/node_modules/steroids/node_modules/steroids-ios-packages/simulators/Simulator-4.0.5.app,--devicetypeid,com.apple.CoreSimulator.SimDeviceType.iPhone-6,--verbose
2015-09-10 16:44:13.436 ios-sim[58765:507] -[__NSCFString containsString:]: unrecognized selector sent to instance 0x7fcd1b502f40

2015-09-10 16:44:13.438 ios-sim[58765:507] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString containsString:]: unrecognized selector sent to instance 0x7fcd1b502f40'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff8979e25c __exceptionPreprocess + 172
	1   libobjc.A.dylib                     0x00007fff8706fe75 objc_exception_throw + 43
	2   CoreFoundation                      0x00007fff897a112d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
	3   CoreFoundation                      0x00007fff896fc272 ___forwarding___ + 1010
	4   CoreFoundation                      0x00007fff896fbdf8 _CF_forwarding_prep_0 + 120
	5   ios-sim                             0x0000000107620571 -[iPhoneSimulator runWithArgc:argv:] + 1245
	6   ios-sim                             0x0000000107620e7c main + 101
	7   ios-sim                             0x000000010761e140 start + 52
)
libc++abi.dylib:
terminating with uncaught exception of type NSException

[DEBUG] Thu Sep 10 2015 16:44:14 GMT+0300 (MSK) Killing iOS Simulator ...
[DEBUG] Thu Sep 10 2015 16:44:14 GMT+0300 (MSK) Killed iOS Simulator.

any suggestions please?

This seems to also be happening on actual devices at least I can see the exact same thing that @Ecostack reported in the first comment.


[Logs]: Added a config var to enable TCP forward over SSL on port 443

What does this PR do?
Added a config var to enable TCP forward over SSL on port 443
Motivation
Enable customers to send logs on default SSL port.

thanks @ajacquemot !

@olivielpeau @NBParis to confirm but I would like us not to document this publicly, this is a workaround we put in place that we will suggest under certain well defined conditions


ng generate component places all component declarations on one line, causing lint error

Versions
Angular CLI: 1.7.4
Node: 8.11.1
OS: linux x64
Angular: 5.2.9
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.7.4
@angular-devkit/build-optimizer: 0.3.2
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.2
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.5.3
webpack: 3.11.0

Repro steps
ng new lint-err
cd lint-err
ng generate module my-module
cd src/app/my-module
ng generate component component-one
ng generate component component-two
ng generate component component-three
ng generate component component-four
ng generate component component-five
ng generate component component-six
ng generate component component-seven
ng generate component component-eight
cd ../../..
ng lint

Observed behavior
ERROR: /home/paul/lint-err/src/app/my-module/my-module.module.ts[16, 1]: Exceeds maximum line length of 140

Lint errors found in the listed files.

Caused by:
@NgModule({
  imports: [
    CommonModule
  ],
  declarations: [ComponentOneComponent, ComponentTwoComponent, ComponentThreeComponent, ComponentFourComponent, ComponentFiveComponent, ComponentSixComponent, ComponentSevenComponent, ComponentEightComponent]
})
export class MyModuleModule { }

Desired behavior
No lint errors, each component declaration placed on its own line.

Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version.
If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.


AttributeError: 'DataFrame' object has no attribute 'profile_report'

Describe the bug
Running the example in readme generates an error.
To Reproduce
Running:
import numpy as np
import pandas as pd
import pandas_profiling

df = pd.DataFrame(
    np.random.rand(100, 5),
    columns=['a', 'b', 'c', 'd', 'e']
)
df.profile_report()

in a Jupyter notebook gives:
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-16-f9a7584e785c> in <module>
----> 1 df.profile_report()

~/anaconda3/lib/python3.7/site-packages/pandas/core/generic.py in __getattr__(self, name)
   5065             if self._info_axis._can_hold_identifiers_and_holds_name(name):
   5066                 return self[name]
-> 5067             return object.__getattribute__(self, name)
   5068
   5069     def __setattr__(self, name, value):

AttributeError: 'DataFrame' object has no attribute 'profile_report'

Version information:
alabaster==0.7.12
anaconda-client==1.7.2
anaconda-navigator==1.9.7
anaconda-project==0.8.2
asn1crypto==0.24.0
astroid==2.2.5
astropy==3.1.2
atomicwrites==1.3.0
attrs==19.1.0
Babel==2.6.0
backcall==0.1.0
backports.os==0.1.1
backports.shutil-get-terminal-size==1.0.0
beautifulsoup4==4.7.1
bitarray==0.8.3
bkcharts==0.2
bleach==3.1.0
bokeh==1.0.4
boto==2.49.0
Bottleneck==1.2.1
certifi==2019.3.9
cffi==1.12.2
chardet==3.0.4
Click==7.0
cloudpickle==0.8.0
clyent==1.2.2
colorama==0.4.1
conda==4.6.14
conda-build==3.17.8
conda-verify==3.1.1
confuse==1.0.0
contextlib2==0.5.5
cryptography==2.6.1
cycler==0.10.0
Cython==0.29.6
cytoolz==<IP_ADDRESS>
dask==1.1.4
decorator==4.4.0
defusedxml==0.5.0
distributed==1.26.0
docutils==0.14
entrypoints==0.3
et-xmlfile==1.0.1
fastcache==1.0.2
filelock==3.0.10
Flask==1.0.2
future==0.17.1
gevent==1.4.0
glob2==0.6
gmpy2==2.0.8
greenlet==0.4.15
h5py==2.9.0
heapdict==1.0.0
hpat==0.28.1
html5lib==1.0.1
htmlmin==0.1.12
idna==2.8
imageio==2.5.0
imagesize==1.1.0
importlib-metadata==0.0.0
ipykernel==5.1.0
ipyparallel==6.2.4
ipython==7.4.0
ipython-genutils==0.2.0
ipywidgets==7.4.2
isort==4.3.16
itsdangerous==1.1.0
jdcal==1.4
jedi==0.13.3
jeepney==0.4
Jinja2==2.10
jsonschema==3.0.1
jupyter==1.0.0
jupyter-client==5.2.4
jupyter-console==6.0.0
jupyter-core==4.4.0
jupyterlab==0.35.4
jupyterlab-server==0.2.0
keyring==18.0.0
kiwisolver==1.0.1
lazy-object-proxy==1.3.1
libarchive-c==2.8
lief==0.9.0
lightgbm==2.2.3
llvmlite==0.28.0
locket==0.2.0
lxml==4.3.2
MarkupSafe==1.1.1
matplotlib==3.0.3
mccabe==0.6.1
missingno==0.4.1
mistune==0.8.4
mkl-fft==1.0.10
mkl-random==1.0.2
mock==2.0.0
more-itertools==6.0.0
mpi4py==3.0.1
mpmath==1.1.0
msgpack==0.6.1
multipledispatch==0.6.0
navigator-updater==0.2.1
nbconvert==5.4.1
nbformat==4.4.0
networkx==2.2
nltk==3.4
nose==1.3.7
notebook==5.7.8
numba==0.43.1
numerapi==1.5.1
numerox==3.7.0
numexpr==2.6.9
numpy==1.16.2
numpydoc==0.8.0
olefile==0.46
openpyxl==2.6.1
packaging==19.0
pandas==0.24.2
pandas-profiling==1.4.1
pandocfilters==1.4.2
parso==0.3.4
partd==0.3.10
path.py==11.5.0
pathlib2==2.3.3
patsy==0.5.1
pbr==5.2.0
pep8==1.7.1
pexpect==4.6.0
phik==0.9.8
pickleshare==0.7.5
Pillow==5.4.1
pkginfo==<IP_ADDRESS>
plotly==3.8.1
pluggy==0.9.0
ply==3.11
prometheus-client==0.6.0
prompt-toolkit==2.0.9
psutil==5.6.1
ptyprocess==0.6.0
py==1.8.0
pyarrow==0.11.1
pycodestyle==2.5.0
pycosat==0.6.3
pycparser==2.19
pycrypto==2.6.1
pycurl==<IP_ADDRESS>
pyflakes==2.1.1
Pygments==2.3.1
pylint==2.3.1
pyodbc==4.0.26
pyOpenSSL==19.0.0
pyparsing==2.3.1
pyrsistent==0.14.11
PySocks==1.6.8
pytest==4.3.1
pytest-arraydiff==0.3
pytest-astropy==0.5.0
pytest-doctestplus==0.3.0
pytest-openfiles==0.3.2
pytest-pylint==0.14.0
pytest-remotedata==0.3.1
python-dateutil==2.8.0
python-igraph==0.7.1.post6
pytz==2018.9
PyWavelets==1.0.2
PyYAML==5.1
pyzmq==18.0.0
QtAwesome==0.5.7
qtconsole==4.4.3
QtPy==1.7.0
requests==2.21.0
retrying==1.3.3
rope==0.12.0
ruamel-yaml==0.15.46
scikit-image==0.14.2
scikit-learn==0.20.3
scipy==1.2.1
seaborn==0.9.0
SecretStorage==3.1.1
Send2Trash==1.5.0
simplegeneric==0.8.1
singledispatch==<IP_ADDRESS>
six==1.12.0
snowballstemmer==1.2.1
sortedcollections==1.1.2
sortedcontainers==2.1.0
soupsieve==1.8
Sphinx==1.8.5
sphinxcontrib-websupport==1.1.0
spyder==3.3.3
spyder-kernels==0.4.2
SQLAlchemy==1.3.1
statsmodels==0.9.0
sympy==1.3
tables==3.5.1
tblib==1.3.2
terminado==0.8.1
testpath==0.4.2
toolz==0.9.0
tornado==6.0.2
tqdm==4.31.1
traitlets==4.3.2
typed-ast==1.4.0
unicodecsv==0.14.1
urllib3==1.24.1
wcwidth==0.1.7
webencodings==0.5.1
Werkzeug==0.14.1
widgetsnbextension==3.4.2
wrapt==1.11.1
wurlitzer==1.0.2
xlrd==1.2.0
XlsxWriter==1.1.5
xlwt==1.3.0
zict==0.1.4
zipp==0.3.3
Additional context
Add any other context about the problem here.

I have the same problem.
I can put the report into an object running:
profile = pandas_profiling.ProfileReport(df)
but I can't get it to display inside jupyter notebook.
Did you manage to solve it?

Your version of pandas-profiling is still 1.4.1. The df.profile_report() entry point is available from v2.0.0. You probably installed pandas-profiling via pip or conda, which are not yet up-to-date. We are working on that.

I have the same issue, I'm using Google colab to run my code.

I had same issue and just did the "install from source" instructions from here and now it works.

I have the same issue, I'm using Google colab to run my code.

Are you using Python 2? This version is not supported any longer. In Colab, switch the kernel to python 3 and run pip install -U pandas-profiling.

Hey @sbrugman: I am also running into the same issue from Python 3 in Google Colab:
AttributeError: 'DataFrame' object has no attribute 'profile_report'
I have attempted to install from source as well as !pip install -U pandas-profiling.
Thanks for keeping us posted!

Yep, I was having problems with installing pandas-profiling too.
The conda version is still 1.4.1 as noted above, so like @jasonsross I installed from source. I also installed into a new lean py3.7-pandas environment to avoid introducing any peculiar conflicts in my base env.
All working good so far

Try running the python file after writing the code in a text editor. I was getting the same error in Spyder V3.7 so I just made a python script with the pandas profiling code and executed that script from command and it works.

I have tried in Google Colab and it worked fine for Python 3 when installed through
!pip install -U pandas-profiling

I had the same issue, when I use pandas open '*.CSV"file，profile_report can works!  but I use Dataframe transfered ".npy"file, its fault!

maybe file column haven't name

I have installed version pandas_profiling 2.3.0 and still I get the same error message

I was having this same error installing with conda, but re-installed using the following and it works now.
pip install https://github.com/pandas-profiling/pandas-profiling/archive/master.zip
As doc'd here:
https://github.com/pandas-profiling/pandas-profiling#installation

Your version of pandas-profiling is still 1.4.1. The df.profile_report() entry point is available from v2.0.0. You probably installed pandas-profiling via pip or conda, which are not yet up-to-date. We are working on that.

Looks like this is my problem too.  But I can't figure out how to install the newer version into a conda environment.  Is there a way to do that?  And in the meantime, it would save everyone a lot of headaches if you just put a note about this into the documentation.  Don't mean to be a complainer, but I just wasted a lot of valuable homework time trying to get this to work because I thought it would help makes things easer and now I have to start over from scratch without it!  If I can help by updating the documentation I'd be happy to do that.

There's definitely some issue with the package metadata:
$ pip install -U pandas-profiling -vvvvvvvvvv
...
  Using version 1.4.1 (newest of versions: 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.4.1, 1.4.2, 1.4.3, 2.0.3, 2.1.0, 2.1.2, 2.2.0, 2.3.0)

which doesn't make sense. pip install "pandas-profiling>1.4.1" worked though. The only reason I can think for this is that 1.4.1 is the last version with a published .whl, but I was not aware that pip worked this way...

About conda : it worked for me using the channel conda-forge. The following environment.yml file worked (on a Mac)
`name: ohsu
channels:
- conda-forge
dependencies:

python=3.7
jupyter=1.0
pandas=0.25
matplotlib=3.1
scikit-learn=0.21
pandas-profiling=2.3`

I have the same issue, I'm using Google colab to run my code.

Are you using Python 2? This version is not supported any longer. In Colab, switch the kernel to python 3 and run pip install -U pandas-profiling.

For resolving in Google Colab, run in a code cell and restart the runtime
!pip install -U pandas-profiling

I installed using this code and now it works in notebook:
pip install https://github.com/pandas-profiling/pandas-profiling/archive/master.zip

I have tried in Google Colab and it worked fine for Python 3 when installed through
!pip install -U pandas-profiling

Thanks @vikas-biyani . It works.

Thanks @vikas-biyani. It works.

I have the same issue, I'm using Google colab to run my code.

Are you using Python 2? This version is not supported any longer. In Colab, switch the kernel to python 3 and run pip install -U pandas-profiling.

For resolving in Google Colab, run in a code cell and restart the runtime
!pip install -U pandas-profiling

thank you. it worked for me

After doing this

pip install -U pandas-profiling

Restart the kernel and clear outputs in Jupyter Notebook. It worked for me.

i have same issue
but installted  and success
enviorment : google colab

!pip install -U pandas-profiling==2.3
runtime restart!


feat(query): Added Cluster Role With Create Priveleges for Kubernetes

Proposed Changes

Added Cluster Role With Create Priveleges for Kubernetes

I submit this contribution under the Apache-2.0 license.

covered by kics\assets\queries\k8s\permissive_access_to_create_pods


Add Badge messaging to incent students to sign in

Can we add some messaging to the Skillmap description letting users know that when they Sign In, they'll receive a Badge!
Now that we have the HoC badge implemented, we should add some advertising for it to incent more users to sign in.

This isn't something I can do with content at the moment —at least not where you're indicating — but it should be easy to implement programmatically.

Considering this closed


Fix format checking failed when the input type is unexpected

In the JSON schema specification, it is stated that:
   A format attribute can generally only validate a given set
   of instance types.  If the type of the instance to validate is not in
   this set, validation for this format attribute and instance SHOULD
   succeed.

That is, validating an integer against the schema { "format": "email" } should be successful. Official test suites contains test cases for it, but it seems the test suite in the library have not updated to include this. This PR fix this issue.
Note that this change may cause previously invalid input value to become valid, due to the loosen constraint. Please let me know if there is any concern.

Syncing the test with upstream is something I should be doing more often but I just forget.
Even though this is sort of a breaking change, I'd rather comply to the spec than keep it wrong.
I'll have a closer look a bit later at the exact change, but thanks for the PR 👍


cannot drag vertically when container's height get very large

environment: IE11 WIN10 1903
this issue only happen with IE
this maybe a problem with getComputedStyle() will return negative value in IE when value get large, like 300000px.
Test case: https://codepen.io/adajoy/pen/eYOBwYy
codepen doesn't support ie, you can open the pen with other browsers, copy the code and run it locally to reproduce it

My page reads as follows.
The problem is that when I use draggabilly to drag the move-line, dragging to the left is fine, but when I drag it to the right, it doesn't work in the area where the tinymce compiler is located. How do I fix this problem?
enter image description here

<!DOCTYPE html>

 <meta charset="UTF-8">
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
 <title>TinyMCE Drag</title>

 <textarea id="editor"></textarea>


Support for range query classifiers

Supports custom outlier classifiers based on ranges of strings or numeric quantities.
[[x], [a,b], [c,d]] matches for values v==x or a<=v<b or c<=v<d
See cube_range.json for example usage

@sahaana you might be most familiar with this code, can you take a look? Alternatively @kexinrong

Coverage remained the same at 92.848% when pulling<PHONE_NUMBER>e68e533a8a4bb1372c7d891c2c3ccc on rangequery into 9d98c23d28d9b6da0cfbe4100b975d47c3052e48 on powercube.


Replace sass-lint with stylelint

Description
sass-lint is an unmaintained project
Please review the migration to stylelint. Which includes the following steps:

Avoid manual changes
The style check script has been changed to yarn lint-style
yarn lint-style --fix was run to auto fix everything possible

Issues Resolved
resolves #119
Check List

[x] New functionality includes testing.
[x] New functionality has been documented.
[x] All tests pass

[x] yarn lint
[x] yarn test-unit

[x] Update CHANGELOG.md
[x] Commits are signed per the DCO using --signoff

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

https://github.com/opensearch-project/oui/actions/runs/5759821731/job/15628275259?pr=949#step:5:13
Do you know why the linter is failing in CI? Does it need to be rerun?

@BSFishy I removed the quotes to try and fix CI

Love to see the CI is passing, gives me a lot more confidence in this. Will re-review and approve if everything looks good