Problem installing node modules

@sebastienros
@chanondw
@rtpHarry
@gtandeciarz
I did the following steps:
D:\>git clone https://github.com/OrchardCMS/Orchard.git
Cloning into 'Orchard'...
remote: Enumerating objects: 194040, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 194040 (delta 0), reused 0 (delta 0), pack-reused 194039
Receiving objects: 100% (194040/194040), 192.92 MiB | 657.00 KiB/s, done.
Resolving deltas: 100% (143929/143929), done.
Updating files: 100% (7476/7476), done.

Then I went to the source folder and tried to install node modules , but I get thousands of errors :
D:\Orchard\src>npm install
npm WARN deprecated<EMAIL_ADDRESS>This module relies on Node.js's internals and will break at some point. Do not use it, and update to<EMAIL_ADDRESS>npm WARN deprecated<EMAIL_ADDRESS>https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated<EMAIL_ADDRESS>This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated<EMAIL_ADDRESS>This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated<EMAIL_ADDRESS>This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated<EMAIL_ADDRESS>Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated<EMAIL_ADDRESS>This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated<EMAIL_ADDRESS>this library is no longer supported
npm WARN deprecated<EMAIL_ADDRESS>This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated<EMAIL_ADDRESS>This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN deprecated<EMAIL_ADDRESS>flatten is deprecated in favor of utility frameworks such as lodash.
npm WARN deprecated<EMAIL_ADDRESS>This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm WARN deprecated<EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated<EMAIL_ADDRESS>Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated<EMAIL_ADDRESS>gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated<EMAIL_ADDRESS>Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated<EMAIL_ADDRESS>Removed event-stream from gulp-header
npm WARN deprecated<EMAIL_ADDRESS>please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>this library is no longer supported
npm WARN deprecated<EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated<EMAIL_ADDRESS>this library is no longer supported
npm WARN deprecated<EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated<EMAIL_ADDRESS>gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm notice
npm notice New minor version of npm available! 8.1.2 -> 8.3.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.3.0
npm notice Run npm install -g<EMAIL_ADDRESS>to update!
npm notice
npm ERR! code 1
npm ERR! path D:\Orchard\src\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node scripts/build.js
npm ERR! Building: C:\Program Files\nodejs\node.exe D:\Orchard\src\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli   'C:\\Program Files\\nodejs\\node.exe',
npm ERR! gyp verb cli   'D:\\Orchard\\src\\node_modules\\node-gyp\\bin\\node-gyp.js',
npm ERR! gyp verb cli   'rebuild',
npm ERR! gyp verb cli   '--verbose',
npm ERR! gyp verb cli   '--libsass_ext=',
npm ERR! gyp verb cli   '--libsass_cflags=',
npm ERR! gyp verb cli   '--libsass_ldflags=',
npm ERR! gyp verb cli   '--libsass_library='
npm ERR! gyp verb cli ]
npm ERR! gyp info using<EMAIL_ADDRESS>npm ERR! gyp info using<EMAIL_ADDRESS>| win32 | x64
npm ERR! gyp verb command rebuild []
npm ERR! gyp verb command clean []
npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb check python checking for Python executable "python2" in the PATH
npm ERR! gyp verb `which` failed Error: not found: python2
npm ERR! gyp verb `which` failed     at getNotFoundError (D:\Orchard\src\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed     at F (D:\Orchard\src\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed     at E (D:\Orchard\src\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed     at D:\Orchard\src\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed     at D:\Orchard\src\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed     at D:\Orchard\src\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:198:21)
npm ERR! gyp verb `which` failed  python2 Error: not found: python2
npm ERR! gyp verb `which` failed     at getNotFoundError (D:\Orchard\src\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed     at F (D:\Orchard\src\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed     at E (D:\Orchard\src\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed     at D:\Orchard\src\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed     at D:\Orchard\src\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed     at D:\Orchard\src\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:198:21) {
npm ERR! gyp verb `which` failed   code: 'ENOENT'
npm ERR! gyp verb `which` failed }
npm ERR! gyp verb check python checking for Python executable "python" in the PATH
npm ERR! gyp verb `which` failed Error: not found: python
npm ERR! gyp verb `which` failed     at getNotFoundError (D:\Orchard\src\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed     at F (D:\Orchard\src\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed     at E (D:\Orchard\src\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed     at D:\Orchard\src\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed     at D:\Orchard\src\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed     at D:\Orchard\src\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:198:21)
npm ERR! gyp verb `which` failed  python Error: not found: python
npm ERR! gyp verb `which` failed     at getNotFoundError (D:\Orchard\src\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed     at F (D:\Orchard\src\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed     at E (D:\Orchard\src\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed     at D:\Orchard\src\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed     at D:\Orchard\src\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed     at D:\Orchard\src\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:198:21) {
npm ERR! gyp verb `which` failed   code: 'ENOENT'
npm ERR! gyp verb `which` failed }
npm ERR! gyp verb could not find "python". checking python launcher
npm ERR! gyp verb could not find "python". guessing location
npm ERR! gyp verb ensuring that file exists: C:\Python27\python.exe
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
npm ERR! gyp ERR! stack     at PythonFinder.failNoPython (D:\Orchard\src\node_modules\node-gyp\lib\configure.js:484:19)
npm ERR! gyp ERR! stack     at PythonFinder.<anonymous> (D:\Orchard\src\node_modules\node-gyp\lib\configure.js:509:16)
npm ERR! gyp ERR! stack     at callback (D:\Orchard\src\node_modules\graceful-fs\polyfills.js:299:20)
npm ERR! gyp ERR! stack     at FSReqCallback.oncomplete (node:fs:198:21)
npm ERR! gyp ERR! System Windows_NT 10.0.22000
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\Orchard\\src\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd D:\Orchard\src\node_modules\node-sass
npm ERR! gyp ERR! node -v v16.13.1
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1

npm ERR!      C:\Users\Arman\AppData\Local\npm-cache\_logs\2021-12-21T07_11_01_283Z-debug.log

I read hundreds of pages in GitHub and SO and tried all the solutions so that I could finally see the Gulp tasks in the Task Runner Explorer section.
But now when I change a Assets file, I get a hundred more errors!
D:\Orchard\src> cmd.exe /c gulp -b "D:\Orchard\src" --color --gulpfile "D:/Dena/src/Gulpfile.js" watch
[11:25:25] Using gulpfile D:\Orchard\src\Gulpfile.js
[11:25:25] Starting 'watch'...
[11:25:32] Starting '<anonymous>'...
Asset manifest file 'undefined' was undefined, restarting watcher.
[11:25:32] '<anonymous>' errored after 916 μs
[11:25:32] TypeError: inputWatcher.remove is not a function
    at D:\Orchard\src\Gulpfile.js:72:26
    at bound (domain.js:427:14)
    at runBound (domain.js:440:12)
    at asyncRunner (D:\Orchard\src\node_modules\async-done\index.js:55:18)
    at processTicksAndRejections (internal/process/task_queues.js:79:11)
    at runNextTicks (internal/process/task_queues.js:66:3)
    at listOnTimeout (internal/timers.js:523:9)
    at processTimers (internal/timers.js:497:7)
[11:25:32] Starting '<anonymous>'...
Asset manifest file 'undefined' was undefined, restarting watcher.
[11:25:32] '<anonymous>' errored after 243 μs
[11:25:32] TypeError: inputWatcher.remove is not a function
    at D:\Orchard\src\Gulpfile.js:72:26
    at bound (domain.js:427:14)
    at runBound (domain.js:440:12)
    at asyncRunner (D:\Orchard\src\node_modules\async-done\index.js:55:18)
    at processTicksAndRejections (internal/process/task_queues.js:79:11)
    at runNextTicks (internal/process/task_queues.js:66:3)
    at listOnTimeout (internal/timers.js:523:9)
    at processTimers (internal/timers.js:497:7)
[11:25:32] Starting '<anonymous>'...
Asset manifest file 'undefined' was undefined, restarting watcher.
[11:25:32] '<anonymous>' errored after 199 μs
[11:25:32] TypeError: inputWatcher.remove is not a function
    at D:\Orchard\src\Gulpfile.js:72:26
    at bound (domain.js:427:14)
    at runBound (domain.js:440:12)
    at asyncRunner (D:\Orchard\src\node_modules\async-done\index.js:55:18)
    at processTicksAndRejections (internal/process/task_queues.js:79:11)

There has always been a problem with Gulp, and I have seen that others have the same problem. I think manual installation of dependencies is much easier than this method!!!
I spent two days on this problem but still could not run a simple bundle system!!!

We use the LTS version of Node.js to compile our assets. Not sure if this will work with the latest version if that's what you are using.

I just looked and I'm using npm 8.1.3

stack Error: Can't find Python executable "python"

Skrypt

I use node v16.13.1 LTS and NPM v8.1.2

@Skrypt
As I mentioned above, I was finally able to install node modules, but when I run it in Task Runner, I get the following error :
D:\Orchard\src> cmd.exe /c gulp -b "D:\Orchard\src" --color --gulpfile "D:/Dena/src/Gulpfile.js" watch
[11:25:25] Using gulpfile D:\Orchard\src\Gulpfile.js
[11:25:25] Starting 'watch'...
[11:25:32] Starting '<anonymous>'...
Asset manifest file 'undefined' was undefined, restarting watcher.
[11:25:32] '<anonymous>' errored after 916 μs
[11:25:32] TypeError: inputWatcher.remove is not a function
    at D:\Orchard\src\Gulpfile.js:72:26

    ....

The gulp pipeline in Orchard has not been updated for years that might be the issue. You are trying to build it with a newer version of npm and I don't remember what we were using at that time.

@Skrypt
Can you guide me how to update the gulpfile.js? What happens if I change all the versions in this file to the latest version?

It's probably not a good idea since everything is dependent on the versions fixed in the package.json files. You will need to install older versions of Node.js and figure out which one works.

Although many thinks in the Gulp pipeline still work in newer Node.js versions, the truth is that Gulp 4 does not officially support even Node.js 14: https://github.com/gulpjs/gulp/discussions/2649.
The breaking watch task in Gulp after upgrading to Node.js 16 actually led us to dropping Gulp altogether.


Provide From for failure::Error

as we (CoBloX) are aiming to use failure::Error more widely I suggest we provide a converstion to failure::Error for the errors provided by this crate.

One of the benefit would be to use ? instead of unwrap() in integration tests.

I think the way to go for libraries is to just derive Fail.


[IGNORE] feat(simple-agg): use table ids for simple agg (WIP)

What's changed and what's your intention?
Prevoius the keyspace encoding is executor_id/agg_call_idx (9 + 4), now table_id (5).
Code:

Count and assign table id in meta fragmenter.
use table id to create agg states

Checklist

[ ] I have written necessary docs and comments
[ ] I have added necessary unit tests and integration tests

Refer to a related PR or issue link (optional)

By the way, we'll only use the keyspace of tables in this PR, and the relational refactor has not been introduced now?

By the way, we'll only use the keyspace of tables in this PR, and the relational refactor has not been introduced now?

Yes

By the way, we'll only use the keyspace of tables in this PR, and the relational refactor has not been introduced now?

Later will connect with @wcy-fdu to see how relational table will introduced. For these keyspace encdoing, I think it's just a refactoring (from operator_id to table_id) and won't change too much for our design


Update test modules to skip function bodies and use WMO

There's little performance benefit (if any) in using an incremental
build with all function bodies skipped, so just use WMO instead to match
the index arena builds.
Also skip "-emit-object" (and its alias) since skipping all function
bodies is incompatible with code generation.

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - 735db4284167d4e44a3012b89a85e8565dbdf240

@swift-ci please test

@swift-ci please test


[BUG]: Persistent HTTP 400 with Vercel & drizzle-kit

What version of drizzle-orm are you using?
0.32.0
What version of drizzle-kit are you using?
0.23.0
Describe the Bug
output of any drizzle-kit command:
[bun] Warning: async_hooks.createHook is not implemented in Bun. Hooks can still be created but will never be called.
drizzle-kit: v0.23.0
drizzle-orm: v0.32.0

No config path provided, using default path
Reading config file '/Users/cgould/dev/OMTL Bot/drizzle.config.ts'
Failed to find Response internal state key
Using '@vercel/postgres' driver for database querying
 Warning  '@vercel/postgres' can only connect to remote Neon/Vercel Postgres/Supabase instances through a websocket
ErrorEvent {
  [Symbol(kTarget)]: _WebSocket {
    _events: {
      error: [
        [Function: onError]
      ],
      message: [
        [Function: onMessage]
      ],
      close: [
        [Function: onClose]
      ],
      open: [
        [Function: onOpen]
      ],
    },
    _eventsCount: 4,
    _maxListeners: undefined,
    [Symbol(kCapture)]: false,
    _binaryType: "arraybuffer",
    _closeCode: 1006,
    _closeFrameReceived: false,
    _closeFrameSent: false,
    _closeMessage: Buffer(0) [  ],
    _closeTimer: null,
    _extensions: {},
    _paused: false,
    _protocol: "",
    _readyState: 3,
    _receiver: null,
    _sender: null,
    _socket: null,
    _bufferedAmount: 0,
    _isServer: false,
    _redirects: 0,
    _url: "wss://ep-old-feather-a45bzkaj-pooler.us-east-1.aws.neon.tech/v2",
    _req: ClientRequest {
      _writableState: [Object ...],
      _events: [Object ...],
      _eventsCount: 3,
      _maxListeners: undefined,
      [Symbol(kCapture)]: false,
      headersSent: false,
      sendDate: true,
      [Symbol(finished)]: false,
      [Symbol(kEndCalled)]: false,
      [Symbol(kAbortController)]: [AbortController ...],
      _httpMessage: [Circular],
      [Symbol(headers)]: Headers [Object ...],
      [Symbol(fakeSocket)]: [Object ...],
      [Symbol(kAborted)]: true,
      _closed: true,
      path: [Getter],
      port: [Getter],
      method: [Getter],
      host: [Getter],
      protocol: [Getter],
      agent: [Getter],
      _write: [Function: _write],
      _writev: [Function: _writev],
      _destroy: [Function: _destroy],
      _ensureTls: [Function: _ensureTls],
      _final: [Function: _final],
      aborted: [Getter],
      abort: [Function: abort],
      setSocketKeepAlive: [Function: setSocketKeepAlive],
      setNoDelay: [Function: setNoDelay],
      setTimeout: [Function: setTimeout],
      [Symbol(kClearTimeout)]: [Function],
      _implicitHeader: [Function],
      appendHeader: [Function],
      flushHeaders: [Function],
      getHeader: [Function],
      getHeaders: [Function],
      getHeaderNames: [Function],
      removeHeader: [Function],
      setHeader: [Function],
      hasHeader: [Function],
      addTrailers: [Function],
      headers: [Getter],
      chunkedEncoding: [Getter/Setter],
      shouldKeepAlive: [Getter/Setter],
      useChunkedEncodingByDefault: [Getter/Setter],
      socket: [Getter/Setter],
      connection: [Getter],
      finished: [Getter],
      pipe: [Function],
      write: [Function],
      cork: [Function],
      uncork: [Function],
      setDefaultEncoding: [Function: setDefaultEncoding],
      end: [Function],
      closed: [Getter],
      destroyed: [Getter/Setter],
      writable: [Getter/Setter],
      writableFinished: [Getter],
      writableObjectMode: [Getter],
      writableBuffer: [Getter],
      writableEnded: [Getter],
      writableNeedDrain: [Getter],
      writableHighWaterMark: [Getter],
      writableCorked: [Getter],
      writableLength: [Getter],
      errored: [Getter],
      writableAborted: [Getter],
      destroy: [Function],
      _undestroy: [Function: undestroy],
      [Symbol(nodejs.rejection)]: [Function],
    },
    binaryType: [Getter/Setter],
    bufferedAmount: [Getter],
    extensions: [Getter],
    isPaused: [Getter],
    onclose: [Getter/Setter],
    onerror: [Getter/Setter],
    onopen: [Getter/Setter],
    onmessage: [Getter/Setter],
    protocol: [Getter],
    readyState: [Getter],
    url: [Getter],
    setSocket: [Function: setSocket],
    emitClose: [Function: emitClose],
    close: [Function: close],
    pause: [Function: pause],
    ping: [Function: ping],
    pong: [Function: pong],
    resume: [Function: resume],
    send: [Function: send],
    terminate: [Function: terminate],
    CONNECTING: 0,
    OPEN: 1,
    CLOSING: 2,
    CLOSED: 3,
    addEventListener: [Function: addEventListener],
    removeEventListener: [Function: removeEventListener],
    setMaxListeners: [Function: setMaxListeners2],
    getMaxListeners: [Function: getMaxListeners2],
    emit: [Function: emit],
    addListener: [Function: addListener],
    on: [Function: addListener],
    prependListener: [Function: prependListener],
    once: [Function: once2],
    prependOnceListener: [Function: prependOnceListener],
    removeListener: [Function: removeListener],
    off: [Function: removeListener],
    removeAllListeners: [Function: removeAllListeners],
    listeners: [Function: listeners],
    rawListeners: [Function: rawListeners],
    listenerCount: [Function: listenerCount2],
    eventNames: [Function: eventNames],
  },
  [Symbol(kType)]: "error",
  [Symbol(kError)]: 91154 |             emitErrorAndClose(websocket, err2);
91155 |             return;
91156 |           }
91157 |           initAsClient(websocket, addr, protocols, options);
91158 |         } else if (!websocket.emit("unexpected-response", req, res)) {
91159 |           abortHandshake(
                  ^
error: Unexpected server response: 400
      at /Users/cgould/dev/OMTL Bot/node_modules/drizzle-kit/bin.cjs:91159:11
      at emit (native:1:1)
      at native:1:1
      at processTicksAndRejections (native:1:1)
,
  [Symbol(kMessage)]: "Unexpected server response: 400",
  stack: "Error: Unexpected server response: 400\n    at <anonymous> (/Users/cgould/dev/OMTL Bot/node_modules/drizzle-kit/bin.cjs:87414:23)\n    at processTicksAndRejections (native)",
  error: [Getter],
  message: [Getter],
  target: [Getter],
  type: [Getter],
}

Expected behavior
drizzle-kit to work properly with vercel.
Environment & setup
macOS 15
Bun 1.1.20

Closing in favor of #2239.


Writing sofa file results in UNSUPPORTED DATATYPE

Hi,
I have followed this description on how to generate a new SOFA file,
As a result, I have "generated" this python script, which does exactly, what is described in the documentation.
Running this Python script results in this SOFA file.
If I inspect the produced SOFA file , using the netCDF function "ncdisp" in Matlab, I see that apparently all attributes are of UNSUPPORTED DATATYPE.
For a copy of the results, please refer to this Matlab diary.
I have tried manually assigning what I assumed to be valid values for the attributes before saving the sofa file, but I have not been able to produce any other result than UNSUPPORTED DATATYPE, when inspecting the file using ncdisp.
Let me know, if you need more information from me.
BR Jacob Riiser

Hi again,
It seems that the official netcdf utils CAN read the sofa file, so it seems that this is actually an error in the Matlab use of netcdf,
Hence I am closing the issue.
Br Jacob


Allow catching IllegalArgumentException when calling Enum::valueOf

Summary
See example below.
Lint Name
RuntimeExceptionCatchCheck
Reproducer
class Reproduce {
    public enum Fruit {
        APPLE, PINEAPPLE;
    }

    public static class ParserException extends Exception {
        public ParserException(Throwable cause) {
            super("failed to parse input", cause);
        }
    }

    public static Fruit fromString(String string) throws ParserException {
        try {
            return Fruit.valueOf(string.toUpperCase());
        } catch (IllegalArgumentException exception) { // Ok
            // failed to parse input, exception is not thrown by user
            throw new ParserException(exception);
        }
    }
}

It might be better to generalize this to allow (under a different problem type):
Catching runtime exceptions, if the catch only wraps the runtime exception in a checked exception and rethrows it.


Staticman is dead

Have not been able to get staticman to work since November 2018 nor the popcorn repo example, My site and the popcorn example says to many requests and most of the time there is an error with your submission. Move it to netlify, its free and no limits.
If its not going to work anymore then tell everyone so we do not waste our time.
Tried everything api v1 and api v2, it never works.

@donaldboulton Please format your raw JSON error so that it's more readable, and describe what you've done to get this error, so that we can reproduce it.
It seems that you've forked my fork on Framagit, and you're running your own local Node.js instance. From the message origin-when-cross-origin, it seems to be a CORS error, which is common in modern browsers.  The proper way to locally test Staticman is to use an HTTP client like Postman.  From the errorCode, it seems that your API path is incorrect.  Anyways, that's just my guess.

Using netlify functions now issue is a mute point CLOSING

@donaldboulton Do you have a link to your repo where you have switched to netlify functions?

@donaldboulton Do you have a link to your repo where you have switched to netlify functions?

@pacollins From the tone of his previous comments, it seems that your questions has to be answered by somebody else.  Perhaps you're referring to the repo for his web site: https://github.com/donaldboulton/DWB/.  If you type "netlify" in the search box, you'll see an array of merged PR's "automatically generated by Netlify CMS".

Tested staticman again. with v3  and the install app on github, it worked great for about 10 days and like always in the past 6 yrs Staticman is Still Dead again.
 Access to XMLHttpRequest at 'https://api.staticman.net/v3/entry/github/donaldboulton/publiuslogic/master/ratings' from origin 'https://publiuslogic.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. api.staticman.net/v3/entry/github/donaldboulton/publiuslogic/master/ratings:1 Failed to load resource: net::ERR_FAILED
Its the same on many other sites like Gatsby Central
On Gatsby Central you get the same response error as my publiuslogic.com site on ratings, and a Heroku error on comments as:
Application error on
https://api.staticman.net/v2/entry/GatsbyCentral/gatsbycentral.com/master/comments
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail.
Whay is this working then broken whats up.

Whay is this working then broken whats up.

That's reported in #307.


Migrate the cluster registry to use a CRD

This PR has many commits. I think it will be easier to review commit-by-commit rather than reviewing the entire PR at once.
As a follow-up to this, I (or someone else) will need to:

[ ] switch to a namespaced object
[ ] remove the unnecessary test jobs
[ ] figure out what needs to be done with LICENSES
[ ] create a release process for the CRD
[ ] figure out if/how to write a test to verify that the kubebuilder generated code is up-to-date
[ ] close bugs made irrelevant by this PR
[ ] validation

/sig multicluster
cc @font @pmorie @madhusudancs

/assign @pmorie @madhusudancs @font

The test failures are expected: bazel isn't used anymore in the repo, and the code generation does not have a verification script working yet.

@pmorie Yes, I do: I've removed all the bazel infrastructure, as well as the code generation scripts. I think I will submit a PR to remove the bazel jobs when this PR is approved, just before merging; and I can add a dummy script that makes the pull-cluster-registry-verify-gensrc pass, before later adding support for verifying the kubebuilder generation.

@perotinus that sounds like a sensible approach.

/retest

/retest

@pmorie Any objections to this going in?

The only other thing we need to add to the list of follow-ups is validation for this CRD.
/lgtm

Thanks!
/lgtm


Running linter with all tags in .md files

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information

[ ] The title of the PR is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[ ] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
[ ] If applicable, the PR references the bug/issue that it fixes.
[ ] Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

[ ] I have read the contribution guidelines.
[ ] My spec meets the review criteria:

[ ] The spec conforms to the Swagger 2.0 specification.
[ ] The spec follows the guidelines described in the Swagger checklist document.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.

@dsgouda can you tell me more on what changed since the last review?

@veronicagg @fearthecowboy fixed some file paths which caused the CI to fail last time around

No modification for AutorestCI/azure-sdk-for-python

No modification for AutorestCI/azure-sdk-for-node

No modification for AutorestCI/azure-sdk-for-ruby


Add declarative approach to produce mdx query returning pd.DataFrame or csv

However, airflow doesn't encourage using XCom to transfer large data, we may need to save it as csv
user inputs
MDXQueryOperator(
conn_id='',
cube_name='this is cube name',
**execute_mdx_datafram_parameters,
dim_0=['ele 1'], #single-element
dim_1=['ele 1', 'ele 2'], #multiple-element
dim_2='TM1FilterByLevel(TM1SubsetAll([dim_2].[dim_2]), 0)', # capable to receive subset mdx
dim_3=None, # default subsetall
dim_4={'this is Hierarchy': ['ele 1', 'ele 2']}    # when user required to get elements from other hierarchies with using multi or single element
)

brief operation
def MDXQueryOperator(**param):
  dimension_name_mapping = CaseAndSpaceInsensitiveSet(tm1.cube.get(cube_name).dimensions)
  assert dimension_name_mapping == CaseAndSpaceInsensitiveSet(param), 'dimension not match'
  param_with_correct_keyname = {dimension_name_mapping[p.replace('_', '').lower()]:value for p, value in param.items()}

  if value is None:
    value = 'TM1SubsetAll([dim].[dim])'

  # generating mdx
  tm1.cells.execute_mdx_dataframe(cube_name, mdx).to_csv(path, index=False, encode='utf-8')

@Cubewise-JoeCHK @MariusWirtz created a draft PR
which adds MDXQueryOperator, but in a slightly simpler way. It simply allows passing any MDX and then calls back passing the returned DataFrame as input to the post_hook function that is provider as parameter of MDXQueryOperator. All the parameters of  tm1.cells.execute_mdx_dataframe are supported as optionals.
@Cubewise-JoeCHK It's not a declarative MDX "pseudo-language" so it still requires the users core understanding of the MDX language and the TM1 model they use.


Unable to enable traffic analytics in NSG flow logs when using inherited permissions on the subscription

[Enter feedback here]
As also mentioned in #113313, when trying to enable traffic analytics in NSG flow logs, I get the following error:
"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.\",\"details\":[{\"code\":\"TAUserDoesNotHavePermissions\",\"message\":\"User does not have permissions to enable Traffic Analytics. Please refer to https://docs.microsoft.com/en-us/azure/network-watcher/traffic-analytics#user-access-requirements to know more.\"
My account has inherited owner permissions on the subscription from the above management group. When I make my account direct owner at the subscription scope, I can successfully enable Traffic analytics. Please make this clear in the documentation that it currently won't work with inherited permissions.

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

ID: 59a0b9f5-9071-5e89-5f52-ca8fb2dbc90b
Version Independent ID: 61a1736f-56c1-7950-72b3-907f32689ca4
Content: Traffic analytics - Azure Network Watcher
Content Source: articles/network-watcher/traffic-analytics.md
Service: network-watcher
GitHub Login: @halkazwini
Microsoft Alias: halkazwini

@MarcoJanse
Thanks for your feedback! We will investigate and update as appropriate.

@MarcoJanse
Thank you for bringing this to our attention.
I've delegated this to content author @halkazwini, who will review it and offer their insightful opinions.

@MarcoJanse
Thank you for your feedback!
Would you be able to open a support ticket so that the product group can get your account info?

Hi @halkazwini .
My own subscription is a Visual Studio Enterprise subscription for lab/testing purposes, so I only have basic support on the subscription. (Billing and subscription support, without technical support)

@MarcoJanse
Can you send me your subscription ID, regions, NSG name and Workplace ID to share with the product group? Use my GitHub alias at MS.com

@MarcoJanse I assume you received my previous reply in your email. I'm deleting that message.

Hello Hussein,
Thank you for reaching out.
Here are the details requested + a bit more information.

Subscription ID: b89c0508-fa65-459a-a4fa-7e3b1c907671
*
Regions used: North Europe
*
NSG name: (see attached csv fle for all the NSGs. I've made an export of the configured NSG flow logs after giving my account explicit owner permissions on the subscription, all the NSG resource ID's are in the TARGET RESOURCE collumn)
*
Log Analytics Workspace ID: 44ad5493-a702-4097-821d-d1ba419f236c
*
Resource ID log analytics workspace resource ID: /subscriptions/30ff91cf-356d-4e30-b506-7687c4599923/resourceGroups/rg-pltf-alz-logging/providers/Microsoft.OperationalInsights/workspaces/log-alz-shd-001
I've also attached the json error logs when trying to configure this with inherited owner permissions from the intermediate root management group.
Let me know if you need any additional information
Kind regards,
Marco Janse

From: Hussein Al Kazwini @.>
Sent: Wednesday, April 24, 2024 9:35 PM
To: MicrosoftDocs/azure-docs @.>
Cc: Marco Janse @.>; Mention @.>
Subject: Re: [MicrosoftDocs/azure-docs] Unable to enable traffic analytics in NSG flow logs when using inherited permissions on the subscription (Issue #121852)
@MarcoJansehttps://github.com/MarcoJanse
Can you send me your subscription ID, regions, NSG name and Workplace ID to share with the product group? Use my GitHub alias at MS.com
—
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/121852#issuecomment-2075699810, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFFQIM4ZMTL5IMZLEJUDZMDY7ACRZAVCNFSM6AAAAABGS36VOWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZVGY4TSOBRGA.
You are receiving this because you were mentioned.Message ID: @.***>

I accidentally replied to this thread, but it's deleted as well and you should have all the details now via email.

Hi @MarcoJanse
Thank you for your feedback!
I'm closing this GitHub issue and creating an internal tracking work item to address it. If you have any additional information you would like to provide, please respond to this issue with any additional details.
Please continue to provide feedback about Azure documentation. We appreciate your contributions to our community. #please-close


[Request] making kopia-mon available via pypi?

Hey,
I just stumbled upon kopia-mon, because my backup was 3 weeks out of date. ;)
I'm not that proficient in using python venv's but I'm used to using pip install  to just install whatever comes around.
I don't have a clue how hard it is in the first place and how much work it is to maintain this, but would it be possible to make this brilliant tool available via pypi.org?
Maybe I can even can help with that?
Best regards
Benjamin

Unfortunately I don't think it's possible to install this program through pypi because it needs to setup the directory structure with the HTML templates and config file and, as far as I know, that is not possible with a python package.  That said, using a venv is just a best practice, you don't have to use it if you're ok with installing all the dependencies to your main Python environment. Just follow the setup instructions and ignore the virtual environment.

Hey @ekutner and thanks for your response!
Well that's sad, I'd hoped it is comparable to something like rpm or deb packages with their feature set.
I'd like to keep the OS env as clean as possible, sure venv's seem to be clean as well, but some tedious hand work to get it running.
Anyway, would something like docker work in that regard?
I would figure that out myself and if you like, would MR this here, maybe someone else has use for that aswell.
Thanks

docker can certainly work but it's a serious overkill for a small python program that runs once a day.
Setting up a venv is really very easy:

go the to program folder
create the venv using: python -m venv .venv
activate the venv using .venv/bin/activate (assuming you're on linux)
Now you can install using pip and run python as usual, except it will be using the venv as the python environment

Yeah that might be the case, but i'd like to apply a standardized way of managing tools even just batch jobs like these.
I think I need to get used to venv and see how far I can get to make it that way. ;)
I had to use "source .venv/bin/activate" because activate is not executable by default

ok, so it sounds like you figured out a way that works for you. any reason to keep this issue open?

Good morning,
Yes I did and this can be closed.
I'm currently working on the docker image and will open an MR when it's working. 😉
Thanks for your support!


[INLONG-5302][Manager] Supports the extension of data consumption for different MQs

Prepare a Pull Request

Fixes #5302

Motivation
Supports the extension of data consumption for different MQs

Thanks for your contribution🎉
Please add more info for the PR.


SA1102 documentation should include a working C# snippet example

Hi!
I'm reading https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1102.md and I got confused while reading the code example for the rule. It does not seem compilable C# for me.
I created a fully working example, feel free to use it as you wish.
int[] c = { 1, 2, 3, 4, 5 };
int a = 2;

IEnumerable<int> query = from item in c
                         where item == a

                         select item;

I'm not sure we need to include a complete example that compiles, but we should definitely fix the cases where from and select were reversed.


isRhetoricalGroup duplicate

Is it a mistake that there is an individual and a property of the same name?

Also appears as an individual of the Thing class which seems a bit odd.

I'm assuming this is an error. I have removed the individual isRhetoricalGroup


Add POST /secret API for core-command

🚀 Feature Request
Relevant Package [REQUIRED]

 This feature request is for core-command
Description [REQUIRED]
From Levski release, core-command service adds support for an external MQTT connection: https://docs.edgexfoundry.org/3.0/microservices/core/command/Ch-Command/#commands-via-messaging
In some cases, credentials and/or certificates are required to establish a connection.
Describe the solution you'd like
Implement a new API:
POST /secret

@lenny-intel may we implement this to resolve https://github.com/edgexfoundry/edgex-docs/issues/1034?

@lenny-intel may we implement this to resolve edgexfoundry/edgex-docs#1034?

@cloudxxx8 , will have to go into 3.1
Note that all services have the ability to seed secrets vis Secrets File. Please use this option in https://github.com/edgexfoundry/edgex-docs/issues/1034.
https://docs.edgexfoundry.org/3.0/security/SeedingServiceSecrets/#secrets-file

this issue will be resolved once https://github.com/edgexfoundry/go-mod-bootstrap/issues/478 is implemented

@cloudxxx8 , can this be closed since https://github.com/edgexfoundry/go-mod-bootstrap/issues/478 is completed?

yes, we have applied it to edgex-go, and Cherry created the new tests for it
https://github.com/edgexfoundry/edgex-taf/pull/862


javaSE and javaEE links in the readme file don't reference the latest version of the library

Bug Report
It seems that the README file for the repo references version 4.10.1 of the library. This should be fixed to always reference the latest version.

Fixed with #1450


Checking video in folder and deleting file if download error

The reason why i've made this PR is unstable internet connection out of the city. Main idea is to start downloading from last downloaded video which is very important for users with not good internet. Code checks for file existing and downloading starts if he doesn't. There is also two exceptions which
delete file if something goes wrong. This is using Control-C (KeyboardInterrupt) and partially downloaded file (ContentTooShortError).

Please add description, which logic you follow with this PR.
As I see, idea is to give ability to continue download from failed file, if something happened.

Merged! Sorry, somehow missed your update 👍


Callback not working properly

Vivus 0.3.1
all browsers
Callback not working properly: it is called at the start of animation and not at the end

Sorry, solved, my mistake


Review for Helm Chart

Describe the problem/challenge you have
At our company, Link Society, we are currently working on a supervision engine on Kubernetes: Kubirds.
Its dependencies provide no Helm charts, therefore upgrading and uninstalling becomes an issue.
Fortunately kapp and kapp-controller resolves this versioning problem.
Since we're looking at integrating our product on the DigitalOcean Marketplace, we were looking to integrate our dependencies as well.
This means also integrating kapp-controller in the marketplace (Work In Progress on our side).
But only helm and kubectl are officially supported in their workflow (no kapp)
Describe the solution you'd like
To integrate kapp-controller to their marketplace, we started writing and maintaining an Helm Chart based on the latest release (0.20.0), the PR to our own Helm repository can be found here: link-society/charts#29.
We would appreciate if people could review this chart and maybe give us insight on how it could be integrated upstream.

Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.

Hey @linkdd! Thank you for opening this.
Think it would be great for some of us in the Carvel community to take a look at Link Society's use of kapp-controller. We can follow up in the pr you have linked.
I had some follow up questions as well based on some of the information provided. Looking forward to your responses.

Its dependencies provide no Helm charts, therefore upgrading and uninstalling becomes an issue.

Fortunately kapp and kapp-controller resolves this versioning problem.

To understand a little more about your use case, are you saying Kubirds has dependencies and you are using kapp-controller's package management API concepts to address this? Something else? Just trying to gain more understanding of how you are all using kapp-controller.

Since we're looking at integrating our product on the DigitalOcean Marketplace, we were looking to integrate our dependencies as well.

This means also integrating kapp-controller in the marketplace (Work In Progress on our side).

But only helm and kubectl are officially supported in their workflow (no kapp)

I am curious to learn a bit more about the process of integrating a product into the DigitalOcean Marketplace. What is the workflow that is used for including products in the marketplace? Perhaps it might be worth trying to include kapp.

We would appreciate if people could review this chart and maybe give us insight on how it could be integrated upstream.

As far as contributing upstream, is your thought that the helm chart should be maintained as part of the kapp-controller repository itself? Something else?

Thanks for the reply @danielhelfand ! 😄

We can follow up in the pr you have linked.

That would be awesome, we would like confirmation about some aspects of the chart, like:

is more than 1 replica supported? (leader election)
are the annotations correct/useful, and how are they used by the source code?

To understand a little more about your use case, are you saying Kubirds has dependencies and you are using kapp-controller's package management API concepts to address this? Something else? Just trying to gain more understanding of how you are all using kapp-controller.

Kubirds relies on other technologies, like TektonCD, RabbitMQ and Redis.

TektonCD's upstream only provides a YAML to kubectl apply in your cluster
we install RabbitMQ via the official Cluster Operator, upstream only provides a YAML to kubectl apply as well
we install Redis via this Redis Operator, which provides an Helm Chart

Using kapp or the Application resource from kapp-controller, instead of kubectl apply allows easy upgrade/uninstall of those technologies.

I am curious to learn a bit more about the process of integrating a product into the DigitalOcean Marketplace. What is the workflow that is used for including products in the marketplace? Perhaps it might be worth trying to include kapp.

As described in this document, it is required to provide the following scripts:

deploy.sh to install the application
upgrade.sh to upgrade it
uninstall.sh to uninstall it

NB: It seems not all the stacks follows the rules
Using the kapp-controller would ease even more the integration of other stacks (such as the RabbitMQ Cluster Operator or TektonCD), because we would not need to maintain unofficial Helm charts for those.

As far as contributing upstream, is your thought that the helm chart should be maintained as part of the kapp-controller repository itself? Something else?

As for now, Link Society will maintain this chart, because it seems the deployment options of the kapp-controller are generated for each release. So adding the chart as-is upstream would only add burden to the team.
I was looking at the scripts in the hack/ folder of the repository that are used to generate the YAML manifests, and was wondering how we could write a script to generate the Helm Chart.
This would be, in my opinion, the best option.

Hey @linkdd,
Sorry for the late reply here. We'll be taking a look at your pr this week some time and thanks for the patience. To answer a few questions:

is more than 1 replica supported? (leader election)

Not at this time. We currently only ship with 1 replica. Is this something you are interested in seeing with kapp-controller?

are the annotations correct/useful, and how are they used by the source code?

Do you have an example of what annotations you are referring to? Do you mean the ytt data values found in the configuration (e.g. https://github.com/vmware-tanzu/carvel-kapp-controller/blob/84fbfc9e426bfc9b4200319c38de29b0b7f82598/config/deployment.yml#L25)?

As for now, Link Society will maintain this chart, because it seems the deployment options of the kapp-controller are generated for each release. So adding the chart as-is upstream would only add burden to the team.

That works for us as our team does not currently have much work planned around officially supporting a helm chart. But we can definitely answer questions for kapp-controller itself in your personal maintenance of the chart.

Hey @danielhelfand, thanks for the review!
I'm gonna upgrade the chart to the latest release (v0.21.0) before merging it.

Not at this time. We currently only ship with 1 replica. Is this something you are interested in seeing with kapp-controller?

Ok so I'll remove the variable replicaCount to avoid wrong configurations.
It's always interesting to allow multiple replicas for high availability. But leader election can be tricky 😄  (well, in Elixir, thanks to libcluster and horde, you can avoid leader election and have multiple replicas out of the box).

Do you have an example of what annotations you are referring to?

I was referring to this snippet in the Chart:
  annotations:
    kbld.k14s.io/images: |
      - Metas:
        - Type: git
          Dirty: false
          RemoteURL: {{ .Values.metadata.images.remote }}
          SHA: {{ .Values.metadata.images.revision }}
        URL: {{ .Values.image.repository }}:{{ .Values.image.tag }}

In the release.yml file you can find:
        - Path: /Users/embp/go/src/github.com/vmware-tanzu/carvel-kapp-controller
          Type: local

But I removed it, and I'm not sure what it does.
Also, in the CRD PackageRepository, there is this annotation:
  annotations:
    packaging.carvel.dev/global-namespace: {{ .Release.Namespace }}-packaging-global

Since its value is dynamic, it cannot resides in the crds folder of the chart (not templated). Forcing me to use a subchart (I still need to test every scenarios to ensure it works as expected).
But should it be dynamic? As of now, multiple instance of the same chart cannot all create/manage CRDs.
I'm not sure how this annotation is used and why it would be on the CRD.
IMHO, configuration options such as this should be in a ConfigMap and not as annotations.

Hello @danielhelfand,
Sorry to bother you again 😅
After installing the controller with my Helm chart, I get the following error:
{"level":"error","ts":1627479059.0715973,"logger":"controller-runtime.source","msg":"if kind is a CRD, it should be installed before calling Start","kind":"Package.data.packaging.carvel.dev","error":"no matches for kind \"Package\" in version \"data.packaging.carvel.dev/v1alpha1\"","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\tgithub.com/go-logr/zapr@v0.2.0/zapr.go:132\nsigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start\n\tsigs.k8s.io/controller-runtime@v0.7.0/pkg/source/source.go:117\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\tsigs.k8s.io/controller-runtime@v0.7.0/pkg/internal/controller/controller.go:159\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start\n\tsigs.k8s.io/controller-runtime@v0.7.0/pkg/internal/controller/controller.go:205\nsigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).startRunnable.func1\n\tsigs.k8s.io/controller-runtime@v0.7.0/pkg/manager/internal.go:691"}
{"level":"error","ts":1627479059.0721104,"logger":"controller-runtime.manager","msg":"error received after stop sequence was engaged","error":"Timeout: failed waiting for *v1.Secret Informer to sync","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\tgithub.com/go-logr/zapr@v0.2.0/zapr.go:132\nsigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).engageStopProcedure.func1\n\tsigs.k8s.io/controller-runtime@v0.7.0/pkg/manager/internal.go:547"}
{"level":"error","ts":1627479059.072306,"logger":"controller-runtime.manager","msg":"error received after stop sequence was engaged","error":"Timeout: failed waiting for *v1.Secret Informer to sync","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\tgithub.com/go-logr/zapr@v0.2.0/zapr.go:132\nsigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).engageStopProcedure.func1\n\tsigs.k8s.io/controller-runtime@v0.7.0/pkg/manager/internal.go:547"}
{"level":"error","ts":1627479059.072353,"logger":"controller-runtime.manager","msg":"error received after stop sequence was engaged","error":"context canceled","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\tgithub.com/go-logr/zapr@v0.2.0/zapr.go:132\nsigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).engageStopProcedure.func1\n\tsigs.k8s.io/controller-runtime@v0.7.0/pkg/manager/internal.go:547"}
{"level":"error","ts":1627479059.0726852,"logger":"kc.controller","msg":"unable to run manager","error":"no matches for kind \"Package\" in version \"data.packaging.carvel.dev/v1alpha1\"","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\tgithub.com/go-logr/zapr@v0.2.0/zapr.go:132\ngithub.com/vmware-tanzu/carvel-kapp-controller/cmd/controller.Run\n\tgithub.com/vmware-tanzu/carvel-kapp-controller/cmd/controller/run.go:240\nmain.main\n\tcommand-line-arguments/main.go:42\nruntime.main\n\truntime/proc.go:225"}
{"level":"error","ts":1627479059.0815861,"logger":"kc.init","msg":"Could not start controller","error":"exit status 1","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\tgithub.com/go-logr/zapr@v0.2.0/zapr.go:132\ngithub.com/vmware-tanzu/carvel-kapp-controller/cmd/controllerinit.Run\n\tgithub.com/vmware-tanzu/carvel-kapp-controller/cmd/controllerinit/run.go:38\nmain.main\n\tcommand-line-arguments/main.go:46\nruntime.main\n\truntime/proc.go:225"}

It seems there is a CRD Package missing, and I can't find it either in the release.yml nor in the config/crds.yml file from the repository.
Am I missing something?

annotations:
    kbld.k14s.io/images: |
      - Metas:
        - Type: git
          Dirty: false
          RemoteURL: {{ .Values.metadata.images.remote }}
          SHA: {{ .Values.metadata.images.revision }}
        URL: {{ .Values.image.repository }}:{{ .Values.image.tag }}

This is added by kbld, which we use to build the kapp-controller container image and include specific details on the image (e.g. the image digest).
annotations:
    packaging.carvel.dev/global-namespace: {{ .Release.Namespace }}-packaging-global

This annotation is used to help denote the global namespace for kapp-controller. Any repository or individual package installed to this namespace has global scope and can be seen across any namespace on the cluster. More here: https://carvel.dev/kapp-controller/docs/latest/packaging/#namespacing
It's mainly used for clients at this point (e.g. a CLI that is looking to list global resources).

It seems there is a CRD Package missing, and I can't find it either in the release.yml nor in the config/crds.yml file from the repository.

Am I missing something?

The Package resource is served by an aggregated API server that is backed by an internal CRD (i.e. InternalPackage)

Ok thanks, looking at the source code, I  found the problem:
https://github.com/vmware-tanzu/carvel-kapp-controller/blob/65963fdeca26912025d0aa5ab167cda2c3440f60/pkg/apiserver/apiserver.go#L201
The name of the service is statically defined, and in my chart the service is named {{ include "kapp-controller.fullname" . }}-packaging-api
So the API server cannot find the service which triggers a FailedDiscoveryCheck in the APIService resource.
Also: https://github.com/vmware-tanzu/carvel-kapp-controller/blob/65963fdeca26912025d0aa5ab167cda2c3440f60/pkg/apiserver/apiserver.go#L46
This line defines statically the name of the APIService resource, so I will not be able to make it a dynamic name in the Helm chart.
This means there is a tight coupling between the name of the resources and the operator, which prevents multiple release of the same chart in the cluster.
NB: Using an APIService would anyway prevents multiple release.
NB2: Using the name packaging-api could produce name clashes if the operator is installed in another namespace than kapp-controller (for example: default).
This means that, as of now, Helm should not be used to deploy the operator, which is a problem since we need to be able to upgrade/uninstall the operator and the kubectl apply method doesn't provide anything to support that.

@danielhelfand So, I've started a PR to parametrize those values. This would help greatly to finalize this Helm Chart 🙂

The PR has been merged, I'm waiting for the next release (I just upgraded from v0.21.0 to v0.24.0) then I'll close this issue 🙂
Also, would you be open to a PR adding this chart as an installation method on this page?

I finished the Helm chart with the latest version (0.27.0).
FYI, I created the PR to the DigitalOcean Marketplace: https://github.com/digitalocean/marketplace-kubernetes/pull/270


Refactor to Kotlin with MVVM

[x] Activities 間動畫改成縮放的
[x] LightTheme 深色
[ ] Adapter Refactor
[x] Settings Refactor
[x] 改進 CourseEditor Layout
[x] 主畫面 ToolBar Icon Color

d6ee306 Fire CourseEditorActivity from adapter

Adapter refactored with MVVM and Room Database


Feat sfm tracks manager review

Mostly cosmetics.

Remove AddTrack in favor of multiple AddObservations
Remove GetObservationsOfPointsAtShot in favor o GetObservations
Add NumShots and NumTracks
Rename  some point to track to uniformize notation
Shorten function names

LGTM. Thanks for unifying naming. While refactoring in mapillarysfm yesterday, I was "Mhhh, that naming doesn't look consistent actually" !


zhimi.fan.za5 rotation not working properly

Hi there
first of all many thanks for this neat integration, really love it ! I recently bought 2x  zhimi.fan.za5 and integrated them via this add-on which worked easy and reliable.
I noticed that the rotation-function is not working properly, the right-arrow (see screenshot) is greyed out and cannot be clicked. If I click on the left-arrow the fan turns all the way to the end and activates the oscillation-function.

Would be happy if you can have a look at it, I would expect that the fan turns a bit in either direction if you click on one of the arrows.
all the best
Andrew

Please try master branch.

first of all many thanks for having a look at it! sorry to ask but I dont understand what you mean by trying the master branch. I installed xiaomi-miot via HACS on my Home Assistant OS.

Try latest branch.


Feature/tda 12

Codecov Report
Base: 98.82% // Head: 98.82% // No change to project coverage :thumbsup:

Coverage data is based on head (a56ce72) compared to base (ac60772).
Patch has no changes to coverable lines.

Additional details and impacted files
@@               Coverage Diff               @@
##           feature/TDA-24     #388   +/-   ##
===============================================
  Coverage           98.82%   98.82%
===============================================
  Files                 125      125
  Lines                6281     6281
===============================================
  Hits                 6207     6207
  Misses                 74       74

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


from timeout: Timed out receiving message from renderer: 600.000

I am running my test in parallel on team-city build job, locally they are running fine but in team-city build is failing every time. Its all started after I have upgraded my chrome browser to version 73.
Bug report

Node Version: v8.11.4
Protractor Version: 4.0.14
Angular Version: 1.x
Browser(s): Chrome 73
Operating System and Version Windows 10
Output from running the test:

[22:43:11][Step 9/9] [chrome #01-0] Specs: C:\BuildAgent10-2\work\83588bb4a221d014\Cinema.Web\UIAutomation\1_testLaunchers\desktopTestLauncher.js
[22:43:11][Step 9/9] [chrome #01-0]
[22:43:11][Step 9/9] [chrome #01-0] (node:6924) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
[22:43:11][Step 9/9] [chrome #01-0] [22:32:25] I/direct - Using ChromeDriver directly...
[22:43:11][Step 9/9] [chrome #01-0]
[22:43:11][Step 9/9] [chrome #01-0] C:\Users\teamcity_build\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\error.js:639
[22:43:11][Step 9/9] [chrome #01-0]         throw new ctor(message);
[22:43:11][Step 9/9] [chrome #01-0]               ^
[22:43:11][Step 9/9] [chrome #01-0] SessionNotCreatedError: session not created
[22:43:11][Step 9/9] [chrome #01-0] from timeout: Timed out receiving message from renderer: 600.000
[22:43:11][Step 9/9] [chrome #01-0]   (Session info: chrome=73.0.3683.86)
[22:43:11][Step 9/9] [chrome #01-0]   (Driver info: chromedriver=73.0.3683.68 (47787ec04b6e38e22703e856e101e840b65afe72),platform=Windows NT 6.1.7601 SP1 x86_64)
[22:43:11][Step 9/9] [chrome #01-0]     at Object.checkLegacyResponse (C:\Users\teamcity_build\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\error.js:639:15)
[22:43:11][Step 9/9] [chrome #01-0]     at parseHttpResponse (C:\Users\teamcity_build\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\http\index.js:538:13)
[22:43:11][Step 9/9] [chrome #01-0]     at client_.send.then.response (C:\Users\teamcity_build\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\http\index.js:472:11)
[22:43:11][Step 9/9] [chrome #01-0]     at ManagedPromise.invokeCallback_ (C:\Users\teamcity_build\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:1379:14)
[22:43:11][Step 9/9] [chrome #01-0]     at TaskQueue.execute_ (C:\Users\teamcity_build\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2913:14)
[22:43:11][Step 9/9] [chrome #01-0]     at TaskQueue.executeNext_ (C:\Users\teamcity_build\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2896:21)
[22:43:11][Step 9/9] [chrome #01-0]     at asyncRun (C:\Users\teamcity_build\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2820:25)
[22:43:11][Step 9/9] [chrome #01-0]     at C:\Users\teamcity_build\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:639:7
[22:43:11][Step 9/9] [chrome #01-0]     at
[22:43:11][Step 9/9] [chrome #01-0]     at process._tickCallback (internal/process/next_tick.js:188:7)
[22:43:11][Step 9/9] [chrome #01-0] From: Task: WebDriver.createSession()
[22:43:11][Step 9/9] [chrome #01-0]     at Function.createSession (C:\Users\teamcity_build\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver.js:329:24)
[22:43:11][Step 9/9] [chrome #01-0]     at new Driver (C:\Users\teamcity_build\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\chrome.js:778:38)
[22:43:11][Step 9/9] [chrome #01-0]     at Direct.getNewDriver (C:\Users\teamcity_build\AppData\Roaming\npm\node_modules\protractor\built\driverProviders\direct.js:70:26)
[22:43:11][Step 9/9] [chrome #01-0]     at Runner.createBrowser (C:\Users\teamcity_build\AppData\Roaming\npm\node_modules\protractor\built\runner.js:198:43)
[22:43:11][Step 9/9] [chrome #01-0]     at C:\Users\teamcity_build\AppData\Roaming\npm\node_modules\protractor\built\runner.js:277:30
[22:43:11][Step 9/9] [chrome #01-0]     at _fulfilled (C:\Users\teamcity_build\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:834:54)
[22:43:11][Step 9/9] [chrome #01-0]     at self.promiseDispatch.done (C:\Users\teamcity_build\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:863:30)
[22:43:11][Step 9/9] [chrome #01-0]     at Promise.promise.promiseDispatch (C:\Users\teamcity_build\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:796:13)
[22:43:11][Step 9/9] [chrome #01-0]     at C:\Users\teamcity_build\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:556:49
[22:43:11][Step 9/9] [chrome #01-0]     at runSingle (C:\Users\teamcity_build\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:137:13)
[22:43:11][Step 9/9]
[22:43:11][Step 9/9] [22:42:57] I/testLogger -

Possibly update Protractor? You are several versions back. I would update Protractor first. Also there's no example so there is no way to debug this.

cnishina

Possibly update Protractor? You are several versions back. I would update Protractor first. Also there's no example so there is no way to debug this.

But my tests are working fine in local system, its only failing in Build server. Its look like Protractor is not able to create Browser session in build server, I am getting error message on build log "Process exited with code 100 (Step: Run UI Tests (Command Line))". If you see the stack trace issue is related to file "\npm\node_modules\protractor\node_modules\selenium-webdriver\http\index.js:538:13" thats protractor file. If I upgrade my protractor version will it compatible with my code or do I need to modify my UI tests so that it can run with new updated protractor.

I am also facing similar kind of issue by upgrading to chrome 73. My tests also running fine locally. But, failing on team city

@gaurabhi1986 Plaease update here if you find any sollution.

I also am facing the same issue.
My Teamcity windows build agents were upgraded to Chrome 73 and my e2mock builds using Protractor immediately started failing.
The google documentation says we should be using a new chromedriver for 73, see the top of the page here, while also saying down further that chromedriver-2.46 works with 73, so that adds to the confusion.  Regardless, Protractor still resolves that it should pair 73 with chromedriver-2.46.
Running the commands from cli from the same teamcity agent checkout directory works fine using the 73/2.46 combo:
[11:55:28] I/launcher - Running 1 instances of WebDriver
[11:55:28] I/direct - Using ChromeDriver directly...
##teamcity[testSuiteStarted name='about']
##teamcity[testStarted name='should have an accessible about.html page' captureStandardOutput='true']
##teamcity[testFinished name='should have an accessible about.html page' duration='4559']
##teamcity[testSuiteFinished name='about' duration='4575']
...
But when ran via the Teamcity job on the same agent fails to create the session:
[09:49:06][Step 3/3] [10:48:46] I/launcher - Running 1 instances of WebDriver
[09:49:06][Step 3/3] [10:48:46] I/direct - Using ChromeDriver directly...
[09:59:11][Step 3/3] [10:58:50] E/launcher - session not created
[09:59:11][Step 3/3] from timeout: Timed out receiving message from renderer: 600.000
[09:59:11][Step 3/3]   (Session info: chrome=73.0.3683.86)
[09:59:11][Step 3/3]   (Driver info: chromedriver=2.46.628402 (536cd7adbad73a3783fdc2cab92ab2ba7ec361e1),platform=Windows NT 6.1.7601 SP1 x86_64)

How did you solve this? I'm also experiencing the same issue with Chrome 73 on TeamCity

Probably the problem is in Crome v73?and cromedriver version. Here is the solution:
webdriver-manager update --versions.chrome 2.46
protractor 5.4.2
"--disable-features=VizDisplayCompositor"
https://stackoverflow.com/questions/55364056/timed-out-receiving-message-from-renderer-10-000-while-capturing-screenshot-usi


Istallation problems .exe wont open

Hi
When trying to install Electrum cash on win 7 64 bit the .exe won't open. I get the error message "Cannot open self C:\Users\ ..etc etc ..\Electron-Cash-2.9.4.exe or arctive C:\Users.. etc etc...\Electron-Cash-2.9.4.pkg".
Any help appreciated.

me too

its supposed to be run not installed

Ok,. But it didn't run either. Anyways I could run the application on another machine. Also with the same OS so i have still no clue why this happened,

try the verbose version

I did. Same problem

can you show me screen shot of verbose console output

I'm not sure what that is, but if that is something in the program its not possible since it won't open.

you dont know what that is?  You just told you "I did same problem".  Verbose version is on home page of electroncash.org

Im referring to console output,. not Verbose version.

Hey all
Please try for the correct software from https://electroncash.org/downloads/
Today i got same problem and my antivirus is blocking the link directly for windows as some trojan...!!
Beware of it and check the size of the new version exe downloaded; it should be around 31MB
Please check and keep away from trojans..
Thanks, may be it will help you all

Console is black command line window. If you don't even see that it means it is simply not running. Likely anti virus or something

Yes,. could be the antivirus. But as stated before I got it running on another laptop (with the same antivirus installed oddly enough) so no worries.
Thanx for helping!

3.0 is out


Libman restore does not working

From @kant2002 on September 5, 2018 8:39
If add libman.json to the project, then on new PC on the build files does not restored
Copied from original issue: aspnet/Blazor#1389

I ran into a similar issue. Started using Libman with an existing ASP.NET Core project by using "Manage Client-Side Libraries..." in Visual Studio.
As I added libraries to the libman.json, the resources would restore properly. As soon as I tried to do a clean build, they did not.
Adding the Microsoft.Web.LibraryManager.Build NuGet package manually to the project resolved this issue for me.

One option: When a user adds library files via the UI, or when a user activates "Manage Client-side Libraries", Visual Studio could prompt to Enable Restore on Build, which, if the user accepts, would add the LibMan Build NuGet package to the project.

@justcla restore on build is not the primary scenario we designed for.  The default behavior is that a user uses LibMan to download the files into their repo (and periodically to update them), but the files are checked in by default.  This is based on the way that many users who are not already using a package manager consume other libraries.
One could argue that we should be pushing them to use restore on build, but the same argument could easily be adjusted to saying that we should be pushing them to using a package manager.  LibMan is primarily aiming to bridge the gap for users who do not want a package manager.

To be clear, I'm not saying that LibMan should not support this scenario.  My concern is mostly about how complicated we make it to get started (by forcing decisions to users when they create the file) and pushing more advanced concepts too aggressively.
Managing package restore with LibMan can be tricky, especially since we support placing files, well, anywhere.  If you're going to avoid committing the fetched files, then you need to manage your .gitignore settings as well.  That's not something on our radar.

Same problem here. An internal exception is thrown when restoring using the LibMan CLI tool.
Restoring library<EMAIL_ADDRESS>System.Net.InternalException: Exception of type 'System.Net.InternalException' was thrown.    at System.Net.SecurityStatusAdapterPal.GetSecurityStatusPalFromInterop(SECURITY_STATUS win32SecurityStatus, Boolean attachException)    at System.Net.Security.SslStreamPal.DecryptMessage(SafeDeleteContext securityContext, Byte[] buffer, Int32& offset, Int32& count)    at System.Net.Security.SecureChannel.Decrypt(Byte[] payload, Int32& offset, Int32& count)    at System.Net.Security.SslStreamInternal.ReadAsyncInternal[TReadAdapter](TReadAdapter adapter, Memory1 buffer)
Failed to restore<EMAIL_ADDRESS>unpkg, wwwroot/lib/bootstrap/}"

[LIB000]: An unknown exception occurred`

Wait a second... I am using a package manager:  nuget.  Are you saying I shouldn't be using libman, in that case?  Then how do I restore these libraries using nuget?

Wait a second... I am using a package manager:  nuget.  Are you saying I shouldn't be using libman, in that case?  Then how do I restore these libraries using nuget?

Wait a second... I am using a package manager:  nuget.  Are you saying I shouldn't be using libman, in that case?  Then how do I restore these libraries using nuget?

Wait a second... I am using a package manager:  nuget.  Are you saying I shouldn't be using libman, in that case?  Then how do I restore these libraries using nuget?

Wait a second... I am using a package manager:  nuget.  Are you saying I shouldn't be using libman, in that case?  Then how do I restore these libraries using nuget?

Wait a second... I am using a package manager:  nuget.  Are you saying I shouldn't be using libman, in that case?  Then how do I restore these libraries using nuget?

Wait a second... I am using a package manager:  nuget.  Are you saying I shouldn't be using libman, in that case?  Then how do I restore these libraries using nuget?

Wait a second... I am using a package manager:  nuget.  Are you saying I shouldn't be using libman, in that case?  Then how do I restore these libraries using nuget?


.decorate on an ActiveRecord::Associations::CollectionProxy ignores current value

This is probably related to https://github.com/drapergem/draper/issues/646, but my specific problem is with unpersisted objects, i.e. if there is an unsaved object in an association in the same example code (user has_many posts), we get
>> user.posts.build title: 'unsaved post'
...
>> user.posts.map(&:name))
=> ["saved post", "unsaved post"]
>> user.posts.decorate.map(&:name))
=> ["saved post"]

This proves problematic when working with decorated values in nested forms, where if there is a validation error the form shows data as-is-in-db rather than as-is-in-this-page.
While there is a workaround (doing a .map(&:decorate) step explicitly), it seems like this is surprising behaviour, is it by design or accidental?

@riffraff
By design we should use Decorate Associated Objects and Collection Decorator
so if user has_many posts
we should create UserDecorator and PostsDecorator as follows.
class UserDecorator < Draper::Decorator
delegate_all
decorates_association :post, with: PostsDecorator
end
class PostsDecorator < Draper::CollectionDecorator
delegate_all
end
so when you try

user.posts.build title: 'unsaved post'

user.posts.map(&:name))
=> ["saved post", "unsaved post"] => correct ouput no need to use .map(&decorate)


use pagemenu in tabbar

When i try to use some pagemenus in a viewcontroller within tabbar, the barItem won't show correctly...

I haven't had any problems with using a tab bar controller so far. I would need to your code in order to figure out what's going on.

Resolved as of 2.0.0

Still not resolved...Items at the end of UITableView still not fully shown and its hidden under tabbar.
Worst sometime, view can't scroll.


How to get typings when using cdn?

I followed the instructions here // I'm using xlsx.full.min.js, but I'm getting this error:
Untyped function calls may not accept type arguments.ts(2347)

I tried looking for typings via DefinitelyTyped, since I didn't see any npm package for the official typings, should I just download it directly? Would that be allowed license wise?

For projects using yarn/pnpm/npm (like create-react-app or webpack-based projects), the tarballs should be used https://docs.sheetjs.com/docs/installation/frameworks
If you are making a simple site that expects typescript types, https://cdn.sheetjs.com/xlsx-0.18.9/package/types/index.d.ts is the latest type defs (you can vendor the types as well as the standalone script)
If neither approach applies, share a sample project


Update endpoint test to use service ids

This changes the two tests to more closely map to what
we wanted to test when we originally wrote these tests.
These tests were written before serviceId existed, which
is really want we want to use for testing.  These tests check
two things:

Ensure that the directory names (i.e the client names) match
the computed name based on the serviceId.  Existing services
still need overrides but new services shouldn't as many overrides.
Update the endpoints tests to be more direct about endpoint prefix
matching.  We really just care that everything in the endpoints.json
maps to something we can create a client for.  We now build the
list of acceptable keys by looking up the endpoint prefix.

Codecov Report

Merging #1484 into develop will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           develop   #1484      +/-   ##
==========================================
+ Coverage    71.39%   71.4%   +0.01%
==========================================
  Files          128     128
  Lines        14165   14165
==========================================
+ Hits         10113   10115       +2
+ Misses        4052    4050       -2

Impacted Files
Coverage Δ

botocore/__init__.py
100% <0%> (ø)
:arrow_up:

...vendored/requests/packages/urllib3/packages/six.py
65.89% <0%> (+0.92%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 67d8942...0a7023c. Read the comment docs.

@kyleknap Feedback incorporated.


(feat) More crate alternatives!

Describe the solution you'd like
We need more alternatives! Ideally people will make PRs suggesting sets of alternatives.

Maybe it can use the keyword thing on crates to automatically search for alternatives

Yeah i am keen to see how this might look. I might make another command chit keywords [some words] or chit keywords --crate=[something] will do a search with all matching keywords to the crate something.  🤔 See if i find it useful myself at all.


Office 365 add ins for outlook

How to auto active any add in when we are in compose mode?...
Is there any way to so this by using javascript api.
Thanks

No, there's no way to do that.


weave expose -h doesn't register with weaveDNS if there is an existing address

On current master:
vagrant@vagrant-ubuntu-vivid-64:~/weave$ ./weave launch
vagrant@vagrant-ubuntu-vivid-64:~/weave$ ./weave expose -h foo.weave.local
<IP_ADDRESS>
vagrant@vagrant-ubuntu-vivid-64:~/weave$ ./weave status dns
vagrant@vagrant-ubuntu-vivid-64:~/weave$

However on 1.2 branch:
vagrant@vagrant-ubuntu-vivid-64:~/weave$ ./weave launch
vagrant@vagrant-ubuntu-vivid-64:~/weave$ ./weave expose -h foo.weave.local
<IP_ADDRESS>
vagrant@vagrant-ubuntu-vivid-64:~/weave$ ./weave status dns
foo          <IP_ADDRESS>       weave:expose 4a:25:30:35:57:ef

Very surprised there is no smoke test for this - I'm pretty sure there was one, perhaps it got lost in a test refactoring. We should add one with the fix.

False alarm - I had already run weave expose once without -h. See
vagrant@vagrant-ubuntu-vivid-64:~/weave$ ./weave reset
vagrant@vagrant-ubuntu-vivid-64:~/weave$ ./weave launch
vagrant@vagrant-ubuntu-vivid-64:~/weave$ ./weave expose -h foo.weave.local
<IP_ADDRESS>
vagrant@vagrant-ubuntu-vivid-64:~/weave$ ./weave status dns
foo          <IP_ADDRESS>       weave:expose 1a:45:d3:32:58:2b

vs:
vagrant@vagrant-ubuntu-vivid-64:~/weave$ ./weave reset
vagrant@vagrant-ubuntu-vivid-64:~/weave$ ./weave launch
vagrant@vagrant-ubuntu-vivid-64:~/weave$ ./weave expose
<IP_ADDRESS>
vagrant@vagrant-ubuntu-vivid-64:~/weave$ ./weave expose -h foo.weave.local
<IP_ADDRESS>
vagrant@vagrant-ubuntu-vivid-64:~/weave$ ./weave status dns
vagrant@vagrant-ubuntu-vivid-64:~/weave$

Confirmed in 1.2 as well.

Closed by 94984df047dc2a32abc6d842519434c0fd7cd703 (why is GitHub not automatically closing these branch PRs when they get merged to master?)


Latest treex is incompatible with the latest treeo

At the time of writing the latest treex version is 0.6.10 and it depends on treeo which is at version 0.0.11. However, it is not possible to install treex with the latest treeo version due to the version constraint here:
https://github.com/cgarciae/treex/blob/b89c65ccad06beea2492d3a6594cd83432c6ec3b/pyproject.toml#L23
Doing so produces an error:
ERROR: Could not find a version that satisfies the requirement treeo<0.0.11,>=0.0.10 (from treex) (from versions: none)
ERROR: No matching distribution found for treeo<0.0.11,>=0.0.10

It appears that this version constraint is worthwhile however since if I override it I get a slew of test failures: https://gist.github.com/samuela/2cbb09f8f635bde4dab63cfc6ee105ed. They all look something like
    def apply(self: A, f: tp.Callable[..., None], *rest: A, inplace: bool = False) -> A:
        """
        `apply` is a wrapper over `treeo.apply` that passes `self` as the second argument.

        Arguments:
            f: The function to apply.
            *rest: additional pytrees.
            inplace: If `True`, the input `obj` is mutated.

        Returns:
            A new pytree with the updated Trees or the same input `obj` if `inplace` is `True`.
        """
>       return api.apply(f, self, *rest, inplace=inplace)
E       AttributeError: module 'treeo.api' has no attribute 'apply'

Hey @samuela!
Ah this should have been a version bump on treeo then, I wonder if I should do the version bump to 0.1.0 and remove 0.0.11 from pypi and github?

I think Treex is not at fault here.

Hey @samuela!
Ah this should have been a version bump on treeo then, I wonder if I should do the version bump to 0.1.0 and remove 0.0.11 from pypi and github?

Up to you! Just wanted to let you know of the situation, since I figured that you probably intended for the latest versions of treeo/treex to be compatible.

@samuela thanks a lot for reporting this! For some reason I initially thought it was a breaking change on the API but it was just bug. Fix found here: cgarciae/treeo#14

Awesome, thanks @cgarciae! https://github.com/cgarciae/treeo/pull/14 indeed does the trick for me. The version constraints in https://github.com/cgarciae/treex/blob/b89c65ccad06beea2492d3a6594cd83432c6ec3b/pyproject.toml#L23 still cap the treeo version allowed, but that's easy enough to patch around. Thanks!

@samuela I initially thought ^0.0.10 was equivalent to >=0.0.10,<0.1.0 but it seems to actually be >=0.0.10,<0.0.11 which is rather restrictive. I don't think its a problem right, latest updates are not relevent to the current state version of Treex, however Treeo's version will be bumped to the newest in #70 (might take a while).

Yeah I've fallen for this exact same thing! It's super confusing... It's not as issue for me here. Everything seems to be working as is now


WebSocketConnectionClosedException: Connection to remote host was lost.

Issue subject
Losing connection to websocket at random intervals
Expected behaviour
Uninterrupted connection
Actual behaviour
I'm losing  connection to websocket at random intervals - 1hr, 4hr, 16hr after successful connection to binance.
Environment

binance-connector-python 3.1.0
Python 3.11
OS: ManjaroLinux 23.0.0

Additional context
ListenKey is renewed every 15 minutes, and empty dict is returned without problems.
Connector v3 wss is being used.
on_error doesn't return anything which is normal behavior i assume cause the problem is websocket stream.
It happens on testnet (wss://testnet.binance.vision) and live environment (wss://stream.binance.com:9443)
I also logged and pinged google.com during this period and i didn't lose any packages when websocket error occurs
Syntax error
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/home/wojciech/trader/venv/lib/python3.11/site-packages/binance/websocket/binance_socket_manager.py", line 61, in read_data
    op_code, frame = self.ws.recv_data_frame(True)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/wojciech/trader/venv/lib/python3.11/site-packages/websocket/_core.py", line 406, in recv_data_frame
    frame = self.recv_frame()
            ^^^^^^^^^^^^^^^^^
  File "/home/wojciech/trader/venv/lib/python3.11/site-packages/websocket/_core.py", line 445, in recv_frame
    return self.frame_buffer.recv_frame()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/wojciech/trader/venv/lib/python3.11/site-packages/websocket/_abnf.py", line 338, in recv_frame
    self.recv_header()
  File "/home/wojciech/trader/venv/lib/python3.11/site-packages/websocket/_abnf.py", line 294, in recv_header
    header = self.recv_strict(2)
             ^^^^^^^^^^^^^^^^^^^
  File "/home/wojciech/trader/venv/lib/python3.11/site-packages/websocket/_abnf.py", line 373, in recv_strict
    bytes_ = self.recv(min(16384, shortage))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/wojciech/trader/venv/lib/python3.11/site-packages/websocket/_core.py", line 529, in _recv
    return recv(self.sock, bufsize)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/wojciech/trader/venv/lib/python3.11/site-packages/websocket/_socket.py", line 122, in recv
    raise WebSocketConnectionClosedException(
websocket._exceptions.WebSocketConnectionClosedException: Connection to remote host was lost.

Installed packages
aiohttp==3.8.4
aiosignal==1.3.1
async-timeout==4.0.2
attrs==23.1.0
backtrader==<IP_ADDRESS>
binance-connector==3.1.0
certifi==2023.5.7
charset-normalizer==3.1.0
contourpy==1.1.0
cycler==0.11.0
dateparser==1.1.8
fonttools==4.40.0
frozenlist==1.3.3
idna==3.4
kiwisolver==1.4.4
lxml==4.9.2
mailjet-rest==1.3.4
matplotlib==3.7.1
multidict==6.0.4
numpy==1.24.3
packaging==23.1
Pillow==9.5.0
pycryptodome==3.18.0
pyparsing==3.0.9
python-binance==1.0.17
python-dateutil==2.8.2
pytz==2023.3
regex==2023.6.3
requests==2.31.0
six==1.16.0
TA-Lib==0.4.26
tzlocal==5.0.1
ujson==5.8.0
urllib3==2.0.3
websocket-client==1.5.3
websockets==11.0.3
yarl==1.9.2

Hi,  I met the same issue "websocket._exceptions.WebSocketConnectionClosedException: Connection to remote host was lost.",   How to fix this?

I've used this package last year with v2 version. I bumped websocket-client==1.5.3 to latest 1.6.1 and got working it for 60hr. Didn't lose connection to remote host, but today at midnight i received following warning: 2023-07-01 00:00:01.802 UTC WARNING binance.websocket.websocket_client: CLOSE frame received, closing websocket connection got to look into it

Same situation. I'd like to see this resolved urgently.

After some testing and messing around, I found the issue is related to websocket-client itself. As a workaround i installed old legacy v2 connector binance-connector==2.0.0 which i've been using previously and isn't depending on websocket-client package. Can confirm my connection is up for 2 weeks straight already


How to manage overflown airtable records?

To delete multiple records using Airtable's API, you can send a DELETE request to the appropriate table's endpoint. The request allows you to delete multiple records at once by specifying their recordId values in a query string.
Here's the format for the API call:
API Endpoint:
DELETE https://api.airtable.com/v0/{baseId}/{tableName}

Query Parameters:

records[]: Array of record IDs you want to delete.

Example Request:
curl -X DELETE "https://api.airtable.com/v0/{baseId}/{tableName}?records[]=rec12345&records[]=rec67890" \
-H "Authorization: Bearer YOUR_API_KEY"

In this example, replace the following:

{baseId} with your Airtable base ID.
{tableName} with the name of the table where the records are located.
rec12345 and rec67890 with the actual record IDs you want to delete.
YOUR_API_KEY with your Airtable API key.

JSON Response Example:
If the operation is successful, you will receive a response like this:
{
  "records": [
    {
      "id": "rec12345",
      "deleted": true
    },
    {
      "id": "rec67890",
      "deleted": true
    }
  ]
}

This request will delete the specified records from the Airtable base.

The maximum number of records you can retrieve in one API call from Airtable is 100 records.
If you have more than 100 records in your table, Airtable provides a pagination mechanism. You can use the offset parameter returned in the response to retrieve additional records by making subsequent requests.
Example of Handling Pagination:

In the response, you will receive an offset field if there are more records to fetch.
Use this offset value in the next API request to get the next batch of records.

Example of an API Request (with Pagination):
curl -X GET "https://api.airtable.com/v0/{baseId}/{tableName}?maxRecords=100" \
-H "Authorization: Bearer YOUR_API_KEY"

If the response includes an offset, your next request should look like this:
curl -X GET "https://api.airtable.com/v0/{baseId}/{tableName}?maxRecords=100&offset=recXXXXXXXXX" \
-H "Authorization: Bearer YOUR_API_KEY"

Repeat this process until there is no offset field in the response, meaning you have retrieved all records.

To get the total number of records in an Airtable table using the API, you will need to paginate through the records and count them manually. Airtable’s API does not provide a direct way to get the total count of records in a single call. However, you can keep track of the number of records retrieved in each API call and sum them up until there are no more records (i.e., when the offset is no longer returned in the response).
Here’s how you can do it:
Step-by-Step Approach:

Make the first API call to get up to 100 records.
Check for the offset in the response. If it exists, it means there are more records to retrieve.
Keep making API calls using the offset value until there is no offset in the response.
Count the records in each batch and sum them to get the total number of records.

Example of Initial API Call:
curl -X GET "https://api.airtable.com/v0/{baseId}/{tableName}?maxRecords=100" \
-H "Authorization: Bearer YOUR_API_KEY"

Example of Response:
{
  "records": [
    { "id": "rec12345", "fields": { "Name": "Record 1" } },
    { "id": "rec67890", "fields": { "Name": "Record 2" } }
  ],
  "offset": "recXXXXXXXXX"  // Include this in your next request if present
}

Subsequent Requests:
If an offset is returned, continue making requests using the offset value:
curl -X GET "https://api.airtable.com/v0/{baseId}/{tableName}?maxRecords=100&offset=recXXXXXXXXX" \
-H "Authorization: Bearer YOUR_API_KEY"

Count Records in Each Batch:

The number of records in each batch can be counted by the length of the records array in the response.
Keep a running total of the records you receive until no offset is provided, indicating that all records have been fetched.

Alternative Approach Using Third-Party Integrations:
If you want a direct count without manually counting via pagination, you can use third-party integrations or tools like Airtable Scripting or Airtable Apps (formerly Blocks), which provide easier ways to get the total record count from within the Airtable UI.


Bug - ELB updates every reconcile when running multiple listeners

Description of your changes
If multiple listeners are added to an ELB, the controller compares the current state with the desired state, but the listeners' list is not sorted, causing endless updates.
Each time the controller updates, the listeners are removed and added again, causing the AWS API rate limit to be exceeded.
Fixes #
I have added a sort function for the current state and the desired state and tested it using my local Kind cluster.
I have:

[V] Read and followed Crossplane's contribution process.
[V] Run make reviewable test to ensure this PR is ready for review.

How has this code been tested
This code has been tested using Kind cluster.

@MisterMX  can you please check the master branch ? linter is failing


Fixed #28116 -- Used error code filtering in PostgreSQL test database creation.

Ticket 28116.

Awesome! Maybe using a constant (like DATABASE_ALREADY_EXISTS) instead of the code would even eliminate the need for a comment?

@claudep Thanks for review. I replaced error code 42P04 with equivalent psycopg2.errorcodes.DUPLICATE_DATABASE.

@timgraham Thanks for review. I updated PR.


Add a Dockerfile specific for local use.

This adds a Dockerfile, named Dockerfile-local that's used
when running a local version of the code.
The only difference in this file is that it omits the yarn build
command. This:

Makes things faster. A build will be executed when the local
application server starts, which is duplicative. After this
change this will only happen once.
Formatting errors won't cause the stack to fail to start. The
UI will still display the error message until it's resolved,
but the container will still start so that resolution can be
done without rerunning docker compose up.

Thanks to @vtcaregorodtcev for discovering this.


Handling blacklisted delivery statuses from Granicus

Value Statement
As VANotify admin
I want to handle black listed delivery statuses as complaints
So that these delivery statuses are handled properly
Acceptance Criteria
GIVEN VANotify receives a delivery status that is "blacklisted"
WHEN receiving statuses back from the Granicus webhook
THEN VANotify will create a compliant for that notification
AND notify VANotify Team #381
Acceptance Criteria
GIVEN VANotify receives a delivery status that is not "blacklisted"
WHEN receiving statuses back from the Granicus webhook
THEN VANotify will not create a compliant for that notification
AND will not notify VANotify Team #381

desk checked with Maria and Deven

Verified both acceptance criteria during desk check
we have both a positive and negative test to demonstrate when  complaint is "Blacklisted" and when it is not.


Unsupported Media ?

Hi,
any idea why I get an error when trying to use this video :
https://vimeo.com/201170382

video.js:22933 VIDEOJS: ERROR: The "Vimeo" tech is undefined. Skipped browser support check for that tech.

video.js:22933 VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) No compatible source was found for this media.
MediaError

"No compatible source was found for this media."

Best Regards Marc

Just noticed that I get that error , 'sometimes'
https://goo.gl/KtvnGq

Hey!
I tried the video url (https://vimeo.com/201170382) you provided, and it's working correctly for me in the index.html example. From your error, it looks like you are not including the videojs-vimeo script (one of those: https://github.com/didacte/videojs-vimeo/tree/master/dist).
The url in your second comment looks like this for me right now:

It seems like this is the same problem, the videojs-vimeo script is not loaded.
I'm going to close this since it's not a bug in the plugin per se, but feel free to continue the conversation if you have more details. 😄
Cheers!


Deployment get stuck when CLOUDTRAIL_AUDIT_LOGS=none

Describe the bug
During the solution deployment, if the parameter "CLOUDTRAIL_AUDIT_LOGS=none" inside the parameters.sh, the stack "amplify-teamidcapp-main--customcloudtrailLake-" gets stuck.
To Reproduce
Steps to reproduce the behavior:

git clone https://github.com/aws-samples/iam-identity-center-team.git
cd deployment
cp -n parameters-template.sh parameters.sh
Fill out the parameters.sh file, with CLOUDTRAIL_AUDIT_LOGS=none
./init.sh
./deploy.sh

Expected behavior
CloudFormation stack should be deployed without errors
Additional context
Add any other context about the problem here.

I just found a workaround during the deployment. Once the CloudFormation stack "amplify-teamidcapp-main--customcloudtrailLake-" gets stuck, you can do the following:

Go to CloudTrail Lake
Go to Event data stores
Find the event data source related to the deployment and click on it
Go to Actions -> Start ingesting

After I did this, the CloudFormation stack got completed. After it was completed, I stopped the logging ingestion once again.


Several bugs in the teleport MAP area and Region Bouncing

We did try  8 people to reproduce the bug, at first login as Grid Owner, then Teleport using the MAP not an LM or Teleport home that works fine, use the map and click on a certain region (on the map) then Teleport and you'll see that you end up under the ground or under the floor or underwater Z shows 1, now look at Landings point you see for example  233, 127, 24 click teleport and now you end up at the right location (be aware, this only happens as Grid Owner. LM's also work just fine, it's only if you use the MAP as Grid Owner all normal users do not get this, why? Then Bounce, you create a region, want to use it and you start to bounce this will happen with every user  ..  if the Grid Owner re-starts that region its mainly over and the bouncing stops, however in our scenario not, Vinhold has a Sandbox and I have a Sandbox they are on top of each other so close if you restart the regions the bouncing does not stop, I assume its a Bug that are two in meantime.  Target Halcyon. 41
Regards,
Ana

Seems nobody has a  clue why we bouncing on two regions?
Target Halcyon. 41
Regards,
Ana Green

The bouncing is a Physics issue | If I  turn (Debug) Physics off the bouncing stops but only for two regions so maybe the regions simulators?   Any ideas?
Ana Green

Bouncing issue solved, had to re-upload on both regions terrain.raw and the bouncing stopped, I still see this as a bug because it should NOT happen that way - Thank you Vinhold for the tip -
Regards,
Ana Green
I am closing this issue though I think it is a bug.


feat(config): support native casting for get functions

Hey, I just made a Pull Request!
This one has been bothering me for a while having to explicitly cast when using config.get or config.getOptional
:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)

Tugboat has finished building the preview for this pull request!
Link:

https://pr4620-nwzqjvmpcubrtrlqb2maixfaqfdseseg.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/603273f1fcb22d48375bf4dd


Assertion functions don't propagate across fn boundaries

🔎 Search Terms
asserts, narrow, multiple, combine
🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about asserts

⏯ Playground Link
https://www.typescriptlang.org/play?#code/DYUwLgBAHhC8EEYBQpIE86JeCAvTyAZgK4B2AxmAJYD2pEhNNAFFAFwSnEC2ARiACcAlBwCGAZ3GCw46BCqyEEAN4BfJEhIVqdBkwBMzNBy59BAGjwme-YSqQQ9LNEIdPmuV+s1NWr8nTiNKAAdMA0AOZ+SAD0MY4JiRAAegD8Gow0hmiWnkgBpEGh4VE5eK5xSUlpSEA
💻 Code
let y = 1
function foo(x: number): asserts x is 1 {}

function foo2(y: number) {
  foo(y)
}

foo(y) // y is 1
foo2(y) // y is number

🙁 Actual behavior
y is a number instead of getting the result of narrowing via the assertion function foo.
🙂 Expected behavior
foo2's return is dominated by foo's return and should adopt it's narrowing.
Additional information about the issue
This came about trying to figure out a way to have an assertion function that covers more than 1 variable reference:
// using comma operator in return slot just for demo purposes
function isMember(user: User, org: Org):
asserts user is (typeof user & Member<typeof org['id']>),
asserts org is ActiveOrg
{
}

This is largely intentional; assertion functions are never inferred since it's not always the case that that's an intended effect of your function.

@RyanCavanaugh sounds good, but this isn't a valueful return, the return in the example was just showing it is just intended to assert over 2 things was how I found this; having a way to assert over 2 variables would equally satisfy things but that seems like it would be a grammar change / more of a feature than a bug

Right, but if it were inferred as one, then it looks like a bug when you to from this
function fn(y: string | number) {
  assertIsString(y);
}
// Elsewhere
let x: string | number = ...;
fn(x);
x.substr(0);

to this
function fn(y: string | number) {
  assertIsString(y);
  return y.length;
}
// Elsewhere
let x: string | number = ...;
fn(x);
x.substr(0);

and the code in 'elsewhere' changes for no apparent reason