Options after parse

Currently for parsing arguments, there is a Command#parseArgs and Command#parseArgsNoExit, which basically does the same as the former, except that it quits the program if an error occurred. This doesn't offer much options to choose from, so this is the purpose of this pull request.
Example:
var parsed = parser.parse(args) // we parse the argument values
	.printErrors() // print errors if any
	.exitIfErrors() // quit if there are errors
	.getParsedArguments(); // get parsed values

Apart of the basic methods that this class should have (printErrors, getErrors, hasErrors, etc), a method named into(Class<T>) will be available, which will allow to dump all the parsed values into the members of the specified class right when instantiating it. Furthermore, a method named from(Class<T>) will be added to Command. This will read a class annotated with @CmdDef including members with annotations indicating which arguments to add, like:
@CmdDef
class MyProgram {
	@ArgDef(prefix = Argument.PrefixChar.PLUS, type = StringArgument.class)
	public String name;

	@ArgDef(type = CounterArgument.class)
	public int debugLevel = 1; // default value of 1
}

...

new ArgumentParser("myProgram").from(MyProgram.class);

Of course this class could be used for both methods mentioned, like this:
MyProgram result = new ArgumentParser("myProgram")
	.from(MyProgram.class)
	.parse(args)
	.into(MyProgram.class);

And this could be simplified with a helper method of course:
MyProgram result = ArgumentParser.fromInto(MyProgram.class);

Since some properties can only be applied to an argument through normal defitions, this would be possible:
MyProgram result = new ArgumentParser("myProgram") {{
	this.from(MyProgram.class);

	this.getArgument("name").onOk(v -> println("your name is " + v));
}}
	.parse(args)
	.into(MyProgram.class);

Or we could allow the user to define a initialize method in the define class, like shown:
@CmdDef
class MyProgram {
	@ArgDef(prefix = Argument.PrefixChar.PLUS, type = StringArgument.class)
	public String name;

	@ArgDef(type = CounterArgument.class)
	public int debugLevel = 1; // default value of 1

	@InitDef
	public static void init(Command cmd) {
		cmd.getArgument("name").onOk(v -> println("your name is " + v));
	}
}

Thus removing the need of creating an anonymous class. (Both ways can be allowed)
Sub-Commands
We need to also allow the user to specify Sub-Commands of course. A way to do this could be specifying an inner class with a @CmdDef, and also a member with the type of the class. This class should hold all the arguments belonging to that command:
@CmdDef
class MyProgram {
	@ArgDef(prefix = Argument.PrefixChar.PLUS, type = StringArgument.class)
	public String name;

	@ArgDef(type = CounterArgument.class)
	public int debugLevel = 1; // default value of 1

	public SubArgs subCmd;

	@CmdDef(name = "sub-cmd", description = "A Sub-Command!")
	public static class SubArgs {
		@ArgDef(type = FileArgument.class, description = "<desc=!.type>")
		public File myFile;

		@InitDef
		public static void init(Command cmd) {
			cmd.getArgument("myFile").onOk(System.out::println);
		}
	}
}

MyProgram result = ArgumentParser.fromInto(MyProgram.class);

// ------------------------------------ or ------------------------------------

@CmdDef
class MyProgram {
	@ArgDef(prefix = Argument.PrefixChar.PLUS, type = StringArgument.class)
	public String name;

	@ArgDef(type = CounterArgument.class)
	public int debugLevel = 1; // default value of 1

	public SubArgs subCmd;

	@CmdDef(name = "sub-cmd", description = "A Sub-Command!")
	public static class SubArgs {
		@ArgDef(type = FileArgument.class, description = "<desc=!.type>")
		public File myFile;
	}
}

MyProgram result = new ArgumentParser("myProgram") {{
	this.from(MyProgram.class);

	this.addSubCommand(new Command("sub-cmd") {{
		this.from(MyProgram.SubArgs.class);

		this.getArgument("myFile").onOk(System.out::println)
	}})
}}
	.into(MyProgram.class);

Needing to do this.from() on each sub-comamnd doesnt seem very convenient, so a constructor could be made for this case:
ArgumentParser parser = new ArgumentParser(MyProgram.class) {{
	this.addSubCommand(new Command(MyProgram.SubArgs.class) {{
		this.getArgument("myFile").onOk(System.out::println)
	}})
}};

Now into() should keep in mind Sub-Commands and populate them accordingly so that later we can do stuff like:
MyProgram result = parser.parse(args).into(MyProgram.class);

File myFile = result.subCmd.myFile;

Groups
Creating groups shouldn't add much complexity. They could be made entirely within the initializer blocks. If we take the previous example to make a group containing the name argument:
ArgumentParser parser = new ArgumentParser(MyProgram.class) {{
	final var theGroup = new ArgumenGroup("a-group");
	theGroup.addArgument(this.getArgument("name"));
	this.addGroup(theGroup);
}};

Not really super fan of this. Maybe it could be hacked into:
ArgumentParser parser = new ArgumentParser(MyProgram.class) {{
	final var mainParser = this;

	this.addGroup(new ArgumenGroup("a-group") {{
		this.addArgument(mainParser.getArgument("name"));
	}});
}};

Notes

This new method will not replace the current way of getting argument values. So this will still be completely valid:
ParsedArgumentsRoot result = parser
	.parse(args)
	.getParsedArguments();

File myFile = result.get("sub-cmd", "myFile").get()

Argument definitions inside @CmdDef classes could maybe specify the ParsedArgument<T> or the Optional<T> type for having more options for getting values.

(Everything shown here is not final and will most likely change in one way or another)

This new way of defining arguments should serve as a replacement for Command Templates. One could create a Command definition (like the ones above) that adds a help and a version argument. And later the user could create their own by just inheriting it.

Todo

[ ] AfterParseOptions class.
[x] from() method.

[x] Support Arguments.
[x] Support Sub-Commands.
[x] Support Groups.

[ ] into() method.
[x] fromInto() helper method.

Working example with the current WIP implementation:
@Command.Define(names = "my-program", description = "This is a test program.")
class MyProgram extends DefaultCommandTemplate {
	public MyProgram() {}

	@Argument.Define(type = StringArgument.class, description = "This is a string argument.")
	public ParsedArgumentValue<String> string;

	@Argument.Define(type = IntArgument.class, description = "<desc=!.type>")
	public int number = 12;

	@CommandAccessor
	public MySubCommand subCommand;

	@Command.Define(names = "sub-command", description = "This is a sub-command.")
	public static class MySubCommand extends CommandTemplate {
		public MySubCommand() {}

		@Argument.Define(type = CounterArgument.class, description = "This is a counter", names = "c")
		public int counter = 0;
	}
}

...

new TestingParser(MyProgram.class) {{
	final var that = this;

	this.addGroup(new ArgumentGroup("test-group") {{
		this.addArgument(that.getArgument("string"));
		this.addArgument(that.getArgument("number"));
	}});

	this.addCommand(new Command(MyProgram.MySubCommand.class));
}}
	.parse("--string hello --number 67 sub-command -ccc")
	.printErrors()
	.into(MyProgram.class);

// getting the parsed values
parsed.string
	.defined(s -> System.out.println("Value is defined: " + s))
	.undefined(() -> System.out.println("undefined!"));

System.out.println(parsed.number);
System.out.println(parsed.subCommand.counter);

I need to find a way to improve the creation of groups with templates.

User will be able to define groups by adding the defition to the init function, like this:
@InitDef
public static void init(@NotNull Command cmd) {
	cmd.addGroup(new ArgumentGroup("test-group") {{
		this.addArgument(cmd.getArgument("string"));
		this.addArgument(cmd.getArgument("number"));
	}});
}

Feature development in hiatus awaiting for some bugfixes for the mirror lib.

Update: Removed mirror for now.

Writing tests


terarium dataservice migration changes

This PR handles the changes needed to move to the new data service endpoints. This branch is untested currently, and contains the following changes:

Changing endpoints and parameters to use kebab-case
JSON keys are serialized / deserialized from camelCase rather than snake_case by default. Support for a "X-Enable-Snake-Case" header has been integrated which when provided will serialize / deserialize JSON keys as snake_case
Our backend uses OAuth2 and many endpoints require a user object for ReBAC. For simplicity we have created a shared service-user that will be injected if the correct basic auth credential is added to each request. I've introduced TDS_USER and TDS_PASSWORD env vars that will be injected in a basic auth header in each request. Please contact our team and we will provide the credential for our staging env. Please do not commit the credential to the repo unencrypted.

@Sorrento110 and @fivegrant , how do we test the report generation on this branch? can one of you see if we've broken things before we merge this?

@dgauldie take a look at this https://github.com/DARPA-ASKEM/knowledge-middleware/tree/main/reporting

@dgauldie just tried to run the above but the testing depends on standing up and seeding TDS in the docker compose just like simulation-integration. Report generation won't work unless HMI Server replaces TDS in the docker compose

@dgauldie i just pushed a fix so the tests can run. reporting was broken because stuff was moved around at project root and data service was still being referenced in a few places


.getPosition() removes the fullmove number

Hello,
getPosition() seems to strip the fullmove number from the returned FEN even if the board was initialized with a FEN that includes the fullmove number. In fact, it strips out everything past the pieces. For example:
in: "r1bqkb1r/pp1ppppp/2n2n2/8/3NP3/8/PPP2PPP/RNBQKB1R w KQkq - 1 5"
out: "r1bqkb1r/pp1ppppp/2n2n2/8/3NP3/8/PPP2PPP/RNBQKB1R"

Any reason for that?
Could the method be changed to maintain the FEN structure?
thanks

cm-chessboard is not intended for saving the state of a game, it has no logic implementing chess rules. cm-chessboard can do two things, display chess positions and allow the input of chess moves. Therefore cm-chessboard does not store the status of castling or the number of the move.
To manage the state of a chess game you need to use another module, like chess.js. See also the validate-moves example https://shaack.com/projekte/cm-chessboard/examples/validate-moves.html which does this.

thanks Stefan. I am using chess.js and referencing the example your mentioned. What I asked for was more out of convenience in one particular use-case. All good and many thanks for your response.

Okay. Maybe I should update the documentation, to make it clearer, that the returned value is only the position part of a FEN, so it won’t look like a failure.


adopt tiny/dummy plugins for every unit test

I've abused the unit tests and many of them are quite slow because they are, in fact, integration tests that would be better suited for the E2E test suite. The entire suite isn't too bad currently but as the project grows it will continue to get worse.
We should make the unit tests faster by using the tiny and dummy plugins for all of the unit tests (or at least most of them).

I added these for some tests but there is a lot further to go. One advantage of this is unit tests wouldn't require GITHUB_API_TOKEN being set—which is a problem for external contributors as their builds often fail not being able to have this set.


Feature/lib install target part i

CMake and build refactoring

