Script process is running for hours but never calls OpenAI API

Hi Jehna,
Thank you for sharing this project.
I'm running this on a Debian Bookworm VM on my Intel Mac.
The script starts and creates the folder named after the output file with the deobfuscated.js in it.    It also creates several temp files in /tmp/tsx-0.    When I look at the process list call stack I see esbuild as the top most process being run.    The top command shows it using CPU/memory and the logs show the following:
0 verbose cli /usr/bin/node /usr/bin/npm
1 info using<EMAIL_ADDRESS>2 info using<EMAIL_ADDRESS>3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 2ms
5 timing config:load:file:/usr/share/nodejs/npm/npmrc Completed in 4ms
6 timing config:load:builtin Completed in 4ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/root/decode/humanify/.npmrc Completed in 1ms
10 timing config:load:project Completed in 3ms
11 timing config:load:file:/root/.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:setEnvs Completed in 1ms
16 timing config:load Completed in 12ms
17 timing npm:load:configload Completed in 12ms
18 timing npm:load:mkdirpcache Completed in 1ms
19 timing npm:load:mkdirplogs Completed in 0ms
20 verbose title npm start --key=sk-redacted --4k -o x.js x.js.org
21 verbose argv "start" "--" "--key=sk-redacted" "--4k" "-o" "x.js" "x.js.org"
22 timing npm:load:setTitle Completed in 1ms
23 timing config:load:flatten Completed in 3ms
24 timing npm:load:display Completed in 4ms
25 verbose logfile logs-max:10 dir:/root/.npm/_logs/2024-06-26T15_16_38_973Z-
26 verbose logfile /root/.npm/_logs/2024-06-26T15_16_38_973Z-debug-0.log
27 timing npm:load:logFile Completed in 5ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 24ms
31 silly logfile start cleaning logs, removing 1 files
32 timing config:load:flatten Completed in 0ms
33 silly logfile done cleaning log files

However, When I look at my network traffic from the VM I don't see any connections to OpenAI's API endpoint.
Is it normal for it to run this long (several hours) with no errors being thrown and no API calls??
I'm not a regular node user (JavaScript, but not Node).  So I'm not sure how to debug this or if something is amiss.
Is it stuck in a loop?
Thanks
-Daniel

Which flags are you using to run humanify?

Oh, right the verbose output has argv output too. Let me check if that still works on my machine

npm start --key=sk-redacted --4k -o x.js x.js.org

