Couldn't find preset "es2015" relative to directory

Sorry to add to the flood of extra work, but having a weird issue adding Mix to a project
Just for clarity, this is the migration process that I followed
Updated package.json to contain

  "scripts": {
    "dev": "node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "watch": "node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "hot": "node_modules/cross-env/bin/cross-env.js NODE_ENV=development webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
    "production": "node_modules/cross-env/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
  },
  "devDependencies": {
    "laravel-mix": "^0.5.3"
  }

deleted the old node_modules folder, cleared npm cache, then ran npm install
Started to update the wepack file so far got to
const { mix } = require('laravel-mix');

mix
    .js([
            // Core dependencies
            'theme-assets/frontend-core/vendor/jquery/2.1.4/jquery-2.1.4.min.js',
            'theme-assets/frontend-core/vendor/modernizr/2.8.3/modernizr.min.js',
            'theme-assets/frontend-core/vendor/underscorejs/1.8.3/underscore.min.js',
            'theme-assets/frontend-core/vendor/owlcarousel/<IP_ADDRESS>.4/owl.carousel.min.js',
            'theme-assets/frontend-core/vendor/selesti/cookielaw.js',

            // UIKit
            'theme-assets/frontend-core/vendor/uikit/2.23.0/js/uikit.js',
            'theme-assets/frontend-core/vendor/uikit/2.23.0/js/components/sticky.js',
            'theme-assets/frontend-core/vendor/uikit/2.23.0/js/components/slideshow.js',

            // AngularJS
            'theme-assets/frontend-core/vendor/angularjs/1.3.16/angular.min.js',
            'theme-assets/frontend-core/vendor/selesti/selesti-app.js'
        ]), 'public/assets/js/vendor.js');

However when I run npm run dev and webpack kicks in it comes up with
 ERROR  Failed to compile with 10 errors

 error  in ./theme-assets/frontend-core/vendor/selesti/selesti-app.js

Module build failed: Error: Couldn't find preset "es2015" relative to directory "/Users/owen"
    at /Users/owen/Sites/selesti/node_modules/babel-core/lib/transformation/file/options/option-manager.js:292:19
    at Array.map (native)
    at OptionManager.resolvePresets (/Users/owen/Sites/selesti/node_modules/babel-core/lib/transformation/file/options/option-manager.js:274:20)
    at OptionManager.mergePresets (/Users/owen/Sites/selesti/node_modules/babel-core/lib/transformation/file/options/option-manager.js:263:10)
    at OptionManager.mergeOptions (/Users/owen/Sites/selesti/node_modules/babel-core/lib/transformation/file/options/option-manager.js:248:14)
    at OptionManager.init (/Users/owen/Sites/selesti/node_modules/babel-core/lib/transformation/file/options/option-manager.js:367:12)
    at File.initOptions (/Users/owen/Sites/selesti/node_modules/babel-core/lib/transformation/file/index.js:216:65)
    at new File (/Users/owen/Sites/selesti/node_modules/babel-core/lib/transformation/file/index.js:139:24)
    at Pipeline.transform (/Users/owen/Sites/selesti/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
    at transpile (/Users/owen/Sites/selesti/node_modules/babel-loader/lib/index.js:38:20)
    at /Users/owen/Sites/selesti/node_modules/babel-loader/lib/fs-cache.js:78:18
    at ReadFileContext.callback (/Users/owen/Sites/selesti/node_modules/babel-loader/lib/fs-cache.js:14:14)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:365:13)

I've checked my node_modules folder and can see that the preset is included.
However for some odd reasons these are not playing ball.

Make sure you update npm and node to the latest versions. Here are the versions that I use and they work:
<EMAIL_ADDRESS><EMAIL_ADDRESS>

Currently using slightly newer versions.
npm - 3.10.8
node - 6.9.4
Its worth noting it works on a clean laravel 5.4 project

In fact, I've just tried on another project and getting the same issue.
ERROR  Failed to compile with 2 errors

 error  in ./resources/assets/js/app.js

Module build failed: Error: Couldn't find preset "es2015" relative to directory "/Users/owen"
    at /Users/owen/Sites/footy-finance/node_modules/babel-core/lib/transformation/file/options/option-manager.js:292:19
    at Array.map (native)
    at OptionManager.resolvePresets (/Users/owen/Sites/footy-finance/node_modules/babel-core/lib/transformation/file/options/option-manager.js:274:20)
    at OptionManager.mergePresets (/Users/owen/Sites/footy-finance/node_modules/babel-core/lib/transformation/file/options/option-manager.js:263:10)
    at OptionManager.mergeOptions (/Users/owen/Sites/footy-finance/node_modules/babel-core/lib/transformation/file/options/option-manager.js:248:14)
    at OptionManager.init (/Users/owen/Sites/footy-finance/node_modules/babel-core/lib/transformation/file/options/option-manager.js:367:12)
    at File.initOptions (/Users/owen/Sites/footy-finance/node_modules/babel-core/lib/transformation/file/index.js:216:65)
    at new File (/Users/owen/Sites/footy-finance/node_modules/babel-core/lib/transformation/file/index.js:139:24)
    at Pipeline.transform (/Users/owen/Sites/footy-finance/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
    at transpile (/Users/owen/Sites/footy-finance/node_modules/babel-loader/lib/index.js:38:20)
    at /Users/owen/Sites/footy-finance/node_modules/babel-loader/lib/fs-cache.js:78:18
    at ReadFileContext.callback (/Users/owen/Sites/footy-finance/node_modules/babel-loader/lib/fs-cache.js:14:14)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:365:13)

 @ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss ./resources/assets/sass/admin.scss

this is the app.js
require('./bootstrap');

/**
 * Next, you'll be able to start including your application specific functionality
 */

window.App = App = angular.module('App', ['ngAnimate'], ['$interpolateProvider', function($interpolateProvider) {
    // Tell angular to use different templating tags
    $interpolateProvider.startSymbol('<%');
    $interpolateProvider.endSymbol('%>');
}]);

// Filters

// Directives
require('./directives/FancyFormLabel');
require('./directives/DateDropper');
require('./directives/ProgressCircle');

// Services
require('./services/MenuService');

// Controllers
require('./controllers/GlobalController');
require('./controllers/QuestionController');

this is the other package.json
{
  "private": true,
  "scripts": {
   "dev": "node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
   "watch": "node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
   "hot": "node_modules/cross-env/bin/cross-env.js NODE_ENV=development webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
   "production": "node_modules/cross-env/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
 },
  "devDependencies": {
    "laravel-mix": "^0.5.0"
  },
  "dependencies": {
    "angular": "^1.6.0",
    "angular-animate": "^1.6.0",
    "animate.css": "^3.5.2",
    "datedropper": "^2.0.0",
    "hammerjs": "^2.0.8",
    "jquery": "^3.1.1",
    "progressbar.js": "^1.0.1",
    "responsive-iframe": "^0.0.1",
    "selesti-blockui": "^1.0.0",
    "uikit": "^2.27.2"
  },
  "sasslintConfig": "./.sass-lint.yml",
  "eslintConfig": "./.eslintrc.yml"
}

Noticed if you add your own .babelrc file with
{
    "presets": [
        ["es2015", { "modules": false }]
    ]
}

it solves the issue.

It should automatically apply that .babelrc config if you don't have one in your project root.

@JeffreyWay I did not have the .babelrc - I didnt need one as it was just old school js.
Thus it was generating the automated one from within Mix.js
However once I added my own one (I actually just copy/pasted it from the js file) it then started working.
Its almost like its not picking up the root correctly when using the automatic generated one.
I've tried it using bash, sh, zsh and fsh just incase it was any bash settings cocking up the paths - and they all produce the same result.
I'm happy to provide you with an other information that might help resolve the issue which might be affecting other users if you need.

@JeffreyWay I can confirm the issue that I had to add a .babelrc to my project root on a brand spanking new install of Laravel 5.4.6. I added this to .babelrc:
{
    "presets": [
        ["es2015", { "modules": false }]
    ]
}

Everything worked fine after that.

If any of you guys want to do some digging to figure out why it's not referencing our default Babel config, here's the code that performs the check.
https://github.com/JeffreyWay/laravel-mix/blob/master/src/Mix.js#L145-L157

