[cpp-taskflow] error with latest update to 2.5.0

Describe the bug
My project (using CMake) is unable to find the library using the provided targets:
find_package(cpp-taskflow CONFIG REQUIRED)
target_link_libraries(VRE PRIVATE Taskflow::Taskflow)
Environment

OS: Windows 10
Compiler: MSVC 2019

To Reproduce
Steps to reproduce the behavior:

./vcpkg install cpp-taskflow
Add target to project

Expected behavior
Find target and compile (everything is working with previous version of this port)
Failure logs
.../vcpkg/scripts/buildsystems/vcpkg.cmake:461 (_find_package): Could not find a package configuration file provided by "cpp-taskflow" with any of the following names:
    cpp-taskflowConfig.cmake
    cpp-taskflow-config.cmake
Add the installation prefix of "cpp-taskflow" to CMAKE_PREFIX_PATH or set "cpp-taskflow_DIR" to a directory containing one of the above files.  If "cpp-taskflow" provides a separate development package or SDK, be sure it  has been installed.
Additional context
previous version (2.2.0) had a different target:
find_package(Cpp-Taskflow CONFIG REQUIRED)
target_link_libraries(VRE PRIVATE Cpp-Taskflow::Cpp-Taskflow)

find_package(cpp-taskflow CONFIG REQUIRED)
is different from
find_package(Cpp-Taskflow CONFIG REQUIRED)
try with the previous upper case starting letters.

Tried all the package names I could think of (cpp-taskflow, Cpp-Taskflow, Cpp-taskflow, Taskflow, taskflow), but didn't work

Confirmed. The Target path for the config is wrong which is why it isn't found. Need to be share/taskflow instead of share/cpp-taskflow. Maybe the port also requires renaming?

Pinging @mfornace for insights from PR

The library was indeed renamed from cpp-taskflow to taskflow... (I did not try to address the name change when doing the PR). Let me look to see what the PR messed up (sorry).

I started a new #13140 pull request completing the name change from cpp-taskflow to taskflow. It works for me locally.
Sorry about the issue, my use-case wasn't testing the target_link_libraries correctly. Hopefully the fix I implemented will work.


Licensing details

Hi,
I noticed that there is no mention of any Licensing for tailwindcss. Would like to have some light in this area.. just curious!!

Hey there!
The licence can be found in the package.json file. It's just MIT.
https://github.com/tailwindcss/tailwindcss/blob/master/package.json#L5
Hope that helps. :)

For better visibility I created a PR adding a LICENSE file. https://github.com/tailwindcss/tailwindcss/pull/36


Is there a way to hide the "token = os.getenv('MAPBOX_ACCESS_TOKEN')"

In all of the example notebooks you get the mapbox token from the environment like so
"token = os.getenv('MAPBOX_ACCESS_TOKEN')"
If we used a hosted Jupyter notebook environment we certainly dont want to pass our Mapbox token around to users. How do make the token part of the install/Jupyter platform not part of the notebook runtime?

Hi @dprophet
When looking at the code, I think the token will be set by default, so there is no need to pass the token to the viz as long as you have MAPBOX_ACCESS_TOKEN in your env https://github.com/mapbox/mapboxgl-jupyter/blob/master/mapboxgl/viz.py#L177

The problem with MAPBOX_ACCESS_TOKEN is that token can be viewed via os.environ. In a hosted Jupyter environment, like a Docker container, the access token must not be exposed to the user.

I'm not sure if this works for your use case, but it sounds like you could avoid supplying the MAPBOX_ACCESS_TOKEN via your hosted notebook at all and require the user to sign up for a free token from Mapbox that they would then supply to the viz constructor directly?  Otherwise, I think this requires use of the Mapboxgl JavaScript library tokens api (https://docs.mapbox.com/api/accounts/#tokens).  Maybe @ryanbaumann has more insight on this?

MAPBOX_ACCESS_TOKEN  is bad. All I need to do is print the environment variables and its exposed.

@dprophet we should update the examples to not use an environment variable - you can simply pass your mapbox access token as a variable to the map viz initialization i.e.
viz = CircleViz('points.geojson',
                access_token="pk...."
)


PluralFormat: one vs =1 inconsistency

The examples on https://messageformat.github.io/ show PluralFormat using one rather than =1, but that produces an error in the console, at least on firefox:

Error: Invalid key one for argument count. Valid plural keys for this locale are other, and explicit keys like =0.

So either the code or the doc should be updated... I guess the doc.

That is a valid key for english, but not for japanese, for instance. What is the exact code you're running?

Oh, I didn't think about that.  Actually I do have Firefox set to Japanese, and consequently am initializing MessageFormat to ja, via new MessageFormat(navigator.language.replace(/-.*$/, "")) so I guess this isn't a bug.
The reason my string had one in it was because the text has actually been translated to Japanese yet, and is still in English.


Changing column names while grid is sorted breaks grid

m <- matrix(1:9, 3, 3)
View(m)

then sort by any of the columns - e.g. V1. Then:
colnames(m) <- c(1,2,3)

You get:
Error in `[.data.frame`(x, "V1") : undefined columns selected

As with #1883, after this happens, REPL hangs, and cannot even be reset.

I think we need to reset sorting on mutation

We also need to harden that code in general. Basically, it has to assume that anything it evaluates that is based on user input in any way can throw, and catch/recover accordingly.


[Bug]: failing to build "ERROR  Cannot read properties of null (reading 'useContext')"

Please confirm that you have:

[X] Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
[X] Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?
App
Expected behavior
start the dev server as expected
Actual behavior
Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.

  ERROR  Cannot read properties of null (reading 'useContext')

 node_modules/@shopify/app/node_modules/react/cjs/react.development.js:1618:21

 1615:     }
 1616:   }
 1617:
 1618:   return dispatcher.useContext(Context);
 1619: }
 1620: function useState(initialState) {
 1621:   var dispatcher = resolveDispatcher();

 - useContext (node_modules/@shopify/app/node_modules/react/cjs/react.development.js:1618:21)
 - useStdin (node_modules/@shopify/app/node_modules/ink/build/hooks/use-stdin.js:6:24)
 - Dev (node_modules/@shopify/app/dist/cli/services/dev/ui/components/Dev.js:14:53)
 - renderWithHooks (node_modules/@shopify/cli-kit/node_modules/react-reconciler/cjs/react-reconciler.development.js:7478:18)
 - mountIndeterminateComponent (node_modules/@shopify/cli-kit/node_modules/react-reconciler/cjs/react-reconciler.development.js:11247:13)
 - beginWork (node_modules/@shopify/cli-kit/node_modules/react-reconciler/cjs/react-reconciler.development.js:12760:16)
 - beginWork$1 (node_modules/@shopify/cli-kit/node_modules/react-reconciler/cjs/react-reconciler.development.js:19569:14)
 - performUnitOfWork (node_modules/@shopify/cli-kit/node_modules/react-reconciler/cjs/react-reconciler.development.js:18703:12)
 - workLoopSync (node_modules/@shopify/cli-kit/node_modules/react-reconciler/cjs/react-reconciler.development.js:18609:5)
 - renderRootSync (node_modules/@shopify/cli-kit/node_modules/react-reconciler/cjs/react-reconciler.development.js:18577:7)

Reproduction steps

npm run dev

Operating System
Mac OS
Shopify CLI version (check your project's package.json if you're not sure)
"@shopify/cli": "^3.49.7",

Shell
iterm2
Node version (run node -v if you're not sure)
v18.16.0
What language and version are you using in your application?
NodeJS

+1

+1, subscribed
nathanoliveira@Nathans-MacBook-Pro pos-e2e-ui-extension % yarn shopify --version
yarn run v1.22.19
$ shopify --version
@shopify/cli/3.50.0 darwin-arm64 node-v20.8.1

Also a bit more context will help us understand as we cannot reproduce this with new apps. Is this with a new app? Did you choose the remix template or not? Which extensions do you have? Can you paste the content of your package.json files?

Is this with a new app?

no

Did you choose the remix template or not?

I don't know what that means, I think no.

Which extensions do you have?

"@shopify/checkout-ui-extensions-react": "^0.27.0",

Can you paste the content of your package.json files?

{
  "name": "checkout-custom-fields",
  "version": "1.0.0",
  "main": "web/index.js",
  "license": "UNLICENSED",
  "scripts": {
    "shopify": "shopify",
    "build": "shopify app build",
    "dev": "shopify app dev",
    "info": "shopify app info",
    "generate": "shopify app generate",
    "deploy": "shopify app deploy",
    "test": "npm test --prefix web"
  },
  "dependencies": {
    "@shopify/app": "^3.49.7",
    "@shopify/checkout-ui-extensions-react": "^0.27.0",
    "@shopify/cli": "^3.49.7",
    "react": "^17.0.2"
  },
  "author": "nitinpatel",
  "overrides": {
    "@types/react": "17.0.30"
  },
  "husky": {
    "hooks": {
      "pre-commit": "echo 'Running pre-commit hook...' && npx prettier . --write"
    }
  },
  "devDependencies": {
    "husky": "^8.0.2"
  }
}

the exact version seems to be 3.50.0

For some additional context, I agree with @niinpatel that 3.48.4 works, but any 3.49.x did not.

3.48.2 works

I'll close this issue because it's a duplicate of https://github.com/Shopify/cli/issues/2809
A solution was provided there:
For other folks having this issue, another workaround would be to remove react 17 from the top level package.json, remove node_modules AND remove package-lock.json.

If you use a different package manager, be sure to remove the correspondent lock file


liqoctl unpeer doesn't remove broken peering connection

What happened:
If I try to create a peering between two clusters and for some reason it fails (e.g. a firewall rule prevents communication with the liqo-auth service or liqo-auth and liqo-gateway are deployed as load balancers with a layer two MetalLB without being directly reachable) two crd resources are left tunnelendpoint.net.liqo.io and networkconfigs.net.liqo.io respectively. These two resources are not deleted with a "liqoctl unpeer " and prevent the "liqoctl uninstall" by causing it to fail with a network wait timeout error.
What you expected to happen:
I expect that a liqoctl unpeer will also remove broken liqo installations, or at least the liqoctl uninstall will not start.
How to reproduce it (as minimally and precisely as possible):
I know the steps I list lead to a broken liqo installation, and they are wrong!

Create the kind clusters using the quick-start example.
Install MetalLB on each cluster with two different ip pools (e.g. <IP_ADDRESS>/24 and <IP_ADDRESS>/24)
Install liqo on each cluster, requiring that the liqo-auth and the liqo-gateway services are deployed with Load Balancer. ( liqoctl install kind --cluster-name rome --set gateway.service.type=LoadBalancer --set auth.service.type=LoadBalancer )
Try in-band peering ( liqoctl peer in-band --remote-kubeconfig liqo_kubeconf_milan )
Wait for the peering to fail. Now there are two crd resources created that are broken (tunnelendpoints.net.liqo.io and networkconfigs.net.liqo.io).
liqoctl unpeer milan returns a success, but the resources are still there and if I try to do a liqoctl uninstall it passes the uninstallation checks and then fail on timeout.

Anything else we need to know?:
A quick workaround is just deleting the resources manually ( kubectl delete tunnelendpoints.net.liqo.io -n <liqo-tenant-namespace> and kubectl delete networkconfigs.net.liqo.io -n <liqo-tenant-namespace> ).
I repeat that I know these steps are not the correct ones for installing and configuring liqo, but in doing some trial and error I came across this situation that seemed anomalous.
liqo-controller logs:
E0313 10:06:38.671955       1 foreign-cluster-controller.go:218] Failed to ensure identity for remote cluster "milan": failed to send identity request: Post "https://<IP_ADDRESS>:443/identity/certificate": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
I0313 10:06:38.674710       1 trace.go:219] Trace[2000615844]: "Reconcile" ForeignCluster:milan (13-Mar-2023 10:06:33.669) (total time: 5004ms):
Trace[2000615844]: ---"ForeignCluster status update" 5004ms (10:06:38.674)
Trace[2000615844]: [5.004700396s] [5.004700396s] END