@jehna Look like it was grinding away with 65,000+ tokens.  However, It died.
      url: 'https://api.openai.com/v1/chat/completions'
    },
    request: <ref *2> ClientRequest {
      _events: [Object: null prototype] {
        abort: [Function (anonymous)],
        aborted: [Function (anonymous)],
        connect: [Function (anonymous)],
        error: [Function (anonymous)],
        socket: [Function (anonymous)],
        timeout: [Function (anonymous)],
        finish: [Function: requestOnFinish]
      },
      _eventsCount: 7,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      destroyed: false,
      _last: true,
      chunkedEncoding: false,
      shouldKeepAlive: false,
      maxRequestsOnConnectionReached: false,
      _defaultKeepAlive: true,
      useChunkedEncodingByDefault: true,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      strictContentLength: false,
      _contentLength: 2628,
      _hasBody: true,
      _trailer: '',
      finished: true,
      _headerSent: true,
      _closed: false,
      socket: <ref *1> TLSSocket {
        _tlsOptions: {
          allowHalfOpen: undefined,
          pipe: false,
          secureContext: SecureContext { context: SecureContext {} },
          isServer: false,
          requestCert: true,
          rejectUnauthorized: true,
          session: Buffer(1737) [Uint8Array] [
             48, 130,   6, 197,   2,   1,   1,   2,   2,   3,   4,   4,
              2,  19,   2,   4,  32,  70, 145,  89,  53, 171, 164,  45,
             32, 245, 145,  80, 250,  97,  94, 143,  83,  40,  17, 148,
             98, 155, 251, 177, 114, 211, 136, 136,  82,  40,  98, 220,
             92,   4,  48, 158, 151,  61, 236,   1, 160,  77, 213, 156,
            112, 149,  89, 208, 110, 114,  82, 102,  25,  38,  49, 191,
            131,  30, 167, 147,  13,   4, 112,  95,  72,   6, 180, 117,
            193, 174, 160, 144, 218, 242,  62,  77,  50, 108,  72,  58,
             12,  48,  41, 161,
            ... 1637 more items
          ],
          ALPNProtocols: undefined,
          requestOCSP: undefined,
          enableTrace: undefined,
          pskCallback: undefined,
          highWaterMark: undefined,
          onread: undefined,
          signal: undefined
        },
        _secureEstablished: true,
        _securePending: false,
        _newSessionPending: false,
        _controlReleased: true,
        secureConnecting: false,
        _SNICallback: null,
        servername: 'api.openai.com',
        alpnProtocol: false,
        authorized: true,
        authorizationError: null,
        encrypted: true,
        _events: [Object: null prototype] {
          close: [
            [Function: onSocketCloseDestroySSL],
            [Function],
            [Function: onClose],
            [Function: socketCloseListener]
          ],
          end: [Function: onReadableStreamEnd],
          newListener: [Function: keylogNewListener],
          secure: [Function: onConnectSecure],
          session: [Function (anonymous)],
          free: [Function: onFree],
          timeout: [Function: onTimeout],
          agentRemove: [Function: onRemove],
          error: [Function: socketErrorListener],
          finish: [Function: bound onceWrapper] {
            listener: [Function: destroy]
          }
        },
        _eventsCount: 10,
        connecting: false,
        _hadError: false,
        _parent: null,
        _host: 'api.openai.com',
        _closeAfterHandlingError: false,
        _readableState: ReadableState {
          objectMode: false,
          highWaterMark: 16384,
          buffer: BufferList { head: null, tail: null, length: 0 },
          length: 0,
          pipes: [],
          flowing: true,
          ended: false,
          endEmitted: false,
          reading: true,
          constructed: true,
          sync: false,
          needReadable: true,
          emittedReadable: false,
          readableListening: false,
          resumeScheduled: false,
          errorEmitted: false,
          emitClose: false,
          autoDestroy: true,
          destroyed: false,
          errored: null,
          closed: false,
          closeEmitted: false,
          defaultEncoding: 'utf8',
          awaitDrainWriters: null,
          multiAwaitDrain: false,
          readingMore: false,
          dataEmitted: true,
          decoder: null,
          encoding: null,
          [Symbol(kPaused)]: false
        },
        _maxListeners: undefined,
        _writableState: WritableState {
          objectMode: false,
          highWaterMark: 16384,
          finalCalled: true,
          needDrain: false,
          ending: true,
          ended: true,
          finished: false,
          destroyed: false,
          decodeStrings: false,
          defaultEncoding: 'utf8',
          length: 0,
          writing: false,
          corked: 0,
          sync: false,
          bufferProcessing: false,
          onwrite: [Function: bound onwrite],
          writecb: null,
          writelen: 0,
          afterWriteTickInfo: null,
          buffered: [],
          bufferedIndex: 0,
          allBuffers: true,
          allNoop: true,
          pendingcb: 1,
          constructed: true,
          prefinished: false,
          errorEmitted: false,
          emitClose: false,
          autoDestroy: true,
          errored: null,
          closed: false,
          closeEmitted: false,
          [Symbol(kOnFinished)]: []
        },
        allowHalfOpen: false,
        _sockname: null,
        _pendingData: null,
        _pendingEncoding: '',
        server: undefined,
        _server: null,
        ssl: TLSWrap {
          _parent: TCP {
            reading: [Getter/Setter],
            onconnection: null,
            [Symbol(owner_symbol)]: [Circular *1]
          },
          _parentWrap: undefined,
          _secureContext: SecureContext { context: SecureContext {} },
          reading: true,
          onkeylog: [Function: onkeylog],
          onhandshakestart: {},
          onhandshakedone: [Function (anonymous)],
          onocspresponse: [Function: onocspresponse],
          onnewsession: [Function: onnewsessionclient],
          onerror: [Function: onerror],
          [Symbol(owner_symbol)]: [Circular *1]
        },
        _requestCert: true,
        _rejectUnauthorized: true,
        parser: null,
        _httpMessage: [Circular *2],
        [Symbol(res)]: TLSWrap {
          _parent: TCP {
            reading: [Getter/Setter],
            onconnection: null,
            [Symbol(owner_symbol)]: [Circular *1]
          },
          _parentWrap: undefined,
          _secureContext: SecureContext { context: SecureContext {} },
          reading: true,
          onkeylog: [Function: onkeylog],
          onhandshakestart: {},
          onhandshakedone: [Function (anonymous)],
          onocspresponse: [Function: onocspresponse],
          onnewsession: [Function: onnewsessionclient],
          onerror: [Function: onerror],
          [Symbol(owner_symbol)]: [Circular *1]
        },
        [Symbol(verified)]: true,
        [Symbol(pendingSession)]: null,
        [Symbol(async_id_symbol)]: 4879,
        [Symbol(kHandle)]: TLSWrap {
          _parent: TCP {
            reading: [Getter/Setter],
            onconnection: null,
            [Symbol(owner_symbol)]: [Circular *1]
          },
          _parentWrap: undefined,
          _secureContext: SecureContext { context: SecureContext {} },
          reading: true,
          onkeylog: [Function: onkeylog],
          onhandshakestart: {},
          onhandshakedone: [Function (anonymous)],
          onocspresponse: [Function: onocspresponse],
          onnewsession: [Function: onnewsessionclient],
          onerror: [Function: onerror],
          [Symbol(owner_symbol)]: [Circular *1]
        },
        [Symbol(lastWriteQueueSize)]: 0,
        [Symbol(timeout)]: null,
        [Symbol(kBuffer)]: null,
        [Symbol(kBufferCb)]: null,
        [Symbol(kBufferGen)]: null,
        [Symbol(kCapture)]: false,
        [Symbol(kSetNoDelay)]: false,
        [Symbol(kSetKeepAlive)]: true,
        [Symbol(kSetKeepAliveInitialDelay)]: 60,
        [Symbol(kBytesRead)]: 0,
        [Symbol(kBytesWritten)]: 0,
        [Symbol(connect-options)]: {
          rejectUnauthorized: true,
          ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA',
          checkServerIdentity: [Function: checkServerIdentity],
          minDHSize: 1024,
          session: Buffer(1737) [Uint8Array] [
             48, 130,   6, 197,   2,   1,   1,   2,   2,   3,   4,   4,
              2,  19,   2,   4,  32,  70, 145,  89,  53, 171, 164,  45,
             32, 245, 145,  80, 250,  97,  94, 143,  83,  40,  17, 148,
             98, 155, 251, 177, 114, 211, 136, 136,  82,  40,  98, 220,
             92,   4,  48, 158, 151,  61, 236,   1, 160,  77, 213, 156,
            112, 149,  89, 208, 110, 114,  82, 102,  25,  38,  49, 191,
            131,  30, 167, 147,  13,   4, 112,  95,  72,   6, 180, 117,
            193, 174, 160, 144, 218, 242,  62,  77,  50, 108,  72,  58,
             12,  48,  41, 161,
            ... 1637 more items
          ],
          maxRedirects: 21,
          maxBodyLength: 10485760,
          protocol: 'https:',
          path: null,
          method: 'POST',
          headers: {
            Accept: 'application/json, text/plain, */*',
            'Content-Type': 'application/json',
            'User-Agent': 'OpenAI/NodeJS/3.3.0',
            Authorization: 'Bearer sk-redacted',
            'Content-Length': 2628
          },
          agent: undefined,
          agents: { http: undefined, https: undefined },
          auth: undefined,
          hostname: 'api.openai.com',
          port: 443,
          nativeProtocols: { 'http:': [Object], 'https:': [Object] },
          pathname: '/v1/chat/completions',
          _defaultAgent: Agent {
            _events: [Object: null prototype],
            _eventsCount: 2,
            _maxListeners: undefined,
            defaultPort: 443,
            protocol: 'https:',
            options: [Object: null prototype],
            requests: [Object: null prototype] {},
            sockets: [Object: null prototype],
            freeSockets: [Object: null prototype] {},
            keepAliveMsecs: 1000,
            keepAlive: false,
            maxSockets: Infinity,
            maxFreeSockets: 256,
            scheduling: 'lifo',
            maxTotalSockets: Infinity,
            totalSocketCount: 4,
            maxCachedSessions: 100,
            _sessionCache: [Object],
            [Symbol(kCapture)]: false
          },
          host: 'api.openai.com',
          noDelay: true,
          servername: 'api.openai.com',
          _agentKey: 'api.openai.com:443:::::::::::::::::::::',
          encoding: null,
          singleUse: true
        }
      },
      _header: 'POST /v1/chat/completions HTTP/1.1\r\n' +
        'Accept: application/json, text/plain, */*\r\n' +
        'Content-Type: application/json\r\n' +
        'User-Agent: OpenAI/NodeJS/3.3.0\r\n' +
        'Authorization: Bearer sk-redacted\r\n' +
        'Content-Length: 2628\r\n' +
        'Host: api.openai.com\r\n' +
        'Connection: close\r\n' +
        '\r\n',
      _keepAliveTimeout: 0,
      _onPendingData: [Function: nop],
      agent: Agent {
        _events: [Object: null prototype] {
          free: [Function (anonymous)],
          newListener: [Function: maybeEnableKeylog]
        },
        _eventsCount: 2,
        _maxListeners: undefined,
        defaultPort: 443,
        protocol: 'https:',
        options: [Object: null prototype] { noDelay: true, path: null },
        requests: [Object: null prototype] {},
        sockets: [Object: null prototype] {
          'api.openai.com:443:::::::::::::::::::::': [ [TLSSocket], [TLSSocket], [TLSSocket], [TLSSocket] ]
        },
        freeSockets: [Object: null prototype] {},
        keepAliveMsecs: 1000,
        keepAlive: false,
        maxSockets: Infinity,
        maxFreeSockets: 256,
        scheduling: 'lifo',
        maxTotalSockets: Infinity,
        totalSocketCount: 4,
        maxCachedSessions: 100,
        _sessionCache: {
          map: {
            'api.openai.com:443:::::::::::::::::::::': [Buffer [Uint8Array]]
          },
          list: [ 'api.openai.com:443:::::::::::::::::::::' ]
        },
        [Symbol(kCapture)]: false
      },
      socketPath: undefined,
      method: 'POST',
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      path: '/v1/chat/completions',
      _ended: true,
      res: IncomingMessage {
        _readableState: ReadableState {
          objectMode: false,
          highWaterMark: 16384,
          buffer: BufferList { head: null, tail: null, length: 0 },
          length: 0,
          pipes: [],
          flowing: true,
          ended: true,
          endEmitted: true,
          reading: false,
          constructed: true,
          sync: true,
          needReadable: false,
          emittedReadable: false,
          readableListening: false,
          resumeScheduled: false,
          errorEmitted: false,
          emitClose: true,
          autoDestroy: true,
          destroyed: true,
          errored: null,
          closed: true,
          closeEmitted: true,
          defaultEncoding: 'utf8',
          awaitDrainWriters: null,
          multiAwaitDrain: false,
          readingMore: true,
          dataEmitted: true,
          decoder: null,
          encoding: null,
          [Symbol(kPaused)]: false
        },
        _events: [Object: null prototype] {
          end: [ [Function: responseOnEnd], [Function: handleStreamEnd] ],
          data: [Function: handleStreamData],
          aborted: [Function: handlerStreamAborted],
          error: [Function: handleStreamError]
        },
        _eventsCount: 4,
        _maxListeners: undefined,
        socket: <ref *1> TLSSocket {
          _tlsOptions: {
            allowHalfOpen: undefined,
            pipe: false,
            secureContext: [SecureContext],
            isServer: false,
            requestCert: true,
            rejectUnauthorized: true,
            session: [Buffer [Uint8Array]],
            ALPNProtocols: undefined,
            requestOCSP: undefined,
            enableTrace: undefined,
            pskCallback: undefined,
            highWaterMark: undefined,
            onread: undefined,
            signal: undefined
          },
          _secureEstablished: true,
          _securePending: false,
          _newSessionPending: false,
          _controlReleased: true,
          secureConnecting: false,
          _SNICallback: null,
          servername: 'api.openai.com',
          alpnProtocol: false,
          authorized: true,
          authorizationError: null,
          encrypted: true,
          _events: [Object: null prototype] {
            close: [Array],
            end: [Function: onReadableStreamEnd],
            newListener: [Function: keylogNewListener],
            secure: [Function: onConnectSecure],
            session: [Function (anonymous)],
            free: [Function: onFree],
            timeout: [Function: onTimeout],
            agentRemove: [Function: onRemove],
            error: [Function: socketErrorListener],
            finish: [Function]
          },
          _eventsCount: 10,
          connecting: false,
          _hadError: false,
          _parent: null,
          _host: 'api.openai.com',
          _closeAfterHandlingError: false,
          _readableState: ReadableState {
            objectMode: false,
            highWaterMark: 16384,
            buffer: [BufferList],
            length: 0,
            pipes: [],
            flowing: true,
            ended: false,
            endEmitted: false,
            reading: true,
            constructed: true,
            sync: false,
            needReadable: true,
            emittedReadable: false,
            readableListening: false,
            resumeScheduled: false,
            errorEmitted: false,
            emitClose: false,
            autoDestroy: true,
            destroyed: false,
            errored: null,
            closed: false,
            closeEmitted: false,
            defaultEncoding: 'utf8',
            awaitDrainWriters: null,
            multiAwaitDrain: false,
            readingMore: false,
            dataEmitted: true,
            decoder: null,
            encoding: null,
            [Symbol(kPaused)]: false
          },
          _maxListeners: undefined,
          _writableState: WritableState {
            objectMode: false,
            highWaterMark: 16384,
            finalCalled: true,
            needDrain: false,
            ending: true,
            ended: true,
            finished: false,
            destroyed: false,
            decodeStrings: false,
            defaultEncoding: 'utf8',
            length: 0,
            writing: false,
            corked: 0,
            sync: false,
            bufferProcessing: false,
            onwrite: [Function: bound onwrite],
            writecb: null,
            writelen: 0,
            afterWriteTickInfo: null,
            buffered: [],
            bufferedIndex: 0,
            allBuffers: true,
            allNoop: true,
            pendingcb: 1,
            constructed: true,
            prefinished: false,
            errorEmitted: false,
            emitClose: false,
            autoDestroy: true,
            errored: null,
            closed: false,
            closeEmitted: false,
            [Symbol(kOnFinished)]: []
          },
          allowHalfOpen: false,
          _sockname: null,
          _pendingData: null,
          _pendingEncoding: '',
          server: undefined,
          _server: null,
          ssl: TLSWrap {
            _parent: [TCP],
            _parentWrap: undefined,
            _secureContext: [SecureContext],
            reading: true,
            onkeylog: [Function: onkeylog],
            onhandshakestart: {},
            onhandshakedone: [Function (anonymous)],
            onocspresponse: [Function: onocspresponse],
            onnewsession: [Function: onnewsessionclient],
            onerror: [Function: onerror],
            [Symbol(owner_symbol)]: [Circular *1]
          },
          _requestCert: true,
          _rejectUnauthorized: true,
          parser: null,
          _httpMessage: [Circular *2],
          [Symbol(res)]: TLSWrap {
            _parent: [TCP],
            _parentWrap: undefined,
            _secureContext: [SecureContext],
            reading: true,
            onkeylog: [Function: onkeylog],
            onhandshakestart: {},
            onhandshakedone: [Function (anonymous)],
            onocspresponse: [Function: onocspresponse],
            onnewsession: [Function: onnewsessionclient],
            onerror: [Function: onerror],
            [Symbol(owner_symbol)]: [Circular *1]
          },
          [Symbol(verified)]: true,
          [Symbol(pendingSession)]: null,
          [Symbol(async_id_symbol)]: 4879,
          [Symbol(kHandle)]: TLSWrap {
            _parent: [TCP],
            _parentWrap: undefined,
            _secureContext: [SecureContext],
            reading: true,
            onkeylog: [Function: onkeylog],
            onhandshakestart: {},
            onhandshakedone: [Function (anonymous)],
            onocspresponse: [Function: onocspresponse],
            onnewsession: [Function: onnewsessionclient],
            onerror: [Function: onerror],
            [Symbol(owner_symbol)]: [Circular *1]
          },
          [Symbol(lastWriteQueueSize)]: 0,
          [Symbol(timeout)]: null,
          [Symbol(kBuffer)]: null,
          [Symbol(kBufferCb)]: null,
          [Symbol(kBufferGen)]: null,
          [Symbol(kCapture)]: false,
          [Symbol(kSetNoDelay)]: false,
          [Symbol(kSetKeepAlive)]: true,
          [Symbol(kSetKeepAliveInitialDelay)]: 60,
          [Symbol(kBytesRead)]: 0,
          [Symbol(kBytesWritten)]: 0,
          [Symbol(connect-options)]: {
            rejectUnauthorized: true,
            ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA',
            checkServerIdentity: [Function: checkServerIdentity],
            minDHSize: 1024,
            session: [Buffer [Uint8Array]],
            maxRedirects: 21,
            maxBodyLength: 10485760,
            protocol: 'https:',
            path: null,
            method: 'POST',
            headers: [Object],
            agent: undefined,
            agents: [Object],
            auth: undefined,
            hostname: 'api.openai.com',
            port: 443,
            nativeProtocols: [Object],
            pathname: '/v1/chat/completions',
            _defaultAgent: [Agent],
            host: 'api.openai.com',
            noDelay: true,
            servername: 'api.openai.com',
            _agentKey: 'api.openai.com:443:::::::::::::::::::::',
            encoding: null,
            singleUse: true
          }
        },
        httpVersionMajor: 1,
        httpVersionMinor: 1,
        httpVersion: '1.1',
        complete: true,
        rawHeaders: [
          'Date',
          'Wed, 26 Jun 2024 21:41:32 GMT',
          'Content-Type',
          'application/json',
          'Content-Length',
          '211',
          'Connection',
          'close',
          'openai-organization',
          'jungle-genuis-llc',
          'openai-processing-ms',
          '1740',
          'openai-version',
          '2020-10-01',
          'strict-transport-security',
          'max-age=31536000; includeSubDomains',
          'x-ratelimit-limit-requests',
          '5000',
          'x-ratelimit-limit-tokens',
          '160000',
          'x-ratelimit-remaining-requests',
          '4994',
          'x-ratelimit-remaining-tokens',
          '156418',
          'x-ratelimit-reset-requests',
          '66ms',
          'x-ratelimit-reset-tokens',
          '1.342s',
          'x-request-id',
          '26aaa87d9eb8261ce239f850e96bf236',
          'CF-Cache-Status',
          'DYNAMIC',
          'Set-Cookie',
          '__cf_bm=WtuEb0w1wdxYCXSGvJVlfY0UN9AUYREDxE_ARbeysek-1719438092-<IP_ADDRESS>-PCOADWsjsP8M_QaPxlZiKY.V.4SRQLDJhDrbTD09OX8.aff_BXY_LumN9p0x377_t4t5ZflTwJkl30BHYsq3Dw; path=/; expires=Wed, 26-Jun-24 22:11:32 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None',
          'Set-Cookie',
          '_cfuvid=DF.3uPC9WgyTRTvzmj0rBFzZijvXlHHNuu5GIMmDb2Y-1719438092270-<IP_ADDRESS>-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None',
          'Server',
          'cloudflare',
          'CF-RAY',
          '89a05ca089e621d9-MIA',
          'alt-svc',
          'h3=":443"; ma=86400'
        ],
        rawTrailers: [],
        aborted: false,
        upgrade: false,
        url: '',
        method: null,
        statusCode: 500,
        statusMessage: 'Internal Server Error',
        client: <ref *1> TLSSocket {
          _tlsOptions: {
            allowHalfOpen: undefined,
            pipe: false,
            secureContext: [SecureContext],
            isServer: false,
            requestCert: true,
            rejectUnauthorized: true,
            session: [Buffer [Uint8Array]],
            ALPNProtocols: undefined,
            requestOCSP: undefined,
            enableTrace: undefined,
            pskCallback: undefined,
            highWaterMark: undefined,
            onread: undefined,
            signal: undefined
          },
          _secureEstablished: true,
          _securePending: false,
          _newSessionPending: false,
          _controlReleased: true,
          secureConnecting: false,
          _SNICallback: null,
          servername: 'api.openai.com',
          alpnProtocol: false,
          authorized: true,
          authorizationError: null,
          encrypted: true,
          _events: [Object: null prototype] {
            close: [Array],
            end: [Function: onReadableStreamEnd],
            newListener: [Function: keylogNewListener],
            secure: [Function: onConnectSecure],
            session: [Function (anonymous)],
            free: [Function: onFree],
            timeout: [Function: onTimeout],
            agentRemove: [Function: onRemove],
            error: [Function: socketErrorListener],
            finish: [Function]
          },
          _eventsCount: 10,
          connecting: false,
          _hadError: false,
          _parent: null,
          _host: 'api.openai.com',
          _closeAfterHandlingError: false,
          _readableState: ReadableState {
            objectMode: false,
            highWaterMark: 16384,
            buffer: [BufferList],
            length: 0,
            pipes: [],
            flowing: true,
            ended: false,
            endEmitted: false,
            reading: true,
            constructed: true,
            sync: false,
            needReadable: true,
            emittedReadable: false,
            readableListening: false,
            resumeScheduled: false,
            errorEmitted: false,
            emitClose: false,
            autoDestroy: true,
            destroyed: false,
            errored: null,
            closed: false,
            closeEmitted: false,
            defaultEncoding: 'utf8',
            awaitDrainWriters: null,
            multiAwaitDrain: false,
            readingMore: false,
            dataEmitted: true,
            decoder: null,
            encoding: null,
            [Symbol(kPaused)]: false
          },
          _maxListeners: undefined,
          _writableState: WritableState {
            objectMode: false,
            highWaterMark: 16384,
            finalCalled: true,
            needDrain: false,
            ending: true,
            ended: true,
            finished: false,
            destroyed: false,
            decodeStrings: false,
            defaultEncoding: 'utf8',
            length: 0,
            writing: false,
            corked: 0,
            sync: false,
            bufferProcessing: false,
            onwrite: [Function: bound onwrite],
            writecb: null,
            writelen: 0,
            afterWriteTickInfo: null,
            buffered: [],
            bufferedIndex: 0,
            allBuffers: true,
            allNoop: true,
            pendingcb: 1,
            constructed: true,
            prefinished: false,
            errorEmitted: false,
            emitClose: false,
            autoDestroy: true,
            errored: null,
            closed: false,
            closeEmitted: false,
            [Symbol(kOnFinished)]: []
          },
          allowHalfOpen: false,
          _sockname: null,
          _pendingData: null,
          _pendingEncoding: '',
          server: undefined,
          _server: null,
          ssl: TLSWrap {
            _parent: [TCP],
            _parentWrap: undefined,
            _secureContext: [SecureContext],
            reading: true,
            onkeylog: [Function: onkeylog],
            onhandshakestart: {},
            onhandshakedone: [Function (anonymous)],
            onocspresponse: [Function: onocspresponse],
            onnewsession: [Function: onnewsessionclient],
            onerror: [Function: onerror],
            [Symbol(owner_symbol)]: [Circular *1]
          },
          _requestCert: true,
          _rejectUnauthorized: true,
          parser: null,
          _httpMessage: [Circular *2],
          [Symbol(res)]: TLSWrap {
            _parent: [TCP],
            _parentWrap: undefined,
            _secureContext: [SecureContext],
            reading: true,
            onkeylog: [Function: onkeylog],
            onhandshakestart: {},
            onhandshakedone: [Function (anonymous)],
            onocspresponse: [Function: onocspresponse],
            onnewsession: [Function: onnewsessionclient],
            onerror: [Function: onerror],
            [Symbol(owner_symbol)]: [Circular *1]
          },
          [Symbol(verified)]: true,
          [Symbol(pendingSession)]: null,
          [Symbol(async_id_symbol)]: 4879,
          [Symbol(kHandle)]: TLSWrap {
            _parent: [TCP],
            _parentWrap: undefined,
            _secureContext: [SecureContext],
            reading: true,
            onkeylog: [Function: onkeylog],
            onhandshakestart: {},
            onhandshakedone: [Function (anonymous)],
            onocspresponse: [Function: onocspresponse],
            onnewsession: [Function: onnewsessionclient],
            onerror: [Function: onerror],
            [Symbol(owner_symbol)]: [Circular *1]
          },
          [Symbol(lastWriteQueueSize)]: 0,
          [Symbol(timeout)]: null,
          [Symbol(kBuffer)]: null,
          [Symbol(kBufferCb)]: null,
          [Symbol(kBufferGen)]: null,
          [Symbol(kCapture)]: false,
          [Symbol(kSetNoDelay)]: false,
          [Symbol(kSetKeepAlive)]: true,
          [Symbol(kSetKeepAliveInitialDelay)]: 60,
          [Symbol(kBytesRead)]: 0,
          [Symbol(kBytesWritten)]: 0,
          [Symbol(connect-options)]: {
            rejectUnauthorized: true,
            ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA',
            checkServerIdentity: [Function: checkServerIdentity],
            minDHSize: 1024,
            session: [Buffer [Uint8Array]],
            maxRedirects: 21,
            maxBodyLength: 10485760,
            protocol: 'https:',
            path: null,
            method: 'POST',
            headers: [Object],
            agent: undefined,
            agents: [Object],
            auth: undefined,
            hostname: 'api.openai.com',
            port: 443,
            nativeProtocols: [Object],
            pathname: '/v1/chat/completions',
            _defaultAgent: [Agent],
            host: 'api.openai.com',
            noDelay: true,
            servername: 'api.openai.com',
            _agentKey: 'api.openai.com:443:::::::::::::::::::::',
            encoding: null,
            singleUse: true
          }
        },
        _consuming: false,
        _dumped: false,
        req: [Circular *2],
        responseUrl: 'https://api.openai.com/v1/chat/completions',
        redirects: [],
        [Symbol(kCapture)]: false,
        [Symbol(kHeaders)]: {
          date: 'Wed, 26 Jun 2024 21:41:32 GMT',
          'content-type': 'application/json',
          'content-length': '211',
          connection: 'close',
          'openai-organization': 'jungle-genuis-llc',
          'openai-processing-ms': '1740',
          'openai-version': '2020-10-01',
          'strict-transport-security': 'max-age=31536000; includeSubDomains',
          'x-ratelimit-limit-requests': '5000',
          'x-ratelimit-limit-tokens': '160000',
          'x-ratelimit-remaining-requests': '4994',
          'x-ratelimit-remaining-tokens': '156418',
          'x-ratelimit-reset-requests': '66ms',
          'x-ratelimit-reset-tokens': '1.342s',
          'x-request-id': '26aaa87d9eb8261ce239f850e96bf236',
          'cf-cache-status': 'DYNAMIC',
          'set-cookie': [
            '__cf_bm=WtuEb0w1wdxYCXSGvJVlfY0UN9AUYREDxE_ARbeysek-1719438092-<IP_ADDRESS>-PCOADWsjsP8M_QaPxlZiKY.V.4SRQLDJhDrbTD09OX8.aff_BXY_LumN9p0x377_t4t5ZflTwJkl30BHYsq3Dw; path=/; expires=Wed, 26-Jun-24 22:11:32 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None',
            '_cfuvid=DF.3uPC9WgyTRTvzmj0rBFzZijvXlHHNuu5GIMmDb2Y-1719438092270-<IP_ADDRESS>-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'
          ],
          server: 'cloudflare',
          'cf-ray': '89a05ca089e621d9-MIA',
          'alt-svc': 'h3=":443"; ma=86400'
        },
        [Symbol(kHeadersCount)]: 42,
        [Symbol(kTrailers)]: null,
        [Symbol(kTrailersCount)]: 0
      },
      aborted: false,
      timeoutCb: null,
      upgradeOrConnect: false,
      parser: null,
      maxHeadersCount: null,
      reusedSocket: false,
      host: 'api.openai.com',
      protocol: 'https:',
      _redirectable: Writable {
        _writableState: WritableState {
          objectMode: false,
          highWaterMark: 16384,
          finalCalled: false,
          needDrain: false,
          ending: false,
          ended: false,
          finished: false,
          destroyed: false,
          decodeStrings: true,
          defaultEncoding: 'utf8',
          length: 0,
          writing: false,
          corked: 0,
          sync: true,
          bufferProcessing: false,
          onwrite: [Function: bound onwrite],
          writecb: null,
          writelen: 0,
          afterWriteTickInfo: null,
          buffered: [],
          bufferedIndex: 0,
          allBuffers: true,
          allNoop: true,
          pendingcb: 0,
          constructed: true,
          prefinished: false,
          errorEmitted: false,
          emitClose: true,
          autoDestroy: true,
          errored: null,
          closed: false,
          closeEmitted: false,
          [Symbol(kOnFinished)]: []
        },
        _events: [Object: null prototype] {
          response: [Function: handleResponse],
          error: [Function: handleRequestError],
          socket: [Function: handleRequestSocket]
        },
        _eventsCount: 3,
        _maxListeners: undefined,
        _options: {
          maxRedirects: 21,
          maxBodyLength: 10485760,
          protocol: 'https:',
          path: '/v1/chat/completions',
          method: 'POST',
          headers: {
            Accept: 'application/json, text/plain, */*',
            'Content-Type': 'application/json',
            'User-Agent': 'OpenAI/NodeJS/3.3.0',
            Authorization: 'Bearer sk-redacted',
            'Content-Length': 2628
          },
          agent: undefined,
          agents: { http: undefined, https: undefined },
          auth: undefined,
          hostname: 'api.openai.com',
          port: null,
          nativeProtocols: { 'http:': [Object], 'https:': [Object] },
          pathname: '/v1/chat/completions'
        },
        _ended: true,
        _ending: true,
        _redirectCount: 0,
        _redirects: [],
        _requestBodyLength: 2628,
        _requestBodyBuffers: [],
        _onNativeResponse: [Function (anonymous)],
        _currentRequest: [Circular *2],
        _currentUrl: 'https://api.openai.com/v1/chat/completions',
        [Symbol(kCapture)]: false
      },
      [Symbol(kCapture)]: false,
      [Symbol(kBytesWritten)]: 0,
      [Symbol(kEndCalled)]: true,
      [Symbol(kNeedDrain)]: false,
      [Symbol(corked)]: 0,
      [Symbol(kOutHeaders)]: [Object: null prototype] {
        accept: [ 'Accept', 'application/json, text/plain, */*' ],
        'content-type': [ 'Content-Type', 'application/json' ],
        'user-agent': [ 'User-Agent', 'OpenAI/NodeJS/3.3.0' ],
        authorization: [
          'Authorization',
          'Bearer sk-redacted'
        ],
        'content-length': [ 'Content-Length', 2628 ],
        host: [ 'Host', 'api.openai.com' ]
      },
      [Symbol(errored)]: null,
      [Symbol(kUniqueHeaders)]: null
    },
    data: {
      error: {
        message: 'The model produced invalid content. Consider modifying your prompt if you are seeing this error persistently.',
        type: 'model_error',
        param: null,
        code: null
      }
    }
  },
  isAxiosError: true,
  toJSON: [Function: toJSON]
}

