error in the SnackBar

I/flutter (18687): ══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════
I/flutter (18687): The following assertion was thrown while handling a gesture:
I/flutter (18687): Scaffold.of() called with a context that does not contain a Scaffold.
I/flutter (18687): No Scaffold ancestor could be found starting from the context that was passed to Scaffold.of(). This
I/flutter (18687): usually happens when the context provided is from the same StatefulWidget as that whose build
I/flutter (18687): function actually creates the Scaffold widget being sought.
I/flutter (18687): There are several ways to avoid this problem. The simplest is to use a Builder to get a context that
I/flutter (18687): is "under" the Scaffold. For an example of this, please see the documentation for Scaffold.of():
I/flutter (18687):   https://docs.flutter.io/flutter/material/Scaffold/of.html
I/flutter (18687): A more efficient solution is to split your build function into several widgets. This introduces a
I/flutter (18687): new context from which you can obtain the Scaffold. In this solution, you would have an outer widget
I/flutter (18687): that creates the Scaffold populated by instances of your new inner widgets, and then in these inner
I/flutter (18687): widgets you would use Scaffold.of().
I/flutter (18687): A less elegant but more expedient solution is assign a GlobalKey to the Scaffold, then use the
I/flutter (18687): key.currentState property to obtain the ScaffoldState rather than using the Scaffold.of() function.
I/flutter (18687): The context used was:
I/flutter (18687):   Phase1(state: _Phase1State#83458)
I/flutter (18687): When the exception was thrown, this was the stack:
I/flutter (18687): #0      Scaffold.of (package:flutter/src/material/scaffold.dart:944:5)
I/flutter (18687): #1      _Phase1State.build.<anonymous closure> (package:enigmaz/phases/phase1.dart:52:24)
I/flutter (18687): #2      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:494:14)
I/flutter (18687): #3      _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:549:30)
I/flutter (18687): #4      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:102:24)
I/flutter (18687): #5      TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:161:9)
I/flutter (18687): #6      TapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:94:7)
I/flutter (18687): #7      PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:315:9)
I/flutter (18687): #8      PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:73:12)
I/flutter (18687): #9      PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:101:11)
I/flutter (18687): #10     BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:143:19)
I/flutter (18687): #11     BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:121:22)
I/flutter (18687): #12     BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:101:7)
I/flutter (18687): #13     BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:64:7)
I/flutter (18687): #14     BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:48:7)
I/flutter (18687): #15     _invoke1 (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:134)
I/flutter (18687): #16     _dispatchPointerDataPacket (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:91)
I/flutter (18687): Handler: onTap
I/flutter (18687): Recognizer:
I/flutter (18687):   TapGestureRecognizer#aa574(debugOwner: GestureDetector, state: possible, won arena, finalPosition:
I/flutter (18687):   Offset(587.0, 48.0), sent tap down)
I/flutter (18687): ════════════════════════════════════════════════════════════════════════════════════════════════════

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, v0.3.5, on Linux, locale pt_BR.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] Android Studio (version 3.0)
[✓] VS Code (version 1.22.2)
[✓] Connected devices (1 available)
• No issues found!

the code:
new IconButton(
icon: new Icon(Icons.wb_incandescent),
onPressed: () {
final snackBar = new SnackBar(
content: new Text('Yay! A SnackBar!', style: new TextStyle(color: Colors.white),),
action: new SnackBarAction(
label: 'Undo',
onPressed: () {
// Some code to undo the change!
},
),
);
          // Find the Scaffold in the Widget tree and use it to show a SnackBar!
          Scaffold.of(context).showSnackBar(snackBar);
        },
      ),

I am having the same error.
Please share the changes that are needed to be done.

Same error here too

This issue is long closed. Please create a new issue with the information you can provide that allows to reproduce. Adding a link to this issue might be a good idea as well.

