Not working with Markdown blog

Hi. First of all, Thanks for the plugin.
I am getting errors with my markdown blog. Pages and components seem to be working perfectly (tested with sample). but not working with the markdown directory. It's giving me an error related to my file location.
{
"errorType": "Runtime.UnhandledPromiseRejection",
"errorMessage": "Error: ENOENT: no such file or directory, scandir '/var/task/contents/blog'",
"trace": [
"Runtime.UnhandledPromiseRejection: Error: ENOENT: no such file or directory, scandir '/var/task/contents/blog'",
"    at process.<anonymous> (/var/runtime/index.js:35:15)",
"    at process.emit (events.js:314:20)",
"    at processPromiseRejections (internal/process/promises.js:209:33)",
"    at processTicksAndRejections (internal/process/task_queues.js:98:32)"
]
}

Deploy Log
5:36:18 PM: Build ready to start
5:36:20 PM: build-image version: 53b83b6bede2920f236b25b6f5a95334320dc849
5:36:20 PM: build-image tag: v3.6.0
5:36:20 PM: buildbot version: 94ed42511c4e70547a960237db686b74875fef2d
5:36:20 PM: Fetching cached dependencies
5:36:20 PM: Starting to download cache of 275.3KB
5:36:20 PM: Finished downloading cache in 77.823649ms
5:36:20 PM: Starting to extract cache
5:36:20 PM: Finished extracting cache in 14.676215ms
5:36:20 PM: Finished fetching cache in 92.929933ms
5:36:20 PM: Starting to prepare the repo for build
5:36:21 PM: Preparing Git Reference refs/heads/main
5:36:23 PM: Starting build script
5:36:23 PM: Installing dependencies
5:36:23 PM: Python version set to 2.7
5:36:24 PM: v12.18.0 is already installed.
5:36:25 PM: Now using node v12.18.0 (npm v6.14.4)
5:36:25 PM: Started restoring cached build plugins
5:36:25 PM: Finished restoring cached build plugins
5:36:25 PM: Attempting ruby version 2.7.1, read from environment
5:36:27 PM: Using ruby version 2.7.1
5:36:27 PM: Using PHP version 5.6
5:36:27 PM: Started restoring cached node modules
5:36:27 PM: Finished restoring cached node modules
5:36:27 PM: Started restoring cached yarn cache
5:36:27 PM: Finished restoring cached yarn cache
5:36:27 PM: Installing yarn at version 1.22.4
5:36:27 PM: Installing Yarn!
5:36:27 PM: > Downloading tarball...
5:36:27 PM: [1/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz --> /tmp/yarn.tar.gz.OaqmPaAqag
5:36:27 PM:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
5:36:27 PM:                                  Dload  Upload   Total   Spent    Left  Speed
5:36:28 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
5:36:28 PM: 100    80  100    80    0     0    241      0 --:--:-- --:--:-- --:--:--   241
5:36:28 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
5:36:28 PM: 100    93  100    93    0     0    138      0 --:--:-- --:--:-- --:--:--  3444
5:36:28 PM: 100   643  100   643    0     0    620      0  0:00:01  0:00:01 --:--:--   620
5:36:29 PM: 100 1215k  100 1215k    0     0   802k      0  0:00:01  0:00:01 --:--:--  802k
5:36:29 PM: [2/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz.asc --> /tmp/yarn.tar.gz.OaqmPaAqag.asc
5:36:29 PM: 100    84  100    84    0     0   3073      0 --:--:-- --:--:-- --:--:--  3073
5:36:29 PM: 100    97  100    97    0     0   1764      0 --:--:-- --:--:-- --:--:--  1764
5:36:29 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
5:36:29 PM: 100   647  100   647    0     0   3829      0 --:--:-- --:--:-- --:--:--  631k
5:36:29 PM: 100  1028  100  1028    0     0   4923      0 --:--:-- --:--:-- --:--:--  4923
5:36:29 PM: > Verifying integrity...
5:36:29 PM: gpg: Signature made Mon 09 Mar 2020 03:52:13 PM UTC using RSA key ID 69475BAA
5:36:29 PM: gpg: Good signature from "Yarn Packaging<EMAIL_ADDRESS>5:36:29 PM: gpg: WARNING: This key is not certified with a trusted signature!
5:36:29 PM: gpg:          There is no indication that the signature belongs to the owner.
5:36:29 PM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907  BBB7 1646 B01B 86E5 0310
5:36:29 PM:      Subkey fingerprint: 6D98 490C 6F1A CDDD 448E  4595 4F77 6793 6947 5BAA
5:36:29 PM: > GPG signature looks good
5:36:29 PM: > Extracting to ~/.yarn...
5:36:29 PM: > Adding to $PATH...
5:36:30 PM: > Successfully installed Yarn 1.22.4! Please open another terminal where the `yarn` command will now be available.
5:36:30 PM: Installing NPM modules using Yarn version 1.22.4
5:36:30 PM: yarn install v1.22.4
5:36:30 PM: [1/4] Resolving packages...
5:36:31 PM: [2/4] Fetching packages...
5:36:42 PM: info<EMAIL_ADDRESS>The platform "linux" is incompatible with this module.
5:36:42 PM: info<EMAIL_ADDRESS>is an optional dependency and failed compatibility check. Excluding it from installation.
5:36:42 PM: info<EMAIL_ADDRESS>The platform "linux" is incompatible with this module.
5:36:42 PM: info<EMAIL_ADDRESS>is an optional dependency and failed compatibility check. Excluding it from installation.
5:36:42 PM: [3/4] Linking dependencies...
5:36:46 PM: [4/4] Building fresh packages...
5:36:50 PM: Done in 19.73s.
5:36:50 PM: NPM modules installed using Yarn
5:36:50 PM: Started restoring cached go cache
5:36:50 PM: Finished restoring cached go cache
5:36:50 PM: go version go1.14.4 linux/amd64
5:36:50 PM: go version go1.14.4 linux/amd64
5:36:50 PM: Installing missing commands
5:36:50 PM: Verify run directory
5:36:52 PM:
5:36:52 PM: ────────────────────────────────────────────────────────────────
5:36:52 PM:   Netlify Build
5:36:52 PM: ────────────────────────────────────────────────────────────────
5:36:52 PM:
5:36:52 PM: ❯ Version
5:36:52 PM:   @netlify/build 7.0.0
5:36:52 PM:
5:36:52 PM: ❯ Flags
5:36:52 PM:   deployId: 5fd5fcb20cd506b6ee26c0bc
5:36:52 PM:   mode: buildbot
5:36:52 PM:
5:36:52 PM: ❯ Current directory
5:36:52 PM:   /opt/build/repo
5:36:52 PM:
5:36:52 PM: ❯ Config file
5:36:52 PM:   No config file was defined: using default values.
5:36:52 PM:
5:36:52 PM: ❯ Context
5:36:52 PM:   production
5:36:52 PM:
5:36:52 PM: ❯ Installing plugins
5:36:52 PM:    -<EMAIL_ADDRESS>5:37:25 PM:
5:37:25 PM: ❯ Loading plugins
5:37:25 PM:    -<EMAIL_ADDRESS>from Netlify app
5:37:26 PM:
5:37:26 PM: ────────────────────────────────────────────────────────────────
5:37:26 PM:   1. onPreBuild command from @netlify/plugin-nextjs
5:37:26 PM: ────────────────────────────────────────────────────────────────
5:37:26 PM:
5:37:26 PM: ** Adding next.config.js with target set to 'serverless' **
5:37:26 PM:
5:37:26 PM: (@netlify/plugin-nextjs onPreBuild completed in 10ms)
5:37:26 PM:
5:37:26 PM: ────────────────────────────────────────────────────────────────
5:37:26 PM:   2. Build command from Netlify app
5:37:26 PM: ────────────────────────────────────────────────────────────────
5:37:26 PM:
5:37:26 PM: $ yarn build
5:37:26 PM: yarn run v1.22.4
5:37:26 PM: $ next build
5:37:27 PM: warn  - No build cache found. Please configure build caching for faster rebuilds. Read more: https://err.sh/next.js/no-cache
5:37:27 PM: info  - Creating an optimized production build...
5:37:51 PM: warn  - Compiled with warnings
5:37:51 PM: ./node_modules/next/dist/next-server/server/load-components.js
5:37:51 PM: Critical dependency: the request of a dependency is an expression
5:37:51 PM: ./node_modules/next/dist/next-server/server/load-components.js
5:37:51 PM: Critical dependency: the request of a dependency is an expression
5:37:51 PM: ./node_modules/next/dist/next-server/server/require.js
5:37:51 PM: Critical dependency: the request of a dependency is an expression
5:37:51 PM: ./node_modules/next/dist/next-server/server/require.js
5:37:51 PM: Critical dependency: the request of a dependency is an expression
5:37:51 PM: ./node_modules/next/dist/next-server/server/require.js
5:37:51 PM: Critical dependency: the request of a dependency is an expression
5:37:51 PM: ./node_modules/next/node_modules/node-fetch/lib/index.js
5:37:51 PM: Module not found: Can't resolve 'encoding' in '/opt/build/repo/node_modules/next/node_modules/node-fetch/lib'
5:37:51 PM: info  - Collecting page data...
5:37:52 PM: info  - Generating static pages (0/4)
5:37:53 PM: info  - Generating static pages (1/4)
5:37:53 PM: info  - Generating static pages (2/4)
5:37:53 PM: info  - Generating static pages (3/4)
5:37:53 PM: info  - Generating static pages (4/4)
5:37:53 PM: info  - Finalizing page optimization...
5:37:53 PM: Page                                Size     First Load JS
5:37:53 PM: ┌ ● / (ISR: 1 Seconds)              1.97 kB        64.3 kB
5:37:53 PM: ├   /_app                           0 B            62.3 kB
5:37:53 PM: ├ ○ /404                            3.01 kB        65.4 kB
5:37:53 PM: ├ λ /api/hello                      0 B            62.3 kB
5:37:53 PM: └ ● /blog/[id]                      1.94 kB        64.3 kB
5:37:53 PM:     ├ /blog/static-site-generation
5:37:53 PM:     └ /blog/test-post
5:37:53 PM: + First Load JS shared by all       62.3 kB
5:37:53 PM:   ├ chunks/commons.40559a.js        12.8 kB
5:37:53 PM:   ├ chunks/framework.ef157c.js      41.8 kB
5:37:53 PM:   ├ chunks/main.c60f4c.js           6.54 kB
5:37:53 PM:   ├ chunks/pages/_app.e774f4.js     526 B
5:37:53 PM:   ├ chunks/webpack.e06743.js        751 B
5:37:53 PM:   └ css/6fcf17ab8077bd559672.css    2.31 kB
5:37:53 PM: λ  (Lambda)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
5:37:53 PM: ○  (Static)  automatically rendered as static HTML (uses no initial props)
5:37:53 PM: ●  (SSG)     automatically generated as static HTML + JSON (uses getStaticProps)
5:37:53 PM:    (ISR)     incremental static regeneration (uses revalidate in getStaticProps)
5:37:53 PM: Done in 26.75s.
5:37:53 PM:
5:37:53 PM: (build.command completed in 27s)
5:37:53 PM:
5:37:53 PM: ────────────────────────────────────────────────────────────────
5:37:53 PM:   3. onBuild command from @netlify/plugin-nextjs
5:37:53 PM: ────────────────────────────────────────────────────────────────
5:37:53 PM:
5:37:53 PM: ** Running Next on Netlify package **
5:37:53 PM: 🚀 Next on Netlify 🚀
5:37:53 PM:    Functions directory:  netlify-automatic-functions
5:37:53 PM:    Publish directory:  /opt/build/repo
5:37:53 PM:    Make sure these are set in your netlify.toml file.
5:37:53 PM: 🌍 Copying public/ folder to /opt/build/repo
5:37:53 PM: 💼 Copying static NextJS assets to /opt/build/repo
5:37:53 PM: 💫 Setting up API endpoints as Netlify Functions in netlify-automatic-functions
5:37:53 PM: 💫 Setting up pages with getInitialProps as Netlify Functions in netlify-automatic-functions
5:37:53 PM: 💫 Setting up pages with getServerSideProps as Netlify Functions in netlify-automatic-functions
5:37:53 PM: 🔥 Copying pre-rendered pages with getStaticProps and JSON data to /opt/build/repo
5:37:53 PM: 💫 Setting up pages with getStaticProps and fallback: true as Netlify Functions in netlify-automatic-functions
5:37:53 PM: 💫 Setting up pages with getStaticProps and revalidation interval as Netlify Functions in netlify-automatic-functions
5:37:53 PM: 🔥 Copying pre-rendered pages without props to /opt/build/repo
5:37:53 PM: 🔀 Setting up redirects
5:37:53 PM:
5:37:53 PM: (@netlify/plugin-nextjs onBuild completed in 167ms)
5:37:53 PM:
5:37:53 PM: ────────────────────────────────────────────────────────────────
5:37:53 PM:   4. Functions bundling
5:37:53 PM: ────────────────────────────────────────────────────────────────
5:37:53 PM:
5:37:53 PM: Packaging Functions from netlify-automatic-functions directory:
5:37:53 PM:  - next_api_hello/next_api_hello.js
5:37:53 PM:  - next_blog_id/next_blog_id.js
5:37:53 PM:  - next_index/next_index.js
5:38:05 PM:
5:38:05 PM: (Functions bundling completed in 11.9s)
5:38:05 PM:
5:38:05 PM: ────────────────────────────────────────────────────────────────
5:38:05 PM:   Netlify Build Complete
5:38:05 PM: ────────────────────────────────────────────────────────────────
5:38:05 PM:
5:38:05 PM: (Netlify Build completed in 1m 12.9s)
5:38:05 PM: Caching artifacts
5:38:05 PM: Started saving node modules
5:38:05 PM: Finished saving node modules
5:38:05 PM: Started saving build plugins
5:38:05 PM: Finished saving build plugins
5:38:05 PM: Started saving yarn cache
5:38:05 PM: Finished saving yarn cache
5:38:05 PM: Started saving pip cache
5:38:06 PM: Finished saving pip cache
5:38:06 PM: Started saving emacs cask dependencies
5:38:06 PM: Finished saving emacs cask dependencies
5:38:06 PM: Started saving maven dependencies
5:38:06 PM: Finished saving maven dependencies
5:38:06 PM: Started saving boot dependencies
5:38:06 PM: Finished saving boot dependencies
5:38:06 PM: Started saving rust rustup cache
5:38:06 PM: Finished saving rust rustup cache
5:38:06 PM: Started saving rust cargo bin cache
5:38:06 PM: Finished saving rust cargo bin cache
5:38:06 PM: Started saving go dependencies
5:38:06 PM: Finished saving go dependencies
5:38:08 PM: Build script success
5:38:08 PM: Starting to deploy site from ''
5:38:08 PM: Creating deploy tree
5:38:09 PM: Creating deploy upload records
5:38:09 PM: 5 new files to upload
5:38:09 PM: 3 new functions to upload
5:38:10 PM: Starting post processing
5:38:12 PM: Post processing - HTML
5:38:12 PM: Post processing - header rules
5:38:12 PM: Post processing - redirect rules
5:38:12 PM: Post processing done
5:38:13 PM: Site is live ✨
5:38:34 PM: Finished processing build request in 2m14.274321422s

hey @MejanH thanks for opening this! happy to help. however, need a little bit more info from you. the fastest/easiest way for me to help you is for you to open a repo that reproduces this issue and that i can deploy myself. from the deploy logs you shared, i don't see a markdown dir under pages which means, wherever you have it, it's excluded from what next-on-netlify or next as a framework would handle. let me know!

Thanks for the reply. For the demo, I just followed the next.js learn pages.
The completed lesson repo
Next.js Learn Page

hey, i spent a bit of time trying to get typescript-final working on my machine. that repo seems somewhat broken. when you initially run next dev, you get an invalid date error. then next build fails trying to look for files ending in .md.html. because this doesn't even work locally for me, there's not much i can do.
also, i can tell from your logs in your original post that what you have deviates from typescript-final in at least some way. can you please open a repo with exactly what you tried to deploy to netlify?

Hi, I have created a repo as you said. tried with npm run build and next build as this official post says. Still the same error. It gets published successfully but not working.
My repo
7:50:06 PM: Build ready to start
7:50:08 PM: build-image version: 53b83b6bede2920f236b25b6f5a95334320dc849
7:50:08 PM: build-image tag: v3.6.0
7:50:08 PM: buildbot version: cdcf5e6d038c4a5c0bbc618d40b7eb21a2893d7d
7:50:08 PM: Building without cache
7:50:08 PM: Starting to prepare the repo for build
7:50:08 PM: No cached dependencies found. Cloning fresh repo
7:50:08 PM: git clone https://github.com/MejanH/nextjs-blog-incremental-static
7:50:09 PM: Preparing Git Reference refs/heads/main
7:50:11 PM: Starting build script
7:50:11 PM: Installing dependencies
7:50:11 PM: Python version set to 2.7
7:50:13 PM: v12.18.0 is already installed.
7:50:13 PM: Now using node v12.18.0 (npm v6.14.4)
7:50:13 PM: Started restoring cached build plugins
7:50:13 PM: Finished restoring cached build plugins
7:50:14 PM: Attempting ruby version 2.7.1, read from environment
7:50:16 PM: Using ruby version 2.7.1
7:50:16 PM: Using PHP version 5.6
7:50:16 PM: Started restoring cached node modules
7:50:16 PM: Finished restoring cached node modules
7:50:16 PM: Installing NPM modules using NPM version 6.14.4
7:50:32 PM: ><EMAIL_ADDRESS>install /opt/build/repo/node_modules/sharp
7:50:32 PM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
7:50:34 PM: info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.10.0/libvips-8.10.0-linux-x64.tar.br
7:50:37 PM: ><EMAIL_ADDRESS>postinstall /opt/build/repo/node_modules/@ampproject/toolbox-optimizer
7:50:37 PM: > node lib/warmup.js
7:50:38 PM: AMP OPTIMIZER Downloaded latest AMP runtime data.
7:50:38 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/watchpack-chokidar2/node_modules/fsevents):
7:50:38 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
7:50:38 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/fsevents):
7:50:38 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
7:50:38 PM: added 714 packages from 467 contributors and audited 716 packages in 20.898s
7:50:39 PM: 81 packages are looking for funding
7:50:39 PM:   run `npm fund` for details
7:50:39 PM: found 2 low severity vulnerabilities
7:50:39 PM:   run `npm audit fix` to fix them, or `npm audit` for details
7:50:39 PM: NPM modules installed
7:50:39 PM: Started restoring cached go cache
7:50:39 PM: Finished restoring cached go cache
7:50:39 PM: go version go1.14.4 linux/amd64
7:50:39 PM: go version go1.14.4 linux/amd64
7:50:39 PM: Installing missing commands
7:50:39 PM: Verify run directory
7:50:42 PM:
7:50:42 PM: ────────────────────────────────────────────────────────────────
7:50:42 PM:   Netlify Build
7:50:42 PM: ────────────────────────────────────────────────────────────────
7:50:42 PM:
7:50:42 PM: ❯ Version
7:50:42 PM:   @netlify/build 8.0.0
7:50:42 PM:
7:50:42 PM: ❯ Flags
7:50:42 PM:   deployId: 5fd8bf0e213e5d0054b2fb66
7:50:42 PM:   mode: buildbot
7:50:42 PM:
7:50:42 PM: ❯ Current directory
7:50:42 PM:   /opt/build/repo
7:50:42 PM:
7:50:42 PM: ❯ Config file
7:50:42 PM:   No config file was defined: using default values.
7:50:42 PM:
7:50:42 PM: ❯ Context
7:50:42 PM:   production
7:50:42 PM:
7:50:42 PM: ❯ Installing plugins
7:50:42 PM:    -<EMAIL_ADDRESS>7:51:21 PM:
7:51:21 PM: ❯ Loading plugins
7:51:21 PM:    -<EMAIL_ADDRESS>from Netlify app
7:51:22 PM:
7:51:22 PM: ────────────────────────────────────────────────────────────────
7:51:22 PM:   1. onPreBuild command from @netlify/plugin-nextjs
7:51:22 PM: ────────────────────────────────────────────────────────────────
7:51:22 PM:
7:51:23 PM: ** Adding next.config.js with target set to 'serverless' **
7:51:23 PM:
7:51:23 PM: (@netlify/plugin-nextjs onPreBuild completed in 14ms)
7:51:23 PM:
7:51:23 PM: ────────────────────────────────────────────────────────────────
7:51:23 PM:   2. Build command from Netlify app
7:51:23 PM: ────────────────────────────────────────────────────────────────
7:51:23 PM:
7:51:23 PM: $ next build
7:51:24 PM: warn  - No build cache found. Please configure build caching for faster rebuilds. Read more: https://err.sh/next.js/no-cache
7:51:24 PM: info  - Creating an optimized production build...
7:51:43 PM: warn  - Compiled with warnings
7:51:43 PM: ./node_modules/next/dist/next-server/server/load-components.js
7:51:43 PM: Critical dependency: the request of a dependency is an expression
7:51:43 PM: ./node_modules/next/dist/next-server/server/load-components.js
7:51:43 PM: Critical dependency: the request of a dependency is an expression
7:51:43 PM: ./node_modules/next/dist/next-server/server/require.js
7:51:43 PM: Critical dependency: the request of a dependency is an expression
7:51:43 PM: ./node_modules/next/dist/next-server/server/require.js
7:51:43 PM: Critical dependency: the request of a dependency is an expression
7:51:43 PM: ./node_modules/next/dist/next-server/server/require.js
7:51:43 PM: Critical dependency: the request of a dependency is an expression
7:51:43 PM: ./node_modules/node-fetch/lib/index.js
7:51:43 PM: Module not found: Can't resolve 'encoding' in '/opt/build/repo/node_modules/node-fetch/lib'
7:51:43 PM: info  - Collecting page data...
7:51:44 PM: info  - Generating static pages (0/5)
7:51:45 PM: info  - Generating static pages (1/5)
7:51:45 PM: info  - Generating static pages (2/5)
7:51:45 PM: info  - Generating static pages (3/5)
7:51:45 PM: info  - Generating static pages (5/5)
7:51:45 PM: info  - Finalizing page optimization...
7:51:46 PM: Page                              Size     First Load JS
7:51:46 PM: ┌ ● / (ISR: 1 Seconds)            631 B          71.3 kB
7:51:46 PM: ├   /_app                         0 B            60.2 kB
7:51:46 PM: ├ ○ /404                          2.75 kB        62.9 kB
7:51:46 PM: ├ λ /api/hello                    0 B            60.2 kB
7:51:46 PM: └ ● /posts/[id]                   433 B          71.1 kB
7:51:46 PM:     ├ /posts/pre-rendering
7:51:46 PM:     ├ /posts/ssg-ssr
7:51:46 PM:     └ /posts/testing-ssg
7:51:46 PM: + First Load JS shared by all     60.2 kB
7:51:46 PM:   ├ chunks/commons.87066d.js      13 kB
7:51:46 PM:   ├ chunks/framework.9ec1f7.js    39.9 kB
7:51:46 PM:   ├ chunks/main.bb7417.js         6.22 kB
7:51:46 PM:   ├ chunks/pages/_app.ec7c07.js   296 B
7:51:46 PM:   ├ chunks/webpack.e06743.js      751 B
7:51:46 PM:   └ css/2fd5d76e8788e1d11cbb.css  264 B
7:51:46 PM: λ  (Lambda)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
7:51:46 PM: ○  (Static)  automatically rendered as static HTML (uses no initial props)
7:51:46 PM: ●  (SSG)     automatically generated as static HTML + JSON (uses getStaticProps)
7:51:46 PM:    (ISR)     incremental static regeneration (uses revalidate in getStaticProps)
7:51:46 PM:
7:51:46 PM: (build.command completed in 23.1s)
7:51:46 PM:
7:51:46 PM: ────────────────────────────────────────────────────────────────
7:51:46 PM:   3. onBuild command from @netlify/plugin-nextjs
7:51:46 PM: ────────────────────────────────────────────────────────────────
7:51:46 PM:
7:51:46 PM: ** Running Next on Netlify package **
7:51:46 PM: 🚀 Next on Netlify 🚀
7:51:46 PM:    Functions directory:  netlify-automatic-functions
7:51:46 PM:    Publish directory:  /opt/build/repo
7:51:46 PM:    Make sure these are set in your netlify.toml file.
7:51:46 PM: 🌍 Copying public/ folder to /opt/build/repo
7:51:46 PM: 💼 Copying static NextJS assets to /opt/build/repo
7:51:46 PM: 💫 Setting up API endpoints as Netlify Functions in netlify-automatic-functions
7:51:46 PM: 💫 Setting up pages with getInitialProps as Netlify Functions in netlify-automatic-functions
7:51:46 PM: 💫 Setting up pages with getServerSideProps as Netlify Functions in netlify-automatic-functions
7:51:46 PM: 🔥 Copying pre-rendered pages with getStaticProps and JSON data to /opt/build/repo
7:51:46 PM: 💫 Setting up pages with getStaticProps and fallback: true as Netlify Functions in netlify-automatic-functions
7:51:46 PM: 💫 Setting up pages with getStaticProps and revalidation interval as Netlify Functions in netlify-automatic-functions
7:51:46 PM: 🔥 Copying pre-rendered pages without props to /opt/build/repo
7:51:46 PM: 🔀 Setting up redirects
7:51:46 PM:
7:51:46 PM: (@netlify/plugin-nextjs onBuild completed in 127ms)
7:51:46 PM:
7:51:46 PM: ────────────────────────────────────────────────────────────────
7:51:46 PM:   4. Functions bundling
7:51:46 PM: ────────────────────────────────────────────────────────────────
7:51:46 PM:
7:51:46 PM: Packaging Functions from netlify-automatic-functions directory:
7:51:46 PM:  - next_api_hello/next_api_hello.js
7:51:46 PM:  - next_index/next_index.js
7:51:46 PM:  - next_posts_id/next_posts_id.js
7:52:00 PM:
7:52:00 PM: (Functions bundling completed in 14.3s)
7:52:00 PM:
7:52:00 PM: ────────────────────────────────────────────────────────────────
7:52:00 PM:   Netlify Build Complete
7:52:00 PM: ────────────────────────────────────────────────────────────────
7:52:00 PM:
7:52:00 PM: (Netlify Build completed in 1m 18.6s)
7:52:01 PM: Caching artifacts
7:52:01 PM: Started saving node modules
7:52:01 PM: Finished saving node modules
7:52:01 PM: Started saving build plugins
7:52:01 PM: Finished saving build plugins
7:52:01 PM: Started saving pip cache
7:52:01 PM: Finished saving pip cache
7:52:01 PM: Started saving emacs cask dependencies
7:52:01 PM: Finished saving emacs cask dependencies
7:52:01 PM: Started saving maven dependencies
7:52:01 PM: Finished saving maven dependencies
7:52:01 PM: Started saving boot dependencies
7:52:01 PM: Finished saving boot dependencies
7:52:01 PM: Started saving rust rustup cache
7:52:01 PM: Finished saving rust rustup cache
7:52:01 PM: Started saving rust cargo bin cache
7:52:01 PM: Finished saving rust cargo bin cache
7:52:01 PM: Started saving go dependencies
7:52:01 PM: Finished saving go dependencies
7:52:04 PM: Build script success
7:52:04 PM: Starting to deploy site from ''
7:52:04 PM: Creating deploy tree
7:52:04 PM: Creating deploy upload records
7:52:05 PM: 5 new files to upload
7:52:05 PM: 3 new functions to upload
7:52:06 PM: Starting post processing
7:52:06 PM: Post processing - HTML
7:52:07 PM: Post processing - header rules
7:52:07 PM: Post processing - redirect rules
7:52:07 PM: Post processing done
7:52:07 PM: Site is live ✨
7:52:28 PM: Finished processing build request in 2m19.653681844s

