Cheerio issue with Webpack

I get the following issue when i try to run this with webpack
Full stack trace:

ERROR in ./~/scrape-it/~/cheerio-req/~/cheerio/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./package in /Users/Spicycurryman/Desktop/Main/styell/node_modules/scrape-it/node_modules/cheerio-req/node_modules/cheerio
resolve file
  /Users/Spicycurryman/Desktop/Main/styell/node_modules/scrape-it/node_modules/cheerio-req/node_modules/cheerio/package doesn't exist
  /Users/Spicycurryman/Desktop/Main/styell/node_modules/scrape-it/node_modules/cheerio-req/node_modules/cheerio/package.webpack.js doesn't exist
  /Users/Spicycurryman/Desktop/Main/styell/node_modules/scrape-it/node_modules/cheerio-req/node_modules/cheerio/package.web.js doesn't exist
  /Users/Spicycurryman/Desktop/Main/styell/node_modules/scrape-it/node_modules/cheerio-req/node_modules/cheerio/package.js doesn't exist
resolve directory
  /Users/Spicycurryman/Desktop/Main/styell/node_modules/scrape-it/node_modules/cheerio-req/node_modules/cheerio/package doesn't exist (directory default file)
  /Users/Spicycurryman/Desktop/Main/styell/node_modules/scrape-it/node_modules/cheerio-req/node_modules/cheerio/package/package.json doesn't exist (directory description file)
[/Users/Spicycurryman/Desktop/Main/styell/node_modules/scrape-it/node_modules/cheerio-req/node_modules/cheerio/package]
[/Users/Spicycurryman/Desktop/Main/styell/node_modules/scrape-it/node_modules/cheerio-req/node_modules/cheerio/package.webpack.js]
[/Users/Spicycurryman/Desktop/Main/styell/node_modules/scrape-it/node_modules/cheerio-req/node_modules/cheerio/package.web.js]
[/Users/Spicycurryman/Desktop/Main/styell/node_modules/scrape-it/node_modules/cheerio-req/node_modules/cheerio/package.js]
 @ ./~/scrape-it/~/cheerio-req/~/cheerio/index.js 11:18-38

I've tried update Cheerio inside the scrape-it module itself and outside, but no luck.
It exists.

EDIT:
Here's my webpack.config.js file

var webpack = require('webpack');
var path = require('path');
var fs = require('fs');
var request = require('request');
var CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');

module.exports = {
    entry: "./main.js",
    output: {
        path: __dirname,
        filename: "bundle.js"
    },
    module: {
    loaders: [
      { test: /\.json$/, loader: 'json-loader' }
        ]
    },
    resolve: {
        extensions: ['', '.webpack.js', '.web.js', '.js']
    },
    node: {
        console: 'empty',
        fs: 'empty',
        net: 'empty',
        tls: 'empty'
    }
}

How can this be resolved? Why is this occurring?

I'm not familiar with webpack. I saw these issues:

https://github.com/webpack/webpack/issues/191
https://github.com/webpack/webpack/issues/184

Hopefully that helps.

@IonicaBizau thanks for the help. Figured it out.  I had to add .json to resolve.extensions. 👍  I'm now getting an unrelated error now though :(
http://stackoverflow.com/questions/41004659/using-webpack-with-mongoose-mongoose-model-is-not-a-function


WinUI3 apps using 1.6 SDK stop rendering in remote desktop

Describe the bug
We have a WinUI3 application that we recently updated to use WindowsAppSDK version 1.6.240829007. Prior to this update it ran over remote desktop fine, however after this update it will visually freeze if you switch away from the remote desktop window and back, however it still accepts mouse input during this time. Switching away from remote desktop and back again will restore the app's rendering functionality, and it will update as though all clicks had been interpreted and it just wasn't rendering for a while.
I've attached a small application which reproduces the behavior, as well as a video to demonstrate it. We've had multiple people run into this issue with the app after the update to 1.6.
WinUIRDPBug.zip
This affects our unpackaged application, and the demo application is also unpackaged. I do not know if this bug exists for packaged applications, however our application must remain unpackaged, so I didn't attempt to test the packaged app behavior.
Steps to reproduce the bug

Compile the attached demo application as Release x64.
Copy the compiled app to a separate computer via a remote desktop connection. The RDP settings can be anything, I've tried a variety of performance settings from the default lowest (Modem) to the default highest (LAN) and they all produce the behavior.
Run the compiled app in the remote desktop session and click a few buttons to verify it is working (clicking the buttons and nav view items should add messages to the log text box).
Switch focus on the main (non-remote) computer to an application other than the remote desktop connection, and interact with the other application.
Switch focus back to the remote desktop connection and click on the demo app. Attempt to click on some buttons and menu items, and it will not appear to respond to the clicks. The first click may apply the hover or pressed style to whatever you clicked, and after that nothing will update.
Switch away from the remote desktop session and back again, then click on the application. It will update as though it had been processing the mouse clicks and just wasn't rendering until now. The application will now continue to behave as expected (until you switch away from remote desktop again).

Expected behavior
At step 5 of the reproduction, the application should behave normally and continue rendering. Clicking buttons and menu items should show the usual WinUI animations, and the text box log should update as things are clicked.
Screenshots
This video shows the problem in action: WinUI3RemoteDesktopBug

NuGet package version
WinUI 3 - Windows App SDK 1.6.0: 1.6.240829007
Windows version
No response
Additional context
The host computer is Windows 11 (23H2) build 22631.4169, the remote computer is Windows Server 2019 Standard (1809) build 17763.6293.
Remote desktop connection information is:
[Client details]
Client version: 10.0.22621.4036 (x64)
Local OS: Windows 10 Pro x64 (10.0, Build 22631)

[Network details]
Transport protocol: TCP
Round-trip time: 170 ms
Available bandwidth: 9.98 Mbps
Frame rate: 0 FPS

[Remote computer details]
Remote session type: Remote desktop
Gateway name: Not in use
Gateway logon method: Not in use
Remote computer: [redacted]

I was also able to reproduce this with the host computer being Windows 11 (23H2) build 22631.4169 and the remote computer being Windows 11 (23H2) build 22631.4169. Remote desktop connection information for that session is:
[Client details]
Client version: 10.0.22621.4036 (x64)
Local OS: Windows 10 Pro x64 (10.0, Build 22631)

[Network details]
Transport protocol: TCP
Round-trip time: 170 ms
Available bandwidth: 31.20 Mbps
Frame rate: 2 FPS

[Remote computer details]
Remote session type: Remote desktop
Gateway name: Not in use
Gateway logon method: Not in use
Remote computer: [redacted]

Seeing this too, as we have apps in production that can only be executed from a remote desktop session this is a critical bug for us.

We are experiencing this as well, but it's more like the app loses mouse input. Using navigation keys on the keyboard (tab and arrow keys), we are still able to navigate through our app. Pressing a key such as spacebar sometimes returns mouse input.
This must be a regression, since this was an issue in a previous version of the Windows App SDK.

I'm experiencing the same issue. Initially I thought it was the Remote Desktop Manager I was using. Downstream report: https://forum.devolutions.net/topics/43042/freezing-issues-with-rdm-20243100

Have a similar behavior even without RDP environment.
Simply hold down the Tab key for a while, at some point the window no longer responds to pointer inputs. But it seems to be random when this happens.
After pressing ALT or Shift, however, all previous clicks are processed.
https://github.com/user-attachments/assets/e11552e6-e1c4-4496-a298-91ab7fb71d6a

Is there any commitment, or at least acknowledgment, that this will be worked on? I wonder why this isn't treated with a bit more urgency, as it essentially makes version 1.6 unusable in production for enterprises.

This is a serious issue guys, and it's fully and easily reproduceable with any WinUI 3 app that targets any version of Windows App SDK 1.6.
This creates serious confusion for users that need to work on VMs or via Remote Desktop when the app appears to have frozen after clicking out of and back into a VM / Remote session.

This issue still exists when using WindowsAppSdk version 1.6.241114003 and 1.7.241114004-experimental1. We'd like to keep our application up to date with new WinUI versions, however as most of our users run our application over remote desktop this is a hard stop for us.
Are there any active plans or a target version to get this issue fixed?


Support .where filters in Serenity/JS 3.0.0

As per my conversation with @viper3400 on Serenity/JS Community Chat
const Dialogs = Target.all('visible modal dialogs').located(by.css('.ui-dialog'));
const DialogTitle = Target.the('dialog title').located(by.css('.ui-dialog-title'));
const DialogWithTitle = (title: string) =>
  Dialogs.where(Text.of(DialogTitle), includes(title)).first();

Serenity/JS 3.0 should support Screenplay-style .where filters for nested page elements.

My workaround for now (with 3 x await ...)
const Dialogs = PageElements.locatedByCss('.ui-dialog').describedAs('visible modal dialogs');
const DialogTitle = PageElements.locatedByCss('.ui-dialog-title').describedAs('dialog title');

const DialogWithTitle = (dialogTitle: string) =>
	Dialogs()
		.filter(async (dialog) => {
			const title = await (
				await (await DialogTitle.of(dialog).answeredBy(actorInTheSpotlight())).first()
			).text();
			return title === dialogTitle;
		})
		.first();

Another pattern where I use multiple .wheres should be covered, as well:
const ListItems =>
    Target.all(`items`).located(by.css('.item'));

const ListItem = (item: MyCustomItemType) =>
        ListItems
            .where(Text, includes(item.name)))
            .where(Text, includes(item.desription))
            .where(Text, includes(item.date))
            .where(Text, includes(item.time))
            .first();

(as seen in the gitter chat, as well)

This will land in the next RC, with a new implementation of List supporting both the regular Arrays and PageElements.
For example:
        const items = [ 1, 2, 3, 4, 5 ];

        const list = List.of(items);

        const result = await list
            .where(Value, isGreaterThan(2))
            .where(Value, isLessThan(5))
            .answeredBy(actor)

        // [ 3, 4 ]

where:
class Value {
    static of<T>(item: T): Question<Promise<T>> {
        return Question.about('some value', actor => Promise.resolve(item));
    }
}

Another API worth mentioning is List.eachMappedTo:
        const accounts: Account[] = [
            { id: 1, name: 'Alice' },
            { id: 2, name: 'Arbnor' },
            { id: 3, name: 'Bob' },
        ];

        const list = List.of(accounts);

        const result = await list
            .where(AccountName, startsWith('A'))
            .eachMappedTo(AccountName)
            .answeredBy(actor);

        // ['Alice', 'Arbnor']

where:
class AccountName {
    static of = (account: Account) =>
        Question.about('account name', actor => account.name)
}

Available in RC3

At the moment we have a common library + 2 project libraries. By now I just migrated the common library which has just some basic tests, but the .where looks good so far. Thanks!
This is just a first feedback, as I'm not sure, when I can try a migration of one of the main projects (and they contain much more code).


Bandit: Start span when connection start rather than retroactively

This ensures that spans created in application code are correctly parented to the request span, like when using the Cowboy or default Phoenix handlers.
This PR builds on top of @elvanja's work in #311.
TODOs:

