Right-to-Left Text Direction for Arabic (and maybe other languages that are written from right to left)

Currently, the translation in the overlay is displayed as left to right text (LTR), which is not suitable for Arabic script. Arabic should be displayed from right to left (RTL) to ensure proper readability and user experience for Arabic-speaking users.
it is not enough to set alignment to right. the issue happens when there are some English words that have no direct Arabic translation so the translation ends up messy as an example for this text :

the translation is messy and words are misplaced:

the result should be displayed like this:

the issue should be fixed by changing the translation text direction to right-to-left before displaying the result on the overlay.

hello! Thank you for your comment
ill add the  overlay window right-align function first.
However, I don't know Arabic exactly, I don't know what additional work to do, and it's difficult to determine if it's working properly.
Therefore, proper support will likely take quite some time.
It would be of great help to me if you could create the code and upload it.

hello, tank you for the reply. sure i will take a look at it and try to fix it as soon as i can.

hello! Thank you for your comment ill add the overlay window right-align function first.
However, I don't know Arabic exactly then it's difficult to determine if it's working properly.
Therefore, proper support will likely take quite some time. It would be of great help to me if you could create the code and upload it.

I hope this site is useful to you
https://rtlstyling.com/posts/rtl-styling

i did manage to fix it but it is hard coded all i needed to do is add this line sf.FormatFlags |= StringFormatFlags.DirectionRightToLeft; in TransformLayer.cs:
using (Brush foreBrush = new SolidBrush(FormManager.Instace.MyMainForm.MySettingManager.TextColor))
{
                sf.Alignment = stringFormat.Alignment;
                sf.LineAlignment = stringFormat.LineAlignment;

---------->   sf.FormatFlags |= StringFormatFlags.DirectionRightToLeft;

Thanks for the code!
We'll add it in the next update.
I'm trying to set it to Advanced Settings -> App Settings -> "Read translated text from right to left".
This feature can be set in advanced settings, it is the system language, and mort will try to activate automatically when you run it for the first time.
Is there a more appropriate phrase other than “read the translated text from right to left”?
And are there any languages other than Arabic that should automatically activate this feature?

 Instead of "read the translated text from right to left," you could consider using "Display text in right-to-left (RTL) format" or "Enable right-to-left (RTL) text display." These phrases are more concise and specific to the action being performed.
Regarding languages other than Arabic that may require this feature, languages such as Hebrew, Urdu, Farsi (Persian), and some others are typically written from right to left. So, it would be prudent to include these languages as well to automatically activate the RTL feature.

https://drive.google.com/file/d/14VE3hniVD6Ycdry3f8eackmPi9th1Aqi/view?usp=sharing
here is RTL Test version

https://drive.google.com/file/d/14VE3hniVD6Ycdry3f8eackmPi9th1Aqi/view?usp=sharing
here is RTL Test version
Additional tab -> Advanced Setting -> App Setting -> General -> Display RTL Applies only to text translation results window

Hello, Firstly, I thank you for your effort
Text from right to left in (Translation Window Type) works with "Dark" and "layer" but don't work "Overlay"

Hello, I can confirm the statement made by @BlackFlagXKhX. It functions as expected in the Dark and Layered formats but not in the Overlay format.

Thank you for your feedback
ill fix it

https://drive.google.com/drive/folders/1TwH758-OSy_f5Q83TAZjm9YDbUQg6Qel?usp=drive_link
Here is a version that fixed issue

I hope you add Arabic to the DeepL translator.

i can confirm that everything is working as intended thank you for your time and effort!

ill add Arabic to the DeepL  next update


Using ridgeplot for sktime and skpro distributional predictions?

For a while I have now been thinking about what a good plotting modality would be for fully distributional predictions, i.e., the output of predict_proba in sktime or skpro.
The challnge is that you have a (marginal) distribution for each entry in a pandas-like table, which seems hard to visualize. I've experimented with panels (matplotlib.subplots) but I wasn't quit happy with the result.
Now, by accident (just curious clicking), I've discovered ridgeplot.
What would you think of using the look & feel of ridgeplot as a plotting function in BaseDistribution? Where rows are the rows of the data-frame like stucture, and mayb there are also columns (but I am happy with the single-variable case too)
The main difference is that the distribution does not need to be estimated via KDE, you already have it in a form where you can access pdf, cdf, etc, completely, and you have the quantile function too which helps with selecting x-axis range.
Plotting cdf and other distribution defining functions would also be neat, of course pdf (if exists), or cdf (for survival) are already great.
Imagined usage, sth like
fcst = BuildSth(Complex(params), more_params)
fcst.fit(y, fh=range(1, 10)
y_dist = fcst.predict_proba()

y_dist.plot() # default is pdf for continuous distirbutions
y_dist.plot("cdf")

Dependencies-wise, one could imagine ridgeplot as a plotting softdep like matplotlib or seaborn, of skpro and therefore indirectly of sktime.
What do you think?

Hey @fkiraly happy to see you here! Give me some time to take a look at this one as I'm not super familiar with that class of forecasters from sktime.

The main difference is that the distribution does not need to be estimated via KDE, you already have it in a form where you can access pdf, cdf, etc, completely, and you have the quantile function too which helps with selecting x-axis range.

If I understood correctly, this is completely fine when it comes to interacting with ridgeplot, since we also accept x-y traces as input -- bypassing the KDE step altogether


Intersection type disrupts generic inference

TypeScript Version:  3.0.3 and 3.2.1 (playground)

Search Terms:
generic infer intersection
Code
type SomeType = { }

type Foo = SomeType & { }
interface Bar extends SomeType { }
type FooBar = Foo | Bar

type InferA<T> = T extends FooBar<infer A> ? A : never

type FooA = InferA<Foo<number>> // {}
type BarA = InferA<Bar<number>> // number

Expected behavior:
FooA should have the type number, like BarA does
Actual behavior:
FooA has the type {}
Playground Link:
http://www.typescriptlang.org/play/#src=type SomeType %3D { }

type Foo %3D SomeType %26 { }
interface Bar extends SomeType { }
type FooBar %3D Foo | Bar

type InferA<T> %3D T extends FooBar<infer A> %3F A %3A never

type FooA %3D InferA<Foo<number>> %2F%2F {}
type BarA %3D InferA<Bar<number>> %2F%2F number
Related Issues:
Could not find any

The issue here is the type alias. A generic type alias is basically just a way to substitute something for A in the body; I don't believe there is any semantic notion of a 'type application'. As your alias body does not mention A the variable evaporates immediately. Interfaces are slightly different, which is why Bar works. If you rewrite Foo with an interface you get the right thing:
type SomeType = { }

type Foo = SomeType & R;
interface R {}

interface Bar extends SomeType { }
type FooBar = Foo | Bar

type InferA<T> = T extends FooBar<infer A> ? A : never

type FooA = InferA<Foo<number>> // number
type BarA = InferA<Bar<number>> // number

I'll include this link to the FAQ. Combining inference with generics that do not appear in the structure of types is probably going to lead to a suboptimal experience because of structural typing.

perhaps the strange thing then is that the type is preserved without the intersection?:
type SomeType = { }

type Foo = { }
interface Bar extends SomeType { }
type FooBar = Foo | Bar

type InferA<T> = T extends FooBar<infer A> ? A : never

type FooA = InferA<Foo<number>> // number

http://www.typescriptlang.org/play/#src=type SomeType %3D { }

type Foo %3D { }
interface Bar extends SomeType { }
type FooBar %3D Foo | Bar

type InferA<T> %3D T extends FooBar<infer A> %3F A %3A never

type FooA %3D InferA<Foo<number>> %2F%2F number


request is deprecated for a year.

Is there any chance that the tumblr team is migrating to something more up to date, like https://www.npmjs.com/package/node-fetch?

This is a priority issue we're working on.

This is a duplicate of #91


Adding state_class to temperature sensors

I would be great to see support for state_class in the temperature sensors. This would allow us to see longterm temperature trends...
https://developers.home-assistant.io/blog/2021/05/25/sensor_attributes/
Right now it looks like this
Klimaanlage Outside Temperature: 17
unit_of_measurement: °C
icon: mdi:thermometer
friendly_name: Klimaanlage Outside Temperature

Already been addressed in newer versions


How to close alert windows

Hello and thank you for your library,
is there a way to close an alert window with shellnium?
Thanks in advance!

nice issue and PR!


[Testing] Spin up a test blockchain for testing (and bind a contract instance to it)

For reference: https://github.com/trufflesuite/truffle/blob/next/packages/truffle-contract/test/util.js#L74-L101

Refer to: https://gist.github.com/adrianmcli/2c9dff19b81a36c52b9284c71fe3a4c0


Add support for manual token-based authorization

Fixes

https://issues.redhat.com/browse/HAC-940
https://issues.redhat.com/browse/HAC-1613
Description

Add support for manual token upload using SPI api.
Enable access check for quay.io urls.

Type of change

[x] Feature
[ ] Bugfix
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

Screen shots / Gifs for design review
https://user-images.githubusercontent.com/20013884/175023137-bb359854-34c7-4867-a654-984d8e8214ac.mp4

How to test or reproduce?

Enter a private git repo or container image
Select "Use a token instead" option

Browser conformance:

[x] Chrome
[x] Firefox
[ ] Safari
[ ] Edge

/retest

/retest

/cc @sahil143 @rohitkrai03

/retest

/retest

@rottencandy , once a repo is validated and then I change the URL. It continues to show Authorized Access.

Was happening because the fetched binding for previous URL was set after the handler for new URL is run, and it overwrote the authSecret.
Updated to only set secret if url hasn't changed after call. I've fixed repo validation behaviour in #130

/retest

/retest

/retest

/retest

/retest

/retest

/retest

/retest

cc @openshift/team-hacdev-ux

/lgtm


[AzureMonitorOpenTelemetryDistro] Update Readme

@reyang @cijothomas @vishweshbankwar Please review.

API change check
API changes are not detected in this pull request.

Called out AAD is an optional feature and added getting started samples. Please review.


[Grid] Change spacing

How can I change spacing of Grid component as it doesn't respect theme.spacing.unit
I want <Grid container spacing={8}> to have margin: -5px and its <Grid item> to have padding: 5px.
I did this in overrides key of theme.
MuiGrid: {
  container: {
    '&$spacing-xs-8': {
      margin: -5,
    }
  }

It worked with the container but not the item. How can I select Grid children of this container

@Richtervn I think that we should change the Grid API in v4. We can use 1,2,3,4 instead of hardcoded values 8,16,24,32. We can also make the Grid relies on the theme.spacing.unit value.

@oliviertassinari yeah, thanks. But right now, is it possible to select Grid item nested inside Grid container using jss withStyles and how can I do it ?

@Richtervn Yes, theme.overrides should work.

@oliviertassinari
but how, I tried
container: {
  '&$spacing-xs-8': {
     '$item' | '&$item' | '& $item' | ...
  }
}

Nothing work :( poor me

@Richtervn If you can setup a codesandbox, I can try and report back here.

@Richtervn Did you figure it out? I'm struggling with the same...

@mediafreakch yeah. I used overrides.
Here is an example how I override MuiGrid spacing={16}
container: {
    '&$spacing-xs-16': {
      width: `calc(100% + ${spacing.unit * 2}px)`,
      margin: -spacing.unit,
      '& $item': {
        padding: spacing.unit
      }
    }
  }

@Richtervn Thanks, just to be clear: You use overrides on the theme level?

@mediafreakch yeah
createMuiTheme({
  overrides: {
     MuiGrid: {
        container: .........
     }
  }
})

@oliviertassinari @Richtervn If nobody has took it already, can I try?

@ifndefdeadmau5 Sure, how do you want to handle the problem?

@ifndefdeadmau5 This change is breaking, we will only release it with v4.
Yes, I think that it's a matter of using theme.spacing.unit in the Grid component and of changing the spacing values prop types.
In @material-ui/system, we have introduced the support for unit as an array and a function. I think that it's interesting to support these values too.
Your help is welcomed. Skills are one thing, what's more important is the outcome. If you need to learn in order to complete the task, then do it. If you don't, it's even simpler :).

@oliviertassinari Got it. Would you please review my code if I submit a PR? I guess showing code is faster way to figure out whether I need to learn something or not

Yes

@ifndefdeadmau5 If we keep using static style sheets, we need to keep the GUTTERS variable, the only difference will be the values used:
-const GUTTERS = [0, 8, 16, 24, 32, 40];
+const GUTTERS = [1, 2, 3, 4, 5, 6, 7, 8];

Where is the dollar sign in &$spacing... documented? Does it work like a wild-card of sorts?


Crash with lots of threads on x64 executable

Hello,
We are developing a massively parallel application and are hitting the limits of the default Delphi memory allocator in this situation.
As a result, we are investigating replacements for which BrainMM appears to be a very promising candidate.
However, we are hitting an issue where we get InvalidPtr exceptions in the x64 version of our application. We narrowed it down to the following command line application:
program BrainMMTest;

{$APPTYPE CONSOLE}

uses
  BrainMM,
  System.Diagnostics,
  System.TimeSpan,
  System.SysUtils,
  System.Classes,
  System.Generics.Collections,
  Winapi.Windows;

{$R *.res}

type
  TTestThread = class(TThread)
  public
    procedure Execute; override;
  end;

var
  Stopwatch: TStopwatch;
  Elapsed: TTimeSpan;
  ThreadList: TList<TThread>;
  Threads: array of TTestThread;
  iGlobal: Integer;

const
  C_StrL = 16351;

{ TTestThread }

procedure TTestThread.Execute;
var
  CurrentStringList: TStringList;
  i: Integer;
  CurrentString: string;
begin
  CurrentStringList := TStringList.Create;
  try
    for I := 1 to 1571000 do
    begin
      SetLength(CurrentString, C_StrL);
      SetLength(CurrentString, 0);
      CurrentStringList.Add(IntToStr(Random(i)) + 'bob' + IntToStr(Random(i)));
    end;
  finally
    CurrentStringList.Free;
  end;
end;

begin
  try
    Stopwatch := TStopwatch.StartNew;

    SetLength(Threads, 40); // highly parallel
    ThreadList := TList<TThread>.Create;
    try
      for iGlobal := Low(Threads) to High(Threads) do
      begin
        Threads[iGlobal] := TTestThread.Create;
        ThreadList.Add(Threads[iGlobal]);
      end;

      while ThreadList.Count > 0 do
      begin
        if ThreadList[0].WaitFor = WAIT_OBJECT_0 then
          ThreadList.Delete(0);
        Sleep(10);
      end;
    finally
      ThreadList.Free;
    end;

    Elapsed := Stopwatch.Elapsed;
    Writeln(Format('BrainMM took %n milliseconds', [Elapsed.TotalMilliseconds]));
  except
    on E: Exception do
      Writeln(E.ClassName, ': ', E.Message);
  end;
  readln;
end.

In 32bits mode, either debug or release, it works fine and takes about 15s on my computer.
In 64bits mode, either debug or release, it rarely works in which case it takes about 7s. But most often, and even more so when run via the IDE (Delphi Seattle) it crashes almost immediately.
Looking at the call stack, the exception is raised by RaiseInvalidPtr from ResizeDifficult itself being called by BrainMMReallocMem which seems quite logical as the program above does a lot of memory reallocation.
Fiddling with different options, we discovered that defining PUREPASCAL at the top of the BrainMM unit makes the error disappear, which hints that the issue may be in the x64 version of the assembly code for BrainMMReallocMem.
However, we were not able to figure out what's wrong in that code, it's a bit too difficult for us to understand, let alone offer a fix.
Any suggestion would be most welcome.

As the test program above no longer crashed, we decided to try the PUREPASCAL mode inside our real application, but sadly it does not solve the issue completely, the exception is raised from the same location but at a less frequent pace.


Capture and detect

Included 2 classes: camera for frame capture and filter for filtering the coordinates. For each there is a simple test code too.

The filter and camera classes now fully working with tests written in filterTest.cpp and cameraTest.cpp

cameraTest.cpp and filterTest.cpp aren't in the src directory. Could you move?
There's no makefile as of yet. I can help you make one - what build options are you using/any compiler preference?

Reminder to merge main into your branch before you continue with this pull request.

$ ./wake-o-matic-main

(wake-o-matic-main:7540): GStreamer-CRITICAL **: 17:13:48.783: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
Camera started
Frame processing started
Action state machine started
terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(4.0.0) /home/pi/OpenCV_NEW/opencv-4.0.0/modules/objdetect/src/cascadedetect.cpp:1658: error: (-215:Assertion failed) !empty() in function 'detectMultiScale'

Aborted


ERROR [+1232] cannot find word in dictionary

I am getting the following error:
ERROR [+1232]  NumParts: Cannot find word 'ali in dictionary
FATAL ERROR - Terminating program HLEd
I checked the obvious ('ali is in the dictonary, and has the necessary backslash, capitalization is fine...).
Any suggestions?

The HTK backend (which is where that error is coming from) has a horrible
time with word-initial ASCII punctuation, but not in a way that is like,
documented, sigh.
Assuming the two strings are a perfect byte-for-byte match (no unicode
normalization issues, etc.), the best bet is to do without (or if this is
intended to be, say a glottal stop), sorry to say, or to escape it with .
On Wed, Jul 26, 2017 at 8:55 PM, Taylor Jones<EMAIL_ADDRESS>wrote:

I am getting the following error:
ERROR [+1232] NumParts: Cannot find word 'ali in dictionary
FATAL ERROR - Terminating program HLEd
I checked the obvious ('ali is in the dictonary, and has the necessary
backslash, capitalization is fine...).
Any suggestions?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/prosodylab/Prosodylab-Aligner/issues/63, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAJuObRcvZxnuU-TddxkquoRro9ElNC2ks5sR9_ngaJpZM4OkqjV
.

Thanks! I think I just sorted it out by just redoing the whole dictionary and transcripts. Now I'm on to a different error.


[Bug] Custom theme is reset when another Monaco bundle is loaded

Reproducible in vscode.dev or in VS Code Desktop?

[X] Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

[X] Not reproducible in the monaco editor playground

Monaco Editor Playground Code
No response
Reproduction Steps
Not reproducible in the playground since it requires multiple bundles.
Minimal repro can be found here: kycutler/multiple-monaco-bug

Define a custom theme and create an editor instance
Load a different bundle that contains monaco and creates an editor instance
Notice that the theme in the first editor gets reset

Actual (Problematic) Behavior
Separate bundles containing monaco should not interfere with one another. This behavior limits the ability to depend on components that use monaco.
Expected Behavior
No response
Additional Context
No response

This is caused by the rules in Monaco's global stylesheets overriding one another.
It would be great if the style selectors could be prefixed to make them more specific, e.g. .my-component .mtk1.
I can work around the issue by reaching into the stylesheet and modifying the rule selectors directly, but it would be much better if this was supported at the Monaco level.

I am running into a similar issue, I have a main editor mounted on the page (always visible) and tabbed section underneath it that has a "compiled code" tab (mounts a second read-only instance when visible).
Everything works fine as long as one of these two conditions is true:

only one editor is mounted on the page
multiple editors mount simultaneously

Where it gets problematic is when the second Monaco instance gets mounted later on in the app lifecycle as it will revert all instances on the page back to the default theme (I double checked and they are still getting the custom theme prop passed in). I mitigated this for now by calling setTheme() on every re-render but even then the default theme flashes for a brief moment before the custom one gets applied again.

We also have a use case for multiple editors with varied background colors: the main editor is white, while a secondary one in a panel is light gray.
I can adjust the CSS, but the minimap doesn't match the CSS color then.

我遇到了类似的问题，我在页面上安装了一个主编辑器（始终可见），其下方有一个选项卡式部分，其中有一个“编译代码”选项卡（可见时安装第二个只读实例）。
只要满足以下两个条件之一，一切都会正常进行：

页面上仅安装了一个编辑器
多个编辑器同时挂载

出现问题的地方是当第二个 Monaco 实例稍后在应用程序生命周期中安装时，因为它将把页面上的所有实例恢复为默认主题（我仔细检查过，它们仍然在获取传入的自定义道具theme）。我现在通过调用setTheme()每次重新渲染来缓解这个问题，但即使这样，默认主题也会在再次应用自定义主题之前闪烁一小会儿。

Brother, have you solved this problem? I am still using the latest version and there is still a problem of using multiple editors that may cause theme coverage


Can't find BasicPlayerController component documentation

I see BasicPlayerController component implemented into Threlte/ Rapier <world> showcase visualisation. This component is doing a lot under the hood and has a few properties. Sadly I can't find any documentation about this neither nor on Threlte or Rapier.

Someone can correct me if I'm wrong but it's something we won't be documenting within threlte as I think it's an abstraction rapier made

Someone can correct me if I'm wrong but it's something we won't be documenting within threlte as it's an abstraction rapier made

Thanks @DefinitelyMaybe  for picking this up. I see on Rapier's Charachter Controller completely different properties as on Threlte's. These from Threlte are there not mentioned:
position?: Parameters<Vector3['set']> | undefined;
height?: number | undefined;
radius?: number | undefined;
speed?: number | undefined;
jumpStrength?: number | undefined;
playerCollisionGroups?: CollisionGroupsBitMask | undefined;
groundCollisionGroups?: CollisionGroupsBitMask | undefined;
Probably Rapier's is poor documented that's why I think would be great to have a richer one in Threlte. Also under Threlte's default props I see an possible events delegation, but can't figure out how to pass this to this partial component.

wait no, I tell a lie, BasicPlayerController is a export we made. I'm not sure of the exact intentions but perhaps it is more of an example for folks to play around with, get started quickly and remix when needs change
In terms of character controllers a port of ecctrl would be something that I'd like to eventually support and document but it's not a current priority

wait no, I tell a lie, BasicPlayerController is a export we made. I'm not sure of the exact intentions but perhaps it is more of an example for folks to play around with, get started quickly and remix when needs change
In terms of character controllers a port of ecctrl would be something that I'd like to eventually support and document but it's not a current priority

Yes, eectrl, that looks more like it hehe. Of course, ecctrl looks very good in terms of settings. I hope that one day the port will be complete so that 3rd person games can be completed more quickly. Threlte is still very much behind R3F solutions but the future and performance belongs to Svelte / Threlte :)
Thank you guys for your support on this project!

☺ making 3D web stuff easy is the goal. Happy for folks to use different tools, we all end up learning from one another
I believe camera-controls has a third person mode if that'd help 😊


feat(Nav): Clear chats

Add the ability to clear chats, similar to clear conversations in ChatGPT.
Intentional difference is that clear is always shown instead of hidden until a chat exists.

ChatGPT version
PR version

Hey, I like this! There should always be a chat selected, can you add a call to addChat to the click handler?

Hey,
Thanks for the quick review. Umm... I think I already put one in, unless you mean elsewhere?

Ah sorry about that! Could you make it behave closer to how OpenAI's version does where it goes "Confirm Clear Chats" and then if select another chat that "Confirm" disappears, or if you click again it clears them. There's also the issue of the link becoming "active" when clicking

Could you make it behave closer to how OpenAI's version does where it goes "Confirm Clear Chats" and then if select another chat that "Confirm" disappears, or if you click again it clears them.

No worries at all. Updated with commit 55c49dba1262528c8737e909dd1af1c3f8b89e3c.
New behaviour:
https://user-images.githubusercontent.com/3478672/229333107-58200e93-48c5-4bd2-93be-3f036a53d419.mp4

There's also the issue of the link becoming "active" when clicking

Added event.preventDefault() to prevent button focus with commit 34e7479122b5a6514e3b4d6804dffc7329d329e5.

Nice one! 🙏


Button animation (neon)

Hey, I can make a pure html CSS button animation inspired by neon theme which looks cool and modern.
If u wish to add that to the repo, please do assign me this feature

go ahead 🚀


Repository.ref example should be updated

What article on docs.github.com is affected?
https://docs.github.com/en/graphql/reference/objects#repository

What part(s) of the article would you like to see updated?
The default branch in new repositories is main, so, I'd suggest using either main or example

ref (Ref) | Fetch a given ref from the repository.
Arguments
qualifiedName (String!)
The ref to retrieve. Fully qualified matches are checked in order (refs/heads/master) before falling back onto checks for short name matches (master).

Additional information

I believe this content is managed internally.
Also, this term could probably be updated site wide.

What article on docs.github.com is affected?
https://docs.github.com/en/graphql/reference/objects#repository
What part(s) of the article would you like to see updated?
The default branch in new repositories is main, so, I'd suggest using either main or example

ref (Ref) | Fetch a given ref from the repository.
Arguments
qualifiedName (String!)
The ref to retrieve. Fully qualified matches are checked in order (refs/heads/master) before falling back onto checks for short name matches (master).

Additional information
I believe this content is managed internally.
Also, this term could probably be updated site wide.

@jsoref  Thanks so much for opening an issue! I'll triage this for the team to take a look :eyes:

Thanks @jsoref, but the GraphQL docs are generated from the schema and therefore cannot be addressed in this repo.

@lecoursen: I'm hoping someone can file it internally. I'm not expecting to fix it here.

Thanks for clarifying @jsoref! You can contact support at https://support.github.com about fixing issues that reside outside of this repo.


describe how to use patterns solo

Closes #34.

For clarity, list as default false. Also, change "If it does not" to "if it is not"

Accepted, will be merged after modifications above made

Fixes made, merging


Detection of feature which uses custom renderer

Thank you for your interest in making OpenLayers better!
In order to get your proposed changes merged into the master branch, we ask you to please make sure the following boxes are checked before submitting your pull request.

[ ] This pull request addresses an issue that has been marked with the 'Pull request accepted' label & I have added the link to that issue.
[ ] It contains one or more small, incremental, logically separate commits, with no merge commits.
[ ] I have used clear commit messages.
[ ] Existing tests pass for me locally & I have added or updated tests for new or changed functionality.
[ ] The work herein is covered by a valid Contributor License Agreement (CLA).

@KoryakovskiyAA - thanks for your interest in contributing.  As suggested by the pull request template, we need a bit more information to be able to accept a contribution.
At a minimum, please describe what you are trying to accomplish with your proposed change.  Ideally, you could do this in a separate ticket.  Then we could have some discussion on the value of the feature and maybe some alternatives for the solution.
I'll close this pull request, but we can reopen it if you are able to describe what you are trying to achieve and get some buy in on the idea.
Thanks.


[WIP] SDK Documentation.

Work in Progress Documentation.
Progress can be watched at https://hernandev.github.io/sc2-sdk-php/

Codecov Report

Merging #5 into develop will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             develop       #5   +/-   ##
==========================================
  Coverage      15.38%   15.38%
  Complexity       215      215
==========================================
  Files             21       21
  Lines            468      468
==========================================
  Hits              72       72
  Misses           396      396

Continue to review full report at Codecov.

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


logs_assert contain logs from other tests

If the following tests run together, it will fail:
#[cfg(test)]
mod tests {
    use tracing::info;

    #[traced_test]
    #[test]
    fn no_log_from_other_test1() {
        info!("log count");
        logs_assert(|lines: &[&str]| {
            match lines
                .iter()
                .filter(|line| line.contains("log count"))
                .count()
            {
                1 => Ok(()),
                n => Err(format!("Count should be 1, but was {}", n)),
            }
        });
    }

    #[traced_test]
    #[test]
    fn no_log_from_other_test2() {
        info!("log count");
        logs_assert(|lines: &[&str]| {
            match lines
                .iter()
                .filter(|line| line.contains("log count"))
                .count()
            {
                1 => Ok(()),
                n => Err(format!("Count should be 1, but was {}", n)),
            }
        });
    }
}

I don't know if this is intentional. I created a PR to fix this problem.

See https://github.com/dbrgn/tracing-test/pull/19

Fixed in #19.


Support reduction+elementwise in transform dialect strategies

Add a handwritten and a generated transform dialect schedule to support codegen for reduction+elementwise targeting CUDA. Unlike standalone reduction, this needs additional fusion into the trailing elementwise. The transform dialect generated on-the-fly differs when the elementwise is present. This should be eventually expressed in the dialect itself, but we are currently lacking the necessary ops.

thanks!
On Fri, Nov 25, 2022 at 1:18 PM ftynse @.***> wrote:

Merged #11288 https://github.com/iree-org/iree/pull/11288 into
transform-dialect-bringup.
—
Reply to this email directly, view it on GitHub
https://github.com/iree-org/iree/pull/11288#event-7892758304, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACNNU5E6MZ4NJJZZB6RG7ITWKCVDFANCNFSM6AAAAAASKR7KLA
.
You are receiving this because your review was requested.Message ID:
@.***>

--
N


Replaced "reversely" with "conversely"

The former is not a word.  I think the latter was intended.

@grego33 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off


[3pts] Recipe details

Should have a modal to choose an inventory to create a shopping list with, as in the wireframe.


bug-report: skip coredump and netstat commands for distroless installation

Please provide a description of this PR:
Issue: #37235
Distroless containers do not have utilities like netstat and find. So commands ran to gather these information for bug report were failing.
This PR determines whether the installation is distroless or not. If it is distroless, it'll skip execution of those commands.

Hi @Kaushal28. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

/ok-to-test

@Kaushal28: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-notes_istio
9a233833cd480da9e493604a885e6d06d3279cdc
link
true
/test release-notes

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@Kaushal28: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-notes_istio
9a233833cd480da9e493604a885e6d06d3279cdc
link
true
/test release-notes

lint_istio
9a233833cd480da9e493604a885e6d06d3279cdc
link
true
/test lint

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@Kaushal28: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-notes_istio
9a233833cd480da9e493604a885e6d06d3279cdc
link
true
/test release-notes

lint_istio
9a233833cd480da9e493604a885e6d06d3279cdc
link
true
/test lint

gencheck_istio
9a233833cd480da9e493604a885e6d06d3279cdc
link
true
/test gencheck

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest-required

@Kaushal28: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

lint_istio
9a233833cd480da9e493604a885e6d06d3279cdc
link
true
/test lint

gencheck_istio
9a233833cd480da9e493604a885e6d06d3279cdc
link
true
/test gencheck

release-notes_istio
9ec3c3af0e42aff4481939ff2d017354f1ca7cef
link
true
/test release-notes

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest-required

@Kaushal28: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

lint_istio
3cfd6b0a8a54b11691e2c0035b3dfeaec1a40e34
link
true
/test lint

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest-required

@Kaushal28: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

lint_istio
7e56176530ca17afe825625cd021f2d25d7ed294
link
true
/test lint

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest-required

PR needs rebase.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


Deemphasize tuotial setup

@vDonGlover,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


Up-to-date typings (like lib.dom.d.ts) for older versions

Search Terms
typings
Suggestion
The proposal is to introduce a maintenance-friendly mechanism to be able to use up-to-date typings in older versions of TypeScript.
Use Cases
Often, we can't just bump up the TS version due to limitations in dependencies. However, JS and DOM APIs are constantly evolving and typings like lib.dom.d.ts are frequently updated to reflect those. But we have to wait until we're able to switch to the latest TS to use the newest APIs without tricks like tons of any casting, introducing temporary typings (which might not work with conflicting API changes).
Examples
Here is a specific use case. Angular 6 forces the maximum TypeScript version to be 2.9.2. However, IndexedDb-related types were added starting from TS 3 only. The following pretty basic code to start working with IndexedDb won't compile with TS 2.9.2:
const storage: StorageManager = navigator.storage;

due to an error:

Property 'storage' does not exist on type 'Navigator'.

But it perfectly compiles with TS 3.0.3.
So, we'd like some mechanism to alleviate this. For example, it could be a @types package which replaces lib.dom.d.ts from the current TS compiler by the newest one available in the latest TS.
Checklist
My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript / JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. new expression-level syntax)

Isn't this just noLib + whatever distribution mechanism you prefer for the replacement files?

Closing due to lack of follow-up


Updating set bonus points endpoint to return all solution entities affected by the change.

…Fixing some related issues in fixtures (tests).

Codecov Report

Merging #442 (bba859b) into master (1438f97) will increase coverage by 0.02%.
The diff coverage is 95.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##           master     #442      +/-   ##
==========================================
+ Coverage   69.39%   69.42%   +0.02%
==========================================
  Files         462      462
  Lines       17184    17199      +15
==========================================
+ Hits        11925    11940      +15
  Misses       5259     5259

Impacted Files
Coverage Δ

app/model/entity/AssignmentSolution.php
98.11% <ø> (ø)

app/model/view/AssignmentSolutionViewFactory.php
92.64% <ø> (ø)

...Module/presenters/AssignmentSolutionsPresenter.php
82.91% <93.75%> (+1.29%)
:arrow_up:

app/model/entity/AssignmentSolutionSubmission.php
78.57% <100.00%> (+3.57%)
:arrow_up:

app/model/repository/AssignmentSolutions.php
84.29% <100.00%> (+1.65%)
:arrow_up:

... and 4 files with indirect coverage changes


Implement setting to define power for unavailable devices

Todo:

[ ] Add documentation

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

6 of 6 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.006%) to 97.238%

Totals

Change from base Build<PHONE_NUMBER>:
0.006%

Covered Lines:
2570

Relevant Lines:
2643

💛  - Coveralls


Remove MPI variants from tempest-remap

Since tempest-remap doesn't use MPI, it doesn't need to build MPI variants.

Checklist

[ ] Used a fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I wanted to let you know that I linted all conda-recipes in your PR (recipe) and found some lint.
Here's what I've got...
For recipe:

Selectors are suggested to take a <two spaces>#<one space>[<expression>] form. See lines [75, 85]

For recipe:

License is not an SPDX identifier (or a custom LicenseRef) nor an SPDX license expression.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.
I do have some suggestions for making it better though...
For recipe:

License is not an SPDX identifier (or a custom LicenseRef) nor an SPDX license expression.

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender


Bug in CudaFloatDataBuffer that causes CUBLAS_STATUS_MAPPING_ERROR

It is in CudaFloatDataBuffer.put(int i, float element). The code path leads to cublasSetVector(), which expects a pointer to host memory, so we don't need to allocate a device memory for that.
Suggested fix:
@Override
public void put(int i, float element) {
    float[] data = new float[]{element};
    Pointer p = Pointer.to(data);
    // Pointer p = KernelFunctions.alloc(data);
    set(i, p);
    // JCublas.cublasFree(p);
}

Fixed.


MINOR: Fix link to old doc in quickstart

In Kafka's quickstart a link points to the 2.5 Kafka Streams demo.
This PR fixes this link.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

Call for reviews: @bbejeck

Once merged, the commit needs to be cherry-picked to 3.2.


"ComicTagger" is damaged and can't be opened.

Latest posted release, Alpha 5, does not open on macOS Sonoma 14.0. Issue does not occur on Alpha 4.
ComicTagger-1.6.0a5-osx-11.7.8-x86_64.app.zip

Please see https://github.com/comictagger/comictagger/wiki/Opening-3rd-Party-Apps-on-MacOS

Thanks for the link, but unfortunately that isn't the issue. I know how to open 3rd party apps and did so with the previous build. That error message also looks different:

The Alpha 5 build is corrupted for whatever reason. Please see the screenshot in my original post.

 Thank you for the additional notes. It does appear to open correctly now.

Apple has made some questionable decisions. Windows at least tells you that it's blocked instead of saying it's corrupt (assuming you even turn on that option on Windows)


[Suggestion] Add embedded stackblitz examples on documentation page

Creating interactive examples will help users to understand the functionality of each utility in more detail.
I got this idea from VueUse. I'm not sure if its possible to embed complete Angular application within Astro. But we can embed Stackblitz examples to help users to play with each utility in the browser.

As of this moment, no. There's no straightforward way to render Angular components in Markdown yet (Brandon might come up with something though, I'll check with him).
Embedded Stackblitz sounds good to me but managing the examples can be tricky. Do you have any suggestions on managing Stackblitz examples?

I could render Angular component in plain Astro app by using Analog's Astro plugin. But I cant get the plugin working with Starlight (it breaks loading the homepage after adding the plugin, even without loading any Angular component).
TypeError: Cannot read properties of undefined (reading 'hidden')
    at /Users/vinit/Desktop/Angular/ngxtension-platform/docs/node_modules/.pnpm/@astrojs+starlight@0.9.1_astro@3.0.13/node_modules/@astrojs/starlight/utils/navigation.ts:151:44
    at Array.filter (<anonymous>)
    at treeify (/Users/vinit/Desktop/Angular/ngxtension-platform/docs/node_modules/.pnpm/@astrojs+starlight@0.9.1_astro@3.0.13/node_modules/@astrojs/starlight/utils/navigation.ts:151:4)
    at groupFromAutogenerateConfig (/Users/vinit/Desktop/Angular/ngxtension-platform/docs/node_modules/.pnpm/@astrojs+starlight@0.9.1_astro@3.0.13/node_modules/@astrojs/starlight/utils/navigation.ts:92:15)

I feel like I'm missing some configuration somewhere.
I am in favor of rendering Angular directly instead of Stackblitz as it will help us prevent updating the Starblitz examples everytime we make a new version.

https://blog.stackblitz.com/posts/announcing-tutorialkit/
You know the "Learn Angular" format on the new docs? Info on the left and live code on the right? That's what this is like, and it runs a real app directly in Astro.
I got this working with an Angular example. I can deploy it if anyone is interested, otherwise just run it locally: https://github.com/michael-small/angular-TutorialKit-hello-world

Basically, there could be a project for the docs, and then for a given util it is embedded in a component. Then the doc site's header points at a copy of that component which is inside of the given doc page. That doc page runs the app with that instance of the component, embedded in a preview, and editable.
My example was just my hello world, but that is a copy of the app.component.html inside of "Basics > Introduction > Welcome to TutorialKit" section

https://ng-tutkit-ngxtension-ms.firebaseapp.com/ngxtension/injectables/injectqueryparams/
https://github.com/michael-small/angular-TutorialKit-hello-world
Disclaimer: I can change the name, but that's what I called my firebase project. Not a project owner lol.
I made and deployed examples for injectParams and injectQueryParams

Documentation copy is verbatim from the ngxtension docs.
Example code that is run on the right is somewhat similar but diverges from the doc's code. I just wanted to get something going to show.

I am still figuring out the basics of TutorialKit integration of Angular, as well as hosting with Firebase in general, so this is a bit rough. Also I am bad at routing in general so I made some weird choices as stuff only happened while it was deployed. But it works.
Thoughts?

@michael-small nice work!
The internal app is for utilities that make more sense to be tested in an e2e environment like Resize.
I'd love this for our docs but we need to discuss about the DX part of this like how we going to support the current utilities and make adding new utilities easy.

Thank you

The internal app is for utilities that make more sense to be tested in an e2e environment like Resize.

Yeah, I liked the internal one for testing out my feature as I made it. Makes sense it would be better for e2e.

I'd love this for our docs but we need to discuss about the DX part of this like how we going to support the current utilities and make adding new utilities easy.

Yeah, I imagined this would be a big commitment to consider and implement and build into the future flows.
My intent with this deployment other than this being a proof of concept for ngxtension if deemed a good/viable resource was getting used to TutorialKit for Angular and documenting what I use in work projects. Going down the line I intend to knock out filterNil/signalSlice/navigationEnd/callApply/rxEffect for my own reference and my team. So if nothing comes of this officially for ngxtension, I intend to keep up this firebase deploy for those functions.

@msmallest I honestly have no time to focus on this so if you'd like to spear head this, I'll support you in every way I can. Otherwise, this has to wait a bit longer.

@michael-small Do you still have the source code up somewhere? The GitHub link is sadly broken.
I've would have really liked to take a look at the setup you've used.

@Dafnik I don't know why it was private, I thought it was public, sorry. Should be public now.
I haven't done much in the last couple weeks on it but there is some utils on there so far.


Decide the library name and stick the code to it.

There are several names in the code, as dt_tclib, dtc, dtclib. Decide one and homogenize the code.

I think dtc is the better option.

We need to rename all tchsm project's names. This particular one should be tchsm-libdtc

Donw


Update version to include tvOS support

tvOS support was added in a recent commit: https://github.com/boredzo/iso-8601-date-formatter/commit/590e7cf76b504839de1cd8b3c2efab282ae78a27 and it would be very useful on my current project.
What is the time frame to get the new version of the pod published?

+1 @boredzo would be cool to have an updated pod.

This was released this morning in 0.8.


Addresses tab issue in yaml file plus adds empty line at end of files…

… as recommended for yaml.

Addresses #42


Update api documentation

Assignment 1 - Nur Faiqah binti Ahmad Azman (U2001400)

Reengineering Task: Documentation

Component: api

Addressed Issues

_init_.py

Minimal descriptions of classes and functions.
Missing details about parameters, return values, and exceptions.
Limited usability and maintainability due to inadequate guidance for developers.

What has been Reengineered

_init_.py

Documented all classes and functions with clear explanations of their purpose and behavior.
Included information on parameters, return values, and exceptions for each function.
Standardized the use of docstrings across the module for uniformity and better readability.
Structured the documentation to align with best practices for Python docstrings (e.g., PEP 257).

Reengineering Strategy or Approach Used

Understanding the Module: Analyzed the functionality of classes and methods to ensure accurate descriptions.
Docstring Implementation: Adopted a structured approach to add detailed docstrings for each component.
Standardization: Ensured consistent formatting and terminology throughout the documentation.

Impact of Changes

Enhanced Usability: Improved the developer experience by providing clear and detailed documentation.
Improved Readability: Simplified understanding of the module’s functionality.
Better Maintenance: Facilitated easier updates and modifications by providing a clear reference for the codebase.

ok


As a user, I can calculate the total grade based on currently accumulated results

so that I can see what grade I am currently at based on continual assessments done.

Done,


VAC Error

http://prntscr.com/h3qtup
I just got vac error-ed using this. Is it cause of the junk code?
UPDATE: I have removed most of the junk code and it still vac errors me :/

This is by design, the code injects itself into CS:GO. It essentially does what a cheat would do, so don't use it on Secure Servers.

Whatever "junk code" you did you did it wrong and its still detected, which gets you kicked. if you want an easy way of changing the resulting code significantly i can recommend tampering around with compile options, or using another compiler


Set the title to just the conference name

Remove the date requirements for the conference date in the title

Need a little more context on where to make this change. Do I have to remove the date from the episdoe_template

Happy to help with this - I've renamed the issue to the correct format that we're going with. You would need to replace it in the title of the issue template.

The fix looks like we need to just add the year.


Transition to Flow Router

Flow Router is the Future!

Complete, https://github.com/austinsand/doc-roba/commit/8bfd137d7c3a082b6094518b64c029669cb43348


[rt.openssl.org #4631] Another DTLS1_BAD_VER regression in 1.0.2

Migrated from rt.openssl.org#4631 (status was 'new')
Requestors:

<EMAIL_ADDRESS>
Attachments:

0001-Fix-SSL_export_keying_material-for-DTLS1_BAD_VER.patch
smime.p7s

From<EMAIL_ADDRESS>on 2016-07-26 11:04:55:
This fix and and some other regression fixes, along with a test case,
are lined up for HEAD/1.1 in Github PR #1296.

This one is also needed in 1.0.2.

--
David Woodhouse                            Open Source Technology Centre
<EMAIL_ADDRESS>                            Intel Corporation

I thought all DTLS1_BAD_VER issues were solved. Perhaps @dwmw2 can advise.

Indeed. We fixed this in 1.0.2 with commit df426c069, backported from commit c8a18468ca in master.
The test cases for DTLS1_BAD_VER, which are even in 1.0.2 now, should hopefully keep it working going forward.

Great. Thanks. Closing.


[client] same button for travel/explore

when you click on army, you need to then click on travel OR explore. The player shouldn't have to click on either, and just click on where it wants to move on the map. Then based on if it's explored or not the UI can assume exploration or travel

We can show tooltip with info instead of action button.
Like if you hovering over unexplored hex you will see this text: "Click to explore: -50 %resource name%".
And if hex is explored you will see other text: "Click to travel: -5 stamina"

that would be cool


Install DPF within both the documentation and unit testing workflow

To start shifting over to using DPF, we need to install DPF during our GH workflows.  For example, we would add it here in our documentation build:
https://github.com/pyansys/pymapdl/blob/4aa4afd49626d70b1516ac58c8738b6684abdc61/.github/workflows/ci.yml#L130
pinging @pprofizi

@akaszynski, @germa89, @PProfizi a new github action has been created to install dpf server on linux and windows for Ansys 2022R1. You can refer to the ReadMe in pydpf-actions repo and ask @rlagha for a "DPF_PIPELINE" token to proceed


User Agent in Chef Client 12.4.1 and above is "Chef Knife"

Anyone experiencing this?  When we upgraded a bunch of our nodes to 12.4.1 and above, we noticed from our Chef Server logs that the user agent is now Chef Knife.
I can see from this code that its hardcoded as Chef Client, but something must be overriding it.
https://github.com/chef/chef/blob/943bcdeb5ec0911ff0a0d2d9841d7060b3b6f963/lib/chef/http/http_request.rb#L43-L44
Before:
Chef Client/11.16.4 (ruby-1.9.3-p547; ohai-7.4.0; x86_64-linux; +http://opscode.com)

After:
Chef Knife/12.4.3 (ruby-2.1.6-p336; ohai-8.5.1; x86_64-linux; +http://opscode.com)

What is also strange is that http://opscode.com should have been http://chef.io. This change for chef.io is only a chef-client 12.5.1-ism.  Everything about User agent changing is applicable.

Yep, I noticed this as well. Something must be overriding it because it's not using the default: https://github.com/chef/chef/blob/943bcdeb5ec0911ff0a0d2d9841d7060b3b6f963/lib/chef/http/http_request.rb#L70

require 'chef/knife' is coming in via cheffish:
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.4.4/lib/chef/knife.rb:36:in `<class:Knife>': WTF? (RuntimeError)
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.4.4/lib/chef/knife.rb:34:in `<class:Chef>'
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.4.4/lib/chef/knife.rb:33:in `<top (required)>'
	from /opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/cheffish-1.5.0/lib/cheffish.rb:231:in `<top (required)>'
	from /opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:128:in `require'
	from /opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
	from /opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:39:in `require'
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.4.4/lib/chef/resources.rb:87:in `<top (required)>'
	from /opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.4.4/lib/chef.rb:26:in `<top (required)>'
	from /opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.4.4/lib/chef/application/apply.rb:20:in `<top (required)>'
	from /opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.4.4/bin/chef-apply:23:in `<top (required)>'
	from /opt/chefdk/bin/chef-apply:54:in `load'
	from /opt/chefdk/bin/chef-apply:54:in `<main>'

@jkeiser just noticed this too and it's actually breaking some of our internal tooling which checks if calls are coming from a Chef Client of from a user (using Knife or the WebUI). So having this fixed in the next release would be awesome! Thx!

@jkeiser @lamont-granquist ping... It's been a few months, would be really great if this could be fixed in the next Chef client release. Thanks!

We should probably be setting this in the knife application class rather than a require.

So at least in 12.6.0 if you don't use cheffish resources, the requires for cheffish won't fire and knife won't get slurped in.  Still a bug in cheffish, imo.
@jkeiser why does cheffish have to pull in 'chef/knife', its not knife so that seems wrong...   smells like some common code needs to get extracted into something that can be included into both, or that the require in cheffish is just too broad...

You can change the user agent by adding this line to your recipe:
Chef::HTTP::HTTPRequest.user_agent = "Chef Client/11.16.4 (ruby-1.9.3-p547; ohai-7.4.0; x86_64-linux; +http://opscode.com)"


Latest-stable points to Xcode Beta

See attached image, latest-stable points to Xcode 12.2.
As of today (September 23rd), latest stable Xcode version is 12.0. Xcode 12.2 is still in beta.

Hello @victorBaro , thank you for reporting this issue!
Acknowledged.
For previous Xcode versions, GH Actions images have the following approach:

stable versions of Xcode were installed to /Applications/Xcode_<VERSION>.app and symlink to /Applications/Xcode_<VERSION>_beta.app
beta versions were installed to /Applications/Xcode_<VERSION>_beta.app and was symlinked to /Applications/Xcode_<VERSION.app
Action determines stable version based on this logic.

Recently, this logic was changed and Xcode 12.2 beta installed in /Applications/Xcode_12.2.app and no symlink to /Applications/Xcode_12.2_beta.app.
I guess we need more reliable way to check whether Xcode is stable or not.
I think we can parse <XCODE_ROOT>/Contents/Resources/LicenseInfo.plist file that contains property licenseType:

I will try to provide solution soon

Draft PR: https://github.com/maxim-lobanov/setup-xcode/pull/7

@victorBaro , I have merged fix to master via #7
Could you please try to specify uses: maxim-lobanov/setup-xcode@master in your workflow and confirm that everything works as expected for you?
After that I will update tags.

Updated v1.1 tag, uses<EMAIL_ADDRESS>should work as expected.

Thanks for the quick response @maxim-lobanov
All good now 👍


Provide an importable module

Allows this from other packages:
const ScratchBlocksVertical = require('scratch-blocks');
const ScratchBlocksHorizontal = require('scratch-blocks/dist/horizontal');

How it works:
When another package requires scratch-blocks, webpack looks at the package.json and finds the webpack entry pointing to shim/index.js.

shim/index.js exports horizontal and vertical Blockly from msg/messages.js

This requires goog from shim/blockly_compressed_[horizontal,vertical].goog

shim/blockly_compressed_[horizontal,vertical].goog exports the goog var from the actual blockly_compressed_[horizontal,vertical]

Blockly is provided from shim/blocks_compressed_[horizontal,vertical].Blockly

shim/blocks_compressed_[horizontal,vertical] exports Blockly from blocks_compressed, but the Blockly provided to blocks_compressed is the one exported by shim/blockly_compressed_[horizontal,vertical].Blockly
shim/blockly_compressed_[horizontal,vertical].Blockly exports Blockly from shim/blockly_compressed_[horizontal,vertical]
shim/blockly_compressed_[horizontal,vertical] exports {goog: goog, Blockly: Blockly} from blockly_compressed_[horizontal,vertical]

The intermidate shims are required due to the way the imports and exports loaders work — you can't do a multi-level loading, or this would be simpler to do.  You can also set this up more simply in webpack (see first commit), but then you would need to build something for other packages to import. This makes a persistent shim that just exports the product of the compressed files (and messages.js).
Other packages don't need to know about the details of this shimming process: imports-loader and exports-loader will be provided by this package when webpack requires the modules out of this package.

I decided it would be better if we provided a module that could be imported without webpack (e.g., for tests).  If you want to you can still import the unbuilt module, but for efficiency, the vertical library is the default imported when you require('scratch-blocks').

Looks great. Thanks @rschamp


building for macOS-arm64 but attempting to link with file built for macOS-x86_64

Steps to Reproduce

Update your Mac to Big Sur
Run flutter create bug
Run flutter run --release and select macos as target

Actual results:
flutter run --release
Multiple devices found:
Pixel XL (mobile)         • HT6A80200946                             • android-arm64  • Android 10 (API 29)
iPhone von Ralph (mobile) • 3fbe4929eec22152a0ffdbaa8c5afef34ebcaafc • ios            • iOS 14.0.1
macOS (desktop)           • macos                                    • darwin-x64     • macOS 11.0.1 20B29 darwin-x64
Web Server (web)          • web-server                               • web-javascript • Flutter Tools
Chrome (web)              • chrome                                   • web-javascript • Google Chrome 86.0.4240.193
[0]: Pixel XL (HT6A80200946)
[1]: iPhone von Ralph (3fbe4929eec22152a0ffdbaa8c5afef34ebcaafc)
[2]: macOS (macos)
[3]: Web Server (web-server)
[4]: Chrome (chrome)
Please choose one (To quit, press "q/Q"): 2
Running "flutter pub get" in foo...                                278ms
Launching lib/main.dart on macOS in release mode...
Command CompileSwift failed with a nonzero exit code
ld: warning: ignoring file /Users/ralphbergmann/development/projects/flutter/foo/macos/Flutter/ephemeral/App.framework/App, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /Users/ralphbergmann/development/projects/flutter/foo/macos/Flutter/ephemeral/FlutterMacOS.framework/FlutterMacOS, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_FlutterAppDelegate", referenced from:
      type metadata for foo.AppDelegate in AppDelegate.o
  "_OBJC_CLASS_$_FlutterViewController", referenced from:
      objc-class-ref in MainFlutterWindow.o
  "_OBJC_METACLASS_$_FlutterAppDelegate", referenced from:
      _OBJC_METACLASS_$__TtC3foo11AppDelegate in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
** BUILD FAILED **

Building macOS application...
Exception: Build process failed

flutter doctor -v
[✓] Flutter (Channel master, 1.24.0-8.0.pre.252, on macOS 11.0.1 20B29 darwin-x64, locale de-DE)
    • Flutter version 1.24.0-8.0.pre.252 at /Users/ralphbergmann/development/sdks/flutter
    • Framework revision bf2c9dfc05 (10 hours ago), 2020-11-14 22:38:02 -0500
    • Engine revision 3e77d854a7
    • Dart version 2.12.0 (build 2.12.0-45.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at /Users/ralphbergmann/development/sdks/android-sdk
    • Platform android-30, build-tools 30.0.1
    • ANDROID_HOME = /Users/ralphbergmann/development/sdks/android-sdk
    • Java binary at: /Users/ralphbergmann/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.6953283/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B45b
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Users/ralphbergmann/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.6953283/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Ultimate Edition (version 2020.2.3)
    • IntelliJ at /Users/ralphbergmann/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • Flutter plugin installed
    • Dart plugin version 202.7319.5

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

[✓] Connected device (4 available)
    • Pixel XL (mobile) • HT6A80200946 • android-arm64  • Android 10 (API 29)
    • macOS (desktop)   • macos        • darwin-x64     • macOS 11.0.1 20B29 darwin-x64
    • Web Server (web)  • web-server   • web-javascript • Flutter Tools
    • Chrome (web)      • chrome       • web-javascript • Google Chrome 86.0.4240.193

• No issues found!

If I open macos\Runner.xcodeproj in Xcode and hit the run button, the app runs

logs
[ +118 ms] executing: [/Users/tahatesser/Code/flutter_master/] git -c log.showSignature=false log -n 1
--pretty=format:%H
[  +50 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] bf2c9dfc05a6d281e7d303689f1af9add4030230
[   +1 ms] executing: [/Users/tahatesser/Code/flutter_master/] git tag --points-at HEAD
[  +33 ms] Exit code 0 from: git tag --points-at HEAD
[   +2 ms] executing: [/Users/tahatesser/Code/flutter_master/] git describe --match *.*.* --long --tags
[  +82 ms] Exit code 0 from: git describe --match *.*.* --long --tags
[   +1 ms] 1.24.0-7.0.pre-252-gbf2c9dfc05
[  +25 ms] executing: [/Users/tahatesser/Code/flutter_master/] git rev-parse --abbrev-ref --symbolic @{u}
[  +28 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] origin/master
[        ] executing: [/Users/tahatesser/Code/flutter_master/] git ls-remote --get-url origin
[  +31 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] https://github.com/flutter/flutter.git
[ +105 ms] executing: [/Users/tahatesser/Code/flutter_master/] git rev-parse --abbrev-ref HEAD
[  +19 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] master
[  +16 ms] executing: sw_vers -productName
[  +30 ms] Exit code 0 from: sw_vers -productName
[        ] macOS
[        ] executing: sw_vers -productVersion
[  +28 ms] Exit code 0 from: sw_vers -productVersion
[        ] 11.0.1
[        ] executing: sw_vers -buildVersion
[  +22 ms] Exit code 0 from: sw_vers -buildVersion
[        ] 20B29
[   +1 ms] executing: sysctl hw.optional.arm64
[  +10 ms] Exit code 1 from: sysctl hw.optional.arm64
[        ] sysctl: unknown oid 'hw.optional.arm64'
[  +70 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +8 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +78 ms] executing: /Users/tahatesser/Code/sdk/platform-tools/adb devices -l
[   +9 ms] executing: /usr/bin/xcode-select --print-path
[  +10 ms] Exit code 0 from: /usr/bin/xcode-select --print-path
[        ] /Volumes/Extreme/Xcode.app/Contents/Developer
[   +1 ms] executing: sysctl hw.optional.arm64
[   +5 ms] Exit code 1 from: sysctl hw.optional.arm64
[        ] sysctl: unknown oid 'hw.optional.arm64'
[        ] executing: xcrun xcodebuild -version
[ +581 ms] Exit code 0 from: xcrun xcodebuild -version
[   +1 ms] Xcode 12.2
           Build version 12B45b
[   +3 ms] executing: xcrun xcdevice list --timeout 2
[   +7 ms] xcrun simctl list --json devices
[        ] executing: xcrun simctl list --json devices
[  +16 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +78 ms] executing: /Users/tahatesser/Code/sdk/platform-tools/adb devices -l
[        ] executing: xcrun xcdevice list --timeout 2
[        ] xcrun simctl list --json devices
[        ] executing: xcrun simctl list --json devices
[  +22 ms] Skipping pub get: version match.
[ +154 ms] Generating
/Users/tahatesser/AndroidStudioProjects/master_flutter/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegis
trant.java
[ +111 ms] Launching lib/main.dart on macOS in release mode...
[  +58 ms] executing: [/Users/tahatesser/AndroidStudioProjects/master_flutter/macos/] xcrun xcodebuild -list -project
Runner.xcodeproj
[  +79 ms] List of devices attached
           EUYTFEUSQSRGDA6D       device usb:336789504X product:RMX2001 model:RMX2001 device:RMX2001L1 transport_id:4
[   +7 ms] List of devices attached
           EUYTFEUSQSRGDA6D       device usb:336789504X product:RMX2001 model:RMX2001 device:RMX2001L1 transport_id:4
[ +229 ms] {
                      "devices" : {
                        "com.apple.CoreSimulator.SimRuntime.iOS-13-7" : [
                          {
                            "dataPath" :
                            "\/Users\/tahatesser\/Library\/Developer\/CoreSimulator\/Devices\/F0FD09FB-9ABB-402D-9712-7A
                            C7278ED742\/data",
                            "logPath" :
                            "\/Users\/tahatesser\/Library\/Logs\/CoreSimulator\/F0FD09FB-9ABB-402D-9712-7AC7278ED742",
                            "udid" : "F0FD09FB-9ABB-402D-9712-7AC7278ED742",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-SE--2nd-generation-",
                            "state" : "Shutdown",
                            "name" : "iPhone SE (2nd generation)"
                          }
                        ],
                        "com.apple.CoreSimulator.SimRuntime.watchOS-7-1" : [

                        ],
                        "com.apple.CoreSimulator.SimRuntime.iOS-14-2" : [
                          {
                            "dataPath" :
                            "\/Users\/tahatesser\/Library\/Developer\/CoreSimulator\/Devices\/B46BCEDD-9601-4CD0-8D0B-CE
                            4EF96ACD93\/data",
                            "logPath" :
                            "\/Users\/tahatesser\/Library\/Logs\/CoreSimulator\/B46BCEDD-9601-4CD0-8D0B-CE4EF96ACD93",
                            "udid" : "B46BCEDD-9601-4CD0-8D0B-CE4EF96ACD93",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-12",
                            "state" : "Shutdown",
                            "name" : "iPhone 12"
                          }
                        ],
                        "com.apple.CoreSimulator.SimRuntime.tvOS-14-2" : [

                        ]
                      }
                    }
[+1153 ms] {
                      "devices" : {
                        "com.apple.CoreSimulator.SimRuntime.iOS-13-7" : [
                          {
                            "dataPath" :
                            "\/Users\/tahatesser\/Library\/Developer\/CoreSimulator\/Devices\/F0FD09FB-9ABB-402D-9712-7A
                            C7278ED742\/data",
                            "logPath" :
                            "\/Users\/tahatesser\/Library\/Logs\/CoreSimulator\/F0FD09FB-9ABB-402D-9712-7AC7278ED742",
                            "udid" : "F0FD09FB-9ABB-402D-9712-7AC7278ED742",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-SE--2nd-generation-",
                            "state" : "Shutdown",
                            "name" : "iPhone SE (2nd generation)"
                          }
                        ],
                        "com.apple.CoreSimulator.SimRuntime.watchOS-7-1" : [

                        ],
                        "com.apple.CoreSimulator.SimRuntime.iOS-14-2" : [
                          {
                            "dataPath" :
                            "\/Users\/tahatesser\/Library\/Developer\/CoreSimulator\/Devices\/B46BCEDD-9601-4CD0-8D0B-CE
                            4EF96ACD93\/data",
                            "logPath" :
                            "\/Users\/tahatesser\/Library\/Logs\/CoreSimulator\/B46BCEDD-9601-4CD0-8D0B-CE4EF96ACD93",
                            "udid" : "B46BCEDD-9601-4CD0-8D0B-CE4EF96ACD93",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-12",
                            "state" : "Shutdown",
                            "name" : "iPhone 12"
                          }
                        ],
                        "com.apple.CoreSimulator.SimRuntime.tvOS-14-2" : [

                        ]
                      }
                    }
[+1027 ms] Command line invocation:
                        /Volumes/Extreme/Xcode.app/Contents/Developer/usr/bin/xcodebuild -list -project Runner.xcodeproj

                    Information about project "Runner":
                        Targets:
                            Runner
                            Flutter Assemble

                        Build Configurations:
                            Debug
                            Release
                            Profile

                        If no build configuration is specified and -scheme is not passed then "Release" is used.

                        Schemes:
                            Flutter Assemble
                            Runner
[   +2 ms] Building macOS application...
[   +3 ms] executing: /usr/bin/env xcrun xcodebuild -workspace
/Users/tahatesser/AndroidStudioProjects/master_flutter/macos/Runner.xcworkspace -configuration Release -scheme Runner
-derivedDataPath /Users/tahatesser/AndroidStudioProjects/master_flutter/build/macos
OBJROOT=/Users/tahatesser/AndroidStudioProjects/master_flutter/build/macos/Build/Intermediates.noindex
SYMROOT=/Users/tahatesser/AndroidStudioProjects/master_flutter/build/macos/Build/Products VERBOSE_SCRIPT_LOGGING=YES
COMPILER_INDEX_STORE_ENABLE=NO
[ +565 ms] Command line invocation:
[        ]     /Volumes/Extreme/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace
/Users/tahatesser/AndroidStudioProjects/master_flutter/macos/Runner.xcworkspace -configuration Release -scheme Runner
-derivedDataPath /Users/tahatesser/AndroidStudioProjects/master_flutter/build/macos
OBJROOT=/Users/tahatesser/AndroidStudioProjects/master_flutter/build/macos/Build/Intermediates.noindex
SYMROOT=/Users/tahatesser/AndroidStudioProjects/master_flutter/build/macos/Build/Products VERBOSE_SCRIPT_LOGGING=YES
COMPILER_INDEX_STORE_ENABLE=NO
[   +2 ms] User defaults from command line:
[        ]     IDEDerivedDataPathOverride = /Users/tahatesser/AndroidStudioProjects/master_flutter/build/macos
[        ] Build settings from command line:
[        ]     COMPILER_INDEX_STORE_ENABLE = NO
[        ]     OBJROOT = /Users/tahatesser/AndroidStudioProjects/master_flutter/build/macos/Build/Intermediates.noindex
[        ]     SYMROOT = /Users/tahatesser/AndroidStudioProjects/master_flutter/build/macos/Build/Products
[        ]     VERBOSE_SCRIPT_LOGGING = YES
[ +436 ms] note: Using new build system
[        ] note: Building targets in parallel
[   +7 ms] note: Planning build
[ +226 ms] [
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "14.2 (18B79)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone13,2",
                        "identifier" : "B46BCEDD-9601-4CD0-8D0B-CE4EF96ACD93",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-12-1",
                        "modelName" : "iPhone 12",
                        "name" : "iPhone 12"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "13.7 (17H22)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone12,8",
                        "identifier" : "F0FD09FB-9ABB-402D-9712-7AC7278ED742",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-se-1",
                        "modelName" : "iPhone SE (2nd generation)",
                        "name" : "iPhone SE (2nd generation)"
                      }
                    ]
[   +1 ms] [
             {
               "simulator" : true,
               "operatingSystemVersion" : "14.2 (18B79)",
               "available" : true,
               "platform" : "com.apple.platform.iphonesimulator",
               "modelCode" : "iPhone13,2",
               "identifier" : "B46BCEDD-9601-4CD0-8D0B-CE4EF96ACD93",
               "architecture" : "x86_64",
               "modelUTI" : "com.apple.iphone-12-1",
               "modelName" : "iPhone 12",
               "name" : "iPhone 12"
             },
             {
               "simulator" : true,
               "operatingSystemVersion" : "13.7 (17H22)",
               "available" : true,
               "platform" : "com.apple.platform.iphonesimulator",
               "modelCode" : "iPhone12,8",
               "identifier" : "F0FD09FB-9ABB-402D-9712-7AC7278ED742",
               "architecture" : "x86_64",
               "modelUTI" : "com.apple.iphone-se-1",
               "modelName" : "iPhone SE (2nd generation)",
               "name" : "iPhone SE (2nd generation)"
             }
           ]
[+1326 ms] note: Constructing build description
[ +534 ms] error: The linked and embedded framework 'App.framework' is missing one or more architectures required by
this target: arm64. (in target 'Runner' from project 'Runner')
[        ] error: The linked and embedded framework 'FlutterMacOS.framework' is missing one or more architectures
required by this target: arm64. (in target 'Runner' from project 'Runner')
[   +1 ms] ** BUILD FAILED **
[  +27 ms] Building macOS application... (completed in 3.1s)
[   +4 ms] Exception: Build process failed
[   +3 ms] "flutter run" took 6,831ms.
[  +10 ms]
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:619:7)
           <asynchronous suspension>
           #2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1104:12)
           <asynchronous suspension>
           #3      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:959:27)
           <asynchronous suspension>
           #4      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #5      AppContext.run (package:flutter_tools/src/base/context.dart:149:12)
           <asynchronous suspension>
           #6      CommandRunner.runCommand (package:args/command_runner.dart:197:13)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand.<anonymous closure>
           (package:flutter_tools/src/runner/flutter_command_runner.dart:264:9)
           <asynchronous suspension>
           #8      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #9      AppContext.run (package:flutter_tools/src/base/context.dart:149:12)
           <asynchronous suspension>
           #10     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:220:5)
           <asynchronous suspension>
           #11     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:63:9)
           <asynchronous suspension>
           #12     run.<anonymous closure> (package:flutter_tools/runner.dart:61:12)
           <asynchronous suspension>
           #13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #14     AppContext.run (package:flutter_tools/src/base/context.dart:149:12)
           <asynchronous suspension>
           #15     runInContext (package:flutter_tools/src/context_runner.dart:70:10)
           <asynchronous suspension>
           #16     main (package:flutter_tools/executable.dart:90:3)
           <asynchronous suspension>

[ +263 ms] ensureAnalyticsSent: 255ms
[   +2 ms] Running shutdown hooks
[        ] Shutdown hook priority 4
[   +2 ms] Shutdown hooks complete
[        ] exiting with code 1

multiple flutter doctor -v
[✓] Flutter (Channel dev, 1.24.0-7.0.pre, on macOS 11.0.1 20B29 darwin-x64,
    locale en-GB)
    • Flutter version 1.24.0-7.0.pre at /Users/tahatesser/Code/flutter_dev
    • Framework revision a0860f6e87 (2 weeks ago), 2020-10-29 20:07:34 -0700
    • Engine revision 073263e39d
    • Dart version 2.11.0 (build 2.11.0-260.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
    • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B45b
    • CocoaPods version 1.10.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)

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

[✓] Connected device (4 available)
    • RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64  • Android 10 (API 29)
    • macOS (desktop)  • macos            • darwin-x64     • macOS 11.0.1 20B29
      darwin-x64
    • Web Server (web) • web-server       • web-javascript • Flutter Tools
    • Chrome (web)     • chrome           • web-javascript • Google Chrome
      86.0.4240.198

• No issues found!

[✓] Flutter (Channel master, 1.24.0-8.0.pre.252, on macOS 11.0.1 20B29
    darwin-x64, locale en-GB)
    • Flutter version 1.24.0-8.0.pre.252 at
      /Users/tahatesser/Code/flutter_master
    • Framework revision bf2c9dfc05 (34 hours ago), 2020-11-14 22:38:02 -0500
    • Engine revision 3e77d854a7
    • Dart version 2.12.0 (build 2.12.0-45.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
    • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B45b
    • CocoaPods version 1.10.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)

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

[✓] Connected device (4 available)
    • RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64  • Android 10 (API 29)
    • macOS (desktop)  • macos            • darwin-x64     • macOS 11.0.1 20B29
      darwin-x64
    • Web Server (web) • web-server       • web-javascript • Flutter Tools
    • Chrome (web)     • chrome           • web-javascript • Google Chrome
      86.0.4240.198

• No issues found!

I can reproduce this on Catalina (10.15.7) with XCode 12.2. Release builds fail but debug builds are building on flutter dev channel.
$ flutter build macos --release
ld: warning: ignoring file /Users/user/flutter/bin/cache/artifacts/engine/darwin-x64-release/FlutterMacOS.framework/FlutterMacOS, building for macOS-arm64 but attempting to link with file built for macOS-x86_64

This is a duplicate of https://github.com/flutter/flutter/issues/69221.  Xcode 12 and up won't be able to build for macOS with ONLY_ACTIVE_ARCH=NO (profile and release, by default).
\cc @stuartmorgan @zanderso

Actually, reopening.  From flutter build we can force the valid archs to x86_64.

PR at https://github.com/flutter/flutter/pull/70649 will "fix" flutter build mac --release by excluding ARM as a valid architecture.  It will still fail with the same error when running in release/archiving in Xcode 12+.

I wanted to create a MacOS build with Flutter master channel and upload the archive with xCode.
Everything worked as expected but I got below errors from Apple so the archive was rejected.
@jmagman , should I create a new ticket or is this related to this issue ?

ITMS-90332: Invalid Symbolic Link - The symbolic link 'com.example.ios.pkg/Payload/example.app/Contents/Frameworks/FlutterMacOS.framework/Headers' resolves to an invalid location. Make sure that the symbolic link does not resolve to itself, and that the location exists and is contained within the app bundle.

ITMS-90332: Invalid Symbolic Link - The symbolic link 'com.example.ios.pkg/Payload/example.app/Contents/Frameworks/FlutterMacOS.framework/Modules' resolves to an invalid location. Make sure that the symbolic link does not resolve to itself, and that the location exists and is contained within the app bundle.

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 1.26.0-2.0.pre.137, on macOS 11.1 20C69 darwin-x64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Community Edition (version 2019.3.4)
[✓] VS Code (version 1.52.1)
[✓] Connected device (2 available)

• No issues found!

@GyuriMajercsik different issue. Please file a new one, and any info about the symlinking at those paths would be helpful.

thanks @jmagman  for the quick response. I filed https://github.com/flutter/flutter/issues/73028. Please let me know if I can provide more information.


How to fix can not find "./sft_data/train.jsonl"

we can convert dataset in SFT_data/conversations to ./sft_data/train.jsonl
Here is the code:
# prepare_moss_sft.py
"""
prepare train and val dataset for for moss-sft

This method will not generate the train.jsonl, and it save the train&val dataset to train_data and val_data. It also can be loaded by class SFTDataset.
"""
import os
import json
import copy
import torch
from transformers import AutoTokenizer

def tokenzie_dataset(file, tokenizer):
    """
    read json file and tokenzie it.
    """
    data = []
    no_loss_spans = []
    with open(file, "r") as f:
        try:
            sample = json.load(f)
            chat = sample['chat']
            num_turns = int(sample['num_turns'])

            meta_instruction = sample['meta_instruction']
            instruction_ids = tokenizer.encode(meta_instruction)
            assert isinstance(instruction_ids, list) and len(instruction_ids) > 0

            input_ids = copy.deepcopy(instruction_ids)
            _no_loss_spans = [(0, len(instruction_ids))]

            for i in range(num_turns):
                cur_turn_ids = []
                cur_no_loss_spans = []
                cur_turn = chat[f'turn_{i+1}']
                for key, value in cur_turn.items():

                    cur_ids = tokenizer.encode(value)

                    if key == 'Tool Responses':
                        # The format tokens (<|Results|>:...<eor>\n) should have losses.
                        cur_no_loss_spans.append((len(input_ids + cur_turn_ids) + 5, len(input_ids + cur_turn_ids + cur_ids) - 2))

                    assert isinstance(cur_ids, list) and len(cur_ids) > 0

                    cur_turn_ids.extend(cur_ids)

                if len(input_ids + cur_turn_ids) > 2048:
                    break

                input_ids.extend(cur_turn_ids)
                _no_loss_spans.extend(cur_no_loss_spans)

            assert len(input_ids) > 0 and len(input_ids) <= 2048

            data = input_ids
            no_loss_spans = _no_loss_spans
        except json.JSONDecodeError as e:
            print(f"Error parsing {file_path}: {e}")

    return data, no_loss_spans

def combine_json(dir, tokenizer, split):
    files = []
    # there are maybe several json files in dir
    for item in os.listdir(dir):
        item_path = os.path.join(dir, item)
        if os.path.isfile(item_path) and item_path.endswith(".json"):  # only json file
            files.append(item_path)

    data = []
    no_loss_spans = []
    for file in files:
        # one file to be one sample
        _data, _no_loss_spans = tokenzie_dataset(file, tokenizer)
        data.append(_data)
        no_loss_spans.append(_no_loss_spans)

    # split data to train data and val data
    train_len = int(len(data) * split)
    train_data = data[:train_len]
    val_data = data[train_len:]

    train_len = int(len(no_loss_spans) * split)
    train_no_loss_spans =  no_loss_spans[:train_len]
    val_no_loss_spans =  no_loss_spans[train_len:]

    print("train len:", len(train_data), len(train_no_loss_spans))
    print("val len:", len(val_data), len(val_no_loss_spans))

    return train_data, train_no_loss_spans, val_data, val_no_loss_spans

def prepare_dataset(data_dir, out_dir, tokenizer, split = 0.85):
    '''
    parse all json files in a directory
    '''
    train_data = []
    train_no_loss_spans = []
    val_data = []
    val_no_loss_spans = []
    for root, dirs, _ in os.walk(data_dir):
        for dir in dirs:
            dir =  os.path.join(root, dir)
            print(dir)
            _train_data, _train_no_loss_spans, _val_data, _val_no_loss_spans = combine_json(dir, tokenizer, split)
            train_data += _train_data
            val_data += _val_data
            train_no_loss_spans += _train_no_loss_spans
            val_no_loss_spans += _val_no_loss_spans

    data_type = ['train', 'val']
    data_file = os.path.join(out_dir, f'{data_type[0]}_data')
    no_loss_spans_file = os.path.join(out_dir, f'{data_type[0]}_no_loss_spans')

    torch.save(train_data, data_file)
    torch.save(train_no_loss_spans, no_loss_spans_file)

    data_file = os.path.join(out_dir, f'{data_type[1]}_data')
    no_loss_spans_file = os.path.join(out_dir, f'{data_type[1]}_no_loss_spans')
    torch.save(val_data, data_file)
    torch.save(val_no_loss_spans, no_loss_spans_file)

    print("train samples:", len(train_data), len(train_no_loss_spans))
    print("val samples:", len(val_data), len(val_no_loss_spans))

if __name__ == "__main__":
    # tokenizer
    model_name_or_path = "fnlp/moss-moon-003-base"
    tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, trust_remote_code=True)
    tokenizer.eos_token_id = 106068 # The eos_token_id of base model is 106028. We need map the eos token to <eom> (its token id is 106068)

    indir = "./SFT_data/conversations/conversation_without_plugins/"
    outdir = "./sft_data/"
    prepare_dataset(indir, outdir, tokenizer)

This method will not generate the train.jsonl,  and it save the train&val dataset to train_data and val_data.
It also can be loaded by class SFTDataset.

you said 'we can convert dataset in SFT_data/conversations to ./sft_data/train.jsonl Here is the code:' in the beginning, and then you said 'This method will not generate the train.jsonl, and it save the train&val dataset to train_data and val_data.
It also can be loaded by class SFTDataset.' wtf?

you said 'we can convert dataset in SFT_data/conversations to ./sft_data/train.jsonl Here is the code:' in the beginning, and then you said 'This method will not generate the train.jsonl, and it save the train&val dataset to train_data and val_data. It also can be loaded by class SFTDataset.' wtf?

Maybe I didn't explain clearly. the load_data method in finetune_moss.py has two ways to load data, one way is reading dataset from jsonl type file and extract the content, saving to  train_data and val_data. Another way is reading directly from  train_data and val_data saved before.
The code above is saving the train_data and val_data ,  not train.jsonl.

you said 'we can convert dataset in SFT_data/conversations to ./sft_data/train.jsonl Here is the code:' in the beginning, and then you said 'This method will not generate the train.jsonl, and it save the train&val dataset to train_data and val_data. It also can be loaded by class SFTDataset.' wtf?

Maybe I didn't explain clearly. the load_data method in finetune_moss.py has two ways to load data, one way is reading dataset from jsonl type file and extract the content, saving to train_data and val_data. Another way is reading directly from train_data and val_data saved before.
The code above is saving the train_data and val_data , not train.jsonl.

I got you. I have successfully generated the train_data and val_data and finetuned my custom model. I would say that your shared code is extremely helpful! Thanks a lot!


Add --ignore-gitignore flag

Closes #299

Codecov Report

Merging #307 (0076786) into main (524672f) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #307   +/-   ##
=======================================
  Coverage   97.31%   97.32%
=======================================
  Files          37       37
  Lines        2573     2576    +3
=======================================
+ Hits         2504     2507    +3
  Misses         69       69

Impacted Files
Coverage Δ

robotidy/api.py
93.33% <ø> (ø)

robotidy/app.py
93.39% <100.00%> (ø)

robotidy/cli.py
98.06% <100.00%> (+0.01%)
:arrow_up:

robotidy/files.py
92.78% <100.00%> (+0.15%)
:arrow_up:

Continue to review full report at Codecov.

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