Use CUDA as first-class language (leading to CMake 3.9 minimum version requirement).

Use 'modern CMake' interface libraries for compiler options, include file and library dependency tracking. Interface library targets:

arbor-deps: compiler options and library requirements for the libarbor.a static library, as governed by configure-time options and environment.
arbor-private-headers: include path for non-installed headers, as required by unit tests and arbor itself.
arbor-aux: helper classes and utilities used across tests and examples.
ext-json, ext-tclap, ext-tbb, ext-benchmark, ext-sphinx_rtd_theme: externally maintained software that we include (directly or via submodule) in the ext/ subdirectory.

Single static library libarbor.a includes all built-in modules and CUDA objects.

Simply configuration options:

ARB_WITH_TRACE, ARB_AUTORUN_MODCC_ON_CHANGES ARB_SYSTEM_TYPE removed.
External modcc is provided by ARB_MODCC configuration option; if provided modcc is still buildable, but is not included in the default target.
ARB_PRIVATE_TBBLIB, defaulting to OFF, instructs the build to make TBB from the included submodule.

Extend ErrorTarget functionality to provide a dummy target or an error target based on a condition.

Generate header version defines and library version variables based on git status and project version, via new script include/git-source-id.

All generated binaries now placed in bin/ subdirectory at build.

Install targets installs: public headers (incomplete); static library; modcc tool; lmorpho executable; html documentation (examples, tests and validation data are currently not installed).

Executable targets have had the .exe suffix removed; unit tests are labelled unit (arbor unit tests), unit-modcc (modcc unit tests), unit-local (distributed tests with local context), unit-mpi (distributed tests with MPI context).

More graceful handling of configure-time detection of nrniv, Julia and required Julia modules for validation data generation.

Add cmake/FindJulia.cmake, cmake/FindTBB.cmake  package finders, and adjust cmake/FindUnwind.cmake to use link library-style properties.

Adjust travis script to test unit-local and unit-mpi if appropriate.

Simply documentation conf.py.

Source relocation and reorganization

All external project sources and files moved to ext/.
Source code refactoring to decouple library-using code from the configure-time definitions that govern arbor behaviour: removes conditional code in public headers that depends upon ARB_WITH_X-type definitions at compile time. Affected code is is in the public interfaces for MPI, the threading implementation, and the profiler.
Remove util/debug.hpp; split out functionality for pretty-printing from assertion handling.
Make FVM cell non-physical voltage check a run-time cell-group parameter.
Move spike double buffer implementation to simulation.cpp.
Make timer utility wrap POSIX clock_gettime independent of threading configuration.
Make mpi_error derive from system_error and follow C++11 system_error semantics.
EXPECTS macro replaced by arb_assert macro.
JSON dependency removed from libarbor.a and header files: moved to auxiliary library.
Publicly visible macros garner an ARB_ prefix as required.
Move SWC test file to test/unit directory.
Work-in-progress splitting of public from private includes: as a convention not entirely adhered to as yet, private headers within arbor source are included with "", public headers with <>.

Modcc interface changes

Expose via --namespace option the functionality that sets the namespace in generated code.
Use --profile option to add profiler hooks to generated code; uses public function interface directly rather than PE/PL macros in order to avoid public PE and PL defines.

CMake error is something they addressed in a later version of CMake. I'll attempt a workaround tomorrow (or we can bump the minimum CMake version).

I would prefer that you finish this PR as is: i.e. get it passing tests and installing "something", even if the installed target is not very useful.
Then further pull requests to get the installed target into shape.
There are a lot of changes like wholesale renaming that are going on, and i can't really review them because they are lost in the noise of 490 change files.

The refactorings are unfortunately necessary if we want to keep configuration-based code out of header files that are included by other code which does not (and should not) set the same configuration-based defines.

How about finishing this PR up with an imperfect setup. Then in subsequent PRs I will be able to follow the steps taken to keep configuration based code out of header files.
It doesn't have to be perfect at first.

As far as I can tell from this point, indenting and name wrangling aside, the only remaining issue is working around CMake brokenness in 3.9.


V0.11 quick start and docs

fixes and updates for the installation docs
Changes to the observability resources
No code or image changes

/lgtm

The bundle is marked as failing, but I don't think we want this changing so ignoring

Thanks @eguzki  PR for main is in place https://github.com/Kuadrant/kuadrant-operator/pull/939

we have some flaky tests regarding authorization policy. Re-running it should fix this.


Unrecognized font family only with react-native run-ios

Basically, my settings work if I build and run in xcode 7.2
Rather than if I'm use react-native run-ios I got Unrecognized font family.
any idea?
Cheers

Cannot reproduce, the examples within this repo run just fine with react-native run-ios. It's likely a cache or something, have you tried deleting build intermediates?

I tried:

rm -fr $TMPDIR/react-*
watchman watch-del-all

Do you mean this or something else?

it wasn't connected to react-native-vector-icons. Basically I switched my build to release so that react-native run-ios wasn't compile in the proper way. Once I rollback to debug I got my custom icons :)

Hello.  I am sorry for raising a dead thread, but I have run into this exact problem, however the fix listed here does not apply (at least I don't think it does).
Here is my situation. The app has had this package installed and working fine for awhile now with only 1 custom iconFont for our company.  Recently we have needed to branch out, so I added the FontAwesome font to the project.  I followed all of the steps and everything works great if you run from xcode.  I also completely removed the package and reinstalled using rnpm but got the same result.  I have tried reseting npm cache, deleting node_modules folders and reinstalling everything, killing tempdir, and deleting xcode project derived data.  I am out of options.  Any help would be greatly appreciated!

I'm having the same issue now with RN 0.34.x and 0.35.0, Xcode 8. Basically the font is loaded when run from XCode (debug and release) but not picked up when run with npm and react-native on the command line.

I am having the exact same issue as @ekhall. I upgraded to RN 0.35.0 and running Xcode 8. The fonts will load fine if I run the project through Xcode but get the Unrecognized font family error with react-native run-ios.
I tried downgrading back to RN 0.34.0 but that didn't help.

I got the issue fixed for RN 0.35.0 and Xcode 8. Delete the items in your build folder under the ios folder. Then rebuild the project with react-native run-ios.
This will start you off with a clean slate.

Pretty much the same answer here - something got very messed up with the iOS build shortly after this post. I created a new project, copied in the js source, and it worked fine.

react-native link react-native-vector-icons solved it for me.

Have the same thing with:

RN 0.37 (have also tried 0.38)

Exact error after splash screen disappears:
Unrecognized font family 'Lato-Black'
Have tried:

deleting /ios/build items
react-native link react-native-vector-icons
deleting /node_modules and reinstalling

Only happens when running via CLI

@simonstewart That's a regular font and is unrelated to this module.

was having the same issue as mentioned by @ekhall . Even I run the command "react-native link react-native-vector-icons" but it was not working. Then i dont know what happened, I ran the same command again then npm start and reloaded the project, it was running fine. surprising!!!

From https://github.com/oblador/react-native-vector-icons
"Check that the font is copied in the Copy Bundle Resources in Build Phases."
This is the step I was missing. Also check you follow the first 2 steps (Resources and info.plist)

You may need to double-check whether xCode is importing those assets from react-native-vector-icons or another module (eg native-base). If it's a different package then make sure your import FontAwesome from 'react-native-vector-icons/FontAwesome' is changed to import FontAwesome from 'some-other-package'

I had the same issue of not able to load the fonts on Mac for IOS... I was getting unrecognized font family 'material icons'. Even react-native link react-native-vector-icons didn't help.
I pulled up the  fonts in app directory and loaded it using package.json

"rnpm": {
"assets": [
"app/fonts"
]
}

https://hiddentao.com/archives/2017/03/10/get-custom-fonts-working-in-react-native/ @hiddentao's article explains it very well!

I had this problem and tried most suggested solutions without luck.
Turns out that I had previously imported the font from my Downloads folder on my computer, which I had then emptied. To solve this, make sure that your font still exists on your disk (ie the font is not red in Xcode) and the reference under "Build Phases" and then "Copy Bundle Resources" is to the still-existing font file.
Lesson learned: Always put a font file in the project folder before importing it into Xcode.

You should run react-native install react-native-vector-icons & reac-native link react-native-vector-icons
If this happend when you use react-native-elements, install react-native-elements again after above changes.

A probable solution:
Build & run on android emulator (react-native run-android), this downloads any missing or needed icons.
then running on IOS device (through xcode), resolves the above error.
p.s. there's still a lot of warnings regarding prop usage etc. but the errors are resolved and the build runs successfully.

One thing that might have not been checked is that after you copy all fonts from react-native-vector-icons folder to your XCode project, those fonts are removed from fonts folder; therefore you should try installing react-native-vector-icons again (assuming that you've correctly set up Build phases/Copy Bundle Resource, and Info.plist). Hope this helps.

I found out that following the manual instructions were kind of complicated (I'm not used to Xcode at all, react-native is my first project on a mobile). So what I did was:
npm install react-native-vector-icons --save
react-native link react-native-vector-icons
--stopped the npm server--
react-native run-ios
So, what I mean here is that i actually had to go for "run-ios", if I had just "npm start" it wouldn't be enough to work for me, run-ios to kind of "recompile" everything the way you want it to be :)

If someone else have had this error "Unrecognized font family 'Lato'" look at the last copy pasted example and remove/change the font family attribute, that has helped me 😄
// Example from https://react-native-training.github.io/react-native-elements/API/card/

......
// implemented with Text and Button as children
<Card
  title='HELLO WORLD'
  image={require('../images/pic2.jpg')}>
  <Text style={{marginBottom: 10}}>
    The idea with React Native Elements is more about component structure than actual design.
  </Text>
  <Button
    icon={{name: 'code'}}
    backgroundColor='#03A9F4'
    fontFamily='Lato'   <------ remove / change this Line!!
    buttonStyle={{borderRadius: 0, marginLeft: 0, marginRight: 0, marginBottom: 0}}
    title='VIEW NOW' />
</Card>

delete build under ios worked

I'm using a custom font (not vector icons) and here's my thoughts
Didn't Work

remove the build folder and rebuild using react-native run-ios
copy the file to the folder before using run in xcode
restarting the app

Worked

run the project through XCode after using react-native link

Hope it helps someone :)

I got this error when I was trying to use custom fonts from icomoon.ttf

so what I did to solve this issue.

run this command
react-native link react-native-vector-icons

copy icomoon.ttf inside ios folder

added icomoon.ttf  in Copy Bundle Resources

edit Info.plist file and add my custom font in UIAppFonts key
<key>UIAppFonts</key>
	<array>
		<string>icomoon.ttf</string>
	</array>

I hope it helps you too :)

After cobbling together bits and pieces on loading the icons for react-native-elements I finally figured this out.   Check out my blog for a write-up.
https://javascriptrambling.blogspot.com/2018/03/expo-icon-fonts-with-react-native-and.html

check the name if the relname!!! I fix it by change name

Had the same problem. I closed VSCode (stopped the packet manager) and closed xCode. Then I started debugging in VSCode and did a fresh build in xCode and it worked.

Hi i did the following when this error hit me.

adding fonts to assests/fonts of the root folder of react-native project

adding this to package.json file
,
"rnpm":{
"assets":[
"./assests/fonts/"
]
}

running react-native link command

check info.plist in xcode for fonts listing

check resources folder for fonts file.

delete derived data from pref>location in xcode.

rebuild project and done.

These steps  solved my error.
link to follow- https://medium.com/@maulikdhameliya/how-to-solve-unrecognised-font-family-error-in-react-native-when-using-custom-icons-for-ios-42c2aa1c4f08

FWIW
This blog post of @maulikdhameliya
https://medium.com/@maulikdhameliya/how-to-solve-unrecognised-font-family-error-in-react-native-when-using-custom-icons-for-ios-42c2aa1c4f08
4th section from the blog post solved my issue.
I opened file in Sublime and manually created that <array>...</array> of all my fonts and saved file.
Then react-native run-ios from cli and boom, no error thrown.
IOS is evil

I closed all my application, deleted ios build and build it again with react-native run-ios
it worked!

Check the icon family name.
const iconSet = createIconSet(glyphMap, 'icomoon', 'MyIcon.ttf')
in Android icomoon name is ignored

Like a lot of people have said, sometimes its also because you are not using the real name. In my case, I had to use the real name in iOS, but use the file name in android

In my case, remove build folder in ios/ and rebuild the project in command line fix this. Tks @nilghe!

Delete Sub folder under

Project -> ios -> build -> Build

and delete ModuleCache.noindex from

Project -> ios -> build

It worked for me

I had the same issue and fixed it by just opening the project in Xcode and under Resources folder in Project Navigator, there were duplicate fonts and just removing them from Resources folder and Info.plist both, the issue got resolved. Just run the app in Xcode after deletion then you may verify in your other tools as well without reinstalling npm. Just run 'react-native run-ios', cheers :)