Node.js v18.13.0

Any comments?

Sounds very much the same issue as #12
A fix should be straightforward, just have zero time to work on this project at the moment. Would appreciate a PR (see latest comment at #12)

From https://github.com/jehna/humanify/issues/18#issuecomment-2192707342

      error: {
        message: 'The model produced invalid content. Consider modifying your prompt if you are seeing this error persistently.',
        type: 'model_error',
        param: null,
        code: null
      }

Googling for that error message led me to this thread, which has at least one potential lead/solution to look into (though seems it can also be caused by other things too, based on a later comment in the thread):

https://community.openai.com/t/error-the-model-produced-invalid-content/747511

When I switched to gpt-4o I started getting these errors that I never got using previous models
I can’t confirm but this seems to happen when the model tries to call a function after exchanging some messages. Sometime I try again and it works, sometimes it gets stuck

same situation. have a tool call in messages. maybe that is triggering the error.

I think I got it fixed. In case the issue was due to a bit of a mix up in my code. I was mixing the new tools mechanism with the old function calling mechanism and somehow that was passing through in the older models. The new gpt-4o model seems to be more strict about that issue but after fixing following the new tools API correctly the issues seems to be gone, at least for now.

I’ve tried updating to the latest API version and changing the way I call tools and tools_choice, but I’m still getting the same error. Have you had a similar error again? Or have you already solved it with this? Because if you have had it again it would give me the clue that OpenAI has not yet been able to solve it on their side, but if you have not had it again, it would mean that I am still writing something wrong in my code.

Once i fixed the way I was using tools I never got this error message again.
Make sure you’re passing all the right ids, function names and parameters in the right orders and you should be good to go

I also noticed that this project is using the node openai 3.3.0 package, whereas it's up to 4.52.3 now (that might not make a difference at all, but you never know):

https://www.npmjs.com/package/openai
https://github.com/openai/openai-node/releases

https://github.com/jehna/humanify/blob/002fd68d10f7ff13b80b7c305ad09c9c7f63bc47/package.json#L22
The changelog entries only seem to start from 4.2.0:

https://github.com/openai/openai-node/blob/master/CHANGELOG.md#420-2023-08-23

There are a few bugfix entries related to handling errors while streaming.. I wonder if that might be helpful?

https://github.com/openai/openai-node/blob/master/CHANGELOG.md#4122-2023-10-16

Also some related to tools/functions, eg.

https://github.com/openai/openai-node/blob/master/CHANGELOG.md#4210-2023-12-11

https://github.com/openai/openai-node/pull/562

https://github.com/openai/openai-node/blob/master/CHANGELOG.md#4221-2023-12-15

https://github.com/openai/openai-node/issues/570

And new model:

https://github.com/openai/openai-node/blob/master/CHANGELOG.md#4460-2024-05-13

https://github.com/openai/openai-node/issues/841

https://github.com/openai/openai-node#automated-function-calls

We provide the openai.beta.chat.completions.runTools({…}) convenience helper for using function tool calls with the /chat/completions endpoint which automatically call the JavaScript functions you provide and sends their results back to the /chat/completions endpoint, looping as long as the model requests tool calls.

If you pass a parse function, it will automatically parse the arguments for you and returns any parsing errors to the model to attempt auto-recovery. Otherwise, the args will be passed to the function you provide as a string.

If you pass tool_choice: {function: {name: …}} instead of auto, it returns immediately after calling that function (and only loops to auto-recover parsing errors).

Note that runFunctions was previously available as well, but has been deprecated in favor of runTools.

We can see that the openai stuff is initially called here, which generates a 'plugin' that is then applied to the code of each of the files extracted with webcrack:
https://github.com/jehna/humanify/blob/002fd68d10f7ff13b80b7c305ad09c9c7f63bc47/src/index.ts#L56-L71
With the main logic being implemented here, and the actual SDK call within codeToVariableRenames:
https://github.com/jehna/humanify/blob/002fd68d10f7ff13b80b7c305ad09c9c7f63bc47/src/openai/openai.ts#L14-L82
We can also see that it's using the functions config, which is deprecated now, and replaced by tools:

https://platform.openai.com/docs/api-reference/chat/create#chat-create-functions
https://platform.openai.com/docs/api-reference/chat/create#chat-create-tools

@0xdevalias @jehna
So I was able to get a little bit farther just by updating the model's instructions. The whole response_format: { type: "json_object" }, keeps getting rejected as invalid.
-            "Rename all Javascript variables and functions to have descriptive names based on their usage in the code.",
+            "Rename all Javascript variables and functions to have descriptive names based on their usage in the code. Instruct the model to produce valid JSON and to properly escape JSON attributes and values.",

But now I'm getting this.
/root/decode/humanify/src/openai/rename-variables-and-functions.ts:17
          const rename = toRename.find((r) => r.name === path.node.name);
                                                ^
TypeError: unknown file: Cannot read properties of undefined (reading 'name')
    at file:///root/decode/humanify/src/openai/rename-variables-and-functions.ts:1:382

Looks like we are getting null values?  Not sure how to debug this.  I'm just running this from the CLI and editing the source files with mcedit.  I don't normally do Node.js development so I don't have a full Node.js IDE handy.
If this was a browser I would just do a console.log() and dump the return variables.  I'm hoping to get this working because I need to reverse Closure Compiled file for a whole other client project.

The whole response_format: { type: "json_object" }, keeps getting rejected as invalid.

@JungleGenius Rejected by what part/with what error/etc? Do you think it relates to the SDK being too old to use that, as per my previous thoughts?

I also noticed that this project is using the node openai 3.3.0 package, whereas it's up to 4.52.3 now (that might not make a difference at all, but you never know)

https://github.com/jehna/humanify/issues/19

If this was a browser I would just do a console.log() and dump the return variables.

@JungleGenius Pretty sure you should be able to do that here as well, and it would write to the terminal output.
You could also run the node script with debugging enabled and then connect to it from Chrome's debugger if you wanted something more powerful there:

https://nodejs.org/en/learn/getting-started/debugging
https://blog.logrocket.com/debug-node-js-chrome-devtools-watchers/#using-chrome-devtools

This should now be fixed in v2 since there's the long awaited JSON mode with the new structured outputs.  Please take a look and repoen if anything comes up
Originally posted by @jehna in https://github.com/jehna/humanify/issues/22#issuecomment-2282876269


Is the 500khz sampling speed achieved using the fp16 acceleration of GV100?

I'm wondering how much slower is waveglow than parallel wavenet, as waveglow has 108 layer, while parallel wavenet only has 60,  and parallel wavenet has only 64 hidden units in conv layers, while waveglow has 512 hidden units.

Please take a look at 3.5 in our paper:
"Our unoptimized PyTorch implementation of WaveGlow synthesizes a 10 second utterance at approximately 520kHz on an NVIDIA V100 GPU. This is slightly faster than the 500kHz reported by Parallel WaveNet [9], although they tested on an older GPU."

We actually do use FP16 for inference on V100.


BUG: Beware of safe export and import function. It can corrupt your data.

safe exports json structures as escaped strings. When you import exported structures, previously structured data will be converted to string representation of json, this will cause your applications that do not expect vault secrets structure to change, to fail.

@herrbpl Can you please provide an example showing on which conditions the data structure gets corrupted?

Hi
For a long time Vault API allows to store arbitrary json structures in data field, not just key-values of a string type.
So when you had in vault key stored anything as json structure, this structure gets converted to string representation of structure and when it is reimported, it is imported as string, as result, applications that expect json structure under vault key, receive string instead. And complain because they cannot unserialise this to internal data objects.
Please see associated PR for exact differences.
Siim


nested routes issue

When using create-react-wptheme, nested routes for example "/blog/test-post-slug", upon page reload removes the route prefix of "/blog" and simply goes to "/test-post-slug", responding with my 404 error page. I duplicated my code over to a normal create-react-app, with the same exact routing and this issue is not present. I believe it may be due to a misconfigured webpack setting?

It's certainly possible... but my first guess is that you're not taking the theme path into account in your code.
You have to do a bit more to use React-Router in a WordPress theme since the react enabled theme runs from a deeper folder. For example, here's screen shot showing the "Network" tab in Firefox.
First thing to note are the items in green. As you can see the highlighted JS file has a much deeper path into the site's URL (i.e. /wp-content/themes/foo/static/js/main.545a5688.chunk.js).
And since the theme is running fully client-side you need to provide more information for it to work properly.

Muhammad Muhsin wrote up a great tutorial for using React as a WordPress theme, including using Reac-Router: How To Build A Skin For Your Web App With React And WordPress
He does not use create-react-wptheme as it didn't exist back then (that tutorial was what inspired me to write create-react-wptheme). So you can skip all of the manual Webpack setup that he does at the beginning of the tutorial and get right into the editing of the PHP and JS files.
Here are the important parts of his code for routing:
Using Functions.php to create a global client-side JS variable with the correct paths
NOTE: Put your Functions.php file in the react-src/public folder in your theme that was created using create-react-wptheme.
And then here is his routes code.
celestial/src/index.js

I forgot talk about the RED items in the screenshot above.
I think that Muhammad is using a hard-coded name for the file that Webpack outputs. And that can cause browser caching issues. So create-react-wptheme has a newly named file each time Webpack runs a build.
You can see that the files outlined in red above all have some random numbers and letters in them. I think that's going to be a problem for the value that Functions.php will output. And it might be a lot easier for me to fix it rather than coming up with a complex work around.
I'll look at it tomorrow and add the ability to not add those random strings. But you'll have to remember that you'll need to check the "disable cache" feature (seen just to the right of the big green down arrow above).
And if you're interested, the caching issue was a big deal. You can see the original issue about it here. It's a long one, so might be better to start at the bottom and read up. :-)