[ ] Actually test the websocket changes (the project I've been testing with has no websockets)

This is a good change and would be nice if it were merged.

Websocket changes work fine. The only problem is that websocket connection can be open indefinitely long, and I do not know if there are any use of extra-long spans. I exports traces to Datadog, and it considers a span closed after 10 minutes. Also, if I am not mistaken, they have no child spans. I am not sure if cowboy handler traces websocket events.

Websocket changes work fine. The only problem is that websocket connection can be open indefinitely long, and I do not know if there is any use of extra-long spans. I export traces to Datadog, and it considers a span closed after 10 minutes. Also, if I am not mistaken, they have no child spans and not a lot of useful attributes. I am not sure if cowboy handler creates websocket traces.

Websocket traces for the duration of a connection are not a thing. The recommended approach for folks if they want to correlate socket messages to a connection is to create a session id in the socket handler and add that to your spans.
There's some other good stuff in here. I have very limited time to get everything out so I will likely merge this along with the other PR and remove the sockets bit.

@shadowfacts can you sign the CLA ASAP please? We can't accept your work without it.

@bryannaegele Sorry for the delay. I'm entirely happy to grant copyright/patent licenses to the project and to assign any other rights to this work, but the CLA asks for my full legal name and my mailing address, which I'm not willing to provide.

No worries. We've asked that the CLA get less intrusive.

@bryannaegele Is this work abandoned? This feature would be very useful for my team. We're currently using OTel with cowboy, but would like to switch over to bandit.

No, we just can't accept non-cla code. The spirit of what this was trying to do is covered in #357 though, so it won't be long


Automated cherry pick of #8036: fix(region): add GetSlaveFieldName for ScalingGroupGuest

Cherry pick of #8036 on release/3.3.
#8036: fix(region): add GetSlaveFieldName for ScalingGroupGuest

Codecov Report

Merging #8038 into release/3.3 will decrease coverage by 2.14%.
The diff coverage is 0.00%.

@@              Coverage Diff               @@
##           release/3.3   #8038      +/-   ##
==============================================
- Coverage         6.78%   4.64%   -2.15%
==============================================
  Files              676     143     -533
  Lines           118955   19135   -99820
==============================================
- Hits              8076     888    -7188
+ Misses          110267   18169   -92098
+ Partials           612      78     -534

Flag
Coverage Δ

#aFlag
4.64% <0.00%> (-2.15%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/cloudcommon/db/adminsharablevirtual.go
0.00% <0.00%> (ø)

pkg/cloudcommon/db/db_dispatcher.go
0.00% <0.00%> (ø)

pkg/cloudcommon/db/domain.go
2.66% <0.00%> (-0.91%)
:arrow_down:

pkg/cloudcommon/db/domainresource.go
0.00% <0.00%> (ø)

pkg/cloudcommon/db/external.go
0.00% <0.00%> (ø)

pkg/cloudcommon/db/infraresource.go
0.00% <0.00%> (ø)

pkg/cloudcommon/db/managed.go
0.00% <ø> (ø)

pkg/cloudcommon/db/modelbase.go
4.73% <0.00%> (-0.09%)
:arrow_down:

pkg/cloudcommon/db/opslog.go
1.38% <0.00%> (-0.12%)
:arrow_down:

pkg/cloudcommon/db/project.go
0.00% <0.00%> (ø)

... and 598 more

Continue to review full report at Codecov.

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

/lgtm
/approve


Query dynamic rows

I tried to implement a .queryDynamic on Fragment with the idea to give me a Query[A, List[Option[String]]] for queries, where the schema is not known at compile time. But at runtime, I get an error that the returned rows from postgres don't match the expected types. Any idea?
...
a     int4    ->    ── unmapped column
b     bool    ->    ── unmapped column
c     float8  ->    ── unmapped column
...

fixes #662

@armanbilge could you please review? I have this running in production for some time now.

Thanks for the ping, glad it's working for you :) I'm not really a maintainer here.

See

https://github.com/tpolecat/skunk/issues/697


Mobile Schedule Page

-Resize schedule to fit to screen or change layout for mobile

Fixed in PR https://github.com/bitcoinbrisbane/bitcoinpokertour/pull/37

Please leave an image explaining here


fix: None or object return headers

Find: ###
None by default; **(\w*)** if **-PassThru** is specified.
Replace: ### None\nDefault\n\n### $1\nIf -PassThru is specified.

This is just a format fix and looks OK.


CSP fails with strict-dynamic when implementing Cloudflare Web Analytics

When following the @nuxt/scripts implementation instructions for Cloudflare Web Analytics here: https://scripts.nuxt.com/scripts/analytics/cloudflare-web-analytics (the "Loading Globally" section, as well as "useScriptCloudflareWebAnalytics" my CSP settings are consistently producing the following error:
Refused to load the script 'https://static.cloudflareinsights.com/beacon.min.js' because it
violates the following Content Security Policy directive:
"script-src 'self' https: 'unsafe-inline' 'strict-dynamic' 'unsafe-eval' ...[a bunch of sha]".
Note that 'strict-dynamic' is present, so host-based allowlisting is disabled.
Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

Here's my nuxt.config.ts entry for the module:
security: {
  headers: {
    crossOriginEmbedderPolicy: 'unsafe-none',
    crossOriginOpenerPolicy: false, // Resolves a NS_ERROR_FAILURE error in Firefox
    xFrameOptions: 'SAMEORIGIN',
    contentSecurityPolicy: {
      'upgrade-insecure-requests': import.meta.env.NODE_ENV === 'development' ? false : true,
      'img-src': ["'self'", 'data:', 'https:'],
      'frame-ancestors': ["'self'", 'localhost:*', 'http://localhost:*', 'https://localhost:*', 'https://*.example.com'],
      'script-src': [
        "'self'",
        'https:',
        "'unsafe-inline'",
        "'strict-dynamic'",
        "'nonce-{{nonce}}'",
        "'unsafe-eval'",
      ],
      'script-src-attr': ["'self'"],
      'style-src': [
        "'self'",
        'https:',
        "'unsafe-inline'",
      ],
    },
  },
  rateLimiter: false,
  removeLoggers: false,
}

According to the Nuxt security docs on whitelisting external resources utilizing useScript (or the global loader, I'm assuming) should bypass this issue because of the strict-dynamic rule.
If I remove strict-dynamic from my config, the issue is resolved, but this isn't ideal.
What am I doing wrong? Any help would be appreciated.

Hi @adamdehaven
Can you tell me

how you load Cloudflare Web Analytics with the global loader (nuxt.config.ts entry)
how you use useScript (unfortunately there are 2 different useScript: the one from unhead, and the one from @nuxt/scripts)
how you deploy (static or SSR)

Thanks

useScript is available from the @nuxt/scripts install

how you deploy (static or SSR)

I have two sites with the same issue. One is build with cloudflare-pages-static Nitro preset (so, static), and the other with cloudflare-module preset (SSR).

how you load Cloudflare Web Analytics with the global loader (nuxt.config.ts entry)

I actually tried a few different ways.
Via the nuxt.config.ts:
$production: {
  scripts: {
    registry: {
      cloudflareWebAnalytics: true,
    },
  },
}

And then separately, I also tried using the composable in app.vue in the root of the script setup block:
const { token } = useRuntimeConfig().public.scripts.cloudflareWebAnalytics
if (token) {
  useScriptCloudflareWebAnalytics({
    token,
    scriptOptions: {
      trigger: 'onNuxtReady',
    },
  })
}

In the raw HTML that you get on your home page, can you see the https://static.cloudflareinsights.com/beacon.min.js script src somewhere ?

Yes:
<script data-onload="" data-onerror="" defer="" fetchpriority="low" referrerpolicy="no-referrer" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon="{"token":"<TOKEN>","spa":true}" data-hid="136af0b"></script>

The script is being inserted server-side, this is incompatible with CSP. Which causes the error.
There seems to be an option for ´client’ mode with the composable : https://scripts.nuxt.com/scripts/analytics/cloudflare-web-analytics#usescriptcloudflarewebanalytics
but it’s not 100% clear to me how to disable server-side injection from reading the docs
I’m offline right now and cannot assist better immediately I’m afraid. Maybe you can ask the team @nuxt/scripts why the script is being inserted server-side, they will know
copying @harlan-zw on this one

I was able to get this working by utilizing useHead (available directly in Nuxt, without the need for @nuxt/scripts.
I simply placed this into my app.vue at the project root:
useHead({
  script: [{
    src: 'https://static.cloudflareinsights.com/beacon.min.js',
    'data-cf-beacon': JSON.stringify({
      token: '<TOKEN>',
      spa: true,
    }),
    defer: true,
    tagPosition: 'bodyClose',
    key: 'cloudflare-web-analytics',
  }],
}, { mode: 'client' })

@harlan-zw I attempted multiple solutions with @nuxt/scripts (and the useScriptCloudflareWebAnalytics composable), even trying to pass trigger: 'client' and a couple other variations; however, it never seemed to respect the config setting.

Separately, @vejja this required a manual setup (i.e. manually loading the script here) in Cloudflare; however, they also have an "automated setup" where they simply inject the HTML into the site.
With the strict-dynamic rule in place, their added script tag is still subject to the original error in this Issue. Is there a workaround in my CSP settings if I want to allow an "integration" (e.g. Cloudflare Web Analytics) to add its own script on the page without requiring this manual setup?

If the script src tag is delivered as part of the original HTML, it will be denied by CSP. This is the whole point of CSP.
However if the script src tag is added dynamically by the client after the original HTML is received, it will be allowed - provided the ‘strict-dynamic’ policy is set and the ‘useHead’ or ´useScript’ composables are used to insert the script.
So : if anyone injects the

What was the solution eventually @adamdehaven ?
We may want to clarify this in our docs

I used the implementation mentioned above here
I was waiting to hear back from Harlan to determine if respecting the client settings in @nuxt/scripts is a valid bug (then I can open an issue over there and maybe push a patch)

You can see a demo here: https://scripts-phi.vercel.app/third-parties/cloudflare-web-analytics/nuxt-scripts. The script is not within the SSR Response.
However, maybe it's the preloading causing the issue?
<link fetchpriority="low" as="script" referrerpolicy="no-referrer" href="https://static.cloudflareinsights.com/beacon.min.js" rel="preload">

I added this to make sure the script gets loaded as fast as possible but maybe it's causing issues. We can configure this behavior with warmupStrategy:
useScriptCloudflareWebAnalytics({
  token: '<token>',
  scriptOptions: {
    warmupStrategy: false,
  }
})

Maybe we need to set this as the default if Nuxt Security is used?

@harlan-zw I need to double check whether rel=preload would be an issue, I don’t think it should
what striked me here is OP was saying the script was in the server response
@adamdehaven this is weird. You should have been able to use @nuxt/scripts out of the box without any custom code.
Would you mind sending a screenshot of the HTML portion where the script appears, as well as a screenshot of the CSP denial message in the console - in both cases trying to make sure the line numbers match? This would be helpful in trying to understand the potential relationship with the preload link

I also tried implementing this code block twice: one iteration with all the settings shown, and one where I excluded the scriptOptions.trigger.
useScriptCloudflareWebAnalytics({
  token: '<token>',
  scriptOptions: {
    trigger: 'onNuxtReady',
    warmupStrategy: false,
  },
})

The preload script is still injected into the head in both scenarios causing the CSP error.
I think there may be an issue internally with @nuxt/scripts? It doesn't seem to be respecting the warmupStrategy as I would expect the preload link to not be inserted

If I'm [quickly] reading this block from useScripts correctly, it appears that if I set options.warmupStrategy to false, it's always setting it to preload which in this case, I think isn't desired? @harlan-zw check me here


Old Folder Remains w/ Syncing after Renaming Folder

Hello. First, thank you for the amazing plugin. It is working pretty great except for one issue I have noticed.
When I rename a folder and sync, an empty folder with the old folder name remains on the device receiving the synced data. I have to manually delete the empty folder on that device as well as on my third device (the delete does not sync). I have the "Keep empty folder" option disabled on all devices, so I'm not sure why this is occurring. Also, it only seems to happen on the desktop clients (Mac and Windows). If my iPhone receives the synced data, the folder is deleted appropriately.
I have tried updating to 0.20.0, rebuilding the local and remote databases, and re-importing the config data by opening the setup URI again. But none have helped :(
Thank you again! @vrtmrz

Hi! I am so honoured to hear that! and thank you for the detail. And, sorry for being delayed! I missed this.
However, in my environment, it seems to work well.
Deleting folders will not be performed if some files are left in the folder. (This count of leftover files is logged as files: n after xxx <- STORAGE).
I am concerned that it happens only on the Desktop environment, is it possible that Thumbs.db or DS_Store exists in that folder? Looks like Obsidian counts this.
Could you please check the folder which has been left over? Also, the log if you can, please.

Thank you for the response.
There is no Thumbs.db, DS_Store, or any hidden files in the left over folder in Windows Explorer.
Here is a snippet of the log after I renamed the folder "1. 🕥 Temporary" to "1. 🕥 Temporary 2":
10/20/2023, 5:07:52 PM->LiveSync begin...
10/20/2023, 5:08:48 PM->Replication activated
10/20/2023, 5:08:48 PM->xxx <- STORAGE (deleted) 1. 🕥 Temporary/Quick Note.md
10/20/2023, 5:08:48 PM->files: 0
10/20/2023, 5:08:48 PM->All files under the parent directory ([object Object]) have been deleted, so delete this one.
10/20/2023, 5:08:49 PM->Entry removed:1. 🕥 Temporary/Quick Note.md (f:55b9bfa3a67bb171c8cb70d86a380f7ac259abc6c12d0c22a6e667b0a72996fa-688-f71719a09c404bd388616e372a084049)
10/20/2023, 5:08:49 PM->DB -> STORAGE (create,plain) 1. 🕥 Temporary 2/Quick Note.md
10/20/2023, 5:08:49 PM->Applied 1. 🕥 Temporary 2/Quick Note.md (f:aad152150db3aaa55ac974ef5fe3ca3de419cbe331e4c571c5f48ea7c8d8a63c:1-7b8f5acab943ad629d6f5e03f78fa04b) change...
10/20/2023, 5:09:37 PM->Replication closed
10/20/2023, 5:09:58 PM->Before LiveSync, start OneShot once...
10/20/2023, 5:09:58 PM->OneShot Sync begin... (pullOnly)
10/20/2023, 5:09:58 PM->Replication activated
10/20/2023, 5:09:58 PM->Replication completed
10/20/2023, 5:09:58 PM->LiveSync begin...

The result being that I now have 2 folders. An empty "1. 🕥 Temporary" folder and "1. 🕥 Temporary 2" folder with my note in it. @vrtmrz

Thank you for the verbose log! It seems LiveSync has been detecting the empty folder correctly.
However, actual deleting does not proceed. May I ask about your configuration of the Use the trash bin? Is it possibly disabled?
If disabled, could you please try enabling it and then retry to see what happens?

Yep enabling it fixed it! Interesting that only desktop requires it to be enabled when it works fine on mobile with it disabled.
Thank you


Error truncating #:~:text= URL

For example #:~:text= URLs :
https://github.com/sindresorhus/refined-github/issues/3686#gh-csc-3:~:text=register%20for%20the%20(free)%20developer%20account

or
https://github.com/sindresorhus/refined-github/issues/3686#:~:text=register%20for%20the%20(free)%20developer%20account

✔ Expected correct behavior:  see  image 🖼
❌ Current error behavior (live demo) : 👇
https://github.com/sindresorhus/refined-github/issues/3686#gh-csc-3:~:text=register for the (free) developer account
https://github.com/sindresorhus/refined-github/issues/3686#:~:text=register for the (free) developer account
The beginning of :~:text=....... will be truncated, so the original anchor function of the API link is lost.

About :~:text=....... API (Chrome⁸¹ᐩ ):

Link to Text Fragment
https://chrome.google.com/webstore/detail/pbcodcjpfjdpcineamnnmbkkmkdpajjg

//Bookmarklet
javascript:if(target=prompt("⚓", location.href+'#:~:text=' +window.getSelection())) {window.open(target);}

📖 Documentation :
https://developer.chrome.com/blog/new-in-chrome-80
https://github.com/WICG/scroll-to-text-fragment
https://wicg.github.io/scroll-to-text-fragment/
https://web.dev/text-fragments/#text-fragments

Thanks for the detailed report, but it's unrelated to Refined GitHub


AMPI_Just_migrated callbacks break using tlsglobals/isomalloc

Original issue: https://charm.cs.illinois.edu/redmine/issues/1214

AMPI doesn't properly take care of turning on/off isomalloc and tlsglobals before calling the user's justMigrated function.

Original date: 2016-09-20 04:36:30

~~https://charm.cs.illinois.edu/gerrit/#/c/1865/~~ https://github.com/UIUC-PPL/charm/commit/25e09a9d5f1c3d0aea093742d9dc936885aee61f

Original date: 2016-09-20 22:13:20

This is tricky, because we need to create an instance of TCharmAPIRoutine from the user's thread only after their about_to_migrate routine has executed, and we need to destruct that instance right before their just_migrated function executes. Also, there seem to be deeper issues with tlsglobals+isomalloc...


Any instance of the string 'in' in a collapse's class attribute breaks Collapse

Presumably this would be fixed by changing the regex to match /\bin\b/ instead of /in/ in the toggle function.

Do you have a test scenario with the issue please?

Sure. The situation that brought this up was a collapse
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-warning-collapse">
that targeted this
<div class="navbar-collapse collapse navbar-warning-collapse">
    ...
</div>

Because /in/ matches against 'navbar-warning-collapse' the toggle method always tries to close the collapse.

Thanks for the library, by the way, was exactly what I was looking for!

Does the \bin RegExp work with IE8? I will probably have to update all code to this, I didn't expect other cases could be touched.

this issue still isn't fixed.
1. \bin: http://regexr.com/3euta
2. \bin\b: http://regexr.com/3eutm
3. (^|\s)in($|\s): http://regexr.com/3eutg

matches words like navbar-inverse-collapse and inverse-class
matches words like navbar-in-example
checks if string begins in or there is a space before in, and ensures that either string ends with in or a space comes after.

I think we will have a new hasClass(element,className) to work with a proper regex.

@thednp cool!
at this point i have to manually patch javascript because i have a div with class name navbar-inverse-collapse :P
hoping this gets patched soon.

Why not use classList.contains('class-name') and polyfill ie?

To keep polyfill dependency to as low as possible. I noticed some users haven't even heard of them.

@thednp according to Microsoft: https://www.microsoft.com/en-us/WindowsForBusiness/End-of-IE-support
EOL is in 3 weeks for IE 9, 10.
I guess people could either include ft polyfill service: https://polyfill.io/v2/docs/
or your version pumped with classList.
For me is better to have a clean ES5 code (and polyfill whatever missing) than try to make it "one fits all". But that's my 2c...

I think we're all looking forward to bootstrap v4; then we won't have to support IE8.

@RyanZim BS v4 host dropped IE 9: https://github.com/twbs/bootstrap/issues/21387

yes, our v4 version will be IE9+ of course.

@dgt41 Thanks for pointing that out. If bootstrap is dropping IE 8 & 9, we should too IMO @thednp.

@RyanZim we only need a proper Event.prototype + dispatcher polyfill for IE9+, so why just not, the same polyfill is required for IE10+ and I believe also for Ms Edge. (for future BSN4 I mean)

@thednp BS v4's css will be totally broken in IE9, why support IE9 for the JS?

https://v4-alpha.getbootstrap.com/migration/

Dropped IE8 and iOS 6 support. v4 is now only IE9+ and iOS 7+. For sites needing either of those, use v3.
Added official support for Android v5.0 Lollipop’s Browser and WebView. Earlier versions of the Android Browser and WebView remain only unofficially supported.

Hosted docs are out of date with the alpha development branch. Actual latest docs are here: https://github.com/twbs/bootstrap/blob/v4-dev/docs/migration.md#browser-support.

Dropped IE8, IE9, and iOS 6 support. v4 is now only IE10+ and iOS 7+. For sites needing either of those, use v3.

Ah great, so people will have to fork or look for other frameworks ;)

If you don't mind I will create some custom components based on your code (@thednp )

Why should I? As long as the MIT license is all the way, we're all happy :)

Off topic: I have had some ideas on hot to make a better HTML5 framework with plain JS

@thednp there is https://frend.co but doesn't fulfilled most cases...

Indeed, that's a bit too "one purpose".
In my mind I think of a good typography + an improved&simplified bsn + some grid + some content light design.

I was thinking about it and I wish to have a final note in regards to @RyanZim & @dgt41 remarks: our bsn here is for BS3 and will continue to support be old browsers, just as the original script. The future version will be also BS4 like browser support.
@thewisenerd I started implementing a hasClass(element,classNAME) utility in all scripts, the new code will be commit later today.
Happy New Year!!

Happy new year @thednp 🎉
Reasonable decision, I like it!


Java 9+ support

Expected Behaviour
When using java 9 or bigger, all tests pass
Actual Behaviour
When using java 9 or bigger, one test fails due to a NPE related to the ClassLoader.
Reproduce Scenario (including but not limited to)
Java 10 setup.
Steps to Reproduce
Run the tests on the develop branch.
Logs taken while reproducing problem

Tests run: 14, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.565 sec <<< FAILURE!
testStringJsonSchema(com.adobe.ride.utilities.model.test.ModelObjectTest)  Time elapsed: 0.003 sec  <<< FAILURE!
java.lang.NullPointerException
at java.base/java.io.Reader.(Reader.java:167)
at java.base/java.io.InputStreamReader.(InputStreamReader.java:113)
at org.apache.commons.io.IOUtils.copy(IOUtils.java:2272)
at org.apache.commons.io.IOUtils.toString(IOUtils.java:1041)
at com.adobe.ride.utilities.model.test.ModelObjectTest.testStringJsonSchema(ModelObjectTest.java:94)

@tedcasey hey, I've been very busy lately, but found some time to dig further into this. I've made a dockerfile to test this issue, and after testing with openjdk 8, 9, 10 and 13, I can confirm the ClassLoader issue occurs with version 9 or bigger. I can supply the dockerfile if you'd like to test it too. I believe the fix would be to apply the change we've dismissed here. What do you think?


Rectdecoration with grouping and filling = False produce additional separation lines between widgets

I found a way to be clearer.
decor_mem = {
    "decorations": [
        RectDecoration(
            #colour="#a6e3a1",
            use_widget_background=True,
            line_width= 5,
            radius=[15, 15, 15, 15],
            filled=False,
            margin_y=20,
            padding_y=10,
            padding_x=0,
            group=True,
            clip=False,
        ),
    ],
}

Widget code:
                widget.NvidiaSensors(format=':{temp}°C', fontsize=22, foreground=colors[13], background=colors[1],update_interval=5, **decor_mem),
                widget.CPU(format=":{load_percent:2.0f}%", fontsize=22, foreground=colors[12],background=colors[1],update_interval=5, **decor_mem),
                widget.Memory(format="﬙:{MemUsed:2.0f}{mm}", measure_mem='G', fontsize=24, foreground=colors[11], background=colors[1], update_interval=5, **decor_mem),

There are two line separations between the three widgets :

Hopefully #197 fixes this.

Can confirm that still persists when using Qtile and Qtile-Extras (both not git versions). My config:
# default decorations
decoration_defaults = dict(
    # colour = colors["white"],
    radius = 2,
    filled = True,
    group = True,
    padding = 4,
)
...
            widget.Spacer(length = 10),
            widget.CurrentLayoutIcon(
                scale = 0.6,
                custom_icon_paths = [
                    os.path.expanduser("~/.config/qtile/assets/layout/"),
                ],
                decorations = [
                    RectDecoration(
                        colour = colors["white"],
                        **decoration_defaults,
                    )
                ],
            ),
            widget.Image(
                filename = '~/.config/qtile/assets/reboot.png',
                margin = 7,
                mouse_callbacks = {'Button1': lazy.spawn("sudo reboot now")},
                decorations = [
                    RectDecoration(
                        colour = colors["white"],
                        **decoration_defaults,
                    )
                ],
            ),
            widget.Image(
                filename = '~/.config/qtile/assets/shutdown.png',
                margin = 7,
                mouse_callbacks = {'Button1': lazy.spawn("sudo shutdown now")},
                decorations = [
                    RectDecoration(
                        colour = colors["white"],
                        **decoration_defaults,
                    )
                ],
            ),

I cannot use the git versions because Mpris doesn't work there, I got it working some time ago, but forgot how I did it.

You'll just have to wait until the next release then, I'm afraid.
What's the issue with mpris?

After reinstall (installing both git versions) it now works, but pulseaudio runs and then doesn't work for some reason (no audio) after kililng it and starting, everything works fine. In last 2 days I reinstalled Qtile and Qtile-Extras a few times and once Mpris didn't work (had this issue which someone had before, because of not having same versions (git or not)), next time worked.

Never mind, I didn't enable pulseaudio so it didn't start (but why started with no-git version?).


Add you-do for paths?

Really important concept that students always get wrong. Feels like a rather lecture-y lesson too.

https://github.com/ga-wdi-exercises/dc_directory_tree


Question about MAX_WASM_FUNCTION_LOCALS

Hello,
I have hit the MAX_WASM_FUNCTION_LOCALS limit on a project but I'm not sure what it is. So I have a few questions.
Q1: what is MAX_WASM_FUNCTION_LOCALS? I understand it is a limit of something. I guess it's the maximum number of locales (variables?) that can be defined on a wasm function?
Q2: this looks to be an agreed limit, does that mean the limit is hardcoded in browsers as well?
Q3: I assume if I split a big function in multiple smaller functions it will solve the issue, is that correct?
Q4: is there a tool that can I use to pinpoint which function is exceeding the limit?
Best

This came up recently on Zulip as well. If you're using Wasmtime the error message was recently improved to mention the function in question. Otherwise when just using wasmparser the context isn't available in the error so you'll need to add it in yourself.
For finding the offending function the current error prints an offset and the offset can be correlated with the output of wasm-tools dump. Other than that though I'm not aware of a better way to go from an offset in a wasm file to function at the offset.


message model and meet model

thank you provider yii2-notifications for us, i used it at mess,
i have a question: no message model and meet model
i don't know how to create it and do not konw the data_model structure.

Hi @Crazylshao and thank you for the kind words :)
Message & Meeting were just example in the README.md
You can see in this repo how I set them up for the demonstration: https://github.com/machour/yii2-kitchen-sink/blob/master/models/Notification.php


About Flash's partition table division

What are the functions of sec_cert and fctry of the partition table? Isn’t it enough to store the DAC certificate in the fctry partition?

The PAI, DAC and DAC private key (Matter attestation PKI) can either be in the factory or in the encrypted sec_cert partition. The partition name is now updated to esp_secure_cert.
esp_secure_cert partition uses the ESP Secure Certificate Manager for the Matter attestation PKI. The ESP pre-provisioning service makes use of that partition.

The PAI, DAC and DAC private key (Matter attestation PKI) can either be in the factory or in the encrypted sec_cert partition. The partition name is now updated to esp_secure_cert.
esp_secure_cert partition uses the ESP Secure Certificate Manager for the Matter attestation PKI. The ESP pre-provisioning service makes use of that partition.

Does that mean that my product only needs the fctry partition, remove the  esp_secure_cert partition?

If your product is going to get the DAC from Espressif using our pre-provisioning service then that will be required. If not, then you can remove the partition. Just note that DAC private key should always be safeguarded, whichever CSA approved DAC provider you choose.

If your product is going to get the DAC from Espressif using our pre-provisioning service then that will be required. If not, then you can remove the partition. Just note that DAC private key should always be safeguarded, whichever CSA approved DAC provider you choose.

But the fctry partition in the example is not encrypted, does it mean that I need to realize the encryption of this partition.


Vercel support

Description
It would be awesome to be able to deploy this to vercel. I tried earlier today and it displays a serverless function error (see This deployment)
Desired Behavior
Quickly deploy on a vercel free account
Additional Context
I'm trying to deploy this to Vercel because I already pay a seedbox server which does not support Jellyseer yet and would like to keep server costs to a minimum.
Vercel does not support sqlite, but does support Postgres
Code of Conduct

[X] I agree to follow Overseerr's Code of Conduct

There's a version of jellyseerr that supports postgres. Maybe you could try that one? You can just git checkout to this PR
#421


Add feature to enable INT ops on GPU conditionally by environment

Tensorflow contains certain Fake-GPU ops i.e. ops that are marked as GPU ops but has inputs and outputs on the host and run host kernels. This pr adds a bazel configuration option to enable code path to register real GPU versions of Fake-GPU ops using an environment variable.
If "--define using_gpu_int_ops=true" added to bazel flags during building phase it will be possible to register GPU versions of Fake-GPU ops by setting an environment variable "TF_USE_INT_TYPES_ON_GPU=1"

tagging @azaks2, @aaroey  and @tfboyd

@rmlarsen  @alextp I think we shouldn't do it this way, and eventually just fix the PinToHost rewriter and move registration of all these ops on device.

@tatianashp will be ready next time.

@samikama could you please resolve the conflicts? Thanks !

@samikama  gentle ping to resolve the conflicts. Thanks!

@tatianashp @tfboyd Should I fix the conflicts for merging or are we going to discuss it further. I believe, since this touches many files it will have conflicts again if it is not going to be merged in near future and fixing these will be pointless.

I'd also strongly prefer first fixing the PinToHostOptimizer and then always enabling int ops on GPUs.

Let's put this PR on hold until we can get PinToHost optimizer to a point
where it's always enabled; then we can enable non-host int kernels on GPUs
by default.
On Thu, May 23, 2019 at 9:12 AM Alexandre Passos<EMAIL_ADDRESS>wrote:

I'd also strongly prefer first fixing the PinToHostOptimizer and then
always enabling int ops on GPUs.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/pull/28051?email_source=notifications&email_token=AANWFG3JWZVGMK7UBJ4IWFDPW27ARA5CNFSM4HHS3DI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWCXDZA#issuecomment-495284708,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AANWFG4ZDDN462ID7UM7SVLPW27ARANCNFSM4HHS3DIQ
.

@tatianashp @tfboyd, as discussed in the meeting, compiling in the extra kernels increase the pip wheel size approximately 7 megabytes. filesize of the _pywrap_tensorflow_internal.so for gpu build with ci_build.sh increased from 530MB to 563MB.

Thanks Sami.  I will try to figure out if 7MB (in the pip) is ok.  It seems ok to me but I am no the owner.  If not we can go back to the build flag and still move forward with trying to get this moving forward.

@tatianashp   Please state the next direction.  Our last decision 22-MAY was to add this as optional so we can play with the feature.

@samikama could you please resolve the conflicts? Thanks!

@tatianashp  to get answer at next meeting.  Rasmus has been out and is vital to the review process.


Questions about comparison results

Dear Mesih Kılınç,
I hope you are well. I am writing to seek your insights on an issue I encountered while using the PROST tool to identify homologous relationships between species.
To put it simply,when I use species A to make database and use species B for search, the results I get are different from when I use species A to build a database and use species A for search.
For example，humans were used to build the database and yeast was used for search，the results were 50,756 items.But when yest were used to build the database and humans was used for search，the results were 55858 items！The difference is nearly 10%！
I appreciate your expertise as the inventor of PROST and would be grateful for any clarification you can provide on this disparity.
I earnestly request an explanation for this disparity.
Could you please explain this problem from the perspective of the working principle of the software？It would be grateful for any clarification you can provide on this disparity.
Thank you for your time.
Sincerely,
Elena

Dear Elena,
There are a couple of reasons why you would get different results. First, the number of proteins in different species is different. For example, humans have more than 82,000 proteins, and yeast have only 6,000 proteins, according to Uniprot. So, when you search using a species A protein in a database containing species B proteins, you'll have fewer target proteins to find similar proteins. Accordingly, the results will be smaller than the reciprocal search.
Here is a figure [1] better explaining the situation. H1 has hits as (C1 and C2) but C1 has hits (H1, H2, and H3):

Another reason is the statistical analysis step PROST performs. PROST looks at the significance according to the whole database. So, the number of proteins in a target database may alter the significance result (the best hits).
Let me know if this needs to be further clarified.
[1] Monzon, Vivian, et al. "Reciprocal best structure hits: using AlphaFold models to discover distant homologues." Bioinformatics Advances 2.1 (2022): vbac072.

Thank you for your patience; my question has been satisfactorily addressed.
I am optimistic that a growing number of individuals will embrace the utilization of PROST, and I extend my best wishes for the continuous improvement of your lab.


Pass contextual information to the worker

I was about to publish events using postMessage({ code: 'EVENT', name: 'eventName', args: [] }) in pino-socket but I don't know how to make sure that the event code is "supported" by thread-stream. In other words, it's only safe to post an EVENT message if we are using thread-stream > 2.1.x. If we are using older versions it will destroy the stream:
https://github.com/pinojs/thread-stream/blob/7a395f719e80961e7e8e010f1555940a091ee758/index.js#L167
Anyway, I was wondering if it would make sense to pass contextual information, such as the version (or a list of capabilities? or a "communication protocol" version) to the worker?
It would allow the transport/worker to communicate with the thread stream "safely" knowing which messages can be sent.
I'm also open to ideas on how to solve this issue.
Follow-up: https://github.com/pinojs/thread-stream/issues/97

Don't you control the application's dependencies? I think it would be simpler to set a minimum install version of the dependency in your application such that it supports the features you need.

That'd be handy. Would you like to send a PR? You can include it in https://github.com/pinojs/thread-stream/blob/7135302d32a7306443c3c6d7b38fa28bc1e698ca/index.js#L52.

Don't you control the application's dependencies? I think it would be simpler to set a minimum install version of the dependency in your application such that it supports the features you need.

Yes but thread-stream is a transitive dependency. Most users will only install a specific version of pino and pino-socket. Arguably, we could mention (in the README) that pino-socket version Y is only compatible with pino X (which brings thread-stream version Z) but that's one more thing to check and my guess is that quite a few users are going to fall for it.

That'd be handy. Would you like to send a PR? You can include it in

Sure!
I believe that passing thread-stream version is probably enough. Using an arbitrary communication protocol version might be confusing and using a list of capabilities is probably a bit too much.
So I was thinking something like:
workerData = {
  '$context': {
    threadStreamVersion: version
  },
  ...workerData
}

I'm using a special prefix to avoid conflicts. I don't have any preference about the prefix character though.

Yes but thread-stream is a transitive dependency. Most users will only install a specific version of pino and pino-socket.

Which is all handled by the semver ranges specified in those direct dependencies.
🤷♂

Which is all handled by the semver ranges specified in those direct dependencies.

pino-socket does not have a dependency on thread-stream. In this case, you cannot prevent a user from using incompatible versions... unless I'm missing something?
I don't think we should add an explicit dependency on pino-socket since, as far as I know, we can use pino-socket without thread-stream.
So, one way would be to explicitly add a dependency on thread-stream >= 2.1.x (in the application dependencies) since pino accepts version >= 2.0.0 < 3.0. But then again it falls on users to explicitly manage the version of thread-stream.

I do not understand the setup. Whatever application is using thread-stream should be the one that has the correct qualifiers.

Pino is using thread-stream and declares version ^2.0.0.
pino-socket transport might be called as a worker through thread-stream and might send messages to the parent thread using parentPort.
There's no direct link between pino-socket and thread-stream other than there's an established "communication protocol":
https://github.com/pinojs/thread-stream/blob/7135302d32a7306443c3c6d7b38fa28bc1e698ca/index.js#L152-L175
This "protocol" changed in version 2.1.0 and now it allows messages with the code EVENT. Previously, a message with the code EVENT was considered as unexpected and as a result the stream was destroyed.
This is not a major version because the protocol is backward compatible but if a transport sends a message with the code EVENT when using thread-stream< 2.1, the stream will be destroyed!
That's why we need to make sure that the communication protocol supports this new code.
thread-stream is not a user facing dependency and as mentioned above pino-socket does not have a direct dependency on it.
Does it make sense?
Are you suggesting that user applications should manage pino and thread-stream versions independently while making sure that pino version X is compatible with thread-stream version Y?
Do you think it's a big concern to add contextual information to the worker?

My concern is adding more features to maintain.
Are you saying you want to modify the pino-socket code to send a message through a message channel?

My concern is adding more features to maintain.
Are you saying you want to modify the pino-socket code to send a message through a message channel?

Yes, but it's not really a new feature, it's an existing feature that does not work when the transport is executed as a worker (through thread-stream).
Currently, pino transports such as pino-elasticsearch or pino-socket emit events on the stream but when they are executed as a worker it's not possible to listen to these events (see https://github.com/pinojs/thread-stream/issues/97).
With the following code, you can listen to the socketError if you are using thread-stream or not:
// transport
outputStream.emit('socketError', error)
if (parentPort) {
  parentPort.postMessage({ code: 'EVENT', name: 'socketError', args: [error] })
}

// application
const socketStream = pino.transport({
  target: "pino-socket",
  options: {
    address: tcpAddress,
    port: tcpPort,
    mode: "tcp",
    reconnect: true,
  }
})
// works even if socketStream is a ThreadStream
socketStream.on('socketError', (error) => {
  // do something!
})

Ideally, it should be transparent but as far as I know it's not possible to listen to events from another thread?


Move to github.com/openark/orchestrator: update code

This repository recently moved from http://github.com/github/orchestrator to http://github.com/openark/orchestrator
Since golang uses internet paths in source code, the move implies changes to source code, build files, docker files, etc.
This PR switches all source, scripts, resources and documentation to indicate the new path.

Sheesh. With golang source code change, also comes gofmt, which reorders import lines alphabetically.


A "0:" prefix is added to the generated debian package

Checking with dpkg, it seems the version ("0:1.11.0") shown inside the debian package is not the same as version ("1.11.0") shown in name:
$ dpkg -I spicedb_1.11.0_linux_amd64.deb
 new Debian package, version 2.0.
 size 15748266 bytes: control archive=419 bytes.
       1 bytes,     0 lines      conffiles
     292 bytes,     9 lines      control
      52 bytes,     1 lines      md5sums
 Package: spicedb
 Version: 0:1.11.0
 Section:
 Priority: optional
 Architecture: amd64
 Maintainer: authzed<EMAIL_ADDRESS> Installed-Size: 49600
 Homepage: https://spicedb.io
 Description: SpiceDB is a Zanzibar-inspired database that stores, computes, and validates application permissions.

The 0: is supposed to be the epoch.
Correct my if I am wrong, but I believe this is the best practice for Debian packages.


Download link on https://bagisto.com/en/download/ not working

Bug report
Download link on https://bagisto.com/en/download/ not working
Tried to download the installation zip but the link is not dowing anything.
Issue Description
I tried to download the installation archive and the link didn't wasn't triggering a download, I then inspected the link and the href = javascript:void(0) which I am assuming is a bug.

Preconditions
1. No prior installation
2. Mac OS
3. Chrome Browser

Steps to reproduce
1. Visit https://bagisto.com/en/download/
2. Click download.

Expected result
Should download the bagisto zip
Actual result
No download started.

Hi @dvagere thank you for bringing this to our attention, we are investigating the cause of this issue and will provide feedback once it is resolved.

Hi @dvagere thank you for bringing this to our attention, we are investigating the cause of this issue and will provide feedback once it is resolved.

@dvagere the issue should be resolved.

@dvagere the issue should be resolved.


getUniqueId always returns unknown

In my react app I've added react-native and also react-native-device-info
But I can't build I got a message that react-native is required and no module found
than I added react-native-web and I can build, but if I call DeviceInfo.getUniqueId on in a windows edge browser I always get unknown as the device Id.
What is going wrong or in other words what could the reason ?

Hi @JoergTiedemann if you look at the API Table, you would see that getUniqueId() is not supported in Web, hence you might be getting it as unknown

Method
Return Type
iOS
Android
Windows
Web

getUniqueId()
Promise
✅
✅
✅
❌

oh sorry
I didn't see the column Web just ios Android Windows
but this means it will not work in a react web app under ios safari ?
Is there any other way to get a unique device id in a react web site ?


Field select returns single value when graphql expects iterable value

Hello,
this issue is a placeholder for the PR.
Issue:
When using the prime-field-select, having a single value set against the field throws an error in GraphQL. Expected Iterable, but did not find one for field TestContentType.testSelect. However, when setting multiple values the resolve method returns correctly; an array of results.
Solution
Return an array containing the single value.
P.S.
Thank you for a TS flavoured graphql cms, lovely work <3.

Fantastic my friend!

I'm very sorry but I missed updating the return type to match the resolver.


How to pass command line arguments to the script?

Is there a way to pass command line arguments when running with RunCode or RunFile?

I added support to passing argument to RunCode, you can see an example of how I'm using it here https://github.com/CRAG666/code_runner.nvim/pull/43

@sigmaSd  thanks place read. @skamsie The ISSUE closes if your problem is solved


Feature Request - Make "Loot Generator" generator a separate module

Your "Loot generator" promises very well, is it possible to make it a separate module to make it work with other systems besides pf2 for example D&D5th ?

This is technically possible I suppose, but it's very system specific right now. I can keep it in mind and maybe try to write it in a way that will be easily adaptable. It would require that 5E has loot tables available.

Well, I'll leave this open as a reminder issue actually.


Inappropriate warning message on IPTT results form

To reproduce:

open any IPTT (recent or TvA)
open any indicator setup form (gear wheel) but do not save changes (click "x" or "cancel")
open any results ~form~ table
close that results ~form~ table (x in top right)
behold the nonsensical pNotify warning message:

I'm unable to reproduce this error.


fix: Remove environment tests from PR checks

Environment tests (e.g. App Engine or Kubernetes) should be removed from PR checks and used only in daily tests.
It appears consuming lot of resources and in many cases fails due to resource exhausted error.

Currently environment tests have already removed from the presubmit process:
https://critique.corp.google.com/cl/533460163
Closing the issue as this has been resolved.


Fix ImportError after setup install

I can't reproduce a ImportError.  Can you give me more details on how this occurs?


Bad 'vo' locale translations

In angular-locale_vo.js (and also ...vo-001.js), the names of months are incorrect:
"MONTH": [
  "janul",
  "febul",
  "m\u00e4zil",
  "prilul",
  "mayul",
  "yunul",
  "yulul",
  "gustul",
  "setul",
  "tobul",
  "novul",
  "dekul"
],

janul should be yanul and mäzil should be mäzul.
You can check https://pt.wiktionary.org/wiki/Categoria:Mês_(Volapuque) for all months.
Thanks.

@malafaya we are talking about Volapük language, right?
In fact we are pulling those translations from the CLDR repository (hopping through the closure library so this will have to be corrected upstream.

OK, thank you.
I'll try to remember that for the next CLDR review.

I'm curious, why does you app support Volapük? Even among constructed languages this one is quite exotic. ;)

I'm not using Volapük in my apps. I'm just starting with AngularJS. I happen to be a (weak) Volapük enthusiast so I was intrigued to see Volapük was supported. Having seen the mistakes, I thought it was my obligation to try and correct them (if I don't who will?) :)) .

Volapük was moved at the CLDR from common to seed, this implies that there is a high chance that it will just get removed from the closure library (and then from Angular). With this info, I think there are not a lot of reasons on why to keep this issue open

Just in case, here is the relevant information http://unicode.org/cldr/trac/changeset/11278/trunk/common


Add permissions for CodeBuild to sync objects to S3 (such as deploying static assets) in pipeline

When deploying applications that have static assets, it is typical to do a build and s3 sync during the CodeBuild phase of the Pipeline.
A permissions set for the CodeBuild Service Role should restrict s3 sync capabilities to just buckets and paths designated for the application:

          # We have 4 permissions sets that will allow us to copy objects (such as static assets) over to S3.

          - Sid: "AllowListBuckets"
            Effect: Allow
            Action:
            - s3:ListBucket
            Resource:
            - !Sub "arn:${AWS::Partition}:s3:::*"

          # General buckets for many application projects with paths devoted to applications
          - Sid: CopyAssetsToS3DuringBuildByPath
            Action:
            - s3:PutObject
            - s3:Get*
            - s3:List*
            - s3:DeleteObject
            Effect: Allow
            Resource:
            - !Sub "arn:${AWS::Partition}:s3:::*/${Prefix}-${ProjectId}/${StageId}/*"
            - !Sub "arn:${AWS::Partition}:s3:::*/${Prefix}-${ProjectId}-${StageId}/*"
            - !Sub "arn:${AWS::Partition}:s3:::*/${Prefix}/${ProjectId}/${StageId}/*"

          # A bucket devoted to the application project shared among all deployments of the application
          - Sid: CopyAssetsToS3DuringBuildByBucketApplicationTag
            Action:
            - s3:PutObject
            - s3:Get*
            - s3:List*
            - s3:DeleteObject
            Effect: Allow
            Resource: !Join
            - ""
            - - !Sub "arn:${AWS::Partition}:s3:::"
              - !If [UseS3BucketNameOrgPrefix, !Sub "${S3BucketNameOrgPrefix}-", "" ]
              - !Sub "${Prefix}-${ProjectId}-*/${StageId}/*"

          # A bucket devoted to the specific application deployment
          - Sid: CopyAssetsToS3DuringBuildByBucketApplicationDeploymentTag
            Action:
            - s3:PutObject
            - s3:Get*
            - s3:List*
            - s3:DeleteObject
            Effect: Allow
            Resource: !Join
            - ""
            - - !Sub "arn:${AWS::Partition}:s3:::"
              - !If [UseS3BucketNameOrgPrefix, !Sub "${S3BucketNameOrgPrefix}-", "" ]
              - !Sub "${Prefix}-${ProjectId}-${StageId}-*/*"

This will be available in the next release


Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage remained the same at 42.023%

Files with Coverage Reduction
New Missed Lines
%

extensions/notebook/src/dialog/configurePython/configurePathPage.ts
1
57.02%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
28600

Relevant Lines:
63211

💛  - Coveralls

@chlafreniere could you please confirm this looks safe for the ADS notebook implementation?

This one also looks to be safe. Thanks @kburtram.


Charge Limit not preserved after reboot

When using framework_tool to set a charge limit it is not preserved after reboot.
After rebooting the charge limit is always 100%.
I am running it on a Framework 13 AMD and Fedora 39 Silverblue with these kernel patches

As a temporary workaround until an option to save the configuration is added, I added the following to my /etc/rc.local file:
cat /etc/rc.local
#!/bin/sh -e

# By default this script does nothing.

# Set the Framework charge limit to 90%
/usr/local/bin/framework_tool --charge-limit 90

exit 0

This works on Linux Mint, at least.

I debugged this and the reason is that the BIOS overwrites your setting on every boot.
You can go into the BIOS settings to make it persistent.
We're investigating how to best fix this.

It needs to write its update to the bios value. Any other route is just a workaround to this bug.

I feel it's a https://xkcd.com/1172/ case, cause I like that it sets the value only temporarily, so I can set the limit to 80% in the BIOS and upgrade it to 100% only when I'm in a long travel. So if changed, please make it so writing to BIOS is only optional.


Discuss about web-client hosting because of Netlify performance

As mentioned on the MVP Standup - 27/04/2020:
Netlify doesn't have the stellar performance they advertise unless we upgrade to the Enterprise CDN plan which is expensive.
@sabind  suggested that we should discuss other alternatives such as Firebase, Google CDN or Cloudflare.
Because Netlify has the amazing "deploy preview" feature on pull requests we also mentioned we could use Netlify solely for that purpose while using a more performant environment for the production deployment.

ZenHub Information
This information is updated automatically. To modify it, please use ZenHub.

My call would be to keep netlify as the dev environment, and move staging and prod to Firebase as we're already using the product for other stuff. I don't think we should have yet one more different provider though.
My 2cts.

My call would be to keep netlify as the dev environment, and move staging and prod to Firebase as we're already using the product for other stuff. I don't think we should have yet one more different provider though.
My 2cts.

+1 Firebase is actually the Google CDN by default.

We're allready using firebase and we have GCP partially funded. I think firebase and really anything GCP related at this point should be the primary preference when implementing new services. A totally free option could also be Github pages as well.
FYI; Firebase hosting will ALWAYS be cheaper than going the plain old gcp bucket, cdn, LB setup.

I agree, firebase hosting already provides the CDN set up for us and we would be billed along with the rest of the GCP Project. so we could make use of GCP Credits if we get any.
But another point is that Netlify could have better performance than Firebase Hosting when we use their CDNs but the difference isn't a lot.
I was initially told by @jpmarques66 that we had some credits on Netlify if we could make use of those credits to get the CDN, then Netlify itself could be a better option, otherwise, I think the best choice could be Firebase Hosting itself

I'd only recommend firebase due to the ease of deployment (dev, staging, prod) and configuration using reserved urls.
I think using netlify for PR testing is critical though and keeping it would be very helpful. Can we come to a consensus here? I'd like to configure the environments and deployments sooner that later so we can start end to end testing :)

Closing as we settled for Firebase hosting in the end :)


Tests are not stable

These errors can occur randomly when running DslRandomPlayTest:

java.lang.IllegalStateException: Timeout waiting for new message

java.lang.IllegalStateException: Game was not started correctly: LiarsDice with 16 players

There are mostly two different errors that can happen:

Game was not started correctly

I have tried to workaround this problem by adding a repeat(5) that checks if it's null and if so waits 1 second each time.

Actions available: 0 for player 0 move perform STEAL-5

This has been shown to happen when testing a six-player game of Coup, where player 0 tried to perform STEAL-5 directly after performing FOREIGN_AID.
No one else got the chance to block the FOREIGN_AID, these two moves happened directly after each other and therefore it's natural that player 0 was not allowed to do STEAL-5.

Tests seems to have stabilized with the recent changes


error in assign_cate

Hi
Im applying classifier for query data from the tutorial and I got this error
system.time(crACL <- scn_predict(class_info[['cnProc']], expQuery, nrand = 50))
stQuery <- assign_cate(classRes = crACL, sampTab = stQuery, cThresh = 0.5)
Error in data.frame(..., check.names = FALSE) :
arguments imply differing number of rows: 49471, 49521
I have 49471 cells and I saw that in crACL matrix the number of columns are 49521 which the last 50 are rand. Please advise how I should assign the cells based on score.
Thank you

so if you were to have the earlier function to be crACL <- scn_predict(class_info[['cnProc']], expQuery, nrand = 0) then when assign_cate() is called, you won't have the cell number difference. Because most people dont find assigning categories to randomly generated cells useful. Alternatively, you can also subset out only the original cells from the SCN classification matrix object (crACL).

Thank you so much for your prompt reply. Now its working fine


Yii2 URL Management - issue in passing key-value pairs in URL

I am upgrading my website from Yii 1.1 to Yii2. In the older site using Yii 1.1, the url can be given as
http://example.com/index.php/controller_name/action_name/queryString/123
But in Yii2 I have to change this request to
http://example.com/index.php/controller_name/action_name?queryString=123

in order to make it work, otherwise I get a 404 Not Found error.
I already know that this feature has been removed in Yii2 Github issue 6866, but since the older site heavily uses this particular feature, I would like to know if there is any workaround, without changing each individual URL in the existing website.
Also asked on Stackoverflow Yii2 URL Management - issue in passing key-value pairs in URL
Thanks

see http://stackoverflow.com/questions/39723340/yii2-url-management-issue-in-passing-key-value-pairs-in-url#comment66744532_39723340


updating autogen examples

Round two! @yuvipanda

also can you make me an admin of this repo so that I can do integrations w/ RTD etc?


add missing argument 'configure'

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks @Eraac!


Cant build on go 1.19.2

Bug Report

SDK version latest

output of go version
go version go1.19.2 linux/amd64

What happened?
I follow this instructions
https://learn.microsoft.com/en-us/graph/tutorials/go?view=graph-rest-1.0&tabs=aad&tutorial-step=2

and i have error: Build constraints exclude all the Go files in<EMAIL_ADDRESS>

What did you expect or want to happen?
no errors

How can we reproduce it?
just follow this instructions
https://learn.microsoft.com/en-us/graph/tutorials/go?view=graph-rest-1.0&tabs=aad&tutorial-step=2

Anything we should know about your environment.
Ubuntu 20.04
Go 1.19.2

It would appear that the build is using a version of Go predating 1.18.  Our build constraints are for Go 1.18+ (example). We do build with 1.19 in our CI system as well.

It would appear that the build is using a version of Go predating 1.18. Our build constraints are for Go 1.18+ (example). We do build with 1.19 in our CI system as well.

How it could be?
output of go version
go version go1.19.2 linux/amd64

Does it repro from the command line too, or just in GoLand?  I can build azcore locally so I'm at a bit of a loss.
PS D:\git\Azure\azure-sdk-for-go\sdk\azcore> git checkout sdk/azcore/v1.1.4
Note: switching to 'sdk/azcore/v1.1.4'.
...
HEAD is now at ca5ebc8601 Prepare azcore v1.1.4 for release (#19250)
PS D:\git\Azure\azure-sdk-for-go\sdk\azcore> go build ./...
PS D:\git\Azure\azure-sdk-for-go\sdk\azcore>

Does it repro from the command line too, or just in GoLand? I can build azcore locally so I'm at a bit of a loss.
PS D:\git\Azure\azure-sdk-for-go\sdk\azcore> git checkout sdk/azcore/v1.1.4
Note: switching to 'sdk/azcore/v1.1.4'.
...
HEAD is now at ca5ebc8601 Prepare azcore v1.1.4 for release (#19250)
PS D:\git\Azure\azure-sdk-for-go\sdk\azcore> go version
go version go1.19.2 windows/amd64
PS D:\git\Azure\azure-sdk-for-go\sdk\azcore> go build ./...
PS D:\git\Azure\azure-sdk-for-go\sdk\azcore>

you are right.
i re-create project without GoLand, using only midnight commander text editor
and project run and build succesfull,
so problem under GoLand
thanks, I'm sorry for the trouble

No worries, hope you find the solution (I haven't used GoLand so I have no clue).

I found why it happend.
I use GoLand 2021.3.4 + manually installed Go 1.9.2 (without GoLand),
After upgrade to 2022.1.4 problem was solved.
i think it is because GoLand 2021.3.4 - max supported go version 1.17.
and 2022.1.4 - max supported go version 1.18.

Thanks for the details, maybe this will help others that hit the same issue.


refactor: introduce listener go module

Follow Up in Pipelines: https://github.com/kyma-project/test-infra/pull/5935


Reorganize the codebase to make it more scalable

It seems currently all the code is based mainly on two files encrypt_func and decrypt_func. I think it will get harder to add new features to this project along the line in this architecture.
I was thinking we should make sort of a hierarchy of files following the categories.
For example, say there will be a folder "crypto" and inside there will be folders for cryptographic algorithms like aes, caesar's, des, rsa etc. And every folder will contain two functions encrypt and decrypt that correspond to the crypto algorithm.

If you feel like it'll be a welcome change, please assigb me this issue


feat/configure-method add: Crisp configure method

The config-plug in expo, even if the websiteId parameter was set in app.json file was not working to set it for Android version.
"expo": {
  {...}
  "plugins":  [
      [
          "react-native-crisp-chat-sdk",
          {
              "websiteId": "MY_WEBSITE_ID"
          }
      ],
  ]
}

As a workaround, I added the configure function from Crisp, already existing on other SDK, in order to be able to do it manually if needed.

Hello :)
There is a similar PR right there https://github.com/walterholohan/react-native-crisp-chat-sdk/pull/120
We will merge next week

Hey there!
There is now a new configure method, so there is no need to use expo anymore :)


Confusing cmake message when compiler does not support thread_local

When the compiler doesn't support thread_local, as on OSX with XCode < 8.0, running cmake reports that CUDA isn't being used with the following messages:
-- Found CUDA: /usr/local/cuda (found suitable version "7.5", minimum required is "7.5")
-- *** cuDNN V5.0 OR GREATER NOT FOUND.  DLIB WILL NOT USE CUDA. ***
-- *** If you have cuDNN then set CMAKE_PREFIX_PATH to include cuDNN's folder.
-- *** Dlib CUDA support requires C++11 but your compiler doesn't support it. ***

I do in fact have cuDNN installed, and the actual issue is that the test build failed due to my compiler not supporting thread_local, while it does support all the other necessary C++11 features (making the C++11 support error very confusing too). It took me a long time to get to the bottom of this, so I would suggest making the warning friendlier, e.g. by indicating that thread_local support is the likely problem.

thread_local is part of C++11, so your compiler doesn't support C++11.
I'll change the cuDNN message bit though.

The warning messages should be better now.


For file format QR code.

I made a simple wrapper to handle the file format QR code:
def _decode(self, filename):
    try:
        # the origin code
        cmd = ' '.join([self.command, self.lib_path, 'file:///' + filename, '--multi'])
        (stdout, _) = subprocess.Popen(cmd,
                                        stdout=subprocess.PIPE,
                                        universal_newlines=True,
                                        shell=True).communicate()
        lines = stdout.splitlines()
        separator_idx = [
            i for i in range(len(lines)) if lines[i][:4] == 'file'
        ] + [len(lines)]

        result = [
            self._parse_single(lines[separator_idx[i]:separator_idx[i + 1]])
            for i in range(len(separator_idx) - 1)
        ]
    except:
        # my add-in code
        cmd = ' '.join([self.command, self.lib_path, 'file:///' + filename, '--multi'])
        (lines, _) = subprocess.Popen(cmd,
                                    stdout=subprocess.PIPE,
                                    stderr=subprocess.PIPE).communicate()
        result = lines[lines.index(b'Raw result:\n')+len(b'Raw result:\n'):lines.index(b'\nFound')]
    return result

This will return the 'Raw result' bytes while the result can't be decoded with the default character set.

You can try this QR code, the decode result should be a file in bytes' format.

With the circumstances that the decode result is not sentences(or in other words, the decode result can't be transform to the system default character set(gbk/utf-8/...)), the program will exit with error. In my opinion, with this situation,  it's better to output the raw bytes result, and for professional, they can handle the raw bytes result themselves.

Thank you for your reply. I will look into it.

I change everything into bytes. Please check the latest version.

thank you for update!


Covid-19 Detection Model

I am a gssoc'21 participant.I would like to add a Covid-19 detection model to the project.
COVID-19 Chest X-ray Image Dataset: Here

@Anas-Issa A previous issue has already been created.
Please close the issue.
For open issues look for the label Up for Grab.

OK


Fix tests and update compats

Codecov Report

Merging #1031 (3fc79b6) into main (33c0f85) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 3fc79b6 differs from pull request most recent head d216078. Consider uploading reports for the commit d216078 to get more accurate results

@@           Coverage Diff           @@
##             main    #1031   +/-   ##
=======================================
  Coverage   66.66%   66.66%
=======================================
  Files          96       96
  Lines        9917     9917
=======================================
  Hits         6611     6611
  Misses       3306     3306

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


[WIP] Zone wizard

Prev https://github.com/apache/cloudstack-primate/pull/1/

@utchoang  cc @svenvogel this week I may not be able to work on this, can you pick the work to complete the zone deployment wizard. You may start from scratch or use this PR as a reference or extend this. The only requirements are:

Keep the wizard in a pop-over
Add support for both basic and advanced, ideally we would prefer the similar kind of layout/steps like in the old UI's wizard

@utchoang cc @svenvogel - as discussed in today's call, please finish the minor issues/missing features and then work on the zone deployment wizard. One advice is that you may start afresh with the steps/component but still use this implementation as a reference. Thanks.

@utchoang can you send a new PR so we can track progress? Thanks.

Closing per https://github.com/apache/cloudstack-primate/pull/167


Incorporate changes from robwi repo

Additions have been made to this module in a separate repo:
https://github.com/robwi/xTimeZone
HELP WANTED
If someone would like to review this work and incorporate changes back to the resource kit as a new PR, that would be a great project.

Hi @mgreenegit - this looks like an old version of xTimeZone resource already in the resource kit. I did a scan through and couldn't determine the new features- although I could be being completely blind and missing the obvious (not the first time :grin:)

Thanks @PlagueHO for taking the time to review the module..  I will close out the issue and communicate this back to @robwi so he can close out the repo.  This is a really big help!


loss weights clarification

Thank you for your amazing work!
Could you please guide how weights of losses (lambdas) were calculated? For example, in this config. I also noticed they differ from DINO, for example, here.

These weights are set with grid search. For example, class weight is set larger compared to DINO because mask losses will dilute the original class loss.


Automated install

Make automated scripts

Most of the Cassandra / Anaconda Ansible scripts have been created.  There are a few issues relating to how the template config files are propagated.

Completely automated Ansible scripts now created.  Installation tested on CentOS and Ubuntu.


webclient: Remove an extra slash for proxy

Summary
webclient: Remove an extra slash for proxy
Impact
Testing
tested with my local app + squid

xtensa ci failure looks unrelated.
https://github.com/apache/incubator-nuttx/pull/6352
https://github.com/bytecodealliance/wasm-micro-runtime/pull/1200

I restarted the ci job

I restarted the ci job

no point to restart until
a. it's fixed in wamr main
https://github.com/bytecodealliance/wasm-micro-runtime/pull/1200
b. or, we stop using wamr main
https://github.com/apache/incubator-nuttx/pull/6352
https://github.com/apache/incubator-nuttx-apps/pull/1180


Concoctions Contract

Added a new cli command checkconcoctions.
Modified compareTo and equals for concoctions so that concoctions that make the same item are not considered the same concoction.
Needs some real world testing.

Curiously the checkconcoctions works when not logged in but gets an array index out of bounds error on two logged in characters.  Pondering.

Index was a size issue.  LockableListModel size() is the size of the list.  getSize() is the size of the visible elements in the list.


'UnityWebRequestAsyncOperation' does not contain a definition for 'GetAwaiter' and no accessible extension method 'GetAwaiter'

When I opened the demo project I get three errors from the HttpHandler... here are all three:
1.Assets\graphQl-client\Scripts\Core\HttpHandler.cs(31,17): error CS1061: 'UnityWebRequestAsyncOperation' does not contain a definition for 'GetAwaiter' and no accessible extension method 'GetAwaiter' accepting a first argument of type 'UnityWebRequestAsyncOperation' could be found (are you missing a using directive or an assembly reference?)
2.Assets\graphQl-client\Scripts\Core\HttpHandler.cs(53,5): error CS1061: 'UnityWebRequestAsyncOperation' does not contain a definition for 'GetAwaiter' and no accessible extension method 'GetAwaiter' accepting a first argument of type 'UnityWebRequestAsyncOperation' could be found (are you missing a using directive or an assembly reference?)
3.Assets\graphQl-client\Scripts\Core\HttpHandler.cs(75,17): error CS1061: 'UnityWebRequestAsyncOperation' does not contain a definition for 'GetAwaiter' and no accessible extension method 'GetAwaiter' accepting a first argument of type 'UnityWebRequestAsyncOperation' could be found (are you missing a using directive or an assembly reference?)

I have the same problem, any solution?

Yea, Actually, I’m working on it now. Should be done later today! I’ve got one solution already, but I’ve got to refine it. How soon do you need it?

What version of unity are you running?

I have the same problem, any solution?

Alright, here was my solution:
First, I just went and cloned the repo and then opened it in unity and didn't have that problem everything just worked out of the box. when I tried to import it into an existing project, that's when I had this problem...
However, if you wish the fix the current unity project, here is a really janky solution:
Replace the class 'HttpHandler' with this:
`public class HttpHandler
{
	public static async Task<UnityWebRequest> PostAsync(string url, string details, string authToken = null){
        string jsonData = JsonConvert.SerializeObject(new{query = details});
        byte[] postData = Encoding.ASCII.GetBytes(jsonData);
        UnityWebRequest request = UnityWebRequest.Post(url, UnityWebRequest.kHttpVerbPOST);
        request.uploadHandler = new UploadHandlerRaw(postData);
        request.SetRequestHeader("Content-Type", "application/json");
        if (!String.IsNullOrEmpty(authToken))
            request.SetRequestHeader("Authorization", "Bearer " + authToken);

        OnRequestBegin  requestBegin = new OnRequestBegin();
        requestBegin.FireEvent();

        try{
            request.SendWebRequest();
            await Task.Delay(10000); //this is the janky fix.... idk why request.SendWebRequest() isn't awaitable
        }
        catch(Exception e){
            Debug.Log("Testing exceptions");
            OnRequestEnded requestFailed = new OnRequestEnded(e);
            requestFailed.FireEvent();
        }
		Debug.Log(request.downloadHandler.text);

        OnRequestEnded requestSucceeded = new OnRequestEnded(request.downloadHandler.text);
        requestSucceeded.FireEvent();
        return request;
    }

	public static async Task<UnityWebRequest> PostAsync(UnityWebRequest request, string details){
		string jsonData = JsonConvert.SerializeObject(new{query = details});
		byte[] postData = Encoding.ASCII.GetBytes(jsonData);
		request.uploadHandler = new UploadHandlerRaw(postData);
		OnRequestBegin  requestBegin = new OnRequestBegin();
		requestBegin.FireEvent();

		try{
			request.SendWebRequest();
			await Task.Delay(10000);
		}
		catch(Exception e){
			Debug.Log("Testing exceptions");
			OnRequestEnded requestFailed = new OnRequestEnded(e);
			requestFailed.FireEvent();
		}
		Debug.Log(request.downloadHandler.text);

		OnRequestEnded requestSucceeded = new OnRequestEnded(request.downloadHandler.text);
		requestSucceeded.FireEvent();
		return request;
	}

    public static async Task<UnityWebRequest> GetAsync(string url, string authToken = null){
        UnityWebRequest request = UnityWebRequest.Get(url);
        if (!String.IsNullOrEmpty(authToken))
            request.SetRequestHeader("Authorization", "Bearer " + authToken);
        OnRequestBegin  requestBegin = new OnRequestBegin();
        requestBegin.FireEvent();
        try{
            request.SendWebRequest();
            await Task.Delay(10000);
        }
        catch(Exception e){
            Debug.Log("Testing exceptions");
            OnRequestEnded requestEnded = new OnRequestEnded(e);
            requestEnded.FireEvent();
        }
        Debug.Log(request.downloadHandler.text);
        OnRequestEnded requestSucceeded = new OnRequestEnded(request.downloadHandler.text);
        requestSucceeded.FireEvent();
        return request;
    }

    #region Websocket

    //Use this to subscribe to a graphql endpoint
	public static async Task<ClientWebSocket> WebsocketConnect(string subscriptionUrl, string details, string authToken = null, string socketId = "1", string protocol = "graphql-ws"){
		string subUrl = subscriptionUrl.Replace("http", "ws");
		string id = socketId;
		ClientWebSocket cws = new ClientWebSocket();
		cws.Options.AddSubProtocol(protocol);
		if (!String.IsNullOrEmpty(authToken))
			cws.Options.SetRequestHeader("Authorization", "Bearer " + authToken);
		Uri u = new Uri(subUrl);
		try{
			await cws.ConnectAsync(u, CancellationToken.None);
			if (cws.State == WebSocketState.Open)
				Debug.Log("connected");
			await WebsocketInit(cws);
			await WebsocketSend(cws, id, details);
		}
		catch (Exception e){
			Debug.Log("woe " + e.Message);
		}

		return cws;
	}

	public static async Task<ClientWebSocket> WebsocketConnect(ClientWebSocket cws, string subscriptionUrl, string details, string socketId = "1"){
		string subUrl = subscriptionUrl.Replace("http", "ws");
		string id = socketId;
		Uri u = new Uri(subUrl);
		try{
			await cws.ConnectAsync(u, CancellationToken.None);
			if (cws.State == WebSocketState.Open)
				Debug.Log("connected");
			await WebsocketInit(cws);
			await WebsocketSend(cws, id, details);
		}
		catch (Exception e){
			Debug.Log("woe " + e.Message);
		}

		return cws;
	}

	static async Task WebsocketInit(ClientWebSocket cws){
		string jsonData = "{\"type\":\"connection_init\"}";
		ArraySegment<byte> b = new ArraySegment<byte>(Encoding.ASCII.GetBytes(jsonData));
		await cws.SendAsync(b, WebSocketMessageType.Text, true, CancellationToken.None);
		GetWsReturn(cws);
	}

	static async Task WebsocketSend(ClientWebSocket cws, string id, string details){
		string jsonData = JsonConvert.SerializeObject(new {id = $"{id}",  type = "start", payload = new{query = details}});
		ArraySegment<byte> b = new ArraySegment<byte>(Encoding.ASCII.GetBytes(jsonData));
		await cws.SendAsync(b, WebSocketMessageType.Text, true, CancellationToken.None);
	}

	//Call GetWsReturn to wait for a message from a websocket. GetWsReturn has to be called for each message
	static async void GetWsReturn(ClientWebSocket cws){
		ArraySegment<byte> buf = new ArraySegment<byte>(new byte[1024]);
		buf = WebSocket.CreateClientBuffer(1024, 1024);
		WebSocketReceiveResult r;
		string result = "";
		do{
			r = await cws.ReceiveAsync(buf, CancellationToken.None);
			result += Encoding.UTF8.GetString(buf.Array ?? throw new ApplicationException("Buf = null"), buf.Offset,
				r.Count);
		} while (!r.EndOfMessage);

		if (String.IsNullOrEmpty(result))
			return;
		JObject obj = new JObject();
		try{
			obj = JObject.Parse(result);
		}
		catch (JsonReaderException e){
			throw new ApplicationException(e.Message);
		}

		string subType = (string) obj["type"];
		switch (subType){
			case "connection_ack":
			{
				Debug.Log("init_success, the handshake is complete");
				OnSubscriptionHandshakeComplete subscriptionHandshakeComplete =
					new OnSubscriptionHandshakeComplete();
				subscriptionHandshakeComplete.FireEvent();
				GetWsReturn(cws);
				break;
			}
			case "error":
			{
				throw new ApplicationException("The handshake failed. Error: " + result);
			}
			case "connection_error":
			{
				throw new ApplicationException("The handshake failed. Error: " + result);
			}
			case "data":
			{
				OnSubscriptionDataReceived subscriptionDataReceived = new OnSubscriptionDataReceived(result);
				subscriptionDataReceived.FireEvent();
				GetWsReturn(cws);
				break;
			}
			case "ka":
			{
				GetWsReturn(cws);
				break;
			}
			case "subscription_fail":
			{
				throw new ApplicationException("The subscription data failed");
			}

		}
	}

	public static async Task WebsocketDisconnect(ClientWebSocket cws, string socketId = "1"){
		string jsonData = $"{{\"type\":\"stop\",\"id\":\"{socketId}\"}}";
		ArraySegment<byte> b = new ArraySegment<byte>(Encoding.ASCII.GetBytes(jsonData));
		await cws.SendAsync(b, WebSocketMessageType.Text, true, CancellationToken.None);
		await cws.CloseAsync(WebSocketCloseStatus.NormalClosure, "Closed", CancellationToken.None);
		OnSubscriptionCanceled subscriptionCanceled = new OnSubscriptionCanceled();
		subscriptionCanceled.FireEvent();
	}

	#endregion

	#region Utility

	public static string FormatJson(string json)
    {
        var parsedJson = JsonConvert.DeserializeObject(json);
        return JsonConvert.SerializeObject(parsedJson, Formatting.Indented);
    }

	#endregion
}`

I wouldn't recommend this, though... instead, I would just try and clone the repo and then open it like you would a normal unity project instead of importing it like a package (that's what fixed it for me)

2021.3.7f1

can you send me the error?

These two:
Multiple precompiled assemblies with the same name Newtonsoft.Json.dll included on the current platform. Only one assembly with the same name is allowed per platform. (Assets/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.dll)
Multiple precompiled assemblies with the same name Newtonsoft.Json.dll included on the current platform. Only one assembly with the same name is allowed per platform<EMAIL_ADDRESS>

Oh yes, I got that as well at one point... go to:
Assets/JsonDotNet/Assemblies
you should see a bunch of files with different OS listed... delete the ones that arent yours though I'm not sure if it truly matters

If you got this error too, this is the solution that worked for me:
Why error?
Unity do not have native support to async await. If you check inside the repository folders, you'll notice it has a Plugin called AsyncAwaitUtil.
Solution
Before installing the graphQL client package, grab AsyncAwaitUtil from Unity asset store. You might need to change its deprecated WWW references for UnityWebRequest. Then, install graphQL client package. No more errors.

If you got this error too, this is the solution that worked for me: Why error? Unity do not have native support to async await. If you check inside the repository folders, you'll notice it has a Plugin called AsyncAwaitUtil. Solution Before installing the graphQL client package, grab AsyncAwaitUtil from Unity asset store. You might need to change its deprecated WWW references for UnityWebRequest. Then, install graphQL client package. No more errors.

https://assetstore.unity.com/packages/tools/integration/async-await-support-101056

Yea Actully I’m working on it now. Should be done later today! I’ve got one
solution already but I’ve got to refine it. How soon do you need it?
On Wed, Aug 17, 2022 at 11:11 AM Vladimir @.***> wrote:

I have the same problem, any solution?
—
Reply to this email directly, view it on GitHub
https://github.com/gazuntype/graphQL-client-unity/issues/41#issuecomment-1218143146,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUJCD2S7DXURMFBVZSJKLS3VZT6LJANCNFSM56GIDCFA
.
You are receiving this because you authored the thread.Message ID:
@.***>

I'm still getting this problem today. I think I fixed it by adding the following file, but I'm not sure if it's going to work everywhere. Seems like a priority fix.
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using UnityEngine.Networking;

public static class UnityWebRequestExtension
{
    public static TaskAwaiter<UnityWebRequest.Result> GetAwaiter(this UnityWebRequestAsyncOperation reqOp)
    {
        TaskCompletionSource<UnityWebRequest.Result> tsc = new();
        reqOp.completed += asyncOp => tsc.TrySetResult(reqOp.webRequest.result);

        if (reqOp.isDone)
            tsc.TrySetResult(reqOp.webRequest.result);

        return tsc.Task.GetAwaiter();
    }
}

I changed it to this but now I have a 405 error when try to introspect the scriptable object stuff in the pokemon
`		public static async Task PostAsync(string url, string details, string authToken = null){
string jsonData = JsonConvert.SerializeObject(new{query = details});
byte[] postData = Encoding.ASCII.GetBytes(jsonData);
UnityWebRequest request = UnityWebRequest.PostWwwForm(url, UnityWebRequest.kHttpVerbPOST);
request.uploadHandler = new UploadHandlerRaw(postData);
request.SetRequestHeader("Content-Type", "application/json");
if (!String.IsNullOrEmpty(authToken))
request.SetRequestHeader("Authorization", "Bearer " + authToken);
        OnRequestBegin  requestBegin = new OnRequestBegin();
        requestBegin.FireEvent();

        try{
            var asyncOperation = request.SendWebRequest();
            while (!asyncOperation.isDone) {
                await Task.Yield();
            }

            if (request.result == UnityWebRequest.Result.ProtocolError)
            {
                Debug.LogError("Error: " + request.error);
                OnRequestEnded requestEnded = new OnRequestEnded(request.error);
                requestEnded.FireEvent();
            }
            else
            {
                Debug.Log(request.downloadHandler.text);
                OnRequestEnded requestSucceeded = new OnRequestEnded(request.downloadHandler.text);
                requestSucceeded.FireEvent();
            }
        }
        catch(Exception e){
            Debug.Log("Testing exceptions");
            OnRequestEnded requestFailed = new OnRequestEnded(e);
            requestFailed.FireEvent();
        }

        return request;
    }`

I just got this issue and resolved it by copy the plugin folder in Assets then place it inside my Unity project Assets folder


Please add support for background mode.

Just like this one.
https://github.com/katzer/cordova-plugin-background-mode
It is a cool plugin for cordova, I wish we could have the same one in xamarin plugins.
Also, the https://github.com/katzer have several other good plugins.
Please make one or two happened in xamarin world~

Can you please post this idea over at http://www.github.com/xamarin/plugins thanks!