react-native link react-native-vector-icons solved it for me.

This saved my day

I had the same problem and it was solved by running react-native link react-native-vector-icons and then building the project once in xcode.

Hi, I fixed this by opening Info.plist in my text editor, searching for .ttf and making sure my font file names were included in the list with the other fonts. The key of the section is called UIAppFonts.
In addition to this I also made sure the fonts were visible in the XCode project, and under "Copy Bundle Resources" they are listed out.

This happened to me when I remove the fonts I wasn't using from the "Fonts provided by application" section of the info.plist and the "Copy Bundle Resources" section of the main target. Apparently there are lingering references to those fonts even if you don't use them. You can manually add all those files back, or what is much easier to do is run react-native unlink react-native-vector-icons, then run react-native link react-native-vector-icons again. If you actually deleted those unwanted font files altogether, then delete your node-modules directory and run npm install again.

RN 0.6 supposed to do autolinking now, however it doesn't seem to work properly with react-native-vector-icons

delete build folder
npm i --save react-native-vector-icons
3 react-native link react-native-vector-icons
npm start -- -- reset-cache
react-native run-ios

worked for me on 0.6 based on this issue's scattered instructions

Same issue, need to link manually

+1
RN 0.60

exclude files inside build folder in ios working in RN 0.60

After installation, you need to link the library (After the updation of React Native 0.60, they have introduced autolinking feature means we do not require to link the library but they have also mentioned that some libraries need linking and react-native-vector-icons is one of those cases).
After the linking just install the ios/pod file using pod install
You can follow Example to Use Vector Icons in React Native for the updated example of React Native 0.60

Every above solutions didn't work. Only command react-native link works! <3

Add the following to your info.plist. Feel free to add or remove any font.
  <key>UIAppFonts</key>
  <array>
    <string>AntDesign.ttf</string>
    <string>Entypo.ttf</string>
    <string>EvilIcons.ttf</string>
    <string>Feather.ttf</string>
    <string>FontAwesome.ttf</string>
    <string>FontAwesome5_Brands.ttf</string>
    <string>FontAwesome5_Regular.ttf</string>
    <string>FontAwesome5_Solid.ttf</string>
    <string>Foundation.ttf</string>
    <string>Ionicons.ttf</string>
    <string>MaterialIcons.ttf</string>
    <string>MaterialCommunityIcons.ttf</string>
    <string>SimpleLineIcons.ttf</string>
    <string>Octicons.ttf</string>
    <string>Zocial.ttf</string>
  </array>

On RN0.61.5 and using react-native-vector-icons i copy the .tff files into the node_modules/react-native-vector-icons/fonts/
And run
react-native link

If fixes above didn't do the job, you may be using the wrong font family name. By adding this code to your AppDelegate.m you can see a list of fonts loaded - ensure you use the same name as in output.
for (NSString* family in [UIFont familyNames]) {   NSLog(@"%@", family);   for (NSString* name in [UIFont fontNamesForFamilyName: family])   {     NSLog(@" %@", name);   } }
For me the case was that output from the above was "FontName-Regular", but in a style file it was "FontNameRegular".

In my case it only threw error when i was trying to use weighted font directly like FontWeight_Bold
when i changed it to regular form and used font weight explicitly it worked.

still having this error

The combination of:

Adding pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons' to my Podfile file
Adding the UIAppFonts key to my Info.plist file
Running react-native link (despite using react-native 0.62.2)

Made the icons appear for me on iOS. I have yet to try for Android.

I'm using a custom font (not vector icons) and here's my thoughts
Didn't Work

remove the build folder and rebuild using react-native run-ios
copy the file to the folder before using run in xcode
restarting the app

Worked

run the project through XCode after using react-native link

Hope it helps someone :)

This worked for me too, thanks

After you do everything but still not working.
try this

rm -rf ~/library/developer/xcode/
rm -rf ~/.rncache

react-native link react-native-vector-icons solved it for me.

Thank you very much that solved it for me as well!!

react-native link react-native-vector-icons solved it for me.

Thank you very much that solved it for me as well!!

react-native link react-native-vector-icons solved it for me.

This is the jackpot.

react-native link react-native-vector-icons solved it for me.

This worked!. had to run react-native run-ios to rebuild the app

For anyone else still struggling, this is what sorted it for me:
import EntypoIcon from 'react-native-vector-icons/Entypo';
EntypoIcon.loadFont();

If fixes above didn't do the job, you may be using the wrong font family name. By adding this code to your AppDelegate.m you can see a list of fonts loaded - ensure you use the same name as in output.
for (NSString* family in [UIFont familyNames]) { NSLog(@"%@", family); for (NSString* name in [UIFont fontNamesForFamilyName: family]) { NSLog(@" %@", name); } }
For me the case was that output from the above was "FontName-Regular", but in a style file it was "FontNameRegular".

you saved my life @dooleyb1 ❤

react-native link react-native-vector-icons

error Linking "react-native-vector-icons" failed.

just type 'npx react-native-asset '  after installation setup finish


multichart line starting points

I'm using multiline charts in my angular application and noticed that the starting point is sometimes inconsistent.
chart options are
$scope.chartOptions =
            title: '',
            x_accessor: 'date'
            y_accessor: 'value'
            small_text: true
            legend: []
            legend_target: '.legend'
            area: false,
            aggregate_rollover: false
            full_width: true

This is likely a MetricsGraphics issue but I'm happy to look at it anyway. Can you post some sample data so that I can take a look at this?


How to use , in Publisher name

As an open source project the only way to go rn are Certums OSS certificates, which do require the CN tag to be set to Open Source Developer, <yourname>
So I have an Identity tag like this
  <Identity Name="dev.schlaubi.Tonbrett" Version="<IP_ADDRESS>" Publisher="CN=Open Source Developer, Michael Rittmeister, O=Open Source Developer, S=Bayern, C=DE" ProcessorArchitecture="x64" />`, however that fails validation as of the use of the `,`

  So how do I put a , in my CN?

You have to wrap the CN value in quotes, like
CN="Open Source Developer, Michael Rittmeister", O=Open Source Developer, S=Bayern, C=DE
(And possibly the O one too? I can't remember if spaces are allowed without quoting)
But since that is XML, you'll have to escape the quotes with "
Publisher="CN="Open Source Developer, Michael Rittmeister", O=Open Source Developer, S=Bayern, C=DE"

The subject line in my certificate is
E =<EMAIL_ADDRESS>CN = Open Source Developer, Michael Rittmeister
O = Open Source Developer
L = Gauting
S = Bavaria
C = DE

So my Identity tag is
  <Identity Name="dev.schlaubi.Tonbrett" Version="<IP_ADDRESS>"<EMAIL_ADDRESS>CN="Open Source Developer, Michael Rittmeister", O=Open Source Developer, L=Gauting, S=Bavaria, C=DE" ProcessorArchitecture="x64" />

However signing fails with Error information: "Error: SignerSign() failed." (-2146889723/0x80091005) with afaik means that the Publisher is wrong

I was using a wrong /fd value, thx for your reply

I was using a wrong /fd value, thx for your reply

I got same error... I try the way you do, but I always get the error  :Error information: "Error: SignerSign() failed." (-2147024885/0x8007000b)
My certificate is:
Thumbprint                                Subject

4FBEC69EB3E41C04FCB2E04041AA45AFD10E92BC  CN="Jim Jiang, O=Sunia, Inc., C=US"
and the AppxManifest.xml is
  <Identity Name="SuniaPTE.LTD.AcerAssist" Publisher="CN=Jim Jiang, O="Sunia, Inc.", C=US" Version="<IP_ADDRESS>" ProcessorArchitecture="x64" />


Kodi renders offset

I am running hyprland in Archlinux. When I open kodi, the interface renders offset and stretched. Here is the screenshot

I came across similar issue in sway, but it seems have been fixed swaywm/sway#4366

it never got fixed in sway according to the above, but got fixed in whatever kodi is. You sure this doesnt occur on sway?
Also, the screenshot above looks fine to me... what is offset or stretched?

Also, the screenshot above looks fine to me... what is offset or stretched?

The bottom have been cut off and black bars appears in left and right (I'm using 1920x1080 display and the video is also 1920x1080).

You sure this doesnt occur on sway?

I have tested on sway and it doesn't occur now.

I have found a temporary solution, every time kodi have been opened, you need to disable and reenable fullscreen and go to video calibration, adjust the pixel ratio to 1.000.

is this still an issue?

is this still an issue?

Looks like it doesn't happens any more ;)


[Android] Service not starting on BackgroundLocator.registerLocationUpdate

The Locator Service does not start running when BackgroundLocator.registerLocationUpdate is called. I confirmed this by checking the output of BackgroundLocator.isServiceRunning() after BackgroundLocator.registerLocationUpdate is called, which is false. I added @pragma('vm:entry-point') to all of my callback functions as well. My flutter version is 2.10.5.
I also tried running the example app and encountered the same issue. Any ideas of what might be happening here?

Resolved - when I was migrating to this package from background_locator I forgot to change the services defined in the AndroidManifest.xml.


FromEventPattern does not conform to v4

The current implementation of fromEventPattern deviates from the current v4 implementation in several ways:

removeHandler is no longer optional
removeHandler does not get return value from addHandler

Is the intent here to follow this behavior, or deviate?  If we are to deviate, then we must ask why the addHandler is addHandler: (handler: Function) => any instead of addHandler: (handler: Function) => void if we aren't returning anything, nor are we using the value produced from it.
RxJS version: v5 - current
Code to reproduce:
This is an example of using RxJS v4 with the addHandler returning a value, which would then be forwarded onto the remove handler.
Observable.fromEventPattern(
  (h) => { return elem.connect('data', h); },
  (_, r) => { r.disconnect(); }
);

Expected behavior:
The expected behavior would forward the return value from elem.connect('data', h) so that you could remove the handler from the value by calling disconnect.
Actual behavior:
Currently, RxJS v5 does not support doing anything with the addHandler despite its signature of allowing anything to be returned, hence why its signature of addHandler: (handler: Function) => any is confusing if nothing is ever done with the return value.
Additional information:
If this is indeed breaking change behavior, we should put that in the documentation and the reasons for this.  The reason it was added originally was that some libraries instead pass a subscription like object to the user which you can later disconnect instead of the standard Subject/Observer pattern with add/remove handlers.

cc/ @trxcllnt who I believe is the original implementer. (this was added when RxJS was v 2 or 3 I think)

@blesh I don't know how I got associated with implementing this, I've literally never touched this file. I'm halfway convinced you're messing with me :P
@mattpodwysocki I agree 100%, this should exactly match v4 behavior, something I would've done if I was the author of this version *cough*@blesh*cough*

I think @trxcllnt has been playing with git-blame-someone-else :trollface:

@jayphelps oh man good show. @blesh https://github.com/ReactiveX/rxjs/issues/95

I just ran into this while writing a wrapper for a Redux store. Fortunately in that case there was a simple work around of Observable.from(store).map(() => store.getState()), but still 💯

Oops, sorry @trxcllnt... for some reason I thought you had done the original work on this way back when we merged what you had done with what I had done when this was called "RxNext" or whatever. haha.

Closing via #2224


Add "use strict"; to ALL files

I forgot to put "use strict";  at the top of all my files. I added it when I was getting weird behavior and discovered I was attempting to mutate a frozen object. It would be good if the whole compiler was in strict mode.

It would be nice if you could just opt-in to strict mode on all your files in one spot, but alas.


Does version 3.0.0-SNAPSOT supports discriminator and subtypes for DTO`s objects?