liqoctl uninstall error:
 ERRO  Error uninstalling Liqo: timed out waiting for the condition

liqoctl unpeer milan result:
 INFO  Outgoing peering marked as disabled
 INFO  Successfully disabled outgoing peering to the remote cluster "milan"

liqoctl peer command error:
 ERRO   (local) Failed establishing networking to the remote cluster "milan": timed out waiting for the condition

Environment:

Liqo version: 0.7.1
Kubernetes version (use kubectl version): v1.26.2
Cloud provider or hardware configuration: Kind / Kubeadm
Network plugin and version: kindnet / flannel
Install tools: liqoctl
Others: None

hi, I think I have almost same problem as yours. Firstly, I peer two clusters successfully. When I try to unpeer them, problem comes out.
liqoctl uninstall error:
INFO  Outgoing peering marked as disabled ERRO  Failed disabling outgoing peering to the remote cluster "milan": timed out waiting for the condition

Hi, I think I have almost same problem as yours. Firstly, I peer two clusters successfully. When I try to unpeer them, problem comes out.
liqoctl unpeer error:
ERRO  Failed disabling outgoing peering to the remote cluster "milan": timed out waiting for the condition

then, I try these steps (kubectl delete tunnelendpoints.net.liqo.io -n <liqo-tenant-namespace> and kubectl delete networkconfigs.net.liqo.io -n <liqo-tenant-namespace>). And peer the two clusters again.
liqoctl peer error:
 ERRO  Failed activating outgoing peering to the remote cluster "milan": timed out waiting for the condition

But problem still exists. Do you know how to fix it? Please help me.
😭

HI @Wangxinxinhappy what I suggest to you is to remove the foreignclusters resources and the liqo-tenant-* namespaces (on both sides).
If you meet some problems deleting the namespaces check that resourceoffers in tenant namespaces have been deleted (if not delete the finalizers on them by hand).

HI, @cheina97 Thanks for your reply!
I just remove the foreignclusters resources and the liqo-tenant-* namespaces. And then reinstall liqo on both sides. But liqoctl peer out-of-band nameless-brook * still failed:
 INFO  Peering enabled
 INFO  Authenticated to cluster "nameless-brook"
 ERRO  Failed activating outgoing peering to the remote cluster "nameless-brook": timed out waiting for the condition

Hi @cheina97 I see this issue is still present in the latest (v0.10.1) Liqo and happens when peering fails for any reason.
In my case though, the uninstall fails trying to remove tunnelendpoints.net.liqo.io. I saw it runs a job liqo-pre-delete which tries to clean up everything but it fails for this resource kind. I cannot delete this tunnelendpoint myself either. It just timeouts. I also cannot edit it to remove the finalizers:
  finalizers:
  - liqo-gateway.net.liqo.io
  - liqo-route.<IP_ADDRESS>.net.liqo.io

kubectl throws back at me:
error: tunnelendpoints.net.liqo.io "misty-thunder-690265" could not be found on the server
The edits you made on deleted resources have been saved to "/tmp/kubectl-edit-1165863843.yaml"

Yet it is very much found and blocking the uninstall:
NAME                   PEERING CLUSTER   BACKEND TYPE   CONNECTION STATUS   AGE
misty-thunder-690265   misty-thunder     wireguard      Connected           2d3h

FWIW, its namespace was already deleted...

Workaround
All right, I recreated the namespace and then I was able to remove the finalizers and delete it. Oh boy, it seems the unpeer + uninstall create some nice confusion together!

Hi @yoctozepto, we know that peering is one of the most problematic parts in Liqo, this year we are working on making Liqo modular and one of the objectives is to remove the actual peer mechanism and replace it with a declarative and clean approach.
I'm sorry for your issue and happy you found a solution.
In the next months we are going to release the new Liqo network, which replace the current one, it will be independent from the rest of Liqo and will solve problems like this one. Stay tuned

Thanks for the summary @cheina97 and no need to be sorry! It works very fine so far except for these quirks. I have seen these various improvements being mentioned around the issues I happened to see when filtering for relevant ones. Do you have a central place where you track these design decisions and the related work? Keeping my fingers crossed and looking forward to seeing this future liqo!

Network modularity lacks a public design at the moment. Surely in the future, we will share better insight about design for the next modularity steps.


FAQ: #check_in_luca_error

New FAQ:

DE https://www.coronawarn.app/de/faq/#check_in_luca_error
EN https://www.coronawarn.app/en/faq/#check_in_luca_error

To be covered:

private luca QR codes
outdated luca QR codes, generated before 25 May
luca QR codes generated after 25 May, but not CWA compatible
"Faulty" luca QR codes, see https://github.com/corona-warn-app/cwa-website/pull/2069

Related:
https://github.com/corona-warn-app/cwa-wishlist/issues/680
https://github.com/corona-warn-app/cwa-website/pull/2069
https://github.com/corona-warn-app/cwa-documentation/issues/741

Internal Tracking ID: EXPOSUREAPP-10564
Internal Tracking ID: EXPOSUREAPP-10617

@dsarkar

Is this issue now obsolete given https://github.com/corona-warn-app/cwa-website/issues/2751?


Cxx to Swift interop - Can't init a Swift Array from C++ -

Description

// Swift

@_expose(Cxx, "mulByTwo")
public func mulByTwo(arr: [Int64]) -> [Int64] {
    return arr.map { $0 * 2 }
}

// C++

    // Trying three ways to initialise a Swift Array<Int64>

    Swift::Array<Swift::Int64> inArray = { 10, 20, 30 };
    // main.cpp:79:25: error: no member named 'Int64' in namespace 'Swift'
    //    Swift::Array<Swift::Int64> inArray = { 10, 20, 30 };
    //                 ~~~~~~~^

    Swift::Array<int64_t> inArray = { 10, 20, 30 };
    // main.cpp:84:27: error: no matching constructor for initialization of 'Swift::Array<int64_t>' (aka 'Array<long long>')
    //    Swift::Array<int64_t> inArray = { 10, 20, 30 };
    //                          ^         ~~~~~~~~~~~~~~

    std::vector<int64_t> cxxVector {10, 20, 30};
    Swift::Array<int64_t> inArray = Swift::Array<int64_t>(cxxVector);
    // main.cpp:93:37: error: no matching conversion for functional-style cast from 'std::vector<int64_t>' (aka 'vector<long long>') to 'Swift::Array<int64_t>' (aka 'Array<long long>')
    // Swift::Array<int64_t> inArray = Swift::Array<int64_t>(cxxVector);
    //                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    auto result = MySwiftLib::mulByTwo(inArray);

Note the conversion from a Swift Array to std::vector does not work too.

Please specify the Swift version.

swift-5.8-DEVELOPMENT-SNAPSHOT-2023-02-01-a-osx.pkg

On Feb 6, 2023, at 2:00 PM, Anthony Latsis @.***> wrote:
Please specify the Swift version.
—
Reply to this email directly, view it on GitHub https://github.com/apple/swift/issues/63454#issuecomment-1419592571, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2VCAHLBL664WAWMKIBO4ETWWFC5PANCNFSM6AAAAAAUSXOMT4.
You are receiving this because you authored the thread.


including empty file

If you @import less file that is empty - lessc stop compiling without any messages.
To prevent this you can add css comment (/*  */) before @import line.
lessc 1.1.6 (LESS Compiler) [JavaScript]

Sorry, i mean @import

Hmm, still an issue? Seems to have been broken for a few versions.

Yes.
For example:
cat 1.less
h1 {
    color: red;
}

2.less
is empty (0 bytes)
cat 3.less
h3
{
    color: green;
}

cat total.less
@import "1.less";
@import "2.less";
@import "3.less";

lessc total.less
h1 {
  color: red;
}

This is still not fixed. Could someone fix this please?

Same problem here. For me only the next import after the empty file doesn't get included.


Mac adress won't assign

import asyncio
import weatherbug_spark
from govee_api_ble import GoveeDevice

async def main():
    #South Pool
    data1 = await weatherbug_spark.get_data(39.5842042, -104.9077378)
    roundeddata1 = round(data1.closestPulseDistance,2)
    print("South Pool Strike Distance= ",roundeddata1);
    my_device = GoveeDevice(7C:A6:B0:1F:8E:63)
    my_device.setPower(True) # Turns device on

    #Middle of Centennnial
    data3 = await weatherbug_spark.get_data(39.579231, -104.876694)
    roundeddata3 = round(data3.closestPulseDistance,2)
    print("Middle Of Centennial Strike Distance= ",roundeddata3)

    #Centennial Airport
    data2 = await weatherbug_spark.get_data(39.5795, -104.8463)
    roundeddata2 = round(data2.closestPulseDistance,2)
    print("Centennial Airport Strike Distance= ",roundeddata2)

    print(" ")
    print("Pool Status: ")
    if roundeddata1 >= 30:
        print("Not even Close")
    elif roundeddata1 >= 10:
        print("Its getting there")
    elif roundeddata1 > 6:
        print("Nearly there")
    elif roundeddata1 > 5:
        print("Close the pool")
    elif roundeddata1 < 3:
        print("Kick everyone out")

if __name__ == "__main__":
    asyncio.run(main())

Hi! I completely forgot to specify in the docs, but when you assign your device you need quotes around you MAC address
Ex:
my_device = GoveeDevice(‘7C:A6:B0:1F:8E:63’)
If you have any other questions feel free to ask :-))

Now I get this

You need gatttool installed for this to work. You’re running this on Android (I believe), so you need to find a way to install gatttool. This API works best on a Linux system like a Raspberry Pi

Yeah I was doing this while I work where I couldn't access the pi, but once i do would it work?

It should work fine

When using it on my ras pi it still says the same thing
On Sun, Aug 7, 2022, 9:32 AM cyprus @.***> wrote:

It should work fine
—
Reply to this email directly, view it on GitHub
https://github.com/softgrass/govee-api-ble/issues/4#issuecomment-1207432218,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQ6AFD3A2NV6IEJPMTRWUS3VX7JJBANCNFSM55ZWYU7Q
.
You are receiving this because you authored the thread.Message ID:
@.***>

It still says the same thing

Please read your error messages. It says gatttool cannot be found, which means it is not installed, you need to install gatttool (using the BLUEZ package) for this program to work.

When trying to install bluez using this how to https://www.instructables.com/Control-Bluetooth-LE-Devices-From-A-Raspberry-Pi/

Ok I fixed the error but now I get thus

According to this guide, it says If you get a connect: No route to host (113), that means the device is not advertising, you’ve used the wrong address or you haven’t run sudo hcitool lescan before opening gatttool.
Hope this helps, you may have the wrong MAC address, or are too far from the lights.

Now I'm getting this

From what it looks like, you are using the iHoment H6110 light strip, this API is guaranteed to work only with the H6127 light strip. Your light strip has wifi and other features built in to it, so please consider using a different way than BLE to control them (especially because of how inefficient BLE is. It is only used on this because the H6127 lights only use bluetooth).


Add support for Raycast's new Menu Bar feature

I think this is good now. I'm currently away from home (and so not in range of my network!), but I'll test this and merge when I get back.