@JeffreyWay The only thing I could figure out is that for some reason the
path is not being appended properly when no .babelrc is present. Even
directly injecting the string did not produce any detectable result.
However, I did come up with a work around until I have more time to
investigate. All I did was change the babelConfig() slightly to produce a
.babelrc file if none is present.
/**
     * Fetch the appropriate Babel config for babel-loader.
     */
    babelConfig() {
        let file = this.Paths.root('.babelrc');

        // If the user has defined their own .babelrc file,
        // the babel-loader will automatically fetch it.
        // Otherwise, we'll use these defaults.
        // return this.File.exists(file) ? '?cacheDirectory' : '?' +
JSON.stringify({
        //     'cacheDirectory': true,
        //     'presets': [
        //         ['es2015', { 'modules': false }]
        //     ]
        // });
        //
        let root = path.resolve(this.Paths.rootPath);
        let babelConfig = new File(root +
'/.babelrc').write(JSON.stringify({ "presets": [["es2015", { "modules":
false }]] }));
        return this.File.exists(file) ? '?cacheDirectory' : babelConfig;
    }

On Fri, Feb 3, 2017 at 11:46 AM, Jeffrey Way<EMAIL_ADDRESS>wrote:

If any of you guys want to do some digging to figure out why it's not
referencing our default Babel config, here's the code that performs the
check.
https://github.com/JeffreyWay/laravel-mix/blob/master/src/Mix.js#L145-L157
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/JeffreyWay/laravel-mix/issues/158#issuecomment-277343919,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABvxshIKiMsEMuJdzTy74PuRB0FWeUiaks5rY4QPgaJpZM4LtUaf
.

--
Ed
<EMAIL_ADDRESS>(702) 510-8380

For me it manifested differently: I could actually compile without error, but when I ran the application, it showed that exact error in the browser console. After upgrading to the most recent versions of node & npm (and recompiling) it seems to work now. Weird.
npm - 4.1.2
node - 7.7.4

I don't think this is relevant anymore, after the latest update. So closing.

I was having the same problem.

Node version: v7.8.0 (based on node -v)
NPM version: 4.5.0 (based on npm -v)
Laravel Mix version: 0.11.3 (based on npm ls laravel-mix)
Laravel version: v5.4.19 (based on composer show laravel/framework)

.babelrc file were not in the root directory after npm install. I was having problems with async, await, and other stuff. I have created the .babelrc file and started getting "Couldn't find preset "es2015" relative to directory" during npm run dev.
This StackOverflow answer suggest to check if babel-preset-es2015 is installed. When I have executed npm ls babel-preset-es2015,  nothing was returned.
npm install babel-preset-es2015 --save-dev solved my problem.

@gerardojbaez Actually you do not have to install any babel packages as it should have been in Laravel-Mix already.
I had the same problem as you just 2 days ago, what I did was to delete the whole node_modules folder and do a npm install again. I got it working again without adding that package and .babelrc

The key word being "should"
But I can also confirm this has happened several times on different computers. Sometimes it just doesn't. And the only way to start getting it to work is by manually installing the presets then adding a .babelrc
We're all aware that you SHOULDNT need to do this. But that's why it's being bought up as a bug - because it's not working as it SHOULD

@OwenMelbz Okay I understood your point here, but my solution serves an alternative for whoever that has the same problem but does not want to manually create the .babelrc file.
We'll wait and see what @JeffreyWay says, regarding this.

@ruchern I have tried that without success.
@OwenMelbz You're completely right.

I am still getting this error in WebStorm.  Why does everyone thing that a "workaround" is a proper fix for a horrible user experience?

@megamindbrian  I do not at all believe that everyone feels a work around is the answer. It is represented as a quick solution to a nagging issue with npm installs. The problem stems from npm or yarn does not install all packages properly and the most common issue is "Couldn't find preset "es2015" relative to directory". I have had to nuke the node_modules directory several times to get all the packages installed properly so that Mix will work. For this reason, and type of reason, people tend to comment the quick fix because it is the simple way. If you have a solution, please feel free to submit a pull request to Jeffrey. I am sure he will look closely at it.

@ejdelmonico I remembered Jeffery did ask users to nuke node_modules and reinstall Laravel-mix again for this particular issue with Babel.

May be I can not figure out the process step by step, I am seeking help for couple of weeks. I will be very much grateful to you if you could assist me solving this issue.
I am using Shapecss.
The error is showing for npm run production. But other command is working well.
/js/app.js from UglifyJs
Unexpected token: name (Accordion) [./~/shapecss/resources/assets/js/component/Accordion.js:1,0][/js/app.js:31660,6]

My package.json file is look like

{
  "private": true,
  "scripts": {
    "dev": "npm run development",
    "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "watch-poll": "npm run watch -- --watch-poll",
    "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
    "prod": "npm run production",
    "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
  },
  "devDependencies": {
    "axios": "^0.15.3",
    "babel-plugin-transform-object-rest-spread": "^6.23.0",
    "babel-preset-es2015": "^6.24.1",
    "bootstrap-sass": "^3.3.7",
    "cross-env": "^3.2.3",
    "jquery": "^3.1.1",
    "laravel-mix": "0.*",
    "lodash": "^4.17.4",
    "uglify-js": "git://github.com/mishoo/UglifyJS2#harmony-v2.8.22",
    "vue": "^2.1.10"
  },
  "dependencies": {
    "babel-preset-latest": "^6.24.1",
    "shapecss": "^2.1.3"
  }
}

.....................................................................................
2. I have created .babelrc on project root
{
  "presets": [
    ["es2015", { "modules": false }]
  ],
    "plugins": ["transform-object-rest-spread"]
}

.....................................................................................
Any help can save my life... :)

Just ran into the same problem. This is what worked for me: https://stackoverflow.com/a/36821986/33203

@ashokgelal Was that a response to @MicroDreamIT ?  It looks like /assets/js/ is something included after compilation is already finished.  Is assets is already packed and ready, it should be excluded from the compile step using webpack's exclude pattern matching.

@JeffreyWay  I was more referring to the fact that the issue was closed without continuation or path to resolve the issue in a new thread.

@megamindbrian here is ref, https://github.com/MicroDreamIT/shapecss-framework/issues/2

in .babelrc add:
{   "presets": [["env", {"modules": false}]] }


tests: byte_math test case

This PR adds a test case for byte_math and updates a warning message that the byte_math PR changes.
Companion PR: Suricata PR#4916

Closed in #229


Cannot use touchmove

I am working on a project that needs to work both in desktop and mobile browsers.
Part of the interaction is that you create a path of nodes by pressing on one to start then dragging to others to add them to the path.
I am using
node.on( ('ontouchmove' in window) ? 'touchmove' : 'mouseover', e => {
                    console.log('MOVING');
                    e.preventDefault();
                    if ( pathBuilding )  {
                        if ( !path.includes( [ node.x, node.y ] ) ) {
                            path.push( [ node.x, node.y ] );
                            node.setState( { selected: true } );
                        }
                    }
                } );

To handle the second part where you add subsequent nodes to the path. This works on on the desktop, but nothing is triggered on iOS Safari or iOS Chrome.
I have set createjs.Touch.enable(stage); stage.enableMouseOver(20); and my mousedown and touchend work. I have seen rollover in a few places, but that hasn't helped, and I know there is a pressmove but that would only contain the information about the node I pressed on, and not the ones I am moving over.

I added a comment to your StackOverflow post.
Do you have an online sample somewhere?


Neutroswap Milestone 1&2

Milestone Delivery Checklist

[x] The milestone-delivery-template.md has been copied and updated.
[x] The invoice form has been filled out for this milestone.
[x] This pull request is being made by the same account as the accepted application.
[x] In case of acceptance, the payment will be transferred to the EOS account name provided in the application.
[x] The delivery is according to the Guidelines for Milestone Deliverables.

Link to the application pull request: https://github.com/eosnetworkfoundation/grant-milestones/pull/136 < please fill this in with the PR number of your application.

Hello!
I'm going through the materials and I found a few issues.

License file link is not working, and I don't see a license in the repository
The following contracts don't have their code verified:

0x5f4b3D92bcb944a0e9B231C42D0615F8A27Bbcc0 (NitroPoolFactory)
0x72076068Bd08f5D0AE541075f1E317b3B1d46d8f (FairAuctionFactory)
The analytics page link is broken

(I see some issue with the explorer not be able to load the 0x96A064DB6CA1D45e59756D3DAc7CD249D4D742030 address right now and have elevated internally)
Something seems to be broken with subgraph development links

Contract foundry tests are all passing 👍

Hi @nsjames thanks for pointing some issues

Analytics link is changed to https://analytics.neutroswap.io/. We change the analytics directly to mainnet to test the accuracy of The Graph and for clearer data
Currently V2 contracts are being audited now by SolidProof. No changes from the submitted contracts. Hopefully within this week we will update and verified all the contracts
License and The Graph issues, I'll bring it to the team

Thanks, looking forward to closing this one out 🙏

License file link is not working, and I don't see a license in the repository
Something seems to be broken with subgraph development links

Hi James

The graph issues: you need to query some variables to test it. For example to get available all pairs here

We have added the licenses here: Neutroswap app and V2 contracts

Please let me know if you found other issues

Thanks, just waiting for those contracts to be verified and we're good to go.

Hi @nsjames
All the mainnet contracts are verified and audited by SolidProof. Please take a look at here

Looking good, thanks!

Hi guys, is there be any specific areas of our milestone that require additional discussion or clarification, please do not hesitate to reach out @tedcahalleos @nsjames @wanderingbort @BenjaminGormanPMP

Approved.


otp538u: Initial implementation

This module was tested on the Grove non-contact IR Temperature
Sensor.  The tables included are only valid for a distance of 9cm.
Signed-off-by: Jon Trulson<EMAIL_ADDRESS>Signed-off-by: Zion Orent<EMAIL_ADDRESS>

Thanks!  Merged and closing.


Temporarily hide all JOBS-related things from the dashboard

Because the priorities have changed, we should not show anything jobs-related in the dashboard. Or if it's easy to do, move the jobs-related commits to a separate branch.

https://github.com/our-city-app/oca-backend/pull/748/commits/59783a3fd816ec836dbefcb481d2b08399f5a9a6


fix #1: delete unused files after user input

Fixes #1

Unfortunately I've already delete my fork so it could be difficult for you (and me) to validate that PR.
I'm really sorry for that.
I've found a way to get back the PR there: https://github.com/isaacs/github/issues/168#issuecomment-374201226 but can't test it right now


Issue: Documentation bugs

ItemGroups - PropsFromEnvSettings has incorrect header
This work item was migrated from CodePlex
CodePlex work item ID: '10166'
Assigned to: 'tfabraham'
Vote count: '1'

[UnknownUser@8/20/2013]
Resolved with changeset 73459.


nix: Add a shell.nix file

This works for me on NixOS 22.05.
(I haven't yet tested it on NixOS 22.11, which since Wednesday is now the latest release.)
# All our non-NPM dependencies and dev-dependencies, expressed with Nix.
#
# TODO: Expand this to cover the full Android dev environment,
#   and everything in tools/.
#
# If you're using NixOS, this file may be helpful:
#  * Type `nix-shell` in this directory.
#  * You'll get a shell with the environment all set up
#    so that `yarn install` and `tools/test --all` work.
#  * Also `android-studio`, and from there you can run the
#    Android emulator and build and run the app:
#    * Start emulator from Android Studio.
#    * Run `adb reverse tcp:8081 tcp:8081` in the shell.
#    * Run `node_modules/.bin/react-native start` in the shell.
#    * Run the app from Android Studio.

/cc @WesleyAC @andersk

Merging. This works for me, and I don't think there are any other consumers for it in the near term.


TypeError when executing with --full-report

safety version:1.8.2
Python version: 3.6.5
Operating System: linux (ubuntu)

Description
Whenever safety is run with --full-report and tries to report an issue it will abort with TypeError: unsupported format string passed to bytes.__format__
What I Did
$ virtualenv -p /usr/bin/python3.6 test1
Running virtualenv with interpreter /usr/bin/python3.6
Using base prefix '/usr'
New python executable in /home/someuser/repos/mercury/test1/bin/python3.6
Also creating executable in /home/someuser/repos/mercury/test1/bin/python
Installing setuptools, pip, wheel...done.
$ source test1/bin/activate
(test1) $  pip install safety pyyaml
Collecting safety
  Using cached https://files.pythonhosted.org/packages/20/58/701d0b61562a63b7f0008bcfd673617b277ddaa2cde217a398f82c146cd4/safety-1.8.2-py2.py3-none-any.whl
Collecting pyyaml
  Downloading https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz (270kB)
    100% |████████████████████████████████| 276kB 7.3MB/s
Collecting dparse>=0.4.1 (from safety)
Collecting packaging (from safety)
  Using cached https://files.pythonhosted.org/packages/ad/c2/b500ea05d5f9f361a562f089fc91f77ed3b4783e13a08a3daf82069b1224/packaging-17.1-py2.py3-none-any.whl
Collecting requests (from safety)
  Downloading https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl (91kB)
    100% |████████████████████████████████| 92kB 7.6MB/s
Collecting Click>=6.0 (from safety)
  Using cached https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c5366c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.whl
Requirement already satisfied: pip in ./test1/lib/python3.6/site-packages (from safety) (10.0.1)
Collecting six (from dparse>=0.4.1->safety)
  Using cached https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting pyparsing>=2.0.2 (from packaging->safety)
  Using cached https://files.pythonhosted.org/packages/6a/8a/718fd7d3458f9fab8e67186b00abdd345b639976bc7fb3ae722e1b026a50/pyparsing-2.2.0-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests->safety)
  Using cached https://files.pythonhosted.org/packages/7c/e6/92ad559b7192d846975fc916b65f667c7b8c3a32bea7372340bfe9a15fa5/certifi-2018.4.16-py2.py3-none-any.whl
Collecting idna<2.8,>=2.5 (from requests->safety)
  Downloading https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl (58kB)
    100% |████████████████████████████████| 61kB 9.1MB/s
Collecting urllib3<1.24,>=1.21.1 (from requests->safety)
  Downloading https://files.pythonhosted.org/packages/bd/c9/6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl (133kB)
    100% |████████████████████████████████| 143kB 7.9MB/s
Collecting chardet<3.1.0,>=3.0.2 (from requests->safety)
  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Building wheels for collected packages: pyyaml
  Running setup.py bdist_wheel for pyyaml ... done
  Stored in directory: /home/someuser/.cache/pip/wheels/ad/da/0c/74eb680767247273e2cf2723482cb9c924fe70af57c334513f
Successfully built pyyaml
Installing collected packages: pyyaml, pyparsing, six, packaging, dparse, certifi, idna, urllib3, chardet, requests, Click, safety
Successfully installed Click-6.7 certifi-2018.4.16 chardet-3.0.4 dparse-0.4.1 idna-2.7 packaging-17.1 pyparsing-2.2.0 pyyaml-3.13 requests-2.19.1 safety-1.8.2 six-1.11.0 urllib3-1.23
$ safety check --key="my-paid-key"
╒══════════════════════════════════════════════════════════════════════════════╕
│                                                                              │
│                               /$$$$$$            /$$                         │
│                              /$$__  $$          | $$                         │
│           /$$$$$$$  /$$$$$$ | $$  \__//$$$$$$  /$$$$$$   /$$   /$$           │
│          /$$_____/ |____  $$| $$$$   /$$__  $$|_  $$_/  | $$  | $$           │
│         |  $$$$$$   /$$$$$$$| $$_/  | $$$$$$$$  | $$    | $$  | $$           │
│          \____  $$ /$$__  $$| $$    | $$_____/  | $$ /$$| $$  | $$           │
│          /$$$$$$$/|  $$$$$$$| $$    |  $$$$$$$  |  $$$$/|  $$$$$$$           │
│         |_______/  \_______/|__/     \_______/   \___/   \____  $$           │
│                                                          /$$  | $$           │
│                                                         |  $$$$$$/           │
│  by pyup.io                                              \______/            │
│                                                                              │
╞══════════════════════════════════════════════════════════════════════════════╡
│ REPORT                                                                       │
│ checked 15 packages, using pyup.io's DB                                      │
╞════════════════════════════╤═══════════╤══════════════════════════╤══════════╡
│ package                    │ installed │ affected                 │ ID       │
╞════════════════════════════╧═══════════╧══════════════════════════╧══════════╡
│ pyyaml                     │ 3.13      │ <4                       │ 36333    │
╘══════════════════════════════════════════════════════════════════════════════╛
$ safety check --full-report --key="my-paid-key"
Traceback (most recent call last):
  File "/home/someuser/repos/mercury/test1/bin/safety", line 11, in <module>
    sys.exit(cli())
  File "/home/someuser/repos/mercury/test1/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/someuser/repos/mercury/test1/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/someuser/repos/mercury/test1/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/someuser/repos/mercury/test1/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/someuser/repos/mercury/test1/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/someuser/repos/mercury/test1/lib/python3.6/site-packages/safety/cli.py", line 71, in check
    key=key
  File "/home/someuser/repos/mercury/test1/lib/python3.6/site-packages/safety/formatter.py", line 196, in report
    return SheetReport.render(vulns, full=full, checked_packages=checked_packages, used_db=used_db)
  File "/home/someuser/repos/mercury/test1/lib/python3.6/site-packages/safety/formatter.py", line 116, in render
    table.append("│ {:76} │".format(line.encode('utf-8')))
TypeError: unsupported format string passed to bytes.__format__

I'm seeing the same error. I've got scheduled daily builds - the last successful was July 17, and then they started failing July 18. That doesn't seem to be tied to the release of 1.8.2 on July 11. I tried the same run using safety 1.8.1 and the build ran fine. I'm guessing it's tied to this commit.
I'd love to supply more details, but what's weird is I can't re-create this error locally or manually on the CI server - it only fails during the automated run. ¯_(ツ)_/¯
My versions:

safety - 1.8.2
python - 3.6.4
OS - CentOS Linux release 7.2.1511

Hi @richleland @JochenABC thanks for the details, we're looking into this. In the mean time if you come across any more details please let me know.
Thanks!

I have opened a PR potential fix: https://github.com/pyupio/safety/pull/142
We will be testing this before deploying.
@JochenABC can you confirm that if you change back to safety 1.8.1 it works for you?

@Jwomers Confirmed:

It works with 1.8.1
When I apply your patch from PR #142 it will also work again

@JochenABC @richleland looks like PR #142 works for all, I will be merging and pushing to PyPi later today.

This is merged and being pushed to PyPi. Closing this issue. Thanks all for the help.


FR: Documentation: FAQ: Add sectoin 'multiple files'

Background
I can't find a section on how to use use doctest with multiple test files. includeing the header in two files does apparently not work.
Feature Request
Add a FAQ section Compile with multiple files (or similar), where multiple files would be a search keyword for simple browser search.

includeing the header in two files does apparently not work.

It works for me. I have a single source file containing
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include <doctest.h>

and then every source file that has tests just uses #include <doctest.h> on its own.

fixed in dev - will publish a version soon


[Function Request] Page 5734 "Item Category Attributes"

[Function Request] Page 5734 "Item Category Attributes"
Could we please have a new Function GetItemCategoryCode at Page 5734 "Item Category Attributes" to get value of global Variable ItemCategoryCode?
   // >>>>>>>>
 procedure GetItemCategoryCode(): Code[20];
 begin
     Exit(ItemCategoryCode);
 end;
 // <<<<<<<<

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


feat: create plugin-prompt

A plugin for simple prompting a user for true/false.
Want to extend this in the future with options for more reactions and returning that reaction etc.
Accepts the same options as a normal reply or send function. But adds the reactions & listens to them.

PS. Still requires tests, but would like some help testing a case like this..

Also, when reviewing @Favna @vladfrangu @kyranet. Please think of suggestions to extend this package to make it more viable as a plugin. It's pretty minimal right now. But there might be plenty of use cases in which this plugin could ease some development pain when it comes to reactions/prompts/etc (like reaction votes, or prompts by text (replying with yes/no), etc)

Also, when reviewing @Favna @vladfrangu @kyranet. Please think of suggestions to extend this package to make it more viable as a plugin. It's pretty minimal right now. But there might be plenty of use cases in which this plugin could ease some development pain when it comes to reactions/prompts/etc (like reaction votes, or prompts by text (replying with yes/no), etc)

Looking at;
https://github.com/sapphire-project/utilities/blob/6e22cae7cc6d12242742b399ca584989931550ef/packages/discord.js-utilities/src/lib/PaginatedMessage.ts
I might consider that a better way to do things than the current setup.

Looking at;
https://github.com/sapphire-project/utilities/blob/6e22cae7cc6d12242742b399ca584989931550ef/packages/discord.js-utilities/src/lib/PaginatedMessage.ts
I might consider that a better way to do things than the current setup.

Will move this to a djs util

Will move this to a djs util


header file missing?

Hi,
Appreciate your work,
when I install SS_Conv_lib, it seems some header files are not found,
SS-Conv/SS_Conv_lib/src/conv/geometry.h:16:10: fatal error: tensorview.h: No such file or directory
SS-Conv/SS_Conv_lib/src/conv/reordering_functor.h:12:10: fatal error: tensorview.h: No such file or directory
SS_Conv_lib/src/pool/global_maxpool.h:16:10: fatal error: datatype.h: No such file or directory
any extra dependencies?

probably due to ninja build
works fine after disable ninja


Datatable issues when using RTD Theme

Some points were reported as part of this issue
https://github.com/useblocks/sphinxcontrib-needs/issues/271#issuecomment-844837720
When using Datatables with RTD,

The head columns don't have the same width as the content columns.
When scrolling head and content is not align.

The read_the_docs theme related issues really drive me crazy :/
This theme is doing so much voodoo, that it is hard or even impossible to provide workarounds for it.
So rtd is wrapping each table in an extra div with class wy-table-responsive (via online javascript manipulation!).
Then some values for div.wy-table-responsive get set via css and I have the feeling also via js.
When I deactivate the rtd js file theme.js  for the documentation, all looks good.
So it's impossible to define something on css level, if it gets overwritten by js code later.
I will need to discuss this issue with the rtd-developers and maybe discuss a common way of how a table (created by extension) can be exclude from this kind of handling.

Created bug report: https://github.com/readthedocs/sphinx_rtd_theme/issues/1179

Perfect bug report. Thanks!!

Same problem for the Sphinx Material theme.
But the reason and a solution would look completely different:
Bug issue: https://github.com/bashtage/sphinx-material/issues/119

PR is out for RTD: https://github.com/readthedocs/sphinx_rtd_theme/pull/1218

PR on RTD side is on hold and shall be merged with release 1.1. Currently 1.0 gets prepared, so this may take a while :disappointed: .
In the meantime, this fork contains the change and can be installed by hand to get it working:
https://github.com/useblocks/sphinx_rtd_theme/tree/danwos/wy-table-exclude


[FEAT] JSON standard output for SRT plugin statistics

Is your feature request related to a problem?
Consuming the statistics using the flags available on the SRT input is difficult in other applications or scripts, e.g. python
Proposed solution:
Add a —json flag to the SRT plug-in for TSDuck similar to the flag provided on other plugins. If possible make this available for all stats, including the separate bitrate reporting interval stats.

The following option has been added to the srt input and output plugins:
--json-line[='prefix']
    With --statistics-interval or --final-statistics, report the statistics
    as one single line in JSON format. The optional string parameter
    specifies a prefix to prepend on the log line before the JSON text to
    locate the appropriate line in the logs.

That works perfectly, thanks @lelegard 👍


There is no warning when typing '-0.2' into the 'Show top results' field

Storage Explorer Version: 1.23.0-dev
Build Number: 20220217.2
Branch: main
Platform/OS: Windows 10/Linux Ubuntu 20.04/MacOS Big Sur 11.6.1
Architecture: ia32/x64
How Found: Ad-hoc testing
Regression From: Not a regression
Steps to Reproduce

Expand one storage account -> Tables.
Create a table -> Click 'Query' in its toolbar.
Expand 'Advanced Options' -> Type '-0.2' into the 'Show top results' field.
Check whether there is an warning next to the 'Show top results'.

Expected Experience
There is an warning next to the 'Show top results'.

Actual Experience
There is no warning next to the 'Show top results'.

I'm going suggest we not worry about this one. We use Number.parseInt in the code, which rounds all decimal numbers to integers. Specifically, it rounds numbers between -1 and 0 to 0, and 0 is a valid value for this field. I also think it's very unlikely for a user to accidentally enter a hyphen and a period.


fix(cli): show memory usage after build for dev cmd

Types of changes

[x] Bug fix (a non-breaking change which fixes an issue)
[ ] New feature (a non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Description

As reported by @koresar in #5509, the memory usage is printed too early for the dev command. This pr makes it optional to print memory usage in the banner and adds a simple show mem usage method for printing with consola.info
Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly. (PR: #)
[ ] I have added tests to cover my changes (if not applicable, please state why)
[ ] All new and existing tests are passing.

Thank you. I appreciate!

render:resourcesLoaded is called twice and render:done is never called, will have a look at your other suggestion of adding another hook

This is getting way too complicated for a simple and not precise feature anyway, but I cant get a 'render:resourcesDone' hook as proposed by @pi0 to work because isModernReady already returns true on the first call to build:resources from webpack/builder which causes the new resourcesDone hook still to be called twice.
I can fix it probably but then I need to change the isReady / isModernReady behaviour in renderer so they only return true when their respective build:resources hook has been called from webpack/builder. Or do you have a better idea?


nxp_fmuk66 reboot command hangs if SD card popped in and out

Describe the bug
nxp_fmuk66 reboot command hangs if SD card popped in and out
To Reproduce
Steps to reproduce the behavior:

Boot normal
remove and replace sd card
type "reboot" on console
hang.

Expected behavior
shutdown line 201 never calls callback. May be related to card insert or logger. I am assuming the Work queue is blocked.
fyi @igalloway

I'm going through some old NXP / FMUK66 related issues. I cannot reproduce this one, but I do get a mag timeout when an SD card is inserted while the FMU is powered.

Boot normally.

Remove and reinsert SD (replace with another SD card gives same issue)

Mag timeout. GPS timeout as well? Sometimes I also get a baro timeout.

Reboot from console

System reboots as expected, does not hang.

nsh> ERROR [sensors] Mag #0 fail:  TIMEOUT!
ERROR [sensors] Sensor Mag #0 failed. Reconfiguring sensor priorities.
WARN  [sensors] Remaining sensors after failover event 0: Mag #0 priority: 1
WARN  [sensors] Remaining sensors after failover event 0: Mag #1 priority: 255
INFO  [ekf2] Mag sensor ID changed to 4395025
WARN  [ecl/EKF] EKF gps hgt timeout - reset to baro
WARN  [ecl/EKF] EKF GPS data stopped
WARN  [ecl/EKF] EKF stopping navigation
INFO  [ecl/EKF] EKF commencing GPS fusion

@jarivanewijk I will have to determine the root cause. But I would suggest not making removal/insertion while powered a common practice.

@davids5 Of course we should not make this a common practice. However, I think this might cause in flight issues when there is bad contact between SD card and the reader (vibrations?).

@jarivanewijk yes I was thinking along the same lines, hence the comment on determining the root cause. I will not be able to get to this right away, but have it on my list. Have you tested on current master with the workqueue changes?

@davids5 This issue has been open since January. If it was a big problem we would have come back to this earlier. There's no rush. ;)
Just tested with latest master (c66fc85). I get the same behavior as yesterday (with 1.9.2 stable). I now always see both the mag and the baro fail.
NuttShell (NSH)
nsh> INFO  [ekf2] Mag sensor ID changed to 396809
INFO  [ecl/EKF] EKF aligned, (pressure height, IMU buf: 22, OBS buf: 14)
INFO  [ecl/EKF] EKF GPS checks passed (WGS-84 origin set, using GPS height)
INFO  [ecl/EKF] EKF commencing GPS fusion
ERROR [sensors] Mag #0 fail:  TIMEOUT!
ERROR [sensors] Sensor Mag #0 failed. Reconfiguring sensor priorities.
WARN  [sensors] Remaining sensors after failover event 0: Mag #0 priority: 1
WARN  [sensors] Remaining sensors after failover event 0: Mag #1 priority: 255
ERROR [sensors] Baro #0 fail:  TIMEOUT!
ERROR [sensors] Sensor Baro #0 failed. Reconfiguring sensor priorities.
WARN  [sensors] Remaining sensors after failover event 0: Baro #0 priority: 1
WARN  [sensors] Remaining sensors after failover event 0: Baro #1 priority: 75
INFO  [ekf2] Mag sensor ID changed to 4395025
WARN  [ecl/EKF] EKF gps hgt timeout - reset to baro
WARN  [ecl/EKF] EKF GPS data stopped
WARN  [ecl/EKF] EKF stopping navigation

We are getting some reports of flight logs being cut off mid flight. I think we need to have another look at this issue, because it is probably all related. Can we help in any way to find the root cause of these SD card issues? @davids5

I had the flight cut of twice now.  Running 1.9.2 stable.
Wondering if related to issue https://github.com/PX4/Firmware/issues/11815
Here are my cut-off flight logs:

https://logs.px4.io/plot_app?log=6b2498a8-9dca-4188-ae70-cf94f29f2cad
https://logs.px4.io/plot_app?log=e87514de-fc65-4c55-8451-9ba322496702

@redxeth, @jarivanewijk Please test https://github.com/PX4/Firmware/pull/13440

Thanks @davids5 !  Will try it.

Thank you @davids5 - I now get your original issue: the FMU hangs immediately when it is (re)booted without SD card inserted. Reinserting the SD card while PX4 is already running no longer gives the results  I described in August (which is still the case for current master version).

@davids5 - I just noticed that with PX4 1.10 the FMUK66 does not boot when no SD card is inserted. The message "Successfully bound SDHC to the MMC/SD driver" is printed in the debug console and then it hangs. I assume this is related to this issue and PR #13440. It was not the case for PX4 1.9.2. When the board is powered when an SD card is inserted, it works as it should.

Closing, please re-open if this is still an issue.

I tested this with a resent master. With no issue. @jarivanewijk does the unit in question have the latest bootloader?

Sorry that it took me so long to get back to this, @davids5 - No, it was an old bootloader. We were still using the bootloader from May 2019, because of https://github.com/PX4/Bootloader/issues/149 - It was fixed in November, but I forgot to test it and update the bootloader binary that we were distributing.
With the latest bootloader and firmware I have no issues. Sorry for the inconvenience!

I was too quick. It works fine with latest master firmware, but with latest stable (1.10.1) it still hangs after the bootloader (RGB LED remains white). @davids5

Thank you @jarivanewijk  for retesting. Given the 1.11 is to be released soon, I would say it is good this is documented and will be resolved in the new release.


"Error: Expected token to be set for this request, but none was present"

did i miss something ??

for information, no docker here, native debian, nodejs 20, nodered 3.1.0, node-red-contrib-discord-advanced 3.5.0

I get the same error now.

Could you export the flow and paste it here?
Thanks

Could you export the flow and paste it here? Thanks

[     {         "id": "505e87400a348b67",         "type": "tab",         "label": "Demo Discord",         "disabled": false,         "info": "",         "env": []     },     {         "id": "4932896908125e8d",         "type": "debug",         "z": "505e87400a348b67",         "name": "debug 13",         "active": true,         "tosidebar": true,         "console": false,         "tostatus": false,         "complete": "false",         "statusVal": "",         "statusType": "auto",         "x": 720,         "y": 180,         "wires": []     },     {         "id": "1c4fc90e7eecbda7",         "type": "discordMessage",         "z": "505e87400a348b67",         "name": "",         "channelIdFilter": "",         "token": "",         "x": 500,         "y": 180,         "wires": [             [                 "4932896908125e8d"             ]         ]     },     {         "id": "4e618cd3b95838a5",         "type": "discordMessageManager",         "z": "505e87400a348b67",         "name": "",         "channel": "",         "token": "",         "x": 530,         "y": 280,         "wires": [             [                 "4932896908125e8d"             ]         ]     },     {         "id": "c814a079703e49c4",         "type": "inject",         "z": "505e87400a348b67",         "name": "",         "props": [             {                 "p": "payload"             },             {                 "p": "channel",                 "v": "1156714157115183236",                 "vt": "str"             }         ],         "repeat": "",         "crontab": "",         "once": false,         "onceDelay": 0.1,         "topic": "",         "payload": "aze",         "payloadType": "str",         "x": 270,         "y": 280,         "wires": [             [                 "4e618cd3b95838a5"             ]         ]     } ]

have all discord nodes bot configuration selected?

have all discord nodes bot configuration selected?

yes both.

i just edited the discordmessagemanager node then revalidate it. i now have another message :

On discord developer portal

it was. I had to delete the node, recreate the node, and all is now ok. Very strange that exact same configured nodes acted differently. Thx anyway. i close the issue.


Add support for big style notifications

Add support for big style notifications for API level >= 16
Pass custom data along to the PendingIntent and thus handling activity
Fixes #145 #78

is this really fixed, text is not getting enlarge in version v5.2.1

@pranilkanderi Can you create a separate ticket and explain your issue? This ticket was solved a long ago and maybe there is something else the SDK is missing. An screenshot would be very helpful. Thanks!


update: bump Safe Area component to 3.1.9

Please read and mark the following check list before creating a pull request:

[x] I read and followed the CONTRIBUTING.md guide.

Short description of what this resolves:
Related to #314

We're decided to use useSafeAreaInsets instead. It's not worked like regular component wrapper, it's uses hook instead.


Fix opcode assertions

Fix opcode assertions
#390
Fix function vm_core::opcode_assertions bug:
In the instruction.opcode match, the arm Opcode::Call had two if statements that are invariably false.
Checklist

[x] Linked to Github Issue
[x] Unit tests added
[ ] Integration tests added.
[ ] This change requires new documentation.

[ ] Documentation has been added/updated.

Codecov Report

Merging #398 (95b8691) into main (d3b5ba2) will decrease coverage by 0.04%.
The diff coverage is 99.39%.

:exclamation: Current head 95b8691 differs from pull request most recent head bf5f3bd. Consider uploading reports for the commit bf5f3bd to get more accurate results

@@            Coverage Diff             @@
##             main     #398      +/-   ##
==========================================
- Coverage   96.46%   96.42%   -0.05%
==========================================
  Files          50       50
  Lines       11179    11205      +26
==========================================
+ Hits        10784    10804      +20
- Misses        395      401       +6

Impacted Files
Coverage Δ

...int_processor/builtin_hint_processor/hint_utils.rs
90.62% <ø> (ø)

src/vm/vm_core.rs
95.33% <96.92%> (-0.31%)
:arrow_down:

..._processor/builtin_hint_processor/blake2s_utils.rs
97.35% <100.00%> (ø)

...int_processor/builtin_hint_processor_definition.rs
99.47% <100.00%> (+<0.01%)
:arrow_up:

...uiltin_hint_processor/cairo_keccak/keccak_hints.rs
95.12% <100.00%> (-0.08%)
:arrow_down:

...rocessor/builtin_hint_processor/dict_hint_utils.rs
97.25% <100.00%> (+<0.01%)
:arrow_up:

...cessor/builtin_hint_processor/find_element_hint.rs
98.01% <100.00%> (ø)

...int_processor/builtin_hint_processor/math_utils.rs
97.37% <100.00%> (+<0.01%)
:arrow_up:

...cessor/builtin_hint_processor/memcpy_hint_utils.rs
100.00% <100.00%> (ø)

...t_processor/builtin_hint_processor/memset_utils.rs
100.00% <100.00%> (ø)

... and 14 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Add option to rotate windows sideways slightly while dragging (shift+lclick)

I'd like to see a way to make windows rotate sideways while dragging, because i feel like it would look cool. Nothing else, just because I feel like it would look cool.

#255


This error occurred when creating a cluster

What happened:

What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
sealer run kubernetes:v1.19.9 --masters   --passwd
Anything else we need to know?:
Environment:

sealer version (use sealer version): v0.1.4
Cloud provider or hardware configuration: exiting servers
OS (e.g: cat /etc/os-release): CentOS Linux 7
Kernel (e.g. uname -a): 3.10.0-1160.el7.x86_64
Install tools:
Others:

/invite

Maybe you need kubeadm reset before you install.

Using v0.1.5-rc or higher version.


[2024a] sync 2024a with the main branch of opendatahub/notebook

[2024a] sync 2024a with the main branch of opendatahub/notebook
Description
This syncs the following PR's:
https://github.com/opendatahub-io/notebooks/pull/535
https://github.com/opendatahub-io/notebooks/pull/534
https://github.com/opendatahub-io/notebooks/pull/532
https://github.com/opendatahub-io/notebooks/pull/531
How Has This Been Tested?

tested in the linked PR's.
Merge criteria:

[x] The commits are squashed in a cohesive manner and have meaningful messages.
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has manually tested the changes and verified that the changes work

Merging the sync PR for the build to start.


[Feature Request] Last message and Contact on Get all chats

On Engine NOWEB.
I would like to know if we can add the "Last Message" from every chat on get all chats Request.
Also, if the contact info can be added too.
It would be awesome if we have the profilePicture included on the Contact Object, but I know that this could underperform the query.
But at least the name of the contact would be great.
  {
    "id"<EMAIL_ADDRESS>    "readOnly": false,
    "ephemeralExpiration": 0,
    "ephemeralSettingTimestamp": 0,
    ...
    "lidJid": "xxxxxxx@lid",
    "lastMessageRecvTimestamp":<PHONE_NUMBER>
    "lastMessage": "<BODY OF LAST MESSAGE ON CHAT>"
    "contact": {
      "id": "xxxxx",
      "name": "Jhon Doe",
      "profilePicture": "https://xxxx.png" (nice to have)
    }
  },

Related https://github.com/devlikeapro/waha/issues/566

Added in 2024.12.6 :rocket:
https://waha.devlike.pro/docs/how-to/chats/#get-chats-overview

Get chats overview
Get chats "overview" - the API that almost all  Chat UI client needs!
GET /api/{session}/chats/overview?limit=20&offset=0

Response contains the main info you need to show in the chat list:

id - chat id
name - chat name (if any)
picture - chat picture (if any)
lastMessage - last message in the chat (if any).
_chat - the structure depends on engine you're using

⚠ lastMessage doesn't have media attachments, you need to [get message by id]({{< relref "#get-message-by-id" >}}) to get media attachments.
[
  {
    "id"<EMAIL_ADDRESS>    "name": "John Doe",
    "picture": "https://example.com/picture.jpg",
    "lastMessage": {
      "id"<EMAIL_ADDRESS>      "timestamp":<PHONE_NUMBER>,
      "from"<EMAIL_ADDRESS>      "fromMe": true,
      "to"<EMAIL_ADDRESS>      "body": "Hi there!",
      ...
    },
    "_chat": {
      ...
    }
  }
]

Pagination:

limit=100 - limit the number of chats to return
offset=0 - skip the number of chats from the start


Add task trace support

Summary
This PR adds the features used for task trace.
The task trace is available by using feature/task-tracer branch in the following repository.
https://github.com/YuuichiNakamura/incubator-nuttx-apps.git
(I'll send PR for apps after merging this PR)

This is created to merge #1377 into the master branch.
The document for this feature will be created later (issue #1882)

Impact

New kernel configurations are added
CONFIG_SCHED_INSTRUMENTATION_FILTER,
CONFIG_SCHED_INSTRUMENTATION_FILTER_DEFAULT_MODE,
CONFIG_DRIVER_NOTECTL,
CONFIG_DRIVER_NOTERAM_NOOVERWRITE
The following features are added when the corresponding configuration is enabled.

note filter support
/dev/notectl device to control note filters
/dev/note ioctls to clear buffer and change buffering mode for task trace

Testing
Tested by using feature/task-tracer branch in the following repository.
https://github.com/YuuichiNakamura/incubator-nuttx-apps.git
Tested by spresense:nsh by changing the following configurations.
CONFIG_DRIVER_NOTE=y
CONFIG_DRIVER_NOTERAM=y
CONFIG_DRIVER_NOTECTL=y
CONFIG_SCHED_INSTRUMENTATION=y
CONFIG_SCHED_INSTRUMENTATION_FILTER=y
CONFIG_SCHED_INSTRUMENTATION_IRQHANDLER=y
CONFIG_SCHED_INSTRUMENTATION_SYSCALL=y

trace command is added to nsh by this configuration.
nsh> trace cmd "usleep 1000"
nsh> trace dump

This can get the following results:
<noname>-1   [0]   7.640000000: sys_ioctl -> 0
<noname>-1   [0]   7.640000000: sys_close()
<noname>-1   [0]   7.640000000: sys_close -> 0
<noname>-1   [0]   7.640000000: sys_sched_lock()
<noname>-1   [0]   7.640000000: sys_sched_lock -> 0
<noname>-1   [0]   7.640000000: sys_nxsched_get_stackinfo()
<noname>-1   [0]   7.640000000: sys_nxsched_get_stackinfo -> 0
<noname>-1   [0]   7.640000000: sys_sched_unlock()
<noname>-1   [0]   7.640000000: sys_sched_unlock -> 0
<noname>-1   [0]   7.640000000: sys_clock_nanosleep()
<noname>-1   [0]   7.640000000: sched_switch: prev_comm=<noname> prev_pid=1 prev_state=S ==> next_comm=<noname> next_pid=0
<noname>-0   [0]   7.640000000: irq_handler_entry: irq=11
<noname>-0   [0]   7.640000000: irq_handler_exit: irq=11
<noname>-0   [0]   7.640000000: irq_handler_entry: irq=15
<noname>-0   [0]   7.650000000: irq_handler_exit: irq=15
<noname>-0   [0]   7.650000000: irq_handler_entry: irq=15
<noname>-0   [0]   7.660000000: sched_waking: comm=<noname> pid=1 target_cpu=0
<noname>-1   [0]   7.660000000: irq_handler_exit: irq=15
<noname>-1   [0]   7.660000000: sched_switch: prev_comm=<noname> prev_pid=1 prev_state=R ==> next_comm=<noname> next_pid=1
<noname>-1   [0]   7.660000000: sys_clock_nanosleep -> 0

LGTM


In nested menu allow action on nested sub menu parent

In a given context menu:
item 1
item 2 > sub-item 2.1
         sub-item 2.2

it is possible to attach actions only to items: item 1, sub-item 2.1, sub-item 2.2
It should be possible to attach action also on "item 2" (which is a parent to nested submenu with "sub-item 2.1" and "sub-item 2.2")
PS
Thanks for your work!

hi @krzysieki what is your use case for this? Just curious. Because normally if you have a sub-menu, the purpose of the parent is only to display that sub-menu.

Please consider scenarios:
example 1.
We have items and categories in our system. Categories can contain sub-categories (tree structure). Now in UI there is a function to attach a category to an item. Function can be achieved via context menu: right click on item -> list of categories in context menu -> now we can choose one of categories (even if it has children) or subcategories.
example 2.
We have files and folders. Folders are structured in tree. And there is a function to move files between folders. Right click on file -> context menu "move to >" ->  now we have list of destination folders, but some of them can contain subfolders.
I know that described scenarios are not perfect UI/UX solutions but believe me that these are real use cases :)

This feature will be usefull for me too

Due to the current structure of the code, this doesn't seem to be easily possible since item[1] is already used to contain the children and therefore cannot also contain the function. I'm planning on doing some changes to allow this to happen. Will keep you posted

@krzysieki @muzuro this should be fixed as of 5e03256d40c7af4eed50eea5014143dcfb45f246
Just specify both click and children for the new object-based implementation.


ActiveShipping::Error inherit from StandardError vs. ActiveUtilsError, introduce RequestError

Motivation
Following the discussion in https://github.com/Shopify/active_shipping/pull/395, it was deemed convenient to introduce an ActiveShipping::RequestError to be raised when an input is invalid before a request is made to an external 3rd party.
It was also brought up that ActiveShipping::Error inherits from ActiveUtils::ActiveUtilsError which is an alias for HttpRequestError (https://github.com/Shopify/active_shipping/pull/395#discussion_r75489692). Since some of active_shipping raises ActiveShipping::Error irregardless of the actual HttpRequest, it would make more sense if ActiveShipping::Error inherited from StandardError instead.
This change may break rescue implementations of ActiveShipping::Error, so we should probably do a major version bump.
Review: @kmcphillips @mdking @thegedge

Probably won't be able to push this out before I leave.
Feel free to take this 👍

Closing old PRs that are not going to ship.


Scrapy stuck when page not response

Scrapy stuck when page not response, can I give a timeout for page?
...
2018-01-22 09:27:09 [scrapy.extensions.logstats] INFO: Crawled 183 pages (at 42 pages/min), scraped 183 items (at 42 items/min)
2018-01-22 09:27:09 [rotating_proxies.middlewares] INFO: Proxies(good: 0, dead: 2, unchecked: 0, reanimated: 3, mean backoff time: 76s)
2018-01-22 09:27:39 [rotating_proxies.middlewares] INFO: Proxies(good: 1, dead: 4, unchecked: 0, reanimated: 0, mean backoff time: 159s)
2018-01-22 09:28:09 [scrapy.extensions.logstats] INFO: Crawled 196 pages (at 13 pages/min), scraped 196 items (at 13 items/min)
2018-01-22 09:28:09 [rotating_proxies.middlewares] INFO: Proxies(good: 1, dead: 3, unchecked: 0, reanimated: 1, mean backoff time: 199s)
2018-01-22 09:28:39 [rotating_proxies.middlewares] INFO: Proxies(good: 1, dead: 3, unchecked: 0, reanimated: 1, mean backoff time: 199s)
2018-01-22 09:29:09 [scrapy.extensions.logstats] INFO: Crawled 196 pages (at 0 pages/min), scraped 196 items (at 0 items/min)
2018-01-22 09:29:09 [rotating_proxies.middlewares] INFO: Proxies(good: 1, dead: 2, unchecked: 0, reanimated: 2, mean backoff time: 242s)
It's wait more than 5 minutes to try first retry

I run into the same problem. When using a proxy the default timeout (of 180 seconds) is used.
You can adjust this with download_timeout or via its setting

To explain this: You are running out of proxies. The middleware has default delay of 180 seconds which means it will use proxy A only once every 3 minutes. In your case all of your proxies are still waiting to cool down thus crawler has no proxies/slots and is waiting.

I have this problem too. But in my case the i saw that still have unchecked proxies.

I guess issue #33 's suggested fix fixed it for me. In line 123 of middlewares.py, I replaced if 'proxy' in request.meta and not request.meta.get('_rotating_proxy'):  with if 'proxy' in request.meta:. I guess this worked for me, but I don't know with absolute surety.


Allow serving registry as a background process

a non blocking hauler store serve would be useful for many reasons, solve this with 2 options:

[ ] copy/pastable systemd unit file example
[ ] daemon flag to cli: hauler store serve -d

Possibly still relevant? Ensure registry and file server are services. @amartin120


refactor(ALC): add assembly extension method GetUniqueName

Is there an existing issue for this?

[X] I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.
No response
Describe the solution you'd like
add assembly extension method GetUniqueName
Additional context
No response

link issue #3280


AttributeError: module 'numba' has no attribute 'targets'

Trying to use numba engine for pandas rolling.apply and I keep getting the following error:
    138             raise AttributeError(
    139                 f"module {__name__!r} has no attribute {attr!r}",
--> 140             ) from None
    141         else:
    142             errors.deprecate_moved_module(submodule_name, new_name)

AttributeError: module 'numba' has no attribute 'targets'

This was the code that I executed.
def f(x):
    return np.sum(x)

s = s.groupby("customer_id", as_index=False).rolling("7D", closed="left", on="time").apply(f, engine="numba", raw=True)

Would really appreciate some help as I really want to use numba to speed up the rolling summation. Thank you!

Thanks for the report. I think you've got a Numba that's too new for your Pandas installation? I think these would likely work:

Numba <= 0.48 with Pandas <= 1.0.3
Numba >= 0.49 with Pandas >= 1.0.4

Thank you it works! @stuartarchibald

@ballchuuu thanks for following up!


CUDA LRU allocator runs OOM before freeing cache.

Observation: CUDA is using LRU allocator but free does not kick in and total memory gets exhausted(pycuda._driver.MemoryError: cuMemAlloc failed: out of memory), even when mem_used is very low.
Few observation:

Initializer :  CUDAAlloc = CUDAAllocator(pycuda.driver.Context.get_device().total_memory())

But checking free and total memory, even before any gpu use, total is not same as free.
free, total = cuda.mem_get_info()
So maybe change it to: CUDAAlloc = CUDAAllocator(cuda.mem_get_info()[0])

Code kicks in free only when current allocation will result in negative memory, which does not happen as maths to keep track of this is deterministic in code, but actual GPU allocations are >= requested bytes in parameter of mem_alloc()

class CUDAAllocator(LRUAllocator):
    def __init__(self, dev_memsz):
      super().__init__(dev_memsz)
      free, total = cuda.mem_get_info()
      assert free < total
      self.sizes = 0
      self.total = dev_memsz

def _do_alloc(self, size, dtype, device, **kwargs):
      actual_rem = cuda.mem_get_info()[0]
      self.sizes += size * dtype.itemsize
      print(f'alloc {self.sizes} of {self.total} remaining {self.total - self.sizes}')
      a = cuda.mem_alloc(size * dtype.itemsize)  # type: ignore
      actual_rem = cuda.mem_get_info()[0]
      assert actual_rem == self.total - self.sizes, f'alloc {actual_rem}, {self.total}, {self.sizes}'       #FAILS
      return a

CUDAAlloc = CUDAAllocator(cuda.mem_get_info()[0])

This assert fails after first allocation.
I have observed it on 1x RTX A5000 on vast.ai cloud.

pycuda also has memory pool in api https://documen.tician.de/pycuda/util.html#device-based-memory-pool, can be used directly as allocator.

Send a pull request: https://github.com/tinygrad/tinygrad/pull/2197


update golangci-lint

Codecov Report

Merging #292 (dcbd962) into main (1e1e10b) will decrease coverage by 0.02%.
The diff coverage is 91.17%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##             main     #292      +/-   ##
==========================================
- Coverage   85.93%   85.92%   -0.02%
==========================================
  Files          97       97
  Lines        9768     9766       -2
==========================================
- Hits         8394     8391       -3
- Misses       1078     1079       +1
  Partials      296      296

Impacted Files
Coverage Δ

pkg/formats/mpeg4_audio_generic.go
94.95% <ø> (ø)

pkg/formats/mpeg4_audio_latm.go
86.20% <ø> (ø)

pkg/formats/mpeg4_video_es.go
100.00% <ø> (ø)

server_session_media.go
93.68% <0.00%> (ø)

client.go
72.87% <50.00%> (-0.08%)
:arrow_down:

client_media.go
88.16% <75.00%> (ø)

client_udp_listener.go
77.95% <100.00%> (ø)

pkg/formats/av1.go
100.00% <100.00%> (ø)

pkg/formats/g711.go
100.00% <100.00%> (ø)

pkg/formats/g722.go
100.00% <100.00%> (ø)

... and 15 more

... and 1 file with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


window is not defined in Vue

I can't get the plugin to work. I imported vue-html2pdf in my vue component:
import VueHtml2pdf from 'vue-html2pdf
I registered it in my component's components list:
components: {     VueHtml2pdf   },
Here's my methods:
methods: {     generatePDF () {       if (process.browser) {         this.$refs.html2Pdf.generatePdf()       }     }   }
Here's my template:
<template>
  <v-container>
    <client-only>
      <v-btn class="mt-5" @click="generatePDF">
        Télécharger le catalogue
      </v-btn>
    </client-only>

    <client-only>
      <vue-html2pdf
        ref="html2Pdf"
        :enable-download="true"
        filename="hee hee"
        :manual-pagination="false"
      >
        <section slot="pdf-content">
          <!-- PDF Content Here -->
        </section>
      </vue-html2pdf>
    </client-only>
  </v-container>
</template>

but I get this error: 'window is not defined'.
What am I missing here please ? One answer to this could save my job...
Here's a screenshot:

Package Version
"vue-html2pdf": "^1.8.0",

id guess you are using nuxt?
this is a sample project of using vue-html2pdf in nuxt:
https://github.com/kempsteven/nuxt-tester

I had the same issue and it is with the implementation with Nuxt. Above example by @kempsteven is the solution which is by using "client-mode".

If anyone came here looking for a solution for NuxtV3, I was able to use the base package html2pdf directly by defining a custom plugin. I have explained my answer here.
Hope it helps!


Run-ALCops uses wrong CodeAnalysis dll path, breaking all pipelines

Describe the issue
Run-ALCops contains the wrong path to the Microsoft.Dynamics.NAV.CodeAnalysis.dll when running a 24.x container.
This breaks all of our pipelines.
Add-Type -Path "C:\build\vsix\extension\bin\Microsoft.Dynamics.Nav.CodeAnalysis.dll" | Out-Null
Keeping it short.

Fixed locally like this:
$codeAnalysisDllPath = (Get-ChildItem -Path "C:\build\vsix\extension\bin\" -Filter "Microsoft.Dynamics.Nav.CodeAnalysis.dll" -Recurse | Select-Object -First 1).FullName;
Add-Type -Path $codeAnalysisDllPath | Out-Null;

What version of BcContainerHelper are you using here?

Found it - sorry.


Bounds error panic in Buffer::set_stringn with trailing 0-width unicode graphemes

The following program panics:
use tui::{buffer::Buffer, layout::Rect, style::Style};

fn main() {
    let bug_exhibitor = " \u{1}"; // grapheme widths: 1 (' ') and 0 ('^A')
    let area = Rect { x: 0, y: 0, width: 1, height: 1 };
    let mut buffer = Buffer::empty(area);
    buffer.set_stringn(0, 0, bug_exhibitor, 1, Style::default());
}

In particular:
    Finished dev [unoptimized + debuginfo] target(s) in 0.06s
     Running `target/debug/sandbox`
thread 'main' panicked at 'index out of bounds: the len is 1 but the index is 1', /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/slice/mod.rs:2797:14
stack backtrace:
   0:     0x560719206c64 - backtrace::backtrace::libunwind::trace::h90669f559fb267f0
                               at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
   1:     0x560719206c64 - backtrace::backtrace::trace_unsynchronized::hffde4e353d8f2f9a
                               at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
   2:     0x560719206c64 - std::sys_common::backtrace::_print_fmt::heaf44068b7eaaa6a
                               at src/libstd/sys_common/backtrace.rs:77
   3:     0x560719206c64 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h88671019cf081de2
                               at src/libstd/sys_common/backtrace.rs:59
   4:     0x56071921d52c - core::fmt::write::h4e6a29ee6319c9fd
                               at src/libcore/fmt/mod.rs:1052
   5:     0x560719205527 - std::io::Write::write_fmt::hf06b1c86d898d7d6
                               at src/libstd/io/mod.rs:1426
   6:     0x560719208cc5 - std::sys_common::backtrace::_print::h404ff5f2b50cae09
                               at src/libstd/sys_common/backtrace.rs:62
   7:     0x560719208cc5 - std::sys_common::backtrace::print::hcc4377f1f882322e
                               at src/libstd/sys_common/backtrace.rs:49
   8:     0x560719208cc5 - std::panicking::default_hook::{{closure}}::hc172eff6f35b7f39
                               at src/libstd/panicking.rs:204
   9:     0x5607192089b1 - std::panicking::default_hook::h7a68887d113f8029
                               at src/libstd/panicking.rs:224
  10:     0x56071920927a - std::panicking::rust_panic_with_hook::hb7ad5693188bdb00
                               at src/libstd/panicking.rs:472
  11:     0x560719208e60 - rust_begin_unwind
                               at src/libstd/panicking.rs:380
  12:     0x56071921c9f1 - core::panicking::panic_fmt::hb1f3e14b86a3520c
                               at src/libcore/panicking.rs:85
  13:     0x56071921c9b5 - core::panicking::panic_bounds_check::h09b793daa6d169ff
                               at src/libcore/panicking.rs:63
  14:     0x5607191f42c7 - <usize as core::slice::SliceIndex<[T]>>::index_mut::hcf11f5fa550ff5a9
                               at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/slice/mod.rs:2797
  15:     0x5607191f06f8 - core::slice::<impl core::ops::index::IndexMut<I> for [T]>::index_mut::h7fa2dcbf0345bc9c
                               at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/slice/mod.rs:2667
  16:     0x5607191f3dfb - <alloc::vec::Vec<T> as core::ops::index::IndexMut<I>>::index_mut::h26fb87fbf9019658
                               at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/liballoc/vec.rs:1895
  17:     0x5607191f1293 - tui::buffer::Buffer::set_stringn::h505c8996e2f56ac5
                               at /home/jonas/.cargo/registry/src/github.com-1ecc6299db9ec823/tui-0.9.1/src/buffer.rs:331
  18:     0x5607191f054e - sandbox::main::h0540c5fa116adc70
                               at src/sandbox.rs:7
  19:     0x5607191f0480 - std::rt::lang_start::{{closure}}::hce1bd3b6693bbb74
                               at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/rt.rs:67
  20:     0x560719208d93 - std::rt::lang_start_internal::{{closure}}::hb26e39676675046f
                               at src/libstd/rt.rs:52
  21:     0x560719208d93 - std::panicking::try::do_call::he4701ab6e48d80c0
                               at src/libstd/panicking.rs:305
  22:     0x56071920a4f7 - __rust_maybe_catch_panic
                               at src/libpanic_unwind/lib.rs:86
  23:     0x560719209720 - std::panicking::try::hd3de25f3cb7024b8
                               at src/libstd/panicking.rs:281
  24:     0x560719209720 - std::panic::catch_unwind::h86c02743a24e3d92
                               at src/libstd/panic.rs:394
  25:     0x560719209720 - std::rt::lang_start_internal::h9cf8802361ad86c2
                               at src/libstd/rt.rs:51
  26:     0x5607191f0459 - std::rt::lang_start::h85b998b54eced48f
                               at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/rt.rs:67
  27:     0x5607191f05aa - main
  28:     0x7ff18be0fb97 - __libc_start_main
  29:     0x5607191f023a - _start
  30:                0x0 - <unknown>

I expect this program to not panic. In particular, I expect buffer to contain a single Cell with the space character in the default style. More generally, if the string starts with zero or more 0-width graphemes followed by a 1-width grapheme followed by whatever, I expect the single Cell to contain the first width-1 grapheme, otherwise I expect it to contain the default character (space).
The exact set_stringn I found in ~/.cargo/registry/src/github.com-1ecc6299db9ec823/tui-0.9.1/src/buffer.rs looks like this:
    /// Print at most the first n characters of a string if enough space is available
    /// until the end of the line
    pub fn set_stringn<S>(
        &mut self,
        x: u16,
        y: u16,
        string: S,
        width: usize,
        style: Style,
    ) -> (u16, u16)
    where
        S: AsRef<str>,
    {
        let mut index = self.index_of(x, y);
        let mut x_offset = x as usize;
        let graphemes = UnicodeSegmentation::graphemes(string.as_ref(), true);
        let max_offset = min(self.area.right() as usize, width.saturating_add(x as usize));
        for s in graphemes {
            let width = s.width();
            // `x_offset + width > max_offset` could be integer overflow on 32-bit machines if we
            // change dimenstions to usize or u32 and someone resizes the terminal to 1x2^32.
            if width > max_offset.saturating_sub(x_offset) {
                break;
            }

            self.content[index].set_symbol(s);
            self.content[index].set_style(style);
            // Reset following cells if multi-width (they would be hidden by the grapheme),
            for i in index + 1..index + width {
                self.content[i].reset();
            }
            index += width;
            x_offset += width;
        }
        (x_offset as u16, y)
    }

I suspect that changing if width > max_offset.saturating_sub(x_offset) to if width >= max_offset.saturating_sub(x_offset) (gt-or-eq vs. gt) will fix this issue, but I haven't tried it. A cursory reading of the code maps this check to a generic i > n which should be either i >= n or (equivalently) !(i < n), except transformed a bit to avoid overflow bugs. I think.
I found this while property-testing my app. I continue to be amazed at the ability of property testing to not only find bugs, but to find bugs I'm not even looking for. Also, thanks for writing tui—I've been consistently pleased with it.

I am happy that you enjoyed working with this crate so far and thanks for reporting this bug with all those details. I might have a fix here: #285. Let me know what you think.


Refactor to reduce code duplication

The "pipeline" of parsing tokens and such before drawing is defined multiple times. It should instead be on defined in one place (function?) and reused throughout the module.

did a lot but most importantly move the string parse inside the _process_fancy_string so all the adjustments should be standard. There is still a lot to go through but this helps a lot already


chore(Litmus Portal) : Teamming UI screens and other Fixes

Signed-off-by: Saranya-jena<EMAIL_ADDRESS>
Proposed changes
This PR contains:

Added loader to welcome modal so that it won't pop up every time the homepage is rendered.
Added UI screens for Teaming tab
Refactored code for user management table and added pagination to the tables

Summarize your changes here to communicate with the maintainers and make sure to put the link of that issue
This PR fixes #1937 and #1938
Types of changes
What types of changes does your code introduce to Litmus? Put an x in the boxes that apply

[x] New feature (non-breaking change which adds functionality)
[x] Bugfix (non-breaking change which fixes an issue)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Update (if none of the other choices applies)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[x] I have read the CONTRIBUTING doc
[x] I have signed the commit for DCO to be passed.
[x] Lint and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works (if appropriate)
[ ] I have added necessary documentation (if appropriate)

Dependency

Please add the links to the dependent PR need to be merged before this (if any).

Special notes for your reviewer:

/run-unit

/preview 15

Welcome modal is coming again on reloads @Saranya-jena

/preview 10

/preview 15

Welcome modal is coming again on reloads @Saranya-jena

@arkajyotiMukherjee we tried to debug this, its because the backend changes required to go in before this PR is not yet merged, the gql schema has been changed in the frontend with this PR but the backend hasn't been updated we can't test this PR even with betterCI till PR #1982 is merged. cc: @rajdas98 @Saranya-jena @amityt @Sanjay1611

/preview 15

@Saranya-jena Can you resolve the merge conflict?

/preview 10

/preview 20

/preview 20

/preview 20


[Task]:  Add cypress test for #29373

Is there an existing issue for this?

[X] I have searched the existing issues

SubTasks
Add cypress test for issue: https://github.com/appsmithorg/appsmith/issues/29373

We have ample amount of tests with respect to import export and datasource configuration in CE, but since this issue was very specific to EE, we could have known about it in CE test suite run. I will be adding a thread to team-tech as to how we can identify such EE specific issues before merging the CE PR itself.


[6.x] Add Aircraft To List of Uncountable Words?

Add "aircraft" to the list of words that are uncountable.

Argh, this is one of the edge cases where the word is technically countable but really doesn't look it, so this might be a problem with Inflector itself. Will close this.

Aircraft are countable. Being countable is not related to how it is pluralised. :)

Doctrine need to fix their pluraliser.

Jedi, Pokemon

Kinda odd that they appear. They are countable?

TBH, a lot of these so called uncountable words are countable?

Yeah a lot of them are, I thought it was a bit odd - which is why I opened this just incase it was something you wanted to handle here. Happy to take it to Doctrine if that's where it should be!

Having dug a bit further, @GrahamCampbell - it looks like Doctrine have fixed the Inflector on master so this issue will resolve itself when that's released, so happy for this to be closed, or I'm happy to change this into a "remove the countable words", if you would like :)

It looks like we could allow v2 of the library due to https://github.com/doctrine/inflector/pull/132.

Although the other doctrine dependencies we have could block the install of v2.

Beside all discussions, wouldn't that break existing applications that rely currently on the pluralization of the word?
In my opinion this change should be done in a major version.

Wouldn't the vast majority of consumers who have Laravel packages as part of their applications already have Inflector locked via Composer? So if Laravel specified a version of "^1.3 | ^2.0" (given the BC wrapper from the API perspective), at least in the first instance,  it would then be down to the consumers to upgrade and shouldn't cause any BC-breaks?

@AndyTWF if any other dependency you are using only specifies ^1.3 it would still install 1.x. It would however allow the ecosystem to upgrade and migrate to the new API once 1.3 is no longer supported.
I'll see if I can back port the changes from 2.0 into 1.x to fix this issue. I'm not sure when I'll have the time to wrap up inflector 2.0 as we're still missing a crucial feature (custom rules).

Amazing, thank you @alcaeus :)

If we make any change here we would definitely have to do it on 7.x branch because it would affect how Eloquent model table names are guessed etc and there could be applications out there with Aircraft models.

@taylorotwell just for clarification so I don't break your stuff, would changing the Pluralizer in doctrine/inflector from aircrafts to aircraft cause similar problems?


Anyway change the output verbose of libcurl?

I'd like to capture the output of verbose into a variable within ruby.
Is this possible?
I see that the docs say:

Just remember that libcurl prints its debug output to the console (to STDERR), so you’ll need to run your scripts from the console to see it.

I figured out how to grab the debug messages to get the logs!


TypeError: txaio.resolve() takes exactly 2 arguments (1 given)

I'm getting this error when trying to unregister an endpoint. Using Python 2.7.10, Autobahn 0.10.5, Trollius 2.0. It's coming from this line.
Here is the code I used to reproduce it (running against a crossbar router with default settings):
import trollius as asyncio
from trollius import From
from autobahn.asyncio.wamp import ApplicationSession, ApplicationRunner

class MyComponent(ApplicationSession):
    @asyncio.coroutine
    def onJoin(self, details):
        print("session joined")
        def test():
            print("testing")
        registration = yield From(self.register(test, u'app.test'))
        print("registered {} {}".format(registration.procedure, registration.id))
        yield From(asyncio.sleep(1))
        res = yield From(registration.unregister())
        print("unregistered")

if __name__ == '__main__':
    runner = ApplicationRunner(url=u"ws://<IP_ADDRESS>:8080/ws", realm=u"realm1", debug_wamp=True)
    runner.run(MyComponent)

Is this a bug in Autobahn or something I'm doing wrong?

It's actually a bug in txaio, which is missing a default parameter for resolve() in the asyncio implementation; once https://github.com/tavendo/txaio/pull/6 is merged we can update the dependencies in Autobahn which should fix this.


Cannot deserialize a LND macaroon admin.macaroon file

Hello,
I'm trying to use your library inside an Elixir project to deserialize a LND macaroon admin.macaroon file.
I'm using this code inside the REPL:
{:ok, file} = File.read "admin.macaroon"
encoded = Base.encode64(file)
{:ok, mac} = :macaroon.deserialize(encoded)

which will give me the error:
** (MatchError) no match of right hand side value: {:error, :macaroon_invalid}

Testing the same file with pythons pymacaroons works, so it seems a specific deserialization problem with the library.
Since I cannot paste here the binary data from admin.macaroon I will post a link to the file directly and also the base64 with it:
admin.macaroon
AgEDbG5kArsBAwoQ5TMSJjie992RIEsCGCuq5xIBMBoWCgdhZGRyZXNzEgRyZWFkEgV3cml0ZRoTCgRpbmZvEgRyZWFkEgV3cml0ZRoXCghpbnZvaWNlcxIEcmVhZBIFd3JpdGUaFgoHbWVzc2FnZRIEcmVhZBIFd3JpdGUaFwoIb2ZmY2hhaW4SBHJlYWQSBXdyaXRlGhYKB29uY2hhaW4SBHJlYWQSBXdyaXRlGhQKBXBlZXJzEgRyZWFkEgV3cml0ZQAABiBoyNHs3jlsGlXIZEV8HtJuIiCh+vA56AFg9poHdCG6zA==

Thanks for the report, I'll look into it shortly

@sezaru can you try branch v2-serialization?

Very nice! It works like a charm with the v2-serialization.


https://cecytezac.edu.mx/

official URL: https://cecytezac.edu.mx/
programming career URL: https://cecytezac.edu.mx/carrera.php?cual=7

@jmanem282 First stage of verification passed, official domain is cecytezac.edu.mx as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@jmanem282 Pull request merged. Thank you!


How can I use terraform test for local development flow?

Is it possible to use Terraform Test in a local development flow?

Yes. By using terraform init --backend=false.


[Gally]: master <- dev

Automatically created by Git-Ally

:tada: This PR is included in version 2.5.4 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


There seems to be something wrong here

There seems to be something wrong here
 hex_payload_length = hex(len(payload) - 4)[2:]
    payload = payload.hex().replace('000000cd000000','000000' + hex_payload_length + '000000')
    payload = bytes.fromhex(payload)

when: cmd len: 184
hex(len(payload) - 4) = 14e
[2:] = e

In [1]: payload='a'*184

In [2]: hex(len(payload) - 4)[2:]
Out[2]: 'b4'

In [3]: hex(len(payload) - 4)
Out[3]: '0xb4'

I guess you should running on python3


DSEGOG-51 DSEGOG-55 DSEGOG-60 DSEGOG-63 DSEGOG-66 Initial plotting

Description
This either partially tackles or completely implements all the issues mentioned in the title. This uses react-chartjs-2 and thus chart.js as the underlying chart library as when I examined it it seemed to support all the features we needed. For this initial PR, I have added the chart itself, the config menu (this is a WIP based on the balsamiq wireframes - most notably the hours, points, min and max boxes control nothing right now) and a "window" that holds both the plot and the settings menu in a collapsable drawer.
I have just made a basic ConnectedPlot component to pass the timestamp and shot numbers from the test data to the plot, but this area of the code will likely change in the future as there's all the channel selection stuff so don't examine that too closely!
I haven't added any e2e tests yet as the only real thing that needs e2e testing is the graph itself (as we can't test this in jest). We can use image snapshot testing using a library like https://github.com/jaredpalmer/cypress-image-snapshot to test the graphs look like we expect, but first we need to be able to pass stable test data to cypress as otherwise it will always fail 😅
Testing instructions
Add a set up instructions describing how the reviewer should test the code

[ ] Review code
[ ] Check Actions build
[ ] Review changes to test coverage
[ ] Play about with the plotting tab & settings controls

Agile board tracking
Closes DSEGOG-60, DSEGOG-66, DSEGOG-55
Partially addresses DSEGOG-63 (logic for selecting X axis scale when it's not time is not there yet as this PR just assumes X is time),  DSEGOG-51 (we can't select different channels for the Y axes yet - I figured adding channel selection for both X & Y axes made sense in a separate PR), tiny bit of DSEGOG-67 (configurable title)

Might just be me but I found I always needed to scroll down to see the x-axis in full-screen view of the plot. Even when zooming out from 100%. Could this be changed?

Might just be me but I found I always needed to scroll down to see the x-axis in full-screen view of the plot. Even when zooming out from 100%. Could this be changed?

Plots will eventually be in new windows anyway - so I deliberately didn't put too much styling/sizing stuff into this PR as it's just a temporary measure having it in the main window

Just out of curiosity, how are the data points in this demo in the line graph connected? I'm completely confused as to how, for example, shotnum 527 on Jan 5 2024 is connected to shotnum 921, Jan 19 2024

I might argue that DSEGOG -55 won't be closed in its entirety as some parts of the plotSettings have yet to be implemented. I'm also aware of what Jira will automatically close when this PR is merged since it mentions so many issues and that's enough to move them to done when PR is merged (so either manually move them back on the sprint board or change their reference to include a space in their name as I think that also does the trick)
Alternatively, we can make new issues for the things remaining, such as hooking up the min and max fields

Just out of curiosity, how are the data points in this demo in the line graph connected? I'm completely confused as to how, for example, shotnum 527 on Jan 5 2024 is connected to shotnum 921, Jan 19 2024

I presume they're connected in the order they're passed to the chart in - in practice this means we'll need to specify that we want to order the results back from the API in X axis order ascending

@sam-glendenning I agree - I'll sort out the JIRA to ensure the correct issues are marked as done vs in progress & add an issue to the board to refactor useRecords with plots once your PR gets merged


Add fixed width option to scale bar

Tried the scale bar and it works and looks great. It would be nicer though if you could define a fixed horizontal size for the Scale Bar so that it doesn't constantly resize itself. The auto resize sometimes takes up half the screen.
Thanks

@englezakis Thanks for reporting this. I want to confirm the fixed horizontal size, is it mean the width of scale bar is fixed and never change?  If it is, that means we have to change the up distance number according to current zoom level and scale bar size, so the number may be something like 253km, which may not tidy.
If you think the size takes up half the screen troubles you, we can change the distance array defined in codes to make it shorter. Does it make sense to you?

Yes, you understood my thoughts exactly. The problem is an aesthetic one, noticeable when working on tablets in landscape.

However, you are right, having an arbitrary number like 253km may not be tidy. So I think the best solution is what you suggest. Add an option to make the scale bar overall shorter, re-sizable still, and displaying only integer numbers.

Thanks guys I'll try the new feature as soon as possible

Tried the new functionality. Works great. Thanks a million for the support.