I published a new release that uses URL caching (as opposed to file name caching).
This ensures all JavaScript files will named the same and be at the same location during both DEV and PROD.
So no matter what routing method you prefer to use, create-react-wptheme shouldn't be getting in the way. But you will still need to determine which routing strategy is best for your theme.
But you'll still need to understand that a React WordPress theme is going to require some extra steps to get the routing working, since the theme is several folders down from the main site's URL.


[Question]: (root) Additional property include is not allowed

Describe your problem
docker-compose --version = Docker Compose version v2.9.0

You need to update your docker compose or seperate/merge the compose files.
https://docs.docker.com/compose/how-tos/multiple-compose-files/include/


Refactor - e2e tests

There will be multiple PR's to move e2e to specific folders.

Refactor tuf e2e to pkg folder.

Signed-off-by: naveensrinivasan<EMAIL_ADDRESS>

@bobcallaway 👀

Codecov Report

Merging #140 (ce99da0) into main (4420d11) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #140   +/-   ##
=======================================
  Coverage   41.05%   41.05%
=======================================
  Files          70       70
  Lines        7040     7040
=======================================
  Hits         2890     2890
  Misses       3845     3845
  Partials      305      305

Impacted Files
Coverage Δ

pkg/types/rekord/v0.0.1/entry.go
48.02% <0.00%> (-0.66%)
:arrow_down:

