Default methods are not correctly backported

As stated in the guide:

Default methods are backported by copying the default methods to a companion class (interface name + "$") as static methods, replacing the default methods in the interface with abstract methods, and by adding the necessary method implementations to all classes which implement that interface.

If I have this interface:
public interface TestI {
  default void test() {}
}

and this class:
public class TestC implements TestI {}

as far as I understand the output of retrolambda will be:

An interface with an abstract method test
A new class with a static method (empty in the example)
The class TestC with the implemented test method

So, If then I have a new class:
public class Test2 {
  static {
   new TestC().test();
  }
}

This should work. Am I right?
I'm asking this because it doesn't.

Test2.java:3: error: cannot find symbol
new TestC().test();
^
symbol:   method test()
location: class TestC

If I decompile I found:
public abstract interface TestI {
  public abstract void test();
}
public class TestI$ {
  public static void test(TestI paramTestI) {}
}

and:
public class TestC  implements TestI {}

I don't think the last one is right. I'm doing something wrong or I didn't understand the section:

by adding the necessary method implementations to all classes which implement that interface.

If I use javap I obtain
public class TestC implements TestI {
  public TestC();
  public void test();
}

So the method is there but as the decompiler cannot find it neither javac does.
I tried both using compatibility with bytecode 50 and 51 using the latest version.

java -Dretrolambda.defaultMethods=true -Dretrolambda.bytecodeVersion=50 -Dretrolambda.inputDir=. -Dretrolambda.classpath=. -jar retrolambda.jar

You can reproduce it by using the same source code
Of course it would be nice if my TestC has all the implementation so that I can use it in other java7 project.

If it can help, I can add the following:
Using IntelliJ as IDE, when I type "new TestC()." it autocomplete with test() method, it found it. So if I type "new TestC().test()" it doesn't throw any error.
But when I then compile (maven or ant) it will throw the same error as above.

This will instead work:
public class Test2 {
  static {
    TestI t = new TestC();
    t.test();
  }
}

I also tried to run it inside main() and it works, while this doen't:
public class Test2 {
  static {
    TestC t = new TestC();
    t.test();
  }
}

(I just changed the type of t)
So the problem is the compilation phase.

I'm unable to reproduce this. Here is the output from javap:
$ javap -p -v end-to-end-tests/target/classes/TestI.class
Classfile /C:/DEVEL/Retrolambda/retrolambda/end-to-end-tests/target/classes/TestI.class
  Last modified 7.6.2015; size 112 bytes
  MD5 checksum 41dda4160c62269e56d7aba1673b0e63
  Compiled from "TestI.java"
public interface TestI
  minor version: 0
  major version: 51
  flags: ACC_PUBLIC, ACC_INTERFACE, ACC_ABSTRACT
Constant pool:
  #1 = Utf8               TestI
  #2 = Class              #1              // TestI
  #3 = Utf8               java/lang/Object
  #4 = Class              #3              // java/lang/Object
  #5 = Utf8               TestI.java
  #6 = Utf8               test
  #7 = Utf8               ()V
  #8 = Utf8               SourceFile
{
  public abstract void test();
    descriptor: ()V
    flags: ACC_PUBLIC, ACC_ABSTRACT
}
SourceFile: "TestI.java"

$ javap -p -v end-to-end-tests/target/classes/TestI\$.class
Classfile /C:/DEVEL/Retrolambda/retrolambda/end-to-end-tests/target/classes/TestI$.class
  Last modified 7.6.2015; size 232 bytes
  MD5 checksum 3f3d7421bf979cb865cf6ae303ef6586
  Compiled from "TestI.java"
public class TestI$
  minor version: 0
  major version: 51
  flags: ACC_PUBLIC
Constant pool:
   #1 = Utf8               TestI$
   #2 = Class              #1             // TestI$
   #3 = Utf8               java/lang/Object
   #4 = Class              #3             // java/lang/Object
   #5 = Utf8               TestI.java
   #6 = Utf8               test
   #7 = Utf8               (LTestI;)V
   #8 = Utf8               this
   #9 = Utf8               LTestI;
  #10 = Utf8               Code
  #11 = Utf8               LocalVariableTable
  #12 = Utf8               LineNumberTable
  #13 = Utf8               SourceFile
{
  public static void test(TestI);
    descriptor: (LTestI;)V
    flags: ACC_PUBLIC, ACC_STATIC
    Code:
      stack=0, locals=1, args_size=1
         0: return
      LocalVariableTable:
        Start  Length  Slot  Name   Signature
            0       1     0  this   LTestI;
      LineNumberTable:
        line 2: 0
}
SourceFile: "TestI.java"

$ javap -p -v end-to-end-tests/target/classes/TestC.class
Classfile /C:/DEVEL/Retrolambda/retrolambda/end-to-end-tests/target/classes/TestC.class
  Last modified 7.6.2015; size 326 bytes
  MD5 checksum 9c1281b74a7f95fa46102e959ea50a7b
  Compiled from "TestC.java"
public class TestC implements TestI
  minor version: 0
  major version: 51
  flags: ACC_PUBLIC, ACC_SUPER
Constant pool:
   #1 = Utf8               TestC
   #2 = Class              #1             // TestC
   #3 = Utf8               java/lang/Object
   #4 = Class              #3             // java/lang/Object
   #5 = Utf8               TestI
   #6 = Class              #5             // TestI
   #7 = Utf8               TestC.java
   #8 = Utf8               <init>
   #9 = Utf8               ()V
  #10 = NameAndType        #8:#9          // "<init>":()V
  #11 = Methodref          #4.#10         // java/lang/Object."<init>":()V
  #12 = Utf8               this
  #13 = Utf8               LTestC;
  #14 = Utf8               test
  #15 = Utf8               TestI$
  #16 = Class              #15            // TestI$
  #17 = Utf8               (LTestI;)V
  #18 = NameAndType        #14:#17        // test:(LTestI;)V
  #19 = Methodref          #16.#18        // TestI$.test:(LTestI;)V
  #20 = Utf8               Code
  #21 = Utf8               LocalVariableTable
  #22 = Utf8               LineNumberTable
  #23 = Utf8               SourceFile
{
  public TestC();
    descriptor: ()V
    flags: ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
         0: aload_0
         1: invokespecial #11                 // Method java/lang/Object."<init>":()V
         4: return
      LocalVariableTable:
        Start  Length  Slot  Name   Signature
            0       5     0  this   LTestC;
      LineNumberTable:
        line 1: 0

  public void test();
    descriptor: ()V
    flags: ACC_PUBLIC, ACC_SYNTHETIC
    Code:
      stack=1, locals=1, args_size=1
         0: aload_0
         1: invokestatic  #19                 // Method TestI$.test:(LTestI;)V
         4: return
}
SourceFile: "TestC.java"

$ javap -p -v end-to-end-tests/target/classes/Test2.class
Classfile /C:/DEVEL/Retrolambda/retrolambda/end-to-end-tests/target/classes/Test2.class
  Last modified 7.6.2015; size 337 bytes
  MD5 checksum e04c6d30bd057a3141d0b4f79144218f
  Compiled from "Test2.java"
public class Test2
  minor version: 0
  major version: 51
  flags: ACC_PUBLIC, ACC_SUPER
Constant pool:
   #1 = Utf8               Test2
   #2 = Class              #1             // Test2
   #3 = Utf8               java/lang/Object
   #4 = Class              #3             // java/lang/Object
   #5 = Utf8               Test2.java
   #6 = Utf8               <init>
   #7 = Utf8               ()V
   #8 = NameAndType        #6:#7          // "<init>":()V
   #9 = Methodref          #4.#8          // java/lang/Object."<init>":()V
  #10 = Utf8               this
  #11 = Utf8               LTest2;
  #12 = Utf8               <clinit>
  #13 = Utf8               TestC
  #14 = Class              #13            // TestC
  #15 = Methodref          #14.#8         // TestC."<init>":()V
  #16 = Utf8               test
  #17 = NameAndType        #16:#7         // test:()V
  #18 = Methodref          #14.#17        // TestC.test:()V
  #19 = Utf8               Code
  #20 = Utf8               LocalVariableTable
  #21 = Utf8               LineNumberTable
  #22 = Utf8               SourceFile
{
  public Test2();
    descriptor: ()V
    flags: ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
         0: aload_0
         1: invokespecial #9                  // Method java/lang/Object."<init>":()V
         4: return
      LocalVariableTable:
        Start  Length  Slot  Name   Signature
            0       5     0  this   LTest2;
      LineNumberTable:
        line 1: 0

  static {};
    descriptor: ()V
    flags: ACC_STATIC
    Code:
      stack=2, locals=0, args_size=0
         0: new           #14                 // class TestC
         3: dup
         4: invokespecial #15                 // Method TestC."<init>":()V
         7: invokevirtual #18                 // Method TestC.test:()V
        10: return
      LineNumberTable:
        line 3: 0
        line 4: 10
}
SourceFile: "Test2.java"

Based on your report of Test2.java:3: error: cannot find symbol, it seems to me that you are calling the Java compiler after running Retrolambda. The way that Retrolambda backports default methods is incompatible with incremental compiling. You must always make a clean build (e.g. mvn clean verify) or you will end up with weird compile errors.
I presume that this is the case here, so I'm closing this issue.

Hi, thanks for your time. I'm going to try to explain better what I want to achieve and what I understood for what the retrolambda incremental compiling limitation is.
First, I'd like to do the following, which I supposed I could do:

I have a library project written in Java 8 with interfaces with default methods
I compile this project with retrolambda and obtain a Java 7 compatible jar
I want to use this library in another Java 7 project

All went well until I invoke, as the opened issue, a method on an object declared as itself when this method is declared as default in interface and it is not overridden. Maybe I was wrong but I supposed that the backport task would put the missing implementations in all the classes without the method. But it does not work.
But, it does work whenever:

I declare the object as the interface (it finds the method)
The default method is overridden (it obviously finds the method)

So the method is there.
For incremental compiling limitation I understood that, if I want to create or modify a class that implements the backported interface this does not work because it cannot backport the default method again in the new class. This sounds right and I can live with that. You already backported missing methods so I understand you cannot backport them twice. What made me open the issue is that the compiler output changes depending on how I declare the object (interface or itself)
I do not know the implementation details but is it possible to have the backported classes work if I just use it without adding any functionality (e.g., new overriding classes)?
I'd like the backported concrete classes to have the implementation of the default methods so I can invoke them when using the project as library of another Java 7 project. Is it possible?
Finally, now I'm using a simple workaround that is to implement the default methods in the concrete classes (point 2 of exceptions). Doing so it works.
Am I wrong or does it make any sense to you?
Thanks

Ok, so it's some issue to do with using the methods from a different module. I'll look into it.

It might have to do with Retrolambda marking the method in TestC as synthetic. I'll need to check the language spec to see whether the Java compiler disallows such calls...

This is fixed in Retrolambda 2.0.4


SendGrid account was frozen