JSON error after publishing
{
"errorType": "Runtime.UnhandledPromiseRejection",
"errorMessage": "Error: ENOENT: no such file or directory, scandir '/var/task/posts'",
"trace": [
"Runtime.UnhandledPromiseRejection: Error: ENOENT: no such file or directory, scandir '/var/task/posts'",
"    at process.<anonymous> (/var/runtime/index.js:35:15)",
"    at process.emit (events.js:314:20)",
"    at processPromiseRejections (internal/process/promises.js:209:33)",
"    at processTicksAndRejections (internal/process/task_queues.js:98:32)"
]
}

@MejanH ok WEW finally got this deployed and diagnosed! so here's what's going on:
because these pages are trying to use ISR (see revalidate flag in your getStaticProps functions), our plugin turns these pages into netlify functions. from within the function['s node env], the files (aka the markdown) you're trying to read "from disk" are not bundled with those functions, so it's failing to find them and erroring out.
this is something we can/should address, but for now, if you want this to Just Work, don't use ISR/revalidate. it will work as a plain SSG'd/prerendered page.
thanks for opening that separate repo for me and let me know if you have any other questions!! i'm going to change the title if that's cool to be a little more specific to the issue :)

Thanks for the help. Will wait for this feature.


build fails when installing lava-dl on top of lava 2.0 binaries