Does version 3.0.0-SNAPSOT supports discriminator and subtypes for DTO`s objects?
I need smth like that:
@ApiModel(value = "ScreenTemplateBase", discriminator = "pageType", subTypes = {ScreenTemplateWithTenderButtonsDTO.class, GuestServiceScreenTemplateDTO.class, PackageSaleScreenTemplateDTO.class})
and have ability to choose concrete type of DTO in swagger ui example.

Not yet @iseniori that plan is to support open api in full

@dilipkrish when you plan to add this support?

See #3070

Can I ask what the point is of the "subtypes" property in ApiModel if it is not used at all? I have tried to expose subtypes both in 2.9.2 and 3.0.0 but it doesn't work and nothing gets exposed even though #2407 seems to say it is resolved in 3.0.0.
What does work is defining all types in JsonSubTypes, but then "subTypes" is obsolete and could just as well be left off.


S-Plus / R lexer: missing operators, constants, and single-quoted strings

(Original issue 411 created by None on 2009-05-18T23:56:00+00:00)
S-plus/R should include:

operators: {{{|}}} and {{{||}}}

constants: {{{NaN}}}, {{{T}}}, {{{F}}}

single-quoted strings

{{{
"foo"
'foo'          # Not recognized as string
a && b || c    # AND works, OR doesn't
a & b | c
c(TRUE,FALSE,T,F)  # T and F aren't recognized
NULL           # recognized
NA             # recognized
NaN            # not recognized
}}}
It turns out that T and F are actually variables (but not constants) that contain the values TRUE and FALSE. They are defined in the R base package; however, it means that they don't really count as special built-in values.
Reported by guest

(Original issue was assigned to thatch)
(Original issue 411 last updated on 2009-06-22T16:10:01+00:00)
(Issue automaticaly closed due to status in Bitbucket: resolved)

(Original comment by thatch on 2009-06-22T16:10:01+00:00)
...and merged.

(Original comment by thatch on 2009-06-21T21:36:44+00:00)
Fixed in [e04b039a7ec6]


Rework recipe to support cmake

This PR updates the recipe to use the cmake build process which allows the library to be better used by cmake while also supporting the pkgconfig usage.
Checklist

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

Closes #15

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender

Thanks @jeremy-rifkin!

Thank you so much!


Missing "libgcc_sis__482.dll"

Required by "use Net::SSH2;"

Re-write "cli" with Python.

Solved since 2017.10.18 by re-writing in Python.
Compatible with Windows 10 32 & 64 bit


Tray Icon wont stay pinned visible

I pin the icon to the system tray but it does not stay there on Windows 10 x64 1709 (the taskbar icon is disabled)
version 5.0.0-beta.16
I tried drag n drop to pin it like other icons and manually set it up under Windows Settings "symbols at system tray". The setting switches back when mesenger has been closed or minimized to tray for a while.

Same problem here :(

Mee too

See: https://github.com/meetfranz/franz/issues/786#issuecomment-438227456


Remove unreferenced private methods

These methods don't seem to be used anymore. I haven't tested it locally; just testing via CI.

LGTM
Shame skylark can’t lint this but it requires some static analysis to do so and I guess skylark does none.


[Feature Request]: Implementation of "Forgot Password" Page

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
The "Forgot Password" feature allows users who have forgotten their passwords to reset them, enhancing user experience and account security securely. This feature minimizes user frustration and increases the likelihood of user retention by providing a straightforward recovery process.
Use Case
"Forgot Password" feature not only enhances user experience but also contributes to the security and credibility of the project.
Benefits
To enhance user experience and security by allowing users to reset their passwords if they forget them.
Add ScreenShots
No response
Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC-EXT contributor
[X] I'm a HACKTOBERFEST contributor
[X] I have starred the repository

Please assigned me this work.

@SRV30, how you were going to add that feature could please explain detail.

@GAVINESHWAR Sorry for the late reply. In this repo, the Firebase database is used. I will use the Firebase reset link for password resetting when the user submits the "Forgot Password" button.
Examples of images are provided below:

I will fix the template and design once this task is assigned to me.


GTK+: TypeError: on_close() takes 2 positional arguments but 3 were given

When creating a new Window and then closing it a TypeError is created in Linux. Once you have created an App, calling the following will reproduce the error:
window = toga.Window()
window.app = app
window.show()

Then close the window and you get:
TypeError: on_close() takes 2 positional arguments but 3 were given

Update: this issue doesn't actually require an extra window to be created. Tutorial-2 reproduces when you close the main_window. PR #267 created.


TypeError: amount.split is not a function

Trying to place a limit order, but I keep getting this error (TypeError: amount.split is not a function). But I don't see any requirement on amount, except that it should be a string, which it is:
const order = await client.placeLimitOrder(
        true,
        createCurrencyAmount(amountString, CryptoCurrency.BTC),
        OrderBuyOrSell.SELL,
        OrderCancellationPolicy.GOOD_TIL_CANCELLED,
        createCurrencyPrice(price, CryptoCurrency.BTC, CryptoCurrency.USDC),
        'btc_usdc'
      )

Any clue what's going on?

What are the values of amountString and price ?  Its possible it is expecting a decimal point?

I use .toFixed(6) for the amount for the BTC/USDC pair, so amountString is worth '0.001056'.
Aah but price is 9378.250199999999, so maybe that's the issue. Didn't think to check considering the error message.
I'll check right now, thanks!

Ok, that did the trick, thanks!


Initialize open publishing repository: https://github.com/MicrosoftDo…

…cs/OData-docs of branch live

OPS Build status updates of commit e1afdf2:
:clock10: Pending: waiting for processors (34 builds ahead of you)
:warning: OPS Build is busy, click here to report any potential performance downgrade issues, or you could view OPS Portal for trend of build queue length.

OPS Build status updates of commit e1afdf2:
:clock10: Preparing: average preparing time is 43 sec(s)

OPS Build status updates of commit e1afdf2:
:clock10: Incremental building: average incremental building time is 19 sec(s)

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

File
Status
Preview URL
Details

.openpublishing.publish.config.json
:white_check_mark:Succeeded

Odata-docs/docfx.json
:white_check_mark:Succeeded

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

Docs Build status updates of commit a6db52d:
:clock10: Pending: waiting for processors (32 builds ahead of you)
:warning: Docs Build is busy, currently there are 32 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit a6db52d:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.publish.config.json
:white_check_mark:Succeeded

Odata-docs/docfx.json
:white_check_mark:Succeeded

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

Docs Build status updates of commit 59eab6a:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Odata-docs/webapi/convention-model-builder.md
:bulb:Suggestion
View
Details

.openpublishing.publish.config.json
:white_check_mark:Succeeded

Odata-docs/docfx.json
:white_check_mark:Succeeded

Odata-docs/webapi/convention-model-builder.md

[Suggestion] Missing attribute: author. Add the current author's GitHub ID.

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

Docs Build status updates of commit 641d4df:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Odata-docs/webapi/convention-model-builder.md
:bulb:Suggestion
View
Details

.openpublishing.publish.config.json
:white_check_mark:Succeeded

Odata-docs/docfx.json
:white_check_mark:Succeeded

Odata-docs/webapi/convention-model-builder.md

[Suggestion] Missing attribute: author. Add the current author's GitHub ID.

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

closing since we don't need this anymore.


Refactor pending organization details form modal

FRONTEND PULL REQUEST
Related Issue
Resolves #6399
Changes Proposed

Prevents pending org verification form from being submitted without required fields filled out.
Shows error messages if fields are left blank

Additional Information

Slight change in how the verification confirmation success toast appears

Before
https://github.com/CDCgov/prime-simplereport/assets/20211771/cc5fdc05-be5d-4c22-86e3-b1032691dd35
After
https://github.com/CDCgov/prime-simplereport/assets/20211771/30977cf7-c0ea-431f-9a77-2c6a4529b00d
Testing
available on dev2
Screenshots / Demos

https://github.com/CDCgov/prime-simplereport/pull/6469#discussion_r1317508748 was not aware of this!! will use this instead ^__^ thank you for flagging it!


driver.page_source returns wrong screen elements tree

The driver.page_source which I am getting on screen are:
<?xml version="1.0" encoding="utf-16"?><Pane AcceleratorKey="" AccessKey="" AutomationId="" ClassName="" FrameworkId="Win32" HasKeyboardFocus="False" HelpText="" IsContentElement="True" IsControlElement="True" IsEnabled="True" IsKeyboardFocusable="False" IsOffscreen="True" IsPassword="False" IsRequiredForForm="False" ItemStatus="" ItemType="" LocalizedControlType="pane" Name="" Orientation="None" ProcessId="0" RuntimeId="42.25038568" x="0" y="0" width="0" height="0" />

I have no idea where they are coming from.
desire capabilities:
app = C:\Arial\Arial.exe

winAppDriverHost = <IP_ADDRESS>:4723

platformName = Windows

platformVersion = 10

appWorkingDir = C:\Arial

automationName = Windows

Thanks

@anunay1 can you please help with that issue?
Thanks!

@anunay1 I have thought maybe I am getting these elements is because my driver is not pointing to the right window?
but when I tired calling this line:
self.driver_.window_handles I am getting again this error:
AttributeError: 'WebDriver' object has no attribute 'w3c'


perf(component treeshaking): updated config and build files to treesh…

Each component can now OPTIONALLY be imported individually from the components path.
EXAMPLE:
import { Badge } from "flowbite-react/components/Badge";

function App() {
  return (

      <Badge>Test</Badge>

  );
}

Components with old pattern:

import { Badge } from "flowbite-react";

function App() {
  return (

      <Badge>Test</Badge>

  );
}

Will still work, but will still treeshake hell as well.
PS: This pr will not fix the themes treeshaking which seems to be more complex.
#1197
Keen to hear back from the maintainers.
FINAL BUILD RESULT with "/components":

FINAL BUILD RESULT w/out "/components":

Will be implemented in the next version of the monorepo -> next release

The approach is OK, think it solves partially the reported issue of #1197.

Will be implemented in the next version of the monorepo -> next release

@SutuSebastian is this fix you are mentioning part of 7.3? What version will the fix be in? Is there a PR of the fix you mentioned?

The approach is OK, think it solves partially the reported issue of #1197.

Will be implemented in the next version of the monorepo -> next release

@SutuSebastian is this fix you are mentioning part of 7.3? What version will the fix be in? Is there a PR of the fix you mentioned?

There is a PR on it, its #1264, almost done.

Fixed in https://github.com/themesberg/flowbite-react/pull/1264


Update copy and dynamically create refs on GetStartedPage

🛠 Currently a WIP
Great work on the library! I was reading through the docs and found a handful of things that could be adjusted for readability. In doing so, I ran into an issue with the refs on the GetStartedPage and thought to create the dynamically as a title change would be problematic in the future. That brings up another problem of permalinks regarding the hash routes on the get-started doc. Figured I'd open this and see if you all had any thoughts about it.

This is awesome, sorry i have been pretty lazy with this for a while, is it possible to build this so it's reusable across the site?

@bluebill1049 This is still a WIP, but I just updated the comment about the issue regarding permalinks. I need to do another once over in general, but this is a decent start. Let me know if you have any input so far and I'll wrap this up tomorrow.

@bluebill1049 This is still a WIP, but I just updated the comment about the issue regarding permalinks. I need to do another once over in general, but this is a decent start. Let me know if you have any input so far and I'll wrap this up tomorrow. I could map all previous permalinks that went to the same section (but renamed), but it could get ugly. I'll have to think more on it.

sounds good to me, no rush on this, take your time. You saving us heaps of time in the near future. ❤

I'm not sure what happened with the merge here - there was only one small block that got pulled in. Let me know your thoughts, and thanks!

I'm not sure what happened with the merge here - there was only one small block that got pulled in. Let me know your thoughts, and thanks!

I will sort out the conflicts. thanks for the awesome update.

actually, you want to try to merge master into your branch and resolve the conflict there.

I thought I did, but who knows. I'll resolve it in the morning 🎉
On Thu, Jul 9, 2020, 10:14 PM Bill<EMAIL_ADDRESS>wrote:

actually, you want to try to merge master into your branch and resolve the
conflict there.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/react-hook-form/documentation/pull/359#issuecomment-656487157,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAF7UOLC2AJBD6DMA3O3I2DR22PUTANCNFSM4OVEZE3Q
.

LGTM! Awesome contribution! 🎆 🎆

@pmaier983 Thanks! The only thing I'm still debating on or concerned with is the scrollTo behavior on hash links. I don't really have a good solution for backward compatibility on links (from a permalink perspective) if that's a concern for the RHF team at this time. In general, it seems strange to tie the hashes like get-started#namefromtitleproperty, because as the titles are changed in the future it'd potentially "break" backlinks. It might make more sense to tie them to the key (such as controlledInput in getStarted)  instead of the getStarted.controlledInput.title or to set a hash value property as well as a title that isn't meant to be permanent. I suppose the worst-case scenario with the implementation this offers currently is that a user would still be on the correct page, and they'd just have to use the menu.
I think that's all that anyone needs to be aware of at this point. If the team cares about 100% backlinkability (or whatever a good term for that is), I can also add in a resolver for unfound hash paths and try to match them to previously known ones... but that might be overkill. I'm open to any suggestions regarding this :)

LGTM! Awesome contribution! 🎆 🎆

@pmaier983 Thanks! The only thing I'm still debating on or concerned with is the scrollTo behavior on hash links. I don't really have a good solution for backward compatibility on links (from a permalink perspective) if that's a concern for the RHF team at this time. In general, it seems strange to tie the hashes like get-started#namefromtitleproperty, because as the titles are changed in the future it'd potentially "break" backlinks. It might make more sense to tie them to the key (such as controlledInput in getStarted) instead of the getStarted.controlledInput.title or to set a hash value property as well as a title that isn't meant to be permanent. I suppose the worst-case scenario with the implementation this offers currently is that a user would still be on the correct page, and they'd just have to use the menu.
I think that's all that anyone needs to be aware of at this point. If the team cares about 100% backlinkability (or whatever a good term for that is), I can also add in a resolver for unfound hash paths and try to match them to previously known ones... but that might be overkill. I'm open to any suggestions regarding this :)

I couldn't agree more with above, I think moving forward that the solution we want anyhow. Having a resolver for unfound hash can be step as well, it's a great idea and we can introduce some good UX to fulfill the gap when content is not found.


Fix bug in styler when line after Parameter block is empty

There is currently a bug in the doc styler when there is an empty line after the parameter introduction:
"""
Function description

Params:

    x (`int`): This is x.
    y (`float`): this is y.
"""

This will reformat all arguments on the same line after, an issue we have seen recently in Transformers with a generate doc PR. It will give:
"""
Function description

Params:

    x (`int`): This is x. y (`float`): this is y.
"""

This PR fixes the bug and removes the extra empty lines so reformats the above as:
"""
Function description

Params:
    x (`int`): This is x.
    y (`float`): this is y.
"""

Note: after being merged, we will need a release and a quick update to Transformers as this changes 16 files currently.

Merging then, will do a release soon-ish.


Datasets used in the fine-tuning process

I've noticed that while creating the dataset, the news headlines and news content were separated. This means that there are distinct training and testing sets for news headlines, as well as for news content. However, during the fine-tuning process, only the dataset containing news headlines was utilized, and the dataset with news content wasn't employed. Consequently, I'm somewhat perplexed about the role of the news content dataset in the fine-tuning process.

Hi, itlittlekou.  We only used news headlines in our experiment for time and cost reasons. Since news content contains most of the information, the best way is to use both the news headlines and news content. However, in our experiment, we need to concat all the news related to certain stocks for a certain time period like one day. So the tokens might be super large and it might be quite difficult to train. We believe the best way might be to use the title and summary or just the title or summary might also work. If you have better plans, please don't hesitate to contact us or create PR!

How did you create the dataset? I don't see an api to do that.


added LUSERS function

this might should be implemented as 'NAMES' not 'LUSERS', please let me know

found a bug, closing this, will resubmit


Introduce events package

This PR is the first in a series of smaller PRs that will eventually add a worker cache. Caching all bus requirements for uploading and downloading will definitely yield to improved performance and overall better software. E.g. we will eventually be able to very cleanly refresh uploaders upon renewals and so on.
In order to be able to cache certain things in the worker (things like download contracts, gouging params etc), we have to be able to invalidate this cache. The idea is to use webhooks and I think it's a good idea to wrap that into something with a little more structure and type safety so I introduced a package called events. An event is a new webhook module, very similar to alerts that wraps a broadcaster to send events of a certain event type.
The worker registers a webhook for every event type with the bus and exposes a new endpoint POST /events that will handle incoming events and invalidate the cache if necessary. Going to F/U with PRs that broadcast events from the bus and one that introduces a worker cache and then a final one that ties it all together.
Part of a series of PRs that implements https://github.com/SiaFoundation/renterd/issues/1151

Going to close this out and refactor it in bus-events.


pull request for e2e test at 01/09/2017 20:26:12

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


core/linux-headers: update to 5.15.53

Update to latest LTS version

I'd there some feature in 5.15.53 that isn't in 5.15.41?

Hum, I don't know honestly

Please read $ kiss h linux-headers.


Swap export of arrow table to parquet format

Tabular data can be under many circumstances be very large, and partial reading of files directly from disk and azure blob store is of great benefit. The current arrow format chosen is feather which is sub-optimal for this purpose. Suggestion is to move from exporting in feather format to parquet.

Why does this needs to happen in dataio? Why cant the conversion happen at sumo?

The rationale behind changing to parquet have multiple reasons:

Users reading from the such files on disk will benefit from this change. Refer to the initial description of this issue.
It is not a great idea that users see that they export in one format, but find another when interrogating sumo
These are early days and the users are used to exporting pandas dataframes, which converts to csv (at least for now, Sudo would prefer parquet as the default), so not seen as a massive breaking change to do this now, it is unlikely that there are many users that has used the arrow option, so if there is a time to do the change it is now, rather than later when users have discovered the usefulness of arrow formats over csv

Overall the change look fine to me, but i have a few concerns.

What happens with the old-data?
How will this affect down-stream system like rep/webwiz?
Do we need a grace period where we both are supported?

Also, my experience with feather and parquet is zero. So do not know if this really solves any issues.

Resolved by #652


docker-compose app not started

Hi,
I followed the guide to run on docker compose, and the containers are running, but, the acrarium web is not working.
This is the log for the container:
acrarium    |                                           _
acrarium    |      /\                                  (_)
acrarium    |     /  \      ___   _ __    __ _   _ __   _   _   _   _ __ ___
acrarium    |    / /\ \    / __| | '__|  / _` | | '__| | | | | | | | '_ ` _ \
acrarium    |   / ____ \  | (__  | |    | (_| | | |    | | | |_| | | | | | | |
acrarium    |  /_/    \_\  \___| |_|     \__,_| |_|    |_|  \__,_| |_| |_| |_|
acrarium    |
acrarium    | 2022-11-23 12:52:27.583  INFO 1 --- [           main] com.faendir.acra.BackendApplicationKt    : Starting BackendApplicationKt using Java <IP_ADDRESS> on 837556432bc2 with PID 1 (/application/BOOT-INF/classes started by acrarium in /application)
acrarium    | 2022-11-23 12:52:27.622  INFO 1 --- [           main] com.faendir.acra.BackendApplicationKt    : No active profile set, falling back to 1 default profile: "default"
acrarium    | 2022-11-23 12:52:29.264  INFO 1 --- [           main] o.s.c.a.ConfigurationClassParser         : Properties location [file:${user.home}/.config/acrarium/application.properties] not resolvable: /application/.config/acrarium/application.properties (No such file or directory)
acrarium    | 2022-11-23 12:52:29.271  INFO 1 --- [           main] o.s.c.a.ConfigurationClassParser         : Properties location [file:${user.home}/.acra/application.properties] not resolvable: /application/.acra/application.properties (No such file or directory)

It looks like it stacks on something.
I using Mac m1 (arm64)
Any idea?

Currently the docker image is only built for x86_64, so on m1 mac it'll run with emulation, which tends to produce issues. I'd recommend to build a docker image with an arm64 base.

Arm64 images are now available vor v2.


Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'Worklets' could not be found. Verify that a module by this name is registered in the native binary

Hello,
I was wondering if react-native-worklets-core is compatible with Expo?
I created a brand new app with the "npx create-expo-app" command and added react-native-worklets-core using the setup instructions:
https://github.com/margelo/react-native-worklets-core/blob/main/README.md
But when I run npm run android I get the below error after the app starts on the device:

ERROR  Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'Worklets' could not be found. Verify that a module by this name is registered in the native binary., js engine: hermes
ERROR  Invariant Violation: "main" has not been registered. This can happen if:

Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
A module failed to load due to an error and AppRegistry.registerComponent wasn't called., js engine: hermes

Attached is a sample app to reproduce the error.
Expo app.zip

I figured it out. You can't start the app with "expo start --android", you have to start it with "expo run:android" to create a build with the react-native-worklets-core native code inside it.
See: https://docs.expo.dev/guides/local-app-development/


How to disable '<' prompt in normal mode

I want to disable '<' in normal, it messes up my prompt (starship). Please help...
BTW your plugin is so useful that I can't live without it.

Hi @MohamedIrfanAM
Firstly, thanks for the support! As you said you are using the starship, so the vi mode status prompt is provided by starship, you can config the vi mode prompt by starship configuration file (~/.config/starship.toml) from its document.
And welcome to star this project for further updates in the future. 👍
Thanks and regars

Thank you so much, fixed it :)


Fixing the test CI workflows

Fixed the tests to use azure/login@v2 (OIDC login mechanism). Reference: https://github.com/azure/login#configure-a-service-principal-with-a-federated-credential-to-use-oidc-based-authenticatio

Cherry pick from master; the test workflow is using checked in files and hence failing


Help with windows

I got this installed, and when i click on a link to any of the links, it redirects me to the actual website, and unable to use it offline

Please reach out to me privately


PHN files in training data?

In data_load.py there is the following code:
    phn_file = wav_file.replace("WAV.wav", "PHN").replace("wav", "PHN")
    phn2idx, idx2phn = load_vocab()
    phns = np.zeros(shape=(num_timesteps,))
    bnd_list = []
    for line in open(phn_file, 'r').read().splitlines():
        start_point, _, phn = line.split()
        bnd = int(start_point) // hp.default.hop_length
        phns[bnd:] = phn2idx[phn]
        bnd_list.append(bnd)

So there are supposed to be PHN files in the training data to match the wav files. Where are these found/generated? In the current repo there are only wav files (https://github.com/andabi/deep-voice-conversion/tree/master/datasets/arctic/bdl).

Check readme, TIMIT data should be used for Net1 train.


Maximum Depth of Binary Tree Solution added

Resolves #8
A solution to this problem is added.

Great work! :fire: Thank you so much for your contribution! :grinning:


bomsh_rebuild_deb.py script to generate OmniBOR for Debian reproducib…

…le build

This commit adds new scripts to automate the reproducible builds for Debian packages. It also automatically generates OmniBOR documents for the rebuilt packages. It utilizes docker containers to do this work for Debian.
Readme.md is also modified to provide instructions on how to run the new script.


😝 optimise importer warnings/errors

refs https://github.com/TryGhost/Ghost/issues/5422
We have optimised the importer logs a little.

successful import: shows warnings (including the affected entry)
not successful import: shows errors  (including the affected entry)

I would suggest please update any css changes and push on my branch! This is maybe/for sure wrong. I saw templates without using css classes, so i thought it's okay to add the inline css. I have no idea what i am doing 😏
Please use latest Ghost master for testing 🙃

Coverage decreased (-0.05%) to 72.758% when pulling 6e37aaf536d7e83b4dd5d9bf400dd2bf0e05d9b3 on kirrg001:1.0.0-dev/optimise-importer-warnings-errors into 6e841064d22147efbdedfa2b9115662b00cce4d9 on TryGhost:master.

Coverage decreased (-0.05%) to 72.758% when pulling 537db274ac191e247d18632dc07405000544ea18 on kirrg001:1.0.0-dev/optimise-importer-warnings-errors into 6e841064d22147efbdedfa2b9115662b00cce4d9 on TryGhost:master.

Coverage decreased (-0.09%) to 72.712% when pulling 45955dface1d86d199e858ba1223e40939f37606 on kirrg001:1.0.0-dev/optimise-importer-warnings-errors into 6e841064d22147efbdedfa2b9115662b00cce4d9 on TryGhost:master.

Coverage decreased (-0.1%) to 72.697% when pulling 37357b4af093d5043a7a9eeacb17fe702d8611d4 on kirrg001:1.0.0-dev/optimise-importer-warnings-errors into 6e841064d22147efbdedfa2b9115662b00cce4d9 on TryGhost:master.


Unable to authenticate to a synapse intance with a dedicated pool

hey @noel -- you got a smidge more context to share?

haha sorry, did not mean to submit that.  I was trying to reproduce and get more info before submitting.
Basically I did the following (on Mac)
HOMEBREW_ACCEPT_EULA=Y brew install msodbcsql18 mssql-tools18
also tried
HOMEBREW_NO_ENV_FILTERING=1 ACCEPT_EULA=Y brew install msodbcsql17 mssql-tools
and then install dbt-synapse.
This is my profiles.yml
default:
  target: dev
  outputs:
    dev:
      type: synapse
      driver: 'ODBC Driver 18 for SQL Server'
      server: xxx.azuresynapse.net
      port: 1433
      database: xxx_sql_pool_synapse
      schema: dbo
      user: sqladminuser
      password:

I am able to connect to that end point using Azure Data Studio, but dbt would just time out.
('HYT00', '[HYT00] [Microsoft][ODBC Driver 18 for SQL Server]Login timeout expired (0) (SQLDriverConnect)')
However, now I cant even get the dbt adapter to show up now. (I had deleted the venv to make sure there wasnt something else)
✗ ls /Users/noel/.virtualenvs/balboa/lib/python3.8/site-packages | grep dbt
dbt
dbt-<IP_ADDRESS>.9.dist-info
dbt_core-1.7.9.dist-info
dbt_extractor
dbt_extractor-0.5.1.dist-info
dbt_fabric-1.7.4.dist-info
dbt_semantic_interfaces
dbt_semantic_interfaces-0.4.4.dist-info
dbt_synapse-1.7.0.dist-info
➜ [balboa]balboa (main) ✗ dbt --version
Core:
  - installed: 1.7.9
  - latest:    1.7.9 - Up to date!

Plugins:

dbt debug throws an error
✗ dbt debug
21:16:51  Running with dbt=1.7.9
21:16:51  dbt version: 1.7.9
21:16:51  python version: 3.8.18
21:16:51  python path: /Users/noel/.virtualenvs/balboa/bin/python
21:16:51  os info: macOS-14.3.1-arm64-arm-64bit
21:16:51  Encountered an error:
dlopen(/Users/noel/.virtualenvs/balboa/lib/python3.8/site-packages/pyodbc.cpython-38-darwin.so, 0x0002): symbol not found in flat namespace '_SQLAllocHandle'
21:16:51  Traceback (most recent call last):
  File "/Users/noel/.virtualenvs/balboa/lib/python3.8/site-packages/dbt/cli/requires.py", line 91, in wrapper
    result, success = func(*args, **kwargs)
  File "/Users/noel/.virtualenvs/balboa/lib/python3.8/site-packages/dbt/cli/requires.py", line 76, in wrapper
    return func(*args, **kwargs)
  File "/Users/noel/.virtualenvs/balboa/lib/python3.8/site-packages/dbt/cli/main.py", line 444, in debug
    results = task.run()
  File "/Users/noel/.virtualenvs/balboa/lib/python3.8/site-packages/dbt/task/debug.py", line 123, in run
    load_profile_status: SubtaskStatus = self._load_profile()
  File "/Users/noel/.virtualenvs/balboa/lib/python3.8/site-packages/dbt/task/debug.py", line 212, in _load_profile
    profile: Profile = Profile.render(
  File "/Users/noel/.virtualenvs/balboa/lib/python3.8/site-packages/dbt/config/profile.py", line 436, in render
    return cls.from_raw_profiles(
  File "/Users/noel/.virtualenvs/balboa/lib/python3.8/site-packages/dbt/config/profile.py", line 401, in from_raw_profiles
    return cls.from_raw_profile_info(
  File "/Users/noel/.virtualenvs/balboa/lib/python3.8/site-packages/dbt/config/profile.py", line 355, in from_raw_profile_info
    credentials: Credentials = cls._credentials_from_profile(
  File "/Users/noel/.virtualenvs/balboa/lib/python3.8/site-packages/dbt/config/profile.py", line 165, in _credentials_from_profile
    cls = load_plugin(typename)
  File "/Users/noel/.virtualenvs/balboa/lib/python3.8/site-packages/dbt/adapters/factory.py", line 212, in load_plugin
    return FACTORY.load_plugin(name)
  File "/Users/noel/.virtualenvs/balboa/lib/python3.8/site-packages/dbt/adapters/factory.py", line 58, in load_plugin
    mod: Any = import_module("." + name, "dbt.adapters")
  File "/Users/noel/.asdf/installs/python/3.8.18/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 843, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/Users/noel/.virtualenvs/balboa/lib/python3.8/site-packages/dbt/adapters/synapse/__init__.py", line 3, in <module>
    from dbt.adapters.synapse.synapse_adapter import SynapseAdapter
  File "/Users/noel/.virtualenvs/balboa/lib/python3.8/site-packages/dbt/adapters/synapse/synapse_adapter.py", line 6, in <module>
    from dbt.adapters.fabric import FabricAdapter
  File "/Users/noel/.virtualenvs/balboa/lib/python3.8/site-packages/dbt/adapters/fabric/__init__.py", line 3, in <module>
    from dbt.adapters.fabric.fabric_adapter import FabricAdapter
  File "/Users/noel/.virtualenvs/balboa/lib/python3.8/site-packages/dbt/adapters/fabric/fabric_adapter.py", line 24, in <module>
    from dbt.adapters.fabric.fabric_connection_manager import FabricConnectionManager
  File "/Users/noel/.virtualenvs/balboa/lib/python3.8/site-packages/dbt/adapters/fabric/fabric_connection_manager.py", line 10, in <module>
    import pyodbc
ImportError: dlopen(/Users/noel/.virtualenvs/balboa/lib/python3.8/site-packages/pyodbc.cpython-38-darwin.so, 0x0002): symbol not found in flat namespace '_SQLAllocHandle'

I got past that error by running
pip uninstall pyodbc
pip install --no-binary :all: pyodbc

now dbt debug shows
21:21:27  1 check failed:
21:21:27  dbt was unable to connect to the specified database.
The database returned the following error:

  >Database Error
  ('HYT00', '[HYT00] [Microsoft][ODBC Driver 18 for SQL Server]Login timeout expired (0) (SQLDriverConnect)')

We have a similar problem. For now, we have rolled back to 1.4.0, which still works.

I can confirm this works. That being said, I am on a mac and I had to run this AFTER the pip install because the dependency is for a non-M1 mac
pip uninstall pyodbc
pip install --no-binary :all: pyodbc

I also had to use a different endpoint
server: xxx.sql.azuresynapse.net
vs
server: xxx.azuresynapse.net


documentation: update operator version to latest

Updated operator version to latest in the documentation.

After taking a deeper look to the current bundle.md, I think it require a deeper refactoring:

The steps to build the bundle image should be removed because now the CI workflow push the official bundle images to quay.io/artemiscloud/activemq-artemis-operator-bundle
The v prefix should be removed from the tag versions
The private repo quay.io/hgao should be removed by the public doc
The catalog image tag should not match the operator version because a catalog image usually hosts multiple operators

After taking a deeper look to the current bundle.md, I think it require a deeper refactoring:
1. The steps to [build the bundle image](https://github.com/artemiscloud/activemq-artemis-operator/blob/1.2.0/docs/help/bundle.md#building-the-bundle-image) should be removed because now the CI workflow push the official bundle images to quay.io/artemiscloud/activemq-artemis-operator-bundle

2. The `v` prefix should be removed from the tag versions

3. The private repo `quay.io/hgao` should be removed by the public doc

4. The catalog image tag should not match the operator version because a catalog image usually hosts multiple operators

we can reference the bundle repository here, users who follow the doc don't need build themselves. and adjust the Building the catalog image  accordingly.

Also the Installing olm , the command operator-sdk olm install no longer works, we can replace it by using the olm installation doc or use our script hack/install_olm.sh

@Msarawan I think it still requires a deeper refactoring. I created a draft with the minimum steps required to clarify what I mean https://github.com/brusdev/activemq-artemis-tutorials/tree/main/activemq-artemis-bundle
That draft works with the v prefix removed from the tag versions:
diff Makefile
-BUNDLE_IMG ?= $(IMAGE_TAG_BASE)-bundle:v$(VERSION)
+BUNDLE_IMG ?= $(IMAGE_TAG_BASE)-bundle:$(VERSION)

-CATALOG_IMG ?= $(IMAGE_TAG_BASE)-catalog:v$(VERSION)
+CATALOG_IMG ?= $(IMAGE_TAG_BASE)-catalog:$(VERSION)

Thanks for the clarification, @brusdev . It makes sense to me. I'll update the document by referring to the draft Readme file.

@Msarawan can you squash your commits?

@Msarawan @brusdev I run this command and still got the error (I think it's pulling v1.2.1 rather then 1.2.1 bundle),
I think we should change Makefile here to remote the 'v' from the version tag.
make CATALOG_IMG=quay.io/my-org/activemq-artemis-operator-index:latest catalog-build

./bin/opm index add --container-tool docker --mode semver --tag quay.io/my-org/activemq-artemis-operator-index:latest --bundles quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1
WARN[0000] DEPRECATION NOTICE:
Sqlite-based catalogs and their related subcommands are deprecated. Support for
them will be removed in a future release. Please migrate your catalog workflows
to the new file-based catalog format.
INFO[0000] building the index                            bundles="[quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1]"
INFO[0000] running /usr/bin/docker pull quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1  bundles="[quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1]"
ERRO[0006] Error response from daemon: manifest for quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1 not found: manifest unknown: manifest unknown  bundles="[quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1]"
INFO[0006] running docker create                         bundles="[quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1]"
ERRO[0012] permissive mode disabled                      bundles="[quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1]" error="[error pulling image: Error response from daemon: manifest for quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1 not found: manifest unknown: manifest unknown\n. exit status 1, error creating container : exit status 1: Unable to find image 'quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1' locally\nError response from daemon: manifest for quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1 not found: manifest unknown: manifest unknown\n]"
Error: [error pulling image: Error response from daemon: manifest for quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1 not found: manifest unknown: manifest unknown
. exit status 1, error creating container : exit status 1: Unable to find image 'quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1' locally
Error response from daemon: manifest for quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1 not found: manifest unknown: manifest unknown

@Msarawan @brusdev I run this command and still got the error (I think it's pulling v1.2.1 rather then 1.2.1 bundle), I think we should change Makefile here to remote the 'v' from the version tag.
make CATALOG_IMG=quay.io/my-org/activemq-artemis-operator-index:latest catalog-build

./bin/opm index add --container-tool docker --mode semver --tag quay.io/my-org/activemq-artemis-operator-index:latest --bundles quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1
WARN[0000] DEPRECATION NOTICE:
Sqlite-based catalogs and their related subcommands are deprecated. Support for
them will be removed in a future release. Please migrate your catalog workflows
to the new file-based catalog format.
INFO[0000] building the index                            bundles="[quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1]"
INFO[0000] running /usr/bin/docker pull quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1  bundles="[quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1]"
ERRO[0006] Error response from daemon: manifest for quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1 not found: manifest unknown: manifest unknown  bundles="[quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1]"
INFO[0006] running docker create                         bundles="[quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1]"
ERRO[0012] permissive mode disabled                      bundles="[quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1]" error="[error pulling image: Error response from daemon: manifest for quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1 not found: manifest unknown: manifest unknown\n. exit status 1, error creating container : exit status 1: Unable to find image 'quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1' locally\nError response from daemon: manifest for quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1 not found: manifest unknown: manifest unknown\n]"
Error: [error pulling image: Error response from daemon: manifest for quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1 not found: manifest unknown: manifest unknown
. exit status 1, error creating container : exit status 1: Unable to find image 'quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1' locally
Error response from daemon: manifest for quay.io/artemiscloud/activemq-artemis-operator-bundle:v1.2.1 not found: manifest unknown: manifest unknown

Hey @gaohoward, I encountered the same error you mentioned. I couldn't check it yesterday due to getting some issues while installing olm in my local machine, but I ran the command today and got the same error. I tried removing the v from the makefile, and it worked.


Proposal: generate a hypershift-operator selectorsyncset template

This PR is a proposal for HOSTEDCP-613 and aims at showing how we can deploy directly the hypershift operator on a set of hive-managed OSD clusters, using SelectorSyncSet. The target is to:

Enable autonomy of configuration and deployments to the hypershift team
Enable progressive rollout over a set of sectors on a fleet of management clusters

This template should be applied on all hive clusters, once for each environment/sector. This allows progressive rollout via SelectorSyncSet: Once the first sector SSS is applied and verified, we can move one to deploying the second one, and so on.
Since there is no ClusterDeployment label for sectors for now, the region is being used as a default. This can be overriden with template parameters.
What this PR does / why we need it:
This is a proposal on how to deploy hypershift operator directly from this repo, without interacting with ACM nor OSD-Fleet-Manager teams to push changes.
The AWS region and external-dns domain-filter and txt-owner-id configs can now be set via secrets. This is needed to enable deployment via SSS since these settings must be specific for each management cluster, or should be configurable by other components.
This PR would have to be paired up with an app-interface configuration, much like the one we had prior to using ACM.
It also needs corresponding ACM configuration to:

not deploy hypershift operator anymore
still register its usage in ACM so that HostedClusters get properly registered in ACM.

It might be easier to review 1 commit at a time.
Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes part of #HOSTEDCP-613
Checklist

[ ] Subject and description added to both, commit and PR.
[ ] Relevant issues have been referenced.
[ ] This change includes docs.
[ ] This change includes unit tests.

/test e2e-aws

@csrwng if you have the time, could you have a look at this proposal of deploying hypershift-operator as a Hive SelectorSyncSet onto management clusters, instead of going the ACM addon route ?

Thanks a lot @patjlm, this is very amazing work! I dropped some minor comments, let's rebase and ship it.
Then we can follow up for:

PR the template against app-interface.

Should I follow https://gitlab.cee.redhat.com/service/app-interface/-/blob/master/docs/app-sre/continuous-delivery-in-app-interface.md?

PR for the data in secrets to be provided by FM via CS SyncSet API.
Introduce basic gating signal / roll-back.

Make sense?

Thanks a lot @patjlm, this is very amazing work! I dropped some minor comments, let's rebase and ship it.

Sorry for the delay. I was not able yet to get back to this. I only rebased and pushed today. Let me know if you want to merge and follow up on comments in future PRs, or if you'd prefer comments to be tackled here.


[hotfix][hold] alert users of pending registration changes

Purpose
With registration retractions and embargoes going into production on the 29th of this month, users need notification regarding the pending behavior changes of registrations.
Changes
Users that contribute to registrations will be emailed the template (needs revision @bnosek @saradbowman) regarding the future changes.
Users that wish to create a new registration will be warned of upcoming changes:

Users that wish to make existing registrations public will also be warned of upcoming changes:

All contributors to registrations will receive an email akin to what Mr. Pew would see below:

Side Effects
None
Notes
The action labels will need to revised or removed once retractions and embargoes are in production.
@sloria @JeffSpies -- Retractions/Embargoes are set to get merged into production on the 29th. This hotfix and respective email should be merged and issued out as close to tomorrow morning as possible. Changes are as small as I could make them to help facilitate Steve's review.

@bnosek @saradbowman  @JeffSpies @sloria all messages have been reviewed and revised. Please give them another once over and let me know if anything strikes you as needing further revisions.

@bnosek @saradbowman example email output added to PR description.

Looks good to me!
On Mon, May 18, 2015 at 8:48 AM, Harry Rybacki<EMAIL_ADDRESS>wrote:

@bnosek https://github.com/bnosek @saradbowman
https://github.com/saradbowman example email output added to PR
description.
—
Reply to this email directly or view it on GitHub
https://github.com/CenterForOpenScience/osf.io/pull/2740#issuecomment-103049779
.

@sloria good to go pending a language review from @bnosek. How do we want to handle the action message updates?


Typescript Definitions

Hello,
Thank you very much for the library. It's great.
Would it be possible for you to add typescript definitions for the library?
Have a great week.

#12 I don't think the maintainers are active in this project anymore :(

If you don't want to use the type defs from #12, then here's just the quick workaround suggested by ng serve output in Angular.
For ES2015 Angular 15, after npm install page-lifecycle, added file src/lifecycle.mjs.d.ts or node_modules/page-lifecycle/dist/lifecycle.mjs.d.ts:
declare module 'node_modules/page-lifecycle/dist/lifecycle.mjs';

Then imported like this:
import lifecycle from 'node_modules/page-lifecycle/dist/lifecycle.mjs';

No frills, though.


Adding the latest version id and name to the artifact response

Describe changes
I added the latest version ID and name to the artifact response.
Pre-requisites
Please ensure you have done the following:

[X] I have read the CONTRIBUTING.md document.
[X] If my change requires a change to docs, I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[X] I have based my new branch on develop and the open PR is targeting develop. If your branch wasn't based on develop read Contribution guide on rebasing branch to develop.
[X] If my changes require changes to the dashboard, these changes are communicated/requested.

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Other (add details above)

@coderabbitai review


reuse gRPC client connections

FYI, test failures are because Travis CI runs it against srclib master (not nodb).

Overall, I think this makes sense. You're moving the grpc.WithPerRPCCredentials(cred) which uses cred right then from being an option when doing grpc.Dial, to having a general grpc.WithPerRPCCredentials(contextCredentials{}) option which determines credentials from grpc request metadata.
There are still details that I am not 100% confident about, but that's because I am not fully familiar with grpc yet. For example,
var NewClientFromContext = func(ctx context.Context) *Client {
	...
	for _, cred := range clientCredentialsFromContext(ctx) {
		transport = cred.NewTransport(transport)
	}
	opts = append(opts, grpc.WithPerRPCCredentials(contextCredentials{}))

	conn, err := pooledGRPCDial(grpcEndpoint.Host, opts...)
	...
	c := NewClient(&http.Client{Transport: transport}, conn)
	...
	return c
}

My concern was about the transport being built from cred := range clientCredentialsFromContext(ctx), but I see how that works now since the transport is a part of the returned client, not a part of the grpc.Conn.

Yeah. And the transport is a bit weird - it's a holdover from the HTTP/1.1 API. It is only used for build data (i.e., .srclib-cache data) (which is still on HTTP/1.1).
There might be an easier way to do it, but if this LGTYFN (looks good to you for now) then I'll merge.


add lark-parser for debian via pip

Add pip package lark-parser (https://pypi.org/project/lark-parser/) for Debian Stretch.

Yes, it's a python3 package.
I am not sure how I can force the python3 version via the rosdep file. It's up to the version of pip which python version of the package is installed. But since ROS2 defaults to python3 (and ROS1 to python2), the corresponding python version should be used to install pip packages.

I agree that the pip rule is functional. But the debian rule is incorrect as that package is both the wrong python version and doesn't exist for either version.

With https://github.com/ros/rosdistro/pull/22234 merged I would propose that we close this PR.

Is python3-lark-parser now a Debian package that has been manually added to the ROS repo for stretch and buster?
In that case, the pip3 installation of the package is not required and this PR can be closed.

Is python3-lark-parser now a Debian package that has been manually added to the ROS repo for stretch and buster?

Yes. It's both the ROS and ROS 2 repositories and their respective testing repos for Ubuntu Bionic and Debian Stretch and Buster. For future distributions I'm going to try and get the packages submitted upstream.


Add missing columns to gwctl get policies

What type of PR is this?

/kind feature
/area gwctl
/cc @gauravkghildiyal
What this PR does / why we need it:
Add missing columns to gwctl get policies.

Output Columns
Description
Visibility

NAME
Name of the Policy

KIND
The kind of policy in the form <kind.group>

TARGET NAME
Name of the resource the policy applies to

TARGET KIND
The kind of target resource in the form

POLICY TYPE
Type of policy (Inherited or Direct)

AGE
Age of the Policy

Which issue(s) this PR fixes:

Fixes #2807
Does this PR introduce a user-facing change?:

Add missing columns to `gwctl get policies`

/assign

I'll work on injecting the fack clock during testing.

/lgtm
/approve


Add support for apps/v1 workloads (Kind: Deployment)

kind/enhancement
area/api
Rancher versions:
rancher/server or rancher/rancher: 2.0.8
rancher/agent or rancher/rancher-agent:

Kind: Deployment
APIVersion: apps/v1

are not shown as Rancher workloads, whereas

Kind: Deployment
APIVersion: apps/v1beta2

are.
I'm writing an operator and want to be able to use stable apps api.
I need to work around with this to get the visibility, I need: https://gist.github.com/superseb/3a9c0d2e4a60afa3689badb1297e2a44

ping @deniseschannon

@blaggacao apps/v1 is supported for 1.9+ clusters. Given that we use the same client to talk to users clusters of diff versions, we will continue using apps/v1beta2 till support for 1.8 clusters is "hard" dropped

Since Rancher v2.1.3, it seems that K8s 1.8 is no more supported.

Rancher could support apps/v1 but it doesn't, this error message apear :
/!\ the API version in the data (apps/v1) does not match the expected API version (apps/v1beta2)

This is now supported.


Apply excludes to editor history quick open too

VSCode Version: 1.1.0-alpha
OS Version: Windows 10

Related #3615
Steps to Reproduce:
I'm working in the smoke test repo (link)

Use quick open Ctrl+P to open some files in node_modules folder (I just used index.js as it occurs a lot)
Add in settings

"search.exclude": {
    "**/node_modules": true
}

Use Ctrl+P type 'index.js'

The list of recent files still includes files located in /node_modules. I found a previous thread that says using Ctrl+K W will remove them, but excluding them in user settings should also apply to recently opened files without having to use a command to close/remove them.

We should apply the excludes to the editor history too.

+1 on fixing this...

I was very committed to using VS Code (authored 3 plugins for apex development and contributed to a 4th) but I'm sad to say abandoning it for now...
This bug killing my productivity (even caused me to introduce a production bug) and there is no viable work around.
Once you open an search excluded file, it will always seem to pop-up ahead of search included files.  Even, if I exclude the file from the project, it still shows up.

@ChuckJonas as a workaround there is a command "Clear Editor History" (removes all) and "Remove from Editor History" to remove an individual entry.

@bpasero Thanks for the workaround, I just bumped into this issue in v.1.17.1
I see this issue has been closed, so is there no plan to apply the exclude setting on the history?


Failed to find instance type option(s)

Hi all!
When apply provisioner and scale test deployment i get some error in logs controller:
2022-01-13T21:43:17.290Z	INFO	controller.provisioning	Waiting for unschedulable pods	{"commit": "5047f3c", "provisioner": "default"}
2022-01-13T21:43:19.291Z	INFO	controller.provisioning	Batched 4 pods in 1.001107034s	{"commit": "5047f3c", "provisioner": "default"}
2022-01-13T21:43:19.333Z	ERROR	controller.provisioning	Failed to find instance type option(s) for [default/inflate-6b88c9fb68-8vvs5 default/inflate-6b88c9fb68-22hlt default/inflate-6b88c9fb68-dfzgm default/inflate-6b88c9fb68-ttrhh]	{"commit": "5047f3c", "provisioner": "default"}

Use Provisioner:
apiVersion: karpenter.sh/v1alpha5
kind: Provisioner
metadata:
  name: default
spec:
  requirements:
    - key: "topology.kubernetes.io/zone"
      operator: In
      values: ["eu-west-2a", "eu-west-2b", "eu-west-2c"]
    - key: "kubernetes.io/arch"
      operator: In
      values: ["arm64", "amd64", "x86"]
    - key: node.kubernetes.io/instance-type
      operator: In
      values: [ "t2.medium", "t3a.medium", "t3.large"]
    - key: karpenter.sh/capacity-type
      operator: In
      values: ["spot", "on-demand"]
  limits:
    resources:
      cpu: 1000
  provider:
    instanceProfile: dev-eks-20211224135100984100000004
  ttlSecondsAfterEmpty: 30

Deploy karpenter chart by ansible:
- name: Deploy karpenter chart
  kubernetes.core.helm:
    name: "{{ karpenter_namespace }}"
    create_namespace: true
    release_namespace: "{{ karpenter_namespace }}"
    chart_ref: karpenter/karpenter
    chart_version: 0.5.3
    release_values:
      serviceAccount:
        create: true
        name: karpenter
        annotations:
          eks.amazonaws.com/role-arn: "arn:aws:iam::{{ account_id }}:role/EKS-Karpenter-Role"
      controller:
        clusterName: "{{ cluster_name }}"
        clusterEndpoint: "{{ cluster_endpoint }}"

Can u help my?
Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

This looks like a duplicate of https://github.com/aws/karpenter/issues/1141 so I'm going to resolve this one.


query: Internal Server Error unknown targetHealth: "unknown" when trying to open the targets page

Thanos, Prometheus and Golang version used:
thanos query 0.30.2
thanos sidecar 0.31.0
prometheus 2.45.0

Object Storage Provider:
What happened:
when opening the targets page on thanos query, there is an error: Error: Error fetching Targets information: Internal Server Error
and the targets are not displayed.
in the browsers' developer tools, I can see a call to
api/v1/targets?state=active
when trying to call that endpoint directly I get:
{
_status: "error",
errorType: "internal",
error: "retrieving targets: proxy Targets: receiving targets from targets client &{0xc0009b1400}: rpc error: code = Internal desc = unknown targetHealth: "unknown""
}

What you expected to happen:
targets page shows all targets and no errors.
How to reproduce it (as minimally and precisely as possible):
Full logs to relevant components:

Anything else we need to know:
as discussed at https://cloud-native.slack.com/archives/CK5RSSC10/p1711881117050809
it seems that the unknow state is missing for the TargetHealth_value at the targetpb/rpc.proto

I tried to debug and from what I saw, it seems that the step is a little higher (~66 seconds) when deduping and not using implicit step