pkg/types/alpine/v0.0.1/entry.go
53.65% <0.00%> (ø)

pkg/types/tuf/v0.0.1/entry.go
42.04% <0.00%> (+0.81%)
:arrow_up:

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


Create gif image

How could add gif image and save it to gif image.

did you find any solutions???

No I did not find any solution.


Allow install of many platform binaries in same worktree

The error '${vendorPlatformId}' binaries cannot be used on the '${currentPlatformId}' platform. Please remove the 'node_modules/sharp' directory and run 'npm install' on the '${currentPlatformId}' platform. appears on about 20 issues. This feature request would allow a different solution that supports both platforms from same worktree.
Sharp currently looks if the platform in vendor/${minimumLibvipsVersion}/platform.json file matches the currentPlatformId. For example node-sass does a little differently and uses instead the platform in the directory name vendor/${process.platform}-${process.arch}-${process.versions.modules}. That allows download of binaries for many platforms in the same worktree. They also have an install.js script that by default downloads the binary for current platform, but takes options for other platforms.
Perhaps something like that would work for sharp as well?
As background, I have a worktree where I can code and need the dependencies for vscode intellisense and unit tests. But for integration tests and debugging, it needs to communicate with other services and I use docker-compose to set up containers in an isolated network environment. I just have Docker mount the worktree to the container as a volume and can develop and debug there on same copy of sources when necessary. But the node image is the alpine image with different platform from host. (I have made an exception for the development image to use a distribution compatible with host, and need no help there, but it would be better to be able to test and debug with the production platform.)
Alpine, btw., would have precompiled libvips.so binaries that seem new enough. But it does not ship with the pkg-config files sharp seems to be wanting. Would be nice if it would be possible to have the install use the binary from alpine distribution. It would help avoid external downloads. We would prefer limiting who we trust or verify all download sha256 hashes we can during build to know what we have in the image.

Yes, currently commands like npm rebuild are not well supported cross-platform. We'd need to do this for both the libvips binaries under vendor and the sharp binaries under build.

takes options for other platforms.

If you hadn't seen, the host platform can be specified at install time, e.g. npm install --platform=linuxmusl sharp.

Alpine... does not ship with the pkg-config files

You should be able to find these in Alpine's vips-dev package.

Hi. I noticed there were possibilities to specify host platform, but I did not look closer because choosing it does not help when I need two platforms in same worktree.
Thanks for the vips-dev. Strange I did not notice it.

I'm looking to do a similar thing for an Electron app that will be built for multiple platforms. Is there any news on this?

Commit https://github.com/lovell/sharp/commit/e141cbacad5ee2d54c25a16d49d775fa431a4c3e adds this feature and will be included in the forthcoming v0.29.0.

v0.29.0 now available.

@lovell it seems like the .node binaries for x64 and ARM64 are bundled in our app, but the .dylib file is only for x64. Is that expected? I'm guessing not.

Relevant comment on another issue: https://github.com/electron-userland/electron-builder/issues/7512#issuecomment-1500613835

@lovell it seems like the .node binaries for x64 and ARM64 are bundled in our app, but the .dylib file is only for x64. Is that expected? I'm guessing not.

I think it is best you create a new issue. You can mention this issue there if you like.


[qtwebengine] Build error

Host Environment

OS: Windows10
Compiler: revision

To Reproduce
Steps to reproduce the behavior:
./vcpkg install Qt
Failure logs
error: building qtwebengine:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest port files with git pull and vcpkg update.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+qtwebengine
Additional context
was having similar issues with other packages like tensorflow.

not enough information..... probably latest VS2022 -> ICE. nothing vcpkg can do against. try using VS 2022 Preview or the VS 2019 toolset.

Could you please provide the error log to us?

I am seeing this as well.
Host Environment

Host: x64-windows
Compiler: MSVC 19.33.31629.0
vcpkg-tool version: 2022-07-21-a0e87e227afb536c62188c11ad029954f28fdb22
vcpkg-scripts version: 3691f02fb 2022-08-10 (27 hours ago)

To Reproduce
vcpkg install qt[default-features]
Failure logs
-- Using cached win_flex_bison-2.5.25.zip.
-- Setting up python virtual environmnent...
-- Installing python packages: html5lib
-- Setting up python virtual environmnent...finished.
CMake Warning at ports/qtwebengine/portfile.cmake:83 (message):
  Buildtree path 'D:/vcpkg/buildtrees/qtwebengine' is too long.

  Consider passing --x-buildtrees-root=<shortpath> to vcpkg!

  Trying to use 'D:/vcpkg/buildtrees/qtwebengine/../tmp'
Call Stack (most recent call first):
  scripts/ports.cmake:147 (include)

CMake Error at ports/qtwebengine/portfile.cmake:88 (message):
  Buildtree path is too long.  Build will fail! Pass
  --x-buildtrees-root=<shortpath> to vcpkg!
Call Stack (most recent call first):
  scripts/ports.cmake:147 (include)