That's the output I get: https://pastebin.com/0V4WtZPq
I'm on Ubuntu 20.04, conda 4.10.3 and Python 3.9.7.

Hi @biphasic, can you try python -m unittest and see of that works?

Hello, I got it working in the end when I managed to build lava from source on another machine. Closing this for now.


Index out of range error at copyReversed function

Sometimes getting this:
goroutine 295 [running]:
net/http.(*conn).serve.func1(0xc0000b5a40)
	/usr/lib/golang/src/net/http/server.go:1769 +0x139
panic(0x8a1a80, 0xd9d180)
	/usr/lib/golang/src/runtime/panic.go:522 +0x1b5
golang.org/x/crypto/openpgp/ecdh.copyReversed(0xc0008431b0, 0x20, 0x20, 0xc0006ea5c0, 0x1f, 0x1f)
	/home/savely/go/pkg/mod/github.com/!proton!mail/crypto@v0.0.0-20190604143603-d3d8a14a4d4f/openpgp/ecdh/x25519.go:144 +0x112
golang.org/x/crypto/openpgp/ecdh.X25519Decrypt(0xc00045ede0, 0xc0003a8b10, 0x21, 0x21, 0xc0003a8b40, 0x30, 0x30, 0xc000785420, 0xb, 0x10, ...)
	/home/savely/go/pkg/mod/github.com/!proton!mail/crypto@v0.0.0-20190604143603-d3d8a14a4d4f/openpgp/ecdh/x25519.go:112 +0x17a
golang.org/x/crypto/openpgp/ecdh.Decrypt(0xc00045ede0, 0xc0003a8b10, 0x21, 0x21, 0xc0003a8b40, 0x30, 0x30, 0xc000785420, 0xb, 0x10, ...)
	/home/savely/go/pkg/mod/github.com/!proton!mail/crypto@v0.0.0-20190604143603-d3d8a14a4d4f/openpgp/ecdh/ecdh.go:91 +0x4a1
golang.org/x/crypto/openpgp/packet.(*EncryptedKey).Decrypt(0xc00017eaf0, 0xc00018fe00, 0xc0002f02a0, 0x0, 0x0)
	/home/savely/go/pkg/mod/github.com/!proton!mail/crypto@v0.0.0-20190604143603-d3d8a14a4d4f/openpgp/packet/encrypted_key.go:111 +0x4e8
golang.org/x/crypto/openpgp.ReadMessage(0x9c63e0, 0xc0002c0870, 0x9cf520, 0xc00068ec20, 0x0, 0xc0002f02a0, 0x1, 0x1, 0xc0002c0870)
	/home/savely/go/pkg/mod/github.com/!proton!mail/crypto@v0.0.0-20190604143603-d3d8a14a4d4f/openpgp/read.go:161 +0xca3
github.com/ProtonMail/gopenpgp/crypto.asymmetricDecrypt(0x9c63e0, 0xc0002c0870, 0xc0003001e0, 0xc0003bbf20, 0x5d1b3ec9, 0xc01b418690, 0x58789950045dd, 0xc000843860, 0x7c931f, 0xbf3eed925b418690, ...)
	/home/savely/go/pkg/mod/github.com/!proton!mail/gopenpgp@v1.0.1-0.20190613082613-552ce9554f87/crypto/keyring_message.go:140 +0x1b3
github.com/ProtonMail/gopenpgp/crypto.(*KeyRing).Decrypt(0xc0003001e0, 0xc00068ec00, 0xc0003bbf20, 0x5d1b3ec9, 0x0, 0x0, 0xc000843900, 0x448ac0)
	/home/savely/go/pkg/mod/github.com/!proton!mail/gopenpgp@v1.0.1-0.20190613082613-552ce9554f87/crypto/keyring_message.go:40 +0xe2

Function itself:
func copyReversed(out []byte, in []byte) {
	for i := 31; i >= 0; i-- {
		out[31-i] = in[i]
	}
}

Sometimes in length is 31.

Invalid 31 length bytes are assigned here:
https://github.com/ProtonMail/crypto/blob/d3d8a14a4d4f772c205a10c24d14676522ee95d2/openpgp/packet/private_key.go#L572

Seems like problem is again related to MPI encoding/decoding #22

This crippy workaround seems to be helpful for me:
if len(ecdhPriv.D) == 31 {
	ecdhPriv.D = append([]byte{0}, ecdhPriv.D...)
}

But I don't think it should fixed that way.

I wrote simple client-server testing environment to reproduce this problem easily:
Golang Server: https://gist.github.com/L11R/fa3abf28fc199bb4e5231ad8bb3d83d9
Node.js Client: https://gist.github.com/L11R/4e79f1c7716fc524b09c9ab9aba446d0

@twiss any news?

Hi @L11R - sorry for the really long delay! And also thanks for reporting this issue! The above PR should fix it.

@twiss thanks for answer and providing fix. We really tried to integrate OpenPGP solution into our service, but ended up with writing custom ECIES solution: https://github.com/ecies/go
Hope your libraries will be more mature for production use in near future.

Sure. I think that's fine, if you don't need compatibility with the OpenPGP (email) ecosystem then going with something simpler is not necessarily always a bad thing.


proposal: Allow taking the address of a function call or constant

As I noted in http://benhoyt.com/writings/learning-go/#general-quirks, one of the (few) language quirks I noticed when learning Go is that I couldn't take the address of a function result. For example, here's what I wrote at first and thought should work:
mystruct.TimePtr = &time.Now()