Cannot change my card (fraud filter), cannot pay using a current card (did not successfully collect balance)
All links in emails were broken... There isn't any support response for 10 days (https://support.sendgrid.com/hc/en-us/requests/5185815)
Account id: sga78236d4a4d8564aa02490f26123c348
Help pls!

solved


Hello, sorry to bother you. My training was suddenly interrupted due to unexpected factors. How can I continue my training?

Hi @yjq767579182,
Could you please share the bug reports?
Cheers,
Yuyuan


KMS integration

KMS integration is breadcrumbed around:
https://github.com/thepwagner/flotilla/blob/master/src/flotilla/client/db.py#L46
https://github.com/thepwagner/flotilla/blob/master/src/flotilla/agent/db.py#L57
The latter is also where .service files are loaded back from the DB: could start with hash validation (or add signatures?), then continue on to KMS from there...

Encryption implemented. But it's a blackhole because I didn't get to decryption :P


Refactor/reduce code duplication in plugins

@jhnnsrs I think its time, that you take a look at this.
The PR contains the refactoring of EnumsPlugin, InputsPlugin and ObjectsPlugin.
I mainly focused on breaking down the large functions into smaller methods of each Plugin.
Some code duplication is eliminated, the remaining similarities should be pretty obvious by now (as a preparation for the next refactoring iteration).
There is a new module ast_generators that contains all concrete AST-Generation logic that was (duplicated a lot) in every plugin before.
I have the feeling, that there also should be a stricter separation between the concerns:

Schema Parsing (Main job of the Plugin)
Registration (Which Objects/Enums/Inputs to include)
AST-Generation (Translate GraphQL Type to pydantic Model + Plugin-specific types like Operations/Funcs)
Custom Styling (influence ast-generation, not during class registration)

Currently, each plugin does almost everything.
Only the styling is somehow part of the ClassRegistry, were it shouldn't belong IMHO.
Also, have a look at this test tests/plugins/test_objects.py::make_test_cases_union_field_value

Great work!
I especially appreciate the "TypeAstGenerator" efforts. That should easily translate to the other plugins as well, and I could see this potentially extend to having a "pure dataclass" or "attrs" version to allow support for generation other than pydantic. Great stuff!
I see we are also becoming fully object-oriented ;) Personally I am not sure if that is really increasing readability (e.g one-line functions like "_type_has_description"). But I am not too hard set on this. I am just wondering how well it will translate to more recursive plugins like fragments or operations (in terms of readability)?
Registration would be something that i would feel like should be handled by the plugin itself, but yes, maybe through composition of a 'Filter mixin' implementing "skip_type", according to some config parameters like
- type: enums.Enums.Plugin
  filter:
       whitelist: 'regex'

That would maybe also justify defining config values directly in the plugin instead of a dedicated configclass.
What are your thoughts?
Again great work! Thanks a lot for putting so much work in it!

Whats your idea where styling should be placed?  Closer to the ast generation itself?

I personally really like the idea, of directly passing the GraphQL-Core-Types to the Ast-Generator and make it an implementation detail of the generator what comes out.
Therefore, the stylers could / should be given to the ast-generator as a dependency.
But I'm not sure if that leads to difficulties when the styled-names are referenced ...
Maybe we just need a simple map(ping function) here, like: type_to_styled_name_map: Dict[GraphQLNamedType, str].

I see we are also becoming fully object-oriented ;) Personally I am not sure if that is really increasing readability (e.g one-line functions like "_type_has_description"). But I am not too hard set on this. I am just wondering how well it will translate to more recursive plugins like fragments or operations (in terms of readability)?

Well, I really think separating meaning and implementation improves the "thinkability" a lot. Even if it leads to more LoC.
The difference between:
if self._type_has_description(gql_type)
and
if gql_type.description is not None
are the 10 seconds (or more)

to lookup, that gql_type is e.g. a GraphQLObjectType,
that GraphQLObjectType has a description field
the description can be optional
and to figure out, that it should be "self-explanatory" that there is no description if description is None.

Compared to a simple Does it have a description?
Anyways, the main point was to put this method into a shared base class.
BTW, I'm not sure anymore if the base-Plugin is the right place for this. Maybe a composition (e.g.TypePluginMixin ) is better suited.

Registration would be something that i would feel like should be handled by the plugin itself, but yes, [...].

What is the purpose of ClassRegistry then?
If we take away styling - as this is a separate concern and should be a separate class then - there is not much left.
I can figure out:

register imports (which is really nice)
register forward references.

Did I miss something?
And one thought to the forward references:
Does it add any value not to use forward references everywhere?
It would reduce the ClassRegistry to a list-manager of imports and types that need to call XXX.update_forward_ref() at the end of the file (this could shrink the code to almost nothing instead of 400+ lines 😉  )

No thats about it for ClassRegistry ;)
I do however think that keeping track of forward references is useful, as every call to update_forward_refs has an impact
on module import, and that is something that pydantic already struggles with, so i would try to keep that as minimal as possible.

Maybe we just need a simple map(ping function) here, like: type_to_styled_name_map: Dict[GraphQLNamedType, str].

This I think would be interesting, even going so far as to say that maybe it should be
type_to_ast_element_map: Dict[GraphQLNamedType, AstElement]
where AstElement could representent the ast.Node that was generated through the AstGenerator(Factory) (and i agree here should we put the stylers) so we could have
class AstElement(ABC):

class UnionElement(AstElement):
   ''' Could be used for referencing Interfaces ''''
   pass

class ClassElement(AstElement).
   pass

And then according to the AstFactory an element like this.
class PydanticClass(ClassElement):
    pass

class DataclassClass(ClassElement):
    pass

And these would then be registered in the Registy?

Would you be willing to continue on this PR until we have the transition of all plugins to be merged? Or do you feel it would be good to already preliminary merge?

I could imagine that, but I can't promise that I will get to it.
Keep in mind, that you are also able to push to this branch (in my fork), as it is a fork of your project.
As an alternative, we could merge this PR into a feature-branch in the main repo - to ease collaboration.

Hi @j-riebe , sorry for the late reply, i was knocked out cold by covid and the brain fog is just lifting :D There is some mature deadlines heading my way so I will probably not be able to work on migrating the other plugins for now, but I agree that a feature branch would be a good idea.

And TemplateNode is back...


Ranger Sword 2 and Sword 3 IDs swapped

So sorry to bother again.
After some testing, it appears that the ID for Ranger's sword 3 and sword 2 are swapped. The dps report (https://dps.report/KXbi-20231003-200539_golem) has the order of 2-4-3 and the generated output is 3-4-2:
            "time": 2112,
            "duration": 848,
            "noteType": "Weapon3",
            "abilityId": 69203
        },
        {
            "time": 2960,
            "duration": 432,
            "noteType": "Weapon4",
            "abilityId": 12638
        },
        {
            "time": 3392,
            "duration": 1008,
            "noteType": "Weapon2",
            "abilityId": 12482
        },

I think that's ability optimization feature failing for some reason. If you toggle that off, it will switch back to 2,4,3. I'm looking into why it tried to move those around.

It seems to be staying the same. Only the timing changes (as it's supposed to)

Sorry, I tested on a local one that had the new scraped data for skills. That seems to have been the problem. I've pushed up a new version, can you please try it on that, I think it's working with the ability queue feature as well.

That works. Thank you :D

Thanks for letting me know. I've also released a new Blish module which should fix the broken icons in the module for the new SotO skills (basically, some new skill IDs for existing weapons when used on new elite specializations)


[Bug]

🐛 Bug Report

Steps to Reproduce

Expected Behavior

Your Environment

Bridge Pending problem
Transaction Hash:
0x0bc0a62833a04e81fc15363ca2098ba229cad31431d39e455ab1e1aa4ac2ee30
Aleo address - aleo152p4q762mcvjtjzgqlcgpfym8dm6ghlsrjrmv04uaw9tz0q7hvqs424lrz
Metamask address- 0x3814bc997f9d863976959fb71581d5de52def287
Solve issu

Can you please elaborate?

Closing the issue due to inactivity and lack of further information.

Currently point update issu facing


use github.com/Masterminds/semver/v3

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
6 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.1%) to 26.26%

Files with Coverage Reduction
New Missed Lines
%

pkg/cli/cc/ports.go
6
76.27%

Totals

Change from base Build<PHONE_NUMBER>:
-0.1%

Covered Lines:
1230

Relevant Lines:
4684

💛  - Coveralls


Weird generation

Hi,
First, thanks for your work :)
Second, I tried to use your code without any changes for test purposes,, but result isn't good.
Output of python rnn_tf.py saved\model.ckpt "The "

It's a normal result for default configuration or not?
Btw, one time I tried to clear saved folder, and after train file model.ckpt didn't create, only checkpoint/index/meta/data files. It's right behavior or I missed  something?
My env:
Windows 10 x64
Python 3.5.2
Tensorflow GPU 1.1.0 (works with GeForce GTX 950M)

The tf.train.Saver() method doesn't work correctly on Windows for restoring or saving models. If you run train the network from scratch on your Windows machine you'll see good text, but you won't be able to save the model once training finishes.

Thanks for response, @therealjtgill
so there is no way to make it work on Windows?

I tried to pass write_version=tf.train.SaverDef.V1 to tf.train.Saver.
After that model.ckpt created, but it seems that restore function doesn't restore...
Also I tried something like this (V2):
checkpoint_dir='saved/'
cwd = os.getcwd();
ckpt = tf.train.get_checkpoint_state(checkpoint_dir)
saver = tf.train.import_meta_graph(cwd + "/saved/model.ckpt.meta")
saver.restore(sess, tf.train.latest_checkpoint(cwd + "/saved/"))

All functions passed without errors, but result still the same

I'm sorry I've been out of the country for a while. Did you manage to solve your problem?

@spiglerg
Hi. Currently I didn't found working solution...

i have same error, i was fix dump vocab and reload vocabulary, this error from vocab = list(set(data_)),
first:
vocab = [1,2,3,4]
2nd:
vocab = [2,1,4,3]

I too faced the same situation with anaconda. I think there is a problem with the anaconda as it is not clearing the cache well. If we use Pycharm the code works fine. Just try once with pycharm

Hmm sounds like an interesting observation!
I've committed the change to the reposity, thank you very much for pointing it out! :)


bug: Bad Local Variable Type

What happened?
Attempted to launch the game with the most recent update of this mod (along side.. hundreds of others) and the game will not launch.
What should have happened?
Game should have, you know, loaded up lol
How to reproduce?
I have too many mods to list them here but simply download everything I have installed I suppose
What is the jar file name?
enchanttweaker-1.4.0+mc1.19.4
Any relevant logs?
latest.log
Anything else?
I have no idea where to begin with this error code so I'm hoping you do. Pretty much every reference to this issue online is some forge/optifine conflict which, obviously, is not the case here. I looked into the code itself to see if I could tell what was going on but the crash is helpfully not very specific on details to my untrained eyes so I couldn't get far. I have loads of mods installed, and I had just recently removed some mods that overlapped features as this was my intended replacement. If you need any information I will provide it as long as I know what I actually need to look for and send in.
Before submitting...