Issue with ChatBedrockConverse and Bedrock Claude Model: ValidationException on Blank Text Field

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain.js documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain.js rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code
import {RunnableConfig} from '@langchain/core/runnables'
import {ChatBedrockConverse} from '@langchain/aws'

interface ChatState {
  messages: BaseMessage[]
  sourceDocuments: DocumentInterface[]
}

 const model = new ChatBedrockConverse({
          model: "anthropic.claude-3-sonnet-20240229-v1:0"
          region: this.aws_region,
          credentials: credentialsProvider,
          maxTokens: 2500,
          temperature: 0.05
          })

  private async agentNode(
    state: ChatState,
    config?: RunnableConfig
  ): Promise<Partial<ChatState>> {
    const tools = [retrieverTool]
    const model = model.bindTools(tools)

    const response = await model.invoke(state.messages, config)
    logger.debug(`Model response: ${JSON.stringify(response)}`)

    return {messages: [response]}
  }

Maybe any example from LanggraphJS Examples that uses tools, but with "ChatBedrockConverse" and model "anthropic.claude-3-sonnet-20240229-v1:0"?
Error Message and Stack Trace (if applicable)
Error in CompletionController.generateCompletion() The text field in the ContentBlock object at messages.1.content.0 is blank. Add text to the text field, and try again.","name":"ValidationException","stack":"ValidationException: The text field in the ContentBlock object at messages.1.content.0 is blank. Add text to the text field, and try again.\n    at de_ValidationExceptionRes (/Users/test/code/bot/node_modules/.pnpm/@aws-sdk+client-bedrock-runtime@3.606.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js:1082:21)\n    at de_CommandError (/Users/test/code/bot/node_modules/.pnpm/@aws-sdk+client-bedrock-runtime@3.606.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js:937:19)\n    at processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async /Users/test/code/bot/node_modules/.pnpm/@smithy+middleware-serde@3.0.3/node_modules/@smithy/middleware-serde/dist-cjs/index.js:35:20\n    at async /Users/test/code/bot/node_modules/.pnpm/@smithy+core@2.2.4/node_modules/@smithy/core/dist-cjs/index.js:165:18\n    at async /Users/test/code/bot/node_modules/.pnpm/@smithy+middleware-retry@3.0.7/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38\n    at async /Users/test/code/bot/node_modules/.pnpm/@aws-sdk+middleware-logger@3.598.0/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:34:22\n    at async ChatBedrockConverse.generateNonStreaming (/Users/test/code/bot/node_modules/.pnpm/@langchain+aws@0.0.1@aws-sdk+client-sso-oidc@3.606.0_@aws-sdk+client-sts@3.606.0__@aws-sdk+c_wops3cctew2kpyygicqzgjk7su/node_modules/@langchain/aws/dist/chat_models.cjs:222:26)\n    at async Promise.allSettled (index 0)\n    at async ChatBedrockConverse.generateUncached (/Users/test/code/bot/node_modules/.pnpm/@langchain+core@0.2.12_langchain@0.2.8@aws-sdk+credential-provider-node@3.600.0_@aws-sdk+cli_6wi7pugnjf7kzne7hkijzr5xv4/node_modules/@langchain/core/dist/language_models/chat_models.cjs:177:29)","timestamp":"2024-07-02T13:59:04.567Z
Description
I'm encountering an issue when invoking the Bedrock Claude model via the Converse API using LangChain's ChatBedrockConverse. The error message is:
ValidationException: The text field in the ContentBlock object at messages.1.content.0 is blank. Add text to the text field, and try again.

This issue does not occur when using ChatOpenAI or BedrockChat. It seems specific to ChatBedrockConverse.
Steps to Reproduce:

Use Langchain/Langgraph to create a conversation with the Bedrock Claude model via the Converse API.
Implement a flow that involves tool usage, leading to empty content messages.
Observe the error: ValidationException due to a blank text field in the ContentBlock object.

Expected Behavior:
The model should handle tool usage without resulting in empty content messages, or the API should handle such cases gracefully - which I know it's not with Langchain.
Actual Behavior:
The process fails with a ValidationException when an empty content message is encountered.
Additional Information:

This issue started occurring after upgrading to ChatBedrockConverse.
Manually adding text to the empty content AI messages results in a different error: The model returned the following errors: Your API request included an 'assistant' message in the final position, which would pre-fill the 'assistant' response. When using tools, pre-filling the 'assistant' response is not supported.

Example AI message with empty content calling a tool:
{
  "AIMessage": {
    "lc_serializable": true,
    "lc_kwargs": {
      "content": "",
      "tool_calls": [{ "id": "tooluse_e68eeY31Rju83TWq5n-e1A", "name": "retrieve_internal_documents", "args": {}}],
      "response_metadata": {
        "$metadata": { "httpStatusCode": 200, "requestId": "fba07d1c-cfda-4609-a603-ad589da3374a", "attempts": 1, "totalRetryDelay": 0 },
        "metrics": { "latencyMs": 1718 },
        "stopReason": "tool_use",
        "usage": { "inputTokens": 446, "outputTokens": 56, "totalTokens": 502 }
      },
      "usage_metadata": { "input_tokens": 446, "output_tokens": 56, "total_tokens": 502 },
      "id": "fba07d1c-cfda-4609-a603-ad589da3374a",
      "invalid_tool_calls": [],
      "additional_kwargs": {}
    }
  }
}

PS: If you feel this issue might be better shared with the LangGraph JS maintainers or if it involves specific nuances of the AWS Bedrock Converse API, please let me know. I initially reported it here since ChatBedrockConverse is hosted within LangChain.
System Info
$ pnpm info langchain

<EMAIL_ADDRESS>| MIT | deps: 16 | versions: 280
Typescript bindings for langchain
https://github.com/langchain-ai/langchainjs/tree/main/langchain/

keywords: llm, ai, gpt3, chain, prompt, prompt engineering, chatgpt, machine learning, ml, openai, embeddings, vectorstores

dist
.tarball: https://<internal-proxy>/langchain/-/langchain-0.2.8.tgz
.shasum: 9bd77f5c12071d0ccb637c04fc33415e5369e5aa
.integrity: sha512-kb2IOMA71xH8e6EXFg0l4S+QSMC/c796pj1+7mPBkR91HHwoyHZhFRrBaZv4tV+Td+Ba91J2uEDBmySklZLpNQ==

dependencies:
@langchain/core: >=0.2.9 <0.3.0   js-tiktoken: ^1.0.12              langsmith: ~0.1.30                uuid: ^9.0.0
@langchain/openai: >=0.1.0 <0.3.0 js-yaml: ^4.1.0                   ml-distance: ^4.0.0               yaml: ^2.2.1
@langchain/textsplitters: ~0.0.0  jsonpointer: ^5.0.1               openapi-types: ^12.1.3            zod-to-json-schema: ^3.22.3
binary-extensions: ^2.2.0         langchainhub: ~0.0.8              p-retry: 4                        zod: ^3.22.4

maintainers:
- nfcampos<EMAIL_ADDRESS>- jacoblee93<EMAIL_ADDRESS>- andrewnguonly<EMAIL_ADDRESS>- davidduong<EMAIL_ADDRESS>- hwchase17<EMAIL_ADDRESS>- basproul<EMAIL_ADDRESS>
dist-tags:
latest: 0.2.8     next: 0.2.3-rc.0

published 4 days ago by basproul<EMAIL_ADDRESS>

platform: Mac arm64
Node version: v20.15.0
yarn version: N/A (ppm version: 9.4.0)