But of course it didn't because, according to the spec, the thing you're taking the address of needs to be "addressable" or, as a special case, a composite literal like &Point{2, 3}.
It seems like this would be a backwards-compatible change to the Go language spec to allow this, and have the compiler figure out that it needs to create a temporary variable (on the heap or stack) to take the address of. The compiler could expand it to the equivalent of:
tmp := time.Now()
mystruct.TimePtr = &tmp

And it seems I'm not the only one who has run into this in slightly different ways -- see one, two, three, and four.
In particular, the Amazon AWS SDK has a whole bunch of helper functions like aws.String (docs here), just so you can use constants as "optional parameters" for pointer fields in input structs, eg:
input := &s3.PutObjectInput{
    ACL:         aws.String("public-read"),
    Body:        bytes.NewReader(data),
    Bucket:      aws.String("mybucket"),
    ContentType: aws.String("image/jpeg"),
    Key:         &key,
}
_, err := s3ImageClient.PutObject(input)

Before they added this (see here), you'd have to do this in a very unwieldy way:
acl := "public-read"
bucket := "mybucket"
contentType := "image/jpeg"
input := &s3.PutObjectInput{
    ACL:         &acl,
    Body:        bytes.NewReader(data),
    Bucket:      &bucket,
    ContentType: &contentType,
    Key:         &key,
}

With this proposal in place, not only could the AWS SDK get rid of all those aws.String-style helpers, but there'd be an obvious, clean way to write this:
input := &s3.PutObjectInput{
    ACL:         &"public-read",
    Body:        bytes.NewReader(data),
    Bucket:      &"mybucket",
    ContentType: &"image/jpeg",
    Key:         &key,
}

Obviously there are a couple of things to think about:

Would it be added just for the things people seem to need, that is, function calls and constants? Or for arbitrary expressions like &(x + 1234). I think it'd be nice and orthogonal if it allows arbitrary expressions, but if there's a good reason to be conservative, I think just allowing &functionCall() and &constant would be a great start.
Is the syntax fully backwards compatible? I'm not a syntax expert, but I think so, as this is simply an extension of the special case you can already do with &Point{2, 3}.
You couldn't take the address of multi-valued functions (this would be a compile-time error). But as multi-valued functions are already special in some ways, that seems fine.

This is related to #19966, which is the same thing, but for primitive types.

Ah, thanks @dsnet, I'd missed that (I searched, but I searched for address instead of &, which is hard to search for!).
Despite the fact that &functionCall() is what I ran into, I think allowing &constant is probably more important -- assuming we're going to pick and choose. So I'd be three-quarters happy if #19966 was included in Go 2. :-)
I've looked at #9097 but don't really go for the new(int, 5) or the &int(5) syntax -- neither of those seems particularly obvious to me. However, I also see this proposal which proposes new(5) -- I don't like this as much as straight &5 but it seems reasonable.
I'd also like to point out two instances of the newInt() / newString() workaround helper functions in the standard library, albeit in tests: encoding/asn1/asn1_test.go and text/template/exec_test.go.

The easiest way to write that Amazon API would have been to not have pointers ruthlessly pointing to everything (including immutable types). Is the need indicated anywhere outside those examples already mentioned in the proposal?

@as But as you can see from the AWS issue thread, they did it like that for a reason -- because they need to distinguish between zero value (say 0 or empty string) and an unset value:

One important thing to note that I'm not sure how other SDKs handle, is the distinction in AWS APIs between an "unset value"-- this is why we've been ensuring that all types are pointers, even for primitive values.

Similar with the Go protobuf library -- it has helper functions for all the basic types to help with setting optional fields.
So there are two major libraries that have this issue, plus the two instances in the stdlib tests, plus two popular StackOverflow questions and two golang-nuts threads that I linked to, as well as my own experience. In that light, it seems a bit dismissive to ask "is the need indicated anywhere" outside the 9 examples and 2 existing issues...

it seems a bit dismissive to ask "is the need indicated anywhere" outside the 9 examples and 2 existing issues...

My apologies. It was not intended to be dismissive, the purpose was inquisition and it served to expand the discussion.

because they need to distinguish between zero value (say 0 or empty string) and an unset value

In my opinion, it's important to see whether they need to do it or just want to do it. The thread shows some concern about how an Amazon service might change it's own semantics in the future, breaking the SDK if nil and empty are indistinguishable. If this is the only reason, it seems self-serving with respect to the scope and doesn't get to the root of the "why". Is there a clear reason why nil and "" should be distinguishable other than consistency with some other languages or frameworks? I contested that AWS example for this reason. I don't know the story about protocol buffers though.

Another related use-case is Create().Use(), where Create returns a value and Use has a pointer receiver. You can’t do that in Go and are forced to use a temporary, but it doesn’t appear to be a good reason for this limitation.

@as Thanks. And what you say below is a fair point:

In my opinion, it's important to see whether they need to do it or just want to do it. ... Is there a clear reason why nil and "" should be distinguishable other than consistency with some other languages or frameworks?

I can definitely see the need to distinguish between zero value and unset value in some cases, but with a quick glance at the actual s3.PutObjectInput struct here, for all of the keys I've shown and most of the others I haven't shown they're either required (Bucket and Key) or an empty string wouldn't be valid (ACL, ContentType). In fact, in the case of ACL, if I were designing the API by hand I'd probably go with an enum: ACLPublicRead, etc. My guess is that the API surface of AWS is so large they (partially? fully?) autogenerate the code from an API description (see this commit for example).
Still, such use cases are reasonable -- I think they probably didn't choose to do it this way lightly, given the size and need for consistency in their API. It'd be equally awkward having most parameters be values and some (maybe ContentLength?) be pointers/nil-able.
In any case, I think the more important use cases would probably be where I ran into it, for things like nullable database fields. If Go had option types (and I know there are proposals for that as well) that would solve this situation too -- you don't really want a pointer, you just want to denote the fact that a field can be set or unset.

Create().Use() is an interesting case.  If Use takes a pointer receiver, and modifies the memory to which its receiver points, then writing Create().Use() seems likely to be a bug.
It's also an interesting question in general: if we permit &E for arbitrary E by creating a temporary memory location, should we do the same for E.M() for arbitrary E when M uses a pointer receiver?  My guess is that the latter is much more likely to introduce bugs than the former, but I could be wrong.

@ianlancetaylor Using Create().Use() is already perfectly possible when Create() returns a pointer receiver. It's also useful sometimes, and when it's a bug, it's not harder to find than any other bug.
A situation when Create() returns a value (non-pointer) type, but Use() has a pointer receiver is very unusual IMHO. Struct types usually fall into two categories: pointer types and value types. Constructors for pointer types return pointers and their methods use pointer receivers likewise. Constructors for value types return a value and methods use value receivers.

Create().Use() is an interesting case. If Use takes a pointer receiver, and modifies the memory to which its receiver points, then writing Create().Use() seems likely to be a bug.

I don't think that's true in general. For instance, the above syntax is very common for logging libraries where the intent of the user is printing a line; the fact that the object is modified or not in the process is an implementation detail of the library itself.
Obviously, the libraries can still be written today, using either always a pointer or always a value (for both Create and Use), but I still can't see why a mix should be forbidden (and just for the case of a temporary, while allowed for an explicit temporary).
There's also a performance argument. Go's escape analysis is far from perfect, and elision of useless receiver copies is non existent; every method call with a value receiver generates a copy of the receiver, irrespective of the fact that the copy is actually required or not. In fact, if the method does not modify the value, the copy is useless most of the time. I tend to prefer pointer receivers for this reason unless the value is really simple (eg: a basic type).

There's also a performance argument. Go's escape analysis is far from perfect, and elision of useless receiver copies is non existent; every method call with a value receiver generates a copy of the receiver, irrespective of the fact that the copy is actually required or not. In fact, if the method does not modify the value, the copy is useless most of the time. I tend to prefer pointer receivers for this reason unless the value is really simple (eg: a basic type).

Those statements are implementation details not covered by the compatibility promise (unlike the proposed change would be), even if they are correct (and without benchmarks that is impossible to know)

If Use takes a pointer receiver, and modifies the memory to which its receiver points, then writing Create().Use() seems likely to be a bug.