[X] This issue is not a duplicate of an existing issue (open or closed).

After a little bit of investigation it seems like this is a pre-existing bug in Memory Leak Fix. It does however seem to be triggered by Enchant Tweaker being present. Still looking into it, it seems to be caused by a shared dependency.

Looks like it was an issue with the shared dependency and they released an update that fixes the issue. Will be included in the next update (v1.4.2). Thanks for the bug report!

Looks like you have the solution down, but I did want to add some extra findings in case it helps
Client with MemoryLeakFix will also crash when joining a server with EnchantTweaker specifically if the config for free prior work is enabled, works fine without that config enabled though, I'm sure given you've already checked the dependency issue that you know why this is and it'll be patched out soon.


Running on windows error

I am trying to run it on Windows machine, because I have CAN device to work with, and I get following:
Python 3.6
python adbrecord.py --show
Traceback (most recent call last):
File "adbrecord.py", line 177, in
main(*sys.argv)
File "adbrecord.py", line 153, in main
adb_recorder.listAllEvent()
File "adbrecord.py", line 52, in listAllEvent
adb = subprocess.Popen(self.adb_shell_command + [b'getevent', '-i'], stdin=PIPE, stdout=PIPE, stderr=PIPE)
File "C:\Users\build-windows\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 707, in init
restore_signals, start_new_session)
File "C:\Users\build-windows\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 964, in _execute_child
args = list2cmdline(args)
File "C:\Users\build-windows\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 461, in list2cmdline
needquote = (" " in arg) or ("\t" in arg) or not arg
TypeError: a bytes-like object is required, not 'str'

Sorry, I have not tested it on windows. Do you resolve it?

I solved this by running the script with python 2.7.
First install python 2.7, then replace the first line in the script with #!c:[Path to python 2.7]\python.exe


Add custom TCDM assignment feature

This PR adds an advanced feature where you manually assign the narrow and wide TCDM assignments.
We discovered that we needed this because of @xiaoling-yi's GeMM-CONV core and the Hypercorex.
The old assignment from the narrow and wide TCDM always assumes that all wide ports should be collated together (grouped together) from the LSB TCDM ports to whatever size they need. Then all narrow TCDM ports come after. Moreover, all reads come first then all writes come after too causing a limitation in TCDM assignment. Visually...
[ all narrow ports, all wide ports]
However the the streamers produce an arrangement such that:
[narrow read ports, wide read ports, narrow write ports, wide write ports]
Our previous accelerators complied with these and there were no problems. For example, in the case of Gemm + Data reshuffle, our GeMM has 2 wide read ports, and 4 wide write ports, and the data reshuffle can use 8 narrow read ports and 1 wide write port which we can re-arrange as:
[8 narrow read ports of DR, 1 wide write port of DR, 2 wide read ports of GeMM, 4 wide write ports of GeMM]
However, having more complex accelerators necessitates a flexible port assignment. This becomes a limitation when the arrangement of narrow and wide ports can be mixed. For example, in Hypercorex we need the arrangement (in order):
[2 narrow read, 1 narrow write, 3 wide reads, 1 wide write]
All of which cannot be mapped accordingly with the current setup.
This PR fixes it.
How to configure then?
A sample of the configuration file is shown below:
// SNAX custom cluster TCDM assignment
snax_custom_tcdm_assign: {
    snax_enable_assign_tcdm_idx: true,
    snax_narrow_assign_start_idx: [0,26],
    snax_narrow_assign_end_idx: [1,26],
    snax_wide_assign_start_idx: [2,27],
    snax_wide_assign_end_idx: [25,34],
},

NOTE: You need to declare this outside of the accelerator file. This custom TCDM re-assignment is a cluster-level configuration. So any user who uses this needs to know the specific mapping to TCDMs.
Major TODO:

[x] Modify schema for default values
[x] Modify cluster template
[x] Modify main cluster for switches
[x] Modify configuration files

@xiaoling-yi this should fix everything! But the queue is long since we pushed many PRs in hehe...

Also, we define this to be an advanced feature. Since it's a wee bit too complicated to describe. Also the fix is dirty, and maybe a refactoring is needed later. At least there's minimal changes only.


Improve the error message shown in Subscriptions Listing page in Publisher

Describe your problem(s)
Errors from back-end is directly shown in UI as shown below:

duplicate issue https://github.com/wso2/product-apim/issues/8464. hence closing


Fix typo in README.md

We conform to (i.e. comply with) the Rust Style Guidelines, not confirm their validity.

Thanks!


💅 useExhaustiveDependencies specify stable results of custom hooks

Environment information
CLI:
  Version:                      1.5.0
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           macos

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v20.10.0"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "npm/10.2.3"

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

Workspace:
  Open Documents:               0

Rule name
useExhaustiveDependencies
Playground link
https://biomejs.dev/playground/?code=aQBtAHAAbwByAHQAIAAqACAAYQBzACAAUgBlAGEAYwB0ACAAZgByAG8AbQAgACcAcgBlAGEAYwB0ACcAOwAKAAoAdAB5AHAAZQAgAEEAbgB5AEYAdQBuAGMAdABpAG8AbgAgAD0AIAAoAC4ALgAuAGEAcgBnAHMAOgAgAHUAbgBrAG4AbwB3AG4AWwBdACkAIAA9AD4AIAB1AG4AawBuAG8AdwBuADsACgAKAGYAdQBuAGMAdABpAG8AbgAgAHUAcwBlAEUAZgBmAGUAYwB0AEUAdgBlAG4AdAA8AFQAIABlAHgAdABlAG4AZABzACAAQQBuAHkARgB1AG4AYwB0AGkAbwBuAD4AKABjAGEAbABsAGIAYQBjAGsAPwA6ACAAVAApACAAewAKACAAIABjAG8AbgBzAHQAIAByAGUAZgAgAD0AIABSAGUAYQBjAHQALgB1AHMAZQBSAGUAZgA8AEEAbgB5AEYAdQBuAGMAdABpAG8AbgAgAHwAIAB1AG4AZABlAGYAaQBuAGUAZAA%2BACgAKAApACAAPQA%2BACAAewAKACAAIAAgACAAdABoAHIAbwB3ACAAbgBlAHcAIABFAHIAcgBvAHIAKAAnAEMAYQBuAG4AbwB0ACAAYwBhAGwAbAAgAGEAbgAgAGUAdgBlAG4AdAAgAGgAYQBuAGQAbABlAHIAIAB3AGgAaQBsAGUAIAByAGUAbgBkAGUAcgBpAG4AZwAuACcAKQA7AAoAIAAgAH0AKQA7AAoACgAgACAAUgBlAGEAYwB0AC4AdQBzAGUASQBuAHMAZQByAHQAaQBvAG4ARQBmAGYAZQBjAHQAKAAoACkAIAA9AD4AIAB7AAoAIAAgACAAIAByAGUAZgAuAGMAdQByAHIAZQBuAHQAIAA9ACAAYwBhAGwAbABiAGEAYwBrADsACgAgACAAfQApADsACgAKACAAIAByAGUAdAB1AHIAbgAgAFIAZQBhAGMAdAAuAHUAcwBlAEMAYQBsAGwAYgBhAGMAawA8AEEAbgB5AEYAdQBuAGMAdABpAG8AbgA%2BACgACgAgACAAIAAgACgALgAuAC4AYQByAGcAcwApACAAPQA%2BACAAcgBlAGYALgBjAHUAcgByAGUAbgB0AD8ALgAoAC4ALgAuAGEAcgBnAHMAKQAsAAoAIAAgACAAIABbAF0ALAAKACAAIAApACAAYQBzACAAVAA7AAoAfQAKAGYAdQBuAGMAdABpAG8AbgAgAEEAcABwACgAKQAgAHsACgAgACAAYwBvAG4AcwB0ACAAcwB0AGEAYgBsAGUAIAA9ACAAdQBzAGUARQBmAGYAZQBjAHQARQB2AGUAbgB0ACgAKAApACAAPQA%2BACAAewB9ACkAOwAKACAAIABSAGUAYQBjAHQALgB1AHMAZQBFAGYAZgBlAGMAdAAoACgAKQAgAD0APgAgAHsACgAgACAAIAAgAHMAdABhAGIAbABlACgAKQA7AAoAIAAgAH0ALAAgAFsAXQApADsACgB9AA%3D%3D
Expected result
I'm not sure if I understand the purpose of closureIndex and dependenciesIndex for this rule - shouldn't you specify the stability of the result(s), not the arguments passed?
For example, I want to declare my custom useEffectEvent ponyfill returns a stable result:
{
  "$schema": "https://biomejs.dev/schemas/1.5.0/schema.json",
  "linter": {
    "rules": {
      "correctness": {
        "useExhaustiveDependencies": {
          "level": "error",
          "options": {
            "hooks": [
              {
                "name": "useEffectEvent",
                "closureIndex": 0
              }
            ]
          }
        }
      }
    }
  }
}

import * as React from 'react';

type AnyFunction = (...args: unknown[]) => unknown;

function useEffectEvent<T extends AnyFunction>(callback?: T) {
  const ref = React.useRef<AnyFunction | undefined>(() => {
    throw new Error('Cannot call an event handler while rendering.');
  });

  React.useInsertionEffect(() => {
    ref.current = callback;
  });

  return React.useCallback<AnyFunction>(
    (...args) => ref.current?.(...args),
    [],
  ) as T;
}

function App() {
  const stable = useEffectEvent(() => {});
  React.useEffect(() => {
    stable();
  }, []);
}