Hi, I dit it, work for me :)
@override Widget build(BuildContext context) {   return new Scaffold(     appBar: new AppBar(       title: new Text('Fabio App')     ),     body: new Builder(       // Create an inner BuildContext so that the onPressed methods       // can refer to the Scaffold with Scaffold.of().       builder: (BuildContext context) {         return new Center(           child: new RaisedButton(             child: new Text('SHOW A SNACKBAR'),             onPressed: () {               Scaffold.of(context).showSnackBar(new SnackBar(                 content: new Text('Hello!'),               ));             },           ),         );       },     ),   ); }

To fix this, you can just create a new StatelessWidget. For example:
class SomeButton extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return IconButton(...);
  }
}

and then put the new SomeButton() instance to where your old IconButton is.
Btw, you can use Builder too as shown in the above comment. But I like creating a new widget. It looks clean to me.

same error
`  _pushSaved(BuildContext context) async{
print("点击了");
final result = await Navigator.push(
context,
new MaterialPageRoute(
builder: (context) => new SecondScreen(params: "hello"),
));
print("$result");
Scaffold
.of(context)
.showSnackBar(new SnackBar(content: new Text("$result")));
}`
`class RandomWords extends StatefulWidget {
@override
createState() => new RandomWordsState();
}
class RandomWordsState extends State {
final _suggestions = [];
final _saved = new Set();
final TextStyle _biggerFont = new TextStyle(fontSize: 20.0);
@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(
title: new Text('Startup Name Generator'),
actions: [
new IconButton(
icon: new Icon(Icons.favorite),
onPressed: () {
_pushSaved(context);
})
],
),
body: _buildSuggesttions(),
);
}`

  final GlobalKey<ScaffoldState> _scaffoldstate =
      new GlobalKey<ScaffoldState>();

_scaffoldstate.currentState.showSnackBar(
      new SnackBar(
        duration: new Duration(seconds: tempo),
        content: new Text(value),
      ),
    );

This is A dialog box Class
import 'package:flutter/material.dart';
class PinChangeDialog extends StatefulWidget {
final FirebaseUser user;
final Function acPerform;
final ValueChanged<Map<String,dynamic>> returnValues;
PinChangeDialog({this.user,this.acPerform,this.returnValues, Key key}) : super(key: key);
_PinChangeDialogState createState() => _PinChangeDialogState();
}
class _PinChangeDialogState extends State
with SingleTickerProviderStateMixin {
final _formKey = GlobalKey();
final TextEditingController _pinOld = TextEditingController();
final TextEditingController _pinNew = TextEditingController();
bool oldpinError = false;
bool showSucess = false;
AnimationController controller;
Animation scaleAnimation;
@override
void initState() {
super.initState();
controller =
    AnimationController(vsync: this, duration: Duration(milliseconds: 450));
scaleAnimation =
    CurvedAnimation(parent: controller, curve: Curves.elasticInOut);

controller.addListener(() {
  setState(() {});
});

controller.forward();

}
@override
void dispose() {
controller.dispose();
_pinNew.dispose();
_pinOld.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
Widget pinInput(
String hint, bool firstInput, TextEditingController editingController) {
String validator(String pin) {
if (pin.length < 4) {
return "In valid";
}
return null;
}
  return TextFormField(
    controller: editingController,
    validator: (pin) => firstInput ? validator(pin) : validator(pin),
    maxLength: 4,
    keyboardType: TextInputType.number,
    decoration: InputDecoration(
      hintText: hint,
      border: OutlineInputBorder(
        borderRadius: BorderRadius.all(
          Radius.circular(10.0),
        ),
      ),
    ),
  );
}

final height = MediaQuery.of(context).size.height;
final width = MediaQuery.of(context).size.width;
return Center(
  child: Material(
    color: Colors.transparent,
    child: ScaleTransition(
      scale: scaleAnimation,
      child: AlertDialog(
        title: Row(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: <Widget>[Icon(Icons.vpn_key), Text("Change Pin")],
        ),
        shape: RoundedRectangleBorder(
            borderRadius: BorderRadius.circular(15.0)),
        content: Form(
          key: _formKey,
          child: Column(
            mainAxisSize: MainAxisSize.min,
            children: <Widget>[
              pinInput("Old Pin", true, _pinOld),
              pinInput("New Pin", false, _pinNew),
              oldpinError
                  ? Text(
                      "Old Pin is wrong !!",
                      style: TextStyle(color: Colors.red),
                    )
                  : Container()
            ],
          ),
        ),
        actions: <Widget>[
          FlatButton(
            child: Text("OK"),
            onPressed: () {
              print("hellow from pinChnage class");
              widget.returnValues({"oldPin":_pinOld.text,"newPin":_pinNew.text,"isValid":_formKey.currentState.validate()});
            },
          ),
          FlatButton(
            child: Text("Cancel"),
            onPressed: () {
              Navigator.of(context).pop();
            },
          )
        ],
      ),
    ),
  ),
);

}
}
SettingsScreen calling class to PinChangeDialog class
import 'package:flutter/material.dart';
class SettingsScreen extends StatelessWidget {
SettingsScreen({Key key}) : super(key: key);
var _scaffoldKey = GlobalKey();
@override
Widget build(BuildContext context) {
StorageUploadTask uploadTask;
FirebaseUser user = Provider.of(context);
String name = user.displayName;
String urlPhoto = user.photoUrl;
String email = user.email;
bool logOut() {
void x() {
Navigator.of(context).pop();
Navigator.of(context).pop();
Navigator.of(context).pushReplacement(
MaterialPageRoute(
builder: (context) => DocumentVault(
show: false,
),
),
);
GoogleRegistorService().auth.signOut();
}
  showDialog(
    context: context,
    builder: (BuildContext context) => CuAlertDialog(
      subtitle: "You are going to sign Out",
      title: "Are you sure ?",
      okAction: x,
      tag: "logout",
    ),
  );
  return true;
}

bool clean() {
  void x() {
    CRUD(user, uploadTask).deleteAllDocuments().then((value) {
      if (value) {
        Navigator.of(context).pop();
        _scaffoldKey.currentState.showSnackBar(
          SnackBar(
            content: Text("Deleted All the Documents"),
          ),
        );
      } else {
        Navigator.of(context).pop();
        _scaffoldKey.currentState.showSnackBar(
          SnackBar(
            content: Text("Nothing To Delete !!"),
          ),
        );
      }
    });
  }

  showDialog(
    context: context,
    builder: (BuildContext context) => CuAlertDialog(
      subtitle: "Delete all the documents from cloud.",
      title: "Are you sure ?",
      okAction: x,
      tag: "logout",
    ),
  );
  return true;
}

bool changePin() {
  void showSneakBar(String text) {
    _scaffoldKey.currentState.showSnackBar( SnackBar(
        content: Text(text),
      ),);
    /* _scaffoldKey.currentState.showSnackBar(
      SnackBar(
        content: Text(text),
      ),
    ); */
  }

  void mainLogic(data) {
    if (data["isValid"]) {
      print(data["newPin"]);
      PinManager(user: user).getPin().listen((pin) {
        if (pin.value.toString() != data["oldPin"]) {
          //Navigator.of(context).pop();

          showSneakBar("Cloud pin and Entered Pin no match !!");
        } else {
          PinManager(user: user).setPin(data["newPin"]).then((c) {
            //Navigator.of(context).pop();

            showSneakBar("Pin Updated to ${data["newPin"]}");
          });
        }
      });
    } else {
      showSneakBar("Check your Inputs !!1");
    }
  }

  showDialog(
    context: context,
    builder: (BuildContext context) => PinChangeDialog(
        user: user,
        returnValues: (data) {
          mainLogic(data);
        }),
  );
  return true;
}

return Scaffold(
  key: _scaffoldKey,
  body: CustomScrollView(
    slivers: <Widget>[
      SliverAppBar(
        leading: Hero(
          tag: "settings",
          child: Icon(
            Icons.settings,
            color: Colors.black,
          ),
        ),
        pinned: true,
        backgroundColor: Color(0xfff8faf8),
        elevation: 0.0,
        centerTitle: true,
        title: Text(
          "Settings",
          style: TextStyle(color: Colors.black),
        ),
      ),
      SliverList(
        delegate: SliverChildListDelegate(
          [
            UserAccountsDrawerHeader(
              margin: EdgeInsets.all(10.0),
              decoration: BoxDecoration(
                borderRadius: BorderRadius.circular(25.0),
                gradient: LinearGradient(
                  colors: [
                    Color(0xFFFF9945),
                    Color(0xFFFc6076),
                  ],
                ),
              ),
              currentAccountPicture: CircleAvatar(
                backgroundImage: NetworkImage(urlPhoto),
              ),
              accountEmail: Text(email),
              accountName: Text(name),
            ),
            ListTile(
              leading: Hero(tag: "logout", child: Icon(Icons.exit_to_app)),
              title: Text("Log out"),
              subtitle: Text("Log Out and keep all the data in cloud."),
              onTap: () => logOut(),
            ),
            ListTile(
              leading: Icon(Icons.clear_all),
              title: Text("Clean"),
              subtitle: Text("Delete all the files in the cloud"),
              onTap: () => clean(),
            ),
            ListTile(
              leading: Icon(Icons.vpn_key),
              title: Text("Change Pin"),
              subtitle: Text("Change the pin"),
              onTap: () => changePin(),
            )
          ],
        ),
      )
    ],
  ),
);

}
}
I am getting the following Error !!!!
[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: NoSuchMethodError: The method 'showSnackBar' was called on null.

This is solution https://github.com/flutter/flutter/issues/17097#issuecomment-501762525

This exception happens because you are using the context of the widget that instantiated Scaffold. Not the context of a child of Scaffold.
You can solve this by just using a different context :
Find more At Here https://icetutor.com/question/scaffold-of-called-with-a-context-that-does-not-contain-a-scaffold

Already [Solved] Scaffold.of() called with a context that does not contain a Scaffold


Got No view Manager defined for class RNSVGGroup

This is my package.json :
{
  "dependencies": {
    "lodash": "^4.17.4",
    "react": "^15.4.2",
    "react-native": "^0.42.0",
    "react-native-pathjs-charts": "0.0.28",
    "react-native-side-menu": "^0.20.1",
    "react-native-simple-table": "0.0.2",
    "react-native-sqlite-storage": "^3.3.1",
    "react-native-svg": "^5.1.7",
    "react-native-tab-view": "0.0.63",
    "react-native-vector-icons": "^4.1.1",
    "react-navigation": "^1.0.0-beta.9",
    "react-redux": "^5.0.4",
    "redux": "^3.6.0",
    "redux-logger": "^3.0.1",
    "redux-thunk": "^2.2.0"
  },
  "jest": {
    "preset": "react-native"
  },
  "devDependencies": {
    "babel-jest": "^20.0.0",
    "babel-preset-react-native": "^1.9.1",
    "jest": "^20.0.0",
    "react-test-renderer": "^15.5.4",
    "remote-redux-devtools": "^0.5.7"
  }
}

I've run rnpm link react-native-svg, I also triple check that the library manually (Adding import com.horcrux.svg.SvgPackage; to MainApplication.java and adding new SvgPackage() in getPackage().

me too。

you should install svg,i solve it。

Hey @ljy0605 How did you solve the issue? I get the issue with RNSVGGroup as well.
Thanks!

Got it to work. Had to manually link the library for react-native-svg

@fawwaz , Try uninstalling the app on device/simulator and then re-install it.

@fawwaz and others, The current version of this library depends on react-native-svg 5.1.8 and that only supports react-native >= 0.44.0 and react == 16.0.0-alpha.6. Updating your dependencies to newer versions should help


Download Error on startup / Win10 x64

Can't launch Fether. This happens when not running a parity light node in the background, and also when I do have one running.
The client opens to the 'Connecting to the node...' page then gives me this message in rapid succession: Download Error The download of parity.exe was interrupted
After closing this dialogue box a few times I get the following error:
An error occured. OS: win32 Arch: x64 Channel: beta Error: The download of parity.exe was interrupted
Log file - I removed hostname and user name from this:
{"level":30,"time":1544101844900,"msg":"Starting Parity Fether...","pid":11044,"hostname":"***","name":"fether","v":1} {"level":30,"time":1544101845043,"msg":"Parity not found on machine.","pid":11044,"hostname":"***","name":"@parity/electron:main","v":1} {"level":30,"time":1544101845048,"msg":"Downloading from https://vanity-service.parity.io/parity-binaries?version=beta&os=windows&architecture=x86_64.","pid":11044,"hostname":"***","name":"@parity/electron:main","v":1} {"level":30,"time":1544102165476,"msg":"Retrying.","pid":11044,"hostname":"***","name":"@parity/electron:main","v":1} {"level":30,"time":1544102165478,"msg":"Downloading from https://vanity-service.parity.io/parity-binaries?version=beta&os=windows&architecture=x86_64.","pid":11044,"hostname":"***","name":"@parity/electron:main","v":1} {"level":30,"time":1544102169049,"msg":"Retrying.","pid":11044,"hostname":"***","name":"@parity/electron:main","v":1} {"level":30,"time":1544102169051,"msg":"Downloading from https://vanity-service.parity.io/parity-binaries?version=beta&os=windows&architecture=x86_64.","pid":11044,"hostname":"***","name":"@parity/electron:main","v":1} {"level":30,"time":1544102200389,"msg":"Retrying.","pid":11044,"hostname":"***","name":"@parity/electron:main","v":1} {"level":30,"time":1544102200391,"msg":"Downloading from https://vanity-service.parity.io/parity-binaries?version=beta&os=windows&architecture=x86_64.","pid":11044,"hostname":"***","name":"@parity/electron:main","v":1} {"level":50,"time":1544102201827,"msg":"The download of parity.exe was interrupted","pid":11044,"hostname":"***","name":"fether","type":"Error","stack":"Error: The download of parity.exe was interrupted\n    at DownloadItem.item.on (C:\\Users\\***\\AppData\\Local\\Programs\\fether\\resources\\app.asar\\node_modules\\electron-dl\\index.js:109:8)\n    at emitTwo (events.js:126:13)\n    at DownloadItem.emit (events.js:214:7)","v":1}

Hi, thanks for reporting. I can reproduce. We're working on a fix right now.
In the meantime, you can add the Parity binary to your $PATH; the bug shouldn't happen then.


DB <IP_ADDRESS>0008302047..  mySQL column "comment" and then SAVE

System information:

WIndows 10
DBeaver <IP_ADDRESS>0008302047

Connection specification:

mySQL       com.mysql.jdbc.authentication.MysqlNativePasswordPlugin

Describe the problem you're observing:
Change to Comment column the SAVE button still disabled.
How to...
select a Table tab / Properties / Comment field/column visable
Change  comment text.. the SAVE button is still disabled..
Work around change something in another column and back..
The Save button now works to select PERSIST.
Phil

Hi @SherlockSoftware
cannot reproduce it.
What driver do you use? Could you post a video that shows issue?
Thanks in advance

Howdy///
This is going to be the EFC [ edit Focus change ] where in the text below “casse” and me taking and image shot triggers the SAVE button to ENABLE.
Before I selected the image program the SAVE button was DISABLED.
If I type  “aaa” in caaase the SAVE button does not ENABLE [ does in this picture… ] until I click on another control.  Focus change.
Even though I have changed the contents of the field.. it is only focus change the says something changed.
Would not matter what driver I would imagine it is the Windows controls.
“Edit Change” or “Edit Focus Change” events.
.
You must only use the later, which is fine you know.
Hope this helps..
<EMAIL_ADDRESS><EMAIL_ADDRESS>From: uslss<EMAIL_ADDRESS>Sent: Monday, 7 September 2020 9:17 PM
To: dbeaver/dbeaver<EMAIL_ADDRESS>Cc: Phil McGuinness<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [dbeaver/dbeaver] DB <IP_ADDRESS>0008302047.. mySQL column "comment" and then SAVE (#9703)
Hi @SherlockSoftwarehttps://github.com/SherlockSoftware
cannot reproduce it.
What driver do you use? Could you post a video that shows issue?
Thanks in advance
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/dbeaver/dbeaver/issues/9703#issuecomment-688257987, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APNB2KOJJ7AC5PYSNB3WWH3SES6KHANCNFSM4Q32AYSQ.

@SherlockSoftware
unfortunately, pictures aren't visible

there aren't any updates - the issue closed.
If it is still actual - feel free to reopen it with additional info that can help to investigate an issue.


Tetra Tool Compatibility?

I notice this mod doesn't seem to work with the "tetra:modular_double" and generally Tetra tool type from the https://www.curseforge.com/minecraft/mc-mods/tetra mod. Any chance for added compatibility in an update?

is this dead here or is there still a chance

I'm not sure. Maybe it is. I tried it at least once in the past, but as you can see: it didn’t happen. I’m pretty unmotivated for  because of that, sadly. So, I keep it a maybe.


ci: merge staging to master

This is an automatic PR generated by the pipeline CI/CD. This will be automatically fast-forward merged if successful.

Pipeline Attempt on 583969736 for b15727f0d4236de026ed8aba8af31f2387f98755
https://gitlab.com/MatrixAI/open-source/typescript-demo-lib/-/pipelines/583969736

Pipeline Succeeded on 583969736 for b15727f0d4236de026ed8aba8af31f2387f98755
https://gitlab.com/MatrixAI/open-source/typescript-demo-lib/-/pipelines/583969736


get the version from version.py

this allows to have a version attribute in the module

Coverage increased (+0.02%) to 92.83% when pulling 20457758e0ec9ad56f217f779cc3cdd7ea4052ee on xantares:master into b989e1b877a9000e410ee469827cb2cc36fe74f6 on CamDavidsonPilon:master.

Coverage increased (+0.02%) to 92.83% when pulling 20457758e0ec9ad56f217f779cc3cdd7ea4052ee on xantares:master into b989e1b877a9000e410ee469827cb2cc36fe74f6 on CamDavidsonPilon:master.

:+1: I just encountered needing this last week. I'll test locally in an hour or so!

:tophat:'d. Thanks for this contribution!


Revive progress and warning logs

These got dropped when we pulled in:
https://github.com/google/go-containerregistry/pull/481
Which doesn't log by default, and requires opting in.
Before:
$ ko publish -P ./cmd/ko/
2020/09/25 11:23:47 Using base gcr.io/distroless/static:nonroot for ko://github.com/google/ko/cmd/ko
2020/09/25 11:23:48 Building github.com/google/ko/cmd/ko for linux/amd64
2020/09/25 11:23:56 Publishing gcr.io/jonjohnson-test/ko/github.com/google/ko/cmd/ko:latest
2020/09/25 11:24:10 Published gcr.io/jonjohnson-test/ko/github.com/google/ko/cmd/ko@sha256:088f55132ffdea808364a21f9973b9e463c03b9bc1f8a33a80bbaa89a359f456
gcr.io/jonjohnson-test/ko/github.com/google/ko/cmd/ko@sha256:088f55132ffdea808364a21f9973b9e463c03b9bc1f8a33a80bbaa89a359f456

After:
$ ko publish -P ./cmd/ko/
2020/09/25 11:23:08 Using base gcr.io/distroless/static:nonroot for github.com/google/ko/cmd/ko
2020/09/25 11:23:10 Building github.com/google/ko/cmd/ko for linux/amd64
2020/09/25 11:23:17 Publishing gcr.io/jonjohnson-test/ko/github.com/google/ko/cmd/ko:latest
2020/09/25 11:23:17 existing blob: sha256:7438552acdc56e8eda4401142955d4860f25be2af6348aef4c0ddd0f4eeaa0af
2020/09/25 11:23:17 existing blob: sha256:3c2cba919283a210665e480bcbf943eaaf4ed87a83f02e81bb286b8bdead0e75
2020/09/25 11:23:17 existing blob: sha256:72164b581b02b1eb297b403bcc8fc1bfa245cb52e103a3a525a0835a58ff58e2
2020/09/25 11:23:17 existing blob: sha256:fa712d40dbb2c65903bbd9996c3cdb22e5a07eb18dce44c425335463c8b5daf1
2020/09/25 11:23:17 existing blob: sha256:4000adbbc3eb1099e3a263c418f7c1d7def1fa2de0ae00ba48245cda9389c823
2020/09/25 11:23:18 gcr.io/jonjohnson-test/ko/github.com/google/ko/cmd/ko:latest: digest: sha256:73de099249bf3269c7dd1fbf951b3f5d793e7ae0d1115fcd068802d0e897312e size: 910
2020/09/25 11:23:18 Published gcr.io/jonjohnson-test/ko/github.com/google/ko/cmd/ko@sha256:73de099249bf3269c7dd1fbf951b3f5d793e7ae0d1115fcd068802d0e897312e
gcr.io/jonjohnson-test/ko/github.com/google/ko/cmd/ko@sha256:73de099249bf3269c7dd1fbf951b3f5d793e7ae0d1115fcd068802d0e897312e

Also fixes Using base gcr.io/distroless/static:nonroot for ko://github.com/google/ko/cmd/ko, since we're fixing logs anyway.

Codecov Report

Merging #203 into master will decrease coverage by 0.02%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #203      +/-   ##
==========================================
- Coverage   37.82%   37.79%   -0.03%
==========================================
  Files          33       33
  Lines        1380     1381       +1
==========================================
  Hits          522      522
- Misses        768      769       +1
  Partials       90       90

Impacted Files
Coverage Δ

pkg/commands/config.go
15.27% <0.00%> (-0.22%)
:arrow_down:

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 d487673...4820c53. Read the comment docs.


Add Solana Support

Description
Adding support for Solana blockchain
https://solana.com/
Testing instructions
This PR includes unit tests and js/swift/kotlin integration tests
Types of changes

New feature (non-breaking change which adds functionality)

Checklist

[ ] Prefix PR title with [WIP] if necessary.
[x] Add tests to cover changes as needed.
[ ] Update documentation as needed.

Thanks for the contribution, we have new requirements when adding new blockchains, let's hold this until Solana mainnet is launched

@hewigovens Can you elaborate on what the new requirements are?

@hewigovens , thanks for the feedback and especially for the js updates! I rebased on master, so that should be current.


Not working with .net core 2.0

Hi,
I am trying yo aspnetcore-spa + react & redux
But I get this error:
C:\Program Files\dotnet\sdk\2.0.0-preview1-005977\NuGet.targets(97,5): error : Unable to resolve 'Microsoft.AspNetCore.SpaServices (>= 1.1.1)' for '.NETCoreApp,Version=v1.1'. [C:\MyDrive\Personal\react\ReactTest1.csproj]
Any solution to this?

The code in the dev branch in this repo is already based on .NET Core 2.0. The template packages built here are based on this: https://ci.appveyor.com/project/aspnetci/javascriptservices/history. When .NET Core 2.0 Preview 2 ships, we'll be including updated SPA templates with it.
It's probably better for you not to try to use .NET Core 2.0 with the SPA templates before Preview 2 ships because there's no support or docs for that. But it won't be long now until it ships!

ok thank you


BUG: Repeat rerolls 1's but only once

I was attempting to do character generation rolls, our GM allows us to reroll 1's until we get something else, but the reroll doesn't do that. It rerolls it once, and takes that number, even if it's another 1

There's a limit on the number of such rerolls which is currently set to 1 (cf). What should the limit be in your opinion? Rerolling indefinitely doesn't sound right to me. E.g. /r 1d1r1 would not compute.

It looks like Roll20 rerolls up to 1000 times, but something even lower would be reasonable.
Having this fixed would be very nice since the game I play has a mechanic that relies on (theoretically) infinite rerolls.

How many times would you reroll during a non-online / non-remote tabletop game?
Would rerolling three times work?

I think 10 is the absolute limit anyone sane would bother going to and is already incredibly unlikely with most common dice, so that's where I'd put it.

Since you closed #179 and linked it to this one, the person in there also mentioned that it will not reroll consistent 1's even if they are not rerolls.
I.E.
4d6r1k3 we got
(6+1+1+1+4+2)
The bold ones being the original rolls, but it only rerolled the first 2 and stopped (4 and 2) once it got a match for the k3. Technically this should still make that third roll and THEN do k3 as the outcome could be anywhere from 12-16 as opposed to 12.

Since you closed #179 and linked it to this one, the person in there also mentioned that it will not reroll consistent 1's even if they are not rerolls.
I.E.
4d6r1k3 we got
(6+1+1+1+4+2)
The bold ones being the original rolls, but it only rerolled the first 2 and stopped (4 and 2) once it got a match for the k3. Technically this should still make that third roll and THEN do k3 as the outcome could be anywhere from 12-16 as opposed to 12.


Is there any plan to release the training code?

Thank you for your support. Currently, I might not have too much time to carry out this request.


feat(docker): Improve Dockerfile

Features
Use fixed versions in FROM statements
Fixes #84.
https://github.com/padok-team/burrito/blob/f2156f542f1e7cdbadb70c2c0b9c64750f35a783/Dockerfile#L2
https://github.com/padok-team/burrito/blob/f2156f542f1e7cdbadb70c2c0b9c64750f35a783/Dockerfile#L36
Note
The SHA256 digests are the ones of the multi-platform image's manifest, obtained with the two followings commands as of May 14th, 2023:
docker buildx imagetools inspect golang:1.19.9
docker buildx imagetools inspect alpine:3.18.0

This enables the Docker image to be built with these fixed versions on any platform supported by the referenced manifests.
Reduce Docker image size
Fixes #124.
By using alpine:3.18.0 instead of golang:alpine, the size decreases from ~390MB to ~96MB.
Adding the --no-cache option reduces the image only by ~1.5MB but is common practice.
Now the final image has a size of ~95MB.
Note
The size described are for the linux/arm64/v8 architecture, I did not tested on linux/amd64, but the gains should be similar.

Codecov Report

Merging #125 (f2156f5) into main (192ca72) will not change coverage.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@           Coverage Diff           @@
##             main     #125   +/-   ##
=======================================
  Coverage   45.08%   45.08%
=======================================
  Files          23       23
  Lines        1546     1546
=======================================
  Hits          697      697
  Misses        822      822
  Partials       27       27

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


How to organize the example gallery?

The example gallery now has 17 items and might benefit from being organized into sections.  This has been briefly discussed elsewhere:

https://github.com/pvlib/pvlib-python/pull/1077#issuecomment-705690331
https://github.com/pvlib/pvlib-python/pull/1266#issuecomment-892112481

I think the sphinx configuration changes to do this would be straightforward (see here).  The question is how the gallery should be organized.  For inspiration, here are some other packages with sections in their gallery:

matplotlib: https://matplotlib.org/stable/gallery/index.html
metpy: https://unidata.github.io/MetPy/latest/examples/index.html
sunpy: https://docs.sunpy.org/en/stable/generated/gallery/index.html
cartopy: https://scitools.org.uk/cartopy/docs/latest/gallery/index.html
scikit-learn: https://scikit-learn.org/stable/auto_examples/index.html
probably other ones listed here: https://sphinx-gallery.github.io/stable/projects_list.html

To get the conversation started, here are some categorizations mentioned in the above threads:

by abstraction level: functions vs objects
by task (or "how do I"), e.g. system modeling vs resource assessment vs ...
by modeling topic, roughly along the lines of the pvlib module breakdown and PVPMC diagram

Input from anyone is welcome!

I think I like by module? EG:

solar position
irradiance
atmosphere
clearsky
PV modules
inverters
IO
IV curves
PV systems
etc

This could incorporate both topics and abstraction level, bc objects tend to aggregate several functions across topics. Each section could have both "how to's" and other less general examples


can't change live preview host id

Type: Bug
when i open my website in browser it shows "not secure"
and they also show me a warning while i want to open my website through live preview so where is the actual issue .. please help
VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z)
OS version: Windows_NT x64 10.0.19045
Modes:

Thanks for reaching out to the VS Marketplace Team. Could you please share the error message, a screenshot, and the repro steps to help us investigate better.
Regards,
VS Marketplace Team

Closing the issue since there has been no updates on the information requested. If the issue still persists, please feel free to reopen or create a new issue.
Regards,
VS Marketplace Team


Firebase Messaging seems to be broken on Android / iOS

Steps to Reproduce
I just installed the Firebase Messaging plugin into my app and unfortunately it's not working at all. The only thing it can do is display a notification on Android when I send it through the Firebase console.
Also the method FirebaseMessaging().getToken() will never return a token and does not throw an error. Listening to onTokenRefresh will never dispatch an event.
I'm on master right now (v0.3.6-pre.52) but also tried beta and dev.
Logs
Launching lib/main.dart on iPhone von Frederik in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: ABCD123456
Starting Xcode build...
 ├─Building Dart code...                              0.9s
 ├─Assembling Flutter resources...                    1.4s
 └─Compiling, linking and signing...                  4.2s
Xcode build done.                                            8.5s
Installing and launching...
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File<EMAIL_ADDRESS>line 52, in <module>
    import weakref
  File<EMAIL_ADDRESS>line 14, in <module>
    from _weakref import (
ImportError: cannot import name _remove_dead_weakref
4.13.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8.
4.13.0 - [Firebase/Analytics][I-ACS023007] Firebase Analytics v.40200000 started
4.13.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
4.13.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at:
flutter: Listening for Tokens..
4.13.0 - [Firebase/Firestore][I-FST000001] The behavior for system Date objects stored in Firestore is going to change AND YOUR APP MAY BREAK.
Syncing files to device iPhone von Frederik...               2.4s

Flutter Doctor
[✓] Flutter (Channel master, v0.3.6-pre.52, on Mac OS X 10.13.4 17E202, locale en-DE)
• Flutter version 0.3.6-pre.52 at /Users/frederikschweiger/Documents/Flutter
• Framework revision 8860627b63 (11 hours ago), 2018-04-28 15:14:46 -0700
• Engine revision 613aae032f
• Dart version 2.0.0-dev.50.0.flutter-cd0c4e4fe1
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/frederikschweiger/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.3, Build version 9E145
• ios-deploy 1.9.2
• CocoaPods version 1.5.0
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 24.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] VS Code (version 1.22.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Dart Code extension version 2.12.0

I just ran the example app from that plugin on my android device and it seems to be working as expected. Did you do the firebase integration in your app as described in https://github.com/flutter/plugins/tree/master/packages/firebase_messaging#android-integration?

@goderbauer Yeah, I did everything as described. Mmmh, that's weird.

I'm having the same problem. My apps run fine though, however, I do have some problems with Hot Reload now and again, but I don't know if this is related.

hmm i'm having the same problem , but only occuring on iOS not on android, android no issues, only in iOS there's seems to be a problem.

Exactly same issue here...
Except FirebaseMessaging().getToken() is returning token in debug and not in release apk.
Somebody please help.

FYI: works after calling configure() which seemed to be optional: https://github.com/flutter/flutter/issues/17699

yes after calling configure(), gettoken() will return a token correctly.

Hi, the problem described here calling getToken before configure is actually solved by flutter/plugins#869 . I'm using the latest versions both on Android and iOS and it's working.
I suggest closing this issue.

@ffeu Yup, thanks for the heads-up 👍

@flschweiger
This issue has been moved to https://github.com/FirebaseExtended/flutterfire/issues/841. Any further collaboration will be done there.


Support of continuous benchmark and report

Support benchmark per merge in the actions workflow and report visualized results
Scikit-learn benchmark page for reference

Since we had discussed asv several times related to this topic, and I had spent non-negligible time trying to get asv working in AutoGluon, I created this PoC draft pull request so if anyone else wants to investigate, they can build off the work I've already put into it.
The pull request is not intended to be production ready. It provides an example asv.config.json which gets asv working in the AutoGluon repo and provides a simple benchmark file with ways we could benchmark TabularPredictor using the asv approach.
After working on this, I don't believe asv is the exact tool we were looking for for tracking benchmark performance over time, but we will make that design decision when we have codified requirements and looked at alternatives.

Completed and available starting AutoGluon 1.0


Added snapshot support for GCS

This can be merged once we get a new container out of  https://github.com/gluster/gluster-csi-driver/pull/32.
Signed-off-by: Madhu Rajanna<EMAIL_ADDRESS>

@JohnStrunk PTAL

Holding PR since this still has do-not-merge.

@JohnStrunk once we update gluster-csi-driver in dockerhub we can remove do-not-merge tag and merge this one.

removed do-not-merge label  @JohnStrunk @kshlm PTAL


Backport automated Google Spreadsheet creation from podcast app

Need to talk to @eads about this one.

depends on #75


Links between top-level deployment nodes in DeploymentView

Hi folks!
After a few hours of debugging to figure out why the links between my containers were not being shown in my deployment view, I saw https://github.com/goadesign/model/blob/2461d2ed73c9e307adfe0bc070b6950f82f56aac/expr/render.go#L101-L106
While it is true that you can technically add them using Link, it's not a great DX. Would you be interested on a PR adding something like AddTopLevelLinks (similar to the current AddAll and AddDefault) that is only applicable inside a DeploymentView?

Sorry for the late reply! Yes that would be a great addition.


Broken on Android M MPZ44Q

Y channel works fine,
UV channels are off,

Is this still an issue with Preview3 for you?


'RollbackTo' in the database state-machine testing

Issue Number

#645
Overview

[x] I have added a RollbackTo command to the state-machine to test the behavior of the database with rollbacks.

[x] I have added a forgetPending function to the primitive model for:
- It'll be needed eventually when we start working on the "forget tx" endpoint
- Needed for the DB model to re-construct the checkpoint pending history after rolling back

[x] Used the "nearest checkpoint" (from before the rollback point) as the new slot for transactions that are re-scheduled. This allows for an easier testing as we don't necessarily need to check that we are rolling back to a point that exists. We only have to rollback to a point that is equal or after the latest slot we know of.

[x] Added a property to see the interaction between rollbacks and the checkpoint pending history. This was helpful to debug some failures in the state machine and understands what was going on, not strictly required but I kept it as it provides an easier debug output than the state machine.

[x] Fixed the DB model to correctly keep track of checkpoints' pending set via the tx history. This

Comments

I had to resolve something interesting here too: what happens when we decide to insert a checkpoint that already exist but that has a different pending set?
-> Most reasonable to me is to stick with the semantic of 'put' and replace the existing checkpoint with the one that is given. This implies cleaning up the old pending transactions before adding the one given by the new checkpoint.

One another thought:
The way we keep track of pending txs is quite awkward in the end. We have two sources of truth: the tx history and the checkpoints.
Yet, the primitive model doesn't need to know about pending txs. We need them to know the wallet available balance, but this can easily be changed to an argument.
What remains is figuring out when txs are removed from the pending set, which is given by applyBlock second result already!
Removing the pending txs from the Checkpoint should simplify quite a few things in the code as well as in testing! Especially in the DB model which it would be nice to keep simple.
cc @rvl @pawel.jakubas

I had to resolve something interesting here too: what happens when we decide to insert a checkpoint that already exist but that has a different pending set?

I think we shouldn't need to worry excessively about this complication. It's invalid input - so if the DB threw exceptions or returned the wrong one out of the set of possible correct results, then so what. It's just that it's harder to write test generators that make unique and valid checkpoints. And easier to just make the database delete any previously existing checkpoint before insertion, so that the tests pass.

Removing the pending txs from the Checkpoint should simplify quite a few things in the code as well as in testing!

I agree. I think it may have got there in the first place because the pending txs are part of the model in the spec. Because they are used for the expected balance (which we won't implement for the time being).

bors r+


Feature request:Add Sink/Flow.exists operator

Motivation:
Add Sink.exists operator ,which can be implemented with Sink.fold / statefulMap.
Both zio and fs2 has this mehtod.
Result:
Rich operators set.

@GreyPlane Would you like to take care about this?

Thanks for the mention, I think it's OK, I'd like to pick this up maybe this weekend or earlier If I had time.


inline templates not executed correctly

Pre-requisites

[X] I have double-checked my configuration
[X] I can confirm the issues exists when I tested with :latest
[ ] I'd like to contribute the fix myself (see contributing guide)

What happened/what you expected to happen?
When there are two or more inline templates in a workflowtemplate that is called from a workflow, the content of the first executed inline templates is replaced by the content of the subsequent inline script and then executed.
Version
v3.4.5
Paste a small workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: workflow-test-
spec:
  entrypoint: hello-hello
  templates:
    - name: hello-hello
      steps:
        - - name: start
            templateRef:
              name: template-hello
              template: main

---
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  name: template-hello
spec:
  templates:
    - name: main
      steps:
        - - name: hello1
            inline:
              script:
                image: alpine:3.7
                command: [ sh ]
                source: |
                  echo "hello1"
        - - name: hello2
            inline:
              script:
                image: alpine:3.7
                command: [ sh ]
                source: |
                  echo "hello2"

Logs from the workflow controller
workflow-hello-xd4px--1205290903: time="2023-03-19T06:35:30.018Z" level=info msg="capturing logs" argo=true
workflow-hello-xd4px--1205290903: hello1
workflow-hello-xd4px--1205290903: time="2023-03-19T06:35:31.025Z" level=info msg="sub-process exited" argo=true error="<nil>"
workflow-hello-xd4px--3965209339: time="2023-03-19T06:35:41.045Z" level=info msg="capturing logs" argo=true
workflow-hello-xd4px--3965209339: hello1
workflow-hello-xd4px--3965209339: time="2023-03-19T06:35:42.069Z" level=info msg="sub-process exited" argo=true error="<nil>"

Logs from in your workflow's wait container
kubectl logs -n argo -c wait -l workflows.argoproj.io/workflow=${workflow},workflow.argoproj.io/phase!=Succeeded

The same happens if you use tasks instead of steps:
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  name: template-hello
spec:
  templates:
    - name: main
      dag:
        tasks:
          - name: hello1
            inline:
              script:
                image: alpine:3.7
                command: [ sh ]
                source: |
                  echo "hello1"
          - name: hello2
            inline:
              script:
                image: alpine:3.7
                command: [ sh ]
                source: |
                  echo "hello2"
            dependencies: [hello1]

Yes that looks like a bug.

But this doesn't occur with a straightforward Workflow.
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: template-hello-
spec:
  entrypoint: main
  templates:
    - name: main
      dag:
        tasks:
          - name: hello1
            inline:
              script:
                image: alpine:3.7
                command: [ sh ]
                source: |
                  echo "hello1"
          - name: hello2
            inline:
              script:
                image: alpine:3.7
                command: [ sh ]
                source: |
                  echo "hello2"
            dependencies: [hello1]

I'll take a look into it, I have an idea where it could be.


[BUG] with-vue use components style invalid

What happened?
I created this project using pnpm create plasmo --with-vue, then I created a components folder and a test.vue file. I referenced this test.vue in the content and found that the style of test.vue did not take effect.

Version
Latest
What OS are you seeing the problem on?
MacOSX
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
(OPTIONAL) Contribution

[ ] I would like to fix this BUG via a PR

Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate problems.

same issue, the style  will missed.

This is a duplicate of #725.


feat(table): add filters

Add filters
What does this PR do?

Resolve #55
Resolve #128

Steps to test

Run project
Check changes

Now:

CheckList

[X] Follow proper Markdown format
[X] Content is available in all languages
[X] The content is adequate
[X] I Ran a spell check
[X] I included test coverage

@JAMares  lets add a date selector a a multiple selection droprdown for status filters

@JAMares this interface
export interface IFilterObject {
label: string;
options?: string[];
type?: "multiple" | "date";
}
type should not be optional


TimescaleDB extension support

We'd love to migrate our back-end to nhost. We have a specific usecase where we need the TimescaleDB postgres extension. Is this currently supported/on the roadmap?

Check here: https://github.com/nhost/nhost/discussions/1020

@Weijtmans thank you for adding it to the list. Closing this now.


Add tech logos to bottom of home page

To potentially enable us to take advantage of free resources for open-source projects such as Netlify
https://www.netlify.com/legal/open-source-policy/

Done

Reopening as a reminder to add the netlify badge, as we are now deploying to netlify

Have you already updated datanator.info to point to Netlify?
I'll add the Netlify logo.

It is not pointing there yet. @lzy7071 has access to the DNS records and is working on it.

I added the Netlify logo to the home page. I also removed Heroku deployment from the CircleCI build since this will be replaced with Netlify.


Feature extensions

Useful features for developing 2D and 3D applications using Vulkan on Ruby.

Frustum object with ability to perform radar culling.
Numeric can now convert between degrees and radians, though values are assumed to be the opposite.
The Math module has updated arithmetic features.
More convenience in the Vector class.
Introduced Color vectors (treated as tuples) for RGBA, ARGB, and BGRA.  HSV and HSL are proposed,
The Matrix class can now produce view (position + rotation) and projection (via frustum) matrices.

Please refer to npomf/scene-tools instead.


Add --skip-unsupported-extension to skip unwanted paths matching a glob

sic's glob path implementation currently doesn't filter non-image files. This means that if a (glob) path contains any unsupported file path, eventually an unsupported file format error will be thrown. This may be unwanted as sic targets specific file types (namely images), and a folder may contain many other files. While the glob paths themselves are a tool to filter out unwanted files, the input glob can be made simpler by having the glob walker (iterator) skip files which are almost certainly unwanted (namely non-image files).
By filtering to known image file extensions, we attempt to prevent a user from having to specify very complex and too specific globs.
part of #407 (first step)

Thanks I will have a look at it soon! :)


Refactoring Hosting Mixin

This mixin currently contains functionality regarding the rendering of the layout of open-scd AND it also listens to the 'validate' event and then triggers the validate() method inside of every validating plugin.
One potential feature we foresee is the ability for users to exchange layouts at will, maybe we can make a layout addon out of it.

Done in here https://github.com/openscd/open-scd/pull/1443


feat(router): add a config option to ignore url param

Hey there !
I hope you're fine today.
I wanted to suggest adding an option in the router's param that would allow to ignore url's params when tracking.
I've got an app that uses url's params quite extensively for things like search fields and i don't want matomo to track 10-15 times the same page just because of that.
Added a test and updated documentation aswell.
Let me know if you there's anything that you would like to see changed.

No idea why tests are failing on the pipeline though :/

Hi @Arrakis-Lux

I hope you're fine today.

Yup thanks 👍
Matomo already supports this feature natively: https://fr.matomo.org/faq/how-to/faq_81/
Doesn't this meet your needs?

Ah dang.
I didn't know about that. It should be more than enough yeah x')
Well I'll close the PR, my bad eheh !


feat: migrating base-ocp-vpc module to TIM repo

Description
Migration of base-ocp-vpc module to SLZ base-ocp-vpc module.
Types of changes in this PR
No release required

[x] Examples or tests (addition or updates of examples or tests)
[x] Documentation update
[x] CI-related update (pipeline, etc.)
[ ] Other changes that don't affect Terraform code

Release required

[ ] Bug fix (patch release (x.x.X): Change that fixes an issue and is compatible with earlier versions)
[x] New feature (minor release (x.X.x): Change that adds functionality and is compatible with earlier versions)
[ ] Breaking change (major release (X.x.x): Change that is likely incompatible with previous versions)

Release notes content
SLZ - base-ocp-vpc module is created for TIM repository.
This module is used to provision an IBM Cloud Red Hat OpenShift cluster on VPC Gen2.
Checklist for reviewers

[x] The PR references a GitHub issue.
[x] If relevant, a test for the change is included or updated with this PR.
[x] If relevant, documentation for the change is included or updated with this PR.

Merge actions for mergers

Merge by using "Squash and merge".

Use a relevant conventional commit message that is based on the PR contents and any release notes provided by the PR author.
The commit message determines whether a new version of the module is needed, and if so, which semver increment to use (major, minor, or patch).

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


dm command does not accept "@"-prefixed usernames

E.g. if I run the command
/dm @ijones

then I get
[12:43] *matterhorn: No user named @@ijones

I propose that dm accept usernames with or without @.

Fixed in 78ccd4cff9e553ade78ab8604c9b91c84693f275.


Setting name when creating new table object from existing Table raises an exception

table1 = Table(pd.DataFrame({
    'a': [1, 2, 3],
    'b': ["a", "b", "c"]
}), name='t1', units=["-", "text"])

table2 = Table(table.df, name="t2")
...
Exception: Got unexpected keyword arguments when creating Table object from existing pandas table: {'name': 't2'}

I do not consider this a bug and I am a little conflicted as to whether this is a good idea.
Table is a "stateless" facade (see https://pdtable.readthedocs.io/en/latest/usage/quickstart.html#idea). So I would expect table1 and table2 to use the same underlying TableDataFrame.
Making the facade contractor able to modify the TableDataFrame kind of obscures the facade approach to the point where we may risk consumers writing code that couples too tightly to pdtable (see advantage 1: https://pdtable.readthedocs.io/en/latest/usage/quickstart.html#idea).
I think it is more explicit to create the facade and then modify the name of the table:
t = Table(tdf)  # Construct throw-away facade for easy access
t.name = "t2"  # Change table name

I suppose what you are looking for is an easy way to create a new TableDataFrame based on an already existing TableDataFrame with a subset of the metadata updated?

Hi Kasper, please allow me to disagree. This is a very clear violation of the Liskov Substitution Principle. In fact, it violates a principle listed in the pdtable documentation itself:
Code can be written for (and tested with) pandas dataframes and still operate on TableDataFrame objects. This frees client code from necessarily being coupled to the startable project. A first layer of client code can read and manipulate StarTable data, and then pass it on as a (TableDataFrame-flavoured) pandas.DataFrame to a further layer having no knowledge of pdtable.
I don't see why this should not apply to the Table class. Think if table1 could be either a TableDataFrame or a regular pandas DataFrame. How would I go about creating a Table object? I would have to wrap it in a "try/except" clause. Not a nice API!

@guilhermebs Great to disagree, I think it is important to discuss this to find the best solutions. I agree that this violates that Liskov substitution principle when viewed as disallowing the base class of TableDataFrame - hence why I do not see this as clear cut.
However, an alternative perspective could be that the facade contructor requires a metadata-augmented object - in which case it is not the pd.DataFrame mark that is important but the metadata attribute. (This way we could imagine developing towards a more table-backend agnostic code?)
In more practical concern: If you set table2 = Table(table1.df) table2 is a facade for the TableDataFrame table1.df and I would expect that any change to name (or other properites) are shared between the underlying TableDataFrame.
So are you proposing that table2 = Table(table1.df, name="t2") should result in table1.name being "t2"?


Investigate cf-abacus

service usage metrics, which can be used for billing
https://github.com/cloudfoundry-incubator/cf-abacus
Had a quick look during the hack day in Nuremburg
requires specific version of node and npm (install npm version manually, for specifics see their travis logs)
during yarn rebuild test are ran, which failed locally

I believe cf-abacus is being moved to the attic, so no point doing this.


Fix legacy convert for pandas 2.0

[ ] Closes #xxxx (Replace xxxx with the GitHub issue number)
[ ] Tests added and passed if fixing a bug or adding a new feature
[ ] All code checks passed.
[ ] Added type annotations to new arguments/methods/functions.
[ ] Added an entry in the latest docs/release_notes/index.md file if fixing a bug or adding a new feature.
[ ] If the changes are patches for a version, I have added the on-merge: backport to x.x.x label.

test linux cpu prerelease
test macos cpu
test windows cpu


PBS: Consider an option to fast-path the status endpoint

At scale under load, some beacons may wait for the /status call before sending registrations or may simply fallback locally if it takes too much time ; relayers also tend to return errors at tail, this can result in more blocks being unnecessary built locally just because a relayer took more  time. Being able to have the PBS status call immediately returns 200 without querying the relayers reduces the time taken in a hot path of beacons, this helps with attestations/block proposals.
I see two downsides:

logs can be noisy: if all relayers are down, commit-boost PBS will still be called, will try to reach out to relayers, before returning an error back to the beacon, which will fallback locally,
if a relayer is badly configured, it may take time to realize it, for this commit-boost could actually check them once at startup, without blocking the hot-path.

Happy to take this one as well, unsure when I'll have time, ping me if you plan to do it so I remove it from my plate :)


Terraform env vars suggestions

What problem are you facing?
Terraform provides a number of environmental variables that might make the provider-terraform implementation a little cleaner.
Some, but not all, are documented here:
https://www.terraform.io/cli/config/environment-variables
For example:
TF_INPUT - setting this to 0 would eliminate the need to add the -input=false parameter on every CLI command
TF_IN_AUTOMATION - setting this to non-null would let terraform know that it is running in automation and adjust error output accordingly
TF_PLUGIN_CACHE_DIR - setting this to /tf would cache a single copy of all providers and greatly reduce memory usage and terraform init processing time
TF_WORKSPACE - setting this to the metadata.uid would eliminate the need to call terraform workspace select
It might be worthwhile to try using some of these in the code

Great suggestion.
TF_PLUGIN_CACHE_DIR  is already utilized in https://github.com/crossplane-contrib/provider-terraform/pull/123
Definitely keen to investigate the rest of them.


$getAuditLogs

[ ] Functions: <$getAuditLogs>

[x] Description

I have the latest version of aoi.js, but idk why is that happening while trying to eval the function, i didn't try to use the function in a code though.

Nvm....


Allow to dispose maintainState Providers

Is your feature request related to a problem? Please describe.
maintainState is a very nice feature for example for list pagination. But the problem is that maybe in one Flow we have 3 different screens withs lists, and then the user go to other Flow and continue using the app and never go back to this lists. So we have on memory different Providers states (a lot really, especially if we use Provider.family with "page" as param like Marvel example list) that we didn't need.
Describe the solution you'd like
I think on two solutions.

An autodispose timer for maintainState Providers. Like

final characterPages = FutureProvider.autoDispose.family<MarvelListCharactersReponse, CharacterPagination>(
  (ref, meta) async {
    final cancelToken = CancelToken();
    ref.onDispose(cancelToken.cancel);

    final repository = ref.read(repositoryProvider);
    final charactersResponse = await repository.fetchCharacters(
      offset: meta.page * kCharactersPageLimit,
      limit: kCharactersPageLimit,
      nameStartsWith: meta.name,
      cancelToken: cancelToken,
    );

    ref.maintainStateUntil(Duration(seconds: 60); // for not use two different properties assignment
    return charactersResponse;
  },
);

A way for manual dispose named Providers/family Providers.

final characterPages = FutureProvider.autoDispose.family<MarvelListCharactersReponse, CharacterPagination>(
  (ref, meta) async {
    final cancelToken = CancelToken();
    ref.onDispose(cancelToken.cancel);

    final repository = ref.read(repositoryProvider);
    final charactersResponse = await repository.fetchCharacters(
      offset: meta.page * kCharactersPageLimit,
      limit: kCharactersPageLimit,
      nameStartsWith: meta.name,
      cancelToken: cancelToken,
    );

    ref.maintainState = true;
    return charactersResponse;
  }, name: 'marvelCharacters'
);

ProviderContainer container = ProviderScope.containerOf(context);
container.disposeStatesFromNamed("marvelCharacters") //this dispose all states associated to this family provider

I think add a way to set duration is a good idea :D

In the example you've described, chances that a timer likely wouldn't work.
If the ListView is still in the widget tree (and chances are it is, as routes that are not visible are still mounted), the state would be preserved anyway even without maintainState = true

container.disposeStatesFromNamed("marvelCharacters") //this dispose all states associated to this family provider

What about:
final family = Provider.family(...);
final provider = Provider(...);

context.disposeFamily(family);
context.disposeProvider(provder);

In the example you've described, chances that a timer likely wouldn't work.
If the ListView is still in the widget tree (and chances are it is, as routes that are not visible are still mounted), the state would be preserved anyway even without maintainState = true

Well, I'm using SliverList with the ProviderScope "override" approach (like the Marvel Grid example). So when I scroll down and go back, if I not maintein the state, I lose it. I still agree that "Duration" is not complete ideal in this scenario.

container.disposeStatesFromNamed("marvelCharacters") //this dispose all states associated to this family provider

What about:
final family = Provider.family(...);
final provider = Provider(...);

context.disposeFamily(family);
context.disposeProvider(provder);

Totally! Even better.

Well, I'm using SliverList with the ProviderScope "override" approach (like the Marvel Grid example). So when I scroll down and go back, if I not maintein the state, I lose it. I still agree that "Duration" is not complete ideal in this scenario.

Indeed. But the currently visible item wouldn't be disposed

Well, I'm using SliverList with the ProviderScope "override" approach (like the Marvel Grid example). So when I scroll down and go back, if I not maintein the state, I lose it. I still agree that "Duration" is not complete ideal in this scenario.

Indeed. But the currently visible item wouldn't be disposed

Sure. With maintainState I can guarantee a correct UX when I'm on the SliverList screen doing down/up gestures. I really need maintain the states here, then when I leave the screen the only important states to maintein are the used on the visible items until the screen was removed from Navigation stack.
I supose with your solution I can do something like:
useEffect(() {
    ...
    return () {
      context.disposeFamily(characterPages);
    };
  });

On the List screen HookWidget. With this I can maintain all the states for the family for don't lose the UX effect and avoid unnecessary server requests. The disposeFamily feature is important to if I need pull to request, because maybe one thing change and I need refresh the data.

I supose with your solution I can do something like:
useEffect(() {
   ...
   return () {
     context.disposeFamily(characterPages);
   };
 });

Sadly no, it's more complex.
We don't want to dispose the provider when the widget is disposed. The issue is that the widget isn't disposed, so this would have no impact.
What you want is likely something on Navigator's level instead.
Such that the maintainStateFor(Duration) you are suggesting would be implemented for Navigator routes.
Then, when routes that are no-longer visible are destroyed, this would automatically dispose the providers.
But the maintainStateFor(Duration) for providers may be interesting for ListViews, to not keep items that haven't been viewed for a while alive.
Although tbh, this could be moved to the Widget layer too.
Rather than using maintainState = true, you may want to not use the flag at all, and instead increase the ListView.cacheExtent variable:
ListView(
    cacheExtent: 500?,
)

This would keep items that are not visible but close to being visible still alive. So if the user scrolls very far, items are disposed of. But if the item barely left the screen, its state is preserved.

The disposeFamily feature is important to if I need pull to request, because maybe one thing change and I need refresh the data.

For refreshing a group of providers, there's an easy solution: create a dummy provider that all providers of this group listen to with ref.watch
final group = Provider<void>((ref) {});

final a = Provider((ref) {
  ref.watch(group);
  print('create A');
});

final B = Provider((ref) {
  ref.watch(group);
  print('create B');
});

....

context.refresh(group); // Will cause `a` and `b` to refresh

Sadly no, it's more complex.
We don't want to dispose the provider when the widget is disposed. The issue is that the widget isn't disposed, so this would have no impact.
What you want is likely something on Navigator's level instead, such that the maintainStateFor(Duration) you are suggesting would be implemented for Navigator routes.
Then, when routes that are no-longer visible are destroyed, this would automatically dispose the providers.
But the maintainStateFor(Duration) for providers may be interesting for ListViews, to not keep items that haven't been viewed for a while alive.
Although tbh, this could be moved to the Widget layer too.

You are right. Needs to be worked at the navigation layer.
I think the two "ideas" (maintainStateFor and context.disposeFamily / Provider) are not mutually exclusive and give us more versatility for manage with more criterias Providers State lifes: On the one hand is desider a duration (or other criteria) for allow maintainState autodispose himself (I never really like the idea for `maintainState' never expire) and on the other give us more control to ensure at some point in the app some Providers/Family States were disposed.

Rather than using maintainState = true, you may want to not use the flag at all, and instead increase the ListView.cacheExtent variable:
ListView(
    cacheExtent: 500?,
)

This would keep items that are not visible but close to being visible still alive. So if the user scrolls very far, items are disposed of. But if the item barely left the screen, its state is preserved.

I test it but the behiever it's not what I expect (for the last thing you comment and for making the user fetch/render much more data/widget than he needs).

The disposeFamily feature is important to if I need pull to request, because maybe one thing change and I need refresh the data.

For refreshing a group of providers, there's an easy solution: create a dummy provider that all providers of this group listen to with ref.watch
final group = Provider<void>((ref) {});

final a = Provider((ref) {
  ref.watch(group);
  print('create A');
});

final B = Provider((ref) {
  ref.watch(group);
  print('create B');
});

....

context.refresh(group); // Will cause `a` and `b` to refresh

But if Providers "a" and "b" are using maintainState = true, this works?

If I understand what Remi has written, maintainState ONLY applies to AFTER the Provider is no longer being listened to.  It does not change the rules on WHEN the provider would normally rebuild.
So yes, this should work even when  maintainState = true

If I understand what Remi has written, maintainState ONLY applies to AFTER the Provider is no longer being listened to.  It does not change the rules on WHEN the provider would normally rebuild.
So yes, this should work even when  maintainState = true

I still don't understand what "autoDispose" is actually disposing when maintainState = true

If the first line of your provider is maintainState = true and you never set it back to false, then yeah, autoDispose is not doing anything.
But it shouldn't be always true.
The point of maintainState is that it's conditional and can change over time.
You can call maintainState = false at any time, or delay the maintainState = true after an await.

In any case, the 2.0 offers a bunch of new life-cycles and high level configs which should offer more freedom over when providers are disposed.
So I'll close this


GraphQL to RESTful API

Context: this is relevant for people who have an active GraphQL service and integration partners ask for a RESTful service that they can interface with.
As a user, I'd like to create RESTful clients and documentation from my GraphQL Schema. I'd like my GraphQL Schema to remain the source of truth.
[There could also be a Fern Definition to GraphQL as a separate feature.]

not in scope.


[ios] The double-tap screen in Apple Pay automatically turns on when I tap outside the payment sheet

Describe the bug
The double-tap screen in Apple Pay automatically turns on when I tap outside the payment sheet
To Reproduce
https://github.com/user-attachments/assets/3d50de12-27fe-413b-a78b-c3057a153ad7
I use initPaymentSheet() and presentPaymentSheet()

Smartphone (please complete the following information):

OS: iOS

Hi @Tieu-Mai-Nhi I can't reproduce this problem. Can you share with me a sample react-native project that I can run and reproduce the problem?


Test small QR-Code variant on Nürnberg's static code.

Is your feature request related to a problem? Please describe.
Nürnberg wants to only have the small QR code so that they can have a single-page card.
For that, we need to ensure that these very small sized QR codes actually work properly.
Test:

Print a PDF (with a pretty long name)
Cut out the static card with the small QR code
Try to scan the QR-code
Simulate some wear-off on the print-out (by folding/scratching/painting/etc.)
Try to scan the QR-code

Actually Nürnberg already gave feedback that the small qr code was not scannable on their iPhone. We should of course still check how the bigger qr code performs...

Did Nürnberg agree to use the double-sided variant of the static card in the feedback meeting?

Hmm. Tbh, not sure wether they had a clear opinion on this. We discussed the usage of the bigger and smaller qr-code. Maybe @dkehne can tell more about this.
Can shortly explain what you mean with double-sided? :)

can we close this issue @michael-markl ?

I'm fine with closing. However, we don't really have a decision yet, so it might be good to keep it open, just to have it "auf dem Radar" ? :D

so far nürnberg is using double sides pdfs with big qrCode on the back. So i think we can close this ticket


skip-connection-check not processed by odo version

I ran odo version --skip-connection-check and still got long response time and the following output:
> odo version --skip-connection-check
odo v0.0.13 (f92c352)
Get https://<IP_ADDRESS>:8443/version/openshift: dial tcp <IP_ADDRESS>:8443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

What error did you get?
Everytime when odo starts it checks if it can connect to OpenShift.
--skip-connection-check   was added to allow skip this check when you need to run a command that you know doesn't require a connection to OpenShift ( like getting current component or application) and you don't want odo to complain about not able to reach cluster.
odo app list needs to get data from the cluster. So it will still complain about not able to connect to it.  You just won't get nice Unable to connect to OpenShift cluster, is it down? but some other ugly error.
What is your use case for --skip-connection-check is was originally added just to make bash completion and nice PS1 prompt easier.

In case of odo version --skip-connection-check its printing the current odo client version and after that making an HTTP request to get the server version which is failing to get response

Then I think this flag is confusing. Also would be nice to allow to get the odo version without cluster exchanges as tooling (VSCode, Developer Studio,...) could use it to check the Odo version without waiting for a costly exchange

@jeffmaury , kubectl has something similar which returns only client version (without talking to server)
kubectl version --client

are you talking about something similar ?

Yes the idea is for a tooling based on odo to check if the odo has the correct required version so no need to call the server

closing this since #935  is merged


Setting metatable on produced usertype table

This is not exactly an issue per-se, more like a question, but I'm hoping you'll be able to help me regardless.
What I've been trying to do is set a meta function in the metatable of a usertype produced type in order to achieve interoperability with some old scripts that were running under LuaBind bindings.
More specifically, I want to set the __call metamethod to constructfunc so I can instantiate usertypes in lua-land as such local x = usertype() (instead of local x = usertype.new()). So far I've avoided using the raw Lua C API for this, since I assume (from what I've seen) that you perform some sort of cleanup on user defined types.
All my attempts so far (using Sol2 methods) have resulted in adding the function to the actual table members, and not its metatable, so I'm kinda stuck.
Thanks in advance.

Got it working with a test program, but we do need some kind of useful way of making it easier to transition to luabind. I need to add something to the usertype maker to allow for this syntax to be a thing. What do we call the key?
lua.new_usertype<thing>( "thing",
     ????, sol::constructors< /*...*/ >()
);

It would be nice to find out what ???? would be called.

Until such a time, here's the example:
#define SOL_CHECK_ARGUMENTS

#include "sol.hpp"
#include <iostream>

struct thing {
	int v = 100;

	thing() {}
	thing(int x) : v(x) {}
};

int main(int argc, char* const argv[]) {
	sol::state lua;
	lua.open_libraries(sol::lib::base);

	lua.new_usertype<thing>("thing",
		"v", &thing::v
	);

	sol::table thingtable = lua["thing"];
	thingtable[sol::metatable_key] = lua.create_table();
	sol::table metathingtable = thingtable[sol::metatable_key];
	auto thingtype = thingtable.get_type();
	auto metathingtype = metathingtable.get_type();
	metathingtable["__call"] = []( sol::stack_reference src ) {
		return thing(52);
	};

	lua.script(R"(
	t = thing()
)");

	thing& y = lua["t"];
	std::cout << y.v << std::endl;

	return 0;
}

Maybe something like sol::??::call_constructor?

sol::function_call_constructor might be more explicit... albeit it iiis long... sol::call_constructor is probably good.

By the way, random question: Does omitting sol::constructor<> prevent a user from instantiating a usertype in lualand?

sol automatically checks if a type is default constructible. If it is, it will generate sol::default_constructor for you and bind it to new.

sol::function_operator_constructor will probably be a thing.

Even though I haven't had a chance to test it yet, thanks for implementing this and #78 so promptly! You're awesome.

Get it here: https://github.com/ThePhD/sol2/releases/tag/v2.5.3

I didn't really want to open a new issue for this considering this one is similar enough...
I'm creating usertypes with classes that have multiple constructors. Everything seems to work fine so far.
Now, I've wondered about skipping the Foo.new(...) to just be able to do Foo(...), but I'm not sure how to do it from sol directly in a clean way (call_constructor requires a constructor, but I have several...), rather than just setting meta.__call = Foo.new (which appears to work fine as well, from testing quickly).
Any idea?

@adriweb I've been using sol::call_constructor and multiple constructors without any issues. Syntax is the same as using a named constructor.
Take this class for example:
class SomeClass
{
    SomeClass(int);
    SomeClass(const std::string&);
    SomeClass(bool);
}

The way you would bind its constructors would be as follows:
lua.new_usertype<SomeClass>("SomeClass",
    sol::call_constructor, sol::constructors<sol::types<int>, sol::types<const std::string&>, sol::types<bool>>(),
    ...
);

With the changes introduced in #362 you should also be able to specify it like this (granted you're using the latest and greatest version):
lua.new_usertype<SomeClass>("SomeClass",
    sol::call_constructor, sol::constructors<void(int), void(const std::string&), void(bool)>(),
    ...
);

Hmm, then I guess something else around the construction is going wrong (causing the exception to be thrown), I'll try to dig in more.
(And yep I have the latest version, I guess I'll use the new syntax everywhere!)
Thanks

On 16 Mar 2017, at 18:31, Orfeas Zafeiris<EMAIL_ADDRESS>wrote:
@adriweb I've been using sol::call_constructor and multiple constructors without any issues. Syntax is the same as using a named constructor.
Take this class for example:
class SomeClass
{
SomeClass(int);
SomeClass(const std::string&);
SomeClass(bool);
}
The way you would bind its constructors would be as follows:
lua.new_usertype("SomeClass",
sol::call_constructor, sol::constructors<sol::types, sol::types<const std::string&>, sol::types>(),
...
);
With the changes introduced in #362 you should also be able to specify it like this (granted you're using the latest and greatest version):
lua.new_usertype("SomeClass",
sol::call_constructor, sol::constructors<void(int), void(const std::string&), void(bool)>(),
...
);
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

As a side note, I haven't updated the single/sol.hpp just yet in the repo.

Well well well... updating to the latest single.hpp (from a few days ago's to yesterday's) solved the exception I had, and everything seems to work fine now!


CassetteContextDecorator is not threadsafe

This probably isn't a huge issue, but I just realized that CassetteContextDecorator is not threadsafe. If you were to call a function that is decorated with use_cassette from two different threads, the __finish attribute of the function could be overwritten before the first call to the function returns. This would make it so the first unpatch never occurs, and also attempt to do a next() on a None object.

I think that this is actually a pretty serious issue. If there is a test runner that does single process threaded test execution, decorated functions could present a problem.


Inbound handling for ORA-01795

Is there an inbound support for this?
http://stackoverflow.com/questions/17842453/is-there-a-workaround-for-ora-01795-maximum-number-of-expressions-in-a-list-is
I use querydsl(3.4.2) to work with Oracle DB.
The next query:
    @Override
    @QueryDslSupport
    public List<DocumentHdr> findAll(List<Long> ids) {
        return getHibernateQuery()
                .from(documentHdr)
                .where(documentHdr.id.in(ids))
                .orderBy(documentHdr.enterprise.name.asc(), documentHdr.field.name.asc(), documentHdr.wellName.asc())
                .list(documentHdr);
    }

works fine until i get more than 1000 of elements at ids list, so I have to split it on the several lists and add them to "in" part via "or" statement.
The exception looks like:
19:08:18,467 ERROR [c.l.w.aop.ExceptionInterceptor] Method 'AbstractDocumentService.getTablePartition(..)', with args: [5, 2, [5693, 580, 5275, 6006....
 has thrown an exception,
java.sql.SQLSyntaxErrorException: ORA-01795: maximum number of expressions in a list is - 1000

As already mentioned in the pull request fixing this for JPA queries is problematic, since this would make the contract between Querydsl and the JPA provider too blurry. The Querydsl JPA serialization contract is to create valid JPQL queries, the JPA provider will then create valid SQL out of that.
After this fix the expression creation will at least be a lot easier for JPA queries
ExpressionUtils.inAny(documentHdr.id, Lists.partition(ids, 1000));

compared to the non transformed
documentHdr.id.in(ids);

I've just had this problem, but how can I use this if I have where expression with or condition each of which has list with size over 1000?
E.g.:
...where(documentHdr.id.in(ids).or(documentHdr.id2.in(id2s)))
I can not call .or on ExpressionUtils.inAny(documentHdr.id, Lists.partition(ids, 1000))
Thanks


HmIP-DRBLI4 channel 23 + 24 entity does not appear

I agree to the following

[X] I have read the documentation right now
[X] I have read the FAQs right now
[X] I am aware of the latest release notes
[X] I am aware that an integration that was installed via HACS also needs to be updated via HACS
[X] The Backend (CCU/Homegear/...) is working as expected, devices are taught in and are controllable by its own UI.
[X] I am running the latest version of the custom_component (and Home Assistant)

The problem
I am not able to use channel 23 + 24 on my HmIP-DRBLI4 0025DD89B1F9B0 because they don't show up in the list of entities. Channel 11 + 12, 15 + 16 and 19 + 20 (same functionality) are visible and working.
What version of HomematicIP (local) has the issue?
1.66.0
What was the last working version of HomematicIP (local)?
No response
What type of installation are you running?
Home Assistant OS
What type of installation are you running for your homematic backend?
CCU3
Which version of your homematic backend are you running?
3.79.6
What hardware are you running for your system?
Proxmox
Which config details do you use

[ ] TLS
[ ] callback data (see)

Which interfaces do you use?

[X] Homematic IP
[X] Homematic (Bidcos-RF)
[ ] Groups (Heating-Group)
[ ] BidCos-Wired (HM-Wired)

Diagnostics information (no logs here)
home-assistant_homematicip_local_2024-10-26T07-56-57.519Z.log
Log file extract. Anything in the logs that might be useful for us? The log (Setting/System/Logs -> load full log) is the best source to support trouble shooting!
No response
Additional information
No response

I am aware of the latest release notes
I am aware that an integration that was installed via HACS also needs to be updated via HACS
I am running the latest version of the custom_component (and Home Assistant)
Log file extract. Anything in the logs that might be useful for us? The log (Setting/System/Logs -> load full log) is the best source to support trouble shooting!
For example, error message, or stack traces. Don't switch to DEBUG level if not requested.

Thank you for carefully filling out the issue template.
Please don' report issues for outdated versions current version is 1.68.0.


Add refresh setting to configuration

Is your feature request related to a problem? Please describe.
Currently the integration updates timers/alarms at a hardcoded period (15 seconds or 5 minutes).
Describe the solution you'd like
A configuration UI setting where the user can set a custom update rate. Maybe with some reasonable limits.

I don't think we actually need this. 10 seconds is reasonable interval for everyone.

Perhaps you are right :) We can revisit it if that will be needed, but as you say 10 sec is most likely gonna do great for most! :) Thanks!


Incorporate latest stix2-validator

This is waiting on the 1.0 release of the validator.

The validator was released:
https://pypi.org/project/stix2-validator/1.0.0/

This has been fixed.


disasm: add option to output hex code as comments

Closes https://github.com/retroenv/nesgo/issues/79

Codecov Report

Merging #106 (24b39bc) into main (0595cdc) will decrease coverage by 0.08%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #106      +/-   ##
==========================================
- Coverage   47.38%   47.29%   -0.09%
==========================================
  Files          84       84
  Lines        7224     7237      +13
==========================================
  Hits         3423     3423
- Misses       3655     3668      +13
  Partials      146      146


hl-line is superseded by hl-line-face in Emacs 29.0.50

What did you expect to happen?

What actually happened?

Describe your attempts to resolve the issue
Theme hl-line-face to keep forward compatibility.
In doom-themes-base.el, add an extra line for hl-line-face.
;;;; hl-line (built-in)
(hl-line :background bg-alt :extend t)
(hl-line-face :backend bg-alt :extend t)

Steps to reproduce

Compile Emacs from source  https://github.com/emacs-mirror/emacs/commit/0a094fb65ca1392231ef8176f89f936e39f3296e
install doom-themes
(load-theme 'doom-one t)

Package commit
83fd9545c2823b4b2610947802fa3a52995517b4
System Information
No response

Sorry, it's fixed by https://github.com/emacs-mirror/emacs/commit/f36d929ee768f03dcc63f59ff0572c2681c8f749


Re-structure get_var and add keyword arguments

The use of get_var remains the same, but I've tried to simplify its implementation. There is now a readable "main" get_var method  -- which takes either single or multiple snapshots -- that calls more specific get_var-methods and finally applies operations to the data according to arbitrary keyword-arguments. It should be easy to extend the functionality of get_var by adding more keywords and corresponding implementation.
Note that applying operations to the data through get_var keywords will make it return a copy of the snapshot-variable, not a memory mapping.
Notable changes:

Deleted br_load_snapvariable and br_load_auxvariable because get_var should not be noticeably slower.
Added unit conversion as an option in get_var. Set the keyword-argument units to either "cgs" or "SI". Unit conversion vil now use snapschot-specific conversion factors.
Added destaggering as an option in get_var. Set the keyword-argument destagger=true.
Added rotation of the vector-fields as an option in get_var. Set the keyword-argument rotation_about_x=true. It should be easy to extend the function rotate to allow for arbitrary rotation around arbitrary axes.
Changed the name of br_load_snapdata and br_load_auxdata to get_snap and get_aux, respectively.
Replaced get_snapvarnr and get_auxvarnr with get_varnr_and_file_extension.
Replaced get_dims with get_snapsize
get_snapsize_and_numvars returns two tuples instead of one tuple and two integers.
Moved get_variable_offset_in_file and primary_vars to utils.jl.

The code has been tested locally.

Looks very good. I added lowercase(units) since I'm used to passing units="si". I'll check that the get_var function works as expected in my work flow

Can we extend destagger with the same slicing functionality as get_staggered_var? Such that we only need to loop over the relevant slices when interpolating the variable. Say if we only want to look at one plane over several snapshots, this would speed up the loading time significantly.

This should already be the case. It slices the memory-mapping first (same as before), and then destaggers the sliced mapping. However, I forgot to test the slicing and found a bug. In the latest commit I removed the bug, in addition to making the slicing and precision keyword arguments instead of positional arguments. That may be better on second thought.

Unfortunately, this would not work for all cases of slicing. If you want to take a horizontal plane and do a stagger operation in z-direction, lets say zup:
out[i, j, k] =
                            a * (tmp[i, j, k] + tmp[i, j, k+1]) +
                            b * (tmp[i, j, k-1] + tmp[i, j, k+2]) +
                            c * (tmp[i, j, k-2] + tmp[i, j, k+3])

When you first slice the variable it is no longer possible to perform the stagger operation in the vertical direction, since you need five adjacent grid points to do the interpolation.
Therefore we would need to check the direction to determine if we can slice first and then do the stagger operation, or do the stagger operation and then slice the variable. This is what I do in get_staggered_var. It looks very messy I know, but maybe it can be cleaned up. I also wrote the stagger operations with the option to pass a slice, so you only loop over the relevant planes. You still need to load the entire cube for some cases, but you don't need to calculate the stagger operation for every point.

Of course! I didn't think about that problem. Sounds very good to include this in destagger. And I guess the destaggering has to become a "during-memory-mapping" operation, not a "post-memory-mapping" operation. At least for sliced snapshots.

I think the get_var function on line 228 (https://github.com/ITA-Solar/BifrostTools.jl/blob/develop-get_var-options/src/read_params_snap_aux.jl#L228) is a bit redundant. Can we not handle it inside the first definition (https://github.com/ITA-Solar/BifrostTools.jl/blob/develop-get_var-options/src/read_params_snap_aux.jl#L202). Would make it easier to call get_staggered_var

It would be nice to call get_var in the "Helita-way", i.e. with arguments (expname, snap, expdir, variable). We could move the content of get_var at line 228 into get_var at line 208, but I would still desire a method with the argument signature of 228 (which in that case would have to create a BifrostExperiment to call on 208).
I've made quick flowchart to show the get_var call-structure that I'm imagining, with the goal of code reuse.  Each rectangle colour represents a different method/function, and the actual memory-mapping always occur in get_var(filename, params, ...).
It still feels a bit messy so I'm very open for other suggestions.

Here you can edit the flowchart too: https://www.icloud.com/freeform/0cbSuQ7yCULWJ-3Zbgnvx3s0A#Untitled

This looks very good. I like that your idea keeps the mmap.

The commit 209ba996dbb52bd2188ac451e8a211e9c2994b68 changed the returns of get_snap, can we make the return identical to previously?


python-exec suppresses script output

I am trying to install the TensorFlow package for R. The build process involves running a Python script and on Gentoo, R automatically tries to run the script with python-exec. This causes the build to fail since it tries to parse the output of the script, but python-exec seems to suppress this output.
As a minimal example, running test.py:
print('Hello World!')

in python-exec:
alex@cizin ~ $ python-exec2c ./test.py
alex@cizin ~ $

Is this the desired behaviour? Is there any way to recover the output?

This is not a valid use of python-exec2c. It doesn't suppress any output, it just doesn't run the script. If you look at $?, you'd notice it exited with 127 -- aka it doesn't find wrapped script to run.

Sorry -- should have RTFM. Thanks for replying.


[e2e tests] Fix sig-storage-root periodic by not hardcoding default ns

What this PR does / why we need it:
We were hardcoding the ns to kubevirt-test-default, but for the sig-*-root lanes we want to dynamically decide that based on the root feature gate.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Checklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

[ ] Design: A design document was considered and is present (link) or not required
[ ] PR: The PR description is expressive enough and will help future contributors
[ ] Code: Write code that humans can understand and Keep it simple
[ ] Refactor: You have left the code cleaner than you found it (Boy Scout Rule)
[ ] Upgrade: Impact of this change on upgrade flows was considered and addressed if required
[ ] Testing: New code requires new unit tests. New features and bug fixes require at least on e2e test
[ ] Documentation: A user-guide update was considered and is present (link) or not required. You want a user-guide update if it's a user facing feature / API change.
[ ] Community: Announcement to kubevirt-dev was considered

Release note:

NONE

/test periodic-kubevirt-e2e-k8s-1.26-sig-storage-root

/test ?

/cc @enp0s3 @jean-edouard

/approve
/retest
@akalenyu please have a look at the failure in https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/pr-logs/pull/kubevirt_kubevirt/10537/pull-kubevirt-check-tests-for-flakes/1711358792546914304, could be related

/test pull-kubevirt-e2e-k8s-1.26-sig-storage-root


Remove cassandra-all dependency from CQL transport

Port over the necessary classes from cassandra-all and remove dependency.
https://github.com/stargate/stargate/blob/v1.0.7/cql/pom.xml#L12-L22

Due to #2680 I think we no longer want to do this (achieves similar goal).


Package linkerd edge 21.7.2

Motivation for this change

Update of linkerd_edge: 21.7.1 -> 21.7.2
Minor refactor (alphabetical order)

Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Relase notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 130013 at cfd92fd3 run on x86_64-linux 1

2 packages built successfully:

linkerd
linkerd_edge


Split impl at 'for' if a line break is needed

Fix #1037.

looks good, just a couple of minor things to fix, thanks!

@nrc done. Maybe you can stop some of those integration test (except the last one)? Had some trouble with restoring that white space and was to quick with pushing my commits :laughing:.

Thank you!

My pleasure.


Remove consul_dns_domain

Per discussion on #1246, to simplify our configuration we're going to remove consul_dns_domain. This won't have a huge effect on users, as everyone should pretty much be using .consul. #1246 makes it possible to leave off the TLD, however, so even users who did customize should move to the new setting.

As @stevendborrelli said on #1273,

I think with the new mantl-dns settings in dnsmasq, we don't even need to use .consul at all. Maybe the better plan is to remove it entirely.

We should be able to do lookups like:
hostname
hostname.node
hostname.node.dc
servicename.service
servicename.service.dc


fix(xmldom) - corrected package and module naming

Corrected name of module to @instawork/xmldom
Corrected name of package in package-lock to @instawork/xmldom
Bumped version to 0.0.3

Note: I haven't figured out why the tests are failing after I forked, the same thing was happening on my PRs

yes, I did it with a script


Problems on Windows Server 2012 R2

Hi
First I'd like to inform that I'm no NXLog expert, so I'm trying to use this content_pack for my Graylog instance.
When restarting NXLog it says:
2016-08-07 16:10:09 ERROR failed to open directory: C:\Windows\System32\dhcp: The system cannot find the path specified.   2016-08-07 16:10:09 WARNING Module in_dhcp has no input files to read
But the path "C:\Windows\System32\dhcp" is accessible and contains a bunch of files including the log giles for the DHCP Server.
DhcpSrvLog-Mon/Tue/Wed/Thu/Fri/Sat/Sun
Any idea of why?
My configuration
<Input in_dhcp>     Module im_file     File "C:\Windows\System32\dhcp\DhcpSrvLog-*.log"     PollInterval 1     SavePos True     ReadFromLast True     Recursive False     RenameCheck True     Exec $FileName = file_name(); # Send file name with each message </Input>
<Output out_dhcp>     Module om_udp     Host <IP_ADDRESS>     Port 5442     OutputType  GELF     Exec $short_message = $raw_event; # Avoids truncation of the short_message field.     Exec $gl2_source_collector = 'ae1187a3-48ae-42bc-a820-7033d7438dbd';     Exec $Hostname = hostname_fqdn(); </Output>

Sorry my bad, using "Sysnative" worked...

No problem, it took me a while too to figure out to use the "Sysnative" patch instead ;)
Glad it worked!