At the moment, pointer receivers conflate two otherwise-orthogonal properties: efficiency (avoiding unnecessary copies) and identity (ensuring that writes do or do not go to the underlying object).
If Use accepts a pointer receiver for efficiency reasons, then Create().Use() should be allowed. If Use accepts a pointer receiver in order to preserve identity, then it is indeed likely to be a bug.
In the wild, this comes up in the form of the Builder pattern: if you want to write a Builder-like API in Go but pass pointers for efficiency reasons, you must wrap those pointers in an extra struct type in order to have a value receiver. (Thankfully, the Builder pattern doesn't come up often because we can usually use composite literals instead.)

Go's escape analysis is far from perfect, and elision of useless receiver copies is non existent; every method call with a value receiver generates a copy of the receiver, irrespective of the fact that the copy is actually required or not.
[…]

Those statements are implementation details

That may be true, but as abstractions they're very leaky. Fundamentally, escape analysis and copy elision both rely on some form of alias analysis, which is difficult to do precisely — especially in a language as dynamic as Go. If you want to elide a copy of a function argument, you need to know not only that the callee doesn't modify the argument directly, but also that it doesn't modify the argument indirectly (such as through a passed-in function or interface argument).
You could argue that a sufficiently clevel compiler should be able to do that analysis anyway, but the Go compiler seems unlikely to be that sufficiently clever any time soon. So the viable options seem to be either to accept that pointer-receivers-as-optimization will sometimes make call sites more awkward, or accept that pointer-receivers-as-identity will allow aliasing bugs to occur.
It seems to me that the use of garbage collection already biases Go toward cleaner call sites at the expense of aliasing bugs, so I think making function arguments addressable would be fairly consistent with the language as it stands. (But I freely admit that that's entirely subjective.)

#9097 proposes a more general syntax that works for all kinds of expressions, not just function calls and constants.  Closing this issue in favor of that one.  We can discuss syntax details over there.

@ianlancetaylor Hmm, I'm obviously biased, but I think this issue is better than #9097, for a few reasons:

The report is more fleshed out and clearly worded, and gives real examples ("experience report") rather than just "we should add this". The description also contains links to other people asking about this on StackOverflow and golang-nuts.
The title is maybe a bit narrow, but this issue does cover the more general support for taking the address of an expression, it's just an operator precedence thing -- see note about things like &(x + 1234) at the end of my description. That said, I think taking the address of general expressions would be rare.
I think the &"foo" and &1234 syntax is a natural extension of the existing &Foo{42} syntax: describe a thing, then take its address. Whereas &int(foo) looks more like type coercion or a function call, not just "taking an address". Additionally, &1234 is more succinct (though that's not necessarily a virtue by itself).
I know it's not a popularity contest, but this one has 12 upvotes and the other only 5.

Don't get me wrong, I think the &int(1234) syntax is okay and would be a win, just seems this was closed a bit prematurely. Or maybe I'll argue for the simpler &1234 syntax over at #9097. :-)

Yes, please discuss over at #9097.  The two issues are basically the same idea with different syntax, so I'm consolidating the discussion in one place, the earlier issue.

Will do, thanks.


Implement a pushRoute service to satisfy the FlutterView.pushRoute API

Fixes https://github.com/flutter/flutter/issues/10399

cc @abarth to see if this is what he had in mind

this will need a test

Added a test to widgets/binding_test

This is great. It doesn't completely fix  #10399 since there is no support on iOS yet.

Looks reasonable.


MSDKUI-2495: Fixed build issues on iOS

Changes in HEREMapsUI.podspec solve linker issues on iOS.
This is effectively a revert of small part of 98479b4b6b9532d5b65894a03343fe74294ba02a

Fix in build phase 'Generate NMACredentials...' solves 'input file was modifed during build'
compiler error.

signing off is still needed


Course translation and Feedback Form

Docs Build status updates of commit 0e381fc:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-community-training/content-management/create-content/create-course-category/add-feedback-form-for-a-course.md
:white_check_mark:Succeeded
View

microsoft-community-training/content-management/create-content/create-course-category/create-a-new-course.md
:white_check_mark:Succeeded
View

microsoft-community-training/media/feedback form.png
:white_check_mark:Succeeded
View

microsoft-community-training/media/image(472).png
:white_check_mark:Succeeded
View

microsoft-community-training/media/image(473).png
:white_check_mark:Succeeded
View

microsoft-community-training/media/image(474).png
:white_check_mark:Succeeded
View

microsoft-community-training/media/image(476).png
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

PRMerger Results

Issue
Description

Added or Deleted File(s)
This PR contains added or deleted file(s).

File Change Percent
This PR contains file(s) with more than 20% file change.

Image File
This PR contains an image file(s).

Microsoft authors of articles need to make updates through the private repository so the updates can be staged and validated by the current validation rules. After you review staging and fix all validation issues, you can add the sign-off comment to let the PR reviewers know the updates are ready to be merged.It's easy to access the private repo version of your articles in GitHub. Just add -pr to the URL, as follows:
Public repo URL: https://github.com/MicrosoftDocs/azure-docs
Private repo URL: https://github.com/MicrosoftDocs/azure-docs-pr
We have closed this pull request. Please resubmit the updates through the private repo. For more information, [see the contributor guide].(https://docs.microsoft.com/en-us/contribute/)


Resolve merge conflicts when pushing to master

I added a .gitignore file to resolve the pycache merge conflicts; however, it will only ignore that file type if it isn't already being tracked. Should we remove the current pycache directories?

Pycaches not needed on the main branch, since they are created during on program startup for optimization of imports, etc.


feat: add nextjs marketing demo app to list of cli templates [ALT-1265]

Purpose
This PR adds the upcoming nextjs marketing demo app to the list of templates you can use to scaffold a new Studio app with the CLI. Other changes came along with it to support multiple templates.

Is there a way I can test this PR?

I updated the readme to include instructions for developing locally. Let me know if they don't make sense.

What about making sure things deploy correctly? Would that be covered by github actions?

The CLI tool itself is deployed as a part of our normal CI pipeline. The templates that are included in that particular build will be the ones that were built along with the tools, as, right now, the templates are embedded into the CLI package.

Cool, will take a look at your README and try it out

So I ran the CLI tool and works as expected in the happy case. However, in the bad workflow, it hangs as follows in the screenshot. Just spins and spins

So I ran the CLI tool and works as expected in the happy case. However, in the bad workflow, it hangs as follows in the screenshot. Just spins and spins at No content preview environments for Studio Experiences currently found, creating one..
Now we can probably log this as a separate bug or we can fix it in this PR. We can probably discuss the path forward tomorrow in person

This would be an already existing issue. We probably don't do a good job doing validation or handling errors now. We should file it as a separate ticket so it doesn't block this work.


[Table] 0.18.0 onRowSelection issue -- selected checkbox doesn't select when using a redux action as the called function

Problem description
I'm using 0.18.0
I am using redux for state management, and not setState, when calling redux actions the checkbox doesn't register as checked, but it registers that it was clicked when I console.log the onRowSelection
I have added this to stackoverflow as well
https://stackoverflow.com/questions/44768550/material-ui-table-component-is-not-playing-nice-with-redux
Link to minimal working code that reproduces the issue
// applicable material UI code

class AdminDeptAppAccess extends React.Component {

  _onRowSelection (selectedUsers, props) {
    console.log(selectedUsers)
    props.selectedUsersAction(filterUsers(selectedUsers, props.deptAppRoles))
  }

  render () {
    return (
      <Table
        selectable
        multiSelectable
        onRowSelection={(selectedUsers) => this._onRowSelection(selectedUsers, this.props)}
       >
         {/* contents */}
       </Table>
    )
  }
}
const filterUsers = (selectedUsers, deptAppRoles) => {
  if (selectedUsers === 'all') {
    return deptAppRoles
  } else if (selectedUsers === 'none') {
    return []
  } else if (selectedUsers === []) {
    return []
  } else {
    let users = []
    selectedUsers.map((num, i) => (
      users.push(deptAppRoles[num])
    ))
    return users
  }
}

// applicable redux action that was passed down via props
export const selectedUsersAction = (users) => {
  console.log('selectedUsersAction', users)
  return dispatch => {
    dispatch({
      type: 'SELECTED_USERS',
      selectedUsers: users
    })
  }
}

Versions

Material-UI: 0.18.0
React: 15.5.4
Browser: Chrome -- Version 59.0.3071.115 (Official Build) (64-bit)

Images & references
ignore the console errors they are from something else, I selected the first row, and the console registers that [0] was clicked, and my redux action registers who got clicked, but the checkbox doesnt update.

I cannot see the nested table items inside of <Table> in this code sample. Are you using the selected prop for the <TableRow>? This page has a good example of that on the Controlled example portion of the page.

@m2mathew , I have the same issue.
For reproducing this bug just add setState on event onRowSelection

I am reviving this issue because i got the same Bug.
Anybody got a workaround for this?
 getSelectedRows (selectedRows: [number] | string) {
    if(selectedRows.length !== 0 && selectedRows !== 'none') {
      //this.setState({deleteDisabled: false})
    } else {
      this.setState({deleteDisabled: true})
    }
  }

It works with only the second setState but it won't with the first (neither both).

We have been porting the component on the v1-beta branch. We reimplemented it from the ground-up. While we haven't tested it, I think that the issue is most likely fixed on that branch. Hence, I'm closing it.
Still, we will accept PR fixes until v1-beta takes over the master branch.


Black screen

I'm trying Oni, but I only get a black screen.
The editor seems to work, but it don't show anything on the UI. If I type :q CR blindly it exits and all. I tried opening both a file and a folder, and it shows nothing on the UI.
If I enter insert mode and start typing it shows an weird scrollbar.

I'm on Kubuntu 17.04, and I use nvim normally everyday. Electron apps usually work fine in this computer.

Ctrl+Shift+P don't do anything. But there is some erros in the console:
/home/dimas/Downloads/Oni-0.2.14-linux/resources/app/lib/browser/bundle.js:26 Starting Neovim - process: 2030
/home/dimas/Downloads/Oni-0.2.14-linux/resources/app/lib/browser/bundle.js:1 NeovimInstance: Neovim started
/home/dimas/Downloads/Oni-0.2.14-linux/resources/app/lib/browser/bundle.js:44 Neovim version reported as 0.1.7
/home/dimas/Downloads/Oni-0.2.14-linux/resources/app/lib/browser/bundle.js:44 Uncaught (in promise) TypeError: Cannot read property 'parentElement' of undefined
    at _neovimInstance.on (file:///home/dimas/Downloads/Oni-0.2.14-linux/resources/app/lib/browser/bundle.js:44:33392)
    at emitOne (events.js:115:13)
    at _.emit (events.js:210:7)
    at _attachUI.then (file:///home/dimas/Downloads/Oni-0.2.14-linux/resources/app/lib/browser/bundle.js:44:54835)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
/home/dimas/Downloads/Oni-0.2.14-linux/resources/app/lib/browser/bundle.js:44 Uncaught (in promise) TypeError: Cannot read property 'parentElement' of undefined
    at _neovimInstance.on (file:///home/dimas/Downloads/Oni-0.2.14-linux/resources/app/lib/browser/bundle.js:44:33392)
    at emitOne (events.js:115:13)
    at _.emit (events.js:210:7)
    at _attachUI.then (file:///home/dimas/Downloads/Oni-0.2.14-linux/resources/app/lib/browser/bundle.js:44:54835)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
/home/dimas/Downloads/Oni-0.2.14-linux/resources/app/lib/browser/bundle.js:44 Uncaught (in promise) TypeError: Cannot read property 'parentElement' of undefined
    at _neovimInstance.on (file:///home/dimas/Downloads/Oni-0.2.14-linux/resources/app/lib/browser/bundle.js:44:33392)
    at emitOne (events.js:115:13)
    at _.emit (events.js:210:7)
    at _attachUI.then (file:///home/dimas/Downloads/Oni-0.2.14-linux/resources/app/lib/browser/bundle.js:44:54835)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
/home/dimas/Downloads/Oni-0.2.14-linux/resources/app/lib/browser/bundle.js:1 No supported language
t.error @ /home/dimas/Downloads/Oni-0.2.14-linux/resources/app/lib/browser/bundle.js:1
index.html:1 Uncaught (in promise) TypeError: Cannot read property 'parentElement' of undefined
    at _neovimInstance.on (bundle.js:44)
    at emitOne (events.js:115)
    at _.emit (events.js:210)
    at _attachUI.then (bundle.js:44)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188)

I'll try to change the options and build it.

I've build from source (with, and without changing Accelerated2dCanvas) and now it appears to render everything except the text:

Wow, that's pretty crazy looking! Thanks for trying that out.
I see one interesting thing in the logs:
/home/dimas/Downloads/Oni-0.2.14-linux/resources/app/lib/browser/bundle.js:44 Neovim version reported as 0.1.7

It seems the version is reported as 0.1.7 - it may be worth trying a newer version of Neovim - have you upgraded to 0.2.1?

That was it. I've updated neovim and it's working fine now!
Thanks!

Excellent! I'm planning on bundling Neovim with Oni, so that sort of thing won't happen in the future. Otherwise, it'd make sense to invest in a better error message / experience than a black screen... (#875)
Thanks for troubleshooting with me - I'll close this out now

@bryphe Can you confirm that linux distros won't have to keep track of neovim versions of packaging?
If true, I'll remove dependencies on neovim for the next release.

Personally, I think we should keep neovim as a dependency in AUR.  It seems more to be the "linux way" to explicitly declare your dependencies rather than bundling them in.  It makes sense to bundle binaries in Windows and Mac, just not Linux.  That's my opinion anyway.

@keforbes I agree, however that requires having to add a check not to include and not to use the bundled neovim binary on linux systems.
If neovim for ubuntu is not working for you, then I am not sure it will work for most people, ideally the package from the distro should be working and using a recent stable version.
If neovim keeps being bundled for linux, keeping the dependency will make no difference as it will use the bundled one.
The distinction to be made is:

Assume that for linux the user and distro should be providing a working and up-to-date neovim version (not very difficult but adds friction)
Use the bundled neovim version and don't care about redundant neovim versions (bundled and packaged) on the user system.

Not sure what @bryphe's plan is for this.

@badosu, I think we're in agreement.  I'd rather leave the neovim packaging and installing to the neovim folks and we would just declare it as a dependency.  Even .deb and .rpm can declare dependencies and all package managers today can automatically download and install those dependencies before installing a package.
With that said, I don't think Windows and Mac have good dependency resolution managers so it still makes sense to bundle the binaries on those platforms.  But I'm just repeating myself and I think we're agreeing with each other. 😄

Even if we agree on this issue, currently the next version will bundle neovim, so that's why I need @bryphe's confirmation on his plan for this.

Sorry I'm late to the party here - thanks for the discussion @keforbes and @badosu
I'll defer to your judgement since you both know Linux better than I do 😄 The biggest pain point for me are issues like these where nvim isn't installed - but we can handle that by letting the user know they need nvim running. We had a check for that at one point, but it seems it is not working anymore.
The current version actually doesn't download the Linux binary, so I think we're okay there @badosu . The latest oni-neovim-binaries is a no-op on Linux, and the logic for starting Neovim on Linux still assumes its in the path: https://github.com/onivim/oni/blob/0f6ee990d6c1b59987de4871eb0e50cb84ce0d1e/browser/src/neovim/NeovimProcessSpawner.ts#L24)
Given both your points, here are the two next steps in my mind for Linux:

Get automation running in Linux. Today we only run our automated integration tests on Windows / OSX, and Linux - #910. This is orthogonal to the discussion but its important that our 'safety net' covers all supported platforms.
Smoother experience when Neovim is not installed, or the wrong version - #911 This regressed at some point, but would address my main concern / motivation for bundling.

Thanks again for your thoughts!


Bugfix add_cell to work with unspecified types like symbols and dates

An older version of the add_cell method wrote the raw_value to whatever the data was. With the current version only Numeric, String, RubyXL::RichText, and NilClass are checked. This results in cells with symbols and dates being empty.
Was there a specific reason that those types were ignored? If not, this pull request mimics the original functionality for those types.

The problem here is that Excel has very different ideas about how different data types are represented, and directly copying stuff from Ruby to Excel may cause unexpected results — so adding Date object to a cell will not magically make it a Date in Excel — it's more complex (for example, see RubyXL::Cell::value()). In other words, the user needs to know what he's trying to do before actually doing in, and that's why we err out on the side "let's reject things that we can't process" rather than "let's stick everything in and hopefully Excel will figure it out".


Add LDAP Groups CHANGELOG (Merge with 2.8 release)

Description

Describes new LDAP Groups
Related Issue(s)

Parent: https://github.com/FlowFuse/flowfuse/issues/4002
Dev: https://github.com/FlowFuse/flowfuse/pull/4407
Checklist

[x] I have read the contribution guidelines
[x] I have considered the performance impact of these changes
[ ] Suitable unit/system level tests have been added and they pass
[ ] Documentation has been updated

@joepavitt tagged to help with release blog content

Not merging until the underlying dev changes are reviewed/merged

Yes


New model for translations in Home Assistant

Feature request
Translation of status for text sensors is updated in Home Assistant. The short version is that the content of sensor.xx.json files is moved into xx.json files.
Read more here: developer docs
This is not a breaking change, but I guess that the old model with device_class = miele__someclass will be deprecated. Hopefully this new model will support localization of entity names in the future. I have read some rumors....
What version of the integration are you using?
2023.1 going forward
Anything in the logs that might be useful for us?
No response
Additional information
No response

HI, I have made a translation on french of the language, not familiar with Git so I drop the file with this message.
fr.zip

OK, thanks. I will take care of the translation file.


Standard_ Workflow parameters : Parameters with empty names still exist after closing and opening the parameter panel.

Describe the Bug with repro steps
1.Create a new stateful logic app in standard, open the designer.
2.Validate if 'Parameters' command button shows
3. Keep some parameter names empty and try closing the panel. You should see below UI with a popup stating the confirmation to close the panel.
4.Expected: Validate on opening the parameters panel again, removes the parameters with empty names.
Actual: Parameters with empty names still exist after closing and opening the parameter panel.
What type of Logic App Is this happening in?
Standard (Portal)
Are you using Preview Designer or GA Designer
Preview
Workflow JSON
{
  "definition": {
    "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
    "actions": {},
    "contentVersion": "<IP_ADDRESS>",
    "outputs": {},
    "triggers": {}
  },
  "connectionReferences": {},
  "parameters": {
    "a": {
      "type": "Array",
      "value": [
        1,
        2
      ]
    },
    "b": {
      "type": "Bool",
      "value": true
    },
    "": {
      "type": "Array"
    }
  }
}

Screenshots or Videos

Browser
Edge
Additional context
Environmental Details:
URL: https://aka.ms/emastaging
Version : 2.20501.1.1

Issue repro in the latest request:
Environment Details:
URL: https://aka.ms/emastaging-flowstip1
Version: 2.30508.1.1

Issue repro in latest artifact.

VS Code extension –   vscode-azurelogicapps-2.15.15.vsix
NuGet package: https://artprodeussu2.artifacts.visualstudio.com/A41bf5486-7392-4b7a-a7e3-a735c767e3b3/b32aa71e-8ed2-41b2-9d77-5bc261222004/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL21zYXp1cmUvcHJvamVjdElkL2IzMmFhNzFlLThlZDItNDFiMi05ZDc3LTViYzI2MTIyMjAwNC9idWlsZElkLzczMDA5ODA5L2FydGlmYWN0TmFtZS9kcm9wX2J1aWxkX0J1aWxkQXJ0aWZhY3RzX1dpbmRvd3M1/content?format=file&subPath=%2FMicrosoft.Azure.Workflows.WebJobs.Extension.1.21.3.nupkg
Extension Bundle (CDN URL): https://cdnforlogicappsv2.blob.core.windows.net/logicapps-vendortesting
Extension Bundle (Direct Download): https://cdnforlogicappsv2.blob.core.windows.net/logicapps-vendortesting/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle.Workflows/1.21.3/Microsoft.Azure.Functions.ExtensionBundle.Workflows.1.21.3_any-any.zip
Resources vsix.   vscode-azureresourcegroups-LA.vsix

This is expected behavior going forward.  Parameters will not delete unless the user specifically clicks on the delete button.


Remove "horizon" from backend

After the frontend is at 100% the horizon management tool can be removed since it will be hard coded in https://github.com/serlo/frontend/blob/master/src/data/horizon.tsx

All backend tools are moved to frontend now.


Pixhawk4 won't bootup with current master

Describe the bug
Pixhawk4  will not bootup with current master, all fmu led is off after bootloader.
To Reproduce
Steps to reproduce the behavior:

Flash master firmware

Additional context
I tried flash Ardupilot for reset parameters, an re-flash, it's not work either.

Same for me. #11769 seems to be responsible, before that it boots.
@davids5 can you have a look?
Console output:
up_assert: Assertion failed at file:irq/irq_unexpectedisr.c line: 65 task:

@bkueng @bys1123 - Thank you for reporting the issues.  I have fixed it here https://github.com/PX4/Firmware/pull/11791


Servers & Schemes adjustments

Border color should be --section_colors-stroke
Line at the bottom should be also color --section_colors-stroke instead of --white-rgb-250
Text Servers/Schemes should be aligned with button (centred)

Current solution

Expected solution

addressed in : https://github.com/pk-hotovo/swagger-ui-kong-theme/pull/40

addressed in: https://github.com/pk-hotovo/swagger-ui-kong-theme/pull/41


Windows 11 install fails

Did a fresh install of Win11, Chrome, Steam, ED and EDMC.
When trying to install ED-Scout 1.8.2 I'm asked for elevated rights, but a second or so later the install process exits without any messages. Looked in the logbook, but no entries there...
Any suggestions? Are there dependencies I'm not aware of?

The same happens for me on windows 10.

Tried downloading the diagnostic build and running it.
The process crashes immediately - but when running as admin things are working as they should.
So maybe something related to system permissions?

Same here. Setup on Win11 does not work, neither with administrative privileges, nor in compatibility mode.

Same problem. Win10 Home Build 19044.1348

Closing issue #204 in favor of this one.  My machine has the same problem and won't run the installer, either.

I have the same issue.  Win10 Pro 21H1 19043.1348 - Ryzen 5800X, 32GB RAM, Noctua 3070, in case that's at all relevant.
Based on recommendation from #202, I tried going back a couple versions to see if one of the older ones would work on my computer.
Setup-EdScout-<IP_ADDRESS> worked for me.
Got it from https://github.com/joncage/ed-scout/releases (scroll down to version 1.7.1)

Same issue for me on W11 latest update. Everything is up to date (drivers, redist, you name it)
Will try @kwileyk suggestion about <IP_ADDRESS>

i downloaded the https://github.com/joncage/ed-scout/releases/download/v1.8.2/EDScout-DiagnosticBuild.zip, extracted it to a folder, and run it from there, started it before elite dangerous and worked 100% fine

Yeah. This did the trick for me too. It was a bit finicky to get it to actually recognize the nav data (needed like five route replotting and one jump), but by now it seems to work perfectly. Still really annnoyed that the regular "setup version" doesnt seem to work for me (win10)

Did this project die?
No replies to this in a long time despite still being an issue.

Did this project die? No replies to this in a long time despite still being an issue.

Not dead dead but I have two kids 1 and 3 respectively who don't sleep very well so my time and energy for this project has wained somewhat. I do still plan to get back to it (and elite) in the not too distant future though as their sleep patterns are gradually improving.

Congratz, you're nearly to the point you won't be a walking sleep-deprived
zombie again. There's light at the end of the tunnel!
Thanks for the update and take your time! I remember that time in my
kiddo's life well enough -- it was rough.
On Tue, Feb 14, 2023 at 4:14 AM joncage @.***> wrote:

Did this project die? No replies to this in a long time despite still
being an issue.
Not dead dead but I have two kids 1 and 3 respectively who don't sleep
very well so my time and energy for this project has wained somewhat. I do
still plan to get back to it (and elite) in the not too distant future
though as their sleep patterns are gradually improving.
—
Reply to this email directly, view it on GitHub
https://github.com/joncage/ed-scout/issues/201#issuecomment-1429380509,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAYDCWV4OVANBXVUE372LHDWXNEGHANCNFSM5HIEMRZA
.
You are receiving this because you commented.Message ID:
@.***>


Issue no. #1616 (Added Convolutional neural network algorithm in all languages)

🛠 Issue (Number)
Issue no #1616
👨💻 Changes proposed
-Added Convolutional neural network algorithm in C++, Java, and Python language.
-Created a Deep learning folder in C++ and Java.
✔ Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

📷 Screenshots

@Kumar-laxmi please review it


Fix error when CPUParticles3D has scale set to (0, 0, 0)

Fixes https://github.com/godotengine/godot/issues/63011 (also look at the comments)

Tried to fix this for GPUParticles3D as well, but attempting to has made me realise that this is not "perfect" either, as returning early causes the transform not to update, at all.
I wonder if it would be better to ensure the scale components can be close but never 0.0 (meh)...


code highlighting is rendering too low in the code

Highlighting issue is universal in this tutorial but noticed strongly for this page.  Repo in Chrome or edge.

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

ID: 01013ef6-c55c-ff58-571c-ddc4435993af
Version Independent ID: 24699fe5-9744-1796-0798-f7b211ec0f2f
Content: Add a new field to a Razor Page in ASP.NET Core
Content Source: aspnetcore/tutorials/razor-pages/new-field.md
Product: aspnet-core
Technology: aspnetcore-tutorials
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

It's a known issue. Add your :+1: to their issue at ...
https://github.com/MicrosoftDocs/feedback/issues/1887


where is followers.py file ?

It is actually the egonet.py file. The README file has been updated.


centos下tomcat启动报错如下，window下调试则正常。请问这是什么原因导致的？

BeanCreationException: Error creating bean with name 'processEngine' defined in file [/data/tomcat/servers/case/webapps/lemon/WEB-INF/classes/spring/ctx-module-activiti.xml]: Invocation of init method failed; nested exception is org.activiti.engine.ActivitiException: transactionManager is required property for SpringProcessEngineConfiguration, use org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration otherwise

大概率数据库没连上
因为报错说transactionManager注入失败


MiniController attribute

Hi!
The attribute "castControlButtons" is not available as it described here: https://developers.google.com/cast/docs/reference/android/com/google/android/gms/cast/framework/media/widget/MiniControllerFragment
One can see in the sources of MiniControllerFragment.class that you might forgot to define it in the attrs:
public void onInflate(Context var1, AttributeSet var2, Bundle var3) {
       super.onInflate(var1, var2, var3);
       TypedArray var4 = var1.obtainStyledAttributes(var2, styleable.CastMiniController, attr.castMiniControllerStyle, style.CastMiniController);
       this.nt = var4.getBoolean(styleable.CastMiniController_castShowImageThumbnail, true);
       this.nu = var4.getResourceId(styleable.CastMiniController_castTitleTextAppearance, 0);
       this.nv = var4.getResourceId(styleable.CastMiniController_castSubtitleTextAppearance, 0);
       var4.recycle();
   }

May you please check this part? Thank you!

Thanks for reporting. We will fix this in the next release.

But what the right way now to define castControlButtons?

The next SDK update will allow you to use castControlButtons.


Added option to allow conflicting paths.

Stack:

#6743 ⬅
#6739
#6738

⚠ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.


Add support for ref fallbacks

Arguments have been added to some builder methods for aiding in the process of checking if a branch is created before working on it. This is very common in the "createTree" and "createCommit" Codemod operations.
Affected methods

GitHubCreateCommitBuilderInterface.parentRef
GitHubCreateTreeBuilderInterface.baseRef

Resolves #16.

✅ Manually tested in https://github.com/acmcsufoss/boardd/commit/5f0804d9c657990f7f50063809b4f0a44ee5d3ac.


[Python] Add function/method to deepcopy a pa.Table

Describe the enhancement requested
Problem
In Dask, we need to force deep-copies of pa.Tables to ensure that views/slices sever references to the original buffers and allow us to free memory. From what I understand, there are a few ways to force a copy, but all of them come with downsides and/or have a clumsy API (see Alternatives)
Proposal
To give better control over copying pa.Table, I propose to add a pa.Table.copy() method that creates a deep-copy of the table. Ideally, this copy() method would have a boolean combine keyword that would combine chunks if True and maintain the existing chunking scheme otherwise (default).
Alternatives

pa.Table.take() and pa.Table.filter() could be used, but have the additional overhead of evaluating some criterion before copying. Also, this is a fairly clumsy API and prone to someone optimizing this that zero-copies are performed "if possible".
We could manually copy the individual columns using pa.concat_arrays and compose a new Table from those. However, pa.concat_arrays has to acquire the GIL when creating the returned Python object, which causes us to run into GIL contention due to the convoy effect (https://bugs.python.org/issue7946). Basically, something else hogs the GIL and our loop over the columns gets slowed down because every time we try to acquire the GIL, we have to wait.
pa.Table.combine_chunks() copies a column if we have more than a single chunk in said column. Once again, we would have to jump through some hoops here to ensure that this is the case of fall back to another solution that forces a copy.

Side Comments
Intuitively, I would have thought that copy.deepcopy(table) as well as pickle.loads(pickle.dumps(table)) would serve my purpose. From what I can see, views/slices copy the entire buffer though. This may be by design to ensure that offsets are maintained, but this makes it even more important to have the ability to truncate underlying buffers for views/slices to avoid having to pickle all the data. Am I doing something wrong here?
import copy
import pickle

import pandas as pd
import pyarrow as pa

df = pd.DataFrame({'n_legs': [2, 4, 5, 100],
                   'animals': ["Flamingo", "Horse", "Brittle stars", "Centipede"]})
table = pa.Table.from_pandas(df)
print(f"Original size: {table.column('animals').chunks[0].buffers()[1].size}")
sliced = table.slice(0, 1)
truncated = pa.concat_arrays([chunk for chunk in sliced.column("animals").chunks if chunk is not None])
print(f"Truncated size: {truncated.buffers()[1].size}")
deep_copied = copy.deepcopy(sliced)
print(f"Deepcopied size: {deep_copied.column('animals').chunks[0].buffers()[1].size}")
pickled = pickle.loads(pickle.dumps(sliced))
print(f"Pickled size: {pickled.column('animals').chunks[0].buffers()[1].size}")

results in
Original size: 20
Truncated size: 8
Deepcopied size: 20
Pickled size: 20

Component(s)
Python

@hendrikmakait thanks for raising the issue!
I agree it would be good to have more explicit methods to copy pyarrow objects (Table, RecordBatch, Array), instead of people relying on the "concat trick"
Some related issues about adding deep copy functionality for arrays: https://github.com/apache/arrow/issues/37878, https://github.com/apache/arrow/issues/30503

Intuitively, I would have thought that copy.deepcopy(table) as well as pickle.loads(pickle.dumps(table)) would serve my purpose.

Yes, but unfortunately pickle has the problem that it saves the full buffer instead of only the sliced part. That's a long standing issue with our implementation of pickling, see https://github.com/apache/arrow/issues/26685 (and copy.deepcopy relies on pickle)


Add tests for Test Discovery

Add tests that ensure TestClasses returned from the LSP (or elsewhere) are properly added to the vscode TestController.

@swift-server-bot test this please

@swift-server-bot test this please


Implement PackageVariantSet injector template

Since the config injection feature of PackageVariant has been implemented, we need to extend PVS to support setting the injectors field in the PV.

@natasha41575 can you review please?
@SimonTheLeg, after your KRM PR merges, we'll need a PR similar to this to allow Pipeline in the PVS. For now, we can skip doing any CEL expressions for Pipeline, though, until we see a real need for it. So instead we would just use a static pipeline in the PVS.
The only real CEL usage I can imagine wanting in the future for Pipeline would be for function.configMap to become a MapExpr instead of a map[string]string.  It's going to be a bit painful, because your template basically has to clone the whole Pipeline and just change the type of that one field. That's why I think it could wait until we see a real need. We already can muck with Package Context which can be a config map input to a function...though it's limited to just one and has certain reserved fields already.


Add option to not have the final result page open up when one file is finished.

Add option to not have the final result page open up when one file is finished.

Thank you for the report! This was a bug and is now fixed with version 1.1.0.


feat: allow esbuild 0.18

A new version of esbuild is available: https://github.com/evanw/esbuild/releases/tag/v0.18.6
Other packages, like https://github.com/floydspace/serverless-esbuild also depend on this package.
This package needs to allow the new esbuild version for those other packages to also work with esbuild 0.18.
I updated the version restrictions, however I don't know how to ensure that this upgrade doesn't cause any issues in your package.

@fm-sz thanks for the pr, can you update the esbuild version of the examples? If the CI is passing after the update we should be good to go

@fm-sz thanks for the pr, can you update the esbuild version of the examples? If the CI is passing after the update we should be good to go

@pradel thanks for your review and the catch. updated it, made the yarn.lock quite a bit smaller :D


Enabling CDEF without loop restoration crashes

Tested an AWCY run with CDEF on, loop restoration off, on speed 9.
2019-09-17 15:34:57.945 Decoding result for blue_sky_360p_60f.y4m at quality 128 failed!
2019-09-17 15:34:57.945 stdout:
2019-09-17 15:34:57.946
2019-09-17 15:34:57.946 stderr:
2019-09-17 15:34:57.956  INFO  rav1e > Using y4m decoder: 640x360p @ 25/1 fps, 4:2:0, 8-bit
 INFO  rav1e > Encoding settings: keyint_min=12 keyint_max=240 quantizer=128 bitrate=0 min_quantizer=0 low_latency=false tune=Psychovisual tiles=0 tile_rows=0 tile_cols=0 rdo_lookahead_frames=40 min_block_size=64x64 multiref=false fast_deblock=true reduced_tx_set=true tx_domain_distortion=true tx_domain_rate=false encode_bottomup=false rdo_tx_decision=false prediction_modes=Simple include_near_mvs=false no_scene_detection=false diamond_me=true cdef=true quantizer_rdo=false use_satd_subpel=true
 INFO  rav1e::api::config > CPU Feature Level: AVX2

encoded 1 frames, 0.329 fps, 4245.40 Kb/s
encoded 2 frames, 0.502 fps, 3057.70 Kb/s
encoded 3 frames, 0.753 fps, 2038.80 Kb/s
encoded 4 frames, 0.961 fps, 1534.90 Kb/s
encoded 5 frames, 1.122 fps, 1228.12 Kb/s
encoded 6 frames, 1.176 fps, 1356.50 Kb/s
encoded 7 frames, 1.371 fps, 1162.86 Kb/s
encoded 8 frames, 1.512 fps, 1020.00 Kb/s
encoded 9 frames, 1.612 fps, 906.78 Kb/s
encoded 10 frames, 1.601 fps, 1020.42 Kb/s
encoded 11 frames, 1.761 fps, 927.75 Kb/s
encoded 12 frames, 1.866 fps, 852.15 Kb/s
encoded 13 frames, 1.900 fps, 786.68 Kb/s
encoded 14 frames, 1.866 fps, 874.46 Kb/s
encoded 15 frames, 1.999 fps, 816.23 Kb/s
encoded 16 frames, 2.082 fps, 766.52 Kb/s
encoded 17 frames, 2.212 fps, 721.49 Kb/s
encoded 18 frames, 2.153 fps, 794.58 Kb/s
encoded 19 frames, 2.272 fps, 752.81 Kb/s
encoded 20 frames, 2.339 fps, 716.20 Kb/s
encoded 21 frames, 2.456 fps, 682.14 Kb/s
encoded 22 frames, 2.388 fps, 749.32 Kb/s
encoded 23 frames, 2.496 fps, 716.78 Kb/s
encoded 24 frames, 2.555 fps, 687.77 Kb/s
encoded 25 frames, 2.661 fps, 660.30 Kb/s
Backtrace omitted. Run with RUST_BACKTRACE=1 to display it.
Run with RUST_BACKTRACE=full to include source snippets.

The application panicked (crashed).
  index out of bounds: the len is 2 but the index is 2
in rust:src/libcore/slice/mod.rs, line 2695
thread: <unnamed>

Do you have a command line to reproduce it handy?

No, there is no option to disable loop restoration from CLI.

So the only way to test is to edit the code to disable the flag in Sequence.

This one also appears to work correctly on current master.

With manually disabling lrf : enable_restoration: false,//config.chroma_sampling != ChromaSampling::Cs422,
./target/release/rav1e ~/sequences/objective-1-fast/KristenAndSara_1280x720_60f.y4m -o test.ivf -r test_rec.y4m --quantizer 100 --speed=9  --limit=1
worked for me.


False Positive on Windows Security

📝 Provide detailed reproduction steps (if any)

Launch .exe
Almost immediately flagged by Windows Security.

✔ Expected result
Program runs as normal.
❌ Actual result

Submitted to Microsoft for review through Submit a file for malware analysis - Microsoft Security Intelligence

It's now solved!


file.get_csv_line() does not get line without CR

Godot version:
3.1.1
OS/device including version:
Windows
Issue description:
file.get_csv_line() doesnt read the last line when last char is not a CR/LF
Steps to reproduce:
MPR attached
MRP csv_line.zip

The following reads your csv file fine.
while !csv.eof_reached():
    riga=csv.get_csv_line(";")
    prints(riga)

that's not what I meant.
from documentation:

bool eof_reached ( ) const
Returns true if the file cursor has read past the end of the file.
Note: This function will still return false while at the end of the file and only activates when reading past it. This can be confusing but it conforms to how low-level file access works in all operating systems. There is always get_len and get_position to implement a custom logic.

That means the while loop in MRP has to work as is.

This could be a documentation issue, or change the way get_csv_line() works, because it already calls eof_reached() and breaks out of its process if it returns true.

@KoBeWi
Considering the code example proposed by SparkArt works correctly, should be the case to change the issue title in "eof_reached() triggered when file.get_csv_line() fetches last data row"?

@sparkart
After reading your reply, I did some research about file treatment on some languages and I found interesting that EOF behaviour is not the same: some works like Godot, some others not.
Speaking more clearly:  Godot's file.open() can trigger EOF on empty files, some other languages don't, instead they trigger EOF on file.read().
So yes, you are right, Godot works fine, it is not a bug.


PDF image problem

Happens with a fresh book skeleton.
Running Yosemite 10.10.2, Command Line Tools 10.10 for Xcode 6.2.
All dependencies are satisfied with their latest releases.

Is this a PDF made by printing the HTML? The PDF produced by sc build:pdf appears to work fine.

No, build with softcover as well.

I'm unable to reproduce. Are you using a fresh book generated with sc new? This is what I get when running sc build:pdf:

Yes.
Maybe the terminal output helps: http://pastebin.com/DyWq0wyE

Unfortunately, I'm still unable to reproduce the issue, which makes it tough to debug. Nothing in the log jumps out at me as the obvious source of the problem. The issue probably comes down to some subtle difference in the way \includegraphics behaves on our two systems. I suggest fiddling with the image code to see if you can successfully constrain the dimensions; once you do, let me know how you got it to work and I'll try to incorporate the changes into a future release.

I have exactly the same issue here, on a fresh install on a Debian server.


phidgets_drivers: 0.7.11-1 in 'melodic/distribution.yaml' [bloom]

Increasing version of package(s) in repository phidgets_drivers to 0.7.11-1:

upstream repository: https://github.com/ros-drivers/phidgets_drivers.git
release repository: https://github.com/ros-drivers-gbp/phidgets_drivers-release.git
distro file: melodic/distribution.yaml
bloom version: 0.10.3
previous version for package: 0.7.10-1

libphidget21

No changes

phidgets_api

No changes

phidgets_drivers

No changes

phidgets_high_speed_encoder
* high_speed_encoder: Use private node handle for params (#79 <https://github.com/ros-drivers/phidgets_drivers/issues/79>)
  Co-authored-by: Martin Günther<EMAIL_ADDRESS>* Contributors: Evan Davies

phidgets_ik
* Fix success flag of phidgets_ik set_digital_output service
  Fixes #81 <https://github.com/ros-drivers/phidgets_drivers/issues/81>
* Contributors: Martin Günther

phidgets_imu

No changes

phidgets_msgs

No changes

Thanks for the heads up!
Although this is not a new package, I've added the appropriate LICENSE files to the melodic branch (all other branches already had them): https://github.com/ros-drivers/phidgets_drivers/commit/f2db326c41e9d5e0cc6450c73faae888d2f6a0c9


Extract up-to-date checks to execution project

Continue the work started in #7447 to generalize more of the task execution engine to support non-task work.

@wip ready for review


Design a better version control system for initial data

Currently the initial data files required to bootstrap the application are stored in an S3 bucket.  We need a better system for version control of this file set. S3 is good for storage costs but precludes the use of standard solutions like Git. The file size is large enough that making a full copy each time we change a few files is infeasible. The current, manual, database-migration-style method is not a good long-term solution. For example, the more files are changed or deleted, the more unnecessary overhead is incurred by downloading obsolete files that are subsequently overwritten or deleted entirely.

One idea that may meet our success criteria is to use the native bucket versioning supported by the MinIO client and the OpenStack Swift bucket we are currently using on Jetstream2. The example below shows how after enabling versioning, a subsequent copy command does not overwrite an object but instead adds another version at the same bucket path.
$ mc version info js-blast/blast-astro-data
js-blast/blast-astro-data is un-versioned

$ mc version info --json js-blast/blast-astro-data
{
 "Op": "info",
 "status": "success",
 "url": "js-blast/blast-astro-data",
 "versioning": {
  "status": "",
  "MFADelete": ""
 }
}

$ mc version enable js-blast/blast-astro-data
js-blast/blast-astro-data versioning is enabled

$ mc version info --json js-blast/blast-astro-data
{
 "Op": "info",
 "status": "success",
 "url": "js-blast/blast-astro-data",
 "versioning": {
  "status": "Enabled",
  "MFADelete": "Disabled"
 }
}

$ mc cp \
    sbi_training_sets/sbi_training_sets/hatp_x_y_global.pkl \
    js-blast/blast-astro-data/v1/data/sbi_training_sets/

$ mc ls --versions --json js-blast/blast-astro-data/v1/data/sbi_training_sets/hatp_x_y_global.pkl
{
 "status": "success",
 "type": "file",
 "lastModified": "2024-09-11T14:44:00.809-05:00",
 "size": 65019321,
 "key": "hatp_x_y_global.pkl",
 "etag": "8abae565ffc324af5810113e6f37c9cd-4",
 "url": "https://js2.jetstream-cloud.org:8001/blast-astro-data/v1/data/sbi_training_sets/hatp_x_y_global.pkl",
 "versionId": "XpAgf4jQ-0fY5wtG6cqSwpltWrHccar",
 "versionOrdinal": 2,
 "storageClass": "STANDARD"
}
{
 "status": "success",
 "type": "file",
 "lastModified": "2024-04-23T08:58:12.313-05:00",
 "size": 65019907,
 "key": "hatp_x_y_global.pkl",
 "etag": "145f0e563928e3979cd7b66b3f7fc1c9-4",
 "url": "https://js2.jetstream-cloud.org:8001/blast-astro-data/v1/data/sbi_training_sets/hatp_x_y_global.pkl",
 "versionId": "null",
 "versionOrdinal": 1,
 "storageClass": "STANDARD"
}

To the existing md5sum file manifest, we would add another column for object versionId. With that manifest, instead of using the mc mirror command in the data init script, we would iterate through the list, comparing each file's md5sum against the etag checksum returned by the mc stat command
$ mc stat --version-id=XpAgf4jQ-0fY5wtG6cqSwpltWrHccar --json \
    js-blast/blast-astro-data/v1/data/sbi_training_sets/hatp_x_y_global.pkl | jq --raw-output '.etag'

8abae565ffc324af5810113e6f37c9cd-4

If the checksums mismatch, then the file is overwritten by the target version. In this way, we have robust version control of initial data files.
There is an issue related to removal of files: if a file is removed from the inital data set in a revision, and if the presence of that original file could cause a problem, then we may need to include another (version-controlled) manifest declaring "files to remove if they exist".


Entity data mining

This PR adds the ability to automatically mine entity data from the source code. This PR is related with https://github.com/MockBukkit/MockBukkit/pull/1101.
This implementation extracts:

[X] Entity eye height
[X] Entity height
[X] Entity width
[X] Entity scale

It's now ready for review.


when I access /v1/catalog/services then return {"API-GATEWAY":[],"DISCOVERY":[]}

when I access /v1/catalog/services then return {"API-GATEWAY":[],"DISCOVERY":[]},not included ip ...

user 1.0.1

it is ok.


[semver:major] Clippy job should fail if it issues warnings

Warnings from clippy do not return an error code. So we convert all warnings to "deny".
This looks like a "bugfix" to me, so I'm tempted to use semver:patch. But many folks will see jobs start to fail, so maybe it's worth bumping it up to a minor.

@gmemstr anything I can do to prepare this for merge?

1. With regard to patch vs minor vs major, if this introduces a breaking change, then this would be considered a major change. Patches and minor changes should not be breaking.

Right, this is the basis for the recurring argument about whether fixing a bug should be a major release, if we suspect people have come to rely on the bug. I totally understand the desire to be cautious/conservative here and switch it to major.

2. With that in mind, not everyone would want to consider warnings changes. If we introduce this change as a parameter, it allows us to make the change optional for users while keeping it in the scope of a "minor" change.

Hm, I don't really see a point in running a clippy job at all if you're going to ignore the warnings. Clippy reports warnings exclusively AFAICT. I believe any errors encountered during clippy would also show up in a build job. So users who want to ignore clippy's warnings might as well just drop the clippy job from their config.

Of note: a bug means that you also need to update clippy to the latest in order to properly respect the --deny warnings flag. At least, it was a problem for me until upgrading from clippy 1.51.0 to 1.52.1. See rust-lang/rust-clippy#5749 (comment)

Were you able to produce consistent failures with this? I'm using stable Clippy 1.52.1 and was having the same issue.

Hey folks, it looks like in this PR we never came to a resolution for the issue and we are marking the PR as abandoned for the time being. If there is interest, please consider re-opening a new PR.


Upload files to AWS S3

Hi.
I need to upload files (photo) to AWS S3 and the URL to this file in S3 store it in a photo field in my DB.
Do you know the best way to do it? or Do you know a good tutorial?
Thanks in advance.

This isn't issue about boilerplate. It's more generic question.
http://sailsjs.org/documentation/concepts/file-uploads/uploading-to-s-3 is the first hit that I got.


Sawmill animation not correctly oriented

When placing the sawmill first and then connecting it to a slider-crank, the animation is in some cases going in the wrong direction.

Still problems when the network re-forms. Need to know if it's inverted and also which direction it should face. Should be able to use propagationdirection I think.

Now works for normal cases, both newly placed and when the network is recreated / game is loaded.
Still weird behaviors when chaining sawmills.


HKG: improved Kona tuning

Adjusting the "kf" value of Hyundai KONA hybrid
Update Interface.py
By adjusting the Interface.py kf value of Hyundai KONA hybrid 2020, it seems desirable to adjust the "kf" value from "0.00005" to "0.00006" for more stable steering wheel operation and improved stability in onroad..
Reference Test Route.
Dongl-ID : 0665dbbc79ef999e
results: 0665dbbc79ef999e|2022-03-21--14-30-57

The feedforward scaling is not great in openpilot right now. It scales with angle error, while it should scale with lateral acceleration. We are working on fixing this and should be able to use data to tune all the feedfowards from data. Since that is coming soon I am closing this PR.
https://github.com/commaai/openpilot/issues/24021


Increase Recent Attendees from Three to Six

On the reports page, increase the number of recent attendees from three to six.  Recent attendees are listed to the right of the Attendees search box.
Reference item 47

duplicate of #47


LoL champion role doesn't change

This is because i am caching the image only based on champion name atm.
Will be fixed soon

fixed in local build, coming in 0.9


Fixed unicode to byte array conversion in Python 2.*

The bytes function in Python 2 is an alias of str() which takes only one argument. Changed the way unicode query strings are converted to utf-8 byte arrays.

Coverage remained the same at 94.301% when pulling f7041d5405b360b270012255e724ad7c09a8bab9 on Gloix:master into 933541f17784828369e3dc85dc6a5b2195048c8c on DinoTools:master.

Thanks for your contribution.


Hover Effect on socail media icon not work on Pet News page

Describe the bug
The hover effect functions correctly on the Home page for social media icons but is not working as expected on the Pet News Page.
To Reproduce
Steps to reproduce the behavior:

Go to 'Pet News'
Scroll down to 'Footer'
See error

video
https://github.com/akshitagupta15june/PetMe/assets/76811518/9bf08d67-8df8-4c75-8504-9bdc666dd784
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

PLease assign this issue to me under hacktober fest


VirtualBox

Hello,
Has anyone managed to run this on VirtualBox on OSX Host? I have downloaded the .img file and converted it to a .vdi file using:
$ VBoxManage convertdd raspiblitz-v1.0-2019-02-18.img raspiblitz.vdi

I've then set it as disk and booted it, however screen appears to stay black.
Any help?

 Raspbian is a distribution for ARM processors. Raspbian cannot run in VirtualBox.
Raspbian is essentially Debian with binaries compiled to match the Pi's processor more closely than the official Debian binaries. So if you're going to your system in a virtual machine rather than on Pi hardware, there is very little reason to run Raspbian and not Debian.
If you really want to run Raspbian in a virtual machine on your PC (again, for most purposes, you might as well run Debian x86), you need one that emulates the hardware, such as QEmu.

@finndev cedricwalter is correct. But if you feel very experimental you could check out the dietpi port of raspiblitz -> see https://github.com/rootzoll/raspiblitz/tree/master/dietpi
DietPi is more flexible to processor architecture and they list "VirtualBox" on their website.