client.store is undefined

Steps to Reproduce
I'm getting an exception after updating to 0.6.0 when trying to setup SSR with react-apollo.
import 'isomorphic-fetch'
import path from 'path'
import http from 'http'
import express from 'express'
import serialize from 'serialize-javascript'
import util from 'util'

import React                                         from 'react'
import { createMemoryHistory, match, RouterContext } from 'react-router'
import { renderToString }                            from 'react-dom/server'
import { Provider }                                  from 'react-redux'
import routes                                        from 'src/routes'
import configureStore                                from 'store/configureStore'
import { syncHistoryWithStore }                      from 'react-router-redux'
import sagaMiddleware                                from 'middlewares/sagaMiddleware'
import rootSaga                                      from 'sagas'
import { END }                                       from 'redux-saga'
import config                                        from 'constants/config'

import ApolloClient, { createNetworkInterface }      from 'apollo-client'
import { ApolloProvider }                            from 'react-apollo'
import { getDataFromTree }                           from 'react-apollo/server'

const HTML = ({ content, store, apolloInitialState, jsBuildPath, cssBuildPath }) => (
  <html lang="en">
    <head>
      <link href={`${config.CLIENT_HOST}/${cssBuildPath}`} rel="stylesheet" />
      <script src="https://www.google.com/recaptcha/api.js" async defer />
    </head>
    <body>
      <div id="app" dangerouslySetInnerHTML={{ __html: content }} />
      <script dangerouslySetInnerHTML={{ __html: `window.__initialState__=${serialize(store.getState())};` }} />
      <script dangerouslySetInnerHTML={{ __html: `window.__APOLLO_STATE__=${serialize(apolloInitialState)};` }} />
      <script src={`${config.CLIENT_HOST}/${jsBuildPath}`} />
    </body>
  </html>
)
const PORT = 3000

// The server code must export a function
// (`parameters` may contain some miscellaneous library-specific stuff)
export default function (parameters) {
  const jsBuildPath = parameters.chunks().javascript.main
  const cssBuildPath = parameters.chunks().styles.main

  // Create HTTP server
  const app = new express()
  const server = new http.Server(app)

  app.use(express.static('dist'))
  app.use(express.static('public'))

  app.use((req, res) => {
    const networkInterface = createNetworkInterface({
      uri: config.API_HOST,
      credentials: 'same-origin',
      headers: req.headers
    })

    // networkInterface.use([{
    //   applyMiddleware(req, next) {
    //     console.log(util.inspect(req, false, null))
    //     next()
    //   }
    // }])

    const client = new ApolloClient({
      ssrMode: true,
      networkInterface
    })
    const memoryHistory = createMemoryHistory(req.url)
    const store = configureStore({
      history: memoryHistory,
      apolloClient: client
    })
    const history = syncHistoryWithStore(memoryHistory, store)

    match({ history, routes, location: req.url }, (error, redirectLocation, renderProps) => {
      if (error) {
        res.status(500).send(error.message)
      } else if (redirectLocation) {
        res.redirect(302, redirectLocation.pathname + redirectLocation.search)
      } else if (renderProps) {
        const RootComponent = (
          <ApolloProvider store={store} client={client}>
            <RouterContext {...renderProps} />
          </ApolloProvider>
        )
        const rootTask = sagaMiddleware.run(rootSaga)

        // There are actually 2 stores bound to context
        // context.store - app redux store
        // context.client.store - redux store from apollo
        //
        // We need to use context.client.store to prepopulate apollo initial state on the client
        // See https://github.com/apollostack/react-apollo/issues/210

        // Rendering TWICE, refer to https://github.com/yelouafi/redux-saga/issues/354
        renderToString(RootComponent)
        store.dispatch(END)

        rootTask.done.then(() => {
          getDataFromTree(RootComponent).then(() => {
            const apolloInitialState = client.store.getState()[client.reduxRootKey]
            const content = renderToString(RootComponent)
            const raw = renderToString(
              <HTML
                content={content}
                store={context.store}
                apolloInitialState={{
                  apollo: { data: apolloInitialState }
                }}
                jsBuildPath={jsBuildPath}
                cssBuildPath={cssBuildPath}
              />
            )

            res.status(200)
            res.send(`<!doctype html>\n${raw}`)
            res.end()
          }).catch((error) => res.status(500).send(error.message))
        }).catch((error) => res.status(500).send(error.message))
      } else {
        res.status(404).send('Not Found.')
      }
    })
  })

  // Start the HTTP server
  server.listen(PORT, function () {
    console.log(`Server listening on http://localhost:${PORT}, Ctrl+C to stop`)
  })
}

Buggy Behavior
client.store property is undefined
Expected Behavior
According to the docs I should be able to access store property.
Version

<EMAIL_ADDRESS><EMAIL_ADDRESS>

Try calling client.initStore() first. I suspect your app didn't end up calling any queries?

@tmeasday yes, no queries so far, but in my opinion it would be expected to have an empty apollo store even without any queries

Perhaps it's fixed by this: https://github.com/apollostack/apollo-client/pull/941/files. Try calling client. getInitialState() w/ latest apollo-client?
If not, we should update that PR to also check for an unset store.

@tmeasday thanks, it works with client.initStore(), I'll try with master version lately

I tried to reproduce this in githunt without success. Perhaps the custom redux store is affecting it. I'm still not sure you shouldn't just read from you store rather than client.store, btw.

Hey @tokenvolt I had the same problem updating .. when did you call client.initStore() ? I called after creating ApolloClient and did not work