[stdout-x64-windows.log](https://github.com/microsoft/vcpkg/files/9312218/stdout-x64-windows.log)
[issue_body.md](https://github.com/microsoft/vcpkg/files/9312230/issue_body.md)

Hi, I got this resolved. It seems that qantlib library is a static library. For that you have to use .\vcpkg install qantlib:x64-windows-static to download. By default vcpkg install dynamic library.

Qantlib is a static library so we have to use -static keyword while using vckpg install.


[Enhancement] disallow using persistent index in shared data mode when create table

disallow using persistent index in shared data mode when create table
What type of PR is this:

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[x] 3.1
[ ] 3.0
[ ] 2.5
[ ] 2.4

[FE PR Coverage Check]
:disappointed: fail : 1 / 2 (50.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/server/OlapTableFactory.java
1
2
50.00%
[296]

[FE PR Coverage Check]
:disappointed: fail : 1 / 2 (50.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/server/OlapTableFactory.java
1
2
50.00%
[295]

@Mergifyio backport branch-3.1


Support for Lua

Hello, any chance you will be adding lua as a supported language?

Want! :)

Want! :D

see also https://github.com/mingjunyang/atom-format-lua

Please provide your feedback on these beautifiers and post links to others to try here.
Once a third-party beautifier/formatter has been found, then we can add support to Atom Beautify.
Let me know if atom-format-lua is working for you.
Also take a look at:

https://github.com/LuaDist/luapretty
http://notebook.kulchenko.com/programming/lua-beautifier-in-55-lines-of-perl
http://lua-users.org/wiki/SourceCodeFormatter
and any others you can find.

Want! :D

Let's join everyone here: Want! :smiley:
Sidenote: atom-format-lua just removes all my code :disappointed:

my +1 pretty please.

@mazrabul Would you mind playing around with the beautifiers at https://github.com/Glavin001/atom-beautify/issues/161#issuecomment-135607812 and letting us know the pros and cons for each.  We are not Lua developers, so we don't know what to look for.

http://lua-users.org/wiki/SourceCodeFormatter does not do what's desired here.
http://notebook.kulchenko.com/programming/lua-beautifier-in-55-lines-of-perl seems to work well.


Refactored event_sequencer

Description
Upstreaming changes from enterprise to make merges smoother.

/merge-when-ready squash-commits delete-branch docs-not-required release-note-not-required

docs-not-required release-note-not-required

Ooo we should definitely add slash commands for these. We don't have them yet!


Feature/link to api

Make ui-goals ready for displaying data via api.
@steffansluis @bartist Please review


read github org from config

https://github.com/SovereignCloudStack/github-manager/blob/9556bd8114b7f73c830e6dca8f5f8cd5f26964e7/check_repositories.py#L6

Does your feature request involve that we should use the environment variable ORGANIZATION throughout all of our GitHub Action workflows?

maybe I misread the code, I asumed that this means that SovereignCloudStack is hardcoded in the code.

The letter is only a fallback if ORGANIZATION is not defined as environment variable.


Description Update

This section (https://docs.microsoft.com/en-us/configmgr/core/clients/manage/cmg/cloud-management-gateway-faq#do-i-need-to-maintain-the-azure-virtual-machines) should be updated with the fact that it is NOT using standard virtual machines.  This deploys a legacy "Cloud Service (classic)" environment and a blob storage account.

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

ID: a99f1b09-f669-e3c8-e9a1-c2594f329e12
Version Independent ID: b022b0cd-f045-418a-be0e-f15f699f9d35
Content: CMG FAQ - Configuration Manager
Content Source: sccm/core/clients/manage/cmg/cloud-management-gateway-faq.md
Product: configuration-manager
Technology: configmgr-client
GitHub Login: @aczechowski
Microsoft Alias: aaroncz

Hi @danmyhre, there's still a VM in use. The point of this FAQ is for customers that think they need to maintain those VMs in Azure, and point them to the PaaS security guidance from Azure.
We have references to the use of the classic cloud service and storage in the article to set up CMG:

The Microsoft.ClassicCompute & Microsoft.Storage resource providers must be registered within the Azure subscription.

So I'm going to close this issue. If you're passionate about us adding something to the FAQ, please reopen and I'll reconsider. 😄


Add PippoTest

Add the possibility for an easy testing.
Add PippoTest class in a new module pippo-test, with a simple API, based on rest-assured [1].
I took a look on fathom-test-tools.
How to use:

Add the dependency to pippo-test in your pom.xml

<dependency>
    <groupId>ro.pippo</groupId>
    <artifactId>pippo-test</artifactId>
    <version>${pippo.version}</version>
    <scope>test</scope>
</dependency>

Add a test in your application

public class RoutesTest extends PippoTest {

    @Override
    public Application createApplication() {
        return new MyApplication();
    }

    @Test
    public void testIndex() {
        when().
            get("/").
        then().
            statusCode(200);
    }

}

In the current implementation, PippoTest creates a new Pippo instance for each Test. Sure, another option is to create a Pippo instance for all tests but I prefer to "push" this functionality in the actual class (maybe with a flag in setUp method that tell me if the instances was already created - I don't know if it's possible or if it's safe) and not to enter a new class with @BeforeClass and @AfterClass.
This is only a draft and I invite you at discussion.
[1] https://github.com/jayway/rest-assured

Hi DS.  It's going to take me a little while to be able to assist on this branch.  I have a looming project deadline - a project based on Pippo+Fathom, actually.  I use the Fathom testing code everyday and it's nice.  So this is definitely good stuff to upstream.

A little documentation here.


Difference in behavior of parametric study objects

🔍 Before submitting the issue

[X] I have searched among the existing issues
[X] I am using a Python virtual environment

🐞 Description of the bug
The available commands on parametric study object obtained with session.current_parametric study and from studies.parametric_studies are different. the common commands like get_state() also written different output. Is this expected?
Also unable to query designs points for the current_parametric_study object
see the code snippets below for more information:

@seanpearsonuk @mainakk
📝 Steps to reproduce
The steps mentioned in screenshot above
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
2024R2
🐍 Which Python version are you using?
3.10
📦 Installed packages
ansys-fluent-core

@tejalprabhu01 session.current_parametric study is of type string and returns the name of theparametric study currently active
in Fluent. session.parametric_studies is of type container and holds all parametric studies object.

@tejalprabhu01 session.current_parametric study is of type string and returns the name of theparametric study currently active in Fluent. session.parametric_studies is of type container and holds all parametric studies object.

@mkundu1 no it is not a string

@tejalprabhu01 That shows the derived class name in PyFluent. It is derived from setting string class.
>>> import ansys.fluent.core as pyfluent
>>> solver = pyfluent.launch_fluent()
>>> solver.current_parametric_study
<ansys.fluent.core.solver.settings_242.current_parametric_study.current_parametric_study object at 0x000001F74C2C82E0>
>>> solver.current_parametric_study.__class__.__bases__
(<class 'ansys.fluent.core.solver.flobject.String'>,)
>>> solver.parametric_studies
<ansys.fluent.core.solver.settings_242.parametric_studies.parametric_studies object at 0x000001F74C2A6BC0>
>>> solver.parametric_studies.__class__.__bases__
(<class 'ansys.fluent.core.solver.flobject.NamedObject'>, <class 'ansys.fluent.core.solver.flobject._CreatableNamedObjectMixin'>)

(The module name is shown different for you because the codegen output is outdated with respect to the Fluent version used.)

@mkundu1 But this is going to be the case almost always in dev phase. how can we find out which exact Fluent version to be used with the pyfluent version we are using? and how do we handle this eventually, I mean for the release? Fluent release version would be higher than the pyfluent version that would be shipped with optiSLang python.

@tejalprabhu01

(The module name is shown different for you because the codegen output is outdated with respect to the Fluent version used.)

Note that, this won't make any difference in the general usage. The Python classes generated in both scenarios have the same interface. With codegen, these classes are written out to external files (so it provides better documentation/intellisense support). If the codegen output is outdated, similar classes are generated in-memeory from the connected Fluent session during runtime.
We'll add the backward compatibility support in PyFluent so that scripts (optiSLang code in this case) with older version of settings API will continue to work with newer version of Fluent/settings API. (#2432).

This is clear now. Thanks @mkundu1.


Time for a new release? 0.2.7?

Home assistant (among others) uses the evohomeclient library.  In the case of HA, the honeywell.py component uses the v1 api., and has the following line of code:
REQUIREMENTS = ['evohomeclient==0.2.5', 'somecomfort==0.5.2']

I am about to submit a PR to Homeassistant for an extensively refactored evohome component, evohome.py, and it uses v2 of the api, and benefits from the latest changes to evohomeclient.
I am requesting a new release, 0.2.7, so that I can have the following line of code in my component:
REQUIREMENTS = ['evohomeclient==0.2.7']

Thanks for that - will it be getting into PyPI too?

Yes - took me a few minutes to wrestle the right commands, but you should find it there now. Let me know if you find any issues!

well I can see it in pypi,org, but Home Assistant can't - will give it a day to converge & I'm sure it'll work!

yep, is working - thanks!


server: expose close

Expose socket close and socket.on('close', ..) event on the server

Hmm, shouldn't close() be called in the examples? And what about the client?

Agree, it might be useful on client as well.
On the server example we can call it on the process.on('SIGINT', ...) ? and on the client after the bound? Any thoughts?

Yep, that sounds reasonable, since the client is terminated on bound. Could you add these features to the cli interfaces as well? THX!

Done :)

That looks good! :)
A bit off-topic, but could I ask you to have a look at #13?


Added jwt bearer token auth to MedplumClient

Added support for urn:ietf:params:oauth:grant-type:jwt-bearer
Added a isMedplumAccessToken helper to determine if using MedplumClient with a Medplum server vs generic FHIR server
Only do special Medplum stuff (lookup profile, access policies, etc) if using a Medplum server

This is in service of accessing the Health Gorilla FHIR API using MedplumClient, although it would apply to any FHIR server that requires "client assertion" JWT bearer tokens.

coverage: 94.243% (-0.02%) from 94.267% when pulling e949fc88b1ca5c3605e4b4fbc53825b771ecd435 on cody-jwt-bearer-token-auth into c43b9b8e86376b9d33cb1bfd695dac16ee681915 on main.


Two problems during module testing

I'm trying to install Font::FreeType, but it fails during testing.
Here's the error message:
===> Testing: Font::FreeType:ver<0.0.6>:auth<github:p6-pdf>
Potential difficulties:
    Duplicate 'is export' trait
    at .zef/store/Font-FreeType-0.0.6.tar.gz/Font-FreeType-0.0.6/lib/Font/FreeType/Native.pm (Font::FreeType::Native):122
    ------> FT_CharMap is export is repr('CStruct') ⏏is export {
FreeType2 version is 2.8.1
FreeType Error: invalid file format
  in sub ft-try at .zef/store/Font-FreeType-0.0.6.tar.gz/Font-FreeType-0.0.6/lib/Font/FreeType/Error.pm (Font::FreeType::Error) line 142
  in method for-glyphs at .zef/store/Font-FreeType-0.0.6.tar.gz/Font-FreeType-0.0.6/lib/Font/FreeType/Face.pm (Font::FreeType::Face) line 124
  in block  at t/20bitmap.t line 43
  in block <unit> at t/20bitmap.t line 22

Latest CPAN upload is 0.0.7, which corrects the Duplicate 'is export'  warning and skips the failing test (which relates to loading of a font in an older seldom used WIN format)

Thank you!


[TFB-1551] Git for Tech Writers

Many tech writers arent very familiar with git. We should create a basic doc for this so they have the resources they need to get started.
We can rely on existing resources out there in the world for some of this. For instance, recently (past few years) the Write The Docs conference held a git for tech writers workshop. If those materials are available we may be able to repurpose them (depending upon their licensing).

A potential resource for this:
https://missing.csail.mit.edu/2020/version-control/

Another potential resource are the NRE Labs hands-on tutorials for Linux and git:
https://go.nrelabs.io/advisor/courseplan.html?lessonId=17

Is looking at the git book on the project site. Now has a draft of this and will be working to land the patch.


update bundle

Description
Execute make bundle to update the bundle manifests.
Related Issue
https://issues.redhat.com/browse/ACM-7344
Changes Made
Execute make bundle to update the bundle manifests.
Screenshots (if applicable)
Add screenshots or GIFs that demonstrate the changes visually, if relevant.
Checklist

[ ] I have tested the changes locally and they are functioning as expected.
[ ] I have updated the documentation (if necessary) to reflect the changes.
[ ] I have added/updated relevant unit tests (if applicable).
[ ] I have ensured that my code follows the project's coding standards.
[ ] I have checked for any potential security issues and addressed them.
[ ] I have added necessary comments to the code, especially in complex or unclear sections.
[ ] I have rebased my branch on top of the latest main/master branch.

Additional Notes
Add any additional notes, context, or information that might be helpful for reviewers.
Reviewers
Tag the appropriate reviewers who should review this pull request. To add reviewers, please add the following line: /cc @reviewer1 @reviewer2
Definition of Done

[ ] Code is reviewed.
[ ] Code is tested.
[ ] Documentation is updated.
[ ] All checks and tests pass.
[ ] Approved by at least one reviewer.
[ ] Merged into the main/master branch.

@dislbenn please help review this.
BTW, Is it possible to add a CI check for the bundle updating?

@zhujian7 That wouldn't be a bad idea. Can you open up a task in Jira issue to describe the changes you are looking for? That way we can track the progress of adding a CI job for the bundle updates?
/lgtm


On the Admin Event Create and Edit pages, the Description field is disabled

When adding or editing an event, I can't click in the Description field:

Discovered in Version: <IP_ADDRESS> 8a77b3a

If I turn on the F12 Developer Tools in IE, I can't highlight that field. It's like another object on the page is overlapping that entire row.

Verified this works in Edge, but not in IE, Chrome and Safari.

If I'm in the field above (Name) or below (Headline) and tab into the Description field, I can enter characters. However, if I just click on the Description field, it doesn't become active.


Add new templates for Vich

In List and Show actions, Javier only concats the value stored in database with a base_path, but if we have custom directory namer, it failed.
Add 2 new templates to handle properly Vich files.

closed by #26


Add reroll.is-cool.dev

Requirements

[x] You have completed your website.
[x] The website is reachable.
[x] The CNAME record doesn't contain https:// or /.
[x] There is sufficient information at the owner field.
[x] Your website is not hosting on the following due to SSL issues: Vercel, Netlify

Description
Site to provide files for the kodi Crunchyreroll plugin

Link to Website
http://reroll.is-cool.dev

CLA Assistant Lite bot: Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.

I have read the CLA Document and I hereby sign the CLA

You can retrigger this bot by commenting recheck in this Pull Request

I have read the CLA Document and I hereby sign the CLA

recheck

@OD-BOT recheck

I have read the CLA Document and I hereby sign the CLA

I have read the CLA Document and I hereby sign the CLA


Add this package to Packagist

The voting is passed and the PSR got accepted. Could we add this repository to Packagist?

@Crell @dragoonis

I don't have access to do so.  Whoever owns the "Fig" user on Packagist will need to.  I've messaged the mailing list about it.


dart:ffi can't be imported when compiling to WASM. Flutter Web failed to compile to WASM.

Steps to reproduce

I don't know if relevant or not - I have the flutter_svg dependency added for my web app.
Ran flutter clean; flutter build web --wasm --release in the terminal.

Expected results
The Flutter Web App should compile properly with WebAssembly. At least it was working fine with Flutter Version 3.22.1
Actual results
Getting the following error:
Target dart2wasm failed: ProcessException: Process exited abnormally with exit code 64:
*NOTE*: Compilation to WasmGC is experimental.
The support may change, or be removed, with no advance notice.

../../../../.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.11+1/lib/src/svg/_tessellator_ffi.dart:6:1: Error: 'dart:ffi' can't be imported when
compiling to Wasm.
import 'dart:ffi' as ffi;

Error: Failed to compile application for the Web.

Code sample
No code preview. Just the terminal command:
flutter clean; flutter build web --wasm --release
Screenshots or Video
Not required.
Logs
Here are the full error logs.
Target dart2wasm failed: ProcessException: Process exited abnormally with exit code 64:
*NOTE*: Compilation to WasmGC is experimental.
The support may change, or be removed, with no advance notice.

../../../../.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.11+1/lib/src/svg/_tessellator_ffi.dart:6:1: Error: 'dart:ffi' can't be imported when
compiling to Wasm.
import 'dart:ffi' as ffi;
^
../../../../.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.11+1/lib/src/svg/_path_ops_ffi.dart:6:1: Error: 'dart:ffi' can't be imported when compiling
to Wasm.
import 'dart:ffi' as ffi;
^
  Command: /Users/adityam/Documents/Dev/flutter/bin/cache/dart-sdk/bin/dart compile wasm --packages=.dart_tool/package_config.json
  --extra-compiler-option=--dart-sdk=/Users/adityam/Documents/Dev/flutter/bin/cache/dart-sdk
  --extra-compiler-option=--platform=/Users/adityam/Documents/Dev/flutter/bin/cache/flutter_web_sdk/kernel/dart2wasm_platform.dill
  --extra-compiler-option=--delete-tostring-package-uri=dart:ui --extra-compiler-option=--delete-tostring-package-uri=package:flutter
  --extra-compiler-option=--import-shared-memory --extra-compiler-option=--shared-memory-max-pages=32768 -Ddart.vm.product=true
  -DFLUTTER_WEB_CANVASKIT_URL=https://www.gstatic.com/flutter-canvaskit/edd8546116457bdf1c5bdfb13ecb9463d2bb5ed4/ -DFLUTTER_WEB_AUTO_DETECT=false
  -DFLUTTER_WEB_USE_SKIA=false -DFLUTTER_WEB_USE_SKWASM=true --extra-compiler-option=--depfile=/Users/adityam/Documents/Mobile
  Apps/Memorio/site/.dart_tool/flutter_build/5389598c2a36d064db55a8edf57e320f/dart2wasm.d -O4 --no-name-section -o /Users/adityam/Documents/Mobile
  Apps/Memorio/site/.dart_tool/flutter_build/5389598c2a36d064db55a8edf57e320f/main.dart.wasm /Users/adityam/Documents/Mobile
  Apps/Memorio/site/.dart_tool/flutter_build/5389598c2a36d064db55a8edf57e320f/main.dart
#0      RunResult.throwException (package:flutter_tools/src/base/process.dart:125:5)
#1      _DefaultProcessUtils.run (package:flutter_tools/src/base/process.dart:321:19)
<asynchronous suspension>
#2      Dart2WasmTarget.build (package:flutter_tools/src/build_system/targets/web.dart:329:5)
<asynchronous suspension>
#3      _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:875:9)
<asynchronous suspension>
#4      Future.wait.<anonymous closure> (dart:async/future.dart:524:21)
<asynchronous suspension>
#5      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:813:32)
<asynchronous suspension>
#6      Future.wait.<anonymous closure> (dart:async/future.dart:524:21)
<asynchronous suspension>
#7      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:813:32)
<asynchronous suspension>
#8      FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:642:16)
<asynchronous suspension>
#9      WebBuilder.buildWeb (package:flutter_tools/src/web/compile.dart:92:34)
<asynchronous suspension>
#10     BuildWebCommand.runCommand (package:flutter_tools/src/commands/build_web.dart:230:5)
<asynchronous suspension>
#11     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1394:27)
<asynchronous suspension>
#12     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#13     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#14     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:372:9)
<asynchronous suspension>
#15     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#16     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:308:5)
<asynchronous suspension>
#17     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:130:9)
<asynchronous suspension>
#18     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#19     main (package:flutter_tools/executable.dart:93:3)
<asynchronous suspension>

Compiling lib/main.dart for the Web...                             24.7s
Error: Failed to compile application for the Web.

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.4.1 23E224 darwin-arm64, locale en-US)
    • Flutter version 3.22.2 on channel stable at /Users/adityam/Documents/Dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (4 days ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/adityam/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /Applications/Brave Browser.app/Contents/MacOS/Brave Browser

[✓] Android Studio (version 2023.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)

[✓] VS Code (version 1.90.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.90.0

[✓] Connected device (3 available)
    • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 14.4.1 23E224 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 14.4.1 23E224 darwin-arm64
    • Chrome (web)                    • chrome                • web-javascript • Brave Browser <IP_ADDRESS>
    ! Error: Browsing on the local area network for Aditya Majethia’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the
      same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Hi @adifyr!
dart:ffi support in WASM is highly experimental. (Only a limited subset of features is supported, and there are no guardrails! Moreover, without the multiple memory proposal, only one C library compiled to WASM can be used at once.) Implementing dart:ffi support in dart2wasm is tracked in:

https://github.com/dart-lang/sdk/issues/46690

We're happy to receive contributions to dart2wasm which implement more features of dart:ffi and beef up the tests!
The error message you're seeing is from https://dart-review.googlesource.com/c/sdk/+/369020 (which was reverted). Once that gets relanded, we will land an experiment flag in Dart to allow experimentation https://dart-review.googlesource.com/c/sdk/+/370063). cc @eyebrowsoffire @mkustermann We might also need an experiment flag in Flutter.

Hi @dcharkes. Thanks for the updated. I'm not using dart:ffi in any of my code. Maybe one of the dependencies is? Is it the flutter_svg package? How do I get my code to compile with WASM?

Hi @dcharkes. Thanks for the update. I'm not using dart:ffi in any of my code. Maybe one of my dependencies has the import? Is it the flutter_svg package?
How do I get my code to compile with WASM?

@adifyr Ideally we make the conditional import be evaluated differently (which I'll see if that is possible). In the mean time I make a PR to package:vector_math that changes the condition, so it will evaluate the way we want.

I tried adding flutter_svg and ran the given command with latest stable and master using demo web app, but was unable to replicate the reported error, but based on the report, I'll label for tracking.

I'm having the same issue with the 3.22.2. I was able to build in wasm in the 3.22.1 but when I updated, it was logging this error with the dart:ffi, and I dont import this lib at all.

I'm going to close this in favor of https://github.com/flutter/flutter/issues/149984

Hi! Any updates on when the next hot-fix will be released to the flutter stable channel?

Hi @mkustermann @dcharkes. Any ETA on when the next hot-fix will be released to the flutter stable channel?

@christopherfujino may know

@mkustermann I try using 3.23.0-13.0.pre.337, but the issue still happen. I found the issue Error: 'dart:ffi' can't be imported when compiling to Wasm.. We need to improve the code for every package/plugin that we use?

But this issue fixed in 3.22.1

@mkustermann I try using 3.23.0-13.0.pre.337, but the issue still happen. I found the issue Error: 'dart:ffi' can't be imported when compiling to Wasm.. We need to improve the code for every package/plugin that we use?

This error is correct, we do not want to allow importing dart:ffi at this moment, because we have very sketchy incomplete support for ffi in dart2wasm. It matters why you get the error, why is dart:ffi imported. (There was one issue where conditional imports on if (dart.library.ffi) were incorrectly evaluated to true, this has been fixed on main/master and will eventually make it to flutter stable).

But this issue fixed in 3.22.1

flutter 3.22.1 is based on flutter/engine@55eae6864b296dd9f43b2cc7577ec256e5c32a8d & dart-lang/sdk@b0e7f171c7c9ab82944ffd6918b80a0df36e0549 (which is dart 3.4.1 I believe). This version doesn't have the bug fixes in (this version accidentally allowed importing dart:ffi which isn't actually working properly in dart2wasm).
Locking this issue.


Upgrade Parquet to 0.13.1

Addresses #29906. This Parquet upgrade unblocks logical type support for parquet-avro, new predicate types, and more.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

assign set of reviewers


Time + Elapsed and left

First of all, thanks for this plugin. This is the most beautiful and complete Discord RPC I've tried so far.
I wanted to ask a little, maybe silly question : when playing, the song indicates the time - which I think is quite good - but also "elaspsed" or "left", according to your presentation though I diden't find how to set it to "left".
I was thinking about an option to remove these "elapsed" or "left" words to just have the timestamp, maybe in the call of the app. Or perhaps it's just in MPRIS, I don't really know, that's the first time I use it too.
I went through the code and searched on Chat GPT for ansewers but nothing worked, as I'm just somekind of a beginner in this stuff.
That's all, if you have this in project or some tweaks we could switch in the code or maybe documentation to set these, that would be useful.
Keep up the good work ! BBV

Hello @bouboulov, thanks for your kind words.
It is not possible to change the caption that is displayed next to the time or display only timer, it's a hard coded design from Discord.
And yes, you can choose between "elapsed" and "left". The cargo package I used to create the Discord RPC provides two options for Timestamp: .start() or .end(). Unfortunately but I couldn't get it to show the "left" time correctly, only the "elapsed". Not sure if I did something wrong or there is a bug in this package. For now it works this way: script will use current song time if the music player provides this information via MPRIS. If not it will use time of last track change. If you pause the song then it's set to 0 seconds "left" and it will return to previous "elapsed" time if you continue playback. I was thinking about working on it a bit more but decided it wasn't that important.
If you want I can add an additional parameter to disable the display of the time completely, it's not a problem. Or I can try to add option to chose between time left or elapsed if I can figure out how to do it correctly.
PS. I'm not going to lie but I don't know Rust very well. Basically, I wrote this program after reading a few chapters of the rustbook. I first wrote it in JavaScript but it's not the best language for writing such things. I wanted it to be as lightweight as possible so I picked Rust because it's way faster.
And by the way, I wrote this because there wasn't or couldn't find any better alternative. But I have recently discovered at least one. Check out THIS maybe you will like it more. The person who wrote this looks like he has more experience with Rust and writing Linux software in general. His script is available in AUR and he also has a setup for systemd so that you don't have to manually add the script to the autostart, it just runs automatically.
The funny thing is that I discovered his work only because the person who wrote it was the first person to star my project, no Idea why he starred it while his is way better.


Nuget.org search results page and API stats are not updating for about 6 days.

This happened before and you reset something after I notified you on twitter. Tried this time but no reply.
Its for everything but as an example currently:
https://www.nuget.org/packages/FsCheck gives 2,937,052 total downloads
https://www.nuget.org/packages?q=FsCheck gives 2,925,061 total downloads
same for the API.

Generally, the download counts displayed on the search page and the package details page might not align as they come from two different sources (compare https://azuresearch-usnc.nuget.org/query?q=packageid:FsCheck and https://www.nuget.org/packages?q=packageid%3Afscheck) and the cadence of updates does not always match, this is a known issue and we'll look into it while working on the statistics pipeline updates.
In this case though, the search service is not having its version of download counts updated. We are looking into it.

Seems to be working again now. Thanks.


Currency preference picker

What
UI for currency preference picker
Why
Users can pick a preferred currency
See 👀

TODO ⏰

[x] Snapshot Tests
[x] View Model Tests
[ ] Review Feedback

 Currency Preferences in Settings

g2g? 👀


Always call callback when taking picture

Issue description
When calling CameraHelper.takePicture(...), there are several cases when error is not reported to the provided callback.
Use case
Applications shows a dialog while taking picture is in progress.
This dialog is dismissed when picture is taken, or replaced with a closable error dialog when error occurs.
When camera get disconnected right before we call takePicture(), callback is not called at all and the dialog will never be dismissed.
Solution
Handle every cases when taking picture and call callback.onError() when getting image is not possible or failed.
Notes
The fix touches just one internal interface ICameraRendererHolder.java, so it brings no braking changes to any user of the library.

Thank you @shiyinghan for maintaining the library!

Hello,
Thank you for all your contribution.
I will merge it.

Thank you @shiyinghan !
Is there a chance that you will release new version with that fix? :)

Hello,
The new version has been released

Awesome! Thank you @shiyinghan


Support for VBA refactoring

hi
Please consider adding support for refactoring operation: rename, extract variable, extract function etc.
Here is description of implementing rename operation
https://code.visualstudio.com/docs/extensionAPI/language-support#_rename-symbols

Hi @cezarypiatek,
Apologies I have only come across this issue by chance rather than by being notified by GitHub, the language extension features are what I have wanted to incorporate into this for a while now but have not got the skill or knowledge on how to implement something like this.
I'll take a look at the link and try not to get lost in the documentation 😄
Is this something you could attempt to do yourself I'd happily accept a PR or if you are doing your own version then please share a link so I can see how you have done it 😄
Thanks

@cezarypiatek I've had a look around and found this thread which explains a bit as to why this hasn't been done yet particularly this comment from @chrisdias

I don't think it is possible to do by a third party either, as there isn't an easily consumable API for the compiler.

Hi @spences10
I've found a VB pareser in c# https://github.com/icsharpcode/ILSpy/tree/master/NRefactory.VB/ICSharpCode.NRefactory.VB
Maybe we could try to port it to TypeScript using for example Rosetta https://github.com/andry-tino/Rosetta
Unfortunately ICSharpCode.NRefactory.VB seems to be abandon (ILSpy go forward without it) and I've had problem with checking out working revision.

Wow, good find @cezarypiatek
What issues were you having checking out working revision?

Yes, I'm using Visual Studio.
I've checkout master but ILSpy.sln does not contains ICSharpCode.NRefactory.VB project, so I've created branch from a6ae2e4b24241ad8a4430f3aa55f99ca934f69b3 revision (the last that contains changes in NRefactory.VB directory).  Next I've checkout all submodules (NRefactory is a submodule). Now I have ILSpy.sln with  ICSharpCode.NRefactory.VB (and all NRefactory projects) but it still does not compile.

Finally I managed to checkout working version but I was unable to parse VBA sample code. It looks like this is a VB.NET parser and I doesn't work with VBA.  Maybe with a litte twist we could make it work with VBA but I'm not sure if I want to waste my life for it - there is a lot of unused method, a lot of commented out code and so much magic numbers which drive parser logic...


[Laravel Horizion] Breadcrumbs in Job handle function do not get recorded.

Environment
Laravel: v9.44.0
Sentry: 3.12.0
Laravel-Sentry: 3.1.2
Sentry-SDK: 3.3.0
Steps to Reproduce
Create a breadcrumb inside a job’s handle function.
\Sentry\Laravel\Integration::addBreadcrumb(new \Sentry\Breadcrumb(
    $level,
    $type,
    $category,
    $message,
    $data
));

Throw an exception inside the job’s handle function.
Expected Result
Being able to see the breadcrumb inside the issue on Sentry.
Actual Result
The breadcrumb does not appear.

I think this happens because Laravel fires the event that an exception occured in a job before actually recording / throwing the exception, so we have popped the scope before the event comes our way, interesting problem...

So this is not unique to Horizon, I am showing examples from the "sync" queue (basically the "fake" queue) driver but the same concept applies to all.
A little timeline:

JobProcessing event is fired (https://github.com/laravel/framework/blob/4079aa941f389c0663d2f785178c70d5f7aa7da7/src/Illuminate/Queue/SyncQueue.php#L41)

Sentry sets up a scope for the job
💬 We set a breadcrumb with job info

The job is executed (https://github.com/laravel/framework/blob/4079aa941f389c0663d2f785178c70d5f7aa7da7/src/Illuminate/Queue/SyncQueue.php#L43)

💬 You set a breadcrumb
💥 Some exception occurs in your job

JobExceptionOccured event is fired (https://github.com/laravel/framework/blob/4079aa941f389c0663d2f785178c70d5f7aa7da7/src/Illuminate/Queue/SyncQueue.php#L47)

We tear down the scope we setup earlier
⚠ We lose all context set after the scope setup

The exception is thrown and reported (https://github.com/laravel/framework/blob/4079aa941f389c0663d2f785178c70d5f7aa7da7/src/Illuminate/Queue/SyncQueue.php#L120)

The error is reported to Sentry with the current active scope

So the "problem" is that we try to "wrap" the job in their own clean scope. However the result is that we also try to cleanup the scope after the job finishes but exceptions are handled after we get the signal the job has finished with an error. This makes total sense from the framework perspective but puts us in somewhat of a pickle.
I think that the best way forward is to not tear down the scope after a job ends but tear down the scope when a second job starts. I am however thinking that this might bring some more interesting problems when running jobs inside the request on a sync queue... but maybe I'm overthinking it.


Hot Fix: display icons in UHF environments

Overview
Currently in production and production-like environments, icons are not properly displayed. This is likely due to a package that is causing a conflict. This revert action should remove the package changes

CSP work was able to fix the need for this PR. Thanks @ElinorW for the approval


关于 GPLv3 链接库污染

使用 GPLv3 的模块会对程序本身造成污染[^1]，这也包括了通过 <script> 进行引用，相较于其他不会因通过模块使用的评论程序而言，似乎降低了一定的竞争力。单从提供评论功能这一需求而言似乎没有必要使用 Artalk 并被 GPLv3 污染的必要性。
是否可以考虑切换到不因使用链接库而被污染的 LGPLv3 或其他许可？
[^1]: Free Software Foundation. GNU GENERAL PUBLIC LICENSE (3rd). June 29 2007. Sect. 5C. "You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it".

感谢你的提议，这对 Artalk 很有帮助！
LGPL v3 是相较于 GPL v3 更为宽松的开源协议[^1]，它允许仅对程序进行调用 (<script> 引入) 而不是包含或修改其源代码时，无需开源。
我打算将 Artalk 的 LICENSE 从 GPL v3 换成 LGPL v3。
[^1]: A larger work using the licensed work through interfaces provided by the licensed work may be distributed under different terms and without source code for the larger work.