index.ts:29:9 lint/correctness/useExhaustiveDependencies ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  ✖ This hook does not specify all of its dependencies.

    27 │ function App() {
    28 │   const stable = useEffectEvent(() => {});
  > 29 │   React.useEffect(() => {
       │         ^^^^^^^^^
    30 │     stable();
    31 │   }, []);

Code of Conduct

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

The hooks configuration allows you to configure hooks whose closures should be checked against a list of dependencies, similar to how the dependencies array of useEffect() is checked, for instance. For useEffect(), closureIndex is 0 (since that argument contains the closure to check) and dependenciesIndex is 1 (since that argument is the dependencies array).
I think what you are looking for is mentioned in this issue: https://github.com/biomejs/biome/issues/1128
So I’ll close this as a duplicate.


Join group scenario

Description
This addition to the benchmark covers the group assignment case. It will create a user and assign him to a group.
Motivation
We had a request to test if Keycloak handles group assignments in a reasonable time frame on systems with a lot of groups and roles.
Details
Pull Request : https://github.com/keycloak/keycloak-benchmark/pull/77

closed by #77


Add the pxt-ev3 to the tutorial tool

Is it possible to add pxt-ev3 beta to the tutorial tool?

@abchatra @riknoll can it be implemented?

Feel free to open a PR. Files are here: https://github.com/microsoft/pxt/tree/master/docs/static/tutorial-tool
This won't work in live of ev3 as it too old codebase. So only enable for beta in ev3.

@abchatra I made a pr


Concurrent version of each

Is there a non-sequential version of each?
I guess map works that way, but I do not need the return values.
Why is each sequential anyway?

You want .map or .all, .each itself was introduced in hindsight especially for sequential execution.

Okay, that was probably what I feared :(
Thanks.
I just want to react as fast as possible to each promise/value in an array - and hopefully without having to loop it myself, wrap the value in Promise.resolve and calling .then.

I ended up with this:
function( obj ){
	var self = this;
	var keys = Object.keys(obj);
	var count = keys.length
	var values = [];

	for (var i = 0;i < count;i++)
		values.push(obj[keys[i]]);

	return Promise
		.map(values, function( value, i ){
			populate(keys[i], value);
		})
		.cancellable()
		.catch(Promise.CancellationError, function( e ){
			for (var i = 0;i < count;i++){
				if (values[i].cancel)
					values[i].cancel();
			}
		});
}

I use it for populating a UI with data as it arrives from external requests (which can be cancelled if the UI view is changed).
Please hint if there's a better way.

@tjconcept any specific reason you're not using Promise.props?

Yeah, I want popupate to run each time a new value resolves, and not once for all values.


.config.env not work

for example: I set ADMIN_TOKEN
# https://github.com/dani-garcia/vaultwarden/wiki/Enabling-admin-page
ADMIN_TOKEN=xxxxxx

Can you run task fly:secrets:set and see if it works? This will run the following command: https://github.com/arthurgeek/vaultwarden-fly-template/blob/main/.taskfiles/fly/secrets.yaml#L7

I also just added the command above to run before any (local) deployments and a new FAQ here: https://github.com/arthurgeek/vaultwarden-fly-template/commit/07309b1633ff1aaf88d279e321a298316a312dbe.

I delete all apps in fly.io, and deploy again, and I get a blank web page,  maybe something in secrets cause this, because the secrets is not exists on my first deploy

a blank web page

Yes, the secrets wouldn't exist in the first deployment if made before previously mentioned commit. This was fixed yesterday. If you updated the template after the commit above, everything should work. You can also run the command I mentioned, it should work even without yesterday's commit.

Closing as stale. Please reopen in case it's still not working.


⚠ ClamAV has degraded performance

In 7e96797, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 419 ms

Resolved: ClamAV performance has improved in 88225ab.


ESP32_BLE_Arduino/examples/BLE_client hangs on reconnect

Hi,
First of all my thanks for your effort on ESP32 code.  I have made a project combining IRremote.h, esp_now.h and your ESP32_BLE_ArduinoBLE_client example.  It all works excellent, except for reconnecting if connection is lost.  I use a timer to check if BLE connection still exists and  if not reconnect with the following code:
if (xSemaphoreTake(timerSemaphore, 0) == pdTRUE){
   if (!pClient->isConnected())
   {
      Serial.println("Timeout; rescan for BLE ");
      //doConnect = true; removed, not solving problem.
      reconnect();
   }
}

void reconnect(){
   BLEScan* pBLEScan = BLEDevice::getScan();
   pBLEScan->setAdvertisedDeviceCallbacks(new MyAdvertisedDeviceCallbacks());
   pBLEScan->setActiveScan(true);
   pBLEScan->start(40);
}

After this my ESP32 hangs with no activity at all.
I get the folowing message in my serialmonitor:

Timeout; rescan for BLE
E (48870920) BT: btc_search_callback  BLE observe complete. Num Resp 4
Created client
Forming a connection to 50:8c:b1:6a:e6:3e
E (48871131) BT: btc_gattc_call_handler()
E (48871141) BT: bta_gattc_process_api_open Failed, unknown client_if: 0

Is it my code that causes this?
If not:
What do the E-messages mean?
Is there a way to catch these errors?
I hope you can help me with this isue .

In C++ we can have multiple methods with the same name but if they belong to different class types, they will not collide.  For example, if we have a class called BLEClient which has a method definition called isConnected() and a class called WiFiSTAClass which also has a method definition called isConnected(), we will find that they are distinct methods.  The context in which they are invoked will determine which method is run.

Hi, I think this question has been addressed in #498, for reference I will state Tuet's answer here as well:

When a onDisconnect() callback comes in, you have to manually invoke the disconnect() function of BLEClient.
After that, the instance of the BLEClient can be deleted. The destructor within this function seems to clean up all the hierarchy of many BLERemoteService and BLERemoteCharacteristics by itself. Don't try to delete these instances manually, otherwise a heap corruption will appear. It seems that most of the resources get released this way.
You can now connect and recreate the hierarchy again - without issues like "..already registered".


Revisit deprecated features and options and consider removing them completely for 3.0

I found these deprecated features and options:
Feautures

evaluate and make_deferrable in deferrable.py

setting a timer field from a tuple
https://github.com/eth-cscs/reframe/blob/master/reframe/core/fields.py#L118
Btw in the fields.py there is a class DeprecatedField that is a wrapper for deprecating fields but it is not used anywhere besides the unittests.

the old configuration
https://github.com/eth-cscs/reframe/blob/master/reframe/core/config.py#L207

the override of final functions
https://github.com/eth-cscs/reframe/blob/master/reframe/core/meta.py#L51

Options

--flex-alloc-tasks

scheduler-specific command-line options
Although this is still a PR so we should leave the deprecation warnings for a while

Hi @ekouts, here is a list of what can be dropped:

evaluate and make_deferrable in deferrable.py

Drop it now.

setting a timer field from a tuple
https://github.com/eth-cscs/reframe/blob/master/reframe/core/fields.py#L118

Should be dropped either in 3.1 or 3.2, since the deprecation is introduced in 3.0

the old configuration
https://github.com/eth-cscs/reframe/blob/master/reframe/core/config.py#L207

Will stay for some time, since it's breaking change.

the override of final functions
https://github.com/eth-cscs/reframe/blob/master/reframe/core/meta.py#L51

Will stay for some time, since it's breaking change.

scheduler-specific command-line options
Although this is still a PR so we should leave the deprecation warnings for a while

Should be dropped in either 3.1 or 3.2.

--flex-alloc-tasks

Drop it now.
Can you create issues for the individual deprecations so that we remember to drop the features in future releases?

Btw in the fields.py there is a class DeprecatedField that is a wrapper for deprecating fields but it is not used anywhere besides the unittests.

This is a useful wrapper for deprecating fields, like we did now with the pre_run et al.

Ok, thanks for the feedback. Do you want to make new issues only for the ones we plan to drop in the future or the ones we are dropping now as well?

@ekouts No, just for those to be dropped in the future.


\prevdepth management in the galley module

One reasonable application of the galley module is to collect material from various places in a vertical box (galley). The naive code for that would be
 \box_new:N \g_my_box
 \cs_new_protected:Npn \my_append:n #1
   { \vbox_gset:Nn \g_my_box { \vbox_unpack_clear:N \g_my_box #1 } }
 \my_append:n { Hello. }
 \my_append:n { Hello again. }

This does not quite work: the horizontal boxes from the two lines are on top of each other with no baseline skip. A fix is to somehow preserve the \prevdepth before closing the vertical box, and restoring it when collecting the next material. I think this fits in the scope of a galley module.

This misses the point of the galley system. The galley is for typesetting material, not collecting it up. Thus it's not intended to be have anything to do with a box which is unpackaged, only one which is created then sent to the OR.

Ok. Then where should \prevdepth be handled?

There's apparently an article on TUGboat on this: latest one on the team site.

For the record: one can simply use the correc \prevdepth as follows:
\documentclass{article}
\usepackage{expl3}
\begin{document}
\ExplSyntaxOn
\box_new:N \g_my_box
\dim_new:N \l_my_dp_dim
\cs_new_protected:Npn \my_append:n #1
  {
    \vbox_gset:Nn \g_my_box
      {
        \dim_set:Nn \l_my_dp_dim { \box_dp:N \g_my_box }
        \vbox_unpack_drop:N \g_my_box
        \dim_set:Nn \prevdepth { \l_my_dp_dim }
        #1
      }
  }
\my_append:n { Hello. }
\my_append:n { Hello again. }
\my_append:n { Hello again. }
\box_use:N \g_my_box
\ExplSyntaxOff

Hello.

Hello again.

Hello again.

\end{document}


Fix extraneous semicolon on inverted sections

Semicolon termination of an 'if' block for inverted sections can cause
errors under jshint and other linting programs, and is unnecessary.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.George Gensure seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


JSON should not be embedded inside OWL

There is an undocumented http://geneontology.org/lego/json-model annotation inside all the models that has a JSON string. Is this a temporary measure? We should have a milestone for when this will be removed.

I love how the output of --owl-lego-to-json contains a copy of itself (but only one deep? If we keep roundtripping does it recursively deepen to keep N copies of itself?)

A quick back story of why we added it.
The intimidate reason was the need to add the json representation to Golr without the copying of 'all' mapping code (incl. curie mapping) into owltools (from minerva)
Since then it also simplified the loading code for quick model index on the front page (via the file alteration monitor)

The minerva server will ignore the JSON during load, as it skips all axioms tagged with a specific annotation (derived). See:

org.geneontology.minerva.ModelReaderHelper
org.geneontology.minerva.ModelWriterHelper


Cannot access layer

i have added one new view over MessageTabelView. But its layer is not acessible...

If you need to add a view because of a requirement, I suggest that you do not add directly to the ZHCMessagesTableView, but in the view that you inherit and ZHCMessagesViewController.

Actually i have added this view into the message more view and using constraints its showing here...........


What is the state of the current version 0.2.2

I am looking for DI container which is based on code generation. I need to know if this container is production ready or there is still work to make it stable?
Is it possible in the future to have features like DependencyOverride and ParameterOverride that exists in Unity IOC?

@ekalchev I pushed version 0.3.0. It has support for constructor arguments override and dependency override.


The application has to wait till all the jobs have finished their execution

In the example application ( example.c ) , a number of tasks are assigned to the thread pool and the program is not waiting till all the tasks are getting completed. This fix will solve the issue and make program wait till all the scheduled tasks completed.
After that, all threads are getting destroyed.

I agree, I added the same fix.

Closing without merging because it is now a duplicate of https://github.com/Pithikos/C-Thread-Pool/pull/66 which I already merged.


Mirror object is mispositioned when container has backdrop-filter CSS rule

If the CSS for the Sortable container has a backdrop-filter rule (even if it's zero), the mirror object gets positioned incorrectly.
Codepen here. Use the checkbox to toggle on/off the offending CSS declaration.

Library version: 1.0.0-beta.12
Browsers: Chrome v98.0.4758.80
Tech stack: Sortable + vanilla JS

Looks like because position: fixed is not based on the top left corner of the page in some cases.
You can try fix #455, or use DragSensor.


🐞 - InputNumber allows to exceed JS number limitations

Which @taiga-ui/* package(s) are the source of the bug?
kit
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/taiga-starter
Is this issue blocking you?
Non-Blocking
Description
We should limit min/max so that we do not exceed number type in JavaScript until we add BigInt option or other solution to giant sums:
    @Input()
    @tuiDefaultProp()
    min = -Infinity;

    @Input()
    @tuiDefaultProp()
    max = Infinity;

Angular version
any
Taiga UI version
any
Which browsers have you used?

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

Which operating systems have you used?

[ ] macOS
[ ] Windows
[ ] Linux
[ ] iOS
[ ] Android

maybe add tui-input-number[bigInt] directive for it
<tui-input-number
    formControlName="testValue" bigInt>
    Type a sum
</tui-input-number>


Fixed spelling error.

Hi @thomas4g , I'm sorry this took some time to come back here, but to move forward we would need you to sign the CLA, you can see more details and how to sign at https://www.elastic.co/contributor-agreement ...
I know for small, or even very small changes like yours, this could be seen as too much, but this is a common procedure for all changes requests in the organization. I hope you understand.
To sign the CLA keep in mind to use the same email as the one used to do this commit, this is necessary to know if you for example did that changes during your work time or at your spare time.
thanks a lot for your time and contribution.

Jenkins standing by to test this. If you aren't a maintainer, you can ignore this comment. Someone with commit access, please review this and clear it for Jenkins to run; then  say 'jenkins, test it'.


SignalR 404 error when trying to negotiate

So I am very new to SignalR, in fact I've only been using it for a couple of days now. Anyway, I am getting the error below when my application first starts up:

The code for the application in question is located in two projects, a Web API and a Single Page Application (SPA). The first one has my backend code (C#) and the second one my client-side code (AngularJS). I think the problem might be due to the fact that the projects in question run on different ports. The Web API, where my SignalR hub lives, is on port 60161 and the SPA is on 60813. My hub is declared like so:

and then in my Startup.cs file for my Web API I initialize SignalR like this:

For my client-side code I use an Angular SignalR API called angular-signalr-hub (Angular-signalr-hub). The client-side follows:

I did some googling yesterday and one of the suggestions I came upon was to set the SignalR URL to the one of my Web API, which I did (the commented out line above). When I uncomment the line in question, that does seem to do something because if I now go tohttp://localhost:60161/signalr/hubs in my browser, it does show me the dynamically generated proxy file:

and when I run my application I no longer get the error above, but now it doesn't seem to connect. It gets to the negotiate line and it stops there:

I think it should look like this (this is from a SignalR tutorial I found):

In addition, none of my listeners (declared in my Angular code above) get called, so something is still now working quite right. There should be more lines in the log to the effect that connection was successfully established, etc. What could be the problem here?

Upon further debugging I found out the problem is most likely in the following code segment, in file jquery.signal-2.2.0.js:

As you can see, the ProtocolVersion and clientProtocol values are different (one is 1.4 and the other one is 1.5) and because of that program execution goes into the IF clause and connection is not established. Any idea why these values differ? I tested with a tutorial I downloaded from the Internet and the values there are both 1.5.

I figured out what the problem was. My SignalR dependencies were out of date and because of that my client and server versions differed. All I had to do was update (via NuGet Package Manager) all SignalR dependencies to the latest version and now it works.
As a side note, SignalR was not very good at telling me what was wrong. In fact, no error message was displayed, unless of course there was some additional logging somewhere that had to be found or turned on, in addition to the logging I already had (turned on). Either way, it's either not logging certain errors or it makes it difficult to figure out how to turn on all logging. I had to go and debug the JQuery SignalR api to figure out what the problem was, which was a time consuming endeavour.

Hey @lvasilev1, glad to hear you were able to solve the problem. There's actually an option to enable the SignalR logging: logging: true/false. I'm not sure, but maybe that would have helped catch the problem.

I did enable it, but it did not show me any errors for the issue in question.

Bummer. You might reach out to the guys over at SignalR to see if they can improve that.


Facebook Module does without SSL

Hello, I got things all setup up. I'm using NGINX and managed to incorporate Let's Encrypt using Certbot. I'm able to reach the the app via ssl port 443. Youtube is work pretty well. Facebook however is giving me all sort of issues though. Has there been change other than requiring an SSL. Have others reported the issue?

I've been considering discontinuing this project for some time now. I'm sorry I couldn't solve your issue, but I just don't enjoy working on multistreamer anymore.

I've been considering discontinuing this project for some time now. I'm sorry I couldn't solve your issue, but I just don't enjoy working on multistreamer anymore.


File not found: xxxx/ipyreact/basic.tsx

I fail to import ipyreact.
I have tried both from conda and with pip installs on python 3.9, 3.10 and 3.11. All yield the same - what am I doing wrong, or is there a bug currently with anywidget?
minimal environment made from:
$ conda create --name reactpip python=3.11
$ conda activate reactpip
$ pip install ipyreact

import
$ python
Python 3.11.6 | packaged by conda-forge | (main, Oct  3 2023, 10:40:35) [GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ipyreact
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "xxxx/miniforge3/envs/reactpip/lib/python3.11/site-packages/ipyreact/__init__.py", line 8, in <module>
    from .widget import ReactWidget
  File "xxxx/miniforge3/envs/reactpip/lib/python3.11/site-packages/ipyreact/widget.py", line 22, in <module>
    class ReactWidget(anywidget.AnyWidget):
  File "xxxx/miniforge3/envs/reactpip/lib/python3.11/site-packages/traitlets/traitlets.py", line 965, in __new__
    return super().__new__(mcls, name, bases, classdict, **kwds)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "xxxx/miniforge3/envs/reactpip/lib/python3.11/site-packages/anywidget/widget.py", line 70, in __init_subclass__
    file_contents = try_file_contents(getattr(cls, key))
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "xxxx/miniforge3/envs/reactpip/lib/python3.11/site-packages/anywidget/_util.py", line 248, in try_file_contents
    raise FileNotFoundError(f"File not found: {path}")
FileNotFoundError: File not found: xxx/miniforge3/envs/reactpip/lib/python3.11/site-packages/ipyreact/basic.tsx

It must be related to this "fix"
https://github.com/manzt/anywidget/pull/345
Downgrading anywidget to 0.7.0 "fixes" this for now...


Sentry reporting API errors as [object Object]

https://github.com/damiencaselli/ember-cli-sentry passes errors directly to Raven, which expects a string, not an object.

Submitted https://github.com/damiencaselli/ember-cli-sentry/pull/10 to cleanup/fix some issues upstream in ember-cli-sentry.

https://github.com/aptible/dashboard.aptible.com/pull/357 generally addresses this issue (via a number of fixes upstream in Raven and the Raven Ember plugin), but I'm happy to do more testing to confirm this specific scenario is addressed.

Great fixes, I didn't realize there was already an ember plugin for raven.
I think another issue here is that our APIs return errors as JSON, which ultimately get passed into raven.captureException which treats anything that's not an error, as a string.
An example API error:
{
   "code":422,
   "error":"unprocessable_entity",
   "message":"Validation failed: Handle has already been taken"
}

Thank you for the example scenario, that definitely gives me more to test with.
I'll continue to iterate...

In #357, we added a monkey patch to add a stacktrace in the [object Object] case. The hope is that this will help us identify when/why this is happening so we can fix it a bit better.
That monkey patch is deployed to aptible-staging.com at the moment, and I am watching the staging sentry error reports to see if we can trigger this.

@rwjblue Hi, do you have update on this?

Any Update on this issue?


Unreachable may introduce bad join points

Related to #31.
unreachable may introduce a bad join point if it's used in a branch expecting a float. This hasn't shown up in any of the tests yet, but it's worth fixing nonetheless.
The right way of fixing this is to record the current expected branch return type in Compile_env, and read from here.

Fixed in 18a5e59.


Update k8s pinot realtime example to fix #2756 and match pinot versions

Description
The quickstart had to be updated to work with dateTimeFields and to maintain the latest docker image (as is default for the helm chart).

Codecov Report

Merging #6392 (47724af) into master (1beaab5) will decrease coverage by 1.02%.
The diff coverage is 44.92%.

@@            Coverage Diff             @@
##           master    #6392      +/-   ##
==========================================
- Coverage   66.44%   65.41%   -1.03%
==========================================
  Files        1075     1314     +239
  Lines       54773    63635    +8862
  Branches     8168     9256    +1088
==========================================
+ Hits        36396    41630    +5234
- Misses      15700    19033    +3333
- Partials     2677     2972     +295

Flag
Coverage Δ

unittests
65.41% <44.92%> (?)

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

Impacted Files
Coverage Δ

...e/pinot/broker/api/resources/PinotBrokerDebug.java
0.00% <0.00%> (-79.32%)
:arrow_down:

...ot/broker/broker/AllowAllAccessControlFactory.java
71.42% <ø> (-28.58%)
:arrow_down:

.../helix/BrokerUserDefinedMessageHandlerFactory.java
33.96% <0.00%> (-32.71%)
:arrow_down:

...ker/routing/instanceselector/InstanceSelector.java
100.00% <ø> (ø)

...ava/org/apache/pinot/client/AbstractResultSet.java
66.66% <0.00%> (+9.52%)
:arrow_up:

.../main/java/org/apache/pinot/client/Connection.java
35.55% <0.00%> (-13.29%)
:arrow_down:

...inot/client/JsonAsyncHttpPinotClientTransport.java
10.90% <0.00%> (-51.10%)
:arrow_down:

...not/common/assignment/InstancePartitionsUtils.java
73.80% <ø> (+0.63%)
:arrow_up:

.../apache/pinot/common/exception/QueryException.java
90.27% <ø> (+5.55%)
:arrow_up:

...pinot/common/function/AggregationFunctionType.java
100.00% <ø> (ø)

... and 1177 more

Continue to review full report at Codecov.

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


Support Counter

When I try to query a table that has a counter xandra throws me an error.
Xandra.execute!(:xandra_pool, "SELECT * FROM domains", _params = [], pool: DBConnection.Poolboy)
** (FunctionClauseError) no function clause matching in Xandra.Protocol.decode_value/2            (xandra) lib/xandra/protocol.ex:593: Xandra.Protocol.decode_value(<<0, 0, 0, 0, 0, 0, 0, 0>>, :counter)            (xandra) lib/xandra/protocol.ex:587: Xandra.Protocol.decode_page_content/5            (xandra) lib/xandra/protocol.ex:500: Xandra.Protocol.decode_result_response/2     (db_connection) lib/db_connection.ex:1011: DBConnection.decode/6            (xandra) lib/xandra.ex:773: Xandra.execute_without_retrying/4            (xandra) lib/xandra.ex:669: Xandra.execute!/4

The table Im querying looks like this:
CREATE TABLE domains( 	name text, 	user_count counter, 	PRIMARY KEY(name) );

Hi there, if you need this now I just opened a pull request for it in #97.  I need to write some tests before it has a chance of getting merged though logically it should work exactly like a :bigint.

Closed in #97.


Remove deprecation :reporting project

Context
See issue: https://github.com/gradle/gradle/issues/1744
Gradle Core Team Checklist

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[x] Verify documentation including proper use of @since and @Incubating annotations for all public APIs
[x] Recognize contributor in release notes

Stage 4 CI: https://builds.gradle.org/viewLog.html?buildId=2663361&tab=buildResultsDiv&buildTypeId=Gradle_Branches_Checkpoints_Stage4FullCoverage

@bmuschko Should we remove SimpleReport#setDestination(Object) given a test was explicitely written for it? The other setDestination(Object) were removed as it can use the super class implementation.

@lacasseio Can you have a look if the functionality is already covered somewhere else by a test? If it isn't then I'd keep it in an assign a File type for setDestination.

Sorry @bmuschko. I'm reading your comment multiple time over and can't figure out the last part. The setDestination have overload for Object, File and Provider<File>. The Object overload simply set a Provider<File> and call FileResolver#resolve on the object. Given I can't find any usage in our code base, we could simply force developers to use the Provider<File> overload with Project#file.

@lacasseio Sorry, I misread your comment. I thought you were asking about removing the test. I'd keep the test, change the usage of setDestination in the test (assign a File instance) and remove setDestination(Object) on SimpleReport (which is an internal class anyway). We'll see if some other code uses in Gradle core code base when running tests.

@bmuschko I removed the test completely as it was testing that a String resolve to a File. The overloaded method was actually used in quite a lot of place. I adjust them all to pass a File instance. A CI run was started to ensure we aren't missing any call to the removed method.

I also rebased the branch.

Thanks for updating the PR. I just looked through it again. As discussed let's not remove the method for now as we didn't go through a full deprecation cycle yet. Let's remove it with 5.0 or potentially a bit earlier. I am going to close the PR.


add phones word/word left/word right commands

useful for applying homophones to the word left of/right of/at cursor

I would suggest adding an optional <number_small> to those phones word left/right commands.

The idea being to select the nth word in that direction, so eg if you're after "foo bar baz" phones two words left would select "bar"? That should be doable...

Not in scope for this PR but we should make a generic selection generator that applies selection before applying a command since it's a pattern that keeps coming in more places and all of the selections are identical (phones, cut, copy, snake, hammer etc all have/will eventually have the same selections left, right, word, line, all, etc variants that all need to be maintained and are basically identical).
Will raise an issue tomorrow.

I have some thoughts on that, but you should check out the text navigation commands in https://github.com/knausj85/knausj_talon/blob/master/text/text_navigation.talon, which may already do some of what you're imagining.

ok, I've updated this to allow eg "phones second word left" or "phones third word right". it did involve adding some new actions for moving n words left or right (had to do this instead of using core.repeat() because needed to handle moving 0 words right/left, which is the default).


What does specpart do?

I maintain a list of Fortran codes https://github.com/Beliavsky/Fortran-code-on-GitHub and would like to list this project. Could you add a one or two sentences to the Readme explaining what calculation specpart does?

But I do know that is gives me and a lot of other people headages  :-)


Darksky - Fix longitude parameter

Description:
Recent change to allow separate lat/lon configuration in the darksky sensor broke usage with the hass config lat/lon.
Checklist:
If the code communicates with devices, web services, or third-party tools:

[x] Local tests with tox run successfully. Your PR cannot be merged unless tests pass

Thanks!


Stop simulator

I don't see there is a way to request the simulator to terminate and return to the home screen like it does in Xcode when you press the home button. I've been force terminating the process in the terminal then manually pressing the home button but I'm not sure this is a safe way to terminate a session.
Thanks.

There is none, but looking at the simctl API it might be possible.


Correction for raw affiliation INSERM U1247 GRAP, Research Group on Alcohol and Drugs, Université de Picardie Jules Verne, Amiens, France

Correction needed for raw affiliation INSERM U1247 GRAP, Research Group on Alcohol and Drugs, Université de Picardie Jules Verne, Amiens, France
raw_affiliation_name: INSERM U1247 GRAP, Research Group on Alcohol and Drugs, Université de Picardie Jules Verne, Amiens, France
new_rors: 01gyxrk03;02vjkv261;01c62av11
previous_rors: 01gyxrk03;02vjkv261
works_examples: W3109466786
contact: 714024511e7cbd1494a9628244b65327:3976e0bc67138f3d326cb9a0721d8b6f @ u-picardie.fr

This issue was accepted and ingested by the OpenAlex team on 2024-10-10. The new affiliations should be visible within the next 7 days.


Add Angular generator

Add Angular generator to API-Platform client-generator.
With React, Vue.js and shortly coming React Native this could be the most comprehensive front app support for API-Platform

There is an existing community project: https://github.com/momenttech/lysis, see https://github.com/momenttech/lysis/issues/1.
(ping @lysis)

Any news for this ?

@sbacem you are more than welcome to develop this if you are interested

I am very interested, but i haven't time to do it 😞 😞

You can try https://github.com/momenttech/lysis

Hi all, I'm writing under this issue because I also was looking for an Angular generator.
I've just tried lysis on a project of mine but I got some errors:
Starting API 'http://localhost/api/docs.jsonld'...
Error for API 'http://localhost/api/docs.jsonld'
The class http://www.w3.org/ns/hydra/core#ApiDocumentation doesn't exist.

Did anyone manage to make it work recently?
In any case, I've started to work on a generator for Angular.
Is there a minimum set of features that should be present in the generator in order to merge that?
At the moment, I'm generating the following for each resource:

Interface class (the same as the typescript generator)
Service class: this handles getCollection,addItem,getItem,putItem,deleteItem operations

plus an utils file that handles some common stuff.
I also wanted to handle subresources, but it seems quite complicated to do with the current data that's parsed from the Hydra documentation. Does anyone from the maintainers know of an easy way to handle subresources?
Anyway, this is an example of generated files from a project of mine with the current generator:
Resource Interface:
import { Company } from "./company";

export interface Client {
  '@id'?: string;
  id: string;
  name?: string;
  legalName?: string;
  legalAddressCity?: string;
  legalAddressStreet?: string;
  legalAddressStreetNumber?: string;
  legalAddressZipcode?: string;
  phone?: string;
  email?: string;
  vatNumber?: string;
  taxNumber?: string;
  readonly updatedAt?: Date;
  readonly createdAt?: Date;
  readonly agency?: Company;
  readonly locationsCount?: number;
}

Resource service:
import { Client } from "../interfaces/client";
import { HttpClient } from "@angular/common/http";
import { APIPlatformPagedCollection } from "../utils/utils";
import { Inject, Injectable} from '@angular/core';

@Injectable()
export class ClientService {

  constructor(
    private http: HttpClient,
    @Inject('BASE_API_URL') private baseUrl: string
  ) {
  }

  getCollection(){
    return this.http.get<Client>(`${this.baseUrl}/api/clients`);
  }

  addItem(item: Client){
    return this.http.post<Client>(`${this.baseUrl}/api/clients`, item);
  }

  getItem(id: string){
    return this.http.get<Client>(`${this.baseUrl}/api/clients/${id}`);
  }

  updateItem(item: Client){
    return this.http.put<Client>(`${this.baseUrl}/api/clients/${item.id}`, item);
  }

  deleteItem(id: string){
    return this.http.delete<{}>(`${this.baseUrl}/api/clients/${id}`);
  }
}

Utils file:
export interface APIPlatformPagedCollection<T> {
  "hydra:totalItems"?: number;
  "hydra:member"?: T[];
  "@context"?: string;
  "@id"?: string;
  "@type"?: string;
  "hydra:view"?: {
    "@id"?: string;
    "@type"?: string;
    "hydra:first"?: string;
    "hydra:last"?: string;
    "hydra:previous"?: string;
    "hydra:next"?: string;
  };
}

export interface APIPlatformCollection<T> {
  "hydra:totalItems"?: number;
  "hydra:member"?: T[];
  "@context"?: string;
  "@id"?: string;
  "@type"?: string;
}

Hi @dunglas, is there the possibility that this angular generator will be developed by core members?

@simocheccoli I'm not aware of any core member working on this (nor using Angular actually), but we'll be glad to merge a generator if the community contributes one!

@dunglas we can try it!  maybe with @luca-nardelli helps

@dunglas we are creating a dummy angular generator with @luca-nardelli 😄
We also wants to generate a simple material design template angular generator, maybe next week we can sumbit a pr

Hello. Are there any updates on this?

No, but a contribution is still very welcome.

@dunglas @krstns we are still working about it

@simocheccoli any updates? I'd like to contribute to the project if needed.

A good starting point for making a generator is an example client app that works with Api Platform. One then builds a generator that generates the same app code. I followed this proces with my tutorial and the accompanying extended generators for react and next.js.
I even added working Angular app examples:

a basic SPA. However, to make it work with all data types chapter 2 needs to be added.
an SPA with internationalization and localization) that can be the starting point once the code from chapter 2 is internationalized and localized.

But my extended generators did get little stars so i did not bother to make one for Angular. However, if someone would like to sponsor me i would be happy to develop a generator similar the the react or next.js generator.
BTW, Angular also supports PWA, similar to next.js but i did not look into that.


Create WBTC Put Selling Vault

…all/put agnostic

We should test how the balance decreases or remains the same after the short is closed.
https://github.com/ribbon-finance/structured-products/blob/f5a1329c292c3e8da4020c1038c40b65f4f3cf66/test/RibbonOptionsVault.js#L1594

We should test how the balance decreases or remains the same after the short is closed.
https://github.com/ribbon-finance/structured-products/blob/f5a1329c292c3e8da4020c1038c40b65f4f3cf66/test/RibbonOptionsVault.js#L1594

can you elaborate more on this comment
you want to check if vault usdc balance has stayed the same or decreased?


Crypthography Management update

Hello,
I've added a few functions to "Cryptography Management".
"Signature Key" Table:

Added a function that would allow us to initialize record with Base64 encoded certificate.

"SignedXML" and "SignedXml Impl." Codeunit:

Overload of AddXmlDsigExcC14NTransformToReference function without InclusiveNamespacesPrefixList parameter.
Added AddXmlDsigEnvelopedSignatureTransform function that adds XmlDsigEnvelopedSignatureTransform to transformation.

Availability update: We will publish a fix for this issue in the next update for release 18.

Hi, I'm new to BC development, but have been researching ways to validate XMLDSig documents from AL code, ideally code running not onprem, but in the clould.
Is this what this pull request is about ?
Also, I've been looking at the unit tests, but its not clear what is supported in the VerifyData's parameters (Text or InStream).
A complete signed XML file ?

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Changed Footer

BEFORE

AFTER

@Its-Aman-Yadav Hey PA,
Please merge the PR , So that I can  work on More PRs


Build Vite Project !!

Hello Tauri devs,
I'm working on a Tauri application in the release folder. I need to execute the command:
 .\Scorm-BKT.exe --i="D:\bkt-workspace\ScormProject\tauri-app\src-tauri\public\data.json".
In my Tauri app, I've successfully implemented the functionality to read data from a JSON file. Now, I want to integrate a feature where clicking a button in the frontend triggers the build process for a Vite project. This build process should export an HTML file based on the data read from the JSON file.
Can you assist me with achieving this?
I'm working on React + Vite + Tauri + Tailwind
Thank you!

Using only JavaScript or TypeScript might not be sufficient for this task. You can attempt to execute commands and retrieve their output using Rust's standard library std::process::Command. The output can then be passed to the frontend via an event using window.emit.

or use the JS Command api, see https://tauri.app/v1/api/js/shell#command


JSONDecodeError RichTextBlock

Issue Summary
I am getting a JSONDecodeError when using a RichTextBlock in a StreamField that works when either using a TextBlock or not using any rich text features in the RichTextBlock.
Custom Block:
from wagtail.core import blocks

class EdExpBlock(blocks.StructBlock):
    """For use in the education portion of the resume page"""
    title = blocks.CharBlock(max_length=100)
    start = blocks.IntegerBlock(help_text="Start Year")
    end = blocks.IntegerBlock(help_text="Start Year")
    institution = blocks.CharBlock(max_length=100)
    description = blocks.RichTextBlock()  #this is the line that is causing issues

Model:
class ResumePage(Page):
    template = "Leven/resume.html"
    max_count = 1

    education = StreamField([
        ("education", **EdExpBlock()**),
    ],  null=True, blank=True)

    experience = StreamField([
        ("experience", EdExpBlock()),
    ],  null=True, blank=True)

    certificates = StreamField([
        ("certificates", CertificateBlock()),
    ],  null=True, blank=True)

    lab_skills = StreamField([
        ("lab_skills", SkillBlock()),
    ],  null=True, blank=True)
    coding_skills = StreamField([
        ("coding_skills", SkillBlock()),
    ],  null=True, blank=True)

    content_panels = Page.content_panels + [
        StreamFieldPanel("education"),
        StreamFieldPanel("experience"),
        StreamFieldPanel("certificates"),
        StreamFieldPanel("lab_skills"),
        StreamFieldPanel("coding_skills"),
    ]

Template:

                            {% for block in page.education %}

{{block.value.start}} - {{block.value.end}}

                                {{block.value.instituion}}

{{block.value.title}}

{{block.value.description|safe}}

                            {% endfor %}

Steps to Reproduce

Add rich text to block
Preview

Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?
When I don't include any rich text editing, the template loads fine even though it's a RichTextBlock. I think it is when it has to parse the JSON that comes through the RichTextBlock. I tried adding a safe filter but that didn't change either.
I have seen a similar issue in issue #4232 but it seemed that this was fixed prior to 2.0

I have confirmed that this issue can be reproduced as described on a fresh Wagtail project:  no

Full error:
 Environment:

Request Method: GET
Request URL: http://<IP_ADDRESS>:8000/admin/pages/17/edit/preview/

Django Version: 3.1.5
Python Version: 3.8.5
Installed Applications:
['home',
 'search',
 'flex',
 'streams',
 'site_settings',
 'subscribers',
 'blogsite',
 'projects',
 'wagtail.contrib.forms',
 'wagtail.contrib.redirects',
 'wagtail.contrib.settings',
 'wagtail.contrib.routable_page',
 'wagtail.contrib.sitemaps',
 'wagtail.contrib.modeladmin',
 'wagtail.embeds',
 'wagtail.sites',
 'wagtail.users',
 'wagtail.snippets',
 'wagtail.documents',
 'wagtail.images',
 'wagtail.search',
 'wagtail.admin',
 'wagtail.core',
 'modelcluster',
 'taggit',
 'djrichtextfield',
 'wagtailfontawesome',
 'wagtailcodeblock',
 'wagtailuiplus',
 'wagalytics',
 'wagtail_blocks',
 'wagtailstreamforms',
 'wagtail_color_panel',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.sitemaps',
 'debug_toolbar']
Installed Middleware:
['django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'django.middleware.security.SecurityMiddleware',
 'wagtail.contrib.redirects.middleware.RedirectMiddleware',
 'debug_toolbar.middleware.DebugToolbarMiddleware']

Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\json\decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)

During handling of the above exception (0), another exception occurred:
  File "C:\ProgramData\Anaconda3\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
    response = get_response(request)
  File "C:\ProgramData\Anaconda3\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "C:\ProgramData\Anaconda3\lib\site-packages\django\views\decorators\cache.py", line 44, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "C:\Users\Tomo_\AppData\Roaming\Python\Python38\site-packages\wagtail\admin\urls\__init__.py", line 127, in wrapper
    return view_func(request, *args, **kwargs)
  File "C:\Users\Tomo_\AppData\Roaming\Python\Python38\site-packages\wagtail\admin\auth.py", line 172, in decorated_view
    response = view_func(request, *args, **kwargs)
  File "C:\ProgramData\Anaconda3\lib\site-packages\django\views\generic\base.py", line 70, in view
    return self.dispatch(request, *args, **kwargs)
  File "C:\ProgramData\Anaconda3\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
    return handler(request, *args, **kwargs)
  File "C:\Users\Tomo_\AppData\Roaming\Python\Python38\site-packages\wagtail\admin\views\pages\preview.py", line 82, in get
    if not form.is_valid():
  File "C:\Users\Tomo_\AppData\Roaming\Python\Python38\site-packages\modelcluster\forms.py", line 316, in is_valid
    form_is_valid = super(ClusterForm, self).is_valid()
  File "C:\ProgramData\Anaconda3\lib\site-packages\django\forms\forms.py", line 177, in is_valid
    return self.is_bound and not self.errors
  File "C:\ProgramData\Anaconda3\lib\site-packages\django\forms\forms.py", line 172, in errors
    self.full_clean()
  File "C:\ProgramData\Anaconda3\lib\site-packages\django\forms\forms.py", line 374, in full_clean
    self._clean_fields()
  File "C:\ProgramData\Anaconda3\lib\site-packages\django\forms\forms.py", line 386, in _clean_fields
    value = field.widget.value_from_datadict(self.data, self.files, self.add_prefix(name))
  File "C:\Users\Tomo_\AppData\Roaming\Python\Python38\site-packages\wagtail\core\blocks\base.py", line 552, in value_from_datadict
    return self.block_def.value_from_datadict(data, files, name)
  File "C:\Users\Tomo_\AppData\Roaming\Python\Python38\site-packages\wagtail\core\blocks\stream_block.py", line 177, in value_from_datadict
    child_block.value_from_datadict(data, files, '%s-%d-value' % (prefix, i)),
  File "C:\Users\Tomo_\AppData\Roaming\Python\Python38\site-packages\wagtail\core\blocks\struct_block.py", line 114, in value_from_datadict
    return self._to_struct_value([
  File "C:\Users\Tomo_\AppData\Roaming\Python\Python38\site-packages\wagtail\core\blocks\struct_block.py", line 115, in <listcomp>
    (name, block.value_from_datadict(data, files, '%s-%s' % (prefix, name)))
  File "C:\Users\Tomo_\AppData\Roaming\Python\Python38\site-packages\wagtail\core\blocks\field_block.py", line 69, in value_from_datadict
    return self.value_from_form(self.field.widget.value_from_datadict(data, files, prefix))
  File "C:\Users\Tomo_\AppData\Roaming\Python\Python38\site-packages\wagtail\admin\rich_text\editors\draftail\__init__.py", line 68, in value_from_datadict
    return self.converter.to_database_format(original_value)
  File "C:\Users\Tomo_\AppData\Roaming\Python\Python38\site-packages\wagtail\admin\rich_text\converters\contentstate.py", line 90, in to_database_format
    return self.exporter.render(json.loads(contentstate_json))
  File "C:\ProgramData\Anaconda3\lib\json\__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "C:\ProgramData\Anaconda3\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\ProgramData\Anaconda3\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None

Exception Type: JSONDecodeError at /admin/pages/17/edit/preview/
Exception Value: Expecting value: line 1 column 1 (char 0)

Technical details

Python version: 3.8.5
Django version: 3.1.5
Wagtail version: 2.11.3
Browser version: https://www.whatsmybrowser.org/b/30393

Hi @ogola89 - thanks for the report. As you haven't reproduced this on a fresh Wagtail project, we'll need some extra details to confirm that this indeed a Wagtail bug rather than a bug in your project...

Does this happen on any page you've created, or just one specific page? Is it triggered by one particular piece of text in the rich text block, or can you repeat the error with any text (e.g. just entering "hello world" in the text area)?
Does the error only happen on clicking 'Preview', or does the 'Save draft' button trigger it too? If it happens on 'Save draft', please share the POST data (shown under "Request information" on the error page).
If you open Chrome developer tools while editing the page, do any error messages appear there?
Does you see the toolbar of formatting options on the rich text field (see screenshot below)?

Hi @ogola89 - thanks for the report. As you haven't reproduced this on a fresh Wagtail project, we'll need some extra details to confirm that this indeed a Wagtail bug rather than a bug in your project...

Does this happen on any page you've created, or just one specific page? Is it triggered by one particular piece of text in the rich text block, or can you repeat the error with any text (e.g. just entering "hello world" in the text area)?
Does the error only happen on clicking 'Preview', or does the 'Save draft' button trigger it too? If it happens on 'Save draft', please share the POST data (shown under "Request information" on the error page).
If you open Chrome developer tools while editing the page, do any error messages appear there?
Does you see the toolbar of formatting options on the rich text field (see screenshot below)?

Hi gasman,
It seems to have resolved itself now, I think when I saved the draft it then worked, but I added content to a few other fields. So I'm not entirely sure what resolved it (sorry!). I wasn't getting the bug with just a plain 'Hello', but when I used bolding and bullet points it came up.
Thankfully now it has resolved, and the only thing I can think of that resolved it was saving the draft.

Hi gasman,
It seems to have resolved itself now, I think when I saved the draft it then worked, but I added content to a few other fields. So I'm not entirely sure what resolved it (sorry!). I wasn't getting the bug with just a plain 'Hello', but when I used bolding and bullet points it came up.
Thankfully now it has resolved, and the only thing I can think of that resolved it was saving the draft.


RA2 game locking up

RA2/Yuri randomly freezes up in Skirmish mode but music still plays.  Log attached.
cnc-ddraw.log

Your log file is somehow corrupted, not sure how that could happen (haven't seen something like this before...)
Could you disable the "Windows XP Service Pack 2" compatibility mode for all game executables and check if it still freezing? If it does, also try it with the renderer set to opengl in cnc-ddraw config.
Did you change any of the cnc-ddraw settings? If so, could you also upload your ddraw.ini?

I thought I had removed the compatibility mode from all of the .exe files already but missed one.
I went in the cnc-ddraw config utility and set everything back to default. I then set the Presentation to Fullscreen Upscaled (I usually have other problems with the game starting when set to Fullscreen), renderer to opengl, and ticked all of the Compatibility settings (Broken Alt+Tab, etc) in the cnc-ddraw config. It would not let me attach an .ini file so I put a .txt extension at the end (ddraw.ini.txt).
The next time I ran a Skirmish in Yuri, it went about 30 minutes without locking up. The cnc-draw.log was 1.6GB. I zipped and attached the cnc-draw-log-big.zip file.
I have been saving frequently and this time I tried the mini-log version. I restored from my last Save and the game ran about 5-6 minutes before the lockup. Per instructions in another thread, I waited about a minute from the crash before I closed the Yuri app. It only captured about 15KB (attached cnc-ddraw-mini.log).
I copied the original logging ddraw.dll file back, opened the game, and restored back to the previous save. Again it only ran a few minutes before locking up (attached zipped cnc-ddraw-log.zip).
Before the music would keep playing, but now the game locks up, the music continues for a few more seconds, then the screen whites out. After that, a Windows box pops up with the message to Close the program or wait for the program to respond.
cnc-ddraw-mini.log
ddraw.ini.txt
cnc-ddraw-log-big.zip
cnc-ddraw-log.zip

Nice, thanks!
BTW, you should NOT enable any of the compatibility settings in cnc-ddraw config. Each one of them may be able to solve a problem in some games but may cause a new problem in other games (That's why I had to make all these settings optional rather than just having them enabled all the time)
"Fix bad performance and sound issues" (AKA "singlecpu=false") is known to cause freezing and crashes in cnc games, make sure you got that one disabled.
Retry once more without  "Windows XP Service Pack 2" compatibility mode and also without the cnc-ddraw compatibility settings. If it's still crashing, let me know (I'll have to think about better logging, these kind of random crashes are tricky to debug)

Not running in compatibility mode and turned off all the optional cnc-draw settings. I may overwhelm you with logs a bit but it is just to see if there is a common thread you can see somewhere.
I used the same restore point that I used last night. I tried Upscaled, Fullscreen, Borderless, and Windowed. The first 5 attempts lasted about 4-minutes each before the game locked up. On the 6th attempt, I changed it back to Upscaled, took it easy with moving around and minimized the activity (building, new units, battles, etc). I waited about 10 minutes and became active again and it locked up minutes later.
I have attached the log files for each attempt. The ddraw.ini is also included for each attempt.
The Event Viewer ("08202023 - Event Viewer.png") and Reliability monitor ("08202023 - Reliability Monitor Summary.png" and "08202023 - Reliability Monitor Details.png") in Windows was not helpful either. Event viewer referred me to WER folders, but I cannot get access to the folder so that was a dead end.
I had originally installed the 1.001 game with Origin and DeeZire some time ago. I had some of the same lock up issues and started launching the game using the Marshall.cannis.net Unofficial 1.002 Minipatch.  That worked great until EA went away from Origin (and permanently stopped the workaround) and I could no longer use the mini patch. The lockup issues have started back since having to launch from the EA App. I have tried a lot of different things (compatibility mode, ddwrapper, cnd-ddraw, etc) in the last month to the point that I don't remember everything I have tried.
[Uploading cnc
cnc-ddraw - 08202023-3 Fullscreen.zip
-ddraw-08202023-1 and 2 Upscaled.zip…]()
cnc-ddraw - 08202023 - 4 Borderless.zip
cnc-ddraw - 08202023 - 5 Windowed.zip
cnc-ddraw - 08202023 - 6 Upscaled less activity.zip
![08202023 - Event Viewer](https://github.com/FunkyFr3sh/cnc-ddraw/assets/142686905/8fc30e50-e425-480a-bbcf-16e462c

40785)

All logs are looking the same, the main thread of the game stops refreshing the screen but the secondary thread that handles the mouse cursor is still running just fine. Doesn't look like it's a problem with cnc-ddraw.
The game has 2 different ways to update the screen, one is "Blt" and one is via "lock/unlock", I made a custom build that disabled the "Blt" code, maybe you got some more luck with that one:
cnc-ddraw_RedAlert2_NoBlt.zip

No luck. I had to change to Fullscreen Upscaled because the default Full Screen opened minimized and would not maximize. Other than that, it locked up in the same place.

I have the feeling that it is specifically related to the Origin version.
For testing purposes:
1.copy the complete RA2 folder e.g. to the desktop
2.replace the game exe files with the ones from the attachment
(Origin stub removed, allows starting without Origin/EA App)
3.start the game and report if it changes anything
RA2_NoOrig.zip

So you said it used to work with the "Marshall.cannis.net Unofficial 1.002 Minipatch", do you still have these files? I'd like to have a look into them, maybe I can figure out what changes they've done in that patch

Responding to the last 2 threads, I made a copy of the RA2 folder and copied the .exe files to it - this still has the cnc-draw-NoBLT files. I ran the RA2Launcher.exe and Yuri.exe and neither opened EA. Both games still ends up locking up after that same 4 minutes :-(
The mini-patch is just an exe to execute the program. Copy it to the RA2 folder.  There is a "Mini-Patch Information" button although all the cannis.net links are dead.
YR Unofficial 1.002 Mini-Patch.exe.zip

I got the mini-patch working. Along with a lot of "missing cameos" in the buildings and units, the game I was playing still locks up around the same spot.
Unless there is anything else you want me to try, I may delete and reinstall. It may take some work to get back to where it was before EA and the other changes were made but I will keep the standalone files to use later.
I really, really appreciate the time you have spent helping with this. Hopefully, the info in this thread helps someone else down the road.

Yeah, good idea, maybe it helps to reinstall. I have no idea what else to try

Thank you again for your help and persistence. Also, thank you to LuKeSt0rm's for your suggestion. It's not easy troubleshooting someone else's issue with the uncountable number of variables and on your own time.
I'll update you whether the reinstall fixes the issue or not but might take me some time to get to it.


Upgrade deno to 0.42.0

@stevefan1999-personal Hi! Thanks for opening this issue!
This was fixed and released as v0.2.23-rc3.


Failed to source luasnip.lua

Version confirmation

[X] Confirm

Following prerequisites

[X] Confirm

Neovim version
0.9.5
Branch info
main (Default/Latest)
Minimal (user) folder structure required to reproduce the issue
no modify

Minimal config with steps on how to reproduce the issue
The following warning will be displayed every time I start nvim

Expected behavior
turn off waring
Additional information
No response

A related issue is fixed: https://github.com/ayamir/nvimdots/issues/1030

The problem remains. Whenever I open a file with nvim and press i or a or o  to enter edit mode, this warning will appear.

Can't repro indeed. Try removing the dir of LuaSnip and reinstall it?

Can't repro indeed. Try removing the dir of LuaSnip and reinstall it?

do the following?

rm -rf  .../.config/.../luasnip.lua
sudo pacman -S luasnip

do the following?

u shouldn't use ur package mgr to install LuaSnip.

Can't repro indeed. Try removing the dir of LuaSnip and reinstall it?

it's ok

Can't repro indeed. Try removing the dir of LuaSnip and reinstall it?

it's ok

how do you uninstall and reinstall luasnip?


autoUpdater.quitAndInstall does not cause application to emit normal quit events

When app.quit is called, app will emit 'before-quit', 'will-quit', and so on. When the application is quit by calling autoUpdater.quitAndInstall, these events are not emitted.

Doing this will change behaviors of existing apps, I don't think we should do that, no matter whether it is good or not.
If you really want this behavior you can just monkey-patch the autoUpdater.quitAndInstall method in your app.

Hm, I can see how emitting the events would be a breaking change. Don't you agree that this is a bug though? I don't see why we would not want to broadcast that the app was quitting, and so give modules the ability to clean up or even abort the quit, in this case vs. a regular quit.
Perhaps we keep it open/slated for the next major release? (In the semver sense, where a release is understood to contain breaking changes.)

I can indeed work around in this in my application. It would be much better if it were fixed in core though—assuming that 'before-quit' would be fired, I got bitten by a bug where:

I have a "main" window that can never be closed, only hidden—it normally prevents the 'close' event and hides itself. This is how many Mac apps behave.
But the main window will allow itself to be closed if the app is quitting—it deregisters the 'close' listener on 'before-quit'.
But since 'before-quit' is not emitted when auto-updating, and the app only quits when all windows have been closed, the app would never quit when the user said 'quit and install'—auto-updates are thus broken in production for me. :(

I'd like to save other developers from this. Or, we should amend the 'before-quit' documentation to this effect—but it'd be better if it were consistent.

After a closer look I found autoUpdater behaves differently on Windows, it uses app.quit to quit the program so quitAndInstall will emit quit events there. It makes this issue a bug then, I'm now :+1: on changing the behavior on OS X to follow the behavior on Windows.

We also just ran into this problem, and are having quite a bit of trouble getting quitAndInstall to work at all. Currently all windows are being closed, but the app never quits. We've checked all our code to make sure nothing's preventing it from quitting, but since no before-quit or will-quit events are being emitted, it's difficult to debug.
+1 on making the behavior consistent with Windows.

My app calls quitAndInstall in the will-quit event listener if an update has been downloaded already (and calls event.preventDefault() too). It works flawlessly on OS X, however, it hangs on Windows. The behaviour is similar to what @kainosnoema reported: before-quit is emitted, windows are closed, will-quit is emitted, I call quitAndInstall(), the app is updated but it doesn't quit. It's as if this call isn't executed at all.

I'm not able to reproduce this in v1.2.2 anymore.


[Bug] Unable to login by clicking on SignIn or Google Icon.

After Superset upgrade to 0.37.0 I am not able to log into the product by clicking on SignIn button or Google icon.
Expected results
Log into SuperSet.
Actual results
Stays on the Login page without any changes.
How to reproduce the bug

Go to Login page of super set.
Click on SignIn button or Google icon to login via Google authentication alone and you will see you are not logged in.
Click Google Icon and SignIn button in quick succession, and you will be shown the google account choice window to log in with and you can continue now to log in correctly. (Rage clicking showed this to be working :P)

Environment

superset version: 0.37.0
python version: 2.7.6
node.js version: v13.12.0
npm version: 6.14.8

Checklist
Make sure these boxes are checked before submitting your issue - thank you!

[ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[x] I have reproduced the issue with at least the latest released version of superset.
[x] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context
I checked network tab for calls being made (Both Incognito and Otherwise) and following are the details.

Upon clicking Login button : We see a bunch of static resources being loaded and login call being made which returns with 200.
Upon clicking Google icon : We see no network calls being made.
Upon clicking SignIn icon : We see no network calls being made.
Upon clicking Register icon : We see no network calls being made.

I also checked the developer console and I see no error logs.

hi, @csurfer.

why you use google login to Superset?
If you don’t mind, can you share config.py? Have you configured an additional login manager?


Brianoflondon/docker compose for lnbits

This adds a very simple docker-compose.yml file to the repo and a little bit more info in the .env.example to help get things set up especially connecting to a LND REST api on a service like Voltage.

imho it does not make a lot of sense to add a docker-compose only to start lnbits itselfs, you could just run docker by itself no composing needed.
i would make a little bit more sense if you had added a postgres container and maybe ssl offloading with nginx.
can you PR https://github.com/lnbits/lnbits/pull/1008/commits/e931bc3f008b603bc22d535f54a1fc1d9bc7de47 only, this is a valid fix.

The more examples you give, the more people are likely to get this stuff working, yes I probably will add a postgress to this at some point but I have no idea when. In the meantime, perhaps just having this here will encourage someone else. Adding a DC doesn't take anything away and might just help someone along the way. Do what you want with my contributions.

This is possible duplication with https://github.com/lnbits/lnbits/pull/703
However, that was rejected on the basis that it requires other software and here you require other software to be included.