@msaglietto I'm calling it in a getDataFromTree callback
getDataFromTree(RootComponent).then(() => {
  client.initStore()
  const apolloInitialState = client.store.getState()[client.reduxRootKey]
  const content = renderToString(RootComponent)
  const raw = renderToString(
    <HTML
      content={content}
      store={context.store}
      apolloInitialState={{
        apollo: { data: apolloInitialState }
      }}
      jsBuildPath={jsBuildPath}
      cssBuildPath={cssBuildPath}
    />
  )

  res.status(200)
  res.send(`<!doctype html>\n${raw}`)
  res.end()

I see thanks @tokenvolt
Actually I did no had to call the initStore() .. on the project im working on they where using the return value of getDataFromTree and where there are no queries its empty ...
like:
const ctx = await getDataFromTree(myApp);
data.apollo = ctx.store.getState();

So I used apolloInitialState = client.store.getState()[client.reduxRootKey] instead and it seams to be working

btw @msaglietto the client exports a function getInitialState that calls queryManager#getInitialState which does all this for you.
e.g., client.getInitialState() returns the equivalent of { data: client.store.getState()[client.reduxRootKey].data }

@tmeasday can I close this or do we still need to update the documentation?

@helfer - I'm not sure. I wasn't able to reproduce the problem with githunt, but it's possible it's something to do with custom stores. The docs maybe need to deal with this case but I haven't tried it out.

Thanks! In that case I will close this for now.


[HUDI-2712] Fixing list based rollback of partially failed commit which has new partitions

What is the purpose of the pull request

Lets say there is a partially failed commit which added a new partition (which is not present in table prior to this commit). next write, will rollback this failed commit. When fetching partition list we check against TableFileSystemView which will hit metadata table which may not return the new partition, but just older partitions. listing files is directly done using fs and so is not an issue. To illustrate, for eg, Commit 1 and commit2 added data to partition p1 and p2. and then commit3 added data to partition p1, p2 and p3, but failed midway. so, issue happens during rollback of commit3.
Have fixed the issue and added a test case that fails if not for the fix.

Brief change log

fixed listing of partitions in List based rollback helper to use file system based listing instead of metadata based listing.

Verify this pull request
This change added tests and can be verified as follows:

TestHoodieBackedMetadata#testRollbackOfPartiallyFailedCommitWithNewPartitions

Committer checklist

[ ] Has a corresponding JIRA in PR title & commit

[ ] Commit message is descriptive of the change

[ ] CI is green

[ ] Necessary doc changes done or have another open PR

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

@hudi-bot azure run

@prashantwason : can you please review this.

@hudi-bot azure run

@hudi-bot azure run

@codope @manojpec : Can either of you review this please.

addressed all feedback. please take a look @manojpec @codope

Looks good.

@hudi-bot azure run


Introduce assertState helper

I was debugging an issue with subscriptions when I noticed that the assertions weren't very helpful as they're currently implemented. I wanted a message logged when the assertion failed, so I started updating pusher-platform.ts to use console.assert instead, but then I noticed all the assertions were doing basically the same thing (checking the subscription state), so I wrote a small helper for it. I also added console.trace to give some context when an assertion error is printed out.
Note that console.assert does not throw, so the behaviour here is slightly different - execution does not halt when an assertion fails. I think this in line with how assertions usually work, though.

@hph  LGTM - could you rebase and merge?

@jameshfisher Since this is up to date with master I assume that you mean to merge it by rebasing, instead of getting a merge commit? You can change the GitHub merge settings to work like that with the green button here (I think we do that in the dashboard).
Do you think these assertions should be included in the "production" (minified) version of the library? Should we perhaps produce a development output with warnings that get stripped out in production (similar to React - it includes lots of development warnings that are stripped out when you minify it).

Oh that's weird - when I looked at this earlier I thought it said it had conflicts. :S
I'd KISS and keep the assertions in the production version for now. We can remove anytime later if desired. I have half a mind to remove the .min.js anyway until we're confident that the lib is correct and stable. Debuggability and good error reports are more important atm


Adds the ability to test Symfony commands

With this commit, its become possible to easily test commands
Exemple :
<?php

namespace My\Bundle\FoobarBundle\Tests\Units\Command;

use atoum\AtoumBundle\Test\Units as AtoumBundle;
use mageekguy\atoum;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;

// Assuming that this command will display "Success" if succes, and returns a boolean
use My\Bundle\FoobarBundle\Tests\Units\Command\FoobarCommand as Base;

class FoobarCommand extends AtoumBundle\CommandTestCase
{
    public function testExecute()
    {
        $this
            ->given(
                $command = new Base()
            )
            ->if($commandTester = $this->createCommandTester($command))
            ->then
                ->boolean($commandTester->execute())
                    ->isTrue()
                ->string($commandTester->getDisplay())
                    ->contains("Success")
        ;
    }
}

:+1:

I agree with @jubianchi about ContainerAwareCommand.
Otherwise :+1:

@mikaelrandy :+1:
If you could add your example in the readme, it would be awesome!

:+1:

There is something missing on this PR ?
What is the next step ?

If everything is ok for everyone, I propose to merge and tag a release for the bundle.
I can handle it.

Great !
For information, i can't do anything on the bundle ;)

I will do it. I will review all remaining PR and tag a new release.
Le 15 juin 2015 09:40, "Julien BIANCHI"<EMAIL_ADDRESS>a écrit :

If everything is ok for everyone, I propose to merge and tag a release for
the bundle.
I can handle it.
—
Reply to this email directly or view it on GitHub
https://github.com/atoum/AtoumBundle/pull/84#issuecomment-111968384.

👍🏻 @FlorianLB

Is there a BC break here ?
Next version will be 1.2.0 or 2.0.0 ?

There is no regression in the interface, just some code moved to one level up in class hierarchy.


Model fails for Songs

Not sure where to open this issue since its related to the model (nova-2-ea) itself.
Anyways - for some reason if you try to transcribe any audio (pre-recorded) with music it only transcribes the first few words. Not sure why this is happening and if its related to the music or the pauses?
Appreciate any explanation and/or way to handle this.

Hi @btahir for issues related to the service, could you please raise a question on community forum or Discord.


Add silent option

Disables process.stdout and process.stderr. I think we could disable process.stdin too (since it isn't used?).
Fixes #58.

Yeah, I disabled stdin too.

:accept:


Update fr_FR.lang

how many caracters before \n in tooltips ?

Thanks!  I don't have a designated amount, just whatever looks nice.


Force LINSTOR to respect layer-list when auto-placing

A bug in LINSTOR prior to v1.8.0 caused auto-place to ignore
the layer list inherited from the resource group. As a workaround
we explicitly set the layer list in the autoplace request.
Fixes #77
@rck Opinions on providing this workaround? I'm unsure if we should add this or just wait until a fixed LINSTOR server version is available

I will leave that to you, if you do the releases I'm fine. Code looks good. Personally I think the next LINSTOR release which fixes that is around the corner. If it is that urgent for somebody, they should patch it with the provided diff.

I'll create a new release. This is something that "broke" in v0.8.0 (before that the layer-list was explicit, like in this PR).


add missing require-self-ref dependency

require-self-ref is used in the tests, but not listed in package.json. I added it as a devDependency.
https://github.com/marko-js/marko-cli/blob/245b9bbacbf2c8920faae0e757137eb357102a9f/src/util/hasMarkoCliInstalled.test.js#L1

Thanks for the fix!


Bundler 1.0.2 specs fail

I'm getting the following failures when trying to run the specs for bundler 1.0.2 with ruby 1.8.7.
Failures:

bundle install with gem sources when locked and installed with --without regenerates the environment.rb if install is called twice on a locked repo
Failure/Error: out.should == "1.0"
expected: "1.0",
got: "" (using ==)
./spec/install/gems/locked_spec.rb:39

bundle install with git sources catches git errors and spits out useful output
Failure/Error: err.should include("fatal: 'omgomg'")
expected "fatal: '/var/tmp/portage/dev-ruby/bundler-1.0.2/work/ruby18/bundler-1.0.2/tmp/bundled_app/omgomg' does not appear to be a git repository\nfatal: The remote end hung up unexpectedly" to include "fatal: 'omgomg'"
./spec/install/git_spec.rb:334

bundle install with git sources switching sources doesn't explode when switching Path to Git sources
Failure/Error: should_be_installed "foo 1.0", "bar 1.0"
expected: #<Gem::Version "1.0">,
got: #<Gem::Version ""> (using ==)
Diff:
@@ -1,2 +1,2 @@
-Gem::Version.new("1.0")
+Gem::Version.new("")
./spec/support/matchers.rb:38:in `should_be_installed'
./spec/support/matchers.rb:33:in `each'
./spec/support/matchers.rb:33:in `should_be_installed'
./spec/install/git_spec.rb:483

environment.rb file when Bundler is bundled doesn't blow up
Failure/Error: err.should be_empty
expected empty? to return true, got false
./spec/runtime/environment_rb_spec.rb:167

Finished in 331.98 seconds
450 examples, 4 failures, 6 pending

Check out the source code from github to run the specs.

I install bundler version 1.0.21.
There are multiple below warning when starting server,
"fatal: Not a git repository (or any parent up to mount parent )
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)."
I freezed my rails and some gems in Rails.root/vendor. so, these gems are unpacked, not have a .git directory.

If you DO happen to have your repo on another filesystem (e.g., git is in a VM, and the repo is in a shared folder on the host), Then in bash, you can just set the environment variable like this: export GIT_DISCOVERY_ACROSS_FILESYSTEM=true


Update config.json

Add path finder tool to sidekick.

Adding path finder tool to sidekick.

Test URLs:

Before: https://main--dc--adobecom.hlx.live/?martech=off
After: https://rgclayton-path-finder--dc--adobecom.hlx.live/?martech=off

Added to Milo this week.

Access from any Word/Excel page.
Open sidekick
Click "path" button in sidekick (top level).
Launches the path tool.
Lists the relative (human readable) path for the Word/Excel doc.
Can modify the path to jump to a new Word/Excel doc.
Options include opening the path in same page or in a new tab

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.41%. Comparing base (c5e8704) to head (dcec89c).

Additional details and impacted files
@@           Coverage Diff           @@
##            stage     #682   +/-   ##
=======================================
  Coverage   90.41%   90.41%
=======================================
  Files          36       36
  Lines        4528     4528
=======================================
  Hits         4094     4094
  Misses        434      434

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Implement support for TLS config, OAuth credentials and setup CP integration tests

Summary of Changes

Add cp-demo testcontainers, along with a script to set it up from scratch -- works locally and on CI.
Added make targets to start/stop cp-demo.
Added make targets to store/load the Docker images into/from Semaphore cache. (I noticed we weren't caching confluent-local, so I've added that too.)
Bring @rhauch's implementation of mTLS and OAuth credentials from #211 and tweaked as follows. Mutual TLS is no longer a "credentials" type, but rather a sub-field called ssl under ConnectionSpec.KafkaClusterConfig as well as ConnectionSpec.SchemaRegistryConfig. The ssl config may be set along with any credentials type (basic, apikey/secret, oauth) and can even be set in the absence of creds.
The field ssl holds all configs related to TLS. (h/t @flippingbits for this section)

It can be used to disable the usage of TLS via the boolean field enabled, in which case the sidecar uses an unencrypted but potentially authenticated channel to interact with the Kafka cluster.
It accepts a keystore via the field keystore, a truststore via the field truststore, and allows to disable hostname verification via the boolean field verify_hostname.
If ssl is set to null, the sidecar uses an encrypted channel to interact with the Kafka cluster, verifies the hostname, and does not take any custom keystore/truststore into account.

Any additional details or context that should be provided?

Follow up items:

Add a new Credentials type called MutualTLSCredentials starting with a single field such as derived that is always set to true. The SSL configuration for mTLS will still need to be passed in the kafka_cluster.ssl (or schema_registry.ssl) object. -- #237
The OAuth credentials type is untested, we can add integration tests for this in a follow up PR. -- #238
~Fix pom.xml configuration to ensure we run integration tests just once, not twice.~ (Fixed in #224)
Replace ZK with KRaft, start just one Kafka broker -- https://github.com/confluentinc/ide-sidecar/issues/239

Pull request checklist
Please check if your PR fulfills the following (if applicable):

Tests:

[x] Added new
[x] Updated existing
[x] Deleted existing

[x] Have you validated this change locally against a running instance of the Quarkus dev server?make quarkus-dev

[x] Have you validated this change against a locally running native executable?make mvn-package-native && ./target/ide-sidecar-*-runner

@rhauch: I compared the output of make mvn-package-native-sources-only && ls target/native-sources/lib for with parent POM set to confluentinc/common-parent, and for without:
❯ diff yes-parent-deps.txt no-parent-deps.txt
27c27
< com.google.code.gson.gson-2.9.0.jar
---
> com.google.code.gson.gson-2.11.0.jar
30,31c30
< com.google.guava.guava-32.0.1-jre.jar
< com.google.guava.listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
---
> com.google.guava.guava-33.2.1-jre.jar
33c32
< com.google.protobuf.protobuf-java-3.25.3.jar
---
> com.google.protobuf.protobuf-java-3.25.5.jar
230c229
< org.apache.kafka.kafka-clients-7.7.0-ccs.jar
---
> org.apache.kafka.kafka-clients-3.7.1.jar
264,265c263,264
< org.scala-lang.scala-library-2.13.10.jar
< org.slf4j.slf4j-api-1.7.36.jar
---
> org.scala-lang.scala-library-2.13.14.jar
> org.slf4j.slf4j-api-2.0.6.jar
268c267
< org.yaml.snakeyaml-2.0.jar
---
> org.yaml.snakeyaml-2.2.jar

As you rightly suspected, there are a few dependency changes. The list of changes indicate how to go from yes-parent-deps.txt to no-parent-deps.txt, with < meaning line removed, > meaning line added.
One difference to highlight is the org.apache.kafka:kafka-clients package -- with the parent POM it was Confluent's 7.7.0-ccs version, and without it we seem to pull Apache's 3.7.1 version.

Second, are we sure we want to do this change with potentially major impact in this PR? What is the impact of postponing this to a subsequent PR? I presume the builds are longer, but by how much compared to current main?

Given the analysis above and the potential unknown impact beyond just a few dependency upgrades, I'm fine with postponing this to a subsequent PR. The builds will be 50% longer, going from ~20 mins to ~30 mins. (And that 20 min number is already a 33% increase from ~15 mins).

@rohitsanj wrote:

Given the analysis above and the potential unknown impact beyond just a few dependency upgrades, I'm fine with postponing this to a subsequent PR. The builds will be 50% longer, going from ~20 mins to ~30 mins. (And that 20 min number is already a 33% increase from ~15 mins).

Thanks. We should continue to reduce the time required to run the CI builds, but now we just need it working and IMO we should separate out the improvements into subsequent PRs that can more easily be understood and rolled back if needed.

@rhauch @flippingbits I've updated the PR description to reflect the current state of the changes. Please have another look! I apologize for the large file diff.

@flippingbits Thanks so much for the review! I've made some updates based on our offline conversation.

Seems there's quite a few branches in the ConnectionSpec validation logic that have not been covered with tests. Given how large this PR has gotten, we can add tests in a follow up PR -- https://github.com/confluentinc/ide-sidecar/issues/241

The two bugs reported by Sonarqube were false positives and I've resolved them with comments.

For those following: @rhauch is fine with us merging this.


terraform managed ip addresses

Presently - if we switch out the ip addresses of a terraform cluster, DNS has to be manually updated with the new ip addresses.
We should have some kind of load balancer (managed also by terraform)
if the cluster of machines get new ip addresses, any DNS out in the wild will still resolve to the new ips via the load balancer.

Obviously not p0, but very convenient


Links in modules are broken in some places

In the module level documentation for each module there are links to various structs that use relative urls. Since the doc for the module is embedded on the index, which is in another folder, this causes broken links.

Fixed by commit 8830bbfc2f9a8def263255749d3235cdc072e9af.


[Feature Request] Add support for DMD positioning

DMDs are often have the same position(s).
Provide a screen virtualizer that shows the DMD position and editor so that the user can change and fix it without the need to restart a table.

Yes, that's exactly what I have in mind.

The problem might be that the position can be stored in the registry or in the dmddevice.ini.
Let's start a branch for this feature and get started. Well see where the problems are once we get there.
I'll design the initial view then.

Fixed with 3.11.0


Link to dev docs for now until stable links are working.

Links are broken so link to dev docs for now like APDL is doing.

Linking this to https://github.com/pyansys/pyansys/issues/171

Thanks for solving this @dnwillia-work @jorgepiloto


[Memory Leak] Excessive calls to requireFromString leads to heap allocation error.

Hey!
I've been tracing down a memory leak in my web app for a while now. We use webpack-hot-server-middleware which consumes this package. Our webapp is quite large and after a certain number of file edits and webpack dev server compilations the app eventually calls it quits.
I've isolated the issue in the following code snippet:
#!/usr/bin/env node

var requireFromString = require('require-from-string');
var cycles = 100000;
var delay = 10;

(function step() {
  requireFromString(`/* ${'x'.repeat(10*512*1024)} */`, '/fake/path/to/file.js');

  if (--cycles > 0) {
    setTimeout(step, delay);
  }
}());

I've taken a look at the code in this repo and can't see any thing that jumps out at me. Im hoping that the issue isn't in the "Module" object.
Anything that would help would be appreaciated. Thank you

We've seen this too.


SAAS-554 UI tests execution on Grafana PR

@yurkovychv we could move some other tests too to the Grafana PR's, settings, etc.

@yurkovychv we could move some other tests too to the Grafana PR's, settings, etc.

some settings tests are included, I plan to add more tests there but this is just a starting point.


Interpolation with {{{ does not encode Strings correctly

My understanding is that {{{ interpolation (vs {{) should interpolate a JSON-encoded value with no escaping.
Therefore, I'd expect:
country: {{{settings.country}}}

(Where country is a Text or String type)
To produce,
country: "No"

Because,
λ> import Data.Aeson
λ> encode "No"
"\"No\""

Instead, it produces:
country: No

This is Bad because, as we all know, it will be interpreted as a boolean False by most Yaml parsers.
I could work around this, with something like:
country: '{{{settings.country}}}'

But that doesn't work for my use-case, which is CloudFormation templates, where I might be interpolating the string "No", but also a complex object like { Ref: "Country" }. So if I added quotes to fix this case, I would produce the wrong thing in that case instead,
country: '{"Ref": "Country"}'

I need that case, to still come out as:
country: {"Ref": "Country"}

Which is why I'm using {{{country}}} in the first place.
It just seems strings are not being handled correctly.

The difference between {{{ and {{ is the lack of HTML-escaping, not any other type of escaping. See https://mustache.github.io/mustache.5.html. Automatic quoting of strings with either {{{ or {{ is contrary to the specification: https://github.com/mustache/spec/blob/master/specs/interpolation.yml#L156-L160. You probably need to prepare your values manually (encode as ByteString or Text) before you interpolate them.

Thanks for clarifying!

 Do you mean take a value like "No" :: Text and make it "\"No\"" :: Text before interpolating it?

What I had in mind is that if you have a JSON value you need to "pre-render" it (so that strings get their quoting, while objects are correctly represented between curly braces {}) and then pass the result of rendering into the template for interpolation.

Yeah, I think we're saying very similar things. That was my workaround while awaiting this Issue anyway, so I guess I'll just keep it.


Property can't contain a slash

What version of Ajv are you using? Does the issue happen if you use the latest version?
8.11.0, I believe I am on latest
Ajv options object

{ allErrors: true }

JSON Schema

"schema": {
      "$comment": "https://spec.openapis.org/oas/v3.1.0#schema-object",
      "type": ["object", "boolean"]
    },
"media-type": {
      "$comment": "https://spec.openapis.org/oas/v3.1.0#media-type-object",
      "type": "object",
      "properties": {
        "schema": {
          "$ref": "#/definitions/schema"
        }
      },
      "unevaluatedProperties": false
    },
"content": {
      "$comment": "https://spec.openapis.org/oas/v3.1.0#fixed-fields-10",
      "type": "object",
      "additionalProperties": {
        "$ref": "#/definitions/media-type"
      },
      "propertyNames": {
        "enum": ["application/json"]
      }
    }

Sample data
 "content": {
            "application/json": {
              "schema": {
                "type": "string",
                "description": "Order ID"
              }
            }
          }

Your code

ajv = new AJV2019({ allErrors: true });
ajv.addMetaSchema(draft7MetaSchema);
addFormats(ajv, { mode: "fast" });
const ajvFunction = ajv.compile(schema);
ajvFunction(data)

Validation result, data AFTER validation, error messages
Expected "}" but found "/"

What results did you expect?
I expected this data to validate correctly. In Open API you can construct a Response Object which has a content property that maps a MIME type (ex. application/json) to a Media Type Object
Are you going to resolve the issue?
I don't know how

Ah this error turned out not to be from AJV, but from the code that was using the AJV result. Closing


Investigate the JAR size increase between 0.94.0 and 0.95.0

0.94.0 - 6780408 bytes
0.95.0 - 8322580 bytes

:thinking:

There are many many favicons at /com/linecorp/armeria/server/docs/assets in armeria-0.95.0.jar, which takes about 1.7 MiB in total. I guess it's an overkill? /cc @Ta2Rim

We might want to remove the font files as well and use web fonts from https://fonts.google.com/

0.97.0 will be around 6.2 MiB :tada: Thanks @anuraaga !


Change Collection Suggestion

This is a suggestion to change what class file LiteCommands looks for when it comes to collections. I think instead of checking for a suggestion on List.class, it should instead check the class of the objects the List contains. Example List should look for completion based on GameMode.class not List.class.

This is how it currently works only indirectly to be able to better manage suggestions. LiteCommands -> List suggester -> GameMode suggester

This is how it currently works only indirectly to be able to better manage suggestions. LiteCommands -> List suggester -> GameMode suggester

Currently, when providing for the class type of the object in the collection, and not providing for the collection class results in an error. As an example, I changed to using ArgumentKey as suggested in #377 and it errors out when it gets to the List argument.

This is how it currently works only indirectly to be able to better manage suggestions. LiteCommands -> List suggester -> GameMode suggester

Currently, when providing for the class type of the object in the collection, and not providing for the collection class results in an error. As an example, I changed to using ArgumentKey as suggested in #377 and it errors out when it gets to the List argument.
java.lang.IllegalArgumentException: No parser found for argument List
	at phantomworlds.libs.lc.litecommands.argument.parser.ParserSet.getValidParserOrThrow(ParserSet.java:17) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.input.raw.RawInputAnalyzer.isNextOptional(RawInputAnalyzer.java:63) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.argument.suggester.input.SuggestionInputRawImpl$Matcher.isNextOptional(SuggestionInputRawImpl.java:71) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.suggestion.SuggestionService.suggestArgument(SuggestionService.java:109) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.suggestion.SuggestionService.suggestExecutor(SuggestionService.java:87) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.suggestion.SuggestionService.suggest0(SuggestionService.java:55) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.suggestion.SuggestionService.suggest(SuggestionService.java:34) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.command.CommandManager$PlatformListener.suggest(CommandManager.java:71) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.bukkit.BukkitCommand.suggest(BukkitCommand.java:82) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.bukkit.TabComplete.callListener(TabComplete.java:65) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.bukkit.TabCompletePaperAsync.executeListener(TabCompletePaperAsync.java:25) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.bukkit.TabCompletePaperAsync.lambda$new$0(TabCompletePaperAsync.java:20) ~[PhantomWorlds-2.0.5.jar:?]
	at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) ~[purpur-api-1.20.2-R0.1-SNAPSHOT.jar:git-Purpur-2092]
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[purpur-api-1.20.2-R0.1-SNAPSHOT.jar:?]
	at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[purpur-1.20.2.jar:git-Purpur-2092]
	at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[purpur-1.20.2.jar:git-Purpur-2092]
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:617) ~[purpur-api-1.20.2-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.event.Event.callEvent(Event.java:45) ~[purpur-api-1.20.2-R0.1-SNAPSHOT.jar:?]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleCustomCommandSuggestions$7(ServerGamePacketListenerImpl.java:822) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
	at java.lang.Thread.run(Thread.java:1623) ~[?:?]

Code to register argument parser:
.argument(String.class, ArgumentKey.of("world-setting"), new SettingParameterRedux())

I cannot reproduce this issue. You can see how use List<T> arguments in the following example
When I use list arguments, everything works normally. Maybe this is a problem with the use of @OptionalArg ? Try use @Arg (a collection can be empty)

This is how it currently works only indirectly to be able to better manage suggestions. LiteCommands -> List suggester -> GameMode suggester

Currently, when providing for the class type of the object in the collection, and not providing for the collection class results in an error. As an example, I changed to using ArgumentKey as suggested in #377 and it errors out when it gets to the List argument.
java.lang.IllegalArgumentException: No parser found for argument List
	at phantomworlds.libs.lc.litecommands.argument.parser.ParserSet.getValidParserOrThrow(ParserSet.java:17) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.input.raw.RawInputAnalyzer.isNextOptional(RawInputAnalyzer.java:63) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.argument.suggester.input.SuggestionInputRawImpl$Matcher.isNextOptional(SuggestionInputRawImpl.java:71) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.suggestion.SuggestionService.suggestArgument(SuggestionService.java:109) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.suggestion.SuggestionService.suggestExecutor(SuggestionService.java:87) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.suggestion.SuggestionService.suggest0(SuggestionService.java:55) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.suggestion.SuggestionService.suggest(SuggestionService.java:34) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.command.CommandManager$PlatformListener.suggest(CommandManager.java:71) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.bukkit.BukkitCommand.suggest(BukkitCommand.java:82) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.bukkit.TabComplete.callListener(TabComplete.java:65) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.bukkit.TabCompletePaperAsync.executeListener(TabCompletePaperAsync.java:25) ~[PhantomWorlds-2.0.5.jar:?]
	at phantomworlds.libs.lc.litecommands.bukkit.TabCompletePaperAsync.lambda$new$0(TabCompletePaperAsync.java:20) ~[PhantomWorlds-2.0.5.jar:?]
	at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) ~[purpur-api-1.20.2-R0.1-SNAPSHOT.jar:git-Purpur-2092]
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[purpur-api-1.20.2-R0.1-SNAPSHOT.jar:?]
	at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[purpur-1.20.2.jar:git-Purpur-2092]
	at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[purpur-1.20.2.jar:git-Purpur-2092]
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:617) ~[purpur-api-1.20.2-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.event.Event.callEvent(Event.java:45) ~[purpur-api-1.20.2-R0.1-SNAPSHOT.jar:?]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleCustomCommandSuggestions$7(ServerGamePacketListenerImpl.java:822) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
	at java.lang.Thread.run(Thread.java:1623) ~[?:?]

Code to register argument parser:
.argument(String.class, ArgumentKey.of("world-setting"), new SettingParameterRedux())

I cannot reproduce this issue. You can see how use List<T> arguments in the following example  When I use list arguments, everything works normally. Maybe this is a problem with the use of @OptionalArg ? Try use @Arg (a collection can be empty)

Seems to be the case with OptionalArg throwing the error.
Thank You,


Installation error: permission denied for node-sas

Installation error (node-sass) with:
node version 8.1.2
npm version 5.0.3
I recently updated node from 7.5.0 to 8.1.2 (with nvm). Installing the latest @angular/cli now results in this error:
The log given by the failure.
><EMAIL_ADDRESS>install /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-sass
> node scripts/install.js

Unable to save binary /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-sass/vendor/darwin-x64-57 : { Error: EACCES: permission denied, mkdir '/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-sass/vendor'
    at Object.fs.mkdirSync (fs.js:890:18)
    at sync (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/mkdirp/index.js:71:13)
    at Function.sync (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/mkdirp/index.js:77:24)
    at checkAndDownloadBinary (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-sass/scripts/install.js:111:11)
    at Object.<anonymous> (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-sass/scripts/install.js:154:1)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
  errno: -13,
  code: 'EACCES',
  syscall: 'mkdir',
  path: '/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-sass/vendor' }

><EMAIL_ADDRESS>install /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/fsevents
> node install

[fsevents] Success<EMAIL_ADDRESS>already installed
Pass --update-binary to reinstall or --build-from-source to recompile

><EMAIL_ADDRESS>postinstall /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-sass
> node scripts/build.js

Building: /Users/macliems/.nvm/versions/node/v8.1.2/bin/node<EMAIL_ADDRESS>rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/Users/macliems/.nvm/versions/node/v8.1.2/bin/node',
gyp verb cli<EMAIL_ADDRESS>gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library=' ]
gyp info using<EMAIL_ADDRESS>gyp info using<EMAIL_ADDRESS>| darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed     at getNotFoundError (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:13:12)
gyp verb `which` failed     at F (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:68:19)
gyp verb `which` failed     at E (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:80:29)
gyp verb `which` failed     at /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:89:16
gyp verb `which` failed     at /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/isexe/index.js:42:5
gyp verb `which` failed     at /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/isexe/mode.js:8:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb `which` failed  python2 { Error: not found: python2
gyp verb `which` failed     at getNotFoundError (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:13:12)
gyp verb `which` failed     at F (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:68:19)
gyp verb `which` failed     at E (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:80:29)
gyp verb `which` failed     at /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:89:16
gyp verb `which` failed     at /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/isexe/index.js:42:5
gyp verb `which` failed     at /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/isexe/mode.js:8:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb `which` failed   stack: 'Error: not found: python2\n    at getNotFoundError (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:13:12)\n    at F (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:68:19)\n    at E (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:80:29)\n    at /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:89:16\n    at /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/isexe/index.js:42:5\n    at /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/isexe/mode.js:8:5\n    at FSReqWrap.oncomplete (fs.js:152:21)',
gyp verb `which` failed   code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python /usr/bin/python
gyp verb check python version `/usr/bin/python -c "import platform; print(platform.python_version());"` returned: "2.7.10\n"
gyp verb get node dir no --target version specified, falling back to host node version: 8.1.2
gyp verb command install [ '8.1.2' ]
gyp verb install input version string "8.1.2"
gyp verb install installing version: 8.1.2
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 8.1.2
gyp verb build dir attempting to create "build" dir: /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-sass/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-sass/build'
gyp ERR! System Darwin 16.6.0
gyp ERR! command "/Users/macliems/.nvm/versions/node/v8.1.2/bin/node"<EMAIL_ADDRESS>"rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-sass
gyp ERR! node -v v8.1.2
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/@angular/cli/node_modules/node-sass):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>postinstall: `node scripts/build.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

May want to check out #6800

Agreed, check out: https://docs.npmjs.com/getting-started/fixing-npm-permissions

Closing as a duplicate of #6800.

I run chown it's worked
sudo chown -r XXX /usr/lib/node_modules/ or sudo chown -r XXX /usr/lib/node_modules/@angular/
if not it might chgrp
sudo chgrp -r XXX /usr/lib/node_modules/

I have faced and fixed this issue relates node-sass and python error.Try installing latest angular cli command with the steps below
Set the system variable path as well:
C:\Users\windowsusername\AppData\Roaming\npm
C:\Users\windowsusername\AppData\Roaming\npm\node_modules@angular\cli\bin;
C:\Program Files\nodejs;
Then start using angular cli command prompt using:
angular client project folder path>npm install -g @latest
angular client project folder path>npm install -g node-gyp

Please take the following steps to avoid issues:
"npm install --save-dev @angular/cli@latest"

is there any new changes pushed in node_scss????
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library=' ]
gyp info using<EMAIL_ADDRESS>gyp info using<EMAIL_ADDRESS>| darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb which failed Error: not found: python2
gyp verb which failed     at getNotFoundError (/Users/test/git/angular-webpack/node_modules/which/which.js:13:12)
gyp verb which failed     at F (/Users/test/git/angular-webpack/node_modules/which/which.js:68:19)
gyp verb which failed     at E (/Users/test/git/angular-webpack/node_modules/which/which.js:80:29)
gyp verb which failed     at /Users/test/git/angular-webpack/node_modules/which/which.js:89:16
gyp verb which failed     at /Users/test/git/angular-webpack/node_modules/isexe/index.js:42:5
gyp verb which failed     at /Users/test/git/angular-webpack/node_modules/isexe/mode.js:8:5
gyp verb which failed     at FSReqWrap.oncomplete (fs.js:166:21)
gyp verb which failed  python2 { Error: not found: python2
gyp verb which failed     at getNotFoundError (/Users/test/git/angular-webpack/node_modules/which/which.js:13:12)
gyp verb which failed     at F (/Users/test/git/angular-webpack/node_modules/which/which.js:68:19)
gyp verb which failed     at E (/Users/test/git/angular-webpack/node_modules/which/which.js:80:29)
gyp verb which failed     at /Users/test/git/angular-webpack/node_modules/which/which.js:89:16
gyp verb which failed     at /Users/test/git/angular-webpack/node_modules/isexe/index.js:42:5
gyp verb which failed     at /Users/test/git/angular-webpack/node_modules/isexe/mode.js:8:5
gyp verb which failed     at FSReqWrap.oncomplete (fs.js:166:21)
gyp verb which failed   stack: 'Error: not found: python2\n

I was getting the same frustrating error, it's definitely a permissions issue. If you've been using NPM with sudo for a while and don't want to go through the hassle of reinstalling everything (at least not right in the middle of a project) I think I found a quick fix.
node-sass refused to install whether I used sudo or not, so I looked at my project directory - ls -ahl and saw that my node_modules directory was set to user root I'm assuming as a consequence of using sudo. I ran a sudo chown yourname:yourgroup node_modules where yourname/yourgroup is the name/group of all your other non-root controlled files and then ran (without sudo) npm i node-sass -D
This did the trick. Just a suggested shortcut.

I'm getting the same error on windows when creating a new project knowing that i did npm install overcoming a proxy .
I'm really stuck

I solved this by simply yarn add node-sass

@saadbinsaeed I'm getting the following error
error https://github.com/doctyper/customizr/tarball/develop: Fetch succeeded for undefined. However, extracting "https://github.com/doctyper/customizr/tarball/develop" resulted in hash "a15f0296a0a2488177085aec4ff42c7aaf5510ef", which did not match the requested hash "845ddb7443eae671efcf5352feaec57d7e6e5f0f".

@Mona-Superscientist Are you using the yarn? Try upgrading it to latest version. But first try it by removing your lock file and reinstalling the node modules

" npm install -g --unsafe-perm node-sass " .   solved the issue.

You Need:
sudo npm install node-gyp -g

npm install --unsafe-perm --force

I solved it by:

In the project folder go to node_modules in Finder (on Mac),
Get the folder properties using Cmd i
Go to Sharing & Permissions
Change all permissions from the bottom table to Read & Write
Select 'Apply to enclosed items...' from the setting menu under the permission table

This might be a temporary fix until I find a better one.

I had also facing this error. None of the above methods work for me. Please follow this. It's Works like a charm !!
For Installing Node in Ubuntu 16 via npm :-
You can install with npm 5.2.0 Version
If you are using nvm :-

nvm install 8.2.1
nvm use 8.2.1
npm install node-sass

If you are using npm separately then upgrade or downgrade npm version to 5.2.0

npm install node-sass

I had problem to install by Docker container I got the error:
gyp WARN EACCES user "undefined" does not have permission to access the dev dir "/app/node_modules/node-sass/.node-gyp/8.9.1"

Then I added in my Dockerfile:
USER root

# after node installation:
RUN npm config set user root

I think even you aren't using Docker, you can run npm config set user <your-user> that will work.

I had problem to install by Docker container I got the error:
gyp WARN EACCES user "undefined" does not have permission to access the dev dir "/app/node_modules/node-sass/.node-gyp/8.9.1"

Then I added in my Dockerfile:
USER root

# after node installation:
RUN npm config set user root

I think even you aren't using Docker, you can run npm config set user <your-user> that will work.

That worked for me on Docker node:10 thanks heaps

with --unsafe-perm should work anyway! I don't think, that using "root" user is a good practice by using docker-images, especially on production-server

@WuglyakBolgoink

with --unsafe-perm should work anyway! I don't think, that using "root" user is a good practice by using docker-images, especially on production-server

Why? root is the default user and all of that will run inside a container (if you're using docker, of course). I believe that's the main purpose of using an isolated context, but you can try set another user anyway.

After throwing everything I knew at it, restarting my computer resolved the issue for me. It's possible that either IntelliJ or my corporate antivirus was interfering with it? Thought I'd share in case someone else is out of ideas :smile:

@adamdport lol, "have you tried turning it on and off again?" nice one!

Hi All,
Please include below command in your route folder.
sudo npm install -g --unsafe-perm node-sass
It's working fine.

No need to worry .
After installing via angular CLI , use following command .
npm install --unsafe-perm=true --allow-root

sudo npm install -g --unsafe-perm --verbose @angular/cli

instead of this just try to install everything as non-root user


Level down metricsManager log for accumulating to debug

Seems this accumulating log is overflowing stage indy log now, so I level it down to debug here.

Seems trace is better so I level down to it.


diags fail on kitware bot

@danlipsa looking at kitware ctest results i see:
writing png file1 /tmp/tmpV1y6JC//figure-set6_Global_ANN_dv_TAUY_ANN_ft0_cam35_data_smaller_plot-0.png for dv_TAUY_ANN_ft0_cam35_data_smaller
Traceback (most recent call last):
  File "/home/buildbot/buildbot/uvcdat-garant-linux-release/build/install/bin/diags", line 589, in <module>
    run_diagnostics_from_options(o)
  File "/home/buildbot/buildbot/uvcdat-garant-linux-release/build/install/bin/diags", line 96, in run_diagnostics_from_options
    run_diagnostics_from_filetables( opts, modelfts, obsfts )
  File "/home/buildbot/buildbot/uvcdat-garant-linux-release/build/install/bin/diags", line 534, in run_diagnostics_from_filetables
    vcanvas.png( fname, ignore_alpha=True, metadata=provenance_dict() )
  File "/home/buildbot/buildbot/uvcdat-garant-linux-release/build/install/lib/python2.7/site-packages/metrics/common/utilities.py", line 117, in provenance_dict
    os.getlogin(), os.getcwd(), " ".join(sys.argv)
OSError: [Errno 25] Inappropriate ioctl for device

Could it be VTKpng writer?

see: https://open.cdash.org/testDetails.php?test=396955594&build=4126205

I think this PR will fix the issue: https://github.com/UV-CDAT/uvcmetrics/pull/132.


blazy does not change images source on window resize

I have tested it on my local. Image won't change source when window resize. I looked at demo page and try to resize window. But when it first load big-bear, it won't load small-bear image below 420px;
<img src=data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
                                     data-src="/assets/images/banner-1-lg.jpg"
                                     data-src-sm="/assets/images/banner-1-sm.jpg"
                                     data-src-mobile="/assets/images/banner-1.jpg"
                                     class="b-lazy">

var bLazy = new Blazy({
        breakpoints: [{
            width: 480
            , src: 'data-src-mobile'
        }
            , {
                width: 767
                , src: 'data-src-xs'
            }
            , {
                width: 991
                , src: 'data-src-sm'
            }
        ]
    });

Hey @nntgwww .
The breakpoints are defined by the device width not the browser width. It means that it’ll look at your screen width which won’t change when you resize your browser window.
The reason why I’m looking at the device width and not the width is that I don’t want to load multiple image sources for the same image when you resize (multiple server request per image). And if you have a big screen but the start width of your browser window is something small I don’t want to upscale a low res image if you resize it up.

Ok thank you for your reply. I want to achieve this because my layout will be broken if user resize the window (Row, Grid, Fluid will change order and images too...) also designer want to load different images for each screen size... If you can add this featured it will be good for case like me :).
Love ur plugin like bPopup very lightweight :)


VM: Only enable GPU vga mode on x86_64 systems

Signed-off-by: Thomas Parrott<EMAIL_ADDRESS>

Testsuite passed


Support range values

I have a set of text like:
10-20 ºC
15 ± 5 ºC
Between 10 and 20 ºC

Should these be parsed? if so into what kind of format?, list[Quantity] with two elements (and min and max)? Something else?

Nice examples!
I have added them to the test examples.
I did a few updates so they now provide values. (PR #14)
10-20 ºC now gives 1e-20 degC

I know this is probably not the desired result, but this is because it looks like scientific notation '10**-20 degC' where the '**' are not present. For the use case I built this package for, this is quite common. If the range is anything but '10' for the first value it should work fine. For example '15-20 degC' would yield '15 degC'. I added this as an example where parsing goes wrong.

15 ± 5 ºC now gives 15 degC
Between 10 and 20 ºC now gives 10 degC
The preference I have for the package is to give a single number from range, in which I have favored the first number in the range. This could be potentially an area for improvement.

Ok thanks. I built a little class that will parse these strings, and returns a Range class that contains a mini and max Quantity field. This would for my use case, happy to contribute back if you think it'll be useful. Otherwise I'll post it on GitHub and link it here incase others find it useful

I would be happy to have it added to this package or if you prefer to have it as a fork; I am happy to add a link in the README to it. What ever you prefer.


add claude3.5 and gpt-4o

@sreekanth221998 I am pushing the overall reports for these two models.
building the leader board now can cause conflict while merging, so it would be better to merge this or Gemma branch and pull first.

and 3 models with score one in computational chemistry.
we probably should add more questions here.
what are the chances that the source data is being used for training ?

We have new winner 😄

whoop, whoop!

Looks very nice to me!


Cassandra service

Motivation for this change
Allows for service.cassandra to be used in nixos/configuration.nix as probably intended
Things done
Added cassandra to the module-list.nix file

I noticed https://github.com/NixOS/nixpkgs/pull/31410 after I start hacking this, please ignore!


Add coverage_qc to tools_off

This allows to skip running samtools-stats

Brilliant, thanks so much for the enhancement Vlad.


Can't find proprietary service

Hi,
While using BLE Starter project, i can't find my proprietary characteristic in list of discovered characteristics.
My proprietary service is : "0000ffe0-0000-1000-8000-00805f9b34fb"
and associated characteristic is: "0000ffe1-0000-1000-8000-00805f9b34fb"
I followed the Android Ble Guide on Punch Through website and encountered problem while reading this characteristic. This is the main reason why i wanted to test with BLE Starter, and check the difference with my code.
The problem i encounter with my piece of code is a disconnection of my ble device as soon as my android app sends a command (well received by the device)
Maybe there is something i don't understand about services/characteristics that is the reason why it is not discovered in BLE Starter...
This could really help me with my own code.
Thanks

Stupid me, didn't see the scroll....
Still, it doesn't solve my initial problem


Your browser does not support the playback of this video

hi, i getting error on osx crome with flash installed:

Your browser does not support the playback of this video . Please try using a different browser.

And i checked "" with VLC and open okay.
This is my code:
`

Building the plugin,  works.

Did you build SWF file?


"Sorry, I can't take payments in your region" message when testing Actions on Google Orders v3 API (The Netherlands)

Hi,
I'm working on a project and am implementing the orders v3 API. Unfortunately, I get the following error message: "Sorry, I can't take payments in your region." The Action is tested in the simulator and on an iPhone in The Netherlands and according to the docs The Netherlands is supported (see here).
Here is a part of the JSON string in the request: {\n \"regionCode\": \"NL\",\n}. It states that the region is NL and the docs say the region is supported, but it does not work.
Furthermore, I am using mostly the sample code provided in this repository for testing it.
Does anyone have a solution for this problem? It seems to be a problem related to Actions on Google and the API...

And now it suddenly works. This issue is closed.


Archive this GitHub Project

Per the README at https://github.com/SheetJS/sheetjs#-new-home this project is no longer active having moved to https://git.sheetjs.com/sheetjs/sheetjs.
To reduce confusion, can you please archive this GitHub project? That way, no one will create or comment on issues here expecting a response that will never come.
Thank you!

Their new versions are also not on the npm registry. They are recommending people to install the dependency from a tar file instead.

Two good reasons to switch to another library if you ask me.

Yes, still it has a cost :/

https://git.sheetjs.com/SheetJS/sheetjs seems to be down?

Whoever is running their community stuff is just slowly shutting it down? :D

Its sad to see a library I've used over the years end up like this. I hope they do archive this or just let someone else take over keep the NPM repository up to date with their own hosted git version. At this point, the library is just a pending security incident.

Hey Peeps, There are two forks currently publishing the latest version of xlsx on npm.
You can use whatever you like - Download via sheets.js cdn  or use these forks.

https://github.com/SheetJS/sheetjs/issues/2822#issuecomment-1668303942

Hey, folks! I made a little tool that allows you to continue using xlsx in your projects. It checks for updates from the sheetjs selfhosted git repository every day, and if there is a new version there, it is automatically published to npm. The publishing is signed via provenance to prevent extraneous modifications to the project (unless the sheetjs developers themselves come in to sabotage everything, of course).
All code is available for audit here https://github.com/e965/sheetjs-npm-publisher
Installation into your project is also very easy:
- "xlsx": "0.18.5",
+ "xlsx": "npm<EMAIL_ADDRESS>
(or just install the package directly and fix all the imports in your code)

https://github.com/SheetJS/sheetjs/issues/2822#issuecomment-2355547918

I have created a script that republishes the package automatically to NPM.

Since the CE edition is licensed under Apache which allows republishing it with proper attribution I have made a small automated script that periodically checks the CDN and republishes the latest version to NPM if needed.
The NPM package can be found here https://www.npmjs.com/package/xlsx-republish.

Just look for another alternatives: https://npm-compare.com/excel4node,exceljs,read-excel-file,xlsx


RedisConnection: not possible to connect to redis server

it only occurs after updating to 1.9
AWS Server Ubuntu 16.04

installing sudo apt-get install redis-server fix the problem

why are you upgrading to 1.9? Who said it was ready?

dont blame me later


Go Mods: local imports

What version of Go are you using (go version)?

go 1.15.6

Does this issue reproduce with the latest release?
Yes
What did you do?
I have a local project projectA in goPath
/Users/xxx/go/src/projectA
I am starting a new local project projectB and i Am unable to include projectA using go modules
What did you expect to see?
I was hoping to be able to include it by just typing
packageB

import packageA

since that didn't work because go modules requires . in first keyword of local path i was hoping we could use some special keyword localhost.com/packageA or go get localhost/packageA which would build a symlink to make it possible to include
What did you see instead?
Some Errors

This looks like a usage question and not a problem with modules. See https://github.com/golang/go/wiki/Questions.


CdrReader to parse Odometry message

Description
I'm using the class CdrReader in ReactJs application using @foxglove/ws-protocol to decode data provided by ros-foxglove-bridge on ROS2 installation. I'm able to decode simple messages such as string (std_msgs/msg/String) but I'm not able to decode it when it's more complicated message types (nav_msgs/msg/Odometry.msg https://docs.ros2.org/foxy/api/nav_msgs/msg/Odometry.html).

Version:
"@foxglove/cdr": "^3.3.0",
"@foxglove/ws-protocol": "^0.7.2",

Platform:
Ubuntu 22.04
Test in localhost
Data from ROS2 humble using ros-foxglove-bridge using commit [e37a3e1]

Steps To Reproduce
Here is the function that I use to start the websocket, subscribe to the odom topic and decode the received message:
import { FoxgloveClient } from "@foxglove/ws-protocol";
import { CdrReader } from "@foxglove/cdr";

async function subscriber_example(url: string) {
    const address = url.startsWith("ws://") || url.startsWith("wss://") ? url : `ws://${url}`;
    let fallbackMsgEncoding: string | undefined;

    console.log(`Client connecting to ${address}`);
    const client = new FoxgloveClient({
      ws: new WebSocket(address, [FoxgloveClient.SUPPORTED_SUBPROTOCOL]),
    });
    client.on("error", (error) => {
      console.log("Error", error);
      throw error;
    });
    client.on("serverInfo", (serverInfo) => {
      const supportedEncodings = serverInfo.supportedEncodings ?? [];
      fallbackMsgEncoding = supportedEncodings.find((encoding) =>
        SUPPORTED_MSG_ENCODINGS.includes(encoding),
      );
    });
    client.on("advertise", (services) => {
        // To get the topic odom
        const regexpSearch = new RegExp("/odom", 'i');
        const topic = services.find((s) =>regexpSearch.test(s.topic))

        console.log(topic);
        if (!topic) {
            return;
        }
        client.subscribe(topic.id);

    });
    client.on("message", (response) => {
        const reader = new CdrReader(response.data);
        console.log(reader.string())
    });
    }

export default subscriber_example

Expected Behavior
If the message is a string, the console.log(reader.string()) provides the published string. With an odom message, the console.log(reader.string()) provides the following output:
@����odom�������base_footprint��{�Q������ʑ���߿�575�?"B�5�����w5�Wi?��Y�0?�+����?�
Do you have an idea about how to solve this issue ?

Closing in favor of the discussion https://github.com/orgs/foxglove/discussions/990


Cannot run gallery on Android in beta

Steps to Reproduce

cd ~/tmp
git clone -b beta https://github.com/flutter/flutter.git
cd ~/tmp/examples/flutter_gallery/
~/tmp/flutter/bin/flutter build apk

=>
Resolving dependencies...
* Error running Gradle:
Exit code 1 from: /Users/mit/tmp/flutter/examples/flutter_gallery/android/gradlew app:properties:

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/mit/tmp/flutter/examples/flutter_gallery/android/app/build.gradle' line: 20

* What went wrong:
A problem occurred evaluating project ':app'.
> 3

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 0s

Please review your Gradle project setup in the android/ folder.

Removing TODAY label since this shouldn't block internal rolls (it's already fixed at tip-of-tree).  I'm working on pushing a new beta release.

+1 for pushing 0.1.5 to beta if it's ready

Added 0.0.23-0.1.4 to https://github.com/flutter/flutter/wiki/Bad-Builds

v0.1.5 has been pushed to beta.


Update to the 2018 edition

Currently this crate cannot be parsed by syn (https://github.com/dtolnay/syn/issues/972) because it uses deprecated fn(Src) trait method syntax. This was updated in the edition, I decided to go ahead and do a full upgrade to the 2018 edition anyway.
Happy to pare it back to just fixing the trait method syntax instead of a full edition upgrade, but the upgrade seemed pretty minor so I hope you don't mind.
r? @japaric

Nice! Thank you


Valgrind reported leaks and seg fault

When running  vol-log-based tests with vol-cache, Valgrind reports these leaks:
==2210== 272 bytes in 1 blocks are definitely lost in loss record 2,546 of 2,971
==2210==    at 0x483D611: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2210==    by 0x591A9C9: my_calloc (debug.c:151)
==2210==    by 0x5909A15: H5VL_cache_ext_info_copy (H5VLcache_ext.c:1184)
==2210==    by 0x4F6DA3A: H5VL_copy_connector_info (in /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000.0.0)
==2210==    by 0x4D4AF45: H5Pget_vol_info (in /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000.0.0)
==2210==    by 0x591054B: set_file_cache (H5VLcache_ext.c:4017)
==2210==    by 0x5910B7F: H5VL_cache_ext_file_create (H5VLcache_ext.c:4138)
==2210==    by 0x4F7CA57: H5VL__file_create (in /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000.0.0)
==2210==    by 0x4F7CC4F: H5VL_file_create (in /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000.0.0)
==2210==    by 0x4AA5910: H5F__create_api_common (in /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000.0.0)
==2210==    by 0x4AA5C32: H5Fcreate (in /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000.0.0)
==2210==    by 0x401125: main (attr.cpp:69)
==2210==
==2210== 304 bytes in 1 blocks are definitely lost in loss record 2,614 of 2,971
==2210==    at 0x4838744: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2210==    by 0x591A994: my_malloc (debug.c:140)
==2210==    by 0x5918805: get_H5LS_mmap_class_t (H5LS.c:68)
==2210==    by 0x590A1E0: H5VL_cache_ext_str_to_info (H5VLcache_ext.c:1472)
==2210==    by 0x4F9A1FE: H5VL__connector_str_to_info (in /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000.0.0)
==2210==    by 0x4F94D46: H5VL__set_def_conn (in /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000.0.0)
==2210==    by 0x4F93FC1: H5VL_init_phase2 (in /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000.0.0)
==2210==    by 0x48AF85C: H5_init_library (in /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000.0.0)
==2210==    by 0x48B1369: H5open (in /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000.0.0)
==2210==    by 0x40103A: main (attr.cpp:44)
==2210==
==2210== 352 bytes in 1 blocks are definitely lost in loss record 2,803 of 2,971
==2210==    at 0x4838744: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2210==    by 0x591A994: my_malloc (debug.c:140)
==2210==    by 0x590A178: H5VL_cache_ext_str_to_info (H5VLcache_ext.c:1468)
==2210==    by 0x4F9A1FE: H5VL__connector_str_to_info (in /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000.0.0)
==2210==    by 0x4F94D46: H5VL__set_def_conn (in /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000.0.0)
==2210==    by 0x4F93FC1: H5VL_init_phase2 (in /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000.0.0)
==2210==    by 0x48AF85C: H5_init_library (in /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000.0.0)
==2210==    by 0x48B1369: H5open (in /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000.0.0)
==2210==    by 0x40103A: main (attr.cpp:44)

Also, seeing seg faults
#0  0x00007ffff6ef791c in H5VL_cache_ext_term () at /home/brtnfld/packages/vol-cache/src/H5VLcache_ext.c:1154
#1  0x00007ffff7dd73dc in H5VL__free_cls () from /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000
#2  0x00007ffff7a6fb28 in H5I__dec_ref () from /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000
#3  0x00007ffff7a6fce7 in H5I_dec_ref () from /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000
#4  0x00007ffff7dd8d30 in H5VL_conn_free () from /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000
#5  0x00007ffff7dd7110 in H5VL_term_package () from /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000
#6  0x00007ffff76f2aa4 in H5_term_library () from /home/brtnfld/packages/hdf5/buildc/hdf5/lib/libhdf5.so.1000
#7  0x00007ffff6bcdbd9 in __run_exit_handlers () from /lib64/libc.so.6
#8  0x00007ffff6bcdd6a in exit () from /lib64/libc.so.6
#9  0x00007ffff6bb5254 in __libc_start_main () from /lib64/libc.so.6
#10 0x0000000000400eda in _start () at ../sysdeps/x86_64/start.S:120

The segfault issue seems to be in  H5VL_cache_ext_str_to_info(). I'm not sure this needs to be done here, but it should be done at the point it is needed.
  p->next = (H5LS_stack_t *)malloc(sizeof(H5LS_stack_t));
  p = p->next;
  p->next = NULL;


Is it possible to keep widget original width

When using tkScrolledFrame, widget original width become fixed.
Is it possible to let widget width remain the same like in official frame, or when user select turning off the Horizontal ScrollBarX.
When using tkScrolledFrame

when using ttk official frame

Do you mean that the widgets don't resize while in the frame? I'm not quite sure what you're asking.

Yeah, that's what I mean
In ttk.frame, if I config widget "fill = x", widget will expand or shrinking automatically
I just want to know is it possible to get same result in tkScrolledFrame

I'm not sure - I didn't write this library.
Just made a fork so issues and PRs can be made once again.
Wouldn't you be able to do a fill=x in the widget you're putting inside the frame?

That doesn't work, maybe that's why tkinter doesn't officially support scrolled frame.
But tkinter also doesn't officially support drag and drop, that's quite confused me.
OK, I'll close the issue.

Tkinter is really old. That's the main reason.
Have you tried putting the widgets you need in a second frame from your scrolledFrame?
Or did you find a solution?
I'll reopen it for now. I only close questions if they're answered! :P

I tried, it doesn't work.
I'll accept the slight flaw, since this is just a script I made for myself

Damn. I'll try to figure things out.
If you still want to try things, what about a normal frame? Does "fill" parameter work in a normal frame in which case it's an issue with tkScrolledFrame, or is it an issue with the Frame itself? If it's the former, I might be able to fix it; if it's the latter, that's a Tk(inter?) issue.

Sometime, tkinter really drive people crazy.
like if you .place() a frame inside a .place()ed frame, depending on how "relx, rely" is set, inside frame may or may not show itself.
Or if you chose to .pack() a frame, inside it, .place() a frame may not work anymore.
I think it a bug of tkinter, you shouldn't waster too much of your time on it, which I already did😂

Okay, I'll close the issue.
I just don't like leaving questions unanswered :P


Update functionality branch

Newest version with the added update scheduler with comments

Coverage decreased (-7.5%) to 56.936% when pulling 6a98f7e5f4bf15524e880779fefbaca9e9a08a6b on updateFunctionalityBranch into 35d7f7233cee485e89e45f49461ec7c79fcdb4ea on development.

Coverage decreased (-8.4%) to 55.976% when pulling d1af73f51480b0a230588fee7098321315e21632 on updateFunctionalityBranch into 35d7f7233cee485e89e45f49461ec7c79fcdb4ea on development.


*(ticdc): reduce logs by adjust log level and combine multiple into one

What problem does this PR solve?

Issue Number: close #6905
What is changed and how it works?
Check List
Tests

No code

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
`None`

/run-all-tests

/merge


Provisioning profile does not include certificate

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Issue Description
Running gym for archiving a release build fails because the provisioning profile does not include the certificate. However, match is run beforehand and it shows as having installed the certificate.
I can see the certificate in Keychain Access. I have tried running the lane different ways but more recently, I've tried explicitly mapping bundle ID to profile via export_options which did not help
Command executed
fastlane archive --env target-name,archive
Complete output when running fastlane, including the stack trace and command used

# archive.sh
fastlane archive --env mdm-dev,archive

# .env.mdm-dev
BUNDLE_ID=com.company.app.mdm.dev
SCHEME_NAME=mdm-dev
PROVISIONING_PROFILE_NAME=match AppStore com.company.app.mdm.dev

# .env.archive
SKIP_ARCHIVE=false
PROVISIONING_PROFILE_TYPE=appstore

fastlane-output.log
Environment

fastlane-env.md
or

✅ fastlane environment ✅

### Stack

| Key                         | Value                                                      |
| --------------------------- | ---------------------------------------------------------- |
| OS                          | 12.4                                                       |
| Ruby                        | 3.1.2                                                      |
| Bundler?                    | false                                                      |
| Git                         | git version 2.37.0                                         |
| Installation Source         | /opt/homebrew/Cellar/fastlane/2.207.0/libexec/bin/fastlane |
| Host                        | macOS 12.4 (21F79)                                         |
| Ruby Lib Dir                | /opt/homebrew/Cellar/ruby/3.1.2/lib                        |
| OpenSSL Version             | OpenSSL 1.1.1n  15 Mar 2022                                |
| Is contained                | false                                                      |
| Is homebrew                 | true                                                       |
| Is installed via Fabric.app | false                                                      |
| Xcode Path                  | /Applications/Xcode-13.4.1.app/Contents/Developer/         |
| Xcode Version               | 13.4.1                                                     |
| Swift Version               | 5.6.1                                                      |

### System Locale

| Variable | Value       |   |
| -------- | ----------- | - |
| LANG     | en_US.UTF-8 | ✅ |
| LC_ALL   |             |   |
| LANGUAGE |             |   |

### fastlane files:

`./fastlane/Fastfile`

```ruby
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
#     https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
#     https://docs.fastlane.tools/plugins/available-plugins
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

default_platform(:ios)

platform :ios do
  desc "Archive an app target"
  lane :archive do
    match(type: "development", api_key_path: ENV["API_KEY"], keychain_password: ENV["KEYCHAIN_PASSWORD"], readonly: true)
    match(api_key_path: ENV["API_KEY"], keychain_password: ENV["KEYCHAIN_PASSWORD"], readonly: true)
    gym
  end

  desc "Build an app target"
  lane :build do
    match(api_key_path: ENV["API_KEY"], keychain_password: ENV["KEYCHAIN_PASSWORD"], readonly: true)
    gym
  end

  desc "Upload an archive to AppStore Connect"
  lane :upload do
    pilot(ipa: "#{ENV["SCHEME_NAME"]}.ipa", api_key_path: ENV["API_KEY"], skip_waiting_for_build_processing: true)
  end
end

```

`./fastlane/Appfile`

```ruby
itc_team_id("123456789") # App Store Connect Team ID
team_id("A12B34CDE5") # Developer Portal Team ID

app_identifier ENV['BUNDLE_ID']

# For more information about the Appfile, see:
#     https://docs.fastlane.tools/advanced/#appfile

```

### fastlane gems

| Gem      | Version | Update-Status |
| -------- | ------- | ------------- |
| fastlane | 2.207.0 | ✅ Up-To-Date  |

### Loaded fastlane plugins:

**No plugins Loaded**

Loaded gems

| Gem                             | Version      |
| ------------------------------- | ------------ |
| error_highlight                 | 0.3.0        |
| did_you_mean                    | 1.6.1        |
| atomos                          | 0.1.3        |
| rexml                           | 3.2.5        |
| CFPropertyList                  | 3.0.5        |
| claide                          | 1.1.0        |
| colored2                        | 3.1.2        |
| nanaimo                         | 0.3.0        |
| xcodeproj                       | 1.22.0       |
| rouge                           | 2.0.7        |
| xcpretty                        | 0.3.0        |
| terminal-notifier               | 2.0.0        |
| unicode-display_width           | 1.8.0        |
| terminal-table                  | 1.8.0        |
| plist                           | 3.6.0        |
| public_suffix                   | 4.0.7        |
| addressable                     | 2.8.0        |
| multipart-post                  | 2.0.0        |
| word_wrap                       | 1.0.0        |
| optparse                        | 0.1.1        |
| tty-screen                      | 0.8.1        |
| tty-cursor                      | 0.7.1        |
| tty-spinner                     | 0.9.3        |
| artifactory                     | 3.0.15       |
| babosa                          | 1.0.4        |
| colored                         | 1.2          |
| highline                        | 2.0.3        |
| commander                       | 4.6.0        |
| excon                           | 0.92.3       |
| faraday-em_http                 | 1.0.0        |
| faraday-em_synchrony            | 1.0.0        |
| faraday-excon                   | 1.1.0        |
| faraday-httpclient              | 1.0.1        |
| faraday-multipart               | 1.0.4        |
| faraday-net_http                | 1.0.1        |
| faraday-net_http_persistent     | 1.2.0        |
| faraday-patron                  | 1.0.0        |
| faraday-rack                    | 1.0.0        |
| faraday-retry                   | 1.0.3        |
| ruby2_keywords                  | 0.0.5        |
| faraday                         | 1.10.0       |
| unf_ext                         | <IP_ADDRESS>      |
| unf                             | 0.1.4        |
| domain_name                     | 0.5.20190701 |
| http-cookie                     | 1.0.5        |
| faraday-cookie_jar              | 0.0.7        |
| faraday_middleware              | 1.2.0        |
| fastimage                       | 2.2.6        |
| gh_inspector                    | 1.1.3        |
| json                            | 2.6.1        |
| mini_magick                     | 4.11.0       |
| naturally                       | 2.2.1        |
| rubyzip                         | 2.3.2        |
| security                        | 0.1.3        |
| xcpretty-travis-formatter       | 1.0.1        |
| dotenv                          | 2.7.6        |
| bundler                         | 2.3.11       |
| simctl                          | 1.6.8        |
| jwt                             | 2.4.1        |
| uber                            | 0.1.0        |
| declarative                     | 0.0.20       |
| trailblazer-option              | 0.1.2        |
| representable                   | 3.2.0        |
| retriable                       | 3.1.2        |
| mini_mime                       | 1.1.2        |
| memoist                         | 0.16.2       |
| multi_json                      | 1.15.0       |
| os                              | 1.1.4        |
| signet                          | 0.17.0       |
| googleauth                      | 1.2.0        |
| httpclient                      | 2.8.3        |
| webrick                         | 1.7.0        |
| google-apis-core                | 0.7.0        |
| google-apis-playcustomapp_v1    | 0.9.0        |
| google-apis-androidpublisher_v3 | 0.23.0       |
| google-cloud-env                | 1.6.0        |
| google-cloud-errors             | 1.2.0        |
| google-cloud-core               | 1.6.0        |
| google-apis-iamcredentials_v1   | 0.12.0       |
| google-apis-storage_v1          | 0.16.0       |
| rake                            | 13.0.6       |
| digest-crc                      | 0.6.4        |
| google-cloud-storage            | 1.37.0       |
| emoji_regex                     | 3.2.3        |
| jmespath                        | 1.6.1        |
| aws-partitions                  | 1.602.0      |
| aws-eventstream                 | 1.2.0        |
| aws-sigv4                       | 1.5.0        |
| aws-sdk-core                    | 3.131.2      |
| aws-sdk-kms                     | 1.57.0       |
| aws-sdk-s3                      | 1.114.0      |
| set                             | 1.0.2        |
| forwardable                     | 1.3.2        |
| logger                          | 1.5.0        |
| pathname                        | 0.2.0        |
| shellwords                      | 0.1.0        |
| cgi                             | 0.3.1        |
| date                            | 3.2.2        |
| timeout                         | 0.2.0        |
| stringio                        | 3.0.1        |
| securerandom                    | 0.1.1        |
| uri                             | 0.11.0       |
| openssl                         | 3.0.0        |
| digest                          | 3.1.0        |
| io-nonblock                     | 0.1.0        |
| ipaddr                          | 1.2.4        |
| io-wait                         | 0.2.1        |
| zlib                            | 2.1.1        |
| resolv                          | 0.2.1        |
| time                            | 0.2.0        |
| open-uri                        | 0.2.0        |
| mutex_m                         | 0.1.1        |
| net-protocol                    | 0.1.2        |
| net-http                        | 0.2.0        |
| ostruct                         | 0.5.2        |
| english                         | 0.7.1        |
| erb                             | 2.2.3        |
| strscan                         | 3.0.1        |
| abbrev                          | 0.1.0        |
| io-console                      | 0.5.11       |
| tempfile                        | 0.1.2        |
| delegate                        | 0.2.0        |
| fileutils                       | 1.6.0        |
| tmpdir                          | 0.1.2        |
| base64                          | 0.1.1        |
| singleton                       | 0.1.1        |
| open3                           | 0.1.1        |
| nkf                             | 0.1.1        |
| prettyprint                     | 0.1.1        |
| pp                              | 0.3.0        |
| find                            | 0.1.1        |
| yaml                            | 0.2.0        |
| psych                           | 4.0.3        |

*generated on:* **2022-07-12**

@roanutil Have you found a fix here? We're currently seeing the same behavior with Xcode 14. Setting the exact same profile in the Xcode UI seems to work, but either update_project_provisioning or gym (with export_options.provisioningProfiles) doesn't seem to work.

@EmDee I just gave up on using fastlane for signing. I still use it for managing profiles and certificates but not for applying them to a Xcode project.
I think part of my problem was generating the project with Tuist. So, I eventually switched over to using Tuist for signing.

@EmDee I just gave up on using fastlane for signing. I still use it for managing profiles and certificates but not for applying them to a Xcode project.
I think part of my problem was generating the project with Tuist. So, I eventually switched over to using Tuist for signing.

I see. Were you having trouble with Xcode 14 or with an older version?

Xcode 13.4.1

I have found a workaround back then, but seems like Apple has changed something again 🤔


Kindly help for volume mount in kubevirt  for vm

Hi Team,
I have created  vm using kubevirt, i have used pv and pvc for volume mount but not able to see the volume in vm, kindly find below all those details.

apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
name: testvm
spec:
running: false
template:
metadata:
labels:
kubevirt.io/size: small
kubevirt.io/domain: testvm
spec:
domain:
devices:
disks:
- name: containerdisk
disk:
bus: virtio
- name: cloudinitdisk
disk:
bus: virtio
- name: vm-pv-storage
disk: {}
interfaces:
- name: default
masquerade: {}
resources:
requests:
memory: 64M
networks:
- name: default
pod: {}
volumes:
- name: containerdisk
containerDisk:
image: quay.io/kubevirt/cirros-container-disk-demo
- name: cloudinitdisk
cloudInitNoCloud:
userDataBase64: SGkuXG4=
- name: vm-pv-storage
persistentVolumeClaim:
claimName: vm-pv-claim

used below yaml creation for pv and pvc :
kind: PersistentVolume
metadata:
name: vm-pv-volume
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: 100Gi
accessModes:
- ReadWriteMany
hostPath:
path: "/mnt"

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: vm-pv-claim
spec:
storageClassName: manual
accessModes:
- ReadWriteMany
resources:
requests:
storage: 75Gi

environment :
kubernetes version -> 1.26.2
kubevirt version -> v0.59.0

"but not able to see the volume in vm", how do you check this?

@xpivarc  after console the vm, that volume amount is not available.
using command $ df -h
and when i try to $ cd /mnt it's not working.
do i need to use any mount command before checking the above commands?

So I guess you want to share the filesystem but you specified it as a disk. Follow https://kubevirt.io/user-guide/virtual_machines/disks_and_volumes/#sharing-node-directories if you want to share the filesystem.

@xpivarc  if i want to mount a disk in vm, what should i need to do?


feature: Added Allocation Free Error Logger

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Resolves #120
What is the current behavior? (You can also link to an open issue here)
There are level specific messages marked exception and the wrapping logger dictates format.
What is the new behavior (if this is a feature change)?
The AllocationFreeLoggerBase will have the ability to format the log message.
What might this PR break?
Logging?
Please check if the PR fulfills these requirements

[X] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

Other information:

Usually on ReacetiveUI our policy is to deprecate them for a full release cycle.  So they would be removed next release.  I marked them as Obsolete to denote that they will be going away.

Usually on ReactiveUI our policy is to deprecate them for a full release cycle.  So they would be removed next release.  I marked them as Obsolete to denote that they will be going away.

i'd missed they were obsolete on the interface :)


Added Domain

Donshin University in South Korea

@humback915 I am sorry, the domain dsu.ac.kr is removed from our trusted domains list because it was abused in the past. If you are the student of this school, please enroll to GitHub Student Developer Program. Then apply for JetBrains educational subscription with your GitHub account (GitHub tab at https://www.jetbrains.com/shop/eform/students).


map/feat/geolocation

Implemented changes
This PR brings a custom Geolocation-control as defined in #562, that can be used just like any other ol-control. The user has to agree to the location-prompt by the browser, which will only show up when served via https (which is also true for testing, workarounds like ngrok or mkcert will be needed).
The centerWhenReady-prop will pan the view to the user position on the first update of the geolocator.
Rotation is not implemented by default, but the heading-property of the position feature is set, so by setting the style-property of the geolocation control a rotation get be set by accessing that property via style expressions.
(to enable tracking the heading, highAccuracy and trackHeading have to be set).
With trackAccuracy the accuracy feature will be shown in addition to the position feature, indicating possible low accuracy of the sensor.
A custom Icon for the button can be set via the buttonIcon-prop. The button element get be retrieved via Geolocation.getElement()

Checklist before requesting a review

[x] I have performed a self-review of my code
[x] I have added a test related to this feature/fix
[x] For new features: I have created a story showcasing this new feature
[x] All checks have passed
[x] The PR title follows conventional commit style and reflects the type of change (major/minor/patch, breaking)
[x] The PR title describes the change within this element (each merged PR equals one entry in the element's changelog!)

There might be a cleaner way for the positioning (css injection?) of the button element. Right now it is assumed that the default zoom-buttons are available, as this is most likely the most common setup.


API change (PublisherInfo)

Notice: Undefined property: stdClass::$long_url in /[redacted]/AssetStorePublisherClient.class.php on line 407

In PUBLISHER_OVERVIEW_JSON_URL the long_url entry doesn't exist anymore. It doesn't seem to have been replaced by anything so I think it can be safely removed.

Thanks, I've removed it and the corresponding method.


Bug: Pressing Enter unexpectedly deletes ImageNode as the only child of ListItemNode

After looking at the code for a bit, it seems that the root of the problem lies in the $handleListInsertParagraph function.
You can find the code here:
https://github.com/facebook/lexical/blob/main/packages/lexical-list/src/formatList.ts#L500.
The function is supposed to remove a ListItemNode when the selection.anchor is an empty ListItemNode, but it also deletes the node even if it contains an ImageNode.
To work around this issue, I added a check to ensure that the length of the children is equal to 0 at line 509. However, I'm not certain if this is the proper way to handle it.
  if (
    !$isListItemNode(anchor) ||
    // add this
    anchor.getChildren().length !== 0 ||
    anchor.getTextContent() !== ''
  ) {
    return false;
  }

If you have any better suggestions, please let me know. I'm willing to create a PR if that works for you.
Lexical version: 0.9.1
Steps To Reproduce

Go to the playground and create a ListItem.
Insert image to the ListItem.
Press Enter key.
The image and the parent ListItem will be deleted.

https://user-images.githubusercontent.com/4246353/228444754-efbde971-9b09-49ed-88b0-a8c7306c0e9a.mp4

The current behavior

Create a sibling ListItem and leave the ImageNode.

The expected behavior

It delete the ListItem and ImageNode.

@zurfyx I was debugging the code and found that selection.anchor.getNode() only gets the TextNode or ElementNode
It does not handle the DecoratorNode so it fallback to ListItemNode when there is only a Decorator Node
It works only if there some TextNode is present on the ListitemNode
I could not find the proper way to fix it as selection.anchor.getNode() does not return the DecoratorNode so should we modify that function first to be able to get the decoratorNode first and then add a validation check so it does not delete the item?
What are you thought about this?
https://github.com/facebook/lexical/blob/6b380d581300cb4e121c534177cc510236e579d3/packages/lexical-list/src/formatList.ts#L507
https://user-images.githubusercontent.com/2174170/229292393-f5f53293-ad08-4432-a53b-c7d2f6fc3f1b.mov

This looks fixed. Closing.


Upgrade to Django 2.1

What kind of a pull request is this?

Django Upgrade
Fixes #2210

Code Checklist

[x] The code follows dotkom code style

[x] The code passes the defined tests

[x] The code is ready to be merged

(Possible) Breaking Changes

Upgrading to Python 3.7 can result in future breaking changes being easily introduced to the code base.
Django OIDC provider version 0.7.0 has changed to response_type to response_types, which does not seem to be reversible, according to the [migration].(https://github.com/juanifioren/django-oidc-provider/blob/master/oidc_provider/migrations/0026_client_multiple_response_types.py#L45)

Requires settings up new python version in production, including virtualenvs
[ ] I have updated the build configuration
[x] These changes requires changes to configuration in production :skull_and_crossbones: :warning:

[ ] I have applied the required changes in production
[ ] I cannot apply the required changes in production before this is deployed.

Description of changes

Remove Tastypie since API v0 has been removed.

Update Wiki, Django OIDC Provider and Django Guardian to current version for support.

Change filter_class and filter_fields to filterset_class and filterset_fields because of impending deprecation.

Change SSO test to use new ResponseType model.

Change urls not interpereted as Regex to r'strings' for Python 3.7

Upgrade Ptyhon from 3.5 to 3.7

[x] Fix Django Guardian object permissions clashing with new built in django 'view' permission. #2210

[x] Upgrade Django version to 2.1.*

Except tests though :^)

Probably something related to the tests running python 3.5.6, instead of 3.7, and also this is lacking a migration for a field


test: Remove unused SkipGKEQuarantined helper

I think basic build is enough to test this; no need to run the full end-to-end tests. Marking ready to merge.


[Bug Report] el-autocomplete sets clearable to enter no selection again

Element UI version
2.12.0
OS/Browsers version
mac
Vue version
2.6.10
Reproduction Link
https://jsfiddle.net/mmx38qxw/
Steps to reproduce
1.输入三出现下拉的建议
2.点击小叉叉 clearable
3.再次输入三不出现下拉的建议选择
What is Expected?
再次输入三 可以出现下拉选择的
What is actually happening?
数据时cb获取到了 要先失去光标 然后再获取广告才能显示出下拉的选择建议项

有方法解决吗

I have this issue too.

I encountered the issue and wrote the following code as temporary solution. Hope it helps someone.
<el-autocomplete ref="autocomplete" @clear="onClearAutocomplete">

onClearAutocomplete() {
    this.$refs.autocomplete.$children
        .find(c => c.$el.className.includes('el-input'))
        .blur();
    this.$refs.autocomplete.focus();
},


Fix typo on the project name in license headers

Thanks!
Let us know if you'd like to be listed as an Author.  If so, email is a good venue to work that out.
In the mean time, I will incorporate the typo fixes apart from your pull requests and then close your pull requests.
Thanks again, I hope to hear back again soon.

@wsc1: I don't want to be added as a author (for now, maybe later for code contribution), because it's only typo fix :-) But thanks for asking.