Hey @dosu.
I understand the need to ensure that all messages passed to the invoke method contain non-empty content. However, the issue arises from the agent itself adding the empty content message. The content is empty because of the stopReason: "tool_use".
When the agent is set to use a tool, it stops and returns the tool that it will use. It executes the tool correctly, but in the messages history, we get a ToolMessage with the correct content. However, before that, we receive an AIMessage indicating tool usage but with empty content.
Example of the message history:
"HumanMessage": {
  "lc_serializable": true,
  "lc_kwargs": {
    "content": "Use a tool please",
    "additional_kwargs": {},
    "response_metadata": {}
  },
  "lc_namespace": [ "langchain_core", "messages" ],
  "content": "Use a tool please",
  "name": "undefined",
  "additional_kwargs": {},
  "response_metadata": {},
  "id": "undefined"
},
{
  "AIMessage": {
    "lc_serializable": true,
    "lc_kwargs": {
      "content": "",
      "tool_calls": [{ "id": "tooluse_e68eeY31Rju83TWq5n-e1A", "name": "retrieve_internal_documents", "args": {}}],
      "response_metadata": {
        "$metadata": { "httpStatusCode": 200, "requestId": "fba07d1c-cfda-4609-a603-ad589da3374a", "attempts": 1, "totalRetryDelay": 0 },
        "metrics": { "latencyMs": 1718 },
        "stopReason": "tool_use",
        "usage": { "inputTokens": 446, "outputTokens": 56, "totalTokens": 502 }
      },
      "usage_metadata": { "input_tokens": 446, "output_tokens": 56, "total_tokens": 502 },
      "id": "fba07d1c-cfda-4609-a603-ad589da3374a",
      "invalid_tool_calls": [],
      "additional_kwargs": {}
    }
  }
},
"ToolMessage": {
  "lc_serializable": true,
  "lc_kwargs": {
    "content": "bla bla"
<rest of correct output from tool>

This issue didn't occur with ChatOpenAI or BedrockChat, and only started after upgrading to ChatBedrockConverse. I believe the agent is correctly performing the tool usage but somehow leaves an empty AIMessage behind and the Converse API does not like that.

We tried filtering out any AIMessage objects with empty content before invoking the model. However, we encounter another issue when we do this. Here’s the error message we receive:
ValidationException: The model returned the following errors: Your API request included an `assistant` message in the final position, which would pre-fill the `assistant` response. When using tools, pre-filling the `assistant` response is not supported.
    at de_ValidationExceptionRes (/Users/test/code/bot/node_modules/.pnpm/@aws-sdk+client-bedrock-runtime@3.606.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js:1082:21)
    at de_CommandError (/Users/test/code/bot/node_modules/.pnpm/@aws-sdk+client-bedrock-runtime@3.606.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js:937:19)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /Users/test/code/bot/node_modules/.pnpm/@smithy+middleware-serde@3.0.3/node_modules/@smithy/middleware-serde/dist-cjs/index.js:35:20
    at async /Users/test/code/bot/node_modules/.pnpm/@smithy+core@2.2.4/node_modules/@smithy/core/dist-cjs/index.js:165:18
    at async /Users/test/code/bot/node_modules/.pnpm/@smithy+middleware-retry@3.0.7/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38
    at async /Users/test/code/bot/node_modules/.pnpm/@aws-sdk+middleware-logger@3.598.0/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:34:22
    at async ChatBedrockConverse._generateNonStreaming (/Users/test/code/bot/node_modules/.pnpm/@langchain+aws@0.0.1_@aws-sdk+client-sso-oidc@3.606.0_@aws-sdk+client-sts@3.606.0__@aws-sdk+c_wops3cctew2kpyygicqzgjk7su/node_modules/@langchain/aws/dist/chat_models.cjs:222:26)
    at async Promise.allSettled (index 0)
    at async ChatBedrockConverse._generateUncached (/Users/test/code/bot/node_modules/.pnpm/@langchain+core@0.2.12_langchain@0.2.8_@aws-sdk+credential-provider-node@3.600.0_@aws-sdk+cli_6wi7pugnjf7kzne7hkijzr5xv4/node_modules/@langchain/core/dist/language_models/chat_models.cjs:177:29)

It seems that when a ToolMessage is present as the last message, the Converse API does not generate a completion because the last message needs to be a human message. This behavior didn't occur with ChatOpenAI or BedrockChat, and only started after upgrading to ChatBedrockConverse.

+1

+1

Same issue as @Jalmeida1994 when a ToolMessage is present as the last message

FYI - not related to langchain but I had this problem when using the Bedrock Converse API. Switched to raw InvokeModel API and didnt have this anymore

@dsunjka if you don't mind, would you please be so kind to share your code snippet that solved this problem?

Was this fix also made to Python client?


modelnet dataset issue

Hello,
I found that when I convert model net into a graph. There are many small connected components. For example, a graph (converted by a mesh) has 7612 nodes but the size of all the connected components is
[4, 4, 11, 11, 9, 9, 21, 21, 9, 9, 4, 4, 4, 4, 13, 13, 4, 4, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 20, 20, 20, 20, 20, 20, 4, 4, 20, 20, 4, 4, 4, 4, 5, 5, 26, 26, 4, 4, 4, 4, 26, 26, 38, 38, 26, 26, 4, 4, 4, 4, 4, 4, 8, 8, 4, 4, 4, 4, 8, 8, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 8, 8, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 8, 8, 4, 4, 4, 4, 4, 4, 4, 4, 8, 8, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 8, 8, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 8, 8, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 8, 8, 4, 4, 4, 4, 712, 7, 7, 174, 174, 3, 3, 3, 3, 4, 4, 168, 168, 3, 3, 3, 3, 3, 3, 4, 4, 71, 71, 3, 3, 71, 71, 3, 3, 3, 3, 35, 35, 35, 35, 21, 21, 21, 21, 4, 3, 3, 3, 3, 3, 5, 12, 12, 20, 20, 30, 30, 84, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 84, 6, 4, 6, 4, 6, 4, 4, 6, 6, 4, 6, 4, 6, 4, 4, 6, 6, 4, 6, 4, 6, 4, 6, 4, 164, 164, 164, 164, 4, 4, 488, 4, 4, 24, 24, 3, 3, 3, 3, 24, 24, 4, 4, 3, 3, 3, 3, 4, 4, 3, 3, 3, 3, 18, 18, 94, 94, 94, 94, 49, 49, 49, 49, 12, 4, 164, 164, 164, 164, 4, 4, 488, 4, 4, 24, 24, 3, 3, 3, 3, 24, 24, 4, 4, 3, 3, 3, 3, 4, 4, 3, 3, 3, 3, 18, 18, 94, 94, 94, 94, 49, 49, 49, 49, 12, 4]
I am not so familiar with shape dataset. Is it really a normal thing? I attached the related code below.

modelnet issue
import os.path as osp

import networkx as nx
import numpy as np
from torch_geometric.datasets import ModelNet
from torch_geometric.transforms import FaceToEdge

def torch_geometric_2nx(dataset, print_flag=False):
    """
    :param dataset: a list of pytorch_geometric.dataset
    :param print_flag:
    :return:
    """

    graphs, labels = [], []

    for i in range(len(dataset)):
        edges = dataset[i].edge_index  # tensor of shape [2, n_edges * 2]
        n_edge = edges.shape[1] // 2
        edges = edges.numpy()  # edges = np.array([[ 0,  0,  1,  1 ], [ 1,  9,  0,  2]])
        edges_lis = list(edges.T)
        edge_lis_ = set([edge[0] for edge in edges_lis] + [edge[1] for edge in edges_lis])
        edges_lis = [(edge[0], edge[1]) for edge in edges_lis]
        g = nx.from_edgelist(edges_lis)

        assert len(edge_lis_) == len(g)  # check nx.from_edgelist is right
        assert len(g.edges) == n_edge  # check nx.from_edgelist is right

        graphs.append(g)
        assert len(g.edges) == n_edge
        label = dataset[i].y
        labels.append(int(label))

        if print_flag: print(i)
    return graphs, labels

if __name__ == '__main__':
    version = '10'  # 10 or 40
    idx = 1

    path = osp.join(osp.dirname(osp.realpath(__file__)), '..', 'data/ModelNet' + version)
    # path = '/home/cai.507/Documents/DeepLearning/ModelNet' + version

    pre_transform, transform = FaceToEdge(), None

    # train_dataset = ModelNet(path, version, True, transform=transform, pre_transform=pre_transform)
    test_dataset = ModelNet(path, version, False, transform=transform, pre_transform=pre_transform)
    data = test_dataset  # train_dataset + test_dataset

    test_data = data[idx]

    data = FaceToEdge()(test_data)
    gs, _ = torch_geometric_2nx([data])
    g = gs[0]
    print(nx.info(g))

    # number of connected components
    size_list = [len(g) for g in nx.connected_components(g)]
    print(size_list)

apologize for the format of the code. I don't know how to make it look good.

I formatted it properly. You can look at the raw data to see how it is done. Thanks for reporting. I will look into it.

I replicated this issue. Note that you can also use the to_networkx functionality:
import networkx as nx
from torch_geometric.datasets import ModelNet
from torch_geometric.transforms import FaceToEdge
from torch_geometric.utils import to_networkx

path = '/tmp/modelnet10'
test_dataset = ModelNet(path, '10', False)
data = test_dataset
idx = 0
test_data = data[idx]

data = FaceToEdge()(test_data)
print(data)
g = to_networkx(test_data).to_undirected()
print(nx.info(g))

# number of connected components
size_list = [len(g) for g in nx.connected_components(g)]
print(size_list)

And yes, you are right. The ModelNet10 dataset does not seem to contain watertight meshes. It can even hold some isolated nodes. I guess this is intended, and it is not a bug of PyTorch Geometric. I guess that's the reason most papers sample a point cloud from the mesh surface, instead of using the face connectivity directly.

Thanks for the reply. So for other shape datasets that are included in PyTorch geometric, is there one dataset that does not have such a problem?

I know for sure that the FAUST models contain watertight meshes, so they shouldn‘t have this problem.


[MINOR][DOCS] Change SPARK_ANSI_SQL_MODEin PlanStabilitySuite documentation

What changes were proposed in this pull request?
This PR proposes to fix SPARK_ANSI_SQL_MODE=true to SPARK_ANSI_SQL_MODE=false in PlanStabilitySuite documentation
Why are the changes needed?
In order to guide developers to generate golden files by both Non-ANSI and ANSI modes.
Does this PR introduce any user-facing change?
No, dev-only.
How was this patch tested?
Manually.
Was this patch authored or co-authored using generative AI tooling?
No.

Merged to master.


qs: Install problem

Motivation
I'm always frustrated when qs command does nothing and exit without error message
Functional design
run "qs dev".
1.If gh is not logged in, qs does nothing and no error shown.
2.If gawk  is not installed - , qs does nothing and no error shown.
Technical design

Done.

qs checks utility gawk is installed when user tries to execute qs dev/qs pr
qs checks gh is logged in when user tries to execute qs dev/qs pr


DNN-7128: only reset updatepassword flag when password change successful.

The same change should be performed in ChangePasswordByToken(int portalid, string username, string newPassword, string resetToken) method also because this one also does not check the return value from ResetAndChangePassword call. Line 733 of UserController.cs
Please make changes in that method also and commit the code.


fix(core): 13914 Reset login state if getting 401 from the server

https://kontur.fibery.io/Tasks/Task/Reset-login-state-if-getting-401-from-the-server-13914
full reload after login and logout
fixes for apiclient
removed some unused code

Codecov Report

Merging #388 (76e21df) into main (d4e6f7a) will increase coverage by 0.04%.
The diff coverage is 68.75%.

@@            Coverage Diff             @@
##             main     #388      +/-   ##
==========================================
+ Coverage   11.71%   11.76%   +0.04%
==========================================
  Files         544      544
  Lines       38888    38868      -20
  Branches     1167     1167
==========================================
+ Hits         4557     4571      +14
+ Misses      33886    33852      -34
  Partials      445      445

Impacted Files
Coverage Δ

src/core/auth/client/AuthClient.ts
0.00% <0.00%> (ø)

src/core/url_store/URLStore.ts
0.00% <ø> (ø)

src/core/api_client/apiClient.ts
77.51% <72.72%> (+1.62%)
:arrow_up:

src/core/api_client/tests/_clientTestsContext.ts
98.79% <100.00%> (+0.02%)
:arrow_up:

src/core/api_client/types.ts
97.15% <100.00%> (+0.10%)
:arrow_up:

...rc/core/logical_layers/utils/logicalLayerFabric.ts
13.97% <0.00%> (-0.66%)
:arrow_down:

src/views/Map/Map.tsx
0.00% <0.00%> (ø)

src/utils/hooks/useShortPanelState.tsx
0.00% <0.00%> (ø)

src/widgets/PrimaryAndSecondaryPanel/index.tsx

...anel/components/PrimaryAndSecondaryPanelWidget.tsx

... and 2 more


Update _index.md

1. Issue, if available:
Updating typo in the documentation
2. Description of changes:
Updating typo in the documentation
3. How was this change tested?
Small typo -- no operational change
4. Does this change impact docs?

[ ] Yes, PR includes docs updates
[ ] Yes, issue opened: link to issue
[x ] No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

/lgtm

/approve


adds pivot.css to dependencies

fixes #269

Thanks!

No problem - sorry I cocked up adding the problem and pull request as two separate issues!


Could not locate the repository for "https://github.com/vercel/next-learn-starter/tree/master/learn-starter"

when i in Official website learning nextjs,i use the command npx create-next-app nextjs-blog --use-npm --example "https://github.com/vercel/next-learn-starter/tree/master/learn-starter" to create a nextjs app.
i meeted a problem, Could not locate the repository for "https://github.com/vercel/next-learn-starter/tree/master/learn-starter". Please check that the repository exists and try again.

and i click this link, i showed that 404 status

It's npx create-next-app@latest nextjs-blog --use-npm --example "https://github.com/vercel/next-learn/tree/main/basics/learn-starter" when I checked it in Create a Next.js App, maybe check it again?

yeah, you are right, i guess the nextjs official documentation has not been updated.

https://www.nextjs.cn/learn/basics/create-nextjs-app/setup

ohh I see, yeah maybe the local version haven't updated


⚠ ClamAV has degraded performance

In 8296b28, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 71 ms

Resolved: ClamAV performance has improved in 3c7c9e6.


checksession CSP issue...  Content Security Policy directive: "script-src 'unsafe-inline'

Getting"Refused to load the script 'http://localhost:54638/4a9b07feb425475abe86bc6ba88d9ccc/browserLink' because it violates the following Content Security Policy directive: "script-src 'unsafe-inline' 'sha256-VDXN0nOpFPQ102CIVz+eimHA5e+wTeoUUQj5ZYbtn8w='".
I see a different user on Stack Overflow reported same behavior but specifically in Firefox.  I experience in Chrome.
Could be realted to https://github.com/IdentityServer/IdentityServer4/issues/659
Any help with diagnosis is appreciated.

This is not related to this library. Your web page's CSP policy is doing its job (and blocking browser link). Change your CSP settings if you want browser link to work.

Hi @brockallen I have a related issue (with the title). There's a longer explanation here https://stackoverflow.com/questions/44651318/csp-issues-with-checksession-using-oidc-client-js
Apparently, on Firefox I'm getting a CSP blocking on the checksession iframe even though I haven't set any CSP tags on my SPA index.html. Do you have any hints?

No, but I'll reopen this until we get it sorted out.

Sorry @brockallen. It ended up being an addon trying to inject their code.
I'm still getting the following warning on the header of the checksession response, but that sounds less important.
Content Security Policy: Ignoring "'unsafe-inline'" within script-src or style-src: nonce-source or hash-source specified  (unknown)

Sorry for the inconvenience, you can probably close this now.


Coins Stuck in Coinb.in

Hello -- Having a bit of a problem, coins are not showing up in my wallet. They show in Blockr as being a positive balance, that is correct.
Any possible assistance?
Murph

Yikes, I got it. Took me three days to figure this out, but issue is resolved. Close this out, please?


Error saving a localized field inside an array field inside a block on a collection with versions enabled (Postgres only)

Link to reproduction
No response
Describe the Bug
On a collection that has versions enabled, if you have a block with a field of type array which contains a text field that is localized, and you try saving, it returns an error.
Related to #5104. It should have been fixed in https://github.com/payloadcms/payload/pull/5117 but maybe the problem still applies to blocks.
To Reproduce

Make sure you are using the postgres adapter for database
Add localization to the payload config
Create a collection and enable the version property
Add a block field with a block that contains a field of type array, itself containing a text field that is localized
Try creating an entry with some text entered in the array item

Example block:
import type { Block } from "payload/types";

const testsBlock: Block = {
    slug: "tests",
    fields: [
        {
            name: "testItems",
            type: "array",
            fields: [
                {
                    name: "title",
                    type: "text",
                    label: "Title",
                    localized: true,
                },
            ],
            label: "Tests",
        },
    ],
    interfaceName: "TestsBlock",
};

export default testsBlock;

Payload Version
2.11.2
Adapters and Plugins
db-postgres

Could be related to https://github.com/payloadcms/payload/pull/6540

Hello @AlessioGr,
How can we circumvent this issue, please?
Happened on payload 2.24.0
  db: postgresAdapter({
    idType: "uuid",
    pool: {
      connectionString: process.env.DATABASE_URI,
    },
  }),

With localized field in an array block

adding a new item works
updating or saving crashes: duplicate key value violates unique constraint ..._locale_parent_id_unique
impossible to edit via the admin UI because the payload contains all the fields, so it crashes

Parroting @louisnt -- seeing simular behavior on our project. v3.0.0-beta.60 and this payload 3.0 demo fork here
when localization is set to true within a versioned collection we are not able to add multiple of the same blocks. Citing the same Cannot read properties of undefined (reading '_nlblock_v_items_locales_locale_parent_id_unique') on publish.
In addition, on our project but not in the demo, moving localization to the arr level prohibits migrations to run and we get this err:
ERROR (payload): Error: cannot connect to Postgres. Details: Cannot read properties of undefined (read ing 'Symbol(drizzle:Name)')

I was not able to reproduce the original issue in the current beta branch. I think this can be closed when we release the new beta and I'm if there is enough interest, I will backport it to 2.x.

Just updated to 3.0.0-beta.70 in both my project codebase and the modified demo I think this is related to this issue here

@DanRibbens This seems to be fixed for collections, but does not appear to be fixed for globals. Should I make a new issue for globals?


Update minecraft:icon for items

This updates the minecraft:icon item component to be how minecraft does it. See here
Changed minecraft:icon from
"minecraft:icon": "$2.${3:${TM_FILENAME/[\\.].*//}}"
to
"minecraft:icon": {               "texture": "$2.${3:${TM_FILENAME/[\\.].*//}}"             }

@DinnerBeef You update the auto-generated file 😬
you want to look at: source/behavior/items/format/components/icon.json

Also incorrect, both formats are allowed

Will Fix :)

Ok think i did that right this time

That is the correct file but there's a reason that format isn't in the schemas. It's old. Used up to 1.20.50. The format changed after that. The schemas only contain the newest formats

I did not know that then. Will change how to do stuff then.


segmentation fault when attempting to generate from spec that contains allOf groups

Hey 👋
I've recently spent some time fighting with SwagGen because it would enter a recursion when attempting to parse a given json spec.
After much debugging, I narrowed down the problem to the presence of allOf groups in my spec.
I read a few issues and PRs in this repo, did some shallow code review in key parts of the code base to try to understand what problem the presence allOf was causing, that was triggering the recursion. Some of the issues/PRs: #221, #286, #267, #269, #217, #278. I couldn't figure out why it's crashing (entering a recursion) on my specific spec file 😬 Specially because the sample specs present in this repo do feature allOf groups, so I don't know what specific configuration in my spec files is causing this particular problem 😞
I tested with v4.3.1, v4.4.0, and v4.6.0, all of which caused the same problem (segmentation fault - a recursion somewhere).
If it helps at all, here's the stack trace (click to expand):

Line 0
Line 1
Line 2
Line 3
Line 4

Workaround
As a workaround for my specific case, since all of the allOf occurrences had a single element in the array, I replaced extracted its $ref out of the allOf key, directly in the JSON file, before parsing it using SwagGen. In Ruby, here's the script that worked for me:
# Taken from https://stackoverflow.com/a/4174125/4075379
def regex_replace_file(filename, regexp, replacement)
  require 'tempfile'
  Tempfile.open(".#{File.basename(filename)}", File.dirname(filename)) do |tempfile|
    File.open(filename).each do |line|
      tempfile.puts(line.gsub(regexp, replacement))
    end
    tempfile.close
    FileUtils.mv(tempfile.path, filename)
  end
end

swagger_spec_path = "/path/to/your/spec.json"
regexp = /"allOf":\[\{("\$ref":"#\/components\/schemas\/[a-zA-Z]+")\}\]/m
regex_replace_file(swagger_spec_path, regexp, '\1')

# swagger_spec_path now contains the processed JSON file, ready to be consumed by SwagGen

This workaround is admittedly terrible, but in my specific use case it didn't break anything. Use with caution.

One side effect I noticed when doing this deliberate manual modification of the swagger json is that SwagGen started ignoring the "nullable": true specifiers for those $ref (that were previously allOf references). So that if I had a JSON that looked something like this:
"myProperty": {
    "$ref": "#/components/schemas/MyClass",
    "nullable": true
}

It would generate a nonnull property instead of a nullable one, like this:
public var myProperty: MyClass

Interestingly enough, for specific cases I was able to test the allOf reference (instead of regex-replacing it with the raw $ref) and it happened to not crash in this particular place I replaced. Then, the result was the expected one:
public var myProperty: MyClass?

While debugging SwagGen I realized that if I modified this part of the code:
https://github.com/yonaskolb/SwagGen/blob/2b3140b821129190aab28a5cf9b1e5e2151dbc9b/Sources/Swagger/Schema/ObjectSchema.swift#L44-L52
With this:
public extension Property {
    var nullable: Bool {
        return !required || schema.metadata.nullable
    }
}

Everything works as expected.
Any clue as to why there's this special case handling for when the schema type is a reference (which was committed here: https://github.com/yonaskolb/SwagGen/commit/b464a08d911f8592edc42afb116946155ec14b83) @yonaskolb @alephao? 🙏

@rogerluan Can you share your swagger file or a minimal example where this issue happen? Maybe I can help

Can you share your swagger file or a minimal example where this issue happen?

I was afraid someone would ask for it 😅 because unfortunately I can't share my spec, and as I wasn't able to identify what's wrong, I couldn't recreate it 😬 I know this makes it significantly harder for us to come to a solution 😢 but if you have debugging steps you'd like me to take, I'm happy to try out solutions and help debugging in any way I can!

Thanks a lot for that reference about the swagger spec on $ref and its siblings elements. I didn't know about that. Perhaps editor.swagger.io should validate for the presence of sibling elements and at least throw a warning 😬 I won't even bother opening the PR of my fork since that's just conceptually wrong now, but unfortunately I'll have to keep using the code I changed since it solves my specific problems with the parser 🙇

I understand, but I won't be very helpful without something that helps me debugging 😔. Perhaps try searching for a reference cycle in your swagger file, that's what the issue you described sounds like to me.

So, actually there are cyclic references in my swagger file, but that doesn't seem to be the problem when I'm not using allOf validator, so idk if that's really the issue here. I'll explain:
If MyClass has references (properties) to MyOtherClass and MyOtherClass has references to MyClass, should that be considered a cyclic reference? I thought that that was the reason of the recursion, but if I remove the allOf references, replacing them by regular $ref references (as I noted in my original post), everything works fine. So it's probably a bug somewhere in the allOf validator, no? 😬


How to connect via european client ID

Hi there,
when using the US client ID and secret ti works
(registered app on https://sellercentral-europe.amazon.com/gp/homepage.html)
But using the european client ID and secret i get an Error saying
    Error Code: 400
    Error Message: Unknown client_id

(registered app on https://sellercentral-europe.amazon.com/gp/homepage.html)
I tried:
passport.use(new AmazonStrategy({
            clientID: config.amazon.clientID,
            clientSecret: config.amazon.clientSecret,
            callbackURL: config.amazon.callbackURL,
            passReqToCallback: true,
            authorizationURL: 'https://www.amazon.de/ap/oa', //.de instead of .com
            tokenURL: 'https://api.sandbox.amazon.de/auth/o2/token' //.de instead of .com
        }, ...

But it does not work.
Where/how can i change the endpoint/url the request is made to? I guess this has to be updated.
Thank you in advance.
Richard

Using
            authorizationURL: 'https://eu.account.amazon.com/ap/oa', //.de instead of .com
            tokenURL: 'https://api.amazon.de/auth/o2/token' //.de instead of .com

Did the trick.


Notification when build completes

When developing a website with Viceroy, my current process is

run fastly compute serve --watch --watch-dir=src
edit a file in src
Viceroy automatically rebuilds the service
watch the logs for approximately 3 seconds until the HTTP server comes back up
switch to my browser and refresh

I'd love to receive a notification (e.g. touching a file, executing a command, or running a JS/TS/RS/WASM function) when the compilation is done and the server is back up. That would allow me to implement live-reload or even hot module replacement.
Possibly related: #55

Until this, a workaround is to watch the files outside fastly compute serve, then restart fastly compute serve, poll the HTTP server until it responds, then send the live-reload and/or HMR notifications to the browser.


move MetadataUrl to pywps.app.Common to avoid dependencies on sphinx

Fixes https://github.com/geopython/pywps/issues/564
Tried the same steps as in the original issues, the error is gone.
$ python
Python 3.8.5 (default, Sep  4 2020, 07:30:14)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pywps import tests
>>>

Also tested this change in project using MetadataUrl at the old location:
cd <flyingpigeon checkout>
conda env update -f environment-docs.yml
conda activate flyingpigeon-docs
pip install<EMAIL_ADDRESS>--upgrade
make docs

Contribution Agreement
(as per https://github.com/geopython/pywps/blob/master/CONTRIBUTING.rst#contributions-and-licensing)

[ x ] I'd like to contribute [feature X|bugfix Y|docs|something else] to PyWPS. I confirm that my contributions to PyWPS will be compatible with the PyWPS license guidelines at the time of contribution.
[x ] I have already previously agreed to the PyWPS Contributions and Licensing Guidelines

Coverage decreased (-0.5%) to 74.957% when pulling d389ee637044b09eb1c91f9a5d21dceebf71e520 on fix-pywps.ext_autodoc.MetadataUrl-wrong-location into effc9cd3195814a5b4ff541c98704947d467fcd0 on pywps-4.2.

Coverage decreased (-0.5%) to 74.957% when pulling d389ee637044b09eb1c91f9a5d21dceebf71e520 on fix-pywps.ext_autodoc.MetadataUrl-wrong-location into effc9cd3195814a5b4ff541c98704947d467fcd0 on pywps-4.2.

Looks good.
@cehbrecht Is it ok to push this in the 4.2 branch? I'm still confused regarding the status of master.

Yes ... the 4.2 branch is still our production version.

Looks good.
@cehbrecht Is it ok to push this in the 4.2 branch? I'm still confused regarding the status of master.

Yes ... the 4.2 branch is still our production version.


Issues implementing tabs in subcomponent

Thanks for your work on the new version. It looks promising.
I need to have my tabs down a ways in the component hierarchy. I'm experimenting with your Example to see if that can work.
First, I replaced all the tab stuff in the Example class with just this:
<Route name="tabbar" component={TabContainer} />

Then I moved all the rest of the tab stuff to TabContainer:
        return (
          <Router footer={TabBar} showNavigationBar={false}>
              <Route name="tab1" type="switch" icon={TabIcon} title="Tab #1" >
                  <Router>
                      <Route name="tab1_1" component={TabView} title="Tab #1_1" />
                      <Route name="tab1_2" component={TabView} title="Tab #1_2" />
                  </Router>
              </Route>
              <Route name="tab2" type="switch" icon={TabIcon} title="Tab #2" hideTabBar={true} component={TabView} />
              <Route name="tab3" type="switch" icon={TabIcon} title="Tab #3" component={TabView}  />
              <Route name="tab4" type="switch" icon={TabIcon} title="Tab #4" component={TabView} />
              <Route name="tab5" type="switch" icon={TabIcon} title="Tab #5" component={TabView} />
          </Router>
        );

The first problem was I couldn't get Schema to work so in the above code, I have worked around that by expanding the tab schema out in each tab. I first tried just schema="tab" and got the error No schema=tab is defined for route=tab.
Then I tried defining the schema in TabContainer as the first child of <Router>. Then I get a console.error: No icon class is defined for undefined.
Problem 2: The above code mostly works but if I wrap it all in a <View> nothing renders. EDIT: <View style={{flex: 1}}> works.
Problem 3: The Back button in the TabView screen only works if you're on Tab 1. Once you switch to a different tab, clicking Back triggers the error: Cannot pop navigator with less than 1 screens
Problem 4: When I set initial={true} on Tab 3, the view initially is set to Tab 3, but the TabBar icon still shows Tab 1 is selected.

Thanks for great feedback. Could you please give me sample github repo with all issues above. Also it will be useful to create separate issues (not this one) for each problem...
And PR will be welcome for some/all of them would be helpful.
P.S. Problem 2 is not problem, i believe.

Thanks for the response. I have created new issues for problems 1,3, and 4. Agreed, I don't believe problem 2 is a problem at the moment.
I have rethought my approach and for my app it may make more sense to implement the entire router in the subcomponent. In that case issue #62 would be the highest priority for me.


Audio Cues: Checking "loop" renders sound silent

Godot: 4.1.2
Popochiu: 2.0 (latest version from 2.0 branch)
How to reproduce:

Add a sound to Popochiu (eg. mx_music.wav)
Click the play icon: no sound can be heard
Trigger the sound via code: no sound can be heard

Unticking "loop" will play the sound just fine.
My guess is that the loop is set to  zero samples or something like that

@JuannFerrari Added a warning in Godot's Output panel with #104 .


[CMT-169] Article - Introducing Fixed Forex

Fixed by #1070.
Thank you @RestlessMike for the notice!


Checking user fixes #3669

@Kartones CR this fix for #3669 , please.

:+1:  as is a matter of taste (I don't like calling a method with just one param that is nil)

Frontend tests were OK :+1: (details)


Keyvault secrets not updating on Azure spring apps

Describe the bug
Not seeing the recent key secrets updated on runtime env after the refresh on key vault side , we need to manually do restart to get this changes In Azure spring Apps environment.
To Reproduce
-- We have tried to load it in the runtime but using spring.cloud.azure.keyvault.secret.property-sources[].refresh-interval but the secrets are not refreshing until and manual restart is done.
https://learn.microsoft.com/en-us/azure/developer/java/spring-framework/secret-management#setting-refresh-interval
-- We tried this and printed for every 30 secs but still the refreshed secret from keyvault is not updating in runtime environment
Code Snippet
Add the code snippet that causes the issue.

Expected behavior
Token to be updated on runtime
Screenshots
If applicable, add screenshots to help explain your problem.

Hi @gnandyala123 , thanks for reaching out.
We have received your submission and will take it into consideration. We appreciate your input and will review this matter as soon as possible.
Please feel free to provide any additional information or context that you think may be helpful. We'll keep you updated on the progress of our review.
Thank you for your contribution to improving our project.

Related issue https://github.com/Azure/azure-sdk-for-java/issues/26356

Hi @gnandyala123 , I cannot reproduce this issue via ASA-E app + KV + Managed Identity, I used the version spring-cloud-azure-starter-keyvault:5.14.0; if you only use one key vault property source, then it should work fine.
There's linked PR to support multiple key vault property source, the new version can show more logs for each property source loading.

Hi @gnandyala123 , you can try to use the new version 5.16.0. I am going to close this issue, please reopen this issue or create a new one if you still encounter related issues.


How to play MPEG-DASH from protected internet connection

Hi.
I wish to know is there a way to play video from MPEG-Dash manifest, which require custom headers to access the links inside the manifest?
Is this scenario can be achieved using VLC or it can play only manifests without internet access restrictions?

As far as I know, there is no way to give VLC specific HTTP headers, but there is this issue: https://trac.videolan.org/vlc/ticket/14094
If that's not what you want, please open an issue for VLC directly.


fix: Remove flag warning modal for message

Loom https://www.loom.com/share/22ea29c0f28942f3b16bc215981cb18d
Fixes https://discord.com/channels/955773041898573854/1031838696846131200/1098568780109586482

It looks like too much to see this message once in proposals list and then on proposal page

This proposal might contain scams, offensive material, or be malicious in nature. Please proceed with caution.

It looks like too much to see this message once in proposals list and then on proposal page

This proposal might contain scams, offensive material, or be malicious in nature. Please proceed with caution.

I had a similar thought, but since these are flagged proposals, displaying the warning twice could be justified in order to emphasize caution.


Fix string join

Evan .. Nice catch on the DEBUG flag.

LGTM. I will move this over to Gerrit.

@halatmit Btw. You might try your Scheme version, but use letrec instead of let. Apparently Kawa will only do tail calls with letrec.

Thanks, but it's fixed now with java. And when I did the tail-call version
in scheme, it looked like it was running out of memory, not stack, unlike
the recursive version, which got a stack overflow.
== Hal
Hal Abelson
<EMAIL_ADDRESS>Prof. of Comp. Sci. and Eng.
MIT Dept. of Elec. Eng. and Comp. Sci.
On Sun, Aug 20, 2017 at 10:16 PM, Jeffrey Schiller<EMAIL_ADDRESS>
wrote:

@halatmit https://github.com/halatmit Btw. You might try your Scheme
version, but use letrec instead of let. Apparently Kawa will only do tail
calls with letrec.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mit-cml/appinventor-sources/pull/914#issuecomment-323631030,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAwLt-iHV-5Jr8KqiCYC5eXe8PQ6syylks5saOhkgaJpZM4O6-Q5
.

@halatmit Hmm. I just did some testing with our version of kawa, and let works just fine. To prove this I wrote the factorial function recursively and fed it 20000 and it blew up on a stack overload. I then re-wrote it using tail recursion with normal let, just like you did here, and it worked fine. Was able to compute factorial of 40000 without a problem (I didn't try higher numbers because it was taking a while :-).

This particular error happens only on the emulator -- not on my phone.
And when it got the answer with Abraham's example, there were about 29
thousand lists it was trying to join.
Try Abraham's example on your phone.  I should work. Then try it on the
emulator.
== Hal
Hal Abelson
<EMAIL_ADDRESS>Prof. of Comp. Sci. and Eng.
MIT Dept. of Elec. Eng. and Comp. Sci.
On Sun, Aug 20, 2017 at 10:24 PM, Jeffrey Schiller<EMAIL_ADDRESS>
wrote:

@halatmit https://github.com/halatmit Hmm. I just did some testing with
our version of kawa, and let works just fine. To prove this I wrote the
factorial function recursively and fed it 20000 and it blew up on a stack
overload. I then re-wrote it using tail recursion with normal let, just
like you did here, and it worked fine. Was able to compute factorial of
40000 without a problem (I didn't try higher numbers because it was taking
a while :-).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mit-cml/appinventor-sources/pull/914#issuecomment-323631851,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAwLt_n9_C2iIf5HHzWP-kDkWMLDspnaks5saOpPgaJpZM4O6-Q5
.

The issue here is that the space complexity of a factorial computation will be roughly constant versus the string joining which is linear in the length of the strings.
My first reaction to this is that the tail recursive version is probably keeping twice as much data because rather than using something like a StringBuilder where a single object is increased in size, KAWA is creating an intermediate string to store the result and thus you will spend a lot more time garbage collecting by creating a number of one-off objects in Eden. If KAWA somehow holds the intermediate references you will end up with O(n^2) space complexity and likely an OOM situation. This might be mitigated by KAWA's FString type but I would need to check the sources to understand the interaction better.
Evan

On Aug 20, 2017, at 22:24, Jeffrey Schiller<EMAIL_ADDRESS>wrote:
@halatmit Hmm. I just did some testing with our version of kawa, and let works just fine. To prove this I wrote the factorial function recursively and fed it 20000 and it blew up on a stack overload. I then re-wrote it using tail recursion with normal let, just like you did here, and it worked fine. Was able to compute factorial of 40000 without a problem (I didn't try higher numbers because it was taking a while :-).
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or mute the thread.

This sounds like a very reasonable guess about why it's running out of
space.
The issue is more likely to be the use of kawa string-append rather that
tail-recursion.
We can test this by using string-append! instead.
== Hal
Hal Abelson
<EMAIL_ADDRESS>Prof. of Comp. Sci. and Eng.
MIT Dept. of Elec. Eng. and Comp. Sci.
On Mon, Aug 21, 2017 at 7:16 AM, Evan W. Patton<EMAIL_ADDRESS>wrote:

The issue here is that the space complexity of a factorial computation
will be roughly constant versus the string joining which is linear in the
length of the strings.
My first reaction to this is that the tail recursive version is probably
keeping twice as much data because rather than using something like a
StringBuilder where a single object is increased in size, KAWA is creating
an intermediate string to store the result and thus you will spend a lot
more time garbage collecting by creating a number of one-off objects in
Eden. If KAWA somehow holds the intermediate references you will end up
with O(n^2) space complexity and likely an OOM situation. This might be
mitigated by KAWA's FString type but I would need to check the sources to
understand the interaction better.
Evan

On Aug 20, 2017, at 22:24, Jeffrey Schiller<EMAIL_ADDRESS>wrote:
@halatmit Hmm. I just did some testing with our version of kawa, and let
works just fine. To prove this I wrote the factorial function recursively
and fed it 20000 and it blew up on a stack overload. I then re-wrote it
using tail recursion with normal let, just like you did here, and it worked
fine. Was able to compute factorial of 40000 without a problem (I didn't
try higher numbers because it was taking a while :-).
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or mute the thread.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mit-cml/appinventor-sources/pull/914#issuecomment-323717533,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAwLt3BSIDqirsnXOIhkCCN-I6bIyBAyks5saWb2gaJpZM4O6-Q5
.

Closed via e3d1a87


JTAG test intermittently fails with incorrect value

jtag_inject
assert_equal failed, expected<PHONE_NUMBER> got 0

From the trace:
Sending JTAG command 0x5 data 0x0
received JTAG response 0x0

There is a race condition. In the cycle the debug unit asserts its halt, the instruction fetch tag stage requests an instruction. The next cycle, the instruction fetch data logic sees a valid instruction and attempts to issue to the next stage:
            ifd_instruction_valid <= (ift_instruction_requested && !rollback_this_stage
                && cache_hit && ift_tlb_hit && !alignment_fault)
                || (dbg_instruction_inject_en && core_selected_debug);

However, the mux is now pulling an instruction from the debug unit, which is some uninitialized garbage value:
    assign ifd_instruction = dbg_halt
        ? dbg_instruction_inject
        : {fetched_word[7:0], fetched_word[15:8], fetched_word[23:16], fetched_word[31:24]};

The logic for setting ifd_instruction_valid should have a mux that selects based on the dbg_halt signal: if it is set, use dbg_instruction_inject_en, else look at the last fetched instruction.

It's not sufficient to only have the mux though, since dbg_halt multiplexes ifd_instruction combinationally, and the valid signal is registered, a bad instruction can slip in a cycle early. Need to register dbg_halt and use the latched version to control the instruction mux.

Tested this by running JTAG test 100 times in a row. Didn't see the failure (which was fairly common before).


Fixes typo in README.md

In section: Replicating Data Between Many Devices

Hi, thanks for this, can you please sign the CLA as documented in the CONTRIBUTING.md? We can then get this merged.

Just sent the CLA.

Thanks, we have your CLA, thanks again for this, merging :)


USB communication threads with ringbuffer

USB communication is now working with ringbuffers and a mailbox for the incoming messages. Because protobuf has no framing, a simple framing protocol has been chosen:
0x55 0xDA <u8_len> [data] This works great, and can also be used to initially sync the communication in case of serial drivers that send shit over the serial port, just send a couple of 0x55 0xDA 0x00 frames and all comms are in sync.
In the current version the message is sent back, so the protocol stack can be further developed on the PC side

Broken build is not my fault 😏

Good to see that most of the comments are on the ringbuffer. That's the one I stole from the internet 😛  (https://github.com/AndersKaloer/Ring-Buffer). I will fix the issues soon

Can I merge?


Add Demeter.run builder tool

Name: Demeter.run
Description: A cloud environment with all the tools for building your dApp.
Website:   Demeter.run
Getstarted: null
Tags:

favorite
IDE
hosted

good addition although I am curious about whatever process may exist for assigning the favorite tag. 🤔

Honestly there is no process at the moment, but after consulting with few people I've decided to put favorite tag. Of course I won't include it if you guys disagree.

I can see why it's a well regarded tool, so I have no problem with suggesting it as a favourite even though I'd never heard of it before 😎


Display HTML elements in specific positions inside other HTML elements

I think Bootstrap support this.
Based from w3.css

   OR

Sorry for my English,

We don't support something like this, and if I understand it right, don't plan to support it.


Words and characters not working  when multiple fields from different forms are open

When I open one editable-text-angular in some form in all other forms words and characters are not working (only for first form is working).
 <div ng-repeat="data in vm.data"
  <ng-form name="findingDetailsForm">
        <form editable-form name="editableUpdateTitleForm">

        </>
  </>
 </>

Strange for me is that when i check in main form findingDetailsForm when editable fields are open from two different forms inside findingDetailsForm  I have only one editableUpdateTitleForm but there should be two with different index or something, right?

I think you would need to have a dynamic name for the form, something like editableUpdateTitleForm{{$index}}

Yeah was thinking same but it is strange for me because in every place on html when I have editableUpdateTitleForm i replace it with editableUpdateTitleForm.{{$index}} and I am getting html error  Syntax Error: Token '.3.' is an unexpected token...

Also I just saw in console log it says that editor with that name already exist. $index would help but why i get this error I am confused.

Hey @ckosloski I finally resolved $index issue. I am calling function to open form by sending index. But again i cannot get rid of error"
textAngular Error: An Editor with name "title" already exists

Maybe I can somehow add $index to e-name also or something..

Yup I just added {{$index}} to e-name="title{{$index}}" and everything is working good now. Thanks for help!


No response?

Hi!
I have got no response. "no response...!"
Is there something changed with the FaceApp?
Thanks

hi,
i tested this and its working without any problem
are you using "proxy mode"?

Hi, I'm using the default code, no proxies.

Yes.

What can I do?

can you contact me in telegram ?! @substring
i can help you more helpful from telegram.

I don't have telegram. Sorry.

So it won't work. I see.

@mcnagynorbi it woks
but i have no idea why it's not working for you
try it on a server

Sir, I am facing the same issue. As you mention in comments, using the local server I am trying to run this code but not able to solve this. If any solution for this please pin. And Sir, may I contact you on a telegram for further queries ???

@ajay-hash18 Ofcourse
Contact me with Telegram
My Username is mentioned in Readme.


Documentation 404

Hello,
Not really a Bug, but the documentation linked in the README.md https://shopware-pwa-docs.netlify.com/#introduction-to-shopware-pwa just shows a 404 page. This has been for a while, at least 1-2 weeks. Some time back it was working as expected. Is this known? Did the documentation change and is now somewhere else?
We would like to use this application for an upcoming project. Would be nice to have a working documentation to get some further information.
Looking forward to the finished version. :)
Greetings
Sebastian Diez

fixed, sorry for that :)


Events in chart

Mark events in chart

Events will be in the same CSV file, marked by Frame No. and Event Name header.

:bulb: if only start/end event, make an area shows what event is live when hover.


Update 03-shell.Rmd

Thanks for making this available - fixed minor typo in line 1083.

Thanks! Sorry, I'm so late getting back to this...


add-package failed

caddy version v2.6.3
caddy add-package github.com/mholt/caddy-grpc-web
2023/02/09 03:21:57.741 INFO    this executable will be replaced        {"path": "D:\caddy\caddy.exe"}
2023/02/09 03:21:57.741 INFO    requesting build        {"os": "windows", "arch": "amd64", "packages": ["github.com/corazawaf/coraza-caddy", "github.com/mholt/caddy-grpc-web", "github.com/shift72/caddy-geo-ip"]}
Error: download failed: download failed: HTTP 400: unable to fulfill download request (id=0f7e7453-c089-4a92-85dd-a00e0d44db84)

Hmm, maybe a quirk with how I cleared the build cache. Can you try again?

can not install yet
caddy add-package github.com/mholt/caddy-grpc-web
2023/02/28 06:16:09.215 INFO    this executable will be replaced        {"path": "D:\caddy\caddy.exe"}
2023/02/28 06:16:09.215 INFO    requesting build        {"os": "windows", "arch": "amd64", "packages": ["github.com/mholt/caddy-grpc-web", "github.com/shift72/caddy-geo-ip", "github.com/corazawaf/coraza-caddy"]}
Error: download failed: secure request failed: Get "https://caddyserver.com/api/download?arch=amd64&os=windows&p=github.com%2Fmholt%2Fcaddy-grpc-web&p=github.com%2Fshift72%2Fcaddy-geo-ip&p=github.com%2Fcorazawaf%2Fcoraza-caddy": EOF

Try removing plugins one at a time, and wait for the response; if it succeeds, then perhaps that plugin is causing a problem. I'll have more time to look into it later -- in the meantime, you can use xcaddy to get a custom build :+1:


Container: Fix export crash when shiftfs is in use

This is yet more prove that any language designed after C that still has a NULL concept needs to be burned to the ground.


[Bug]: Play/Pause acts as Toggle instead

Consent

[X] I have searched the existing issues and verified that there is no open issue for the same subject.
[X] I understand that the YTMDesktop Elgato Plugin has NO affiliation with Google, YouTube or the YTMDesktop application.

Current Behavior
Having an action set to "Play" or "Pause" will instead act as "Toggle". If I have one scene with "Play" action - music will play, then switch to another scene also with "Play" action, music will pause.
Expected Behavior
Play should only play.
Pause should only pause.
Steps To Reproduce
Add YTMD Connector: Play-Pause
Set action "Play" or "Pause"
OS
Windows
OS Version
10
Plugin Version
v1.6.0
YTMDesktop Version
v1.13.0
How did you download the software?
Elgato Store
Anything else?
No response

🤷♂

Oh. Sorry for the late response. I'll look into it as soon as I find time.

I am also experiencing this issue.

Note that my pull request fixes the specific issue addressed here, but the pause-play functionality still seems to be a bit buggy in general.

Thanks to @tjwrona we found out this issue is due to an old ytmdesktop version. Please update to the latest Nightly Release.
We won't support v1.13.0 anymore and add it to the Readme as well.
I'll /close this issue. If the latest version has the same or similar issues, feel free to reopen it.


Classic site design but looks good on phones

Addresses issue #19.

the issue https://github.com/PMDCollab/PMD-collab-wiki/issues/19 has already been solved


Add support for context priority

Allows to specify context priority low, medium, high or realtime if
the extension is available. This is currently only implemented for
the EGL context creation API.
Currently only implemented for EGL, but equivalent extensions
exist for GLX and Vulkan.

I use it with nvidia drivers on desktop linux. I saw some commits that intel mesa drivers are supporting it as well. Could not figure out if amd drivers are supporting it.

and as mentioned this could be extended to be used by vulkan context creation as well.
https://www.khronos.org/blog/vulkan-1.3-and-roadmap-2022
VK_KHR_global_priority

VK_KHR_global_priority and other interactions with Vulkan are outside the scope of GLFW. This is handled by client code.


ARROW-10680: [Rust] [DataFusion] Add partial support for TPC-H query 12

This PR adds partial support for TPC-H query 12 and fixes a couple of bugs that I found in the new JOIN logic.

The query runs for a while and then fails with:
Running benchmarks with the following options: BenchmarkOpt { query: 12, debug: false, iterations: 1, concurrency: 2, batch_size: 4096, path: "/mnt/tpch/tbl-sf1/", file_format: "tbl", mem_table: false }
thread 'main' panicked at 'must be called from the context of Tokio runtime configured with either `basic_scheduler` or `threaded_scheduler`', datafusion/src/physical_plan/hash_aggregate.rs:368:9

@jorgecarleitao @alamb I suggest that we merge this anyway since it does fix two join bugs and the benchmark is valid.

@jorgecarleitao the error was caused by a tokio version mismatch between the crates

The query works if I disable the FilterPushDown rule:
Running benchmarks with the following options: BenchmarkOpt { query: 12, debug: true, iterations: 1, concurrency: 24, batch_size: 4096, path: "/mnt/tpch/tbl-sf1/", file_format: "tbl", mem_table: false }
Logical plan:
Aggregate: groupBy=[[#l_shipmode]], aggr=[[SUM(Int32(1)) AS high_line_count, SUM(Int32(0)) AS low_line_count]]
  Join: l_orderkey = o_orderkey
    Filter: #l_receiptdate Lt Utf8("1995-01-01")
      Filter: #l_receiptdate GtEq Utf8("1994-01-01")
        Filter: #l_shipdate Lt #l_commitdate
          Filter: #l_commitdate Lt #l_receiptdate
            Filter: #l_shipmode Eq Utf8("MAIL") Or #l_shipmode Eq Utf8("SHIP")
              TableScan: lineitem projection=None
    TableScan: orders projection=None
Optimized logical plan:
Aggregate: groupBy=[[#l_shipmode]], aggr=[[SUM(Int32(1)) AS high_line_count, SUM(Int32(0)) AS low_line_count]]
  Join: l_orderkey = o_orderkey
    Filter: #l_receiptdate Lt Utf8("1995-01-01")
      Filter: #l_receiptdate GtEq Utf8("1994-01-01")
        Filter: #l_shipdate Lt #l_commitdate
          Filter: #l_commitdate Lt #l_receiptdate
            Filter: #l_shipmode Eq Utf8("MAIL") Or #l_shipmode Eq Utf8("SHIP")
              TableScan: lineitem projection=Some([0, 10, 11, 12, 14])
    TableScan: orders projection=Some([0])
+------------+-----------------+----------------+
| l_shipmode | high_line_count | low_line_count |
+------------+-----------------+----------------+
| MAIL       | 15526           | 0              |
| SHIP       | 15462           | 0              |
+------------+-----------------+----------------+
Query 12 iteration 0 took 13431 ms

I will take a look at the filter pushdown.

build failure seems unrelated:
LINK : fatal error LNK1318: Unexpected PDB error; FILE_SYSTEM (3) 'D:\a\arrow\arrow\rust\target\debug\deps\arrow-0d5ca67d15d3b3d6.pdb'

@andygrove @jorgecarleitao I noticed you updated tokio to 0.3 in arrow-flight. You need to activate the rt-multi-thread for it to work! 😃
And apart from that, don't you have problems running tonic (which uses tokio 0.2) with tokio 0.3 ?
cd rust/arrow-flight; cargo run --example server
-> 'there is no reactor running, must be called from the context of Tokio runtime'

We can discuss downgrading back to tokio 0.2 in the causing PR https://github.com/apache/arrow/pull/8697 or open an issue


Remove aggregation objects from recursion opcode

Problem
Once https://github.com/AztecProtocol/aztec-packages/pull/3765/files is merged, the nested_aggregation_object will no longe be needed in the ACIR recursion opcode.
This along with the input_aggregation_object and the output_aggregation_object can now be safely removed from ACIR
Happy Case
This is a breaking change. For now, all of our Noir examples should just set these objects to zeroes.
Alternatives Considered
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response

@vezenovm / @kevaundray grateful if you could link the Noir PR mirrored from aztec-packages that closes this Issue.


Provide guidance for deploying migrations

This would primarily be:

Best practices (For example, don't run migrations on app startup, generate scripts, etc.)
How to generate scripts

Possibly also how to use ef.exe

How to deploy scripts to common places--e.g. Azure

Possibly pros and cons of doing this a maintenance window as opposed to against a running app, and strategies for doing it against a running app if this is needed.

Really pleased to see this has been raised - looking forward to hearing more!

Copying the address of @johnnyreilly’s blog post here:
https://blog.johnnyreilly.com/2018/06/vsts-and-ef-core-migrations.html

Looking forward to "official" guidelines.
Until then, here's what I'm doing which i find to be a quite nice and straightforward solution without creating an additional console app:

Adding DotNetCliToolReference to NuGetPackage Microsoft.EntityFrameworkCore.Tools.DotNet
In my Build, I add an additional .NET Core task where I use the custom command ef with the following arguments: migrations script -p $(Build.SourcesDirectory)\Project\Project.csproj -o $(build.artifactstagingdirectory)\migrations\migrations.sql -i
This generates an idempotent migration script containing all migrations so it can be executed at any migration state of the database and it is published to my build's artifacts in it's own migrations direcotry
I execute this script file now in my Release with a SQL Server Database Deploy task

That's it - it's straightforward and works nicely, fits perfectly in a Continous Deployment scenario and allowing us to use a deployment user with all necessary rights to change database schemas - while during app runtime, I can run with a different user that has only datareader/datawriter rights.
There is just one drawback: The generated script does not create the database if it does not exist on the first deployment. So the DB has to be there and prepared - or, and that is what I have done, I added an additional SQL Server Database Deploy task with inline SQL to create the database if it does not exist.
I think it's an ok thing to do, but I'd love to have the possibility to optionally add create database SQL with dotnet ef script tooling.

See also https://github.com/aspnet/EntityFrameworkCore/issues/13339


Returns null

Hi there! thx for your excellent work. :)
I am getting a null value for domainInfo on this situation:
var domainParser = new DomainParser(new WebTldRuleProvider());
var domainInfo = domainParser.Get("s3-us-west-2.amazonaws.com");

Hi
s3-us-west-2.amazonaws.com is listet as a tld domain. If the domain a tld the result is null.

@tinohager  Can you add XML documentation to the method so that all users know when the Get method returns null?


Incorrect description of Scope options in a delegation rule

Point number 4
Module – Delegate only the work items that are related to a specific type of workflow. If you select this option, you must select the type of workflow in the Name field.
Correction- if you select module option, then you are prompted to select the module name & not the workflow name.

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

ID: abcafcff-ef17-2833-31d1-8c5b4a41fda5
Version Independent ID: 07f491db-ff11-266d-a17e-d4282d0ea6cc
Content: Delegate work items in a workflow - Finance & Operations | Dynamics 365
Content Source: articles/fin-ops-core/fin-ops/organization-administration/tasks/delegate-work-items-workflow.md
Service: dynamics-ax-applications
Product: ****
Technology: ****
GitHub Login: @jasongre
Microsoft Alias: jasongre

@Bhavleen-cloud - thanks for the feedback.
@jasongre - can you please review this feedback and update the topic as necessary?

Adjusted https://github.com/MicrosoftDocs/dynamics-365-unified-operations-public/pull/2567. Thanks!

Resolved Bug 449552: Docs issue: 2384 - Incorrect description of Scope options in a delegation rule


add millen2223 to contributors

I would like to continue contributing to GTN and Galaxy

Hi @millen2223 Welcome to the GTN! Being on the contributor list is not a pre-requisite to contributing to the GTN.
So we do not add people to the contributor list until their first contribution to avoid inaccurately increasing our statistics. We will leave this pull request open until you make your first contribution and merge it then :)
If you are looking for ideas of how to contribute here, please take a look at this issue with contribution ideas, or have a chat with us on Gitter/Matrix :)

@bebatut I understand, I made a request based on suggestion from @hexylena  and @shiltemann  here: https://github.com/galaxyproject/training-material/issues/2973
In any other case I wouldn't dare to add myself here.
I am contributing since October and have multiple, although maybe small contributions
for example https://github.com/usegalaxy-eu/website/pull/827 and here https://github.com/galaxyproject/training-material/pull/2976 and others. At first I wanted to add it to those pull request but I haven't done it before, so I made a new pull request.


[noble] syslog release breaks rsyslog

in syslog_storer in the syslog release
it overwrite rsyslog see: https://github.com/cloudfoundry/syslog-release/blob/main/jobs/syslog_storer/templates/rsyslog.conf.erb
this causes rsyslog to fail.
it seems to have to do with write permissions.
as we had also problems with writing the bosh-agent logs to the /var/vcap/bosh/log from systemd due to permissions.
and we agreed that logs should be in the logs directory.
more investigation is needed

noticed when ci tests where failing https://bosh.ci.cloudfoundry.org/teams/stemcell/pipelines/stemcells-ubuntu-noble/jobs/test-stemcells-master-ipv4/builds/47#L667487cc:926
systemctl status rsyslog output:
un 28 09:05:38 b1518270-e300-444b-a56f-e2f356433f53 rsyslogd[5399]: action 'action-8-builtin:omfile' suspended (module 'builtin:omfile'), retry 0. There should be messages before this one giving the reason for suspension.>
Jun 28 09:05:38 b1518270-e300-444b-a56f-e2f356433f53 rsyslogd[5399]: action 'action-8-builtin:omfile' resumed (module 'builtin:omfile') [v8.2312.0 try https://www.rsyslog.com/e/2359 ]
Jun 28 09:05:38 b1518270-e300-444b-a56f-e2f356433f53 rsyslogd[5399]: action 'action-8-builtin:omfile' suspended (module 'builtin:omfile'), retry 0. There should be messages before this one giving the reason for suspension.>
Jun 28 09:05:50 b1518270-e300-444b-a56f-e2f356433f53 rsyslogd[5399]: rsyslogd: file '/var/vcap/data/syslog_storer/buffered/agg_backlog.00000001': open error: Permission denied [v8.2312.0 try https://www.rsyslog.com/e/2433 ]
Jun 28 09:05:50 b1518270-e300-444b-a56f-e2f356433f53 rsyslogd[5399]: file '/var/vcap/data/syslog_storer/buffered/agg_backlog.00000001': open error: Permission denied [v8.2312.0 try https://www.rsyslog.com/e/2433 ]

Nobel stemcells can be found here:

storage.googleapis.com/bosh-core-stemcells-candidate/google/bosh-stemcell-0.59-google-kvm-ubuntu-noble-go_agent.tgz
storage.googleapis.com/bosh-core-stemcells-candidate/aws/bosh-stemcell-0.59-aws-xen-hvm-ubuntu-noble-go_agent.tgz
storage.googleapis.com/bosh-core-stemcells-candidate/azure/bosh-stemcell-0.59-azure-hyperv-ubuntu-noble-go_agent.tgz

Source: https://bosh.ci.cloudfoundry.org/teams/stemcell/pipelines/stemcells-ubuntu-noble/

Sorry, I lost track of this for a while.
❓ Is this error still occurring?
❓ Has the new rsyslog package for Noble been pulled in?

@ctlong yes this error is still occuring.
the problem is not rsyslog but systemd and its new security measures.
it does not allow logs writing outside of /var/log/**/*

I don't appear to be able to view the pipeline, but I just wanted to confirm what tests you're running to see the syslog_storer failures? Are you running the tests in the syslog-release repo?

the tests run our here https://github.com/cloudfoundry/bosh-linux-stemcell-builder/blob/ubuntu-jammy/src/github.com/cloudfoundry/stemcell-acceptance-tests/ipv4director/syslogrelease/smoke_test.go#L18

syslog-release 12.3.4 sovled the issue


[Feature Request] 1.Also display the tiltle of target. 2. Providing a option which only shows one result for one size count or word count

Sometimes title can provide much more information about whether or not a certai result is a valid hit.

It only need to use a REGEX llike /w+

A huge amount site will return the same response for a lots of simlar request , which will make you have to manually filter these false positive, this case is so common, a new funtionality as I described will be very helpful.

You can already do this using -mr (matcher) or -fr (filter), matching / filtering using regexes :)

You can already do this using -mr (matcher) or -fr (filter), matching / filtering using regexes :)

You misunderstand what I mean, As I understand "-mr" is using a regex as a  filter , only showing the response which match the regex you provide . But what I mean is like displaying the title after the [size, word, staus code, title].
Like so

I didn't realize you are the author of this software, sorry if My words are offensive and I will try to change the code if I learnt go

It's cool, no harm done. I'm from the nordics, and the communication culture here is very straightforward so I didn't even recognize any aggressive or offensive tone in your messages above to be honest :)
To the feature request: I think it sounds  good, and we could introduce a new cli variable -vv (VeryVerbose) to print this, and potentially something else in the future as well.
Things to note: HTML is broken more often than not, and the regex should be rather sophisticated to mitigate this. It's a good idea to have a max length for the title as well for this (and other reasons). The terminal control characters should be also stripped out, or the server admins can play some tricks on us ;).

+1 for this feature. Would be nice to have content-type also.


[feature request] when uploading over curl, is it possible to issue a response with the URL of the paste?

For example, if I have /pastalist disabled there's no list of pastes. If I were to upload a paste using curl there's no response, but the paste does get made. There's no way for me to find and use it though lol.
Ideally, I'd get returned the URL as a response from the curl which I can then use & share.
Thanks for your time - microbin looks very promising!

curl can do this directly by having it print the redirect URL. For example:
curl -F expiration=1min -F content="This is a test." -X POST -w '%{redirect_url}\n' https://microbin.example.com

curl can do this directly by having it print the redirect URL. For example:
curl -F expiration=1min -F content="This is a test." -X POST -w '%{redirect_url}\n' https://microbin.example.com

Very clever solution! I'm not sure, should I close this or do you think it should (could?) be handled by microbin also?

closing this, it's silly and i didn't really think it through at all. also @bdelwood nailed the answer - thanks again :)