Google OAuth Error

Describe the bug
I'm trying to connect the app to a Google Merchant Centre to pull in product information, however I'm having issues with the Google OAuth. Here is the error I get:
"[GSI_LOGGER]: Failed to open popup window on url: https://accounts.google.com/o/oauth2/v2/auth?gsiwebsdk=3&client_id=801666740916-rconbghu7jnbshsq54g44ietejbum618.apps.googleusercontent.com&scope=openid profile email https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcontent&redirect_uri=storagerelay%3A%2F%2Fhttps%2Fzp1v56uxy8rdx5ypatb0ockcb9tr6a-oci3--5173--f565b097.local-credentialless.webcontainer-api.io%3Fid%3Dauth397621&prompt=select_account&response_type=token&include_granted_scopes=true&enable_granular_consent=true. Maybe blocked by the browser?"
at _.C (https://accounts.google.com/gsi/client:71:273)
at _.Gj (https://accounts.google.com/gsi/client:240:158)
at Us.requestAccessToken (https://accounts.google.com/gsi/client:358:215)
at /node_modules/.vite/deps/@react-oauth_google.js?v=968284e8:165:77
at handleLogin (/src/components/GoogleAuthButton.tsx:177:7)
at HTMLUnknownElement.callCallback2 (/node_modules/.vite/deps/chunk-M324AGAM.js?v=968284e8:3672:22)
at Object.invokeGuardedCallbackDev (/node_modules/.vite/deps/chunk-M324AGAM.js?v=968284e8:3697:24)
at invokeGuardedCallback (/node_modules/.vite/deps/chunk-M324AGAM.js?v=968284e8:37
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-19ryjb
Steps to reproduce
Click connect and login using my email but straight away I get this error,
Expected behavior
Click connect and login using my email, then to be able to select which Merchant Center account I want to use.
Screen Recording / Screenshot
No response
Platform
Browser name = Chrome
Full version = <IP_ADDRESS>
Major version = 130
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
performance.memory = {
  "totalJSHeapSize": 120036276,
  "usedJSHeapSize": 111503424,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Username = Caldev
Chat ID = 805effa10b7c

Additional context
No response

Unfortunately we don't have the resources to provide one-on-one engineering support for individual projects. At times, there are programming challenges that are too complex for the AI to solve an manual intervention is required. This page here has a number of insights on using Bolt most effectively while maximizing token efficiency.
The Google Authorization Docs may also be helpful.


🐛 migrate prettier clobbers .editorconfig indent width

Environment information
CLI:
  Version:                      1.9.2
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           windows

Environment:
  BIOME_LOG_PATH:               unset
  BIOME_LOG_PREFIX_NAME:        unset
  BIOME_CONFIG_PATH:            unset
  NO_COLOR:                     unset
  TERM:                         unset
  JS_RUNTIME_VERSION:           "v22.6.0"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "npm/10.8.3"

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 true

Workspace:
  Open Documents:               0

### What happened?

1. Set up a project with `indent_size=3` in `.editorconfig` and a `.prettierrc.json` with no `tabWidth` set.
2. `npx @biomejs/biome migrate prettier`
3. `npx @biomejs/biome format --write`

Observe that the indentation changes on all files and that `biome.json` has both `formatter.indentWidth` 2 and `formatter.useEditorconfig` true.

### Expected result

Indentation should not change.

I'm thinking that `formatter.indent_size` should be omitted from `biome.json`, not defaulted to 2, when absent from `prettier` config.

### Code of Conduct

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

Could you provide a reproduction repo?
npm create @biomejs/biome-reproduction

Could you provide a reproduction repo?
npm create @biomejs/biome-reproduction

https://github.com/rotu/biome-repro-1727746636823
To see the issue,
npx biome migrate prettier --write
npx biome format

I think we could not set the options that have the same default as Prettier. ident-size is one of this option. Also, we could set formatter.useEditorConfig to true when we migrate from Prettier.
Unfortunately we have some options that have not the same default as Prettier, notably indentStyle.
I see two possibilities:

Use the same defaults as Prettier from Biome 2.0
Read .editorconfig when biome migrate prettier is run to determine if some of these options must be set.

(2) seems to be the best choice to avoid bikeshedding.

we could set formatter.useEditorConfig to true when we migrate from Prettier.

We already do this.
https://github.com/biomejs/biome/blob/7e29f06930e977d5f2165260ca87c21f414cf62e/crates/biome_cli/src/execute/migrate/prettier.rs#L212-L214


Gradlew build failing

OS target (Android/iOS):
Android
Godot version:
3.02
Issue description:
c:\Users\Tamoor\Desktop\Godot_v3.0.2-stable_win64.exe\godot\platform\android\java> gradlew build

> Configure project :
The setTestClassesDir(File) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the setTestClassesDirs(FileCollection) method instead.
The getTestClassesDir() method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the getTestClassesDirs() method instead.
The ConfigurableReport.setDestination(Object) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the method ConfigurableReport.setDestination(File) instead.

> Task :processDebugManifest
C:\Users\Tamoor\Desktop\Godot_v3.0.2-stable_win64.exe\godot\platform\android\java\AndroidManifest.xml:42:9-44:72 Warning:
        Element meta-data#com.google.android.gms.version at AndroidManifest.xml:42:9-44:72 duplicated with element declared at AndroidManifest.xml:36:2-37:59

> Task :compileDebugJavaWithJavac
C:\Users\Tamoor\Desktop\Godot_v3.0.2-stable_win64.exe\godot\modules\godot_gpgs\android\gpgs\Client.java:155: error: cannot access zzo
        Dialog dialog = GooglePlayServicesUtil.getErrorDialog(connectionResult.getErrorCode(),
                                              ^
  class file for com.google.android.gms.common.zzo not found
C:\Users\Tamoor\Desktop\Godot_v3.0.2-stable_win64.exe\godot\modules\godot_gpgs\android\gpgs\PlayerInfo.java:120: error: cannot access zza
            return player.getLevelInfo().getCurrentLevel().getLevelNumber();
                                        ^
  class file for com.google.android.gms.common.internal.safeparcel.zza not found
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

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

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

BUILD FAILED in 10s
82 actionable tasks: 79 executed, 3 up-to-date

It seems you're using another Google module. The following lines:
  <meta-data android:name="com.google.android.gms.version"
    android:value="@integer/google_play_services_version" />

should appears just once among all your modules, search for it on your AndroidManifestChunk.xml modules files.

Hello,
I am using two modules, I removed the double entry for google_play_services version and I am still getting same error on gradlew build
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

> Configure project :
The setTestClassesDir(File) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the setTestClassesDirs(FileCollection) method instead.
The getTestClassesDir() method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the getTestClassesDirs() method instead.
The ConfigurableReport.setDestination(Object) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the method ConfigurableReport.setDestination(File) instead.

> Task :compileDebugJavaWithJavac
C:\Users\Tamoor\Desktop\Godot_v3.0.2-stable_win64.exe\godot\modules\godot_gpgs\android\gpgs\Client.java:155: error: cannot access zzo
        Dialog dialog = GooglePlayServicesUtil.getErrorDialog(connectionResult.getErrorCode(),
                                              ^
  class file for com.google.android.gms.common.zzo not found
C:\Users\Tamoor\Desktop\Godot_v3.0.2-stable_win64.exe\godot\modules\godot_gpgs\android\gpgs\PlayerInfo.java:120: error: cannot access zza
            return player.getLevelInfo().getCurrentLevel().getLevelNumber();
                                        ^
  class file for com.google.android.gms.common.internal.safeparcel.zza not found
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

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

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

BUILD FAILED in 1m 37s
82 actionable tasks: 79 executed, 3 up-to-date

My both AndroidManifestChunk.xml are as follows:
This modules:

	<activity android:name="com.google.android.gms.ads.AdActivity"
		android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>

Android Google Play Services one:
        <meta-data
            android:name="com.google.android.gms.games.APP_ID"
            android:value="\<PHONE_NUMBER>13" />
        <meta-data
                android:name="com.google.android.gms.version"
                android:value="@integer/google_play_services_version"/>
        <!-- Godot GPGS Section -->

How to fix this error? I think this is the main cause:
> Task :compileDebugJavaWithJavac
C:\Users\Tamoor\Desktop\Godot_v3.0.2-stable_win64.exe\godot\modules\godot_gpgs\android\gpgs\Client.java:155: error: cannot access zzo
        Dialog dialog = GooglePlayServicesUtil.getErrorDialog(connectionResult.getErrorCode(),
                                              ^
  class file for com.google.android.gms.common.zzo not found
C:\Users\Tamoor\Desktop\Godot_v3.0.2-stable_win64.exe\godot\modules\godot_gpgs\android\gpgs\PlayerInfo.java:120: error: cannot access zza
            return player.getLevelInfo().getCurrentLevel().getLevelNumber();
                                        ^
  class file for com.google.android.gms.common.internal.safeparcel.zza not found
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors

Please advise, regards.

Are you able to build the template with the Admob module only?

Try to set identical version of com.google.android.gms in config.py for both modules.
For an example:
env.android_add_dependency("compile 'com.google.android.gms:play-services-ads:15.0.0'")

I had the same problem and running this command  sudo update-alternatives --config java in my terminal, then choosing a version of java that has tools.jar fixed it. Although this will only work on Linux.


Separate increase rules into separate rule group with higher interval

This should especially make a difference on Prometheus CPU load.
Rather than evaluating these increase(...[4w]) every 30s we relax this interval depending on how long the SLO's time window is, such that within e.g. 2m over the 4w not toooo much will change.

Seems to work just fine on https://demo.pyrra.dev/ for the last almost day.
CPU time has also halved. :relaxed:


multiple=true  can not select  dropdown lists  in Safari Browser

[multiple=true]  can not select  dropdown lists  in Safari Browser

Click on text (letters) doesn't fire click event. Click on space before/after text in item fires event (and calls selectMatch)

Any updates on this issue?


Question regarding FieldAttributes::is_intro_virtual

Hi,
I'm currently trying to write some code based on the pdb2hpp example.
I'm having trouble detecting/reconstructing pure virtual methods correctly. It seems it's not possible to check for the pureintro (0x06) property only, like it's possible with the purevirt property (0x01):
https://github.com/willglynn/pdb/blob/7c35c3c82fe42a0aa505c0715d57f68ee93196fb/src/tpi/data.rs#L627
What's the reason behind this merge (between property 0x04 and 0x06)? Am I missing something?

This appears to be because CV_MTintro and CV_MTpureintro can both refer to an intro virtual function. In my opinion the problem appears to be that the is_pure_virtual function doesn't check both CV_MTpurevirt and CV_MTpureintro properties since they both can refer to a pure virtual function.

Oh okay, interesting ... Well, I'm not sure what the intent of the API is, I was hoping @jan-auer could clarify.
is_static, is_virtual and is_pure_virtual suggests that the intent is to let the user access the attributes separately, without abstracting/merging them.


details.photos[0].getUrl() is not a function

I am trying to get a photo url from the response.
this is my code:
const locationData = (state = initialState, action) => {
    switch (action.type) {
        case 'onChooseLocation':
            return { ...state,
                location: {
                    placeId: action.data.place_id,
                    name: action.details.name,
                    textAddress: action.details.formatted_address,
                    type: 'restaurant',
                    imageUrl:
                    action.details.photos[0].getUrl({ maxWidth: 100, maxHeight: 100 })
                } };
        default:
            return state;

    }
};

any suggestions on how to make it work?

I also need this feature.

Google does not return the image url directly from the api. See the Google Place Photos doc for more details.
In GooglePlacesAutocomplete:
      <GooglePlacesAutocomplete
        query={{
          key: GOOGLE_PLACES_API_KEY,
          language: 'en', // language of the results
        }}
        fetchDetails={true}
        onPress={(data, details) => console.log(details.photos[0].photo_reference)}
        onFail={error => alert(error)}

You would then make an API call to the Google API with the photo reference, your API key and the size requested and it will return the image.  Something like this:
const GOOGLE_PLACES_API_KEY = 'SOME_API_KEY'
const googlePhotoReference = 'RESULT_OF_details.photos[0].photo_reference'

fetch(`https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference=${googlePhotoReference}&key=GOOGLE_PLACES_API_KEY`)
  .then(response => response.json())
  .then(data => console.log(data));


Edit the model to add a diagram

@thomaskonrad reports:
The fact that I have to edit the model to add a diagram: That seems counter-intuitive to me. I'd put the diagrams into the edit view of the model, and only put metadata into the edit dialog.

Closing this as a Won't Do
The existing diagram edit/development flow is established in the Threat Dragon community, and it should not be changed unless there is a very good reason


Uncaught type error

Hi

I am receiving an uncaught type error.

I am also getting a memory leak error

I think some logging is active:

Yes, I unfortunately left a couple of console.logs in by mistake.  These will be removed in the next update.
Regarding your uncaught type error, can you please provide sample code or an example on codesandbox?

Hi Patrick,
I had some issues when updating the order of columns in react-table via the function 'onDropSuccess', I tried setting my custom component state again and resetting the columns in react-table, basically re-rendering the table, and that's when the error occurred, even though the order and render was fine, I still got the error message.
I removed the setState({columns}) in my custom component when 'onDropSuccess' is called and the column order changed, and did not re-render the react-table component, then it works fine :)
So the error indeed was on my end.


[Bug] Switching environments will re-use a stale chained request value

Insomnia Version: 5.12.4
Operating System: Windows 10 Pro (10.0.16299.125)

Details
If a workspace contains a chained request value (e.g. a bearer token) and there is more than one environment (e.g. development and staging), if a request is executed in development that requires a chained request value, that value will persist if switching to the other environments.
Steps to Reproduce

Create "Development" environment
Create "Staging" environment
Create POST request which retrieves OAuth 2.0 Bearer token
Create GET request which requires Authorization: Bearer <token> header
Fill Auth Bearer Token value with Response => Body Attribute macro, executing the POST Token request from Step 3.
Execute request, and ensure bearer token was used in the request successfully
Switch environments
Execute the same request. Note that the previous bearer token was cached and used as part of the request (and, presumably, you will get either a 400 Bad Request or 401 Unauthorized error).

Hi @qJake, thanks for the great issue report!
To clarify, this is not a bug but a limitation of the feature. The Response => Body Attribute simply pulls the value from the latest response of that request, meaning it has no concept of environments.
I think this can actually be treated as a larger issue with environments in general. Perhaps environments should affect the user's workflow more than they do? For example, only showing responses sent using the currently-active environment would prevent this from being an issue and possibly even be the desired outcome.
P.S. This does not solve the problem, but I'm curious... How come you are not using the official OAuth 2.0 support?

We interface with a custom third-party API we don't control, and they don't implement "proper" OAuth 2.0. I wish we could use it. 😄
If it helps, I consider an environment an isolated entity - I would not want my staging responses being used in development, or worse, my production responses used somewhere else inadvertently. (Granted, this is just a random bearer token, but still.) We also use the environment switcher for accessing different client servers occasionally (we're talking a dozen or so, sometimes less) - so obviously any persistent data between those environments could present a problem (at the very least, auth won't work, as I reported ⏫).
For what it's worth, we just switched from Postman and I'm already loving Insomnia a lot more, so keep up the great work!

Could this be marked as an enhancement for future work on environments? I just don't want it to get closed - I think it's still a viable addition to Insomnia!

I just ran into this using the official OAuth 2 support, it was completely unexpected. I certainly would like the "responses from one environment not available in another" feature. Would love to see that

Bad stale bot! Bad!
Paging @gschier - can we switch this to an enhancement request so it doesn't get closed? Would love to see this functionality improve in future versions!

Yep, now it won't close 😄

FWIW I just ran into the same issue -- we use bearer JWT tokens with multiple environments (dev, staging, prod, etc) and tokens are generated by scoping them to a single environment. Caching them across environments in my case was unexpected. What's the best way for us to help with this @gschier ?

Bad bot! No stale tag! This is still something I'd love to see - essentially having the history / response cache be per-environment instead of global. Would have numerous benefits!

Sorry about that. I was changing up the issue tag descriptions so the stale bot went on a rampage!

I have a follow-up suggestion to this that may work or be a bit easier to implement with regards to the suggestion above...
I noticed a new feature, Trigger Behavior, on the Response function. Would it be possible to add a new Trigger Behavior called "On Environment Change" that would cause the request to re-execute if the user switched environments? This would satisfy my previous concern about cross-contaminating environments and auth tokens.
Thoughts?

This is very similar to issue #260
It would be awesome to see these 2 questions solved in a similar manner - like an option at the workspace level to reset all the stored responses/tokens when switching between environments.


HttpClient should support default headers

While looking at github's api docs I noticed that UserAgent is mandatory, and quickly verified github4s doesn't add it by default. While http4s has its own default, I decided I wanted to use "github4s" instead. However, I quickly realized that meant adding a header to every github4s call, which is very redundant.
For cases like this and, for that matter, github feature flags, it would be very convenient if HttpClient would take default headers.

created #461 :+1:


[bug] Window process not killed

Describe the bug
When I open a window and then close, the window process stay alive.
I can even keep the dev tools opened when the window is "closed"

Reproduction
No response
Expected behavior
The window process should be closed
Platform and versions
Environment
› OS: Mac OS 13.0.1 X64
› Node.js: 14.19.1
› npm: 6.14.16
› pnpm: 6.11.0
› yarn: 1.22.15
› rustup: 1.25.1
› rustc: 1.65.0
› cargo: 1.65.0
› Rust toolchain: stable-x86_64-apple-darwin
Packages
› @tauri-apps/cli [NPM]: 1.2.0
› @tauri-apps/api [NPM]: 1.2.0
› tauri [RUST]: 1.2.0,
› tauri-build [RUST]: 1.2.0,
› tao [RUST]: 0.15.4,
› wry [RUST]: 0.22.1,
App
› build-type: bundle
› CSP: script-src 'self' mozilla.github.io tauri.localhost tauri://localhost
› distDir: ../dist
› devPath: http://localhost:5173/
› framework: React
› bundler: Rollup
App directory structure
├─ node_modules
├─ public
├─ submodules
├─ .github
├─ src-tauri
├─ .git
└─ src
Stack trace
No response
Additional context
No response

This commit fix the problem https://github.com/tauri-apps/wry/commit/3d3ea80808a327c546d8bbd97e06ef4b8feb32d0

This commit fix the problem https://github.com/tauri-apps/wry/commit/3d3ea80808a327c546d8bbd97e06ef4b8feb32d0


How to get the last row of a TimeSeriesRDD?

I have a time series RDD object, and I know internally it is sorted by the timestamps. What is the efficient way to get the start time and last time? There is a TimeSeriesRDD.first which returns the first row, so I can get the start time. But how to get the last row efficiently?

There is no efficient way to get the end time. It doesn't store end time internally (because it doesn't scan through to the end of the data when constructing a time series RDD).

Thanks for the reply. So currently I have to use ts.toDF.orderBy(new Column(timeColumnName).desc).take(1).head.getAs[Long](timeColumnName) to get it. It is not efficient, but with cache, it might be better.


Update quick-reference.md

Removing walledUrl from Network object init as it doesn't exist.

Hi @igorperic17, thanks for the contribution. I was seeing that the near-api-js typedocs show that a walletURL? parameter exists: https://near.github.io/near-api-js/interfaces/near_api_js.connect.ConnectConfig.html
I wonder why you are seeing an error message.

This has been stalled for 3 weeks, please open again if relevant


outlook does not show teams group

RE: new Microsoft 365 Groups generated as a result of creating a team in Microsoft Teams will no longer show in Outlook by default.
I use MS Outlook for Mac 365. How can I show the group that in my desktop outlook?

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

ID: 3d86301b-ce9c-388c-e563-9e5e5c27132e
Version Independent ID: 07e4ae23-0966-e8f3-9b7c-4f6c02569eb0
Content: Microsoft 365 Groups and Microsoft Teams - Microsoft Teams
Content Source: Teams/Office-365-groups.md
Service: msteams
GitHub Login: @LolaJacobsen
Microsoft Alias: lolaj

@hzareipour thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.


THORN-2264: Runner: pass classpath in env variable

Motivation
On Windows, Thorntail Runner was failing with a project having many dependencies.
The cause was the fact that classpath was passed to FatJarBuilder
with -cp in the command.
Modifications
The classpath is passed as an environment variable now
Result
The Runner no longer fails on a big project
Tested in IntelliJ IDEA and Eclipse on Windows 10

[X] Have you followed the guidelines in our Contributing document?
[X] [v2] Have you created a JIRA and used it in the commit message?
[ ] [v4] Have you created a GitHub Issue and used it in the commit message?
[X] Have you checked to ensure there aren't other open Pull Requests for the same issue?
[ ] Have you built the project locally prior to submission with mvn clean install?

Environment variables on Windows are limited as well, see https://blogs.msdn.microsoft.com/oldnewthing/20100203-00/?p=15083. I think in the Runner case, we should probably set the classpath in the manifest of the (uber)jar.

@Ladicek Could you elaborate how you see it working with setting classpath in a manifest?
The problem is in passing the classpath to FatJarBuilder

Ah, I see. You'd have to create a synthetic JAR with a manifest that contains the classpath.

Now thinking about it, my suggestion is probably a premature fix for problem that we don't have (yet).

Sure, we can always improve later!


File loaded by "MartysSandbox/SetupForTest/setup" script fails several data validation test

Current "standard" test file fails several data validation test because the FBs being certified (FBs 1, 4, 5, 6 & 15) require the use of a SCOPE string that also includes several other FBs for which the test file does not contain the required XML records.

Closing Issue.


pip-review chokes if pip freeze emits -e or -f

https://github.com/nvie/pip-tools/issues/175
https://github.com/nvie/pip-tools/issues/111
https://github.com/nvie/pip-tools/issues/93
https://github.com/nvie/pip-tools/issues/79
https://github.com/nvie/pip-tools/issues/66 (references potential fix in https://github.com/coagulant/pip-tools/commit/2b1f0bc0763fefc81152d730e7aa7080c2ad4258)
https://github.com/nvie/pip-tools/issues/54
https://github.com/nvie/pip-tools/issues/39
Please comment or add a thumbs-up if you are affected by this.

https://github.com/nvie/pip-tools/issues/111 appears to be related.

And another: https://github.com/nvie/pip-tools/issues/79. This one contains a workaround as well.

Also nvie#93 and nvie#66, with the latter referencing a potential fix in https://github.com/coagulant/pip-tools/commit/2b1f0bc0763fefc81152d730e7aa7080c2ad4258.

Fixed in version 1.0.


refactor!: Subcriber: AddValidator -> SetVerifier

Verifier is the more correct term to use for stateful verification
Set because in fact we currently allow only one verification func
Remove dependency pubsub to support returning header.VerifyError

Codecov Report

Merging #88 (8d94d8b) into main (6cf3094) will decrease coverage by 0.28%.
The diff coverage is 62.50%.

@@            Coverage Diff             @@
##             main      #88      +/-   ##
==========================================
- Coverage   67.36%   67.08%   -0.28%
==========================================
  Files          35       35
  Lines        2828     2844      +16
==========================================
+ Hits         1905     1908       +3
- Misses        771      783      +12
- Partials      152      153       +1

Files Changed
Coverage Δ

errors.go
0.00% <0.00%> (ø)

interface.go
0.00% <ø> (ø)

p2p/subscriber.go
47.16% <50.00%> (-1.62%)
:arrow_down:

sync/sync_head.go
63.28% <78.57%> (-0.22%)
:arrow_down:

headertest/subscriber.go
18.18% <100.00%> (ø)

sync/sync.go
70.28% <100.00%> (ø)

... and 1 file with indirect coverage changes


Spelling Checker in python

Aim

Build a spell-checker using python packages

Details

This  is going to talk about three different packages for coding a spell checker in Python – pyspellchecker, TextBlob, and autocorrect.

Plss assign me this issue @avinashkranjan sir

Plss assign me this issue @avinashkranjan sir

Assigned it you @Ayush7614

Assigned it you @Ayush7614

#206 sir this is pull request

#206 sir this is pull request

plss review it @avinashkranjan sir

plss review it @avinashkranjan sir

@avinashkranjan  Sir plss review it

@avinashkranjan  Sir plss review it

@avinashkranjan sir plss review it

@avinashkranjan sir plss review it


Touch.rotationAngle sample

See https://www.chromestatus.com/feature/4639728380936192

@rbyers has an extensive demo at http://rbyers.github.io/paint.html and I think we'd be fine just directing developers to that.

How do they see the code easily?  I am still in two minds about not have a central set of samples.

For browsing, the yet-to-be-built https://chromestatus.com/samples landing page will list Touch.rotationAngle and links to whatever URL we have associated with that feature entry. Most cases it would be a URL belonging to our repo, but in this case it's a URL pointing elsewhere.
For searching, Googling "Touch.rotationAngle" leads to MDN first and then https://www.chromestatus.com/feature/4639728380936192. That landing page has a prominent link to the sample.

The problem with Rick's Sample is that it is demonstrates many things all at once and it is nearly impossible to find the source of it.

I have an isolated sample for this.

FWIW I agree - paint.html was intended as a demo, not a code sample.


How to remove the jobs_help messsage from irb?

e.g.

Type 'jobs_help' to see how to connect to the available job servers to manage jobs

I don't mind the connect_to helper but I think this message is too much extra

There's no way to remove it right now, but if you want to contribute a config option to show it only if you don't opt out, that'd be great!


syntax highlighting flips whenever an action is performed (i.e. command, or single move in editor) when a regex is present in JS

open a JS file with a regex expression (I haven't narrowed it down only to regex but that is where I first noticed it)
do an action (move down/up with j/k, move around, save with the :w command
syntax highlighting just flipped to some incorrect/alternate
do an action again, it flips back
repeat

here is a log of me doing it on the following file, test.js:
oni-debug.log
import React from "react";

const myRegex = /^hello$/;

const MyComponent = () => {
  return <>{"hello!"}</>;
};

export default MyComponent;

let me know if the log file isn't the right thing and you can't reproduce it, and I'll send another one that I'm sure has it.

I see something similar, when using the Veuter extension for vue.js component files.  I suspect it might be to do languages nested within other languages.
For people unfamiliar, vue component files are XML-ish files with sub sections with various embedded sub languages - there will be a HTML section, a CSS section, a JS or TS section.
I can see that as I make small changes, do actions or switch "tabs" the syntax highlighting in these sub sections flips between working and not-working:
Not Working:

Working:

Just switching from one tab to another and back will toggle between working and not working.  Some actions will cause the switch also - sometimes entering text in insert mode.  Some files seem to be more susceptible to the effect than others.
I can produce this easily if more information or testing is required.

I get something similar when editing jsx in js files, so probably related to the embedded language support.
First no syntax highlighting of jsx.

Then after editing the end className="..." just before the closing " it causes it to flip when going back to normal mode.


support animatediff

Please consider support animatediff which is also based on diffusers.

@nick008a Did you try that with stable-fast. And could stable-fast support that out of the box? Or you experienced unexpected exceptions?

运行animatediff的时候出现下面的问题，请问有较好的解决方案么，多谢~
环境: windows

torch                  2.1.2+cu121
torchaudio             2.1.2
torchvision            0.16.2
stable-fast            1.0.3                         d:\simple_work\sd_opt\soft\stable-fast\src

现象: 运行stable Diffusion 的文生图正常，执行animatediff时报错，现象是出现大量的数字，如果将enable_jit设置为False，则正常推理，不过速度下降很明显
运行时使用的代码
import imageio
import requests
import torch
from diffusers import DDIMScheduler, MotionAdapter, ControlNetModel, \
    AnimateDiffPipeline
from diffusers.utils import export_to_video
from io import BytesIO
from PIL import Image

import torch
from diffusers import MotionAdapter, AnimateDiffPipeline, DDIMScheduler
from diffusers.utils import export_to_gif

adapter = MotionAdapter.from_pretrained("guoyww/animatediff-motion-adapter-v1-5-2")
# pipe = AnimateDiffPipeline.from_pretrained("frankjoshua/toonyou_beta6", motion_adapter=adapter)
pipe = AnimateDiffPipeline.from_pretrained("SG161222/Realistic_Vision_V5.1_noVAE", motion_adapter=adapter)
pipe.scheduler = DDIMScheduler(beta_schedule="linear", steps_offset=1, clip_sample=False)
# enable memory savings
pipe.enable_vae_slicing()
pipe.enable_model_cpu_offload()

from sfast.compilers.diffusion_pipeline_compiler import compile, CompilationConfig

config = CompilationConfig.Default()
config.enable_xformers = True
# config.enable_triton = True
config.enable_cuda_graph = True
# config.enable_jit = False
pipe = compile(pipe, config)

output = pipe(prompt="A corgi walking in the park")
frames = output.frames[0]
export_to_gif(frames, "animation.gif")

torch                  2.1.2+cu121
torchaudio             2.1.2
torchvision            0.16.2
stable-fast            1.0.3

您好，请问您解决了吗，我遇到了同样的问题

Same issue!！ Do you have any plans to support animationdiff in the future?

@hihei 您好，请问您解决了吗，我遇到了同样的问题

没有解决

I have this when config.enable_jit = True:
/home/oppoer/.local/lib/python3.8/site-packages/torch/cuda/graphs.py:81: UserWarning: The CUDA Graph is empty. This usually means that the graph was attempted to be captured on wrong device or stream. (Triggered internally at ../aten/src/ATen/cuda/CUDAGraph.cpp:224.)
  super().capture_end()
/home/oppoer/.local/lib/python3.8/site-packages/transformers/modeling_utils.py:4225: FutureWarning: `_is_quantized_training_enabled` is going to be deprecated in transformers 4.39.0. Please use `model.hf_quantizer.is_trainable` instead
  warnings.warn(
/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py:21: TracerWarning: Converting a tensor to a Python number might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  return func(*args, **kwargs)
/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py:21: TracerWarning: Converting a tensor to a Python list might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  return func(*args, **kwargs)
/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py:21: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  return func(*args, **kwargs)
/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py:21: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
  return func(*args, **kwargs)
/home/oppoer/.local/lib/python3.8/site-packages/sfast/utils/flat_tensors.py:275: TracerWarning: torch.Tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
  return super().__new__(cls, x, *args, **kwargs)
/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py:21: TracerWarning: torch.as_tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
  return func(*args, **kwargs)
  0%|                                                                                | 0/50 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "test_AnimationDiff_SF.py", line 259, in <module>
    warmup()
  File "test_AnimationDiff_SF.py", line 245, in warmup
    inference(model, text)
  File "test_AnimationDiff_SF.py", line 222, in inference
    output_frames = model(**kwarg_inputs).frames
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/diffusers/pipelines/animatediff/pipeline_animatediff.py", line 802, in __call__
    noise_pred = self.unet(
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/cuda/graphs.py", line 40, in dynamic_graphed_callable
    cached_callable = simple_make_graphed_callable(
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/cuda/graphs.py", line 61, in simple_make_graphed_callable
    return make_graphed_callable(func,
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/cuda/graphs.py", line 90, in make_graphed_callable
    func(*tree_copy(example_inputs, detach=True),
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/trace_helper.py", line 51, in wrapper
    traced_m, call_helper = trace_with_kwargs(
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/trace_helper.py", line 25, in trace_with_kwargs
    traced_module = better_trace(TraceablePosArgOnlyModuleWrapper(func),
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/utils.py", line 35, in better_trace
    script_module = torch.jit.trace(func, *args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/jit/_trace.py", line 806, in trace
    return trace_module(
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/jit/_trace.py", line 1074, in trace_module
    module._c._create_method_from_trace(
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _slow_forward
    result = self.forward(*input, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/trace_helper.py", line 154, in forward
    outputs = self.module(*orig_args, **orig_kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _slow_forward
    result = self.forward(*input, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/trace_helper.py", line 89, in forward
    return self.func(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/diffusers/models/unets/unet_motion_model.py", line 834, in forward
    emb = emb.repeat_interleave(repeats=num_frames, dim=0)
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py", line 21, in __torch_function__
    return func(*args, **kwargs)
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument index in method wrapper_CUDA__index_select)

I have this when config.enable_jit = True:
/home/oppoer/.local/lib/python3.8/site-packages/torch/cuda/graphs.py:81: UserWarning: The CUDA Graph is empty. This usually means that the graph was attempted to be captured on wrong device or stream. (Triggered internally at ../aten/src/ATen/cuda/CUDAGraph.cpp:224.)
  super().capture_end()
/home/oppoer/.local/lib/python3.8/site-packages/transformers/modeling_utils.py:4225: FutureWarning: `_is_quantized_training_enabled` is going to be deprecated in transformers 4.39.0. Please use `model.hf_quantizer.is_trainable` instead
  warnings.warn(
/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py:21: TracerWarning: Converting a tensor to a Python number might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  return func(*args, **kwargs)
/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py:21: TracerWarning: Converting a tensor to a Python list might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  return func(*args, **kwargs)
/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py:21: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  return func(*args, **kwargs)
/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py:21: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
  return func(*args, **kwargs)
/home/oppoer/.local/lib/python3.8/site-packages/sfast/utils/flat_tensors.py:275: TracerWarning: torch.Tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
  return super().__new__(cls, x, *args, **kwargs)
/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py:21: TracerWarning: torch.as_tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
  return func(*args, **kwargs)
  0%|                                                                                | 0/50 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "test_AnimationDiff_SF.py", line 259, in <module>
    warmup()
  File "test_AnimationDiff_SF.py", line 245, in warmup
    inference(model, text)
  File "test_AnimationDiff_SF.py", line 222, in inference
    output_frames = model(**kwarg_inputs).frames
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/diffusers/pipelines/animatediff/pipeline_animatediff.py", line 802, in __call__
    noise_pred = self.unet(
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/cuda/graphs.py", line 40, in dynamic_graphed_callable
    cached_callable = simple_make_graphed_callable(
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/cuda/graphs.py", line 61, in simple_make_graphed_callable
    return make_graphed_callable(func,
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/cuda/graphs.py", line 90, in make_graphed_callable
    func(*tree_copy(example_inputs, detach=True),
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/trace_helper.py", line 51, in wrapper
    traced_m, call_helper = trace_with_kwargs(
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/trace_helper.py", line 25, in trace_with_kwargs
    traced_module = better_trace(TraceablePosArgOnlyModuleWrapper(func),
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/utils.py", line 35, in better_trace
    script_module = torch.jit.trace(func, *args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/jit/_trace.py", line 806, in trace
    return trace_module(
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/jit/_trace.py", line 1074, in trace_module
    module._c._create_method_from_trace(
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _slow_forward
    result = self.forward(*input, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/trace_helper.py", line 154, in forward
    outputs = self.module(*orig_args, **orig_kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _slow_forward
    result = self.forward(*input, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/trace_helper.py", line 89, in forward
    return self.func(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/diffusers/models/unets/unet_motion_model.py", line 834, in forward
    emb = emb.repeat_interleave(repeats=num_frames, dim=0)
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py", line 21, in __torch_function__
    return func(*args, **kwargs)
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument index in method wrapper_CUDA__index_select)

你看是不是你的输入源没有转到cuda上导致的。

I have this when config.enable_jit = True:
/home/oppoer/.local/lib/python3.8/site-packages/torch/cuda/graphs.py:81: UserWarning: The CUDA Graph is empty. This usually means that the graph was attempted to be captured on wrong device or stream. (Triggered internally at ../aten/src/ATen/cuda/CUDAGraph.cpp:224.)
  super().capture_end()
/home/oppoer/.local/lib/python3.8/site-packages/transformers/modeling_utils.py:4225: FutureWarning: `_is_quantized_training_enabled` is going to be deprecated in transformers 4.39.0. Please use `model.hf_quantizer.is_trainable` instead
  warnings.warn(
/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py:21: TracerWarning: Converting a tensor to a Python number might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  return func(*args, **kwargs)
/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py:21: TracerWarning: Converting a tensor to a Python list might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  return func(*args, **kwargs)
/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py:21: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  return func(*args, **kwargs)
/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py:21: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
  return func(*args, **kwargs)
/home/oppoer/.local/lib/python3.8/site-packages/sfast/utils/flat_tensors.py:275: TracerWarning: torch.Tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
  return super().__new__(cls, x, *args, **kwargs)
/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py:21: TracerWarning: torch.as_tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
  return func(*args, **kwargs)
  0%|                                                                                | 0/50 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "test_AnimationDiff_SF.py", line 259, in <module>
    warmup()
  File "test_AnimationDiff_SF.py", line 245, in warmup
    inference(model, text)
  File "test_AnimationDiff_SF.py", line 222, in inference
    output_frames = model(**kwarg_inputs).frames
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/diffusers/pipelines/animatediff/pipeline_animatediff.py", line 802, in __call__
    noise_pred = self.unet(
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/cuda/graphs.py", line 40, in dynamic_graphed_callable
    cached_callable = simple_make_graphed_callable(
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/cuda/graphs.py", line 61, in simple_make_graphed_callable
    return make_graphed_callable(func,
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/cuda/graphs.py", line 90, in make_graphed_callable
    func(*tree_copy(example_inputs, detach=True),
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/trace_helper.py", line 51, in wrapper
    traced_m, call_helper = trace_with_kwargs(
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/trace_helper.py", line 25, in trace_with_kwargs
    traced_module = better_trace(TraceablePosArgOnlyModuleWrapper(func),
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/utils.py", line 35, in better_trace
    script_module = torch.jit.trace(func, *args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/jit/_trace.py", line 806, in trace
    return trace_module(
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/jit/_trace.py", line 1074, in trace_module
    module._c._create_method_from_trace(
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _slow_forward
    result = self.forward(*input, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/trace_helper.py", line 154, in forward
    outputs = self.module(*orig_args, **orig_kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _slow_forward
    result = self.forward(*input, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/trace_helper.py", line 89, in forward
    return self.func(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/diffusers/models/unets/unet_motion_model.py", line 834, in forward
    emb = emb.repeat_interleave(repeats=num_frames, dim=0)
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py", line 21, in __torch_function__
    return func(*args, **kwargs)
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument index in method wrapper_CUDA__index_select)

你看是不是你的输入源没有转到cuda上导致的。

model有转到GPU上：
    # adapter
    adapter = MotionAdapter.from_pretrained(adapter_model, torch_dtype=torch.float16)
    # pipline
    model = AnimateDiffPipeline.from_pretrained(pipeline_model, motion_adapter=adapter, torch_dtype=torch.float16)

    scheduler = DDIMScheduler.from_pretrained(
        pipeline_model,
        subfolder="scheduler",
        clip_sample=False,
        timestep_spacing="linspace",
        beta_schedule="linear",
        steps_offset=1,
    )
    model.scheduler = scheduler
    model.enable_vae_slicing()
    model.to(torch.device('cuda'))

我这里是否出现上面的报错和config.enable_jit = True有关

I have this when config.enable_jit = True:
/home/oppoer/.local/lib/python3.8/site-packages/torch/cuda/graphs.py:81: UserWarning: The CUDA Graph is empty. This usually means that the graph was attempted to be captured on wrong device or stream. (Triggered internally at ../aten/src/ATen/cuda/CUDAGraph.cpp:224.)
  super().capture_end()
/home/oppoer/.local/lib/python3.8/site-packages/transformers/modeling_utils.py:4225: FutureWarning: `_is_quantized_training_enabled` is going to be deprecated in transformers 4.39.0. Please use `model.hf_quantizer.is_trainable` instead
  warnings.warn(
/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py:21: TracerWarning: Converting a tensor to a Python number might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  return func(*args, **kwargs)
/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py:21: TracerWarning: Converting a tensor to a Python list might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  return func(*args, **kwargs)
/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py:21: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  return func(*args, **kwargs)
/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py:21: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
  return func(*args, **kwargs)
/home/oppoer/.local/lib/python3.8/site-packages/sfast/utils/flat_tensors.py:275: TracerWarning: torch.Tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
  return super().__new__(cls, x, *args, **kwargs)
/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py:21: TracerWarning: torch.as_tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
  return func(*args, **kwargs)
  0%|                                                                                | 0/50 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "test_AnimationDiff_SF.py", line 259, in <module>
    warmup()
  File "test_AnimationDiff_SF.py", line 245, in warmup
    inference(model, text)
  File "test_AnimationDiff_SF.py", line 222, in inference
    output_frames = model(**kwarg_inputs).frames
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/diffusers/pipelines/animatediff/pipeline_animatediff.py", line 802, in __call__
    noise_pred = self.unet(
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/cuda/graphs.py", line 40, in dynamic_graphed_callable
    cached_callable = simple_make_graphed_callable(
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/cuda/graphs.py", line 61, in simple_make_graphed_callable
    return make_graphed_callable(func,
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/cuda/graphs.py", line 90, in make_graphed_callable
    func(*tree_copy(example_inputs, detach=True),
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/trace_helper.py", line 51, in wrapper
    traced_m, call_helper = trace_with_kwargs(
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/trace_helper.py", line 25, in trace_with_kwargs
    traced_module = better_trace(TraceablePosArgOnlyModuleWrapper(func),
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/utils.py", line 35, in better_trace
    script_module = torch.jit.trace(func, *args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/jit/_trace.py", line 806, in trace
    return trace_module(
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/jit/_trace.py", line 1074, in trace_module
    module._c._create_method_from_trace(
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _slow_forward
    result = self.forward(*input, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/trace_helper.py", line 154, in forward
    outputs = self.module(*orig_args, **orig_kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _slow_forward
    result = self.forward(*input, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/trace_helper.py", line 89, in forward
    return self.func(*args, **kwargs)
  File "/home/oppoer/.local/lib/python3.8/site-packages/diffusers/models/unets/unet_motion_model.py", line 834, in forward
    emb = emb.repeat_interleave(repeats=num_frames, dim=0)
  File "/home/oppoer/.local/lib/python3.8/site-packages/sfast/jit/overrides.py", line 21, in __torch_function__
    return func(*args, **kwargs)
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument index in method wrapper_CUDA__index_select)

你看是不是你的输入源没有转到cuda上导致的。

model有转到GPU上：
    # adapter
    adapter = MotionAdapter.from_pretrained(adapter_model, torch_dtype=torch.float16)
    # pipline
    model = AnimateDiffPipeline.from_pretrained(pipeline_model, motion_adapter=adapter, torch_dtype=torch.float16)

    scheduler = DDIMScheduler.from_pretrained(
        pipeline_model,
        subfolder="scheduler",
        clip_sample=False,
        timestep_spacing="linspace",
        beta_schedule="linear",
        steps_offset=1,
    )
    model.scheduler = scheduler
    model.enable_vae_slicing()
    model.to(torch.device('cuda'))

我这里是否出现上面的报错和config.enable_jit = True有关

你可以试试，把config.enable_jit = True 干掉还是否出现，就能确定是否跟这个有关了。但是观察来看，感觉应该是输入源的问题，就是模型在cuda上，但是你的模型输入不在cuda


Support Partial Indexes

Related to #163 (modifying same code logic, good to work on them one after another)
Currently in storage plus, indexes always return a byte key. One common pattern from SQL systems, to save access, is to only index a part of the data.
For example, if we wish to always know the first and last height of all open proposals as an O(1) query, we could create and index (status, height), and assuming #163, then prefix scan over Status::Open to find the first/last height. However, this requires maintaining an index for all the other statuses, we do not care about.
However, and index like INDEX height WHERE status = Status::Open (to borrow from SQL syntax) would only index currently open proposals and record their height, which is exactly what we need and no more.
Design:

Indexing function is currently defined as: index: fn(&T) -> Vec<u8> (or with #163 index: fn(&T) -> K)
Define partial indexer as index: fn(&T) -> Option<Vec<u8>> (or with #163 index: fn(&T) -> Option<K>)

Create two constructors
The first one new can work as is, and assume a complete index.
Add a second constructor that takes a partial indexing function.
Internally, you can either wrap the complete indexer as a partial indexer that always returns Some(x), or store the two as enum variants.

Update save and remove and test them

Blocked: waiting for a clear use case or three to implement. Not just something I think "may be useful someday"

Haven't yet come across a real use case. Closing unless this becomes important in a real project


Update Install-SPSolution.md

Fix #2815

OPS Build status updates of commit 4990c68:
:clock10: Preparing: average preparing time is 1 min(s) 12 sec(s)

OPS Build status updates of commit 4990c68:
:clock10: Incremental building: average incremental building time is 12 min(s) 23 sec(s)

OPS Build status updates of commit 4990c68:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sharepoint/sharepoint-ps/sharepoint-server/Install-SPSolution.md
:white_check_mark:Succeeded
View (sharepoint-ps)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

OPS Build status updates of commit db703aa:
:clock10: Preparing: average preparing time is 1 min(s) 12 sec(s)

OPS Build status updates of commit db703aa:
:clock10: Incremental building: average incremental building time is 12 min(s) 23 sec(s)

OPS Build status updates of commit db703aa:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sharepoint/sharepoint-ps/sharepoint-server/Install-SPSolution.md
:white_check_mark:Succeeded
View (sharepoint-ps)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


[3.5] Rotating TextureRect's rotation will be messed up if the parent gets resized

Godot version
3.5.2.stable.mono.arch_linux
System information
Manjaro Linux - 3.5.2.stable.mono.arch_linux - GLES3
Issue description
Lately I'm doing more and more UI projects in Godot because it's so nice to make scalable UI's. This time, I have an icon (a sword) which is rotated around a specific pivot (the sword's handle).
Steps to reproduce
I use a TextureRect for this, with Keep Aspect Covered.

When I rotate the sword right now, it's perfectly fine.

But now when the sword is rotated, and the sword's parent is resized, the rotation will be messed up.

When I look at the pivot, it is still at the same exact point as when it was when it was sized as 32x32.
Is there anything I can do to fix it?
I used other Control's as "anchors" (parenting to another Control and use that position as center), but then I lose the scaling of the Sword. I don't really understand why, while everything will correctly increase in size in a Control, the pivot does not move with it.
Minimal reproduction project

This bug is not reproducible in Godot 4.

@Guusggg
I've tested what you said and it's working as expected without messing with the TextureRect's position.
The only difference is that I used the Windows, but I don't think that's the reason.
Could you upload a Minimal reproduction project?

@Sauermann I didn't mean to cause confusion, but my project is in Godot 3
@felaugmar I replicated a tiny example of the behaviour in the following project:
RotationExample.zip. As you can see I placed the pivot in the center of the TextureRect, but it's not keeping it in the center. I hope this is clear enough; if not, please let me know!

I didn't mean to cause confusion, but my project is in Godot 3

No worries. I just wanted to pinpoint the version.

@Guusggg

I replicated a tiny example of the behaviour in the following project: RotationExample.zip. As you can see I placed the pivot in the center of the TextureRect, but it's not keeping it in the center. What I would hope to see is the TextureRect rotating correctly around it's pivot, even when it's initial size increases or decreases. I hope this is clear enough; if not, please let me know!

Thanks, I understand it now.
It's the expected behavior, when you change the size of the parent, Keep Aspect Covered makes your sword enlarge its size as well, then you should update the pivot as according.
I've updated your MRP with an example: RotationExample.zip

@felaugmar Thank you very much for checking it out. I think what you fixed for me was setting the pivot in the animation, however I just used the animation as an example of enlarging the parent control. Since this is expected behaviour, I assume there's just no other way than including a little script that places the pivot on the correct position every frame?
Ideally what I would like is a Control with TextureRect that can rotate in it's animation, while still allowing the parent Control to fit into whatever space it needs (which means it will adjust it's size, which in turn the pivot of the TextureRect has to be adjusted). (Just as an example, I don't use it) In Unity, this is very easy and for me it's a little more natural behaviour for the pivot to adjust itself according to the size of the UI element (since everything is already reacting to size changes).
Thank you very much again for looking at it, and taking the time to check out the reproduction example!
TLDR; just use a script?

Since this is expected behaviour, I assume there's just no other way than including a little script that places the pivot on the correct position every frame?

You're right.

In Unity, this is very easy and for me it's a little more natural behaviour for the pivot to adjust itself according to the size of the UI element (since everything is already reacting to size changes).

I also think it's more natural to the pivot updating to size changes (and people usually expect it at the start), but I also like the manual behavior, it gives more control.

Thank you very much again for looking at it, and taking the time to check out the reproduction example!

You're welcome 😄

Thank you very much for your time.


Bump: Go version to 1.23.1

This version bump will address vulnerabilities in the go binary
Title
Bump: Go version to 1.23.1
Summary
Go version 1.22.6 has a host of medium/high vulnerabilities that have been addressed in Go version 1.23.1
CVE-2024-34156
CVE-2024-34155
CVE-2024-34158
Why?
Improved security against known vulnerabilities

Thank you for your pull request! FYI vulnerabilities in golang binary automatically don't affect directly gogatekeeper project, project is scanned by github scanning and also artifacthub.io scanning tools, so vulnerabilities reported there for gogatekeeper project are fixed in releases.

additionally changes to github workflows needs to be done+seems also to golangci-lint version - probably there will be new linters, deprecated old so more things will need to be changed, i will take care of that in several pull requests, closing this issue, will need to be done in several steps


Create project apicall

resolve the problems from the response of api call - 201 status
solve the issue of zod validation and set temperate rule for validation: at least 4 character
redirect page to landing page if the response is success
add a new function for adding workspace after rebasing from main
add error handling using alert (will use throw error for improvements)

Let's replace all workspace keyword with project, be it routes/page text anything.

revised some comments in the placeholder
-change all relative names from workspace to projects, including filename, path, the name of component, etc...
-pass errors to children components instead of using alerts


AppCenter builds failing for iOS

Our last successful build was two days ago. Since our last successful build we have been getting the same build error:
Failed to find the latest git commit date: VersionCheckError: Command exited with code -9: git -c log.showSignature=false log -n 1 --pretty=format:%ad --date=iso

We get the build error on all our pipelines and with any commit, even commits that previously built successfully fails.

This is the output from AppCenter:

+ export PATH=/Users/runner/runners/2.166.4/work/1/s/flutter/bin:/Library/Frameworks/Mono.framework/Versions/4/bin:/Users/runner/.cargo/bin:/usr/local/lib/ruby/gems/2.6.0/bin:/usr/local/opt/ruby/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/usr/local/go/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Users/runner/Library/Android/sdk/ndk-bundle:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools
+ PATH=/Users/runner/runners/2.166.4/work/1/s/flutter/bin:/Library/Frameworks/Mono.framework/Versions/4/bin:/Users/runner/.cargo/bin:/usr/local/lib/ruby/gems/2.6.0/bin:/usr/local/opt/ruby/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/usr/local/go/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Users/runner/Library/Android/sdk/ndk-bundle:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools
+ flutter version 1.12.13+hotfix.9
Downloading Dart SDK from Flutter engine 540786dd51f112885a89792d678296b95e6622e5...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 21  212M   21 46.3M    0     0  68.0M      0  0:00:03 --:--:--  0:00:03 67.9M
 74  212M   74  157M    0     0  93.9M      0  0:00:02  0:00:01  0:00:01 93.8M
100  212M  100  212M    0     0   101M      0  0:00:02  0:00:02 --:--:--  101M
Building flutter tool...

  ╔════════════════════════════════════════════════════════════════════════════╗
  ║                 Welcome to Flutter! - https://flutter.dev                  ║
  ║                                                                            ║
  ║ The Flutter tool uses Google Analytics to anonymously report feature usage ║
  ║ statistics and basic crash reports. This data is used to help improve      ║
  ║ Flutter tools over time.                                                   ║
  ║                                                                            ║
  ║ Flutter tool analytics are not sent on the very first run. To disable      ║
  ║ reporting, type 'flutter config --no-analytics'. To display the current    ║
  ║ setting, type 'flutter config'. If you opt out of analytics, an opt-out    ║
  ║ event will be sent, and then no further information will be sent by the    ║
  ║ Flutter tool.                                                              ║
  ║                                                                            ║
  ║ By downloading the Flutter SDK, you agree to the Google Terms of Service.  ║
  ║ Note: The Google Privacy Policy describes how data is handled in this      ║
  ║ service.                                                                   ║
  ║                                                                            ║
  ║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and  ║
  ║ crash reports to Google.                                                   ║
  ║                                                                            ║
  ║ Read about data we send with crash reports:                                ║
  ║ https://flutter.dev/docs/reference/crash-reporting                         ║
  ║                                                                            ║
  ║ See Google's privacy policy:                                               ║
  ║ https://policies.google.com/privacy                                        ║
  ╚════════════════════════════════════════════════════════════════════════════╝

Downloading Material fonts...                                       0.4s
Downloading Gradle Wrapper...                                       0.0s
Downloading package sky_engine...                                   0.2s
Downloading flutter_patched_sdk tools...                            1.0s
Downloading flutter_patched_sdk_product tools...                    0.6s
Downloading darwin-x64 tools...                                     1.2s
Downloading libimobiledevice...                                     0.0s
Downloading usbmuxd...                                              0.0s
Downloading libplist...                                             0.0s
Downloading openssl...                                              0.1s
Downloading ios-deploy...                                           0.0s
Downloading darwin-x64/font-subset tools...                         0.2s
╔══════════════════════════════════════════════════════════════════════════════╗
║ Warning: "flutter version" will leave the SDK in a detached HEAD state.      ║
║ If you are using the command to return to a previously installed SDK version ║
║ consider using the "flutter downgrade" command instead.                      ║
╚══════════════════════════════════════════════════════════════════════════════╝

Switching Flutter to version 0.0.0-unknown

Downloading engine...
Downloading Dart SDK from Flutter engine af51afceb8886cc11e25047523c4e0c7e1f5d408...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0  200M    0   321    0     0   1059      0 55:11:38 --:--:-- 55:11:38  1055
 31  200M   31 63.9M    0     0  58.5M      0  0:00:03  0:00:01  0:00:02 58.5M
 58  200M   58  116M    0     0  55.8M      0  0:00:03  0:00:02  0:00:01 55.8M
 92  200M   92  185M    0     0  59.9M      0  0:00:03  0:00:03 --:--:-- 59.9M
100  200M  100  200M    0     0  61.0M      0  0:00:03  0:00:03 --:--:-- 61.0M
Building flutter tool...
Downloading Android Maven dependencies...                          20.1s
Downloading android-arm-profile/darwin-x64 tools...                 0.6s
Downloading android-arm-release/darwin-x64 tools...                 0.4s
Downloading android-arm64-profile/darwin-x64 tools...               0.3s
Downloading android-arm64-release/darwin-x64 tools...               0.3s
Downloading android-x64-profile/darwin-x64 tools...                 0.3s
Downloading android-x64-release/darwin-x64 tools...                 0.3s
Downloading android-x86 tools...                                    0.9s
Downloading android-x64 tools...                                    0.8s
Downloading android-arm tools...                                    0.5s
Downloading android-arm-profile tools...                            0.3s
Downloading android-arm-release tools...                            0.3s
Downloading android-arm64 tools...                                  0.5s
Downloading android-arm64-profile tools...                          0.3s
Downloading android-arm64-release tools...                          0.3s
Downloading android-x64-profile tools...                            0.3s
Downloading android-x64-release tools...                            0.3s
Downloading android-x86-jit-release tools...                        0.4s
Downloading ios tools...                                            1.3s
Downloading ios-profile tools...                                    1.1s
Downloading ios-release tools...                                    5.0s
Downloading package sky_engine...                                   0.2s
Downloading common tools...                                         0.6s
Downloading common tools...                                         0.5s
Downloading darwin-x64 tools...                                     1.2s
Downloading ideviceinstaller...                                     0.0s
Downloading libzip...                                               0.0s

Failed to find the latest git commit date: VersionCheckError: Command exited with code -9: git -c log.showSignature=false log -n 1 --pretty=format:%ad --date=iso
Standard out: 1
Standard error:
Returning 1970-01-01 00:00:00.000 instead.
Flutter 0.0.0-unknown • channel 1 • unknown source
Framework • revision f139b11009 (1) • 1970-01-01 00:00:00.000
Engine • revision af51afceb8
Tools • Dart 2.8.1

Hi @Bokriem
you are mentioning the crash involving AppCenter,
does the app build locally?
Could you please
run flutter upgrade --force
then provide your flutter doctor -v ,
your flutter run --verbose
and your pubspec.yaml
Thank you
related to https://github.com/flutter/flutter/issues/56479

[✓] Flutter (Channel stable, v1.17.0, on Mac OS X 10.15.4 19E287, locale en-GB)
• Flutter version 1.17.0 at /Users/henknel/Development/flutter
• Framework revision e6b34c2b5c (6 days ago), 2020-05-02 11:39:18 -0700
• Engine revision 540786dd51
• Dart version 2.8.1
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/henknel/Library/Android/sdk
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.4.1, Build version 11E503a
• CocoaPods version 1.9.1
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 43.0.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] VS Code (version 1.45.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.10.1
[✓] Connected device (1 available)
• iPhone SE (2nd generation) • 2386932C-CDDB-4B0E-A94C-F33FF333CB40 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-4 (simulator)
• No issues found!

environment:
sdk: ">=2.7.2 <3.0.0"
dependencies:
flutter:
sdk: flutter
dio: 3.0.9
intl: 0.16.1
chewie: 0.9.10
sqflite: 1.3.0
connectivity: 0.4.8+2
url_launcher: 5.4.2
launch_review: 2.0.0
firebase_core: 0.4.4+3
flutter_google_ad_manager: 0.10.1
page_indicator: 0.3.0
scroll_to_index: 1.0.6
flutter_webview_plugin: 0.3.11
firebase_storage: 3.1.5
firebase_database: 3.1.3
firebase_messaging: 6.0.13
firebase_analytics: 5.0.11
firebase_auth: 0.15.5+3
firebase_dynamic_links: 0.5.0+11
fluttertoast: 4.0.1
google_sign_in: 4.4.1
flutter_facebook_login: 3.0.0
flutter_twitter_login:
git: git://github.com/eudangeld/flutter_twitter_login.git
shared_preferences: 0.5.6+3
flutter_local_notifications: 1.4.0
flutter_datetime_picker: 1.3.5
catcher: 0.3.3
provider: 3.2.0
shimmer: 1.1.1
flutter_youtube: 2.0.0
timeago: 2.0.26
cached_network_image: 2.0.0
data_connection_checker: 0.3.4
video_player: 0.10.8+1
youtube_player_flutter: 6.1.0+4
flutter_inappwebview: 2.1.0+1
firebase_crashlytics: 0.1.3+3
palette_generator: 0.2.2
package_info: 0.4.0+16
uni_links: 0.2.0
app_settings: 3.0.1
table_calendar: 2.2.3
share: 0.6.3+6
recase: 3.0.0
rxdart: 0.23.1
email_validator: 1.0.4
dev_dependencies:
flutter_test:
sdk: flutter
dependency_validator: ^1.0.0
For information on the generic Dart part of this file, see the
following page: https://www.dartlang.org/tools/pub/pubspec
The following section is specific to Flutter.
flutter:
uses-material-design: true

@iapicca herewith the build log as requested
log.txt

Not clear what the specific issue is. The first and last post are pointing to entirely different things.
Your first post is about a CI build issue. It's failing to use a git command to determine the time of the last git commit. This can happen if the local git cloned repo is corrupt. It depends on what your CI build script is (e.g. did you delete the .git folder?).
From the output, it looks like you cloned flutter version 1.12.13+hotfix.9 and then git checked out something else.
The last post is a failure to build a specific third party package that has a bug https://github.com/Realank/flutter_datetime_picker/issues/124. There's code in the package that extends Diagnosticable which has always been a mixin.

Not related to #56479 which is a Dart compilation issue.

@xster thanks for the insight.
Just a quick one concerning your advise:
The issue is not with AppCenter exclusively, I reached out to the AppCenter team and they asked me to run the build locally using the same appcenter-post-clone script, I got the exact same error.
Our build script has not changed, and for the most part our script is boiler plate.
Regarding the output from AppCenter, we are indeed using flutter version 1.12.13+hotfix.9
Lastly, I would have to agree with you, the last post is not related we get the build failure/s when we upgrade flutter to version 1.17.0, I included it here because @iapicca had requested a verbose build log. The log was generated by the build process after I executed a force upgrade as advised.
We do not get these errors with flutter version 1.12.13+hotfix.9, hence our decision to stick with the working version. However, as stated before we are suddenly experiencing issues with flutter version 1.12.13+hotfix.9, we always had successful build until two days ago when it suddenly started failing on the git command.
For those in our team that has not upgrade flutter they seem to be able to run successful build, for the rest of the team that has upgraded we cannot produce successful build using the latest upgrade, even rolling back to flutter version 1.12.13+hotfix.9 after the upgrade does not work when you execute "flutter version 1.12.13+hotfix.9". The only way to fix the build issue is to download SDK v1.12.13+hotfix.9, and execute "flutter clean"
As I mentioned before, not much has changed in our project, the issue started out of the blue?
Here is our build script (some portions are redacted):
#!/usr/bin/env bash
#Place this script in project/ios/
#Fetch and update AppCenter build id for pubspec.yaml
PUBSPEC_YAML="$BUILD_REPOSITORY_LOCALPATH/pubspec.yaml"
DATESTAMP=$(date +"%y%m%d")
VERSION=grep version $PUBSPEC_YAML
VERSIONCODE=$DATESTAMP$APPCENTER_BUILD_ID
BUILD_VERSION=$VERSION+$VERSIONCODE
sed -i.bak "s/$VERSION/$BUILD_VERSION/" $PUBSPEC_YAML
rm -f $PUBSPEC.bak
gem install cocoapods --no-document
fail if any command fails
set -e
debug log
set -x
cd ..
[... redacted section ...]
inputJson="{${devJson}${testJson}${qasJson}${prdJson}}"
jq -n "${inputJson}" >assets/json/app_config.json
git clone -b stable https://github.com/flutter/flutter.git
export PATH=pwd/flutter/bin:$PATH
flutter version 1.12.13+hotfix.9
flutter doctor
flutter build ios --release --no-codesign

Hi
I had same problem
just removed:
git clone -b stable https://github.com/flutter/flutter.git
export PATH=pwd/flutter/bin:$PATH
flutter version 1.12.13+hotfix.9
and replaced with:
git stable https://github.com/flutter/flutter.git
export PATH=pwd/flutter/bin:$PATH
flutter version 1.12.13+hotfix.8
and built ok!

Hi
I had same problem
just removed: -b stable
I mean:
git clone -b stable https://github.com/flutter/flutter.git
export PATH=pwd/flutter/bin:$PATH
flutter version 1.12.13+hotfix.9
and replaced with:
git clone https://github.com/flutter/flutter.git
export PATH=pwd/flutter/bin:$PATH
flutter version 1.12.13+hotfix.8
and built ok!

@abbasaxx thanks for the tip, it did not work for me though. I do not get the git command failure, now I only get the pub get failure.

YES it is absolutely related!
because of getting first the stable version and then downgrade the version.
do another thing...
git clone  -b v1.12.13+hotfix.9 https://github.com/flutter/flutter.git
export PATH=`pwd`/flutter/bin:$PATH
flutter doctor

I hope it fixes it , I tested and no error!!

YES it is absolutely related!
because of getting first the stable version and then downgrade the version.
do another thing...
git clone  -b v1.12.13+hotfix.9 https://github.com/flutter/flutter.git
export PATH=`pwd`/flutter/bin:$PATH
flutter doctor

I hope it fixes it , I tested and no error!!

@abbasaxx - Thank you kindly, you saved my bacon!
using "git clone  -b v1.12.13+hotfix.9 https://github.com/flutter/flutter.git" did the trick

Hey folks, this is still happening when using v1.17.0 and later. Downgrading and/or manual builds and uploads are fine for now, but are there any leads on what caused this regression so we aren't stuck using old versions of the flutter SDK forever? :) Thanks!

I'm facing the same issue with the following version: flutter version v1.9.1+hotfix.6
`#!/usr/bin/env bash
#Place this script in project/ios/
fail if any command fails
set -e
debug log
set -x
cd ..
git clone -b beta https://github.com/flutter/flutter.git
export PATH=pwd/flutter/bin:$PATH
flutter channel stable
flutter version v1.9.1+hotfix.6
flutter doctor
echo "Installed flutter to pwd/flutter"
flutter build ios --release --no-codesign
`

Could everyone who still has this problem please file a new issue with the exact description of what happens, logs and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


removes float division from idiv in python_alu

Currently python_alu uses int(x/y) for integer division. This does not work for very large integers as the float casting is not precise enough. This pr replaces that with x//y, along with the required logic to make it truncate towards 0.
print(Tensor([18446744073709551612,], dtype=dtypes.uint64, device='PYTHON').div(Tensor([1,], dtype=dtypes.uint64, device='PYTHON'), upcast=False).numpy())

[0] #main
[18446744073709551612] #this pr

i think it logic can be simpler, also can you add a test for it?

Now with simpler logic. Test added for the failing case.
I can't find any tests for tensor integer division though - test_div_int() only seems to test float division with integer input.
Am I missing something or do randomized tests for integer division need to be added?

yea something like test_idiv next to test_div_int would be nice, does not need to be this pr


set value of sideEffects to false

What 💻
Set the value of option "sideEffects" in package.json to false.
Same as what ethers.js does: https://github.com/ethers-io/ethers.js/blob/main/package.json
Why ✋
There are bundled frontend applications that use zksync-ethers. This option will enable tree shaking. Bundles can be organized more efficiently, and in most cases less code will be fetched and parsed by clients, so performance can be improved.


Cant create playlists in radiant player

Hi,
Firstly well done for the app its awesome.
I have noticed that I am unable to create playlists in radiant player. Attempts to create, open the create dialog box. I can click create but the playlist doesn't show in the sidebar and if I login to the google play music website the playlist isn't their either.
Inversely I can create on the google play site and reload radiant to see the playlist. I can also dlete playlists from radiant just can create them.
Thanks

Tested this on Yosemite and el captian.

Dump of console when clicking to create a playlist:
[Error] CustomError: Error in protected function: null is not an object (evaluating 'pM')
	c
	(anonymous function)
[Error] CustomError: Error in protected function: null is not an object (evaluating 'this.fD.focus')
	c
	(anonymous function)
	dispatchEvent
	fire
	_finishRenderOpened
	_onNeonAnimationFinish
	handler
	dispatchEvent
	fire
	(anonymous function)
	(anonymous function)
	(anonymous function)
	(anonymous function)
	(anonymous function)
	(anonymous function)
	(anonymous function)
	forEach
	(anonymous function)
	c

After clicking create:
[Error] CustomError: Error in protected function: null is not an object (evaluating 'this.fD.value')
	c
	(anonymous function)

I think, this bug not in radiant player itself. It's in safari engine. I getting this in safari too. May be google made this to stimulate using chrome. I don't know. But this error is quite recent.

Good spot - I'd not noticed that before. Been using Chrome for too long.
I've logged a ticket on their support forum. Though I doubt I'll get a definitive response - that forum seems to be where issues go to die.
https://productforums.google.com/forum/#!topic/play/qmTJ-ZvjKC4

Closing since this is an external bug


[Bug] - Players unable to open DeathChest after being disconnected/kicked

A player disconnected from the server due to some connection issues after having died. Once they returned they were no longer able to open the chest.
How to replicate this issue:

Use the following config where chest-protection is enabled (link to pastebin of config)
Die and ensure a chest spawns
Disconnect and rejoin and you won't be able to open the chest anymore

Which plugin version do you use?

I'm using the latest build on spigot 1.5.17.

Sorry, I cannot reproduce it. But would you like to update the plugin to the newest version. Maybe it is fixed now. :)

Please give me a feedback if you tested it

This bug is still happening using the latest version

I tried it again but I can open the chest. Does the plugin throw an exception to the console? Can you send a list of the plugins do you use and would you like to create a video?

Here is a clip of me testing it including all the plugins that are currently running.
https://youtu.be/xkvitJFL-6g
DeathChest doesn't throw an exception in console when this bug occurs

Hey @MrPranklez,
I've done some testing as well but can't reproduce the bug, but...
I found something in the code that relates to the problem (https://github.com/DevCyntrix/death-chest/pull/38/commits/6b301075fc5f94882b9e7692cb875189b7c2f36a).
I changed the condition on how the check is performed and hope it will resolve the issue for you.
death-chest.zip (contains the plugin)

Hi @NonSwag,
Thanks for the help, however it seems that the jar in the zipped folder only contains a file of 64 bytes so I think something might have gone wrong with that.

Sorry, my fault, I've compressed a link to the file and not the file itself.
death-chest-1.5.19-all.zip

Hi @MrPranklez,
Is the bug fixed now?

Sadly not, I removed as good as all plugins and I still get the error when relogging on an account that died. I'm running the latest version of purpur as a server software.
Bukkit Plugins: BungeeGuard, CoreProtect, DeathChest, floodgate, LiteBans, LuckPerms, PlaceholderAPI, ProtocolLib, VoidGen, WorldGuard

Could you try it again using an original paper release?
All performance enhancements from purpur are already merged into paper.
In theory, you don't need purpur anymore. (except you want to ride any mob)

@DevCyntrix had messaged me on Discord on the matter and I did some further testing and using the last build he sent me the issue was resolved. I have tested it with the latest build of paper and purpur.


Handling of configuration revision

The attribute confRev that is part of a control block like GSEControl is standardized to:

Missing datSet : 0
New control block: 1
change anything about the control block offline +10000
change something about the control block +1

@JakobVogelsang , could explain further this issue ?
What should the conRef output be ?
What is the current behaviour ?
What is the expected behaviour ?


Unique 5

Issue #22:

Fixed the colors, y-axis label, and extra EOF space @jukent

Hi @michaelavs , is it possible to put your review anytime soon for this?


Need deployer username and timestamp variables in post-deployment of Devtron Template

Summary
Give us a few properties or variables like deployer username/email and deployment start time so that we can create a release event in an external performance monitoring tool to monitor post deployment performance issues.
Motivation
We are triggering a webhook to monitor our deployment metrics after every deployment for that we need the deployer username and deployment start to build time
Testing Guideline [Optional]
It would be great if you guys can provide us actually two timestamps, one when the deployment started and the second when the traffic is actually shifting to new pods.
AB#104

@manish-agrawal-ai Let's schedule this for DT-18

@Madhav-BharatPe
DEVTRON_CD_TRIGGER_TIME and DEVTRON_CD_TRIGGERED_BY env variable are now available in post CD steps


fix: escape stage name when running ensure_record_type task

Fixed a bug we recently ran into while attempting to run ensure_record_type task against an org where there exists an Opportunity StageName with a ampesand.

Glad I can contribute @jstvz

@jstvz just wanted to check, is this change scheduled for next release?

@jstvz just wanted to check, is this change scheduled for next release?

Yes.


M01-LAB01: Picture missing

Contact Details
<EMAIL_ADDRESS>What happened?
Exercise : 03
Task: 02
Step: 09
Description of issue: The picture is missing
Repro steps:

Launch the lab
Navigate to Lab 01
Navigate to Task 2 - Step 9

Lab
Lab 01 Agile Planning and Portfolio Management with Azure Boards
Relevant screenshots

Do you want to help us? 👏

[X] I agree to follow this project's Contribution Guide

looks like the issue is only related to LODS, not being able to render it correctly  using HTML

just worried it will look huge with no width limits on GitHub Pages

looks like {width} could be used for LODS, but no GitHub Pages https://github.com/LearnOnDemandSystems/docs/blob/master/guides/idl2/idlv2-authoring-guide-and-best-practice.md#embedded-content

lets just leave it big, I will approve the PR

@unaihuete93 the width is fixed in the LODS anyway (images get %100 from parent element), and students use that most of the time instead of GH pages. I couldn't test it in LODS but there is a way to specify the width using markdown. If you know of a way of testing it, happy to help

{width} works for LODS(https://github.com/LearnOnDemandSystems/docs/blob/master/guides/idl2/idlv2-authoring-guide-and-best-practice.md#embedded-content) but not for GitHub Pages (tested it), so lets leave it as proposed :)